-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
43 lines (41 loc) · 1.75 KB
/
index.html
File metadata and controls
43 lines (41 loc) · 1.75 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
<!doctype html>
<!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]> <html class="no-js lt-ie9"> <![endif]-->
<!--[if gt IE 9]><!--> <html class="no-js"> <!--<![endif]-->
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<title>Loader</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width">
<link rel="stylesheet" href="css/loader.css">
<link rel="stylesheet" href="css/site.css">
<script src="//localhost:35729/livereload.js"></script>
<script src="https://code.jquery.com/jquery-2.1.3.min.js"></script>
<script>
$(document).ready(function(){
$.ajax("./src/scss/loader.scss").done(function(scssFile){
var regex = /(?:\.#\{\$loader-prefix\}-)((\w+-*)*)(?:\s\{)/gi;
var classNames = [];
var className;
while(className = regex.exec(scssFile)){
classNames.push(className[1]);
}
$.each(classNames, function(index, className){
var wrap = $('<div/>').addClass('wrap');
var div = $('<div/>').addClass('loader').addClass('loader-'+className);
wrap.append(div)
wrap.appendTo("#loaders");
});
console.log(classNames);
})
});
</script>
</head>
<body>
<div class="content">
<div class="loaders" id="loaders"></div>
</div>
</body>
</html>