-
Notifications
You must be signed in to change notification settings - Fork 3
/
index.html
207 lines (180 loc) · 7.08 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
<!DOCTYPE html>
<html>
<title>Loader</title>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css" integrity="sha384-MCw98/SFnGE8fJT3GXwEOngsV7Zt27NXFoaoApmYm81iuXoPkFOJwJ8ERdknLPMO"
crossorigin="anonymous">
<link rel='stylesheet' href='css/prettify.css' />
<link rel="stylesheet" type="text/css" href="css/styles.css">
<link rel="stylesheet" type="text/css" href="css/loading.css">
<link rel="stylesheet" type="text/css" href="css/dancing-circles.css">
<link rel="stylesheet" type="text/css" href="css/dancing-squares.css">
<link rel="stylesheet" type="text/css" href="css/dancing-squares-large.css">
<link rel="stylesheet" type="text/css" href="css/spinning-heart.css">
<link rel="stylesheet" type="text/css" href="css/spinning-line.css">
<link rel="stylesheet" type="text/css" href="css/dancing-dots.css">
<link rel="stylesheet" type="text/css" href="css/merging-circles.css">
<link rel="stylesheet" type="text/css" href="css/fading-dots.css">
<link rel="stylesheet" type="text/css" href="css/spinning-circles.css">
<link href="https://fonts.googleapis.com/css?family=Roboto" rel="stylesheet">
<script async defer src="https://buttons.github.io/buttons.js"></script>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"></script>
<script src="prettify/prettify.js"></script>
<script src="https://code.jquery.com/jquery-3.3.1.min.js" integrity="sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8="
crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.3/umd/popper.min.js" integrity="sha384-ZMP7rVo3mIykV+2+9J3UJ46jBk0WLaUAdn689aCwoqbBJiSnjAK/l8WvCWPIPm49"
crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/js/bootstrap.min.js" integrity="sha384-ChfqqxuZUCnJSK3+MXmPNIyE6ZbWh2IMqE241rYiqJxyMiZ6OW/JmZQ5stwEULTy"
crossorigin="anonymous"></script>
<script>
$(function () {
$("<pre />", {
"html": '<!DOCTYPE html>\n<html>\n' +
$("html")
.html()
.replace(/[<>]/g, function (m) { return { '<': '<', '>': '>' }[m] })
.replace(/((ftp|http|https):\/\/(\w+:{0,1}\w*@)?(\S+)(:[0-9]+)?(\/|\/([\w#!:.?+=&%@!\-\/]))?)/gi, '<a href="$1">$1</a>') +
'\n</html>',
"class": "prettyprint"
}).appendTo("#source-code");
prettyPrint();
});
</script>
</head>
<body class="container">
<div id="page-wrap">
<a href="#source-code" class="btn btn-primary btn-view-source" id="view-source">View Page Source</a>
<div class="btn-github">
<a align="left" class="github-button" href="https://github.com/prithaupadhyay/CSS-Loaders/fork" data-icon="octicon-repo-forked"
data-size="large" data-show-count="true" aria-label="Fork prithaupadhyay/CSS-Loaders on GitHub">Fork</a>
<a align="left" class="github-button" href="https://github.com/prithaupadhyay" data-size="large" data-show-count="true"
aria-label="Follow @prithaupadhyay on GitHub">Follow @prithaupadhyay</a>
<a align="left" class="github-button" href="https://github.com/prithaupadhyay/CSS-Loaders" data-icon="octicon-star"
data-size="large" data-show-count="true" aria-label="Star prithaupadhyay/CSS-Loaders on GitHub">Star</a>
</div>
<h1>Loaders</h1>
<div class="grid-container">
<div class="loader-preview load0" id="loading">
<div class="code">
<h1 class="loading">LOADING</h1>
<div id="l1dot1"></div>
<div id="l1dot2"></div>
<div id="l1dot3"></div>
<div id="l1dot4"></div>
</div>
<button class="btn btn-dark view-code">Source Code</button>
</div>
<div class="loader-preview load3" id="dancing-circles">
<div class="code">
<div id="l3box1"></div>
<div id="l3box2"></div><br>
<div id="l3box3"></div>
<div id="l3box4"></div>
</div>
<button class="btn btn-dark view-code">Source Code</button>
</div>
<div class="loader-preview load1" id="dancing-squares">
<div class="code">
<div id="l1box1"></div>
<div id="l1box2"></div><br>
<div id="l1box3"></div>
<div id="l1box4"></div>
</div>
<button class="btn btn-dark view-code">Source Code</button>
</div>
<div class="loader-preview load6" id="spinning-heart">
<div class="code">
<div id="heart"></div>
</div>
<button class="btn btn-dark view-code">Source Code</button>
</div>
<div class="loader-preview load5" id="spinning-line">
<div class="code">
<div id="l5box1"></div>
</div>
<button class="btn btn-dark view-code">Source Code</button>
</div>
<div class="loader-preview load9" id="merging-circles">
<div class="code">
<div class="load9inner">
<div class="l9dot l9dot-1"></div>
<div class="l9dot l9dot-2"></div>
<div class="l9dot l9dot-3"></div>
<div class="l9dot l9dot-4"></div>
</div>
</div>
<button class="btn btn-dark view-code">Source Code</button>
</div>
<div class="loader-preview load4" id="dancing-dots">
<div class="code">
<div id="l4ball1"></div>
<div id="l4ball2"></div>
<div id="l4ball3"></div>
<div id="l4ball4"></div>
</div>
<button class="btn btn-dark view-code">Source Code</button>
</div>
<div class="loader-preview load2" id="dancing-squares-large">
<div class="code">
<div id="l2box1"></div>
<div id="l2box2"></div><br>
<div id="l2box3"></div>
<div id="l2box4"></div>
</div>
<button class="btn btn-dark view-code">Source Code</button>
</div>
<div class="loader-preview load7" id="fading-dots">
<div class="code">
<div id="l7ball1"></div>
<div id="l7ball2"></div>
<div id="l7ball3"></div>
<div id="l7ball4"></div>
</div>
<button class="btn btn-dark view-code">Source Code</button>
</div>
<div class="loader-preview load10" id="spinning-circles">
<div class="code">
<div class="spinning-circles">
<div class="circle1"></div>
<div class="circle2"></div>
<div class="circle3"></div>
<div class="circle4"></div>
</div>
</div>
<button class="btn btn-dark view-code">Source Code</button>
</div>
</div>
<div id="view-source-code">
<div>
<h3>HTML:</h3>
<div class="html">
<code></code>
</div>
<h3>CSS:</h3>
<div class="css">
<code></code>
</div>
</div>
<button class="close">X</button>
</div>
<div class="code-modal-back"></div>
<div id="source-code">
<a href="#" id="x"><img src="image/x.png" alt="close"></a>
</div>
</div>
<script type="text/javascript">
$(document).ready(function () {
$('.view-code').click(function () {
$('#view-source-code').show();
$('.code-modal-back').show();
$('#view-source-code .html code').text($(this).siblings('.code').html());
var code_name = $(this).parent().attr('id');
$.get('css/' + code_name + '.css', function (data) {
$('#view-source-code .css code').text(data);
}, 'text');
});
$('.code-modal-back, #view-source-code .close').click(function () {
$('#view-source-code').hide();
$('.code-modal-back').hide();
});
});
</script>