-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathlinkfeed.html
177 lines (157 loc) · 4.33 KB
/
linkfeed.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
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
<!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,AAABAAEAEBAQAAEABAAoAQAAFgAAACgAAAAQAAAAIAAAAAEABAAAAAAAgAAAAAAAAAAAAAAAEAAAAAAAAAAAAAAA/wAAAAD//wAA/wAAAAD/AP8A/wAApv8AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAFUAAARGAAIxFVUABEYAAjMRFQAARGYiIjMRAABERmZiIzEAAARERGZiMwAAAARERGYiAAAAAABERiL4PwAA+78AAPu/AAD33wAA9V8AAPVfAAD1XwAA998AAOADAADhAAAA4AAAAPAAAADwAAAA+AAAAP4AAAD/wAAA" rel="icon" type="image/x-icon" />
<!--Stop Google:-->
<META NAME="robots" CONTENT="noindex,nofollow">
<!--un-comment to add math: -->
<!--
<script src="https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.0/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script>
<script>
MathJax.Hub.Config({
tex2jax: {
inlineMath: [['$','$'], ['\\(','\\)']],
processEscapes: true,
processClass: "mathjax",
ignoreClass: "no-mathjax"
}
});// MathJax.Hub.Typeset();//tell Mathjax to update the math
</script>
-->
</head>
<body>
<div id = "header"><input id = "feedurlinput"/></div>
<div id = "feed"></div>
<script>
feed = [];
var httpc = new XMLHttpRequest();
httpc.onreadystatechange = function() {
if (this.readyState == 4 && this.status == 200) {
document.getElementById("feedurlinput").value = "";
feed = JSON.parse(this.responseText);
loadfeed();
}
};
httpc.open("GET", "fileloader.php?filename=data/linkfeed.txt", true);
httpc.send();
document.getElementById("feedurlinput").onchange = function(){
loadfeedurl(this.value);
}
function loadfeedurl(url){
document.getElementById("feed").innerHTML = "";
document.getElementById("feedurlinput").value = "";
var httpc666 = new XMLHttpRequest();
httpc666.onreadystatechange = function(){
if (this.readyState == 4 && this.status == 200) {
feed = JSON.parse(this.responseText);
loadfeed();
}
};
httpc666.open("GET", "fileloader.php?filename=" + url, true);
httpc666.send();
}
function loadfeed(){
for(var index = feed.length - 1;index >= 0;index--){
var newa = document.createElement("A");
newa.id = "a" + index.toString();
newa.className = "feedlink";
if(feed[index].href.length > 0){
newa.href = feed[index].href;
}
if(feed[index].src.length > 0){
var newimg = document.createElement("IMG");
newimg.src = feed[index].src;
newimg.alt = feed[index].text;
newa.appendChild(newimg);
newimg.onload = function(){
this.parentElement.style.height = this.height + "px";
}
newimg.className = "feedimage";
}
else{
newa.innerHTML = feed[index].text;
newa.style.height = "2em";
}
document.getElementById("feed").appendChild(newa);
}
}
</script>
<style>
body{
background-color:white;
overflow:hidden;
}
#header{
position:absolute;
left:0px;
right:0px;
top:0px;
height:80px;
background-color:black;
}
#feedurlinput{
width:80%;
height:50px;
border:solid;
border-color:#f9429e;
background-color:black;
font-size:26px;
font-family:courier;
color:#00ff00;
display:block;
margin:auto;
margin-top:5px;
}
#feed{
position:absolute;
left:0px;
right:0px;
top:100px;
bottom:0px;
overflow:scroll;
background-color:#404040;
}
.feedlink{
margin:auto;
margin-bottom:1em;
margin-top:1em;
display:block;
width:80%;
height:10em;
background-color:white;
overflow:scroll;
font-size:26px;
}
.feedlink .button{
cursor:pointer;
text-align:center;
border:solid;
border-radius:3px;
}
.feedimage{
max-width:100%;
display:block;
margin:auto;
}
.scrollbox{
overflow:scroll;
left:0px;
top:0px;
right:0px;
bottom:0px;
}
</style>
</body>
</html>