-
Notifications
You must be signed in to change notification settings - Fork 0
/
page.html
65 lines (61 loc) · 2.91 KB
/
page.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
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>jQuery UI Sortable - Connect lists</title>
<link rel="stylesheet" href="//code.jquery.com/ui/1.10.4/themes/smoothness/jquery-ui.css">
<script src="http://code.jquery.com/jquery-1.9.1.js"></script>
<script src="http://code.jquery.com/ui/1.10.4/jquery-ui.js"></script>
<link rel="stylesheet" href="/resources/demos/style.css">
<style>
#sortable1, #sortable2, #sortable3, #sortable4, #sortable5 { list-style-type: none; margin: 0; padding: 0 0 2.5em; float: left; margin-right: 10px;}
#sortable1 li, #sortable2 li, #sortable3 li, #sortable4 li, #sortable5 li { margin: 0 5px 5px 5px; padding: 5px; font-size: 1.2em; width: 220px; height: 50px; }
.dark { background-color: yellow;}
.light { background-color: lightblue;}
</style>
<script>
$(function() {
$( "#sortable1, #sortable2, #sortable3 , #sortable4 , #sortable5" ).sortable({
connectWith: ".connectedSortable"
}).disableSelection();
});
</script>
</head>
<body>
<ul id="sortable1" class="connectedSortable">
<li class="ui-state-default dark">What is closure:</li>
<li class="ui-state-default dark" >What is an expression:</li>
<li class="ui-state-default dark">What are value/primitive types (not objects):</li>
<li class="ui-state-default dark">What is a reference type:</li>
<li class="ui-state-default dark">Variables created with var exist in which space:</li>
<li class="ui-state-highlight dark">Variables not created with var exist:</li>
</ul>
<ul id="sortable2" class="connectedSortable">
<li class="ui-state-highlight light">array</li>
<li class="ui-state-highlight light">function</li>
<li class="ui-state-highlight light">string/number plus operator</li>
<li class="ui-state-highlight light">string</li>
</ul>
<ul id="sortable3" class="connectedSortable">
<li class="ui-state-highlight light">boolean</li>
<li class="ui-state-highlight light">undefined</li>
<li class="ui-state-highlight light">xxxx</li>
<li class="ui-state-highlight light">function expression</li>
<li class="ui-state-highlight light">in the global namespace</li>
</ul>
<ul id="sortable4" class="connectedSortable">
<li class="ui-state-highlight dark">When a new function is invoked:</li>
<li class="ui-state-highlight dark">What is a free variable:</li>
<li class="ui-state-highlight light">xxxx</li>
<li class="ui-state-highlight dark">xxxx</li>
<li class="ui-state-highlight dark">What is a bind variable:</li>
</ul>
<ul id="sortable5" class="connectedSortable">
<li class="ui-state-highlight light">variable in fn statement is also an argument</li>
<li class="ui-state-highlight light">variable in fn statement is not an argument</li>
<li class="ui-state-highlight light">a new environmnt is created</li>
<li class="ui-state-highlight light">a function with a free variable</li>
<li class="ui-state-highlight light">The space in which created</li>
</ul>
</body>
</html>