forked from jbt/markdown-editor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
169 lines (140 loc) · 7.1 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
<!DOCTYPE html>
<html>
<head>
<title>Markdown Editor</title>
<script src="markdown-it.js"></script>
<script src="markdown-it-footnote.js"></script>
<script src="highlight.pack.js"></script>
<script src="emojify.js"></script>
<script src="codemirror/lib/codemirror.js"></script>
<script src="codemirror/overlay.js"></script>
<script src="codemirror/xml/xml.js"></script>
<script src="codemirror/markdown/markdown.js"></script>
<script src="codemirror/gfm/gfm.js"></script>
<script src="codemirror/javascript/javascript.js"></script>
<script src="codemirror/css/css.js"></script>
<script src="codemirror/htmlmixed/htmlmixed.js"></script>
<script src="codemirror/lib/util/continuelist.js"></script>
<script src="rawinflate.js"></script>
<script src="rawdeflate.js"></script>
<link rel="stylesheet" href="base16-light.css">
<link rel="stylesheet" href="codemirror/lib/codemirror.css">
<link rel="stylesheet" href="default.css">
<link rel="shortcut icon" href="/static/logo/avatar.png">
<!-- Custom Fonts -->
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700" type="text/css">
<!-- FontAwesome icons -->
<link rel="stylesheet" href="https://use.fontawesome.com/74dfc6cf47.css">
<!-- Core BootStrap CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css">
<!-- Material Design CSS -->
<link rel="stylesheet" href="https://nybles.github.io/static/css/bootstrap-material-design.min.css">
<!-- Material Design JS -->
<script src="https://nybles.github.io/static/js/jquery.min.js"></script>
<script src="https://nybles.github.io/static/js/material.min.js"></script>
<!-- syntax highlighting CSS -->
<link rel="stylesheet" href="https://nybles.github.io/static/css/syntax.css">
<!-- Custom CSS -->
<link rel="stylesheet" href="https://nybles.github.io/static/css/thickbox.css">
<link rel="stylesheet" href="https://nybles.github.io/static/css/projects.css">
<link rel="stylesheet" href="https://nybles.github.io/static/css/main.css">
<link rel="stylesheet" href="https://nybles.github.io/static/css/loader.css">
<link rel="stylesheet" href="editor.css">
</head>
<body class="home overflow-hidden">
<!-- this is the editor form with contents as blogTitle, authorName, categories, blogContent (code) -->
<form method="post" action="https://geekhaven.iiita.ac.in/cgi-bin/nybles-submit.py" id="editorForm">
<div class="header-panel shadow-z-2" id="header">
<div class="container">
<div class="row">
<div class="col-md-3 col-sm-3 col-xs-12">
<a href="/">
<div class="row-picture">
<img id="about" class="logo-img" src="https://nybles.github.io/static/logo/Logo_2_transparent.png">
</div>
</a>
<div class="row-details">
</div>
</div>
<div class="col-md-6 col-sm-6 col-xs-12 from-group">
<label for="Title"></label>
<input name="title" class="blog-title-pro form-control" id="blogTitle" type="text" placeholder="Title" required />
<p class="info">By <input name="author" class="form-control" id="blogAuthor" type="text" placeholder="Author" required />
<br>
<span class="categories">
Categories:
»
<input name="categories" class="form-control" id="categories" type="text" placeholder="Comma separated categories" required />
</span>
<br>
</p>
</div>
<div class="col-md-3 col-sm-3 col-xs-12 form-group">
<button type="submit" id="submitBtn" class="btn form-control">Submit</button>
<button type="button" id="saveBtn" class="btn form-control">Save</button>
<span class="togglebutton">
<label>
Editor
<input id="toggleEditorBtn" type="checkbox" checked="true">
<span class="toggle"></span>
</label>
</span>
<span class="togglebutton">
<label>
Preview
<input id="togglePreviewBtn" type="checkbox" checked="true">
<span class="toggle"></span>
</label>
</span>
</div>
</div>
</div>
</div>
</div>
<div class="container">
<div id="in" class="col-md-6 col-sm-12 col-xs-12">
<textarea id="code" name="content" required >
# Editor
![Nybles logo](https://nybles.github.io/static/logo/Logo_2_transparent.png)
Basic useful feature list:
* Ctrl+S / Cmd+S to save the file
* Ctrl+Shift+S / Cmd+Shift+S to choose to save as Markdown or HTML
* Drag and drop a file into here to load it
* File contents are saved in the URL so you can share files
## Post Layout
---
layout: Post
title: Add your title
author: Author name
categories: Only three categories are now : future, trending and campus
intro: Will be shown in the main page if specified
---
content should be added here,No need to add title name again.
Categories avaliable : campus,trending and future
Rename the file as `YYYY-MM-DD-name-of-post.md`
## Example Posts
- [Post one](https://raw.githubusercontent.com/nybles/nybles.github.io/master/_posts/2017-03-12-the-great-aiwakening.md)
- [Post two](https://raw.githubusercontent.com/nybles/nybles.github.io/master/_posts/2017-03-19-a-chat-with-aditya-chaturvedi.md)
### Some markdown tips
Look, a list!
* foo
* bar
* baz
And here's some code! :+1:
```javascript
$(function(){
$('div').html('I am a div.');
});
```
And full support for Github Emojis
:blush: :cyclone: :heart_eyes: :tea: :traffic_light: :clock4:
[Get full emoji cheatsheet here](https://www.webpagefx.com/tools/emoji-cheat-sheet/)
[Writing in Markdown](https://guides.github.com/features/mastering-markdown/) for more.
</textarea>
</div>
<div id="out" class="col-md-6 col-sm-12 col-xs-12"></div>
</div>
</form>
<script src="editor.js"></script>
</body>
</html>