guff-compass 0.7.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.editorconfig +21 -0
- data/.gitignore +6 -0
- data/LICENSE.txt +22 -0
- data/README.md +21 -0
- data/demo/bower_components/jquery/.bower.json +21 -0
- data/demo/bower_components/jquery/.editorconfig +43 -0
- data/demo/bower_components/jquery/.gitattributes +2 -0
- data/demo/bower_components/jquery/.gitignore +14 -0
- data/demo/bower_components/jquery/.gitmodules +6 -0
- data/demo/bower_components/jquery/.jshintrc +17 -0
- data/demo/bower_components/jquery/.mailmap +94 -0
- data/demo/bower_components/jquery/AUTHORS.txt +170 -0
- data/demo/bower_components/jquery/CONTRIBUTING.md +216 -0
- data/demo/bower_components/jquery/Gruntfile.js +594 -0
- data/demo/bower_components/jquery/MIT-LICENSE.txt +21 -0
- data/demo/bower_components/jquery/README.md +398 -0
- data/demo/bower_components/jquery/bower.json +11 -0
- data/demo/bower_components/jquery/build/release-notes.js +59 -0
- data/demo/bower_components/jquery/build/release.js +316 -0
- data/demo/bower_components/jquery/component.json +15 -0
- data/demo/bower_components/jquery/composer.json +35 -0
- data/demo/bower_components/jquery/jquery-migrate.js +511 -0
- data/demo/bower_components/jquery/jquery-migrate.min.js +3 -0
- data/demo/bower_components/jquery/jquery.js +9789 -0
- data/demo/bower_components/jquery/jquery.min.js +6 -0
- data/demo/bower_components/jquery/jquery.min.map +1 -0
- data/demo/bower_components/jquery/package.json +38 -0
- data/demo/bower_components/jquery/speed/benchmark.js +15 -0
- data/demo/bower_components/jquery/speed/benchmarker.css +65 -0
- data/demo/bower_components/jquery/speed/benchmarker.js +181 -0
- data/demo/bower_components/jquery/speed/closest.html +39 -0
- data/demo/bower_components/jquery/speed/css.html +82 -0
- data/demo/bower_components/jquery/speed/event.html +58 -0
- data/demo/bower_components/jquery/speed/filter.html +183 -0
- data/demo/bower_components/jquery/speed/find.html +179 -0
- data/demo/bower_components/jquery/speed/index.html +72 -0
- data/demo/bower_components/jquery/speed/jquery-basis.js +6238 -0
- data/demo/bower_components/jquery/speed/slice.vs.concat.html +47 -0
- data/demo/bower_components/jquery/src/.jshintrc +27 -0
- data/demo/bower_components/jquery/src/ajax.js +855 -0
- data/demo/bower_components/jquery/src/ajax/jsonp.js +80 -0
- data/demo/bower_components/jquery/src/ajax/script.js +86 -0
- data/demo/bower_components/jquery/src/ajax/xhr.js +207 -0
- data/demo/bower_components/jquery/src/attributes.js +659 -0
- data/demo/bower_components/jquery/src/callbacks.js +197 -0
- data/demo/bower_components/jquery/src/core.js +981 -0
- data/demo/bower_components/jquery/src/css.js +661 -0
- data/demo/bower_components/jquery/src/data.js +336 -0
- data/demo/bower_components/jquery/src/deferred.js +141 -0
- data/demo/bower_components/jquery/src/deprecated.js +11 -0
- data/demo/bower_components/jquery/src/dimensions.js +41 -0
- data/demo/bower_components/jquery/src/effects.js +732 -0
- data/demo/bower_components/jquery/src/event-alias.js +32 -0
- data/demo/bower_components/jquery/src/event.js +995 -0
- data/demo/bower_components/jquery/src/exports.js +21 -0
- data/demo/bower_components/jquery/src/intro.js +20 -0
- data/demo/bower_components/jquery/src/manipulation.js +744 -0
- data/demo/bower_components/jquery/src/offset.js +169 -0
- data/demo/bower_components/jquery/src/outro.js +2 -0
- data/demo/bower_components/jquery/src/queue.js +146 -0
- data/demo/bower_components/jquery/src/serialize.js +99 -0
- data/demo/bower_components/jquery/src/sizzle-jquery.js +7 -0
- data/demo/bower_components/jquery/src/support.js +246 -0
- data/demo/bower_components/jquery/src/traversing.js +283 -0
- data/demo/bower_components/jquery/src/wrap.js +66 -0
- data/demo/bower_components/jquery/test/.jshintignore +3 -0
- data/demo/bower_components/jquery/test/.jshintrc +60 -0
- data/demo/bower_components/jquery/test/data/1x1.jpg +0 -0
- data/demo/bower_components/jquery/test/data/ajax/unreleasedXHR.html +25 -0
- data/demo/bower_components/jquery/test/data/atom+xml.php +4 -0
- data/demo/bower_components/jquery/test/data/badcall.js +1 -0
- data/demo/bower_components/jquery/test/data/badjson.js +1 -0
- data/demo/bower_components/jquery/test/data/cleanScript.html +10 -0
- data/demo/bower_components/jquery/test/data/core/cc_on.html +22 -0
- data/demo/bower_components/jquery/test/data/dashboard.xml +11 -0
- data/demo/bower_components/jquery/test/data/dimensions/documentLarge.html +17 -0
- data/demo/bower_components/jquery/test/data/dimensions/documentSmall.html +21 -0
- data/demo/bower_components/jquery/test/data/echoData.php +1 -0
- data/demo/bower_components/jquery/test/data/echoQuery.php +1 -0
- data/demo/bower_components/jquery/test/data/errorWithJSON.php +6 -0
- data/demo/bower_components/jquery/test/data/errorWithText.php +5 -0
- data/demo/bower_components/jquery/test/data/etag.php +21 -0
- data/demo/bower_components/jquery/test/data/evalScript.php +1 -0
- data/demo/bower_components/jquery/test/data/event/focusElem.html +16 -0
- data/demo/bower_components/jquery/test/data/event/longLoadScript.php +4 -0
- data/demo/bower_components/jquery/test/data/event/promiseReady.html +17 -0
- data/demo/bower_components/jquery/test/data/event/syncReady.html +23 -0
- data/demo/bower_components/jquery/test/data/headers.php +18 -0
- data/demo/bower_components/jquery/test/data/if_modified_since.php +20 -0
- data/demo/bower_components/jquery/test/data/iframe.html +8 -0
- data/demo/bower_components/jquery/test/data/jquery-1.9.1.ajax_xhr.min.js +5 -0
- data/demo/bower_components/jquery/test/data/json.php +13 -0
- data/demo/bower_components/jquery/test/data/json_obj.js +1 -0
- data/demo/bower_components/jquery/test/data/jsonp.php +14 -0
- data/demo/bower_components/jquery/test/data/manipulation/iframe-denied.html +36 -0
- data/demo/bower_components/jquery/test/data/name.html +1 -0
- data/demo/bower_components/jquery/test/data/name.php +24 -0
- data/demo/bower_components/jquery/test/data/nocontent.php +5 -0
- data/demo/bower_components/jquery/test/data/offset/absolute.html +41 -0
- data/demo/bower_components/jquery/test/data/offset/body.html +26 -0
- data/demo/bower_components/jquery/test/data/offset/fixed.html +34 -0
- data/demo/bower_components/jquery/test/data/offset/relative.html +31 -0
- data/demo/bower_components/jquery/test/data/offset/scroll.html +39 -0
- data/demo/bower_components/jquery/test/data/offset/static.html +31 -0
- data/demo/bower_components/jquery/test/data/offset/table.html +43 -0
- data/demo/bower_components/jquery/test/data/params_html.php +12 -0
- data/demo/bower_components/jquery/test/data/readywaitasset.js +1 -0
- data/demo/bower_components/jquery/test/data/readywaitloader.js +25 -0
- data/demo/bower_components/jquery/test/data/script.php +11 -0
- data/demo/bower_components/jquery/test/data/selector/html5_selector.html +114 -0
- data/demo/bower_components/jquery/test/data/selector/sizzle_cache.html +21 -0
- data/demo/bower_components/jquery/test/data/statusText.php +5 -0
- data/demo/bower_components/jquery/test/data/support/bodyBackground.html +28 -0
- data/demo/bower_components/jquery/test/data/support/boxSizing.html +19 -0
- data/demo/bower_components/jquery/test/data/support/csp.js +3 -0
- data/demo/bower_components/jquery/test/data/support/csp.php +22 -0
- data/demo/bower_components/jquery/test/data/support/shrinkWrapBlocks.html +23 -0
- data/demo/bower_components/jquery/test/data/support/testElementCrash.html +17 -0
- data/demo/bower_components/jquery/test/data/test.html +7 -0
- data/demo/bower_components/jquery/test/data/test.js +3 -0
- data/demo/bower_components/jquery/test/data/test.php +7 -0
- data/demo/bower_components/jquery/test/data/test2.html +5 -0
- data/demo/bower_components/jquery/test/data/test3.html +3 -0
- data/demo/bower_components/jquery/test/data/testinit.js +264 -0
- data/demo/bower_components/jquery/test/data/testrunner.js +371 -0
- data/demo/bower_components/jquery/test/data/testsuite.css +155 -0
- data/demo/bower_components/jquery/test/data/text.php +12 -0
- data/demo/bower_components/jquery/test/data/ua.txt +272 -0
- data/demo/bower_components/jquery/test/data/with_fries.xml +25 -0
- data/demo/bower_components/jquery/test/data/with_fries_over_jsonp.php +7 -0
- data/demo/bower_components/jquery/test/delegatetest.html +228 -0
- data/demo/bower_components/jquery/test/hovertest.html +158 -0
- data/demo/bower_components/jquery/test/index.html +337 -0
- data/demo/bower_components/jquery/test/jquery.js +5 -0
- data/demo/bower_components/jquery/test/localfile.html +75 -0
- data/demo/bower_components/jquery/test/networkerror.html +84 -0
- data/demo/bower_components/jquery/test/readywait.html +70 -0
- data/demo/bower_components/jquery/test/unit/ajax.js +2016 -0
- data/demo/bower_components/jquery/test/unit/attributes.js +1388 -0
- data/demo/bower_components/jquery/test/unit/callbacks.js +342 -0
- data/demo/bower_components/jquery/test/unit/core.js +1360 -0
- data/demo/bower_components/jquery/test/unit/css.js +1056 -0
- data/demo/bower_components/jquery/test/unit/data.js +645 -0
- data/demo/bower_components/jquery/test/unit/deferred.js +436 -0
- data/demo/bower_components/jquery/test/unit/deprecated.js +8 -0
- data/demo/bower_components/jquery/test/unit/dimensions.js +472 -0
- data/demo/bower_components/jquery/test/unit/effects.js +2242 -0
- data/demo/bower_components/jquery/test/unit/event.js +2755 -0
- data/demo/bower_components/jquery/test/unit/exports.js +7 -0
- data/demo/bower_components/jquery/test/unit/manipulation.js +2120 -0
- data/demo/bower_components/jquery/test/unit/offset.js +559 -0
- data/demo/bower_components/jquery/test/unit/queue.js +314 -0
- data/demo/bower_components/jquery/test/unit/selector.js +172 -0
- data/demo/bower_components/jquery/test/unit/serialize.js +148 -0
- data/demo/bower_components/jquery/test/unit/support.js +370 -0
- data/demo/bower_components/jquery/test/unit/traversing.js +797 -0
- data/demo/bower_components/jquery/test/unit/wrap.js +265 -0
- data/demo/bower_components/jquery/test/xhtml.php +5 -0
- data/demo/index.html +347 -0
- data/demo/styles/main.css +208 -0
- data/demo/styles/main.scss +138 -0
- data/docs/docco.css +506 -0
- data/docs/guff.html +1127 -0
- data/docs/public/fonts/aller-bold.eot +0 -0
- data/docs/public/fonts/aller-bold.ttf +0 -0
- data/docs/public/fonts/aller-bold.woff +0 -0
- data/docs/public/fonts/aller-light.eot +0 -0
- data/docs/public/fonts/aller-light.ttf +0 -0
- data/docs/public/fonts/aller-light.woff +0 -0
- data/docs/public/fonts/novecento-bold.eot +0 -0
- data/docs/public/fonts/novecento-bold.ttf +0 -0
- data/docs/public/fonts/novecento-bold.woff +0 -0
- data/docs/public/stylesheets/normalize.css +375 -0
- data/guff.gemspec +16 -0
- data/guff.scss +514 -0
- data/gulpfile.js +67 -0
- data/lib/guff.rb +4 -0
- data/lib/stylesheets/_guff.scss +514 -0
- data/package.json +19 -0
- data/src/_functions.scss +57 -0
- data/src/_mixins.scss +301 -0
- data/src/_reset.scss +67 -0
- data/src/_settings.scss +22 -0
- data/src/_typography.scss +67 -0
- metadata +259 -0
@@ -0,0 +1,34 @@
|
|
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 src="../../jquery.js"></script>
|
16
|
+
<script type="text/javascript" charset="utf-8">
|
17
|
+
jQuery(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="fixed-no-top-left" class="fixed"></div>
|
30
|
+
<div id="forceScroll"></div>
|
31
|
+
<div id="marker"></div>
|
32
|
+
<p class="instructions">Click the white box to move the marker to it.</p>
|
33
|
+
</body>
|
34
|
+
</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; top: 0; left: 0; 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 src="../../jquery.js"></script>
|
14
|
+
<script type="text/javascript" charset="utf-8">
|
15
|
+
jQuery(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 src="../../jquery.js"></script>
|
17
|
+
<script type="text/javascript" charset="utf-8">
|
18
|
+
jQuery(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; top: 0; left: 0; 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 src="../../jquery.js"></script>
|
14
|
+
<script type="text/javascript" charset="utf-8">
|
15
|
+
jQuery(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 src="../../jquery.js"></script>
|
14
|
+
<script type="text/javascript" charset="utf-8">
|
15
|
+
jQuery(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
|
+
var delayedMessage = "It worked!";
|
@@ -0,0 +1,25 @@
|
|
1
|
+
// Simple script loader that uses jQuery.readyWait via jQuery.holdReady()
|
2
|
+
|
3
|
+
//Hold on jQuery!
|
4
|
+
jQuery.holdReady(true);
|
5
|
+
|
6
|
+
var readyRegExp = /^(complete|loaded)$/;
|
7
|
+
|
8
|
+
function assetLoaded( evt ){
|
9
|
+
var node = evt.currentTarget || evt.srcElement;
|
10
|
+
if ( evt.type === "load" || readyRegExp.test(node.readyState) ) {
|
11
|
+
jQuery.holdReady(false);
|
12
|
+
}
|
13
|
+
}
|
14
|
+
|
15
|
+
setTimeout( function() {
|
16
|
+
var script = document.createElement("script");
|
17
|
+
script.type = "text/javascript";
|
18
|
+
if ( script.addEventListener ) {
|
19
|
+
script.addEventListener( "load", assetLoaded, false );
|
20
|
+
} else {
|
21
|
+
script.attachEvent( "onreadystatechange", assetLoaded );
|
22
|
+
}
|
23
|
+
script.src = "data/readywaitasset.js";
|
24
|
+
document.getElementsByTagName("head")[0].appendChild(script);
|
25
|
+
}, 2000 );
|
@@ -0,0 +1,11 @@
|
|
1
|
+
<?php
|
2
|
+
error_reporting(0);
|
3
|
+
if ( $_REQUEST['header'] ) {
|
4
|
+
if ( $_REQUEST['header'] == "ecma" ) {
|
5
|
+
header("Content-type: application/ecmascript");
|
6
|
+
} else {
|
7
|
+
header("Content-type: text/javascript");
|
8
|
+
}
|
9
|
+
}
|
10
|
+
?>
|
11
|
+
ok( true, "Script executed correctly." );
|
@@ -0,0 +1,114 @@
|
|
1
|
+
<!doctype html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<meta http-equiv="Content-type" content="text/html; charset=utf-8">
|
5
|
+
<title>jQuery selector - attributes</title>
|
6
|
+
|
7
|
+
<script src="../../jquery.js"></script>
|
8
|
+
|
9
|
+
<script id="script1"
|
10
|
+
defer
|
11
|
+
async></script>
|
12
|
+
|
13
|
+
<script type="text/javascript">
|
14
|
+
document.createElement('video');
|
15
|
+
document.createElement('audio');
|
16
|
+
document.createElement('article');
|
17
|
+
document.createElement('details');
|
18
|
+
</script>
|
19
|
+
</head>
|
20
|
+
<body>
|
21
|
+
<img id="img1"
|
22
|
+
ismap>
|
23
|
+
|
24
|
+
<hr id="hr1"
|
25
|
+
noshade>
|
26
|
+
|
27
|
+
<form id="form1"
|
28
|
+
name="formName"
|
29
|
+
novalidate
|
30
|
+
formnovalidate>
|
31
|
+
<input type="text" id="text1"
|
32
|
+
tabindex="1"
|
33
|
+
name="name"
|
34
|
+
required
|
35
|
+
autofocus
|
36
|
+
readonly>
|
37
|
+
<textarea id="textarea1"
|
38
|
+
noresize></textarea>
|
39
|
+
</form>
|
40
|
+
|
41
|
+
<table>
|
42
|
+
<tr><td id="td1"
|
43
|
+
nowrap></td></tr>
|
44
|
+
</table>
|
45
|
+
|
46
|
+
<iframe id="iframe1"
|
47
|
+
src="iframe.html"
|
48
|
+
seamless></iframe>
|
49
|
+
|
50
|
+
<style id="style1"
|
51
|
+
scoped></style>
|
52
|
+
|
53
|
+
<ol id="ol1"
|
54
|
+
reversed></ol>
|
55
|
+
|
56
|
+
<article id="article1"
|
57
|
+
pubdate></article>
|
58
|
+
|
59
|
+
<details id="details1"
|
60
|
+
open></details>
|
61
|
+
|
62
|
+
<div id="div1"
|
63
|
+
nowrap
|
64
|
+
hidden
|
65
|
+
itemscope
|
66
|
+
draggable="true"
|
67
|
+
contenteditable="true"
|
68
|
+
aria-disabled="true">
|
69
|
+
<p>My name is <span id="span1"
|
70
|
+
spellcheck="true"
|
71
|
+
itemprop="name">Elizabeth</span>.</p>
|
72
|
+
</div>
|
73
|
+
|
74
|
+
<audio id="audio1"
|
75
|
+
muted></audio>
|
76
|
+
|
77
|
+
<video id="video1"
|
78
|
+
loop
|
79
|
+
controls
|
80
|
+
autoplay
|
81
|
+
autobuffer></video>
|
82
|
+
|
83
|
+
<map id="map1">
|
84
|
+
<area id="area1"
|
85
|
+
nohref
|
86
|
+
shape="default">
|
87
|
+
</map>
|
88
|
+
|
89
|
+
<input id="check1"
|
90
|
+
type="checkbox"
|
91
|
+
disabled
|
92
|
+
checked>
|
93
|
+
|
94
|
+
<select id="select1"
|
95
|
+
multiple>
|
96
|
+
<option id="option1"
|
97
|
+
selected
|
98
|
+
value="blar">blar</option>
|
99
|
+
</select>
|
100
|
+
|
101
|
+
<dl id="dl"
|
102
|
+
compact>
|
103
|
+
<dt>Term</dt><dd>This is the first definition in compact format.</dd>
|
104
|
+
<dt>Term</dt><dd>This is the second definition in compact format.</dd>
|
105
|
+
</dl>
|
106
|
+
|
107
|
+
<object id="object1"
|
108
|
+
declare></object>
|
109
|
+
|
110
|
+
<marquee id="marquee1"
|
111
|
+
direction="up"
|
112
|
+
truespeed>Scrolling text (non-standard)</marquee>
|
113
|
+
</body>
|
114
|
+
</html>
|
@@ -0,0 +1,21 @@
|
|
1
|
+
<!doctype html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<meta http-equiv="Content-type" content="text/html; charset=utf-8">
|
5
|
+
<title>jQuery selector - sizzle cache</title>
|
6
|
+
|
7
|
+
<script src="../../jquery.js"></script>
|
8
|
+
<script>
|
9
|
+
document.write(
|
10
|
+
"<script>var $cached = jQuery.noConflict(true);<\x2Fscript>" +
|
11
|
+
"<script src='" + document.getElementById("jquery-js").src + "?overwrite'><\x2Fscript>"
|
12
|
+
);
|
13
|
+
</script>
|
14
|
+
|
15
|
+
</head>
|
16
|
+
<body>
|
17
|
+
<div class="test">
|
18
|
+
<a href="#" id="collision">Worlds collide</a>
|
19
|
+
</div>
|
20
|
+
</body>
|
21
|
+
</html>
|
@@ -0,0 +1,28 @@
|
|
1
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
2
|
+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" dir="ltr" id="html">
|
3
|
+
<head>
|
4
|
+
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
5
|
+
<style>
|
6
|
+
body {
|
7
|
+
background: #000000;
|
8
|
+
}
|
9
|
+
|
10
|
+
div {
|
11
|
+
padding: 15px;
|
12
|
+
border: 1px solid #999;
|
13
|
+
display: inline;
|
14
|
+
margin:8px;
|
15
|
+
}
|
16
|
+
</style>
|
17
|
+
</head>
|
18
|
+
<body>
|
19
|
+
<div>
|
20
|
+
<script src="../../jquery.js"></script>
|
21
|
+
</div>
|
22
|
+
<script>
|
23
|
+
jQuery(function() {
|
24
|
+
window.parent.iframeCallback( jQuery( "body" ).css( "backgroundColor" ), jQuery.support );
|
25
|
+
});
|
26
|
+
</script>
|
27
|
+
</body>
|
28
|
+
</html>
|
@@ -0,0 +1,19 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<meta charset="utf-8">
|
5
|
+
<style>
|
6
|
+
body {
|
7
|
+
zoom: 0.87;
|
8
|
+
}
|
9
|
+
</style>
|
10
|
+
</head>
|
11
|
+
<body>
|
12
|
+
<script src="../../jquery.js"></script>
|
13
|
+
<script>
|
14
|
+
jQuery(function() {
|
15
|
+
window.parent.iframeCallback( jQuery.support.boxSizing );
|
16
|
+
});
|
17
|
+
</script>
|
18
|
+
</body>
|
19
|
+
</html>
|
@@ -0,0 +1,22 @@
|
|
1
|
+
<?php
|
2
|
+
# Support: Firefox
|
3
|
+
header("X-Content-Security-Policy: default-src 'self';");
|
4
|
+
|
5
|
+
# Support: Webkit, Safari 5
|
6
|
+
# http://stackoverflow.com/questions/13663302/why-does-my-content-security-policy-work-everywhere-but-safari
|
7
|
+
header("X-WebKit-CSP: script-src " . $_SERVER["HTTP_HOST"] . " 'self'");
|
8
|
+
|
9
|
+
header("Content-Security-Policy: default-src 'self'");
|
10
|
+
?>
|
11
|
+
<!DOCTYPE html>
|
12
|
+
<html>
|
13
|
+
<head>
|
14
|
+
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
15
|
+
<title>CSP Test Page</title>
|
16
|
+
<script src="../../jquery.js"></script>
|
17
|
+
<script src="csp.js"></script>
|
18
|
+
</head>
|
19
|
+
<body>
|
20
|
+
<p>CSP Test Page</p>
|
21
|
+
</body>
|
22
|
+
</html>
|