forked from opensourcehk/kaidemo
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
109 lines (103 loc) · 3.92 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
<html>
<head>
<title>自由香港楷書 Web Font 示範</title>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="description" content="自由香港楷書 Web Font 示範">
<meta name="author" content="Open Source Hong Kong">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
<link href="css/template.css" rel="stylesheet">
<style>
@font-face {
font-family: freehkfonts;
src: url(Free-HK-Kai_4700.ttf);
}
div.bigfont {
font-size: 48px;
}
#footer {
font-size: 24px;
}
textarea.bigfont {
font-size: 48px;
}
.freehkkai {
font-family: freehkfonts;
}
</style>
</head>
<body>
<nav class="navbar navbar-inverse navbar-fixed-top">
<div class="container">
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="#"><span class="freehkkai">自由香港楷書示範</span></a>
</div>
<div id="navbar" class="collapse navbar-collapse navbar-right">
<ul class="nav navbar-nav freehkkai">
<li><a href="https://freehkfonts.opensource.hk">有關自由香港字型</a></li>
</ul>
</div>
</div>
</nav>
<!--- Content --->
<div class="container">
<div class="row">
<div class="col-sm-12 col-lg-12 freehkkai bigfont">
自由香港楷書
</div>
</div>
</div>
<div class="container">
<div class="row">
<div class="col-md-12 col-lg-12 form-group">
<textarea rows="4" class="form-control freehkkai bigfont" id="hk">
歡迎試打自由香港楷書
常見例子:告 房 電 滋 妙
</textarea>
</div>
</div>
<div class="row">
<div class="col-sm-12 col-lg-12 bigfont">
系統預設顯示字體
</div>
</div>
<div class="row">
<div class="col-sm-12 col-lg-12 bigfont" id="original">
</div>
</div>
<div class="row">
<div class="col-md-12" id="footer">
<span class="freehkkai">鳴謝</span> Credit:<br />
<span class="freehkkai">字型團隊:<a href="https://freehkfonts.opensource.hk">自由香港字型</a></span><br />
<span class="freehkkai">雲端寄存:</span><a href="https://www.udomain.hk/">UDomain Web Hosting</a><br />
<span class="freehkkai">技術支援:</span><a href="https://opensource.hk">Open Source Hong Kong</a><br />
<span class="freehkkai">原始碼:</span><a href="https://github.com/opensourcehk/kaidemo"><span class="freehkkai">本網站原始碼</span> Source Code</a> (License: General Public License 3.0)
</div>
</div>
</div>
<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','https://www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-47867649-10', 'auto');
ga('send', 'pageview');
</script>
<script src="https://code.jquery.com/jquery-3.1.1.min.js" integrity="sha256-hVVnYaiADRTO2PzUGmuLJr8BLUSjGIZsDYGmIJLv2b8=" crossorigin="anonymous"></script>
<!-- Latest compiled and minified JavaScript -->
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script>
<script>
$("#hk").keyup( function() {
document.getElementById("original").innerHTML = $(this).val().replace(/\n/g, '<br />');
});
$("#hk").trigger("keyup");
</script>
</body>
</html>