summaryrefslogtreecommitdiff
path: root/public/index.ejs
blob: 2a80d882955fea97e45a6f6c1f3a267e3e60fa95 (plain)
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
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <meta name="mobile-web-app-capable" content="yes">
    <meta name="description" content="Realtime collaborative markdown notes on all platforms.">
    <meta name="author" content="jackycute">
    <title>HackMD - Collaborative notes</title>
    <link rel="icon" type="image/png" href="/favicon.png">
    <link rel="apple-touch-icon" href="/apple-touch-icon.png">

    <!-- Bootstrap core CSS -->
    <% if(useCDN) { %>
    <link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/bootstrap/3.3.2/css/bootstrap.min.css">
    <link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/font-awesome/4.3.0/css/font-awesome.min.css">
	<link rel="stylesheet" href="//cdnjs.cloudflare.com/ajax/libs/bootstrap-social/4.9.0/bootstrap-social.min.css">
	<% } else { %>
	<link rel="stylesheet" href="/vendor/bootstrap/css/bootstrap.min.css">
	<link rel="stylesheet" href="/vendor/font-awesome/css/font-awesome.min.css">
	<link rel="stylesheet" href="/css/bootstrap-social.css">
	<% } %>
    <link rel="stylesheet" href="/vendor/select2/select2.css">
    <link rel="stylesheet" href="/vendor/select2/select2-bootstrap.css">
    <!-- Custom styles for this template -->
    <link rel="stylesheet" href="/css/cover.css">
    <link rel="stylesheet" href="/css/site.css">
</head>

<body>
    <div class="site-wrapper">
        <div class="site-wrapper-inner">
            <div class="cover-container">

                <div class="masthead clearfix">
                    <div class="inner">
                        <h3 class="masthead-brand"></h3>
                        <nav>
                            <ul class="nav masthead-nav">
                                <li class="ui-home active"><a href="#">Home</a>
                                </li>
                                <li class="ui-history"><a href="#">History</a>
                                </li>
                                <li class="ui-releasenotes"><a href="#">Release Notes</a>
                                </li>
                            </ul>
                        </nav>
                    </div>
                </div>

                <div id="home" class="section">
                    <div class="inner cover">
                        <h1 class="cover-heading"><i class="fa fa-file-text"></i> HackMD</h1>
                        <p class="lead">
                            Realtime collaborative markdown notes on all platforms.
                        </p>
                        <a type="button" class="btn btn-lg btn-success ui-signin" data-toggle="modal" data-target=".signin-modal" style="display:none;">Sign In</a>
                        <div class="ui-or" style="display:none;">Or</div>
                        <p class="lead">
                            <a href="/new" class="btn btn-lg btn-default">Start new note</a>
                        </p>
                        <a href="/features">See all features here <i class="fa fa-info-circle"></i></a>
                        <br> Share note via the links <i class="fa fa-link"></i> directly!
                    </div>
                    <br>
                </div>

                <div id="history" class="section" style="display:none;">
                    <div class="ui-signin">
                        <h4>
                            <a type="button" class="btn btn-success" data-toggle="modal" data-target=".signin-modal">Sign In</a> to get own history!
                        </h4>
                        <p>Below are history from browser</p>
                    </div>
                    <div class="ui-signout" style="display:none;">
                        <h4 class="ui-welcome">Welcome! <span class="ui-name"></span></h4>
                        <a href="/new" class="btn btn-default">Start new note</a> Or
                        <a href="#" class="btn btn-danger ui-logout">Sign Out</a>
                        <br>
                        <br>
                        <a href="/features">See all features here <i class="fa fa-info-circle"></i></a>
                        <br> Share note via the links <i class="fa fa-link"></i> directly!
                    </div>
                    <hr>
                    <form class="form-inline">
                        <div class="form-group" style="vertical-align: bottom;">
                            <input class="form-control ui-use-tags" style="min-width:172px;max-width:344px;" />
                        </div>
                        <div class="form-group">
                            <input class="search form-control" placeholder="Search anything..." />
                        </div>
                        <a href="#" class="sort btn btn-default" data-sort="text" title="Sort by title">
                        Title
                        </a>
                        <a href="#" class="sort btn btn-default" data-sort="timestamp" title="Sort by time">
                        Time
                        </a>
                        <span class="hidden-xs hidden-sm">
                            <a href="#" class="btn btn-default ui-save-history" title="Export history"><i class="fa fa-save"></i></a>
                            <span class="btn btn-default btn-file ui-open-history" title="Import history">
                                <i class="fa fa-folder-open-o"></i><input type="file" />
                            </span>
                        <a href="#" class="btn btn-default ui-clear-history" title="Clear history" data-toggle="modal" data-target=".delete-modal"><i class="fa fa-trash-o"></i></a>
                        </span>
                        <a href="#" class="btn btn-default ui-refresh-history" title="Refresh history"><i class="fa fa-refresh"></i></a>
                    </form>
                    <h4 class="ui-nohistory" style="display:none;">
                        No history
                    </h4>
                    <a href="#" class="btn btn-primary ui-import-from-browser" style="display:none;">Import from browser</a>
                    <ul id="history-list" class="list">
                    </ul>
                </div>
                <div id="releasenotes" class="section" style="display:none;">
                    <div id="template" style="display:none;">
                        {{#each release}}
                        <div class="inner cover">
                            <h5 class="cover-heading">
                                <div class="text-left">
                                   <i class="fa fa-tag"></i> {{version}}
                                   &nbsp;<span class="label label-default">{{tag}}</span>
                                   <div class="pull-right">
                                       <i class="fa fa-clock-o"></i> {{date}}
                                   </div>
                                </div>
                            </h5>
                            <hr>{{#each detail}}
                            <div class="text-left">
                                <h5><i class="fa fa-dot-circle-o"></i> {{title}}</h5>
                                <ul>
                                    {{#each item}}
                                    <li>
                                        {{this}}
                                    </li>
                                    {{/each}}
                                </ul>
                            </div>
                            {{/each}}
                        </div>
                        {{#unless @last}}
                        <br>{{/unless}} {{/each}}
                    </div>
                </div>

                <div class="mastfoot">
                    <div class="inner">
                        <h6>
                            <iframe src="//ghbtns.com/github-btn.html?user=hackmdio&repo=hackmd&type=star&count=true" frameborder="0" scrolling="0" width="90px" height="20px" style="vertical-align:middle;"></iframe>
                        </h6>
                        <p>&copy; 2015 <a href="https://www.facebook.com/TakeHackMD" target="_blank"><i class="fa fa-facebook-square"></i> HackMD</a> by <a href="https://github.com/jackycute" target="_blank"><i class="fa fa-github-square"></i> jackycute</a>
                        </p>
                    </div>
                </div>
            </div>
        </div>
    </div>

    <!-- signin modal -->
    <div class="modal fade signin-modal" tabindex="-1" role="dialog" aria-labelledby="mySmallModalLabel" aria-hidden="true">
        <div class="modal-dialog modal-sm">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span>
                    </button>
                    <h4 class="modal-title" id="mySmallModalLabel">Choose method</h4>
                </div>
                <div class="modal-body">
                    <a href="/auth/facebook" class="btn btn-lg btn-block btn-social btn-facebook">
                        <i class="fa fa-facebook"></i> Sign in via Facebook
                    </a>
                    <a href="/auth/twitter" class="btn btn-lg btn-block btn-social btn-twitter">
                        <i class="fa fa-twitter"></i> Sign in via Twitter
                    </a>
                    <a href="/auth/github" class="btn btn-lg btn-block btn-social btn-github">
                        <i class="fa fa-github"></i> Sign in via GitHub
                    </a>
                    <a href="/auth/dropbox" class="btn btn-lg btn-block btn-social btn-dropbox">
                        <i class="fa fa-dropbox"></i> Sign in via Dropbox
                    </a>
                </div>
            </div>
        </div>
    </div>
    <!-- delete modal -->
    <div class="modal fade delete-modal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
        <div class="modal-dialog modal-sm">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">&times;</span>
                    </button>
                    <h4 class="modal-title" id="myModalLabel">Are you sure?</h4>
                </div>
                <div class="modal-body" style="color:black;">
                    <h5 class="ui-delete-modal-msg"></h5>
                    <strong class="ui-delete-modal-item"></strong>
                </div>
                <div class="modal-footer">
                    <button type="button" class="btn btn-default" data-dismiss="modal">Cancel</button>
                    <button type="button" class="btn btn-danger ui-delete-modal-confirm">Yes, do it!</button>
                </div>
            </div>
        </div>
    </div>

    <!-- Bootstrap core JavaScript
    ================================================== -->
    <!-- Placed at the end of the document so the pages load faster -->
    <% if(useCDN) { %>
	<script src="//code.jquery.com/jquery-1.11.2.min.js" defer></script>
	<script src="//maxcdn.bootstrapcdn.com/bootstrap/3.3.2/js/bootstrap.min.js" defer></script>
	<script src="//cdnjs.cloudflare.com/ajax/libs/gsap/1.16.1/TweenMax.min.js" defer></script>
    <script src="//cdnjs.cloudflare.com/ajax/libs/gsap/1.16.1/jquery.gsap.min.js" defer></script>
	<script src="//cdnjs.cloudflare.com/ajax/libs/select2/3.5.2/select2.min.js" defer></script>
	<script src="//cdnjs.cloudflare.com/ajax/libs/moment.js/2.9.0/moment-with-locales.min.js" defer></script>
	<script src="//cdnjs.cloudflare.com/ajax/libs/handlebars.js/3.0.0/handlebars.min.js" defer></script>
	<script src="//cdnjs.cloudflare.com/ajax/libs/js-url/1.8.6/url.min.js" defer></script>
	<% } else { %>
	<script src="/vendor/jquery-1.11.2.min.js" defer></script>
	<script src="/vendor/bootstrap/js/bootstrap.min.js" defer></script>
    <script src="/vendor/greensock-js/TweenMax.min.js" defer></script>
    <script src="/vendor/greensock-js/jquery.gsap.min.js" defer></script>
	<script src="/vendor/select2/select2.min.js" defer></script>
	<script src="/vendor/moment-with-locales.js" defer></script>
    <script src="/vendor/handlebars-v3.0.0.js" defer></script>
	<script src="/vendor/url.min.js" defer></script>
	<% } %>
    <script src="/vendor/js.cookie.js" defer></script>
    <script src="/vendor/list.min.js" defer></script>
    <script src="/vendor/FileSaver.min.js" defer></script>
    <script src="/vendor/store.min.js" defer></script>
    <script src="/vendor/lz-string.min.js" defer></script>
    <script src="/js/common.js" defer></script>
    <script src="/js/history.js" defer></script>
    <script src="/js/cover.js" defer></script>
</body>

</html>