forked from ionic-team/ionic-framework
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathloading.html
More file actions
24 lines (23 loc) · 713 Bytes
/
Copy pathloading.html
File metadata and controls
24 lines (23 loc) · 713 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
<html>
<head>
<meta charset="utf-8">
<title>Loading</title>
<meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no, width=device-width">
<link href="../../dist/css/ionic.css" rel="stylesheet">
</head>
<body>
<div id="loading" class="loading">
<h4>Loading</h4>
</div>
<button id="show" class="button">Show</button>
<script src="../../dist/js/ionic.js"></script>
<script>
var loading = document.getElementById('loading');
var l = new ionic.views.Loading({el: loading});
var sb = document.getElementById('show');
sb.addEventListener('click', function(e) {
l.show();
});
</script>
</body>
</html>