-
Notifications
You must be signed in to change notification settings - Fork 0
/
demo.html
77 lines (70 loc) · 2.73 KB
/
demo.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
69
70
71
72
73
74
75
76
77
<!DOCTYPE HTML PUBdivC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Test Menu</title>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js"></script>
<script type="text/javascript" src="inc/jquery.fs.waveMenu.js"></script>
<style type="text/css">
#menu {
display: none;
border: 1px solid #000000;
width: 160px;
}
#menu div {
width: 150px;
}
#log {
color: red;
font-size: large;
}
.waveMenuOver {
padding-bottom: 10px;
padding-top: 10px;
padding-left: 10px;
color: red;
}
.waveMenuNeighborsOver {
}
.waveMenuSelected {
color: #008000;
padding-bottom: 10px;
padding-top: 10px;
padding-left: 10px;
}
</style>
<script type="text/javascript">
jQuery(document).ready(function($) {
$('#menu').fsWaveMenu({scale: 100, beginningScale: 70});
//$('#menu').fsWaveMenu({scale: 100, beginningScale: 50, neighborsScale: 80});
//$('#menu').fsWaveMenu({scale: 130, beginningScale: 100, neighborsScale: 110});
$('#menu').children().each(function() {
$(this).css("cursor", "pointer").click(function() {
pressed(this);
});
});
})
function pressed(el) {
$('#log').html("Pressed " + $(el).text());
}
</script>
</head>
<body>
<div style="width: 100%; text-align: center;"><div id="log">Wave Menu</div></div>
<br />
<div id="menu">
<div class="waveMenuDefaultSelected"><img src='images/Budget45x45.png' title='MENU 1' alt='' /> MENU 1</div>
<div><img src='images/Formazione45x45.png' title='MENU 2' alt='' /><a href="#" onclick="pressed(this);">MENU 2</a></div>
<div><img src='images/Organizzazione45x45.png' title='MENU 3' alt='' /> MENU 3</div>
<div><img src='images/Presenze45x45.png' title='MENU 4' alt='' /> MENU 4</div>
<div><img src='images/Profili45x45.png' title='MENU 5' alt='' /> MENU 5</div>
<div><img src='images/Selezione45x45.png' title='MENU 6' alt='' /> MENU 6</div>
<div><img src='images/Spese45x45.png' title='MENU 7' alt='' /> MENU 7</div>
<div><img src='images/Trasferte45x45.png' title='MENU 8' alt='' /> MENU 8</div>
<div><img src='images/Valutazioni45x45.png' title='MENU 9' alt='' /> MENU 9</div>
<div><img src='images/Visite45x45.png' title='MENU 10' alt='' /> MENU 10</div>
<div>MENU 11</div>
<div>MENU 12</div>
</div>
</body>
</html>