-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapp.js
More file actions
executable file
·59 lines (53 loc) · 1.58 KB
/
app.js
File metadata and controls
executable file
·59 lines (53 loc) · 1.58 KB
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
(function() {
'use strict';
angular.module('studybuddyai.app', [
'ui.router'
,'ui.bootstrap'
,'ngSanitize'
,'LocalStorageModule'
,'toaster'
,'bsLoadingOverlay'
,'ui'
,'ui.grid'
,'ui.grid.pinning'
,'ui.grid.exporter'
,'ui.grid.resizeColumns'
,'ui.grid.edit'
,'ui.select'
,'ui.utils.masks'
,'studybuddyai.app.config'
,'studybuddyai.app.common'
,'studybuddyai.app.navbar'
,'studybuddyai.app.menu'
,'studybuddyai.app.home'
,'studybuddyai.app.qa'
,'studybuddyai.app.maintain'
])
.service('AppService',function($window){
var self = this;
self.CurrentUser = {};
self.GetScreenWidth = function () {
return $window.innerWidth;
}
self.IsMobile = function(){
if($window.innerWidth < 700){
return true;
}else{
return false;
}
}
self.guid = function() {
function s4() {
return Math.floor((1 + Math.random()) * 0x10000)
.toString(16)
.substring(1);
}
return s4() + s4() + '-' + s4() + '-' + s4() + '-' +
s4() + '-' + s4() + s4() + s4();
}
})
.controller('appController', function ($state,AppService) {
var self = this;
console.log("appController");
})
})();