-
Notifications
You must be signed in to change notification settings - Fork 0
/
nested.html
executable file
·59 lines (37 loc) · 1.45 KB
/
nested.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
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Nested</title>
<link href="static/css/style.css" rel="stylesheet" type="text/css" media="screen" />
<script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=true"></script>
<script type="text/javascript" src="static/js/gmaps.js"> </script>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7/jquery.min.js"></script>
<script>window.jQuery || document.write('<script src="js/jquery-1.7.1.min.js"><\/script>')</script>
<script type="text/javascript" src="static/js/foursquare-js-api.js"></script>
<script src="static/js/jquery.nested.js"></script>
<script src="static/js/makeboxes.js"></script>
<script src="static/js/main.js"></script>
</head>
<body>
<div id="map" style="background-color: #000000; width:100%;height:50%;position:relative;">
</div>
<a class="btn" id="prepend">Prepend</a>
<div id="container">
<div class="box size11">1</div>
</div>
<a class="btn" id="append">Append</a>
<script type="text/javascript" >
$(function() {
$('#container').nested();
$('#prepend').click(function(){
var boxes = makeBoxes();
$('#container').prepend(boxes).nested('prepend',boxes);
})
$('#append').click(function(){
var boxes = makeBoxes();
$('#container').append(boxes).nested('append',boxes);
})
});
</script>
</body>
</html>