-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
143 lines (120 loc) · 4.61 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
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>PR1 Emberxjs</title>
<!--
<link rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/foundation/5.2.1/css/foundation.min.css">
-->
<link rel="stylesheet" type="text/css" href="libs/foundation/5.2.1/css/foundation.min.css">
<link rel="stylesheet" type="text/css" href="style.css">
<script type="text/javascript">EmberENV = {FEATURES: {'query-params-new': true}};</script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/modernizr/2.7.1/modernizr.min.js"></script>
</head>
<body>
<script type="text/x-handlebars">
<nav class="top-bar" data-topbar>
<ul class="title-area">
<li class="name">
<h1>{{#linkTo "notes" (query-params query="")}}Notes{{/linkTo}}</h1>
</li>
</ul>
<section class="top-bar-section">
<!-- Left Nav Section -->
<!-- Right Nav Section -->
<ul class="right">
<li>
<a href="#" {{action createNote}}>+ New Note</a>
</li>
</ul>
</section>
</nav>
{{outlet}}
</script>
<script type="text/x-handlebars" data-template-name="notes">
<div class="row">
<div class="large-6 columns large-centered">
<div class="row collapse">
<div class="large-10 columns">
{{input type="text" value=queryField placeholder="Search"}}
</div>
<div class="large-2 columns">
<button {{action "search"}} class="postfix">Go</button>
</div>
</div>
</div>
</div>
<div class="row">
<div class="large-12 columns">
<ul class="small-block-grid-4">
{{#each model}}
<li>
<div class="note">
{{#linkTo "note" this}}
<h3>{{title}}</h3>
<div>{{markdown body}}</div>
{{/linkTo}}
</div>
</li>
{{else}}
No elements to show!
{{/each}}
</ul>
</div>
</div>
<div class="row">
{{outlet}}
</div>
</script>
<script type="text/x-handlebars" data-template-name="components/modal-em">
<div class="reveal-modal-bg" style="display: block;" {{action "close" on="click"}}></div>
<div id="modal" class="reveal-modal visible">
{{yield}}
<a href="#" class="close-reveal-modal" {{action "close" on="click"}}>×</a>
</div>
</script>
<script type="text/x-handlebars" data-template-name="note">
{{#modal-em close="closeModal"}}
<h2>{{title}}</h2>
<div>{{markdown body}}</div>
{{#linkTo "notes.edit" this}}
Edit
{{/linkTo}}
<a href="#" {{action deleteNote}}>Eliminar</a>
{{/modal-em}}
</script>
<script type="text/x-handlebars" data-template-name="notes/edit">
{{#modal-em close="closeModal"}}
<form {{action save on="submit"}}>
{{input type="text" value=title}}
{{textarea rows=9 value=body}}
<button type="submit">Done</button>
</form>
{{/modal-em}}
</script>
<!--
<script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.0/jquery.min.js"></script>
-->
<script src="libs/jquery/2.1.0/jquery.min.js"></script>
<!--
<script src="https://cdnjs.cloudflare.com/ajax/libs/handlebars.js/1.3.0/handlebars.min.js"></script>
<script src="http://cdnjs.cloudflare.com/ajax/libs/ember.js/1.5.0/ember.min.js"></script>
<script src="http://cdnjs.cloudflare.com/ajax/libs/ember-data.js/1.0.0-beta.7/ember-data.min.js"></script>
-->
<script src="libs/handlebars.js/1.3.0/handlebars.min.js"></script>
<!--<script src="libs/ember.js/1.5.0/ember.min.js"></script>-->
<script src="http://builds.emberjs.com/canary/ember.min.js"></script>
<script src="libs/ember-data.js/1.0.0-beta.7/ember-data.min.js"></script>
<!--
<script src="https://cdnjs.cloudflare.com/ajax/libs/fastclick/1.0.0/fastclick.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/foundation/5.2.1/js/foundation.min.js"></script>
-->
<script src="libs/fastclick/1.0.0/fastclick.min.js"></script>
<script src="libs/foundation/5.2.1/js/foundation.min.js"></script>
<script src="libs/localstorage_adapter/localstorage_adapter.js"></script>
<script src="libs/showdown.js"></script>
<script src="js/application.js"></script>
<script src="js/router.js"></script>
<script src="js/models/note.js"></script>
</body>
</html>