-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
213 lines (190 loc) · 7.78 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
204
205
206
207
208
209
210
211
212
213
<!DOCTYPE html>
<html ng-app="App">
<head>
<meta charset="utf-8">
<title>AngularJs Http Request Loader - Nikhil Rane</title>
<meta name="author" content="Nikhil Rane">
<meta name="description" content="I have 3 Years and 2 Months experience in Software Development. I have completed my Bachelor of Engineering in Computer Engineering and MBA in System Management.">
<meta name="Robots" content="ALL,INDEX">
<meta name="viewport" content="width=device-width, initial-scale=1, minimum-scale=1.0, maximum-scale=1.0">
<meta name="mobile-web-app-capable" content="yes">
<meta property="og:title" content="Nikhil Rane" />
<meta property="og:description" content="I have 3 Years and 2 Months experience in Software Development. I have completed my Bachelor of Engineering in Computer Engineering and MBA in System Management." />
<meta property="og:image" content="http://nikhilrane.com/assets/images/profile.png" />
<meta property="og:type" content="website" />
<meta property="og:url" content="http://www.nikhilrane.com/" />
<meta property="og:site_name" content="Nikhil Rane" />
<link rel="stylesheet" href="dist/angular-http-request-loader.min.css" media="screen" charset="utf-8">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" crossorigin="anonymous">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" crossorigin="anonymous">
<!-- Global site tag (gtag.js) - Google Analytics -->
<script async src="https://www.googletagmanager.com/gtag/js?id=UA-111611971-1"></script>
<script>
window.dataLayer = window.dataLayer || [];
function gtag() { dataLayer.push(arguments); }
gtag('js', new Date());
gtag('config', 'UA-111611971-1');
</script>
<style>
[ng\:cloak],
[ng-cloak],
[data-ng-cloak],
[x-ng-cloak],
.ng-cloak,
.x-ng-cloak {
display: none !important;
}
a,
a:focus,
a:hover {
color: #fff;
}
.btn-default,
.btn-default:hover,
.btn-default:focus {
color: #333;
text-shadow: none;
/* Prevent inheritence from `body` */
background-color: #fff;
border: 1px solid #fff;
}
html,
body {
background: url(src/images/background.jpg) no-repeat center center fixed;
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
background-size: cover;
height: 100%;
background-color: #060;
color: #fff;
text-align: center;
text-shadow: 0 1px 3px rgba(0, 0, 0, .5);
}
.site-wrapper {
display: table;
width: 100%;
height: 100%;
/* For at least Firefox */
min-height: 100%;
-webkit-box-shadow: inset 0 0 100px rgba(0, 0, 0, .5);
box-shadow: inset 0 0 100px rgba(0, 0, 0, .5);
}
.site-wrapper-inner {
display: table-cell;
vertical-align: top;
}
.cover-container {
margin-right: auto;
margin-left: auto;
}
/* Padding for spacing */
.inner {
padding: 30px;
}
.masthead-brand {
margin-top: 10px;
margin-bottom: 10px;
}
.masthead-nav>li {
display: inline-block;
}
.masthead-nav>li+li {
margin-left: 20px;
}
.masthead-nav>li>a {
padding-right: 0;
padding-left: 0;
font-size: 16px;
font-weight: bold;
color: #fff;
/* IE8 proofing */
color: rgba(255, 255, 255, .95);
border-bottom: 2px solid transparent;
}
.masthead-nav>li>a:hover,
.masthead-nav>li>a:focus {
background-color: transparent;
border-bottom-color: #a9a9a9;
border-bottom-color: rgba(255, 255, 255, .25);
}
.masthead-nav>.active>a,
.masthead-nav>.active>a:hover,
.masthead-nav>.active>a:focus {
color: #fff;
border-bottom-color: #fff;
}
.cover {
padding: 0 20px;
}
.cover .btn-lg {
padding: 10px 20px;
font-weight: bold;
}
.mastfoot {
color: #999;
/* IE8 proofing */
color: rgba(255, 255, 255, .5);
}
</style>
</head>
<body ng-cloak ng-controller="MainCtrl">
<a href="https://github.com/nikhilrane1992/angular-http-request-loader"><img style="position: absolute; top: 0; right: 0; border: 0;" src="src/images/fork_me_on_github.png" alt="Fork me on GitHub"></a>
<http-request-loader></http-request-loader>
<div class="site-wrapper">
<div class="site-wrapper-inner">
<div class="cover-container">
<div class="masthead clearfix">
<div class="inner">
<h3 class="masthead-brand">AngularJs Http Request Loader</h3>
<ul class="nav masthead-nav">
<li class="active"><a href="/" target="_blank "><i class="fa fa-home fa-2x" aria-hidden="true "></i></a></li>
<li><a href="https://nikhilrane1992.github.io/" target="_blank "><i class="fa fa-globe fa-2x" aria-hidden="true "></i></a></li>
<li><a href="https://www.linkedin.com/in/nikhilrane1992" target="_blank "><i class="fa fa-linkedin fa-2x"></i></a></li>
<li><a href="https://github.com/nikhilrane1992 " target="_blank "><i class="fa fa-github-alt fa-2x"></i></a></li>
<li><a href="https://stackoverflow.com/users/4268976/nikhil-rane " target="_blank "><i class="fa fa-stack-overflow fa-2x"></i></a></li>
<li><a href="https://www.facebook.com/nikhilrane1992 " target="_blank "><i class="fa fa-facebook-official fa-2x"></i></a></li>
<li><a href="https://twitter.com/nik4urane " target="_blank "><i class="fa fa-twitter fa-2x"></i></a></li>
</ul>
</div>
</div>
<div class="inner cover ">
<h1 class="cover-heading ">AngularJs Http Request Loader</h1>
<p class="lead ">Page loader for each http request.</p>
<p class="lead "><a class="btn btn-lg btn-info " href="# " ng-click="loadContaint() ">Demo</a></p>
</div>
<div class="mastfoot ">
<div class="inner ">
<!-- Validation -->
<p><a target="_blank "><small>Nikhil Rane</small><sup>+</sup></a></p>
<p><a href="https://github.com/nikhilrane1992/angular-http-request-loader" target="_blank "><small>Checked with Github</small></a></p>
<p>© 2017 Nikhil Rane ~ <a href="http://nikhilrane.com/ ">Nikhil Rane</a></p>
</div>
</div>
</div>
</div>
</div>
</body>
<script src="https://code.jquery.com/jquery-3.2.1.min.js " crossorigin="anonymous "></script>
<script type="text/javascript " src="https://cdnjs.cloudflare.com/ajax/libs/angular.js/1.6.5/angular.min.js "></script>
<script type="text/javascript " src="dist/angular-http-request-loader.js "></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js " crossorigin="anonymous "></script>
<script>
angular.module('App', [
'angular.http.request.loader'
])
.controller('MainCtrl', function($scope, $http) {
console.log("MainCtrl Loads ");
$scope.loadContaint = function() {
$http.get('https://reqres.in/api/users?page=2').
then(function(response) {
console.log("Done ");
},
function(data, status, headers, config) {
console.log("Error ");
}
)
}
});
</script>
</html>