-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
178 lines (158 loc) · 7.42 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
<!DOCTYPE html>
<html lang="en-US" ng-app="myApp">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>TechAjis-News Portal</title>
<link rel="stylesheet" href="css/components.css">
<link rel="stylesheet" href="css/icons.css">
<link rel="stylesheet" href="css/responsee.css">
<link rel="stylesheet" href="owl-carousel/owl.carousel.css">
<link rel="stylesheet" href="owl-carousel/owl.theme.css">
<link rel="stylesheet" type="text/css" href="css/mdb.min.css">
<link rel='stylesheet' href="http://cdnjs.cloudflare.com/ajax/libs/angular-loading-bar/0.9.0/loading-bar.min.css" type='text/css' media='all' />
<!-- custom styles -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.6.3/css/font-awesome.min.css">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.6.0/css/font-awesome.min.css">
<!-- CUSTOM STYLE -->
<link rel="stylesheet" href="css/template-style.min.css">
<link href='http://fonts.googleapis.com/css?family=Open+Sans:400,300,600,700,800&subset=latin,latin-ext' rel='stylesheet' type='text/css'>
<script src="js/jquery-3.1.1.min.js" charset="utf-8"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jqueryui/1.12.1/jquery-ui.min.js"></script>
<script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<script>
(adsbygoogle = window.adsbygoogle || []).push({
google_ad_client: "ca-pub-3853326597189402",
enable_page_level_ads: true
});
</script>
</head>
<body class="" ng-controller="newsController" >
<style>
#gotToTop{
display: none;
position: fixed;
bottom : 20px;
right: 30px;
}
</style>
<!-- Loading-Bar -->
<div id="loading-bar-container"></div>
<!-- Navigation bar -->
<div class="line">
<nav>
<p class="nav-text">Tech-Ajis News</p>
<!--Left side-->
<div class="s-12 l-6">
<div class="top-nav">
<ul>
<li><a href="#!home" ng-click="getLatest()">Home</a></li>
<li><a href="#!topstory" ng-click="getTopStories()">Top News</a></li>
<li><a href="#!latestStory" >Latest News</a></li>
<li><a href="#!contact">Contact</a></li>
</ul>
</div>
</div>
</nav>
</div>
<!-- /Navigation Bar -->
<div class="line">
<div id="content-wrapper">
<!-- LEFT COLUMN -->
<div class="s-12 m-4 l-3" ng-include="'view/leftNav.html'"></div>
<!-- Middle COLUMN -->
<div class="s-12 m-8 l-9">
<div class="box">
<!-- HEADER -->
<!-- CAROUSEL -->
<div class="line">
<div id="owl-demo3" class="owl-carousel margin-bottom">
<div class="item" style="padding:5px"><a href="#!topstory" ng-click="getTopStories()">
<img ng-src="http://placehold.it/300x70/3f51b5/fff?text=World" alt=""></a>
</div>
<div class="item" style="padding:5px"><a href="#!topStoriesByCategory"
ng-click="getTopStoriesByCategory('business', 'Business')">
<img ng-src="http://placehold.it/300x70/673ab7/fff?text=Business" alt=""></a>
</div>
<div class="item" style="padding:5px"><a href="#!topStoriesByCategory"
ng-click="getTopStoriesByCategory('entertainment', 'Entertainment')">
<img ng-src="http://placehold.it/300x70/db4437/fff?text=Entertainment" alt=""></a>
</div>
<div class="item" style="padding:5px"><a href="#!topStoriesByCategory"
ng-click="getTopStoriesByCategory('gaming', 'Gaming')">
<img ng-src="http://placehold.it/300x70/9c27b0/fff?text=Gaming" alt=""></a>
</div>
<div class="item" style="padding:5px"><a href="#!topStoriesByCategory"
ng-click="getTopStoriesByCategory('music', 'Music')">
<img ng-src="http://placehold.it/300x70/E36132/fff?text=Music" alt=""></a>
</div>
<div class="item" style="padding:5px"><a href="#!topStoriesByCategory"
ng-click="getTopStoriesByCategory('politics', 'Politics')">
<img ng-src="http://placehold.it/300x70/e91e63/fff?text=Politics" alt=""></a>
</div>
<div class="item" style="padding:5px"><a href="#!topStoriesByCategory"
ng-click="getTopStoriesByCategory('science-and-nature', 'Science')">
<img ng-src="http://placehold.it/300x70/673ab7/fff?text=Science" alt=""></a>
</div>
<div class="item" style="padding:5px"><a href="#!topStoriesByCategory"
ng-click="getTopStoriesByCategory('sport', 'Sports')">
<img ng-src="http://placehold.it/300x70/009688/fff?text=Sports" alt=""></a>
</div>
<div class="item" style="padding:5px"><a href="#!topStoriesByCategory"
ng-click="getTopStoriesByCategory('technology', 'Technology')">
<img ng-src="http://placehold.it/300x70/db4437/fff?text=Technology" alt=""></a>
</div>
</div>
</div>
<div ng-view></div>
</div>
<button type="button" id="gotToTop" class="btn btn-danger btn-circle btn-xl"
onclick="topFunction()" title="Go to top"><i class="fa fa-chevron-circle-up"></i></button>
<!-- FOOTER -->
<div class="" ng-include="'view/footer.html'"></div>
</div>
</div>
</div>
<!-- Scripts -->
<script src="js/tether.min.js" charset="utf-8"></script>
<script src="js/bootstrap.min.js" charset="utf-8"></script>
<script src="js/mdb.min.js" charset="utf-8"></script>
<script type="text/javascript" src="js/responsee.js"></script>
<script type="text/javascript" src="owl-carousel/owl.carousel.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/angular.js/1.6.5/angular.min.js" charset="utf-8"></script>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.6.4/angular-route.js"></script>
<script src="http://cdnjs.cloudflare.com/ajax/libs/angular-loading-bar/0.9.0/loading-bar.min.js" charset="utf-8"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/x2js/1.2.0/xml2json.min.js" charset="utf-8"></script>
<script src="js/timeAgo.min.js" charset="utf-8"></script>
<!-- AngularScripts -->
<script src="scripts/app.js" charset="utf-8"></script>
<script src="scripts/appController.min.js" charset="utf-8"></script>
<script src="scripts/appService.min.js" charset="utf-8"></script>
<!-- /AngularScripts -->
<script type="text/javascript">
jQuery(document).ready(function($) {
$("#owl-demo3").owlCarousel({
items : 4,
lazyLoad : true,
autoPlay : true,
navigation : false,
pagination : false
});
});
// When the user scrolls down 20px from the top of the document, show the button
window.onscroll = function() {scrollFunction()};
function scrollFunction() {
if (document.body.scrollTop > 20 || document.documentElement.scrollTop > 20) {
document.getElementById("gotToTop").style.display = "block";
} else {
document.getElementById("gotToTop").style.display = "none";
}
}
// When the user clicks on the button, scroll to the top of the document
function topFunction() {
document.body.scrollTop = 0; // For Chrome, Safari and Opera
document.documentElement.scrollTop = 0; // For IE and Firefox
}
</script>
</body>
</html>