-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathipaddress.html
77 lines (63 loc) · 1.89 KB
/
ipaddress.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<!--
EVERYTHING IS PHYSICAL
EVERYTHING IS FRACTAL
EVERYTHING IS RECURSIVE
NO MONEY
MO MINING
NO PROPERTY
LOOK AT THE INSECTS
LOOK AT THE FUNGI
LANGUAGE IS HOW THE MIND PARSES REALITY
-->
<link href="data:image/x-icon;base64,AAABAAEAEBAQAAEABAAoAQAAFgAAACgAAAAQAAAAIAAAAAEABAAAAAAAgAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAAAP//AP///wANAP8A5Dz6ABueRwAAt/8A6BonABo86AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAREREREREREREREAAAEREREREQCIgREREd3dwAAB3d3d3d3d3d3d3d3d3d3d3d3d3VVVVVVVQAFVVAAVVVQIiBRAiIBEQIAIBECAAERAgAgFgIABmYCIiBmAiIGZgIiIGYCIgZmYCIAaIAAMzMzAAiIiIiIiIiIiIiIiIiIiIiIgAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA" rel="icon" type="image/x-icon" />
<!--Stop Google:-->
<META NAME="robots" CONTENT="noindex,nofollow">
<script src = "jscode/qrcode.js"></script>
</head>
<body>
<div id = "qrcode"></div>
<h1 id = "ipaddress"></h1>
<h1>
<a href = "index.html">
HOME
</a>
</h1>
<script>
globalurl = "http://localhost/"
if(innerHeight < innerWidth){
codesquaresize = innerHeight-50;
}
else{
codesquaresize = innerWidth-50;
}
qrcode = new QRCode(document.getElementById("qrcode"), {
text: globalurl,
width: codesquaresize,
height: codesquaresize,
colorDark : "#000000",
colorLight : "#ffffff",
correctLevel : QRCode.CorrectLevel.H
});
var httpc = new XMLHttpRequest();
httpc.onreadystatechange = function(){
if (this.readyState == 4 && this.status == 200) {
ipaddress = this.responseText;
globalurl = "http://" + ipaddress;
document.getElementById("ipaddress").innerHTML = globalurl;
qrcode.makeCode(globalurl);
}
};
httpc.open("GET", "getipaddress.php", true);
httpc.send();
</script>
<style>
h1{
font-size:6em;
}
</style>
</body>
</html>