-
Notifications
You must be signed in to change notification settings - Fork 2
/
index.html
76 lines (68 loc) · 2.63 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
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>FASCII</title>
<link rel="stylesheet" href="node_modules/angular-material/angular-material.css" media="screen" title="no title" charset="utf-8">
<link href='https://fonts.googleapis.com/css?family=Cabin:400,500' rel='stylesheet' type='text/css'>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.6.3/css/font-awesome.min.css">
<style>
body {
text-align: center;
font-family: 'Cabin', sans-serif;
}
form {
max-width: 94%;
display: inline-block;
}
section {
max-width: 5%;
display: inline-block;
}
h1, h2 {
padding: 4px;
vertical-align: middle;
}
</style>
</head>
<body ng-app="fascii">
<md-content>
<h1>fASCII</h1>
<form ng-controller="SearchFascii as ctrl" ng-submit="$event.preventDefault()">
<h2>{{selected_fascii.fascii}}</h2>
<md-autocomplete
md-selected-item="ctrl.selectedItem"
md-search-text-change="ctrl.searchTextChange(ctrl.searchText)"
md-search-text="ctrl.searchText"
md-selected-item-change="ctrl.selectedItemChange(item)"
md-items="item in ctrl.querySearch(ctrl.searchText)"
md-item-text="item.fascii"
md-min-length="0"
placeholder="What kinda mood ya in?">
<md-item-template>
<span md-highlight-text="ctrl.searchText" md-highlight-flags="^i">{{item.fascii}}</span>
</md-item-template>
<md-not-found>
No fASCII mood was found for "{{ctrl.searchText}}".
</md-not-found>
</md-autocomplete>
</form>
<section ng-controller="ToastCtrl">
<button ng-click='boomToast()' ngclipboard data-clipboard-target="input[type=search]" type="button" name="copy" class="copyBtn" id="copyBtn"><i class="fa fa-paperclip"></i></button>
</section>
</md-content>
</body>
<script>
// angular stuff
require('./node_modules/angular/angular.js')
require('./node_modules/angular-material/angular-material.js')
require('./node_modules/angular-messages/angular-messages.js')
require('./node_modules/angular-animate/angular-animate.js')
require('./node_modules/angular-aria/angular-aria.js')
// clipboard stuff
require('./node_modules/clipboard/dist/clipboard.min.js')
require('./node_modules/ngclipboard/dist/ngclipboard.min.js')
// app stuff
require('./renderer.js')
</script>
</html>