-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathresourcesFromCDN.html
56 lines (46 loc) · 1.86 KB
/
resourcesFromCDN.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
<title>FallBack Test</title>
<!-- Bootstrap -->
<link href="https://cdn.jsdelivr.net/bootstrap/3.3.5/css/bootstrap.min.css" rel="stylesheet">
</head>
<body>
<div class="container text-center">
<div class="jumbotron">
<h3>Resources from CDN are correctly gotten.</h3>
<hr>
<div class="row">
<div class="col-lg-6 col-lg-offset-3 well">
<input id="btn_id" class="btn btn-primary btn-block" type="button" value=" Click">
</div>
</div>
<div class="row">
<div class="col-lg-12 ">
<em id="txt_id">loading..</em>
</div>
</div>
</div>
</div>
</body>
</html>
<script type="text/javascript" src="https://cdn.jsdelivr.net/jquery/3.0.0-alpha1/jquery.min.js"></script>
<script type="text/javascript" src="https://cdn.jsdelivr.net/modernizr/2.8.3/modernizr.min.js"></script>
<script type="text/javascript" src="fallback/FallBackModule.js"></script>
<script type="text/javascript">
var cssList=[{cdn:"https://cdn.jsdelivr.net/bootstrap/3.3.5/css/bootstrap.min.css",local:"lib/bootstrap_335/css/bootstrap.min.css"}];
FallBackModule.checkCss(cssList);
var jsList=[{object:"jQuery",local:"lib/jquery_300/jquery.min.js"},{object:"Modernizr",local:"lib/modernizr_283/modernizr.min.js"}];
FallBackModule.checkJs(jsList);
//Initialize js handlers
window.onload = function(){
$("#txt_id").html("Loaded");
$("#btn_id").click(function(){
$("#txt_id").html("Click!");
});
}
</script>