forked from MrOrz/webdev
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
67 lines (62 loc) · 1.88 KB
/
Copy pathindex.html
File metadata and controls
67 lines (62 loc) · 1.88 KB
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
<!DOCTYPE HTML>
<html lang="en-US">
<head>
<meta charset="UTF-8">
<title>WebDev Tutorial</title>
<link rel="stylesheet" href="css/main.css">
<link rel="stylesheet" href="css/styles.css">
<style type="text/css">
#reveal{
position: absolute;
top: 50%;
left: 50%;
width: 1000px; margin-left: -500px;
height: 200px; margin-top: -130px;
text-align: center;
}
#reveal h1{
font-size: 60px;
}
#reveal h2{
font-size: 25px;
color: #ccc;
text-shadow: 0 2px #444;
}
#reveal p{
margin-top: 20px;
font-size: 14px;
}
</style>
</head>
<body id="reveal">
<h1>Web Frontend Programming</h1>
<h2>http://mrorz.github.com/webdev/</h2>
<ul class="nav">
<li><a href="html.html">HTML</a></li>
<li><a href="css.html">CSS</a></li>
<li><a href="js.html">Javascript</a></li>
<li><a href="advancedjs.html">Advanced JS</a></li>
</ul>
<p>先說我沒時間測試 Google Chrome 以外的瀏覽器。</p>
<script type="text/javascript">
var supports3DTransforms =
document.body.style.perspectiveProperty !== undefined ||
document.body.style.WebkitPerspective !== undefined ||
document.body.style.MozPerspective !== undefined ||
document.body.style.msPerspective !== undefined,
linkify = function() {
if( supports3DTransforms ) {
var nodes = document.querySelectorAll( '#reveal a' );
for( var i = 0, len = nodes.length; i < len; i++ ) {
var node = nodes[i];
if( node.textContent && !node.querySelector( 'img' ) && ( !node.className || !( node.classList.contains('roll') ) ) ) {
node.classList.add( 'roll' );
node.innerHTML = '<span data-title="'+ node.text +'">' + node.innerHTML + '</span>';
}
}
}
};
linkify();
</script>
</body>
</html>