-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
273 lines (245 loc) · 15.3 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
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
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="initial-scale=1.0,user-scalable=no,maximum-scale=1,width=device-width">
<title>medium-editor-insert-plugin | example</title>
<link href="https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet" integrity="sha384-wvfXpqpZZVQGK6TAh5PVlGOfQNHSoD2xbE+QkPxCAFlNEevoEH3Sl0sibVcOQVnN" crossorigin="anonymous">
<link rel="stylesheet" href="css/normalize.css">
<link rel="stylesheet" href="css/demo.css">
<link rel="stylesheet" href="../bower_components/medium-editor/dist/css/medium-editor.min.css">
<link rel="stylesheet" href="../bower_components/medium-editor/dist/css/themes/beagle.min.css">
<link rel="stylesheet" href="../dist/css/medium-editor-insert-plugin.min.css" />
<link href="../dist/css/medium-editor-tables.css" rel="stylesheet" />
<link rel="stylesheet" href="css/bootstrap-tagsinput.css" />
<link rel="stylesheet" href="css/loginform.css" />
<link rel="stylesheet" href="css/image-picker.css" />
<link rel="stylesheet" href="css/spinner.css" />
<style>
.medium-insert-images.medium-insert-images-grid.small-grid figure {
width: 10%;
}
@media (max-width: 750px) {
.medium-insert-images.medium-insert-images-grid.small-grid figure {
width: 20%;
}
}
@media (max-width: 450px) {
.medium-insert-images.medium-insert-images-grid.small-grid figure {
width: 25%;
}
}
</style>
</head>
<body>
<div id="demo-content" style="display:none">
<header class="entry-header">
<h1 class="entry-title">Loading...</h1>
<h4>Fetching all the goodies</h4>
</header>
<div id="loader-wrapper">
<div id="loader"></div>
</div>
</div>
<!--Redirect to loader.html script-->
<div id="nonloader">
<nav id="topbar">
<!--LOGIN BUTTON-->
<button class="login" style="font-size:15px;">
<i class="fa fa-user-circle"></i>
LOGIN
</button>
<!--SIGN OUT BUTTON-->
<button class="signout" style="font-size:15px;">
<i class="fa fa-sign-out"></i>
SIGN OUT
</button>
<!--Avatar-->
<img src="" alt="Avatar" class="avatar">
</nav>
<div id="container">
<!--SIDENAV BAR-->
<div id="mySidenav" class="sidenav">
<a href="#" id="about">About</a>
<a href="#" id="blog">Blog</a>
<a href="#" id="projects">Projects</a>
<a href="#" id="contact">Contact</a>
</div>
<!--CUSTOM SELECT MENU FOR POST REWARD IN 100%SP OR 50/50 SBD-->
<select class="payout">
<option value="" disabled selected>Payout type</option>
<option value="0">50/50 SP/SBD</option>
<option value="1">100% SP</option>
</select>
<!-- Steem connect login page -->
<!--The draft interface----------------------------->
<div id="title">
<h2 id="titlelabel" contenteditable="true">Introducing Steem ULTIMATE EDITOR!</h2>
</div>
<label id="tags" for="tags">
Tags :
<input type="text" placeholder="Only 5 tags allowed, the first tag is your main category." data-role="tagsinput" name="tags" />
</label>
<div class="editable" data-placeholder="Type some text">
<p>
Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.
</p>
<div class="medium-insert-images">
<figure contenteditable="false">
<img src="https://www.codeproject.com/KB/GDI-plus/ImageProcessing2/screen0.JPG" alt="">
<figcaption contenteditable="true">So, I called myself Pip, and came to be called Pip.</figcaption>
</figure>
</div>
<p>I give Pirrip as my father’s family name, on the authority of his tombstone and my sister,—Mrs. Joe Gargery, who married the blacksmith. As I never saw my father or my mother, and never saw any likeness of either of them (for their days were long before the days of photographs), my first fancies regarding what they were like were unreasonably derived from their tombstones. The shape of the letters on my father’s, gave me an odd idea that he was a square, stout, dark man, with curly black hair. From the character and turn of the inscription, “Also Georgiana Wife of the Above,” I drew a childish conclusion that my mother was freckled and sickly. To five little stone lozenges, each about a foot and a half long, which were arranged in a neat row beside their grave, and were sacred to the memory of five little brothers of mine,—who gave up trying to get a living, exceedingly early in that universal struggle,—I am indebted for a belief I religiously entertained that they had all been born on their backs with their hands in their trousers-pockets, and had never taken them out in this state of existence.</p>
<div class="medium-insert-images">
<figure contenteditable="false">
<img src="https://www.w3schools.com/howto/img_fjords.jpg" alt="">
<figcaption contenteditable="true">So, I called myself Pip, and came to be called Pip.</figcaption>
</figure>
</div>
<p>Ours was the marsh country, down by the river, within, as the river wound, twenty miles of the sea. My first most vivid and broad impression of the identity of things seems to me to have been gained on a memorable raw afternoon towards evening. At such a time I found out for certain that this bleak place overgrown with nettles was the churchyard; and that Philip Pirrip, late of this parish, and also Georgiana wife of the above, were dead and buried; and that Alexander, Bartholomew, Abraham, Tobias, and Roger, infant children of the aforesaid, were also dead and buried; and that the dark flat wilderness beyond the churchyard, intersected with dikes and mounds and gates, with scattered cattle feeding on it, was the marshes; and that the low leaden line beyond was the river; and that the distant savage lair from which the wind was rushing was the sea; and that the small bundle of shivers growing afraid of it all and beginning to cry, was Pip.</p>
</div>
<!--POST TO STEEMIT BUTTON!------------------------------------>
<div>
<button type="button" id="post">Post to STEEMIT!</button>
<svg class="lds-blocks" width="60" height="60" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid" style="display:none">
<rect x="19" y="19" width="20" height="20" fill="#189ce0">
<animate attributeName="fill" values="#4e23fd;#189ce0;#189ce0" keyTimes="0;0.125;1" dur="1s" repeatCount="indefinite" begin="0s" calcMode="discrete"></animate>
</rect>
<rect x="40" y="19" width="20" height="20" fill="#189ce0">
<animate attributeName="fill" values="#4e23fd;#189ce0;#189ce0" keyTimes="0;0.125;1" dur="1s" repeatCount="indefinite" begin="0.125s" calcMode="discrete"></animate>
</rect>
<rect x="61" y="19" width="20" height="20" fill="#189ce0">
<animate attributeName="fill" values="#4e23fd;#189ce0;#189ce0" keyTimes="0;0.125;1" dur="1s" repeatCount="indefinite" begin="0.25s" calcMode="discrete"></animate>
</rect>
<rect x="19" y="40" width="20" height="20" fill="#189ce0">
<animate attributeName="fill" values="#4e23fd;#189ce0;#189ce0" keyTimes="0;0.125;1" dur="1s" repeatCount="indefinite" begin="0.875s" calcMode="discrete"></animate>
</rect>
<rect x="61" y="40" width="20" height="20" fill="#189ce0">
<animate attributeName="fill" values="#4e23fd;#189ce0;#189ce0" keyTimes="0;0.125;1" dur="1s" repeatCount="indefinite" begin="0.375s" calcMode="discrete"></animate>
</rect>
<rect x="19" y="61" width="20" height="20" fill="#189ce0">
<animate attributeName="fill" values="#4e23fd;#189ce0;#189ce0" keyTimes="0;0.125;1" dur="1s" repeatCount="indefinite" begin="0.75s" calcMode="discrete"></animate>
</rect>
<rect x="40" y="61" width="20" height="20" fill="#189ce0">
<animate attributeName="fill" values="#4e23fd;#189ce0;#189ce0" keyTimes="0;0.125;1" dur="1s" repeatCount="indefinite" begin="0.625s" calcMode="discrete"></animate>
</rect>
<rect x="61" y="61" width="20" height="20" fill="#189ce0">
<animate attributeName="fill" values="#4e23fd;#189ce0;#189ce0" keyTimes="0;0.125;1" dur="1s" repeatCount="indefinite" begin="0.5s" calcMode="discrete"></animate>
</rect>
</svg>
</div>
<footer>
<h2>Posted From : <img src="https://image.ibb.co/nOs4Ad/ultedtlogousmall.png"></h2>
</footer>
</div>
<!--Separator selction modal-->
<div id="myModal" class="modal">
<!-- Modal content -->
<div class="modal-content">
<div class="modal-header">
<span class="close">×</span>
<h4>Please choose your post divider</h4>
</div>
<div class="modal-body">
<select class="image-picker show-html">
<option data-img-src="img/banner/separator1.png" data-img-class="first" data-img-alt="separator1" value="1"> separator1 </option>
<option data-img-src="img/banner/separator2.png" data-img-alt="separator2" value="2"> separator2 </option>
<option data-img-src="img/banner/separator3.png" data-img-alt="separator3" value="3"> separator3 </option>
<option data-img-src="img/banner/separator4.png" data-img-alt="separator4" value="4"> separator4 </option>
<option data-img-src="img/banner/separator5.png" data-img-alt="separator5" value="5"> separator5 </option>
<option data-img-src="img/banner/separator6.png" data-img-alt="separator6" value="6"> separator6 </option>
<option data-img-src="img/banner/separator7.png" data-img-alt="separator7" value="7"> separator7 </option>
<option data-img-src="img/banner/separator8.png" data-img-alt="separator8" value="8"> separator8 </option>
<option data-img-src="img/banner/separator9.png" data-img-alt="separator9" value="9"> separator9 </option>
<option data-img-src="img/banner/separator10.png" data-img-alt="separator10" value="10"> separator10 </option>
<option data-img-src="img/banner/separator11.png" data-img-alt="separator11" value="11"> separator11 </option>
<option data-img-src="img/banner/separator12.png" data-img-alt="separator12" data-img-class="last" value="12"> separator12 </option>
</select>
</div>
</div>
</div>
</div>
<!--LOADER spinner for loggin in-->
<script>
var prevUrl = window.location.search;
var match = prevUrl.match(/^\?access_token/g);
if (match) {
document.getElementById('demo-content').style.display = 'block';
document.getElementById('nonloader').style.display = 'none';
}
</script>
<script src="../bower_components/jquery/dist/jquery.min.js"></script>
<script src="../bower_components/blueimp-file-upload/js/vendor/jquery.ui.widget.js"></script>
<script src="../bower_components/blueimp-file-upload/js/jquery.iframe-transport.js"></script>
<script src="../bower_components/blueimp-file-upload/js/jquery.fileupload.js"></script>
<script src="../bower_components/medium-editor/dist/js/medium-editor.js"></script>
<script src="../bower_components/handlebars/handlebars.runtime.min.js"></script>
<script src="../bower_components/jquery-sortable/source/js/jquery-sortable-min.js"></script>
<!--Bootstrap loader-->
<script src="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.5/js/bootstrap.min.js"></script>
<script src="../src/js/bootstrap/bootstrap-tagsinput.js"></script>
<!--<script src="../dist/js/medium-editor-insert-plugin.min.js"></script>-->
<script src="../src/js/templates.js"></script>
<script src="../src/js/core.js"></script>
<script src="../src/js/embeds.js"></script>
<script src="../src/js/images.js"></script>
<script type="text/javascript" src="../src/js/medium-editor-tables.js"></script>
<script src="../src/js/separator.js"></script>
<script src="../src/js/image-picker.min.js"></script>
<!--STEEMCONNECT LOADER AND HANDLER-->
<script src="../src/js/post2steem.js"></script>
<script src="../src/js/sc2.min.js"></script>
<script src="../src/js/sc2login.js"></script>
<script>
var editor = new MediumEditor('.editable', {
buttonLabels: 'fontawesome',
extensions: {
table: new MediumEditorTable()
},
toolbar: {
buttons: [
'h2',
'bold',
'italic',
'strikethrough',
'subscript', 'superscript',
'quote',
'anchor',
'unorderedlist',
'orderedlist', 'html',
'anchorpreview',
'table'
],
static: false,
sticky: true
},
}, $(function () {
$('.editable').mediumInsert({
editor: editor,
addons: {
separator: {},
images: {
fileUploadOptions: {
url: 'aws.php',
}
}
},
})
})
)
</script>
<!--Login script-->
<script>
checkProfile();
$('.login').on('click', function () {
openWin();
checkProfile();
});
$('.signout').on('click', function () {
Signout();
localStorage.removeItem('access_token');
});
</script>
</body>
</html>