-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
203 lines (164 loc) · 7.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
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
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
<!doctype html>
<head>
<meta charset="utf-8">
<!-- <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no"> -->
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<title>May Gurney</title>
<!-- build:css styles/main.css -->
<link rel="stylesheet" href="styles/reset.css">
<link rel="stylesheet" href="styles/bootstrap.custom.css">
<link rel="stylesheet" href="styles/fonts.css">
<link rel="stylesheet" href="styles/colors.css">
<link rel="stylesheet" href="styles/main.css">
<link rel="stylesheet" href="styles/google-map.css">
<link rel="stylesheet" href="styles/dialog.css">
<link rel="stylesheet" href="styles/btn.css">
<link rel="stylesheet" href="styles/tabs.css">
<link rel="stylesheet" href="styles/section.css">
<link rel="stylesheet" href="styles/action.css">
<link rel="stylesheet" href="styles/header.css">
<link rel="stylesheet" href="styles/footer.css">
<link rel="stylesheet" href="styles/login.css">
<link rel="stylesheet" href="styles/usrn.css">
<link rel="stylesheet" href="styles/expandable.css">
<link rel="stylesheet" href="styles/defects.css">
<link rel="stylesheet" href="styles/details.css">
<link rel="stylesheet" href="styles/location.css">
<link rel="stylesheet" href="styles/image-swiper.css">
<!-- For use in the browser to show the camera feed -->
<link rel="stylesheet" href="styles/camera.css">
<!-- endbuild -->
<!-- GOOGLE MAPS API WITH ACCOUNT KEY -->
<!-- TODO: CHANGE API KEY! TODO: DO WE NEED SENSOR? -->
<script type="text/javascript" src="https://maps.googleapis.com/maps/api/js?key=AIzaSyDFZH7NJ4vgn6VIUeEzK8tIABXvaDKRDGs&sensor=true"></script>
<!-- // <script src="http://192.168.46.55:8080/target/target-script-min.js#anonymous"></script> -->
</head>
<body ng-controller="Login">
<div class="container" ng-cloak ng-view></div>
<!-- libs -->
<!-- nodejs url/path lib and deps -->
<script src="components/querystring.js"></script>
<script src="components/punycode.js"></script>
<script src="components/url.js"></script>
<script src="components/path.js"></script>
<!-- end: node js url/path lib and deps -->
<!-- <script src="components/hammer.js"></script> -->
<script src="components/sha1.js"></script>
<script src="components/moment.min.js"></script>
<script src="components/spark-md5.js"></script>
<script src="components/Lawnchair.js"></script>
<script src="components/angular/angular.js"></script>
<!-- <script src="components/fastclick.js"></script> -->
<!-- end: libs -->
<script>
(function() {
var script = document.createElement("script");
if(navigator.userAgent.toLowerCase().indexOf("android") > -1) {
script.src = "components/cordova/cordova.js";
document.body.appendChild(script);
}
else {
var cameraScript = document.createElement("script");
script.src = "components/phonegap-desktop/phonegap-desktop.js";
cameraScript.src = "js/Camera.js";
document.body.appendChild(script);
document.body.appendChild(cameraScript);
}
})();
</script>
<!-- plugin script files -->
<script src="plugins/filehasher.js"></script>
<script src="plugins/fileopener.js"></script>
<script src="plugins/version.js"></script>
<script src="plugins/screencapture.js"></script>
<!-- end: plugin script files -->
<script src="components/ui-bootstrap.js"></script>
<script src="components/iscroll/iscroll-lite.js"></script>
<script src="components/feedhenry/feedhenry.js"></script>
<script src="components/feedhenry/sync-cli.js"></script>
<!-- build:js scripts/scripts.js -->
<script src="App.js"></script>
<!-- Services -->
<script src="mg_services/SyncManager.js"></script>
<script src="mg_services/WorkOrderManager.js"></script>
<script src="mg_services/DefectManager.js"></script>
<script src="mg_services/Logger.js"></script>
<script src="mg_services/GPSService.js"></script>
<script src="mg_services/Attachments.js"></script>
<script src="mg_services/Network.js"></script>
<script src="mg_services/Navigation.js"></script>
<script src="mg_services/Auth.js"></script>
<!-- Controllers -->
<script src="controllers/Login.js"></script>
<script src="controllers/WorkOrderList.js"></script>
<script src="controllers/USRN.js"></script>
<script src="controllers/Location.js"></script>
<script src="controllers/DefectType.js"></script>
<script src="controllers/DefectDetails.js"></script>
<script src="controllers/RaiseDefect.js"></script>
<script src="controllers/USRNSummary.js"></script>
<script src="controllers/Location.js"></script>
<script src="controllers/LocationMap.js"></script>
<script src="controllers/Photo.js"></script>
<!-- Directives -->
<script src="directives/WorkOrderListItem.js"></script>
<script src="directives/MGHeader.js"></script>
<script src="directives/MGScroll.js"></script>
<script src="directives/DefectList.js"></script>
<script src="directives/RiskAssessment.js"></script>
<script src="directives/MGDialog.js"></script>
<script src="directives/MGAction.js"></script>
<script src="directives/Expandable.js"></script>
<script src="directives/Swipeable.js"></script>
<script src="directives/Attachment.js"></script>
<script src="directives/USRN.js"></script>
<script src="directives/Defect.js"></script>
<script src="directives/Details.js"></script>
<script src="directives/USRNSummary.js"></script>
<script src="directives/Textarea.js"></script>
<script src="directives/GoogleMap.js"></script>
<script src="directives/Focus.js"></script>
<script src="directives/Blur.js"></script>
<script src="js/FileTransfer.js"></script>
<script>
document.addEventListener("deviceready", function() {
function bootstrap() {
angular.bootstrap(document.body, ['mgApp']);
}
bootstrap();
// "host": "http://127.0.0.1:8000",
// "appid": "PWmwi2CpYGevbZsZyat2FW5o",
// "appkey": "db32cc1261fa12e29ade54acab99504b014529c9"
// var fh_config = {"appid":"_V58x1l9xm1iRTvd5b_MDCa6","appkey":"3c8cdfda6a9db304232f6379e94ec0b25f4d3a10","host":"https://ucb.appsdeveloper.o2.co.uk","mode":"dev"};
// $fh.init(fh_config, function(){
// console.log( ' success init ' );
// UCB.loadingScreen.hide(null, 3000);
// }, function(){
// $fh.init({
// "host": "https://maygurney.feedhenry.com",
// "appid": "o4qh_Yb1bzlyARIBVQG4Juee",
// "appkey": "bcc60fe2bd7cabab346de8974c58a540d847fdba",
// "mode": "dev"
// }, function(res) {
// bootstrap();
// console.log("$fh initialised");
// }, function(msg, err) {
// bootstrap();
// console.log("$fh failed to initialise");
// });
}, false);
Array.prototype.remove = function() {
var what, a = arguments, L = a.length, ax;
while (L && this.length) {
what = a[--L];
while ((ax = this.indexOf(what)) !== -1) {
this.splice(ax, 1);
}
}
return this;
};
// FastClick.attach(document.body);
</script>
<!-- endbuild -->
</body>
</html>