-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathindex.html
More file actions
72 lines (70 loc) · 3.46 KB
/
index.html
File metadata and controls
72 lines (70 loc) · 3.46 KB
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
<html>
<head>
<meta charset="utf-8">
<script type="text/javascript" src="/dependencies.js"></script>
<link rel="stylesheet" href="css/medium-editor.min.css">
<link rel="stylesheet" href="css/themes/default.min.css">
<link href="https://fonts.googleapis.com/css?family=Roboto+Slab&display=swap" rel="stylesheet">
<link rel="stylesheet" href="css/style.css">
<title>Wall</title>
</head>
<body>
<div class="toolbar">
<div class="toolbar-left">
<span class="item text"><span id="post-status"></span></span>
<span class="item text"><span id="post-cc"></span></span>
<span class="item text"><span id="post-wc"></span></span>
</div>
<div class="toolbar-right">
<button class="btn" id="new_btn" onclick="resetEditor()">New</button>
<button class="btn" id="export_btn" onclick="saveLocally()">Export</button>
<button class="btn" id="publish_btn" onclick="openModal()">Publish</button>
<button class="btn" id="logout_btn" onclick="logOut()" style="display:none;">Logout</button>
</div>
<div class="clear"></div>
</div>
<div id="file-contents" class="editable" style="display: none;" role="textbox" data-placeholder="Write something nice..." contenteditable="true"></div>
<textarea id="markdown-content" type="textarea" class="markdown" style="display: none;"/></textarea>
<div id="modal" class="modal" aria-hidden="true">
<div class="modal-dialog">
<a href="#" class="btn-close closemodal" aria-hidden="true" onclick="closeModal()">×</a>
<div id="meta-form" class="modal-body">
<input type="text" name="title" id="post-title" placeholder="Title" size="400" /><br>
<input type="text" name="tags" id="post-tags" placeholder="Tags, comma separated" size="400" />
<div class="modal-footer">
<p class="post-info">Post will be published to
<span id="post-path-display">
<span id="post-path" style="color: #0091D5;"></span>
<a href="#" class="min-action" onclick="changePostpath()">Change</a>
</span>
<span id="post-path-selection" style="display: none;">
<input type="text" id="post-path-fixed" class="post-meta" disabled />
<input type="text" id="post-path-input" class="post-meta"/>
<a href="#" class="min-action" onclick="savePostpath()">Save</a>
</span>
</p>
<a href="#" class="publishBtn" onclick="publishToDropbox()">Publish now</a>
</div>
</div>
<div id="pre-auth" class="modal-body" style="display:none;">
<p>Hello, please connect to Dropbox to link your files:</p>
<a href="" id="authlink" class="button">Authenticate</a>
<p class="info">Once authenticated, it will use the access token to add posts to your Blot directory.</p>
</div>
<div id="authed" class="modal-body" style="display:none;">
<p id="post-publish-status"></p>
<hr>
<div id="folder" style="display:none;">
<p>Below are the contents of directory:</p>
<ul id="files"></ul>
</div>
<div id="file" style="display:none;"></div>
<div class="modal-footer">
<a href="#" class="publishBtn" onclick="closeModal()">Cancel</a>
</div>
</div>
</div>
</div>
<script type="text/javascript" src="/app.js"></script>
</body>
</html>