smparkes-envjs 0.0.9 → 0.0.10
Sign up to get free protection for your applications and to get access to all the features.
- data/bin/envjsrb +157 -73
- data/bin/jquery-1.3.2-test.js +11 -4
- data/lib/envjs/env.js +935 -11028
- data/lib/envjs/net/cgi.rb +94 -0
- data/lib/envjs/net/file.rb +4 -4
- data/lib/envjs/runtime.rb +80 -24
- data/test/call-load-test.js +0 -2
- data/test/firebug/errorIcon.png +0 -0
- data/test/firebug/firebug.css +209 -0
- data/test/firebug/firebug.html +23 -0
- data/test/firebug/firebug.js +672 -0
- data/test/firebug/firebugx.js +10 -0
- data/test/firebug/infoIcon.png +0 -0
- data/test/firebug/warningIcon.png +0 -0
- data/test/fixtures/html/events.html +171 -0
- data/test/fixtures/html/iframe1.html +46 -0
- data/test/fixtures/html/iframe1a.html +46 -0
- data/test/fixtures/html/iframe2.html +45 -0
- data/test/fixtures/html/iframe3.html +28 -0
- data/test/fixtures/html/iframeN.html +57 -0
- data/test/fixtures/html/malformed.html +181 -0
- data/test/fixtures/html/scope.html +81 -0
- data/test/fixtures/html/trivial.html +19 -0
- data/test/fixtures/html/with_js.html +26 -0
- data/test/fixtures/images/icon-blue.png +0 -0
- data/test/fixtures/js/external_script.js +1 -0
- data/test/fixtures/js/script.js +1 -0
- data/test/fixtures/js/script_error.js +2 -0
- data/test/html/malformed.html +1 -0
- data/test/index.html +21 -19
- data/test/{primaryTests.js → primary-tests.js} +1 -3
- data/test/{prototype.js → prototype-test.js} +0 -2
- data/test/qunit/qunit/qunit.css +0 -0
- data/test/qunit/qunit/qunit.js +2 -2
- data/test/{qunit/qunit/qunit.js.smp → specs/dist/env.spec.js} +539 -7
- data/test/specs/envjs.spec.css +46 -0
- data/test/specs/parser/html.js +31 -0
- data/test/specs/parser/spec.html +40 -0
- data/test/specs/parser/xml.js +31 -0
- data/test/specs/qunit.bdd.js +210 -0
- data/test/{qunit.smp/qunit → specs}/qunit.css +0 -0
- data/test/{qunit.smp/qunit → specs}/qunit.js +2 -2
- data/test/specs/template/spec-0.js +31 -0
- data/test/specs/template/spec-1.js +31 -0
- data/test/specs/template/spec.html +40 -0
- data/test/specs/window/css.js +23 -0
- data/test/specs/window/dialog.js +25 -0
- data/test/specs/window/document.js +23 -0
- data/test/specs/window/event.js +25 -0
- data/test/specs/window/history.js +34 -0
- data/test/specs/window/location.js +34 -0
- data/test/specs/window/navigator.js +71 -0
- data/test/specs/window/screen.js +42 -0
- data/test/specs/window/spec.html +48 -0
- data/test/specs/window/timer.js +26 -0
- data/test/specs/window/window.js +53 -0
- data/test/specs/xhr/spec.html +47 -0
- data/test/specs/xhr/xhr.js +31 -0
- data/test/test.js +10 -0
- data/test/unit/elementmembers.js +31 -0
- data/test/unit/nu.validator.js +34 -0
- data/test/unit/onload.js +1 -3
- data/test/unit/parser.js +106 -98
- data/test/unit/prototypecompat.js +2 -2
- data/test/vendor/jQuery/1.3.2/ChangeLog.txt +98 -0
- data/test/vendor/jQuery/1.3.2/GPL-LICENSE.txt +278 -0
- data/test/vendor/jQuery/1.3.2/MIT-LICENSE.txt +20 -0
- data/test/vendor/jQuery/1.3.2/Makefile +154 -0
- data/test/vendor/jQuery/1.3.2/README +67 -0
- data/test/vendor/jQuery/1.3.2/build/ant-contrib-0.6.jar +0 -0
- data/test/vendor/jQuery/1.3.2/build/build/min.js +11 -0
- data/test/vendor/jQuery/1.3.2/build/build/pack.js +19 -0
- data/test/vendor/jQuery/1.3.2/build/js/Packer.js +209 -0
- data/test/vendor/jQuery/1.3.2/build/js/ParseMaster.js +106 -0
- data/test/vendor/jQuery/1.3.2/build/js/Words.js +62 -0
- data/test/vendor/jQuery/1.3.2/build/js/base2.js +978 -0
- data/test/vendor/jQuery/1.3.2/build/js/jsmin.js +316 -0
- data/test/vendor/jQuery/1.3.2/build/js/json.js +117 -0
- data/test/vendor/jQuery/1.3.2/build/js/pack.js +316 -0
- data/test/vendor/jQuery/1.3.2/build/js/parse.js +105 -0
- data/test/vendor/jQuery/1.3.2/build/js/writeFile.js +19 -0
- data/test/vendor/jQuery/1.3.2/build/js/xml.js +25 -0
- data/test/vendor/jQuery/1.3.2/build/js.jar +0 -0
- data/test/vendor/jQuery/1.3.2/build/runtest/env.js +1 -0
- data/test/vendor/jQuery/1.3.2/build/runtest/test.js +106 -0
- data/test/vendor/jQuery/1.3.2/build/runtest/testrunner.js +197 -0
- data/test/vendor/jQuery/1.3.2/build/speed/benchmarker.css +65 -0
- data/test/vendor/jQuery/1.3.2/build/speed/benchmarker.js +181 -0
- data/test/vendor/jQuery/1.3.2/build/speed/index.html +72 -0
- data/test/vendor/jQuery/1.3.2/build/speed/jquery-basis.js +3549 -0
- data/test/vendor/jQuery/1.3.2/build/style.xsl +99 -0
- data/test/vendor/jQuery/1.3.2/build/yuicompressor-2.4.2.jar +0 -0
- data/test/vendor/jQuery/1.3.2/build.xml +123 -0
- data/test/vendor/jQuery/1.3.2/dist/jquery.js +4376 -0
- data/test/vendor/jQuery/1.3.2/reminder.txt +3 -0
- data/test/vendor/jQuery/1.3.2/src/ajax.js +541 -0
- data/test/vendor/jQuery/1.3.2/src/core.js +1255 -0
- data/test/vendor/jQuery/1.3.2/src/data.js +145 -0
- data/test/vendor/jQuery/1.3.2/src/dimensions.js +49 -0
- data/test/vendor/jQuery/1.3.2/src/event.js +684 -0
- data/test/vendor/jQuery/1.3.2/src/fx.js +407 -0
- data/test/vendor/jQuery/1.3.2/src/intro.js +13 -0
- data/test/vendor/jQuery/1.3.2/src/offset.js +155 -0
- data/test/vendor/jQuery/1.3.2/src/outro.js +1 -0
- data/test/vendor/jQuery/1.3.2/src/selector.js +1015 -0
- data/test/vendor/jQuery/1.3.2/src/support.js +112 -0
- data/test/vendor/jQuery/1.3.2/test/data/cow.jpg +0 -0
- data/test/vendor/jQuery/1.3.2/test/data/dashboard.xml +11 -0
- data/test/vendor/jQuery/1.3.2/test/data/echoQuery.php +1 -0
- data/test/vendor/jQuery/1.3.2/test/data/iframe.html +8 -0
- data/test/vendor/jQuery/1.3.2/test/data/json.php +9 -0
- data/test/vendor/jQuery/1.3.2/test/data/json_assigned_obj.js +1 -0
- data/test/vendor/jQuery/1.3.2/test/data/json_obj.js +1 -0
- data/test/vendor/jQuery/1.3.2/test/data/jsonp.php +10 -0
- data/test/vendor/jQuery/1.3.2/test/data/name.html +1 -0
- data/test/vendor/jQuery/1.3.2/test/data/name.php +29 -0
- data/test/vendor/jQuery/1.3.2/test/data/offset/absolute.html +39 -0
- data/test/vendor/jQuery/1.3.2/test/data/offset/body.html +24 -0
- data/test/vendor/jQuery/1.3.2/test/data/offset/fixed.html +33 -0
- data/test/vendor/jQuery/1.3.2/test/data/offset/relative.html +31 -0
- data/test/vendor/jQuery/1.3.2/test/data/offset/scroll.html +39 -0
- data/test/vendor/jQuery/1.3.2/test/data/offset/static.html +31 -0
- data/test/vendor/jQuery/1.3.2/test/data/offset/table.html +43 -0
- data/test/vendor/jQuery/1.3.2/test/data/params_html.php +12 -0
- data/test/vendor/jQuery/1.3.2/test/data/test.html +7 -0
- data/test/vendor/jQuery/1.3.2/test/data/test.js +3 -0
- data/test/vendor/jQuery/1.3.2/test/data/test.php +7 -0
- data/test/vendor/jQuery/1.3.2/test/data/test2.html +5 -0
- data/test/vendor/jQuery/1.3.2/test/data/test3.html +3 -0
- data/test/vendor/jQuery/1.3.2/test/data/testrunner.js +1 -0
- data/test/vendor/jQuery/1.3.2/test/data/text.php +12 -0
- data/test/vendor/jQuery/1.3.2/test/data/with_fries.xml +25 -0
- data/test/vendor/jQuery/1.3.2/test/index.html +229 -0
- data/test/vendor/jQuery/1.3.2/test/jqenv-1259090275493.html +247 -0
- data/test/vendor/jQuery/1.3.2/test/jqenv-1259091671501.html +247 -0
- data/test/vendor/jQuery/1.3.2/test/jqenv-1259175319655.html +247 -0
- data/test/vendor/jQuery/1.3.2/test/offset.html +28 -0
- data/test/vendor/jQuery/1.3.2/test/otherlibs/jquery/1.2.1/jquery.js +11 -0
- data/test/vendor/jQuery/1.3.2/test/otherlibs/jquery/1.2.3/jquery.js +11 -0
- data/test/vendor/jQuery/1.3.2/test/otherlibs/mootools/1.11/mootools.js +1577 -0
- data/test/vendor/jQuery/1.3.2/test/otherlibs/prototype/1.6.0.2/prototype.js +4221 -0
- data/test/vendor/jQuery/1.3.2/test/otherlibs/scriptaculous/1.7.0/builder.js +131 -0
- data/test/vendor/jQuery/1.3.2/test/otherlibs/scriptaculous/1.7.0/controls.js +835 -0
- data/test/vendor/jQuery/1.3.2/test/otherlibs/scriptaculous/1.7.0/dragdrop.js +944 -0
- data/test/vendor/jQuery/1.3.2/test/otherlibs/scriptaculous/1.7.0/effects.js +1090 -0
- data/test/vendor/jQuery/1.3.2/test/otherlibs/scriptaculous/1.7.0/scriptaculous.js +51 -0
- data/test/vendor/jQuery/1.3.2/test/otherlibs/scriptaculous/1.7.0/slider.js +278 -0
- data/test/vendor/jQuery/1.3.2/test/otherlibs/scriptaculous/1.7.0/unittest.js +564 -0
- data/test/vendor/jQuery/1.3.2/test/otherlibs/scriptaculous/1.8.1/builder.js +136 -0
- data/test/vendor/jQuery/1.3.2/test/otherlibs/scriptaculous/1.8.1/controls.js +965 -0
- data/test/vendor/jQuery/1.3.2/test/otherlibs/scriptaculous/1.8.1/dragdrop.js +974 -0
- data/test/vendor/jQuery/1.3.2/test/otherlibs/scriptaculous/1.8.1/effects.js +1122 -0
- data/test/vendor/jQuery/1.3.2/test/otherlibs/scriptaculous/1.8.1/scriptaculous.js +58 -0
- data/test/vendor/jQuery/1.3.2/test/otherlibs/scriptaculous/1.8.1/slider.js +275 -0
- data/test/vendor/jQuery/1.3.2/test/otherlibs/scriptaculous/1.8.1/sound.js +55 -0
- data/test/vendor/jQuery/1.3.2/test/otherlibs/scriptaculous/1.8.1/unittest.js +568 -0
- data/test/vendor/jQuery/1.3.2/test/polluted.php +64 -0
- data/test/vendor/jQuery/1.3.2/test/qunit/testrunner.js +780 -0
- data/test/vendor/jQuery/1.3.2/test/qunit/testsuite.css +120 -0
- data/test/vendor/jQuery/1.3.2/test/test.js +41 -0
- data/test/vendor/jQuery/1.3.2/test/unit/ajax.js +856 -0
- data/test/vendor/jQuery/1.3.2/test/unit/core.js +1872 -0
- data/test/vendor/jQuery/1.3.2/test/unit/data.js +160 -0
- data/test/vendor/jQuery/1.3.2/test/unit/dimensions.js +86 -0
- data/test/vendor/jQuery/1.3.2/test/unit/event.js +670 -0
- data/test/vendor/jQuery/1.3.2/test/unit/fx.js +451 -0
- data/test/vendor/jQuery/1.3.2/test/unit/offset.js +173 -0
- data/test/vendor/jQuery/1.3.2/test/unit/selector.js +395 -0
- data/test/vendor/jQuery/1.3.2/test/xhtml.php +5 -0
- data/test/vendor/jQuery/1.3.2/version.txt +1 -0
- metadata +158 -22
- data/lib/envjs/runtime.rb.smp +0 -133
- data/test/envjs-call-load-test.js +0 -5
- data/test/envjs-prototype.js +0 -5
- data/test/qunit/package.json +0 -21
- data/test/qunit/test/index.html +0 -17
- data/test/qunit/test/same.js +0 -1368
- data/test/qunit/test/test.js +0 -136
- data/test/qunit.smp/package.json +0 -21
- data/test/qunit.smp/test/index.html +0 -17
- data/test/qunit.smp/test/same.js +0 -1368
- data/test/qunit.smp/test/test.js +0 -136
- data/test/rhino-call-load-test.js +0 -5
- data/test/rhino-prototype.js +0 -5
- data/test/test-with-envs-jar.js +0 -8
- data/test/test-with-rhino-jar.js +0 -9
@@ -0,0 +1,112 @@
|
|
1
|
+
(function(){
|
2
|
+
|
3
|
+
jQuery.support = {};
|
4
|
+
|
5
|
+
var root = document.documentElement,
|
6
|
+
script = document.createElement("script"),
|
7
|
+
div = document.createElement("div"),
|
8
|
+
id = "script" + (new Date).getTime();
|
9
|
+
|
10
|
+
div.style.display = "none";
|
11
|
+
div.innerHTML = ' <link/><table></table><a href="/a" style="color:red;float:left;opacity:.5;">a</a><select><option>text</option></select><object><param/></object>';
|
12
|
+
|
13
|
+
var all = div.getElementsByTagName("*"),
|
14
|
+
a = div.getElementsByTagName("a")[0];
|
15
|
+
|
16
|
+
// Can't get basic test support
|
17
|
+
if ( !all || !all.length || !a ) {
|
18
|
+
return;
|
19
|
+
}
|
20
|
+
|
21
|
+
jQuery.support = {
|
22
|
+
// IE strips leading whitespace when .innerHTML is used
|
23
|
+
leadingWhitespace: div.firstChild.nodeType == 3,
|
24
|
+
|
25
|
+
// Make sure that tbody elements aren't automatically inserted
|
26
|
+
// IE will insert them into empty tables
|
27
|
+
tbody: !div.getElementsByTagName("tbody").length,
|
28
|
+
|
29
|
+
// Make sure that you can get all elements in an <object> element
|
30
|
+
// IE 7 always returns no results
|
31
|
+
objectAll: !!div.getElementsByTagName("object")[0]
|
32
|
+
.getElementsByTagName("*").length,
|
33
|
+
|
34
|
+
// Make sure that link elements get serialized correctly by innerHTML
|
35
|
+
// This requires a wrapper element in IE
|
36
|
+
htmlSerialize: !!div.getElementsByTagName("link").length,
|
37
|
+
|
38
|
+
// Get the style information from getAttribute
|
39
|
+
// (IE uses .cssText insted)
|
40
|
+
style: /red/.test( a.getAttribute("style") ),
|
41
|
+
|
42
|
+
// Make sure that URLs aren't manipulated
|
43
|
+
// (IE normalizes it by default)
|
44
|
+
hrefNormalized: a.getAttribute("href") === "/a",
|
45
|
+
|
46
|
+
// Make sure that element opacity exists
|
47
|
+
// (IE uses filter instead)
|
48
|
+
opacity: a.style.opacity === "0.5",
|
49
|
+
|
50
|
+
// Verify style float existence
|
51
|
+
// (IE uses styleFloat instead of cssFloat)
|
52
|
+
cssFloat: !!a.style.cssFloat,
|
53
|
+
|
54
|
+
// Will be defined later
|
55
|
+
scriptEval: false,
|
56
|
+
noCloneEvent: true,
|
57
|
+
boxModel: null
|
58
|
+
};
|
59
|
+
|
60
|
+
script.type = "text/javascript";
|
61
|
+
try {
|
62
|
+
script.appendChild( document.createTextNode( "window." + id + "=1;" ) );
|
63
|
+
} catch(e){}
|
64
|
+
|
65
|
+
root.insertBefore( script, root.firstChild );
|
66
|
+
|
67
|
+
// Make sure that the execution of code works by injecting a script
|
68
|
+
// tag with appendChild/createTextNode
|
69
|
+
// (IE doesn't support this, fails, and uses .text instead)
|
70
|
+
if ( window[ id ] ) {
|
71
|
+
jQuery.support.scriptEval = true;
|
72
|
+
delete window[ id ];
|
73
|
+
}
|
74
|
+
|
75
|
+
root.removeChild( script );
|
76
|
+
|
77
|
+
if ( div.attachEvent && div.fireEvent ) {
|
78
|
+
div.attachEvent("onclick", function(){
|
79
|
+
// Cloning a node shouldn't copy over any
|
80
|
+
// bound event handlers (IE does this)
|
81
|
+
jQuery.support.noCloneEvent = false;
|
82
|
+
div.detachEvent("onclick", arguments.callee);
|
83
|
+
});
|
84
|
+
div.cloneNode(true).fireEvent("onclick");
|
85
|
+
}
|
86
|
+
|
87
|
+
// Figure out if the W3C box model works as expected
|
88
|
+
// document.body must exist before we can do this
|
89
|
+
jQuery(function(){
|
90
|
+
var div = document.createElement("div");
|
91
|
+
div.style.width = div.style.paddingLeft = "1px";
|
92
|
+
|
93
|
+
document.body.appendChild( div );
|
94
|
+
jQuery.boxModel = jQuery.support.boxModel = div.offsetWidth === 2;
|
95
|
+
document.body.removeChild( div ).style.display = 'none';
|
96
|
+
});
|
97
|
+
})();
|
98
|
+
|
99
|
+
var styleFloat = jQuery.support.cssFloat ? "cssFloat" : "styleFloat";
|
100
|
+
|
101
|
+
jQuery.props = {
|
102
|
+
"for": "htmlFor",
|
103
|
+
"class": "className",
|
104
|
+
"float": styleFloat,
|
105
|
+
cssFloat: styleFloat,
|
106
|
+
styleFloat: styleFloat,
|
107
|
+
readonly: "readOnly",
|
108
|
+
maxlength: "maxLength",
|
109
|
+
cellspacing: "cellSpacing",
|
110
|
+
rowspan: "rowSpan",
|
111
|
+
tabindex: "tabIndex"
|
112
|
+
};
|
Binary file
|
@@ -0,0 +1,11 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<dashboard>
|
3
|
+
<locations class="foo">
|
4
|
+
<location for="bar">
|
5
|
+
<infowindowtab>
|
6
|
+
<tab title="Location"><![CDATA[blabla]]></tab>
|
7
|
+
<tab title="Users"><![CDATA[blublu]]></tab>
|
8
|
+
</infowindowtab>
|
9
|
+
</location>
|
10
|
+
</locations>
|
11
|
+
</dashboard>
|
@@ -0,0 +1 @@
|
|
1
|
+
<?php echo $_SERVER['QUERY_STRING']; ?>
|
@@ -0,0 +1 @@
|
|
1
|
+
json_assigned_obj = { "test" : "worked" };
|
@@ -0,0 +1 @@
|
|
1
|
+
{ "data": {"lang": "en", "length": 25} }
|
@@ -0,0 +1,10 @@
|
|
1
|
+
<?php
|
2
|
+
error_reporting(0);
|
3
|
+
$callback = $_REQUEST['callback'];
|
4
|
+
$json = $_REQUEST['json'];
|
5
|
+
if($json) {
|
6
|
+
echo $callback . '([ {"name": "John", "age": 21}, {"name": "Peter", "age": 25 } ])';
|
7
|
+
} else {
|
8
|
+
echo $callback . '({ "data": {"lang": "en", "length": 25} })';
|
9
|
+
}
|
10
|
+
?>
|
@@ -0,0 +1 @@
|
|
1
|
+
ERROR <script type="text/javascript">ok( true, "name.html retrieved" );</script>
|
@@ -0,0 +1,29 @@
|
|
1
|
+
<?php
|
2
|
+
error_reporting(0);
|
3
|
+
$wait = $_REQUEST['wait'];
|
4
|
+
if($wait) {
|
5
|
+
sleep($wait);
|
6
|
+
}
|
7
|
+
$xml = $_REQUEST['xml'];
|
8
|
+
if($xml) {
|
9
|
+
header("Content-type: text/xml");
|
10
|
+
$result = ($xml == "5-2") ? "3" : "?";
|
11
|
+
echo "<math><calculation>$xml</calculation><result>$result</result></math>";
|
12
|
+
die();
|
13
|
+
}
|
14
|
+
$name = $_REQUEST['name'];
|
15
|
+
if($name == 'foo') {
|
16
|
+
echo "bar";
|
17
|
+
die();
|
18
|
+
} else if($name == 'peter') {
|
19
|
+
echo "pan";
|
20
|
+
die();
|
21
|
+
}
|
22
|
+
$request = apache_request_headers();
|
23
|
+
$request = $request['X-Custom-Header'];
|
24
|
+
if(strlen($request) > 0) {
|
25
|
+
echo $request;
|
26
|
+
die();
|
27
|
+
}
|
28
|
+
echo 'ERROR <script type="text/javascript">ok( true, "name.php executed" );</script>';
|
29
|
+
?>
|
@@ -0,0 +1,39 @@
|
|
1
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
2
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
3
|
+
<html>
|
4
|
+
<head>
|
5
|
+
<meta http-equiv="Content-type" content="text/html; charset=utf-8">
|
6
|
+
<title>absolute</title>
|
7
|
+
<style type="text/css" media="screen">
|
8
|
+
body { margin: 1px; padding: 5px; }
|
9
|
+
div.absolute { position: absolute; margin: 1px; border: 2px solid #000; padding: 5px; width: 100px; height: 100px; background: #fff; }
|
10
|
+
#absolute-1 { top: 0; left: 0; }
|
11
|
+
#absolute-1-1 { top: 1px; left: 1px; }
|
12
|
+
#absolute-1-1-1 { top: 1px; left: 1px; }
|
13
|
+
#absolute-2 { top: 19px; left: 19px; }
|
14
|
+
#marker { position: absolute; border: 2px solid #000; width: 50px; height: 50px; background: #ccc; }
|
15
|
+
p.instructions { position: absolute; bottom: 0; }
|
16
|
+
</style>
|
17
|
+
<script type="text/javascript" src="../../../dist/jquery.js"></script>
|
18
|
+
<script type="text/javascript" charset="utf-8">
|
19
|
+
$(function() {
|
20
|
+
$('.absolute').click(function() {
|
21
|
+
$('#marker').css( $(this).offset() );
|
22
|
+
var pos = $(this).position();
|
23
|
+
$(this).css({ top: pos.top, left: pos.left });
|
24
|
+
return false;
|
25
|
+
});
|
26
|
+
});
|
27
|
+
</script>
|
28
|
+
</head>
|
29
|
+
<body>
|
30
|
+
<div id="absolute-1" class="absolute">absolute-1
|
31
|
+
<div id="absolute-1-1" class="absolute">absolute-1-1
|
32
|
+
<div id="absolute-1-1-1" class="absolute">absolute-1-1-1</div>
|
33
|
+
</div>
|
34
|
+
</div>
|
35
|
+
<div id="absolute-2" class="absolute">absolute-2</div>
|
36
|
+
<div id="marker"></div>
|
37
|
+
<p class="instructions">Click the white box to move the marker to it. Clicking the box also changes the position to absolute (if not already) and sets the position according to the position method.</p>
|
38
|
+
</body>
|
39
|
+
</html>
|
@@ -0,0 +1,24 @@
|
|
1
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
2
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
3
|
+
<html>
|
4
|
+
<head>
|
5
|
+
<meta http-equiv="Content-type" content="text/html; charset=utf-8">
|
6
|
+
<title>body</title>
|
7
|
+
<style type="text/css" media="screen">
|
8
|
+
body { margin: 1px; padding: 5px; }
|
9
|
+
#marker { position: absolute; border: 2px solid #000; width: 50px; height: 50px; background: #ccc; }
|
10
|
+
</style>
|
11
|
+
<script type="text/javascript" src="../../../dist/jquery.js"></script>
|
12
|
+
<script type="text/javascript" charset="utf-8">
|
13
|
+
$(function() {
|
14
|
+
$('body').click(function() {
|
15
|
+
$('#marker').css( $(this).offset() );
|
16
|
+
return false;
|
17
|
+
});
|
18
|
+
});
|
19
|
+
</script>
|
20
|
+
</head>
|
21
|
+
<body>
|
22
|
+
<div id="marker"></div>
|
23
|
+
</body>
|
24
|
+
</html>
|
@@ -0,0 +1,33 @@
|
|
1
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
2
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
3
|
+
<html>
|
4
|
+
<head>
|
5
|
+
<meta http-equiv="Content-type" content="text/html; charset=utf-8">
|
6
|
+
<title>fixed</title>
|
7
|
+
<style type="text/css" media="screen">
|
8
|
+
body { margin: 1px; padding: 5px; }
|
9
|
+
div.fixed { position: fixed; margin: 1px; border: 2px solid #000; padding: 5px; width: 100px; height: 100px; background: #fff; overflow: hidden; }
|
10
|
+
#fixed-1 { top: 0; left: 0; }
|
11
|
+
#fixed-2 { top: 20px; left: 20px; }
|
12
|
+
#forceScroll { width: 5000px; height: 5000px; }
|
13
|
+
#marker { position: absolute; border: 2px solid #000; width: 50px; height: 50px; background: #ccc; }
|
14
|
+
</style>
|
15
|
+
<script type="text/javascript" src="../../../dist/jquery.js"></script>
|
16
|
+
<script type="text/javascript" charset="utf-8">
|
17
|
+
$(function() {
|
18
|
+
window.scrollTo(1000,1000);
|
19
|
+
$('.fixed').click(function() {
|
20
|
+
$('#marker').css( $(this).offset() );
|
21
|
+
return false;
|
22
|
+
});
|
23
|
+
});
|
24
|
+
</script>
|
25
|
+
</head>
|
26
|
+
<body>
|
27
|
+
<div id="fixed-1" class="fixed"></div>
|
28
|
+
<div id="fixed-2" class="fixed"></div>
|
29
|
+
<div id="forceScroll"></div>
|
30
|
+
<div id="marker"></div>
|
31
|
+
<p class="instructions">Click the white box to move the marker to it.</p>
|
32
|
+
</body>
|
33
|
+
</html>
|
@@ -0,0 +1,31 @@
|
|
1
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
2
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
3
|
+
<html>
|
4
|
+
<head>
|
5
|
+
<meta http-equiv="Content-type" content="text/html; charset=utf-8">
|
6
|
+
<title>relative</title>
|
7
|
+
<style type="text/css" media="screen">
|
8
|
+
body { margin: 1px; padding: 5px; }
|
9
|
+
div.relative { position: relative; margin: 1px; border: 2px solid #000; padding: 5px; width: 100px; height: 100px; background: #fff; overflow: hidden; }
|
10
|
+
#relative-2 { top: 20px; left: 20px; }
|
11
|
+
#marker { position: absolute; border: 2px solid #000; width: 50px; height: 50px; background: #ccc; }
|
12
|
+
</style>
|
13
|
+
<script type="text/javascript" src="../../../dist/jquery.js"></script>
|
14
|
+
<script type="text/javascript" charset="utf-8">
|
15
|
+
$(function() {
|
16
|
+
$('.relative').click(function() {
|
17
|
+
$('#marker').css( $(this).offset() );
|
18
|
+
var pos = $(this).position();
|
19
|
+
$(this).css({ position: 'absolute', top: pos.top, left: pos.left });
|
20
|
+
return false;
|
21
|
+
});
|
22
|
+
});
|
23
|
+
</script>
|
24
|
+
</head>
|
25
|
+
<body>
|
26
|
+
<div id="relative-1" class="relative"><div id="relative-1-1" class="relative"><div id="relative-1-1-1" class="relative"></div></div></div>
|
27
|
+
<div id="relative-2" class="relative"></div>
|
28
|
+
<div id="marker"></div>
|
29
|
+
<p class="instructions">Click the white box to move the marker to it. Clicking the box also changes the position to absolute (if not already) and sets the position according to the position method.</p>
|
30
|
+
</body>
|
31
|
+
</html>
|
@@ -0,0 +1,39 @@
|
|
1
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
2
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
3
|
+
<html>
|
4
|
+
<head>
|
5
|
+
<meta http-equiv="Content-type" content="text/html; charset=utf-8">
|
6
|
+
<title>scroll</title>
|
7
|
+
<style type="text/css" media="screen">
|
8
|
+
body { margin: 1px; padding: 5px; }
|
9
|
+
div.scroll { position: relative; margin: 1px; border: 2px solid #000; padding: 5px; width: 100px; height: 100px; background: #fff; overflow: auto; }
|
10
|
+
#scroll-1 { top: 0; left: 0; }
|
11
|
+
#scroll-1-1 { top: 1px; left: 1px; }
|
12
|
+
#scroll-1-1-1 { top: 1px; left: 1px; }
|
13
|
+
#forceScroll { width: 5000px; height: 5000px; }
|
14
|
+
#marker { position: absolute; border: 2px solid #000; width: 50px; height: 50px; background: #ccc; }
|
15
|
+
</style>
|
16
|
+
<script type="text/javascript" src="../../../dist/jquery.js"></script>
|
17
|
+
<script type="text/javascript" charset="utf-8">
|
18
|
+
$(function() {
|
19
|
+
window.scrollTo(1000,1000);
|
20
|
+
$('#scroll-1')[0].scrollLeft = 5;
|
21
|
+
$('#scroll-1')[0].scrollTop = 5;
|
22
|
+
$('.scroll').click(function() {
|
23
|
+
$('#marker').css( $(this).offset() );
|
24
|
+
return false;
|
25
|
+
});
|
26
|
+
});
|
27
|
+
</script>
|
28
|
+
</head>
|
29
|
+
<body>
|
30
|
+
<div id="scroll-1" class="scroll">
|
31
|
+
<div id="scroll-1-1" class="scroll">
|
32
|
+
<div id="scroll-1-1-1" class="scroll"></div>
|
33
|
+
</div>
|
34
|
+
</div>
|
35
|
+
<div id="forceScroll"></div>
|
36
|
+
<div id="marker"></div>
|
37
|
+
<p class="instructions">Click the white box to move the marker to it.</p>
|
38
|
+
</body>
|
39
|
+
</html>
|
@@ -0,0 +1,31 @@
|
|
1
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
2
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
3
|
+
<html>
|
4
|
+
<head>
|
5
|
+
<meta http-equiv="Content-type" content="text/html; charset=utf-8">
|
6
|
+
<title>static</title>
|
7
|
+
<style type="text/css" media="screen">
|
8
|
+
body { margin: 1px; padding: 5px; }
|
9
|
+
div.static { position: static; margin: 1px; border: 2px solid #000; padding: 5px; width: 100px; height: 100px; background: #fff; overflow: hidden; }
|
10
|
+
#static-2 { top: 20px; left: 20px; }
|
11
|
+
#marker { position: absolute; border: 2px solid #000; width: 50px; height: 50px; background: #ccc; }
|
12
|
+
</style>
|
13
|
+
<script type="text/javascript" src="../../../dist/jquery.js"></script>
|
14
|
+
<script type="text/javascript" charset="utf-8">
|
15
|
+
$(function() {
|
16
|
+
$('.static').click(function() {
|
17
|
+
$('#marker').css( $(this).offset() );
|
18
|
+
var pos = $(this).position();
|
19
|
+
$(this).css({ position: 'absolute', top: pos.top, left: pos.left });
|
20
|
+
return false;
|
21
|
+
});
|
22
|
+
});
|
23
|
+
</script>
|
24
|
+
</head>
|
25
|
+
<body>
|
26
|
+
<div id="static-1" class="static"><div id="static-1-1" class="static"><div id="static-1-1-1" class="static"></div></div></div>
|
27
|
+
<div id="static-2" class="static"></div>
|
28
|
+
<div id="marker"></div>
|
29
|
+
<p class="instructions">Click the white box to move the marker to it. Clicking the box also changes the position to absolute (if not already) and sets the position according to the position method.</p>
|
30
|
+
</body>
|
31
|
+
</html>
|
@@ -0,0 +1,43 @@
|
|
1
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
2
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
3
|
+
<html>
|
4
|
+
<head>
|
5
|
+
<meta http-equiv="Content-type" content="text/html; charset=utf-8">
|
6
|
+
<title>table</title>
|
7
|
+
<style type="text/css" media="screen">
|
8
|
+
body { margin: 1px; padding: 5px; }
|
9
|
+
table { border: 2px solid #000; }
|
10
|
+
th, td { border: 1px solid #000; width: 100px; height: 100px; }
|
11
|
+
#marker { position: absolute; border: 2px solid #000; width: 50px; height: 50px; background: #ccc; }
|
12
|
+
</style>
|
13
|
+
<script type="text/javascript" src="../../../dist/jquery.js"></script>
|
14
|
+
<script type="text/javascript" charset="utf-8">
|
15
|
+
$(function() {
|
16
|
+
$('table, th, td').click(function() {
|
17
|
+
$('#marker').css( $(this).offset() );
|
18
|
+
return false;
|
19
|
+
});
|
20
|
+
});
|
21
|
+
</script>
|
22
|
+
</head>
|
23
|
+
<body>
|
24
|
+
<table id="table-1">
|
25
|
+
<thead>
|
26
|
+
<tr valign="top">
|
27
|
+
<th id="th-1">th-1</th>
|
28
|
+
<th id="th-2">th-2</th>
|
29
|
+
<th id="th-3">th-3</th>
|
30
|
+
</tr>
|
31
|
+
</thead>
|
32
|
+
<tbody>
|
33
|
+
<tr valign="top">
|
34
|
+
<td id="td-1">td-1</td>
|
35
|
+
<td id="td-2">td-2</td>
|
36
|
+
<td id="td-3">td-3</td>
|
37
|
+
</tr>
|
38
|
+
</tbody>
|
39
|
+
</table>
|
40
|
+
<div id="marker"></div>
|
41
|
+
<p class="instructions">Click the white box to move the marker to it.</p>
|
42
|
+
</body>
|
43
|
+
</html>
|
@@ -0,0 +1 @@
|
|
1
|
+
jQuery.noConflict(); // Allow the test to run with other libs or jQuery's.
|
@@ -0,0 +1,12 @@
|
|
1
|
+
Lorem ipsum dolor sit amet
|
2
|
+
consectetuer adipiscing elit
|
3
|
+
Sed lorem leo
|
4
|
+
lorem leo consectetuer adipiscing elit
|
5
|
+
Sed lorem leo
|
6
|
+
rhoncus sit amet
|
7
|
+
elementum at
|
8
|
+
bibendum at, eros
|
9
|
+
Cras at mi et tortor egestas vestibulum
|
10
|
+
sed Cras at mi vestibulum
|
11
|
+
Phasellus sed felis sit amet
|
12
|
+
orci dapibus semper.
|
@@ -0,0 +1,25 @@
|
|
1
|
+
<?xml version='1.0' encoding='UTF-8'?>
|
2
|
+
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
|
3
|
+
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
|
4
|
+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
|
5
|
+
<soap:Body>
|
6
|
+
<jsconf xmlns="http://www.example.com/ns1">
|
7
|
+
<response xmlns:ab="http://www.example.com/ns2">
|
8
|
+
<meta>
|
9
|
+
<component id="seite1" class="component">
|
10
|
+
<properties xmlns:cd="http://www.example.com/ns3">
|
11
|
+
<property name="prop1">
|
12
|
+
<thing />
|
13
|
+
<value>1</value>
|
14
|
+
</property>
|
15
|
+
<property name="prop2">
|
16
|
+
<thing att="something" />
|
17
|
+
</property>
|
18
|
+
<foo_bar>foo</foo_bar>
|
19
|
+
</properties>
|
20
|
+
</component>
|
21
|
+
</meta>
|
22
|
+
</response>
|
23
|
+
</jsconf>
|
24
|
+
</soap:Body>
|
25
|
+
</soap:Envelope>
|