-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathindex.html
100 lines (92 loc) · 2.89 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
<!DOCTYPE html>
<html lang="en-us">
<head>
<meta charset="UTF-8">
<title>Webreader by sintrb</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" type="text/css" href="gh-pages/stylesheets/normalize.css" media="screen">
<!-- <link href='http://fonts.googleapis.com/css?family=Open+Sans:400,700' rel='stylesheet' type='text/css'>
-->
<link rel="stylesheet" type="text/css" href="gh-pages/stylesheets/stylesheet.css" media="screen">
<link rel="stylesheet" type="text/css" href="gh-pages/stylesheets/github-light.css" media="screen"></head>
<script type="text/javascript" src="js/jquery.js"></script>
<style type="text/css">
.demo{
text-align: center;
}
.demo .options{
display: block;
width: 10em;
margin: 5px auto;
}
.demo .phone{
display: block;
width: 320px;
height: 240px;
margin: 0 auto;
border: none;
}
</style>
<body>
<section class="page-header">
<h1 class="project-name">Webreader</h1>
<h2 class="project-tagline">A simple front-end reader framework.</h2>
<a href="https://github.com/sintrb/WebReader" class="btn">View on GitHub</a>
<a href="https://github.com/sintrb/WebReader/zipball/master" class="btn">Download .zip</a>
<a href="https://github.com/sintrb/WebReader/tarball/master" class="btn">Download .tar.gz</a>
</section>
<section class="main-content">
<h3>
<a id="welcome-to-github-pages" class="anchor" href="#welcome-to-github-pages" aria-hidden="true">
<span class="octicon octicon-link"></span>
</a>
Welcome to Webreader Demo.
</h3>
<p>
This is a demo page for
<a href="https://github.com/sintrb/WebReader">Webreader</a>
.
</p>
<div class="demo">
<select class="options">
<option value="320x240">320x240</option>
<option value="240x320">240x320</option>
<option value="480x320">480x320</option>
<option value="320x480">320x480</option>
<option value="800x480">800x480</option>
<option value="480x800">480x800</option>
</select>
<iframe src="reader.html" class="phone"></iframe>
<a href="reader.html" target="_blank">Open The Reader</a>
</div>
<h3>
<a id="support-or-contact" class="anchor" href="#support-or-contact" aria-hidden="true">
<span class="octicon octicon-link"></span>
</a>
Support or Contact
</h3>
<p>
Having trouble with Webreader? contact
<a href="mailto:[email protected]">[email protected]</a>
.
</p>
<footer class="site-footer">
<span class="site-footer-owner">
<a href="https://github.com/sintrb/WebReader">Webreader</a>
is maintained by
<a href="https://github.com/sintrb">sintrb</a>
.
</span>
</footer>
</section>
</body>
<script type="text/javascript">
+jQuery(function($) {
$(".options").change(function(event) {
var rs = /(.+)x(.+)/.exec($(".options").val());
$(".phone").css("width", rs[1]+"px");
$(".phone").css("height", rs[2]+"px");
});
}, jQuery);
</script>
</html>