-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathnew.html
81 lines (73 loc) · 2.74 KB
/
new.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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" type="text/css" href="styles/normalize.css">
<link rel="stylesheet" type="text/css" href="styles/skeleton.css">
<link rel="stylesheet" type="text/css" href="styles/new.css">
<link rel="stylesheet" type="text/css" href="vendor/styles/default.css">
<title>New Post</title>
<script id="previewTemplate" type="text/x-handlebars-template">
<div class='row'>
<div class='u-full-width'>
<article class="previewpost">
<h2 class="title">{{title}}</h2>
<p>by <a class="authorUrl" href={{{authorUrl}}} >
<span class="author">{{author}}</span>
</a>, published about <span class="publishedOn">{{displayRelativeDate}}</span> days ago.</p>
<p class='category'>{{category}}</p>
<section class="body">{{{markdown}}}</section>
</article>
</div>
</div>
</script>
<script id="textTemplate" type="text/x-handlebars-template">
<p>title: {{title}}</p>
<p>category: {{category}}</p>
<p>author: {{author}}</p>
<p>authorUrl: {{authorUrl}}</p>
<p>publishedOn: {{publishedOn}}</p>
<section>body: {{{markdown}}}</section>
</script>
</head>
<body>
<div class="container">
<h1>Write a new blog</h1>
<form>
<div class="row">
<div class="six columns">
Author: <input type='text' name='author'>
Author URL: <input type='text' name='authorUrl'>
</div>
<div class="six columns">
Title: <input type='text' name='title'>
Category: <input type='text' name='category'>
</div>
</div>
<div class="row">
<div class="u-full-width">
Post: <textarea name='markdown' row='6' cols='30'>
</textarea>
</div>
</div>
<div class="row">
<div class="u-full-width">
Date: <input type='date' name='publishedOn'>
Preview: <input type='checkbox' name='preview' checked='true'>
<button class="click button-primary">Submit</button>
</div>
</div>
</form>
<div id="previewSection"><p>Preview Section:</p></div>
<p>Submission Area, plain text:</p>
<div id="submitArea"></div>
<script src="/vendor/scripts/jquery-2.1.4.js"></script>
<script src='https://cdnjs.cloudflare.com/ajax/libs/handlebars.js/4.0.5/handlebars.js'></script>
<script src="/vendor/scripts/marked.js"></script>
<script src="/vendor/scripts/highlight.pack.js"></script>
<script>hljs.initHighlightingOnLoad();</script>
<script src='/scripts/new.js'></script>
</div>
</body>
</html>