-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathindex.html
80 lines (68 loc) · 2.42 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
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html lang="ja">
<head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<meta http-equiv="content-language" content="ja">
<title>AutoReloader.js</title>
<meta http-equiv="content-script-type" content="text/javascript">
<meta http-equiv="content-style-type" content="text/css">
<!-- <link rel="stylesheet" type="text/css" href="common.css">-->
<link rel="stylesheet" type="text/css" href="style.css">
<!-- <script type="text/javascript" src="main.js"></script>-->
</head>
<body>
<div id="container">
<h1>AutoReloader.js</h1>
<p id="description">auto refresh your browser, for developers</p>
<h2>what is this ?</h2>
<p>
this auto refresh browser library.<br>
please open this file via HTTP<br>
for example http://localhost/AutoReloader-js/index.html<br>
and edit this file !
</p>
<h2>usage</h2>
<p>put below code to page bottom</p>
<pre>
<script type="text/javascript" src="auto-reloader.js"></script></pre>
<h3>multiple file watching</h3>
<p>want to watching css, js and swf ? please use AutoReloader.add()</p>
<pre>
<script type="text/javascript">
AutoReloader.add(
"style.css", "index.js", "animation.swf"
);
</script></pre>
<h3>watch all CSS files</h3>
<p>when use AutoReloader.watchCSS(), all CSS files are watched.</p>
<pre>
<script type="text/javascript">
AutoReloader.watchCSS();
</script></pre>
<h3>watch all JavaScript files</h3>
<p>when use AutoReloader.watchJS(), all JavaScript files are watched.</p>
<pre>
<script type="text/javascript">
AutoReloader.watchJS();
</script></pre>
<h3>compatibility</h3>
<ul>
<li>Internet Explorer 6-8</li>
<li>Firefox</li>
<li>Google Chrome</li>
<li>Safari</li>
<li>Mobile Safari</li>
</ul>
<h3>source code on GitHub</h3>
<p><a href="https://github.com/tanabe/AutoReloader-js">AutoReloader-js</a></p>
<h3>follow me</h3>
<p><a href="http://twitter.com/tanabe/">@tanabe</a></p>
</div>
<script type="text/javascript" src="auto-reloader.js"></script>
<script type="text/javascript">
AutoReloader.watchCSS();
AutoReloader.watchJS();
</script>
</body>
</html>