/usr/share/doc/libjs-scriptaculous/test/functional/dragdrop7_test.html is in libjs-scriptaculous 1.9.0-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 | <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title></title>
<script src="../../lib/prototype.js" type="text/javascript"></script>
<script src="../../src/scriptaculous.js" type="text/javascript"></script>
<script type="text/javascript">
//<![CDATA[
Position.includeScrollOffsets = true;
Draggables.clear = function (event) {
while (Draggables.drags.length) {
var d = Draggables.drags.pop();
var e = d.element;
d.stopScrolling();
d.destroy();
d.element = null;
if (e.parentNode) {e.parentNode.removeChild(e)};
}
}
function cleanup() { //try to remove circular references
lis = document.getElementsByTagName("li");
for (i = 0; i < lis.length; i++) {
if (lis[i].longListItem) {lis[i].longListItem.destroy();}
else if (lis[i].container) {lis[i].container.destroy();}
}
Draggables.clear();
}
window.onload = function() {
var li = $("masterList").getElementsByTagName('LI');
for (var i = 0; i < li.length; i++) {
//var d = new LongListItem(li[i]);
//li[i].onmousedown = d.onMouseDown.bindAsEventListener(d);
var d = new Draggable(li[i],
{revert: true,
ghosting: false,
scroll: "rightContainers"
});
}
var divs = $("rightContainers").getElementsByTagName("div");
for (i = 0; i < divs.length; i++) {
if (divs[i].className && Element.hasClassName(divs[i], "container")) {
Droppables.add(divs[i].id, {hoverclass: "hover", scrollingParent: "rightContainers"});
}
}
Event.observe(window, 'unload', cleanup, false);
}
//]]>
</script>
<style type="text/css">
html, body {
margin:0; padding: 0;
height: 100% !important;
}
body {
position:relative;
color: black;
background-color: white;
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: small;
}
h1 {font-size:115%;}
h2 {font-size: 110%;}
h3 {font-size: 105%;}
div, p, li, td {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: small;
}
p {margin: 0 0 .7em 0; padding:0;}
ul {
position:relative;
list-style: none;
margin:0; padding:0;
overflow: visible;
}
li {position:relative;}
.instructions {font-style:italic;}
#leftDiv {
position: absolute;
top: 0; left: 0; bottom: 0;
width: 30%;
margin: 0; padding: 7px;
border-right: 2px solid #bb9;
background-color: #eed;
}
#leftDiv li, #rightContainers div.container li {
margin: 3px 0; padding: 3px 3em 3px 10px;
border: 2px solid #456;
background-color: #cde;
cursor: move;
}
#rightContainers {
padding: .5em;
position: absolute;
top: 0; bottom: 0; right: 0; left: 35%;
overflow:auto;
}
#rightContainers div.container{
background-color: #bb9;
margin: 0 0 40px 0; padding: 0 0 1px 0;
border: 2px solid #775;
}
#rightContainers div.container h2{
margin:0; padding: 2px 1em 0 1em;
text-align:center;
}
#rightContainers div.container ul {
margin: 5px; padding: 0 3px;
background-color: white;
border: 1px solid black;
}
#rightContainers div.container ul.empty {
padding: 3px 0;
}
#rightContainers div.hover {
background-color: #eed;
}
</style>
<!--[if IE]><style type="text/css">
#leftDiv {
height: expression((document.body.clientHeight - 44) + "px");
}
#leftDiv ul{width:93%;}
#leftDiv li div.count {
right:4px;
top:4px;
}
#rightContainers li a.remove {
display:block;
float:none;
position:absolute;
top: 4px;
right: 1.6em;
margin:0; padding:0 .2em;
}
</style><![endif]-->
</head>
<body>
<div id="leftDiv" class="">
<form id="frmContinue" action="#" method="post">
<p class="instructions">Shrink your window until the right-hand pane is scrollable.</p>
<p class="instructions">Drag from the list on left to groups on the right, force the right-hand pane to scroll.</p>
<input name="data" type="hidden" value=" ">
</form>
<ul id="masterList">
<li id="drag1">One</li>
<li id="drag2">Two</li>
<li id="drag3">Three</li>
<li id="drag4">Four</li>
<li id="drag5">Five</li>
<li id="drag6">Six</li>
<li id="drag7">Seven</li>
<li id="drag8">Eight</li>
</ul>
</div>
<div id="rightContainers" class="">
</form>
<div id="grp1" class="container">
<h2><span id="grp1_name">Group 1</span></h2>
<ul id="grp1ul" class="empty"></ul>
</div>
<div id="grp2" class="container">
<h2><span id="grp2_name">Group 2</span></h2>
<ul id="grp2ul" class="empty"></ul>
</div>
<div id="grp3" class="container">
<h2><span id="grp3_name">Group 3</span></h2>
<ul id="grp3ul" class="empty"></ul>
</div>
<div id="grp4" class="container">
<h2><span id="grp4_name">Group 4</span></h2>
<ul id="grp4ul" class="empty"></ul>
</div>
<div id="grp5" class="container">
<h2><span id="grp5_name">Group 5</span></h2>
<ul id="grp5ul" class="empty"></ul>
</div>
<div id="grp6" class="container">
<h2><span id="grp6_name">Group 6</span></h2>
<ul id="grp6ul" class="empty"></ul>
</div>
<div id="grp7" class="container">
<h2><span id="grp7_name">Group 7</span></h2>
<ul id="grp7ul" class="empty"></ul>
</div>
<div id="grp8" class="container">
<h2><span id="grp8_name">Group 8</span></h2>
<ul id="grp8ul" class="empty"></ul>
</div>
<div id="grp9" class="container">
<h2><span id="grp9_name">Group 9</span></h2>
<ul id="grp9ul" class="empty"></ul>
</div>
</div>
</body>
</html>
|