-
Notifications
You must be signed in to change notification settings - Fork 7
/
index.html
136 lines (108 loc) · 3.3 KB
/
index.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
<!DOCTYPE html>
<html>
<head>
<meta name="description" content="Marble Run Development Documentation">
<meta name="author" content="Eberhard Gräther">
<meta name="author" content="Mathias Paumgarten">
<meta name="author" content="David Strauß">
<meta name="author" content="Matthias Hempt">
<meta name="author" content="Nicola Lieser">
<meta charset="utf-8">
<title>Marble Run Development Documentation</title>
<style>
html, body {
width: 100%;
height: 100%;
}
body {
margin: 0;
padding: 0;
background: #333;
}
h1 {
font-family: Georgia, "Times New Roman", Times, serif;
text-align: center;
font-size: 25px;
color:#EAEF05;
font-weight: normal;
margin-bottom: 50px;
}
h2 {
font-weight: normal;
font-family: Georgia, "Times New Roman", Times, serif;
font-size: 18px;
color:#EAEF05;
margin-bottom: 0px;
}
p {
color: #CCC;
font-family: Verdana, Geneva, sans-serif;
font-size: 13px;
}
span {
color: #999999;
font-family: Verdana, Geneva, sans-serif;
font-size: 10px;
}
div#wrapper {
width: 550px;
margin: 0 auto;
}
ul {
list-style-type: none;
}
.photoCaption {
margin-bottom: 5px;
}
</style>
<script type="text/javascript" src="http://marblerun.tumblr.com/api/read/json"></script>
<script type="text/javascript">
window.onload = function() {
var content = '';
for (var i = 0; i < tumblr_api_read.posts.length; i++) {
var post = tumblr_api_read.posts[i];
switch (post.type) {
case 'photo':
content += "<li><h2>Photos</h2>";
content += "<span>" + post["date"] + "</span>";
console.log(post);
if (post.photos.length) {
for (var j = 0; j < post.photos.length; j++) {
content += '<p class="photoCaption">' + post.photos[j]['caption'] + '</p>';
content += '<img src="' + post.photos[j]['photo-url-500'] + '" alt="' + post.photos[i]['caption'] + '">';
}
} else {
content += '<p class="photoCaption">' + post['photo-caption'] + '</p>';
content += '<img src="' + post['photo-url-500'] + '" alt="' + post['photo-caption'] + '">';
}
break;
default:
content += "<li><h2>" + post["regular-title"] + "</h2>";
content += "<span>" + post["date"] + "</span>";
content += post["regular-body"];
break;
}
content += "</li>";
}
document.getElementById('posts').innerHTML = content;
};
</script>
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-4308722-5']);
_gaq.push(['_trackPageview']);
(function() {
var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
})();
</script>
</head>
<body>
<div id="wrapper">
<h1>Marble Run Development Documentation</h1>
<ul id="posts">
</ul>
</div>
</body>
</html>