[READ-ONLY] Mirror of https://github.com/probablykasper/limp. Programming language made in JS, for fun (unfinished) limp.kasper.space
language
0

Configure Feed

Select the types of activity you want to include in your feed.

Removed PHP

Kasper (Jul 13, 2019, 5:09 AM +0200) d6e1eb3c 8fc71924

+2 -48
+2 -2
index.html
··· 40 40 <div class="limp--log-clear"></div> 41 41 <textarea placeholder="Run JavaScript" rows="1" class="limp--input-js"></textarea> 42 42 </div> 43 - <script src="js/limp.js?r=<?=rand(0,999)?>"></script> 44 - <script src="js/script.limp?r=<?=rand(0,999)?>"></script> 43 + <script src="js/limp.js"></script> 44 + <script src="js/script.limp"></script> 45 45 </body> 46 46 </html>
-46
index.php
··· 1 - <!DOCTYPE html> 2 - <html> 3 - <head> 4 - <meta charset="utf-8"> 5 - <title>limp</title> 6 - <meta name="theme-color" content="#181821"> 7 - <!--Roboto--> <link href="https://fonts.googleapis.com/css?family=Roboto+Mono" rel="stylesheet"> 8 - <!--Favicon: http://realfavicongenerator.net --> 9 - <link rel="stylesheet" type="text/css" href="css/limp.css?r=<?=rand(0,999)?>"> 10 - </head> 11 - 12 - <body> 13 - <div class="limp--log"></div> 14 - <div class="limp--input"> 15 - <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script> 16 - <script> 17 - $("body").on("input", ".limp--input textarea", function() { 18 - var offset = this.offsetHeight - this.clientHeight; 19 - $(this).css("height", "auto").css("height", this.scrollHeight + offset); 20 - $(".limp--log").css("height", "calc(100% - 120px - "+$(this).height()+"px)"); // 100% - 40px - 36px - 20px - 40px 21 - }); 22 - $("body").on("keypress", ".limp--input textarea", function(e) { 23 - if (e.key == "Enter" && e.shiftKey == false && e.ctrlKey == false && e.altKey == false) { 24 - e.preventDefault(); 25 - if (this == document.querySelector(".limp--input-limp")) { 26 - eval(`limp(\`${this.value}\`)`); 27 - this.value = ""; 28 - } else { 29 - eval(this.value); 30 - this.value = ""; 31 - } 32 - $(".limp--input textarea").trigger("input"); 33 - } 34 - }); 35 - $("body").on("click", ".limp--log-clear", function() { 36 - document.getElementsByClassName("limp--log")[0].innerHTML = ""; 37 - }); 38 - </script> 39 - <textarea placeholder="Run limp" rows="1" class="limp--input-limp"></textarea> 40 - <div class="limp--log-clear"></div> 41 - <textarea placeholder="Run JavaScript" rows="1" class="limp--input-js"></textarea> 42 - </div> 43 - <script src="js/limp.js?r=<?=rand(0,999)?>"></script> 44 - <script src="js/script.limp?r=<?=rand(0,999999)?>"></script> 45 - </body> 46 - </html>