{"id":8541,"student_id":1470,"content":"setBackdrop(\"SaddleBrown\");\nvar clearText = \"The world is a werid place\";\nvar encryptedText = \"\";\nvar shiftBy = 123;\nvar pen = Game.pen;\npen.color = \"red\";\npen.size = 20;\npen.fillColor = \"black\";\nfunction encrypt(c){ //one character at a time :D\n shiftBy %= 26;\n console.log(c);\n var ascii = c.charCodeAt(0);\n if(ascii \u003e= 60 \u0026\u0026 ascii \u003c= 90){//65~90 = A~Z\n ascii += shiftBy;\n if(ascii \u003e 90){\n ascii -= 26; //if the character is over Z, then roll back to \n }\n } else if ( ascii \u003e= 97 \u0026\u0026 ascii \u003c= 122) { //97~122 = a~z\n ascii += shiftBy;\n if(ascii \u003e 122){\n ascii -= 26;\n }\n }\n\n return String.fromCharCode(ascii); //Turn the CharCode to a char.\n \n}\n\nvar clock = 1,\n i = 0;\nforever(function(){\n pen.drawText(\"f(\"+ clearText+\", \"+shiftBy+\")\" + \" = \" + encryptedText, 100, 100);\n if(clock % 10 == 0 \u0026\u0026 i \u003c clearText.length){\n encryptedText += encrypt(clearText.charAt(i));\n i++;\n }\n clock++;\n})","created_at":"2017-03-01T20:52:04.729+08:00","updated_at":"2019-11-09T16:08:05.455+08:00","name":"凱撒加密法","language":"javascript","screenshot":{"url":"https://cdn8.koding.school/uploads/project/screenshot/8541/08764a689ebd6903317fa749b8a38c17.jpg"},"parent_id":2,"plugin":"","description":null,"note":null,"status":"public","like_student_ids":[],"is_featured":false,"views":456,"hashid":"36ysvrp","is_content_changed":null,"review_status":"unsubmitted","submitted_at":null,"reviewed_at":null,"advise":null,"is_deleted":false}
[{"id":189014,"file_name":"0.png","project_id":8541,"asset_id":6,"created_at":"2017-08-01T16:34:53.697+08:00","updated_at":"2017-08-01T16:34:53.697+08:00"},{"id":189015,"file_name":"1.svg","project_id":8541,"asset_id":7,"created_at":"2017-08-01T16:34:53.701+08:00","updated_at":"2017-08-01T16:34:53.701+08:00"},{"id":189016,"file_name":"2.png","project_id":8541,"asset_id":8,"created_at":"2017-08-01T16:34:53.704+08:00","updated_at":"2017-08-01T16:34:53.704+08:00"},{"id":189017,"file_name":"0.wav","project_id":8541,"asset_id":9,"created_at":"2017-08-01T16:34:53.706+08:00","updated_at":"2017-08-01T16:34:53.706+08:00"},{"id":189018,"file_name":"1.wav","project_id":8541,"asset_id":10,"created_at":"2017-08-01T16:34:53.708+08:00","updated_at":"2017-08-01T16:34:53.708+08:00"}]
橘蘋學習平台
橘蘋學習平台
我的作品
檢視專案頁
匯出
複製
匯入
刪除
下載 Android APP (APK)
截圖
1:1:1
1:1
full
幫助
用手機掃描下方 QRCode 進行安裝
或您也可以
下載 APK
到這台電腦
用手機掃描下方 QRCode 進行安裝
或您也可以
下載 APK
到這台電腦