Skip to content

Commit 7eb2dea

Browse files
committed
Create gh-pages branch via GitHub
1 parent 468834d commit 7eb2dea

File tree

5 files changed

+472
-42
lines changed

5 files changed

+472
-42
lines changed

images/arrow-down.png

423 Bytes
Loading

images/octocat-small.png

570 Bytes
Loading

index.html

Lines changed: 31 additions & 42 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,36 @@
1-
<!DOCTYPE html>
1+
<!doctype html>
22
<html>
33
<head>
4-
<meta charset='utf-8'>
4+
<meta charset="utf-8">
55
<meta http-equiv="X-UA-Compatible" content="chrome=1">
6-
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
7-
<link href='https://fonts.googleapis.com/css?family=Architects+Daughter' rel='stylesheet' type='text/css'>
8-
<link rel="stylesheet" type="text/css" href="stylesheets/stylesheet.css" media="screen" />
9-
<link rel="stylesheet" type="text/css" href="stylesheets/pygment_trac.css" media="screen" />
10-
<link rel="stylesheet" type="text/css" href="stylesheets/print.css" media="print" />
6+
<title>Java SE 6 技術手冊 by JustinSDK</title>
117

8+
<link rel="stylesheet" href="stylesheets/styles.css">
9+
<link rel="stylesheet" href="stylesheets/pygment_trac.css">
10+
<script src="javascripts/scale.fix.js"></script>
11+
<meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
1212
<!--[if lt IE 9]>
1313
<script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
1414
<![endif]-->
15-
16-
<title>Java SE 6 技術手冊 by JustinSDK</title>
1715
</head>
18-
1916
<body>
20-
<header>
21-
<div class="inner">
22-
<h1>Java SE 6 技術手冊</h1>
23-
<h2>Java SE 6 技術手冊</h2>
24-
<a href="https://github.com/JustinSDK/JavaSE6Tutorial" class="button"><small>View project on</small>GitHub</a>
25-
</div>
26-
</header>
27-
28-
<div id="content-wrapper">
29-
<div class="inner clearfix">
30-
<section id="main-content">
31-
<h1>
17+
<div class="wrapper">
18+
<header>
19+
<h1 class="header">Java SE 6 技術手冊</h1>
20+
<p class="header">Java SE 6 技術手冊</p>
21+
22+
<ul>
23+
<li class="download"><a class="buttons" href="https://github.com/JustinSDK/JavaSE6Tutorial/zipball/master">Download ZIP</a></li>
24+
<li class="download"><a class="buttons" href="https://github.com/JustinSDK/JavaSE6Tutorial/tarball/master">Download TAR</a></li>
25+
<li><a class="buttons github" href="https://github.com/JustinSDK/JavaSE6Tutorial">View On GitHub</a></li>
26+
</ul>
27+
28+
<p class="header">This project is maintained by <a class="header name" href="https://github.com/JustinSDK">JustinSDK</a></p>
29+
30+
31+
</header>
32+
<section>
33+
<h1>
3234
<a name="java-se-6-%E6%8A%80%E8%A1%93%E6%89%8B%E5%86%8A" class="anchor" href="#java-se-6-%E6%8A%80%E8%A1%93%E6%89%8B%E5%86%8A"><span class="octicon octicon-link"></span></a>Java SE 6 技術手冊</h1>
3335

3436
<p>《Java SE 6 技術手冊》(以及它先前的版本)是以 <a href="http://openhome.cc">我的網站</a> 中早期學習 Java 的筆記 <a href="http://openhome.cc/Gossip/JavaGossip-V1/">JavaGossip1</a><a href="http://openhome.cc/Gossip/JavaGossip-V2/">JavaGossip2</a> 為基礎,記錄著我學習 Java 的一些心得。</p>
@@ -255,26 +257,13 @@ <h1>
255257
</ul>
256258
</li>
257259
</ul>
258-
</section>
259-
260-
<aside id="sidebar">
261-
<a href="https://github.com/JustinSDK/JavaSE6Tutorial/zipball/master" class="button">
262-
<small>Download</small>
263-
.zip file
264-
</a>
265-
<a href="https://github.com/JustinSDK/JavaSE6Tutorial/tarball/master" class="button">
266-
<small>Download</small>
267-
.tar.gz file
268-
</a>
269-
270-
<p class="repo-owner"><a href="https://github.com/JustinSDK/JavaSE6Tutorial"></a> is maintained by <a href="https://github.com/JustinSDK">JustinSDK</a>.</p>
271-
272-
<p>This page was generated by <a href="https://pages.github.com">GitHub Pages</a> using the Architect theme by <a href="https://twitter.com/jasonlong">Jason Long</a>.</p>
273-
</aside>
274-
</div>
260+
</section>
261+
<footer>
262+
<p><small>Hosted on <a href="http://pages.github.com">GitHub Pages</a> using the Dinky theme</small></p>
263+
</footer>
275264
</div>
276-
277-
<script type="text/javascript">
265+
<!--[if !IE]><script>fixScale(document);</script><![endif]-->
266+
<script type="text/javascript">
278267
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
279268
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
280269
</script>
@@ -286,4 +275,4 @@ <h1>
286275
</script>
287276

288277
</body>
289-
</html>
278+
</html>

javascripts/scale.fix.js

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
fixScale = function(doc) {
2+
3+
var addEvent = 'addEventListener',
4+
type = 'gesturestart',
5+
qsa = 'querySelectorAll',
6+
scales = [1, 1],
7+
meta = qsa in doc ? doc[qsa]('meta[name=viewport]') : [];
8+
9+
function fix() {
10+
meta.content = 'width=device-width,minimum-scale=' + scales[0] + ',maximum-scale=' + scales[1];
11+
doc.removeEventListener(type, fix, true);
12+
}
13+
14+
if ((meta = meta[meta.length - 1]) && addEvent in doc) {
15+
fix();
16+
scales = [.25, 1.6];
17+
doc[addEvent](type, fix, true);
18+
}
19+
20+
};

0 commit comments

Comments
 (0)