-
Notifications
You must be signed in to change notification settings - Fork 1
/
index.html
43 lines (41 loc) · 1.62 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
<html style="width:100%">
<head>
<link rel="stylesheet" href="src/styles/mobilio-menu.css">
<script type="text/javascript" src="src/js/mobilio-menu.js"></script>
<meta name="viewport" content="width=device-width, user-scalable=no">
</head>
<body style="width:100%">
<div id="myList">
<ul>
<li><a href="#">Top Level</a>
<ul class="child-menu">
<li class="HEJ" id="hej2"><a href="#">Sub Level 1</a></li>
<li><a href="#">Sub Level 1</a></li>
<li><a href="#">Sub Level 1</a>
<ul class="child-menu">
<h1>I will be removed, I am not allowed</h1>
<li><a href="#">Sub Level 2</a></li>
<li><a href="#">Sub Level 2</a></li>
<li><a href="#">Sub Level 2</a></li>
</ul>
</li>
</ul>
</li>
<li><a href="#">Top Level</a></li>
<li>
<h4> This text will also be removed unless we add "H4" to the allowedTags.</h4>
<a href="#">Top Level</a>
</li>
<li><a href="#">Top Level</a></li>
<li><a href="#">Top Level</a></li>
<li><a href="#">Top Level</a></li>
<li><a href="#">Top Level</a></li>
<li><a href="#">Top Level</a></li>
</ul>
</div>
<script>
var elem = document.querySelector('#myList');
mobilioMenu.create(elem, {direction: 'left', theme: 'dark', breakpoint: 770});
</script>
</body>
</html>