Advertisement
redmasq

Quine Example

Mar 19th, 2018
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 1.38 KB | None | 0 0
  1. <html><head><title>Quine Example</title><meta name="author" content="redmasq"/></head><body><h1>Quine Example</h1><hr/>The html below the line should be able to be copied into a new file and produce the same result.<hr/><div style="font-family:monospace;white-space:pre-line" id="paradox">Something failed, requires javascript</div><script>(function(){var b=[49409,725927,639143,54148,644647,725892,639655,103340,732839,773],a=['','<html><head><title>Quine Example</title><meta name="author" content="redmasq"/></head><body><h1>Quine Example</h1><hr/>The html below the line should be able to be copied into a new file and produce the same result.<hr/><div style="font-family:monospace;white-space:pre-line" id="paradox">Something failed, requires javascript</div><script>(function(){var b=[',b.join(","),'],a=[',',b.join(","),','c="",d=0,e=3;for(var i=0;i<b.length;i++){do{d=b[i]%128;c+=d>31?String.fromCharCode(d):(a[d].replace(/\\/g,"\\\\"));b[i]=b[i]>>7;}while(d!=0&&--e);e=3;};document.getElementById("paradox").innerHTML=c.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")})();<','/script></body></html>'],c="",d=0,e=3;for(var i=0;i<b.length;i++){do{d=b[i]%128;c+=d>31?String.fromCharCode(d):(a[d].replace(/\\/g,"\\\\"));b[i]=b[i]>>7;}while(d!=0&&--e);e=3;};document.getElementById("paradox").innerHTML=c.replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;")})();</script></body></html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement