en.javascript.info/02-ui/05-widgets/02-widgets-structure/menu-1/index.html
Ilya Kantor f301cb744d init
2014-10-26 22:10:13 +03:00

29 lines
No EOL
546 B
HTML
Executable file

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<link rel="stylesheet" href="style.css">
<script src="http://code.jquery.com/jquery.min.js"></script>
<script src="menu.js"></script>
</head>
<body>
<div id="sweets-menu" class="menu">
<span class="title">Сладости</span>
<ul>
<li>Торт</li>
<li>Пончик</li>
<li>Пирожное</li>
<li>Шоколадка</li>
<li>Мороженое</li>
</ul>
</div>
<script>
var menu = new Menu({
elem: $('#sweets-menu')
});
</script>
</body>
</html>