-
Notifications
You must be signed in to change notification settings - Fork 1
/
component.html
110 lines (99 loc) · 3.54 KB
/
component.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
<!DOCTYPE HTML>
<html>
<head>
<title>部件學習 | 篆來篆去</title>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="stylesheet" href="assets/css/main.css" />
<link rel="stylesheet" href="assets/css/challengeButton.css">
<style>
button {
background-color: rosybrown;
}
.button.back {
margin-top: 30px;
top: 20px;
left: 10px;
}
.column {
background-color: transparent;
background-size: 100%;
width:33.33%;
background-attachment: fixed;
float: left;
text-align: center;
padding-bottom: 10px;
height: auto;
text-align: center;
}
</style>
</head>
<body class="subpage">
<!-- Header -->
<header id="header" class="alt">
<div class="logo"><a href="index.html">篆來篆去</a></div>
<a href="#menu"><span>Menu</span></a>
</header>
<!-- Nav -->
<nav id="menu">
<ul class="links">
<li><a href="index.html">首頁</a></li>
<li><a href="generic.html">作品詳介</a></li>
<li><a href="index.html#two">開始學習</a></li>
</ul>
</nav>
<!-- Content -->
<!--
Note: To show a background image, set the "data-bg" attribute below
to the full filename of your image. This is used in each section to set
the background image.
-->
<section id="post" class="wrapper bg-img" data-bg="banner2.jpg">
<div id="canvas" class="inner">
<article class="box" style="padding-bottom: 30px;">
<header align="center">
<h2>部件學習</h2>
<p style="font-weight: bold;">題目有五個小篆字型,請您觀察它們共同的偏旁或部件,輸入其現代漢字寫法</p>
</header>
<div class="row" style="margin: 0 auto;">
<div class="column" style="padding-left: 0px;">
<div><a href="quiz_component.html?level=1"><button data-hover="挑戰!"><p>部 首</p></button></a></div>
</div>
<div class="column" style="padding-left: 0px;">
<div><a href="quiz_component.html?level=2"><button data-hover="挑戰!"><p>日 常</p></button></a></div>
</div>
<div class="column" style="padding-left: 0px;">
<div><a href="quiz_component.html?level=3"><button data-hover="挑戰!"><p>宇 宙</p></button></a></div>
</div>
</div>
<footer class="actions" align="center">
<a href="index.html#two" class="button back">回遊戲選單</a>
</footer>
</article>
</div>
</section>
<!-- Scripts -->
<script type="text/javascript">
function adjust_padding() {
var wheight = window.innerHeight;
var heading = document.getElementById("post");
var canvas = document.getElementById("canvas");
var eheight = canvas.offsetHeight;
var to_pad = wheight - eheight - 210;
if (to_pad <= 120)
to_pad = 120;
//alert(to_pad)
var to_pad_str = to_pad.toString()+"px";
heading.style["padding-bottom"] = to_pad_str;
window.scrollTo(0,0);
}
adjust_padding();
</script>
<script src="assets/js/jquery.min.js"></script>
<script src="assets/js/jquery.scrolly.min.js"></script>
<script src="assets/js/jquery.scrollex.min.js"></script>
<script src="assets/js/skel.min.js"></script>
<script src="assets/js/util.js"></script>
<script src="assets/js/main.js"></script>
</body>
</html>