-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathindex.html
124 lines (100 loc) · 4.23 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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
<!DOCTYPE html>
<html>
<head>
<title>Markdown Previewer</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link type="text/css" href="css/bootstrap.min.css" rel="stylesheet" media="all" />
<link type="text/css" href="css/markdown-previewer.css" rel="stylesheet" media="all" />
<script src="js/jquery-1.9.1.min.js"></script>
<script src="js/showdown.js"></script>
<script src="js/rundown.js"></script>
<script src="js/ZeroClipboard.min.js"></script>
<script src="js/markdown-previewer.js"></script>
</head>
<body>
<div id="wrap">
<div class="container">
<div class="page-header">
<h1>
<span id="filenameLabel">Markdown Previewer</span>
<small><span id="lastModifiedLabel"></span></small>
</h1>
</div>
<div id="dropArea" class="hero-unit">
<h1 style="margin-top: 0px; margin-left: -10px; margin-right: -10px;">Drop your markdown file here</h1>
<h3>and edit the file with your Favorite text editors!</h3>
</div>
<div class="row">
<div id="index" class="span3">
<ul id="headerList" class="nav nav-tabs nav-stacked">
</ul>
</div>
<div class="span9">
<ul class="nav nav-tabs" style="margin-bottom: 0">
<li id="view_preview" class="active">
<a id="tab_preview">preview</a>
</li>
<li id="view_html">
<a id="tab_html">HTML</a>
</li>
</ul>
<div class="viewArea" id="renderingArea"></div>
<div class="viewArea" id="htmlArea" style="display: none">
<p style="text-align: right">
<button class="btn btn-small" id="copyHtml">Copy HTML</button>
</p>
<pre id="htmlSourceArea"></pre>
</div>
</div>
</div>
<textarea id="READMEmd" style="display: none;">
Introduction
============
Markdown Previewer provides Markdown (.md) and RDoc (.rdoc) online preview without any AJAX requests.
You can edit the previewing file with your favorite text editors and Previewer reloads & re-rendering the file automatically.
Tested Web Browsers
-------------------
- Google Chrome 24 (Mac OS X / Ubuntu / Windows)
- Safari 6.0.2 (Mac OS X)
- Mozilla Firefox 18.0.2 (Mac OS X / Ubuntu / Windows)
Copyright & License
-----------------------
© 2013 KOMIYA Atsushi.
MIT License
Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:
The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Acknowledgements
----------------
Markdown Previewer makes use of the following 3rd-party libraries.
- [showdown.js](https://github.com/coreyti/showdown) for Markdown rendering.
- [rundown.js](https://github.com/rubyworks/rundown) for RDoc rendering.
- [Twitter Bootstrap](http://twitter.github.com/bootstrap/)
- [ZeroClipboard](https://github.com/jonrohan/ZeroClipboard)
</textarea>
</div>
<div id="push"></div>
</div>
<div id="footer">
<div class="container">
<p class="muted credit">
© 2013 <a href="http://k11i.biz/">KOMIYA Atsushi</a>. / <a href="http://twitter.com/komiya_atsushi">@komiya_atsushi</a>
</p>
</div>
</div>
<a href="https://github.com/komiya-atsushi/markdown-previewer"><img style="position: absolute; top: 0; right: 0; border: 0;" src="https://s3.amazonaws.com/github/ribbons/forkme_right_gray_6d6d6d.png" alt="Fork me on GitHub"></a>
</body>
</html>