-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.htm
51 lines (51 loc) · 2.23 KB
/
index.htm
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
<!doctype html>
<html ng-app='mainApp' ng-controller='mainCtrl' lang='{{locale}}' ng-cloak>
<head>
<meta charset="utf-8">
<meta name='viewport' content='width=device-width, initial-scale=1'>
<link rel='stylesheet' href='node_modules/reset.css/reset.css'>
<link rel='stylesheet' href='lib/css/main.css'>
<link rel='stylesheet' ng-href='lib/css/{{config.theme}}.css'>
<link rel='stylesheet' href='node_modules/components-font-awesome/css/font-awesome.min.css'>
<link rel='stylesheet' href='lib/css/animate.css'>
<title ng-bind='strings.APP_TITLE'>clipper</title>
<script src='node_modules/angular/angular.js'></script>
</head>
<body>
<main>
<div ng-show='settingsWindow'>
<div id='settingsDark' ng-click='settingsWindow = !settingsWindow'></div>
<div style='position: absolute; top: 20%; width: 100%; z-index: 10;'>
<div id='settingsWindow'>
<h1>{{ strings.SETTINGS }}</h1>
<p>{{ strings.SETTINGS_ACTIVE }} <input type='checkbox' ng-model='config.active'></p>
<p>{{ strings.SETTINGS_LOCALE }}
<select ng-init='config.locale = config.locale' ng-model='config.locale' ng-options='locale for locale in locales'>
</select>
</p>
<p>{{ strings.SETTINGS_THEME }}
<select ng-init='config.theme = config.theme' ng-model='config.theme' ng-options='theme for theme in themes'>
</select>
<button ng-click='saveSettings()'>{{ strings.SETTINGS_SAVE }}</button>
</div>
</div>
</div>
<header class='main'>
<h1>{{ strings.APP_TITLE }}</h1>
<p>{{ strings.APP_PROMO }}</p>
<span ng-click='openSettings()' id='wrench' class='fa fa-wrench'></span>
</header>
<section id='clips'>
<div ng-repeat='clip in clips' class='animated' ng-class='{fadeInLeft: clip.fade == 0, fadeOutRight: clip.fade == 2}'>
<textarea readonly="readonly">{{ clip.content }}</textarea>
<span am-time-ago='clip.dt'></span>
<button ng-click='copy(clip.content)'>{{ strings.BUTTONS_COPY }}</button>
<button ng-click='delete(clip.rowid)'>{{ strings.BUTTONS_DELETE }}</button>
</div>
</section>
</main>
<script src='node_modules/moment/min/moment-with-locales.min.js'></script>
<script src='node_modules/angular-moment/angular-moment.min.js'></script>
<script src='lib/js/main.js'></script>
</body>
</html>