-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
111 lines (103 loc) · 3.82 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
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<!--<link href='http://fonts.googleapis.com/css?family=Lato&subset=latin,latin-ext' rel='stylesheet' type='text/css'>-->
<!--<link href='https://fonts.googleapis.com/css?family=Lato:900' rel='stylesheet' type='text/css'>-->
<link href='https://fonts.googleapis.com/css?family=Lato:900,700&subset=latin,latin-ext' rel='stylesheet' type='text/css'>
<link href='http://fonts.googleapis.com/css?family=Righteous&subset=latin,latin-ext' rel='stylesheet' type='text/css'>
<script src="http://code.jquery.com/jquery-1.11.3.min.js"></script>
<script src="http://code.jquery.com/jquery-migrate-1.2.1.min.js"></script>
<script src="http://html2canvas.hertzen.com/build/html2canvas.js"></script>
<script src="http://s3-ap-northeast-1.amazonaws.com/justfont-user-script/jf-37020.js"></script>
<script>
(window.onpopstate = function () {
var match,
pl = /\+/g, // Regex for replacing addition symbol with a space
search = /([^&=]+)=?([^&]*)/g,
decode = function (s) { return decodeURIComponent(s.replace(pl, " ")); },
query = window.location.search.substring(1);
var qs = {};
while (match = search.exec(query))
qs[decode(match[1])] = decode(match[2]);
var title = qs['title'] == null ? "OPEN" : qs['title'];
var summary = qs['summary'] == null ? "S O U R C E" : qs['summary'];
var title2 = qs['title2'] == null ? " 開源 " : " " + qs['title2'] + " ";
var summary2 = qs['summary2'] == null ? " 就是力量。" : " " + qs['summary2'] + "。";
$(function() {
$("#title" ).text(title);
$("#summary" ).text(summary);
$("#title2" ).text(title2);
$("#summary2" ).text(summary2);
html2canvas($("#taiwanup"), {
onrendered: function(canvas) {
var snapshot = $("#taiwanup-snapshot");
snapshot.empty();
$("<img />", { src: canvas.toDataURL("image/png") }).appendTo(snapshot);
}
});
});
})();
</script>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-69691777-1', 'auto');
ga('send', 'pageview');
</script>
<style>
@import url(http://fonts.googleapis.com/earlyaccess/cwtexhei.css);
body {
background: #fff;
font-size: 4em;
font-family: Lato, 'sourcehansans-tc', 'cwTeXFangSong';
}
#taiwanup {
background: #fff;
}
.clip {
background: url(rainbow3-1.png);
background-size: cover;
background-repeat: no-repeat;
background-position: center center;
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
font-family: Lato, 'sourcehansans-tc', 'cwTeXFangSong';
font-style: bold;
font-size: 3em;
}
.center {
text-align: center;
}
.summary {
margin-top: -0.7em;
}
.section2 {
}
.title2 {
white-space: pre;
}
.summary2 {
position: relative;
top: -0.5em;
white-space: pre;
}
</style>
</head>
<title>ONE TAIWAN</title>
<body>
<div id="taiwanup" class="center">
<div> </div>
<div><span id="title" class="clip">OPEN</span></div>
<div id="summary" class="summary">S O U R C E</div>
<div class="section2" style="text-align: center;">
<div class="section2-inner" style="display: inline-block; text-align: left;">
<span id="title2" style="font-size: 2em; font-style: bold;"> 開源 </span><br/>
<span id="summary2" class="summary2"> 就是力量。</span>
</div>
<div> </div>
</div>
<div id="taiwanup-snapshot"></div>
</body>
</html>