summaryrefslogtreecommitdiff
path: root/templates/index.html
blob: bc6d7e2cf927631cd992f6c5f7b99bb7b0fc58af (plain)
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
{{template "header.html" .}}
<body>
{{template "navbar.html" .}}

<div class="container-fluid">
	<div class="row">
		<div class="col-sm-3 col-md-2 sidebar">
		<ul class="nav nav-sidebar">
			<li class="grey-shadow"><a href="{{.VirtualRoot}}/"> <span class="number">N</span>Create a new scribble</a></li>
		</ul>
		<ul class="nav nav-sidebar" id="history">
			{{if .Title}}
			<li class="active"><a href="{{.VirtualRoot}}/{{.Title}}" data-url="{{.VirtualRoot}}/{{.Title}}" data-title="{{.Title}}" id="root-anchor"> <span class="number">!</span>{{.Title}}</a></li>
			{{end}}
		</ul>
	</div>
	<div class="col-sm-9 col-sm-offset-3 col-md-10 col-md-offset-2 main">
		<h1 class="page-header"><span class="fa fa-pencil"></span> {{if .NotFound}}Not Found - Create it{{else}}Share your Notes online!{{end}}</h1>

		<div class="row">
			<form action="/api/new" id="memo" method="POST">
				<div class="col-md-10">
					<div class="form-group">
						<input id="Title" name="Title" placeholder="Enter a title for your new notice. Later you will use the title as keyphrase to reference and search." class="form-control input-md" required="" type="text" value="{{.Title}}">
					</div>
					<!--Last updated on: <span id="time">{{.}}</span>-->
					<div class="form-group">
						<textarea name="Post" id="post" class="form-control" rows="8" placeholder="Type anything in here. If you visit later, it will be still here.">{{.Post}}</textarea>
					</div>
					<div class="form-group">
						<button id="save" name="save" class="btn btn-primary btn-disabled"><span class="glyphicon glyphicon-floppy-disk"></span> Manually Save</button>
						<button id="autosave" class="btn btn-success btn-disabled" data-toggle="collapse" data-target="#collapsible"><span class="glyphicon glyphicon-floppy-open"></span> Enable Autosave</button>
						<span class="pull-right">
						<button id="view" name="view" class="text-right btn btn-primary btn-disabled"><span class="fa fa-eye fa-lg"></span> View</button>
						</span>
					</div>
				</div>
				<!--div class="col-md-2">
					<div class="form-group">
						<h4>Options:</h4>
						<div class="checkbox">
							<label for="options-0">
								<input name="options" id="options-0" value="1" type="checkbox">
								Render as Markdown
							</label>
						</div>
					</div>
				</div-->
			</form>
		</div>
		<div class="row">
			<div class="col-md-12">
				<p>To access the same scribble later just search for the title. <strong>Markdown supported!</strong>
					<!--strong>It's important that you don't forget it.</strong-->
				</p>
				<h4 style="margin-bottom: 0;">
					Formatting help
				</h4>
					<p style="margin-bottom: 20px;">
						To format your text you can use Markdown. Markdown has a very leightweight syntax, explained below.
					</p>
			</div>
			<div class="col-md-4">
				<p>
					# Heading
					<br>
					## Sub-heading
					<br>
					### Another deeper heading
					<br>
					<br>
					Paragraphs are separated by a blank line.
					<br>
					<br>
					A [link](http://example.com).
					<br>
					<br>
					Two spaces at the end of a line leave a  
					line break. (Line break as well.)
				</p>
			</div>
			<div class="col-md-4">
				<p>
					Text attributes:
					<br>
					<span style="margin-left: 3%;">
						_italic_, *italic*
					</span>
					<br>
					<span style="margin-left: 3%;">
						__bold__, **bold**
					</span>
					<br>
					<span style="margin-left: 3%;">
						`monospace`
					</span>
					<br>
					<span style="margin-left: 3%;">
						~~strike through~~
					</span>
					<br>
					<br>
					Bullet list:
					<br>
					<span style="margin-left: 3%;">
					  * apples
					</span>
					<br>
					<span style="margin-left: 3%;">
					  * oranges
					</span>
					<br>
					<span style="margin-left: 3%;">
					  * pears
					</span>
				</p>
			</div>
		</div>
	</div>
  </div>
</div>

{{template "footer.html" .}}