-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
88 lines (76 loc) · 3.45 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
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Dreamfilm</title>
<!-- styling -->
<link rel="stylesheet" type="text/css" href="assets/css/bootstrap.css">
<link rel="stylesheet" type="text/css" href="assets/css/style.css">
<link rel="stylesheet" href="assets/css/font-awesome.css" media="screen">
<!-- angular -->
<script src="assets/libs/angular.min.js"></script>
<script src="assets/libs/angular-route.js"></script>
<script src="app/app.js"></script>
<!-- controllers -->
<script src="app/controllers/DashboardController.js"></script>
<script src="app/controllers/DetailController.js"></script>
<script src="app/controllers/SearchController.js"></script>
<script src="app/controllers/FavoritesController.js"></script>
<script src="app/controllers/controllers.js"></script>
<script src="app/factory/datastorage.js"></script>
<script type="text/javascript">
// setup node_modules
const remote = require('electron').remote;
const application = remote.app;
const path = require('path')
const Datastore = require('nedb');
var can_send_request = true;
function new_request(){
var count_down = setTimeout(function(){
can_send_request = true;
}, 2900);
}
function send_request(callback,show_loader){
if(show_loader==true){
document.getElementById('gLoader').className = "loader visible";
}
var checker = setInterval(function(){
if(can_send_request==true){
document.getElementById('gLoader').className = "loader";
new_request();
callback();
can_send_request=false;
clearInterval(checker);
}
},100)
}
</script>
</head>
<body ng-app="app">
<div class="loader" id="gLoader">
<img src="assets/img/loading.gif" alt="" />
</div>
<div class="container-fluid">
<div class="sidebar" style="-webkit-app-region: drag" ng-controller="MenuController">
<img src="assets/img/dreamfilm.png" class="logo" alt="" />
<ul>
<li><a href="#/dashboard/latest/all" ng-click="pindex=0" class="{{pindex==0? 'active' : ''}}"><i class="fa fa-play-circle" aria-hidden="true"></i>Start</a></li>
<li><a href="#/favorites/" ng-click="pindex=5" class="{{pindex==5? 'active' : ''}}"><i class="fa fa-star" aria-hidden="true"></i>Favoriter</a></li>
</ul>
<h4><i class="fa fa-film" aria-hidden="true"></i> Serier</h4>
<ul>
<li><a href="#/dashboard/latest/serie" ng-click="pindex=1" class="{{pindex==1? 'active' : ''}}"> <i class="fa fa-clock-o" aria-hidden="true"></i>Senaste</a></li>
<li><a href="#/dashboard/toplist/serie" ng-click="pindex=2" class="{{pindex==2? 'active' : ''}}"><i class="fa fa-trophy" aria-hidden="true"></i>Topplistan</a></li>
</ul>
<h4><i class="fa fa-ticket" aria-hidden="true"></i> Filmer</h4>
<ul>
<li><a href="#/dashboard/latest/movie" ng-click="pindex=3" class="{{pindex==3? 'active' : ''}}"><i class="fa fa-clock-o" aria-hidden="true"></i>Senaste</a></li>
<li><a href="#/dashboard/toplist/movie" ng-click="pindex=4" class="{{pindex==4? 'active' : ''}}"><i class="fa fa-trophy" aria-hidden="true"></i>Topplistan</a></li>
</ul>
</div>
<!-- NG VIEW START -->
<div ng-view></div>
<!---.NG VIEW END -->
</div>
</body>
</html>