I am trying to export my library that is 820 lines long.
Instead, code.org is telling me that my library is too long and that I need to make it shorter
Is there any way of exporting my library without making it shorter? I really need to export it and making it shorter will making the editing of this project a lot harder. I am still wanting to keep adding features into my library.
I don’t know of a way to do that. Can you reach out to support@code.org? They may be able to help, but I’m not sure if it’s possible.
@IMPixel
Try and minify it and keep the source code in another project (if that is possible for you)
Yeah I had tried that before posting, but I had noticed that it would delete the comments, and you need comments to be able to add functions to the library.
I get that too, but the code is this
//Sends and Notifaction to the user
//Replace content with and message in ""
function notif(content) {
var num = randomNumber(0, 999999999);
textLabel("notif" + num, "");
setPosition("notif" + num, 10, 10, 300);
setStyle("notif" + num, "opacity: 0; transition: 0.2s; box-shadow: 0 5px 8px 3px rgba(0,0,0,0.4);");
setProperty("notif" + num, "text-color", "black");
setProperty("notif" + num, "background-color", "white");
setProperty("notif" + num, "border-radius", 5);
setStyle("notif" + num, "font-family: Inter, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, Sans-Serif;");
setProperty("notif" + num, "font-size", 15);
playSound("Post.mp3");
innerHTML("notif" + num, content);
setStyle("notif" + num, "opacity: 0; transform: translateY(-20px);");
setTimeout(function () {
setStyle("notif" + num, "opacity: 1; transform: translateY(0px);");
}, 16);
setTimeout(function () {
setStyle("notif" + num, "opacity: 0; transform: scale(0.9);");
setTimeout(function () {
deleteElement("notif" + num);
}, 200);
}, 3000);
}
This also happens with a code that is 5 lines long.
If it isn’t working with only 5 lines of code it is something that support may need to help you with please reach out to support@code.org to help with this issue.