Guest User

Untitled

a guest
May 4th, 2021
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 5.00 KB | None | 0 0
  1. <html style="margin:0px;background-color:white;">
  2. <head>
  3.     <link href="https://fonts.googleapis.com/icon?family=Material+Icons"
  4.       rel="stylesheet">
  5.     <title>Cheter | HTML live editor</title>
  6.     <style>
  7.         #blahvlahblah{background-color:#e34141;color:white;position:fixed;right:0px;top:0px;font-family: monospace;padding:10px;margin:10px;border-radius:10px;transition:all 0.5s;opacity:0;}  
  8.    #hovertoshowtheultimateboxblahblahblahblahblahbla:hover #blahvlahblah{
  9.        opacity:1;display:block;
  10.         }
  11.     </style>
  12. </head>
  13. <body onload="Onload()" style="margin:10px;background-color:red;">
  14.    
  15.    
  16.     <div style="height:100%;overflow:scroll;background-color:#111;"><table style="height:100%;width:100%;border-width: 0px;margin:0px;border-width:0px;padding:0px;"><tr><td style="background-color:grey;border-width:0px;"> <span style="border-width:0px;width:100%;padding-top:5px;line-height: 40px;display:inline-block;background-color:grey;height:100%;color:white;text-align:center;font-family: monospace;font-size:15px;margin:1px;padding:0px;border-width:0px;border-color:#111;padding-top:5px;" id="no">1
  17.     </span></td><td style="margin:0px;padding:0px;border-width:0px;border-color:#111;border-width:0px;
  18. "><textarea style="border-width:0px;line-height: 40px;font-family:monospace;font-size:15px;
  19.    width:100%;min-height:100%;height:auto;background-color:white;color:grey;overflow: hidden; outline:none;" wrap="off" id="textfdjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjshrnufosgurosnbruosnugromsusgiugsinlginlnflnhdbjhvjbkjfkjfggfhjhffdfdkdkdfhkdskhfkjafdhfkeewietwqiuwtweiugfvbbvyubbvyygsyugrigf" onKeyPress="enterpressalert(event, this)"> </textarea></td></tr></table></div>
  20.  
  21. <div style="position:fixed;top:10px;left:-400px;background-color:#111;padding:10px;color:white;font-family:monospace;transition:all 2s;width:auto;overflow:hidden;" id="sgjiooooobnfdriojehbieohhhhhhhhhhhhhhhhhhj">
  22.     Unsuccessful in saving</div>
  23.    
  24.     <script>
  25.     function Onload(){
  26.        
  27.             document.getElementById("textfdjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjshrnufosgurosnbruosnugromsusgiugsinlginlnflnhdbjhvjbkjfkjfggfhjhffdfdkdkdfhkdskhfkjafdhfkeewietwqiuwtweiugfvbbvyubbvyygsyugrigf").value = localStorage.getItem("htmlcode");
  28.         setInterval(function(){
  29.             var text = document.getElementById("textfdjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjshrnufosgurosnbruosnugromsusgiugsinlginlnflnhdbjhvjbkjfkjfggfhjhffdfdkdkdfhkdskhfkjafdhfkeewietwqiuwtweiugfvbbvyubbvyygsyugrigf").value;
  30.            
  31.             document.getElementById("previewbfhskjbnfuiosbjionlsguilabfnuylwnzbfurafyuidywerhdfijovcuicvnznvrieaolnufbiaoelzyfnufggggggggggggggggggggggggggggggggggggggggggggggggggggggggggbxteaztezhdzklbtreykzbyf").innerHTML = text;
  32.        
  33.            
  34.         } , 200);
  35.        
  36.     }
  37.        
  38.        
  39.         function enterpressalert(e, textarea){
  40. var code = (e.keyCode ? e.keyCode : e.which);
  41. if(code == 13) {
  42.     //Enter keycode
  43. var lines=textarea.value.match(/\n/g).length + 1;
  44.     document.getElementById("no").innerHTML= "1";
  45.     var numberoflines = 0;
  46.    for ( numberoflines = 2; numberoflines < lines+1; numberoflines++) {
  47.       document.getElementById("no").innerHTML= document.getElementById("no").innerHTML +"<br>"+ numberoflines;
  48. }
  49. }
  50.     if(code == 8) {
  51.     //Enter keycode
  52. var lines=textarea.value.match(/\n/g).length + 1;
  53.     document.getElementById("no").innerHTML= "1";
  54.     var numberoflines = 0;
  55.    for ( numberoflines = 2; numberoflines < lines+1; numberoflines++) {
  56.       document.getElementById("no").innerHTML= document.getElementById("no").innerHTML +"<br>"+ numberoflines;
  57. }
  58.     }
  59. }
  60.    
  61.        
  62.        
  63.        
  64.         function saveitonLocal(){
  65.              var text = document.getElementById("textfdjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjshrnufosgurosnbruosnugromsusgiugsinlginlnflnhdbjhvjbkjfkjfggfhjhffdfdkdkdfhkdskhfkjafdhfkeewietwqiuwtweiugfvbbvyubbvyygsyugrigf").value;
  66.         if (typeof(Storage) !== "undefined") {
  67.     // Store
  68.     localStorage.setItem("htmlcode",text );
  69.     // Retrieve
  70.     document.getElementById("textfdjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjshrnufosgurosnbruosnugromsusgiugsinlginlnflnhdbjhvjbkjfkjfggfhjhffdfdkdkdfhkdskhfkjafdhfkeewietwqiuwtweiugfvbbvyubbvyygsyugrigf").value = localStorage.getItem("htmlcode");
  71.              document.getElementById("sgjiooooobnfdriojehbieohhhhhhhhhhhhhhhhhhj").innerHTML = "Successfully saved your file"; document.getElementById("sgjiooooobnfdriojehbieohhhhhhhhhhhhhhhhhhj").style.left = "0px";
  72.             setTimeout(function(){document.getElementById("sgjiooooobnfdriojehbieohhhhhhhhhhhhhhhhhhj").style.left = "-400px";} , 5000);
  73. } else {
  74.   document.getElementById("sgjiooooobnfdriojehbieohhhhhhhhhhhhhhhhhhj").innerHTML = "unsuccessful in saving your file";  document.getElementById("sgjiooooobnfdriojehbieohhhhhhhhhhhhhhhhhhj").style.left = "0px";
  75. }    
  76.            
  77.         }
  78.        
  79.     </script>
  80.     </body>
  81. </html>
  82.  
Add Comment
Please, Sign In to add comment