-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
136 lines (114 loc) · 4.03 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>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no, width=device-width">
<title> Basic Ionic </title>
<link href="//code.ionicframework.com/1.3.2/css/ionic.css" rel="stylesheet">
<script src="//code.ionicframework.com/1.3.2/js/ionic.bundle.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.5.8/angular-resource.js"></script>
<!-- restdb.io -->
<script src="https://rdb-simpledb.restdb.io/assets/js/eventsource.min.js"></script>
<script src="https://rdb-simpledb.restdb.io/rest/_jsapi.js"></script>
<script src="script.js"></script>
</head>
<body ng-app="ionAppH">
<ion-nav-view></ion-nav-view>
<script id="templates/menu.html" type="text/ng-template">
<ion-side-menus enable-menu-with-back-views="false">
<ion-side-menu-content>
<ion-nav-bar class="bar-positive">
<ion-nav-back-button>
</ion-nav-back-button>
<ion-nav-buttons side="left">
<a href="#"><button class="button button-icon button-clear ion-ios-home-outline" menu-close></button></a>
</ion-nav-buttons>
<ion-nav-buttons side="right">
<button class="button button-icon button-clear ion-navicon" menu-toggle="right">
</button> </ion-nav-buttons>
</ion-nav-bar>
<ion-nav-view name="menuContent"></ion-nav-view>
</ion-side-menu-content>
<ion-side-menu side="right">
<ion-header-bar class="bar-stable">
<h1 class="title">Main Menu</h1>
</ion-header-bar>
<ion-content>
<div class="list">
<a class="item item-icon-left" href="#/event/page1" menu-close>
<i class="icon ion-ios-paperplane"></i>
Page 1 <span class="item-note">
(contacts)
</span>
</a>
<a class="item item-icon-left" href="#/event/page2" menu-close>
<i class="icon ion-ios-paperplane-outline"></i>
Page 2 <span class="item-note">
(products)
</span>
</a>
</div>
</ion-content>
</ion-side-menu>
</ion-side-menus>
</script>
<script id="templates/main.html" type="text/ng-template">
<ion-view view-title="Main Page">
<ion-content>
<h2> </h2>
<div class="card">
<div class="item item-text-wrap">
<br> {{ngrContact[0]["first-name"]}} {{ngrContact[0]["last-name"]}} mailto:{{ngrContact[0].email}}
<br> id:{{ngrContact[0]._id}} <br> {{ ngrContact[0].comment }}
<br><img src="https://rdb-simpledb.restdb.io/media/{{ ngrContact[0].photo[0] }}?s=t">
</div>
</div><h2> </h2>
<div class="row"> <div class="col">
<a href="#/event/getOne" class="item item-icon-left">
<i class="icon ion-edit"></i> button 1 </a>
</div> <div class="col">
<a href="#/event/meta" class="item item-icon-left" menu-close>
<i class="icon ion-ios-glasses"></i> _meta </a>
</div> </div>
</ion-content>
</ion-view>
</script>
<script id="templates/page1.html" type="text/ng-template">
<ion-view view-title="Page 1">
<ion-content>
<ion-list>
<ion-item ng-repeat="cc in allContacts">
{{cc["first-name"]}} {{cc["last-name"]}} mailto:{{cc.email}}
<br> id:{{cc._id}} {{ cc.comment }}
<br><img src="https://rdb-simpledb.restdb.io/media/{{ cc.photo }}[0]?s=t">
</ion-item>
</ion-list>
</ion-content>
</ion-view>
</script>
<script id="templates/page2.html" type="text/ng-template">
<ion-view view-title="Page 2">
<ion-content>
<h2>Products:</h2>
<ion-list>
<ion-item ng-repeat="pp in prod">
{{pp.name}} <br>Serial:{{pp.serialno}} Price: {{pp.price | currency}}
<br><img src="https://rdb-simpledb.restdb.io/media/{{ pp.photo }}[0]?s=t">
</ion-item>
</ion-list>
<br><br> .. end Products
</ion-content>
</ion-view>
</script>
<script id="templates/meta.html" type="text/ng-template">
<ion-view view-title=" _meta ">
<ion-content>
<div class="row-fluid">
{{ getMeta }}
<br> .. end Meta <br><br><br>
</div>
</ion-content>
</ion-view>
</script>
</body>
</html>