forked from tholman/zenpen
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
151 lines (120 loc) · 4.32 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
<!doctype html>
<html>
<head>
<!-- MISC/META -->
<title> ZenPen ~ Minimal Distraction, Maximim Zen </title>
<meta charset="utf-8">
<meta name="description" content="Zenpen - A minimal web based text editor, for the modern man.">
<!-- CSS -->
<link href='https://fonts.googleapis.com/css?family=Lora:400,700,400italic,700italic' rel='stylesheet' type='text/css'>
<link href="css/style.css" rel="stylesheet">
<link href="css/fonts.css" rel="stylesheet">
<!-- LIBS -->
<script src="js/libs/head.min.js"></script>
<script src="js/libs/FileSaver.min.js"></script>
<script src="js/libs/Blob.js"></script>
<script src="js/libs/fullScreen.js"></script>
<!-- JS loading in footer -->
</head>
<body class="yin">
<div class="overlay">
<div class="wordcount modal">
<h1>Target Word Count</h1>
<div>
<input type="number" name="quantity" value="0" min="0"></input>
</div>
</div>
<div class="description modal">
<h1> About ZenPen </h1>
<p> Zenpen is a minimalist writing zone by <a href="https://tholman.com">Tim Holman</a> (<a href="https://twitter.com/twholman">@twholman</a>), to get you into that zone, where you can focus on the writing - with none of the distractions. ZenPen is open source on <a href="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/tholman/zenpen">Github</a> (with many improvements on the way!). If you have any questions, hit me up via <a href="mailto:[email protected]">email</a> - ooh, you can follow me on twitter for updates too: <a href="https://twitter.com/twholman">@twholman</a> </p>
</div>
<div class="saveoverlay modal">
<h1>Select save format</h1>
<p class='saveselection'>
<span data-format='markdown'>Markdown</span>
<span data-format='html'>HTML</span>
<span data-format='plain'>Plain Text</span>
</p>
<button class='savebutton useicons'></button>
<div> Or select format and press ctrl+c (cmd+c on mac) to copy the text. </div>
<textarea class='hiddentextbox'></textarea>
</div>
</div>
<div class="text-options">
<div class="options">
<span class="no-overflow">
<span class="lengthen ui-inputs">
<button class="url useicons"></button>
<input class="url-input" type="text" placeholder="Type or Paste URL here"/>
<button class="bold">b</button>
<button class="italic">i</button>
<button class="quote">”</button>
</span>
</span>
</div>
</div>
<div class="ui">
<div class="wrapper">
<div class="top editing">
<button class="fullscreen useicons" title="Toggle fullscreen">

</button>
<button class="color-flip useicons" title="Invert colors">

</button>
<button class="target useicons" title="Set target word count">

</button>
<button class="save useicons" title="Save Text">

</button>
</div>
<div class="bottom">
<button class="about">
?
</button>
</div>
</div>
</div>
<div class="word-counter">
<span class="progress"></span>
</div>
<section>
<header contenteditable="true" class="header">
This is ZenPen
</header>
<article contenteditable="true" class="content">
<p>
A minimalist writing zone, where you can block out all distractions and get to what's important. The writing!
</p>
<p>
To get started, all you need to do is delete this text (seriously, just highlight it and hit delete), and fill the page with your own fantastic words.
</p>
<p>
You can use <b>bold</b>, <i>italics</i>, <b><i>both</i></b> and <a href="https://zenpen.io"> urls </a> just by highlighting the text and selecting them from the tiny options box that appears above it.
</p>
<blockquote>
Quotes are easy to add too!
</blockquote>
<p>
For <i>questions</i> and <b>open source info</b>, Click that little question mark at the bottom left of the screen.
</p>
<p>Happy Typing! ~ <b>Tim Holman (@twholman)</b></p>
</article>
</section>
<!-- JS -->
<script type="text/javascript">
// Load required scripts.
head.js(
"js/utils.js",
"js/ui.js",
"js/editor.js",
function(){
// Initiate ZenPen
editor.init();
ui.init();
}
);
</script>
</body>
</html>