forked from Saquib764/dna-router
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
68 lines (54 loc) · 1.99 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
<!DOCTYPE html>
<html lang='en'>
<head>
<title>Yolap</title>
<meta charset="UTF-8">
<meta name="author" content="Md Saquib Alam">
<meta http-equiv="cache-control" content="max-age=0" />
<meta http-equiv="cache-control" content="no-cache" />
<meta http-equiv="expires" content="0" />
<meta http-equiv="expires" content="Tue, 01 Jan 1980 1:00:00 GMT" />
<meta http-equiv="pragma" content="no-cache" />
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
<style type="text/css">
*{
padding: 0;
margin: 0;
}
.s{
width: 200px;
}
</style>
</head>
<body class="fullbleed layout vertical" onload="run()">
<dna-config id='conf' home='contact' template='\template'></dna-config>
<dna-new-state state='home' route='/home/:id'></dna-new-state>
<dna-new-state state='contact' route='/contact'></dna-new-state>
<dna-many-view>
asdas
<dna-view class='s'
state='home'
on-auth
element='auth-home-template'
else-element='home-template'></dna-view>
<!--
<dna-view state='home' class='s' element='contact-template'></dna-view> -->
</dna-many-view>
<a is='s-ref' goto='["home",{"id":"ac"}]'>dlml</a>
<dna-view state='contact' element='contact-template'></dna-view>
</body>
<!-- Import all third party plugin here -->
<link rel="import" href="/bower_components/dna-router/dna-view.html">
<link rel="import" href="/bower_components/dna-router/dna-new-state.html">
<script src="/bower_components/webcomponentsjs/webcomponents.min.js"></script>
<script type="text/javascript">
DNA.run = function(){
// console.log('yeo');
var conf = document.querySelector('#conf');
conf.auth = true;
}
var run = function(){
// console.log('sad')
}
</script>
</html>