Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html style="margin:0px;background-color:white;">
- <head>
- <link href="https://fonts.googleapis.com/icon?family=Material+Icons"
- rel="stylesheet">
- <title>Cheter | HTML live editor</title>
- <style>
- #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;}
- #hovertoshowtheultimateboxblahblahblahblahblahbla:hover #blahvlahblah{
- opacity:1;display:block;
- }
- </style>
- </head>
- <body onload="Onload()" style="margin:10px;background-color:red;">
- <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
- </span></td><td style="margin:0px;padding:0px;border-width:0px;border-color:#111;border-width:0px;
- "><textarea style="border-width:0px;line-height: 40px;font-family:monospace;font-size:15px;
- 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>
- <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">
- Unsuccessful in saving</div>
- <script>
- function Onload(){
- document.getElementById("textfdjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjshrnufosgurosnbruosnugromsusgiugsinlginlnflnhdbjhvjbkjfkjfggfhjhffdfdkdkdfhkdskhfkjafdhfkeewietwqiuwtweiugfvbbvyubbvyygsyugrigf").value = localStorage.getItem("htmlcode");
- setInterval(function(){
- var text = document.getElementById("textfdjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjshrnufosgurosnbruosnugromsusgiugsinlginlnflnhdbjhvjbkjfkjfggfhjhffdfdkdkdfhkdskhfkjafdhfkeewietwqiuwtweiugfvbbvyubbvyygsyugrigf").value;
- document.getElementById("previewbfhskjbnfuiosbjionlsguilabfnuylwnzbfurafyuidywerhdfijovcuicvnznvrieaolnufbiaoelzyfnufggggggggggggggggggggggggggggggggggggggggggggggggggggggggggbxteaztezhdzklbtreykzbyf").innerHTML = text;
- } , 200);
- }
- function enterpressalert(e, textarea){
- var code = (e.keyCode ? e.keyCode : e.which);
- if(code == 13) {
- //Enter keycode
- var lines=textarea.value.match(/\n/g).length + 1;
- document.getElementById("no").innerHTML= "1";
- var numberoflines = 0;
- for ( numberoflines = 2; numberoflines < lines+1; numberoflines++) {
- document.getElementById("no").innerHTML= document.getElementById("no").innerHTML +"<br>"+ numberoflines;
- }
- }
- if(code == 8) {
- //Enter keycode
- var lines=textarea.value.match(/\n/g).length + 1;
- document.getElementById("no").innerHTML= "1";
- var numberoflines = 0;
- for ( numberoflines = 2; numberoflines < lines+1; numberoflines++) {
- document.getElementById("no").innerHTML= document.getElementById("no").innerHTML +"<br>"+ numberoflines;
- }
- }
- }
- function saveitonLocal(){
- var text = document.getElementById("textfdjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjshrnufosgurosnbruosnugromsusgiugsinlginlnflnhdbjhvjbkjfkjfggfhjhffdfdkdkdfhkdskhfkjafdhfkeewietwqiuwtweiugfvbbvyubbvyygsyugrigf").value;
- if (typeof(Storage) !== "undefined") {
- // Store
- localStorage.setItem("htmlcode",text );
- // Retrieve
- document.getElementById("textfdjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjshrnufosgurosnbruosnugromsusgiugsinlginlnflnhdbjhvjbkjfkjfggfhjhffdfdkdkdfhkdskhfkjafdhfkeewietwqiuwtweiugfvbbvyubbvyygsyugrigf").value = localStorage.getItem("htmlcode");
- document.getElementById("sgjiooooobnfdriojehbieohhhhhhhhhhhhhhhhhhj").innerHTML = "Successfully saved your file"; document.getElementById("sgjiooooobnfdriojehbieohhhhhhhhhhhhhhhhhhj").style.left = "0px";
- setTimeout(function(){document.getElementById("sgjiooooobnfdriojehbieohhhhhhhhhhhhhhhhhhj").style.left = "-400px";} , 5000);
- } else {
- document.getElementById("sgjiooooobnfdriojehbieohhhhhhhhhhhhhhhhhhj").innerHTML = "unsuccessful in saving your file"; document.getElementById("sgjiooooobnfdriojehbieohhhhhhhhhhhhhhhhhhj").style.left = "0px";
- }
- }
- </script>
- </body>
- </html>
Add Comment
Please, Sign In to add comment