-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.htm
119 lines (98 loc) · 4.26 KB
/
index.htm
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
<!DOCTYPE html>
<html>
<head>
<title>Telegraph Manager</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes">
<meta charset="utf8">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script>
<script src="main.js"></script>
<link rel="icon" type="image/png" href="g/ic_edit.png">
<link href="https://fonts.googleapis.com/css?family=Roboto" rel="stylesheet">
<link rel="stylesheet" href="base.css">
<link rel="stylesheet" href="style.css">
</head>
<body>
<div id="error" class="error">
<div class="card">
<span></span>
</div>
</div>
<div id="wrapper" class="wrap">
<div id="hero" class=" article">
<h1>Telegraph Manager</h1>
<p>
An easy way to manage your articles, profile and views for <a href="http://telegra.ph/">telegra.ph</a>.
</p>
</div>
<div id="screen-nosupport">
<div class="article">
Your browser doesn't support JavaScript and/or HTML5 LocalStorage. Please update your browser and enable JavaScript.
</div>
</div>
<div id="screen-login">
<div class="article content">
<h1>create an account</h1>
<input type="text" name="author_name" placeholder="your name" required />
<input type="text" name="short_name" placeholder="short name (not published)" required />
<input type="url" name="author_url" placeholder="your website (optional)" />
<button onclick="createAccount()">create account</button>
</div>
<div class="article content">
<h1>login with token</h1>
<input type="text" name="token" placeholder="your token (like this: b968da509bb768...)" required />
<button onclick="tokenLogin()">login</button>
</div>
</div>
<div id="screen-login-telegraph">
<div class="article content">
<p>
<a href="#" target="_blank" onclick="doneAuthorized()">click to login to telegra.ph</a>
</p>
<p>
You have to do this in order to publish articles. After you've clicked the link, come back to this website.
</p>
</div>
</div>
<div id="screen-main">
<a id="fab" href="http://telegra.ph/" target="_blank" title="new page"><img src="g/ic_add.png" /></a>
<div id="user-info" class="article">
<div id="user-image-animator" title="edit profile" onclick="edit()">
<div id="user-image">
<img src="g/ic_account.png" />
</div>
<div id="user-edit">
<img src="g/ic_edit_white.png" />
</div>
</div>
<span id="user-name"></span>
<span id="user-short"></span>
<a id="user-url" href="#" target="_blank"></a>
<br>
<span>— <span id="user-page-count"></span> —</span>
</div>
<div id="page-list">
</div>
</div>
<div id="screen-edit">
<div class="article">
<a onclick="main()" href="#">back</a>
</div>
<div class="article content">
<h1>change account information</h1>
<input type="text" name="author_name_edit" placeholder="your name" required />
<input type="text" name="short_name_edit" placeholder="short name (not published)" required />
<input type="url" name="author_url_edit" placeholder="your website (optional)" />
<button onclick="saveEdit()">save</button>
</div>
<div class="article content">
<h1>logout</h1>
<p>
<strong>Warning!</strong> To be able log into this account again you <strong> will need</strong> this token:
</p>
<p id="logout-token"></p>
<button onclick="logout()">logout</button>
</div>
</div>
</div>
</body>
</html>