-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
58 lines (51 loc) · 2.16 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
<html>
<head>
<title>Post to Medium and Blog</title>
<link rel="stylesheet" href="src/index.css" />
<script src="src/authenticate.js"></script>
<!-- <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js" type="text/javascript"></script> -->
</head>
<body>
<h1>5.58 Post to Code Chrysalis Blog (Medium and GitHub Pages) </h1>
<form id="postform">
<input type="radio" name="individual-or-publication" id="individual" checked>
<label for="individual">Post to My Stories</label>
<input type="radio" name="individual-or-publication" id="publication" checked>
<label for="publication">Post to a Publication</label>
<br> API Code:
<!-- Nate's is "218800e8caf5ef6ff60fe81916ba76d1d6f6ebc995256234a8ae6eb2b7a393a0e" -->
<input id="authcode" type="text">
<br>
<br> Title:
<input type="text" name="title">
<br> Markdown File:
<input id="mdfile" type="file" multiple="" name="content">
<br> URL (if posted elsewhere):
<input type="url" name="canonicalUrl">
<br>
<input name="publishStatus" hidden="true" type="text" value="public">
<input name="contentFormat" hidden="true" type="text" value="markdown">
<input id="submitPostButton" type="button" value="Post to my personal account">
<input id="submitPostOrgButton" type="button" value="Post to my organization">
<br>
<br> Post Preview:
<div id="postpreview" class="preview"></div>
<br>Raw Markdown:
<br>
<textarea id="rawmd" class="preview" rows="50" cols="80"></textarea>
</form>
<br>
<button id="getIdButton">Get ID</button>
<input type="text" id="userId">
<br>
<button id="getOrgIdButton">Get OrgID</button>
<input type="text" id="orgId">
</p>
<button onclick="authenticateMedium()">Authenticate w/ Medium</button>
</body>
<!-- normal script imports etc -->
<script src="src/jquery-3.3.1.min.js"></script>
<script src="src/post-script.js"></script>
<script src="https://cdn.jsdelivr.net/npm/marked/marked.min.js"></script>
<!-- Insert this line after script imports -->
</html>