-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
136 lines (126 loc) · 5.45 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
<!DOCTYPE html>
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]-->
<!--[if gt IE 8]><!--><html class="no-js"><!--<![endif]-->
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>Simple Writer</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="css/materialize.min.css">
<link href="css/icon.css" rel="stylesheet">
<script src="node_modules/jquery/dist/jquery.js"></script>
<script>var hammer = require('hammerjs');</script>
<script src="js/materialize.min.js"></script>
<style>
@font-face {
font-family: myFirstFont;
src: url('fonts/Proxima Nova.otf');
}
.material-icons {
font-family: 'Material Icons';
font-weight: normal;
font-style: normal;
font-size: 24px; /* Preferred icon size */
display: inline-block;
line-height: 1;
text-transform: none;
letter-spacing: normal;
word-wrap: normal;
white-space: nowrap;
direction: ltr;
/* Support for all WebKit browsers. */
-webkit-font-smoothing: antialiased;
/* Support for Safari and Chrome. */
text-rendering: optimizeLegibility;
/* Support for Firefox. */
-moz-osx-font-smoothing: grayscale;
/* Support for IE. */
font-feature-settings: 'liga';
}
body {
max-height: 100vh !important;
-webkit-app-region: drag;
background: #ece9e6; /* fallback for old browsers */
background: -webkit-linear-gradient(left, #ece9e6, #ffffff);
background: -moz-linear-gradient(left, #ece9e6, #ffffff);
background: -o-linear-gradient(left, #ece9e6, #ffffff);
background: linear-gradient(to right, #ece9e6, #ffffff); /* Chrome 10-25, Safari 5.1-6 */ /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
}
.materialize-textarea {
height: 75vh !important;
background-color: white;
}
textarea {
text-align: justify;
border-bottom: 0 !important;
}
</style>
</head>
<body>
<header>
<ul id="slide-out" class="side-nav">
<li><a href="#!" id="open">Open</a></li>
<li><a href="#!" id="save">Save</a></li>
<li><div class="divider"></div></li>
<!--
<li class="no-padding">
<ul class="collapsible collapsible-accordion">
<li>
<a class="collapsible-header">Stats<i class="material-icons right">arrow_drop_down</i></a>
<div class="collapsible-body">
<ul>
<li><a href="#!">Words: <span id="word"></span></a></li>
<li><a href="#!">Chars: <span id="char"></span></a></li>
</ul>
</div>
</li>
</ul>
</li>
-->
</ul>
<a href="#!" data-activates="slide-out" class="button-collapse">
<i class="material-icons">menu</i>
</a>
<a href="#!" id="info" class="right">
<i class="material-icons">info_outline</i>
</a>
</header>
<main>
<div class="container">
<div class="row"></div>
<div class="row">
<form class="col s12 m8 offset-m2" id="simplewriter">
<div class="row">
<div id="contentWrapper" class="input-field col s12 z-depth-1">
<textarea id="content" class="flow-text materialize-textarea"></textarea>
</div>
</div>
</form>
</div>
<div class="row" id="stats" style="display: none;">
<div class="col s12 m8 offset-m2">
<h1>Words: <small id="word2">0</small></h1>
</div>
<div class="col s12 m8 offset-m2">
<h1>Characters: <small id="char2">0</small></h1>
</div>
</div>
</div>
</main>
<script>
$(document).ready(function () {
$('#content').focus();
$('.button-collapse').sideNav({
menuWidth: 150, // Default is 300
edge: 'left', // Choose the horizontal origin
closeOnClick: true, // Closes side-nav on <a> clicks, useful for Angular/Meteor
draggable: false // Choose whether you can drag to open on touch screens
});
});
</script>
<script src="./index.js"></script>
</body>
</html>