kanpachi 0.0.5 → 0.0.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (136) hide show
  1. checksums.yaml +4 -4
  2. data/.bowerrc +3 -0
  3. data/.travis.yml +3 -1
  4. data/bower.json +22 -0
  5. data/kanpachi.gemspec +6 -6
  6. data/lib/kanpachi/doc/template/components/html5shiv/.bower.json +26 -0
  7. data/lib/kanpachi/doc/template/components/html5shiv/dist/html5shiv-printshiv.js +11 -0
  8. data/lib/kanpachi/doc/template/{source/javascripts → components/html5shiv/dist}/html5shiv.js +4 -5
  9. data/lib/kanpachi/doc/template/components/html5shiv/readme.md +143 -0
  10. data/lib/kanpachi/doc/template/components/jquery/.bower.json +37 -0
  11. data/lib/kanpachi/doc/template/components/jquery/MIT-LICENSE.txt +21 -0
  12. data/lib/kanpachi/doc/template/components/jquery/bower.json +27 -0
  13. data/lib/kanpachi/doc/template/components/jquery/dist/jquery.js +10337 -0
  14. data/lib/kanpachi/doc/template/components/jquery/dist/jquery.min.js +5 -0
  15. data/lib/kanpachi/doc/template/components/jquery/dist/jquery.min.map +1 -0
  16. data/lib/kanpachi/doc/template/components/jquery/src/ajax.js +807 -0
  17. data/lib/kanpachi/doc/template/components/jquery/src/ajax/jsonp.js +89 -0
  18. data/lib/kanpachi/doc/template/components/jquery/src/ajax/load.js +75 -0
  19. data/lib/kanpachi/doc/template/components/jquery/src/ajax/parseJSON.js +51 -0
  20. data/lib/kanpachi/doc/template/components/jquery/src/ajax/parseXML.js +31 -0
  21. data/lib/kanpachi/doc/template/components/jquery/src/ajax/script.js +93 -0
  22. data/lib/kanpachi/doc/template/components/jquery/src/ajax/var/nonce.js +5 -0
  23. data/lib/kanpachi/doc/template/components/jquery/src/ajax/var/rquery.js +3 -0
  24. data/lib/kanpachi/doc/template/components/jquery/src/ajax/xhr.js +196 -0
  25. data/lib/kanpachi/doc/template/components/jquery/src/attributes.js +11 -0
  26. data/lib/kanpachi/doc/template/components/jquery/src/attributes/attr.js +271 -0
  27. data/lib/kanpachi/doc/template/components/jquery/src/attributes/classes.js +157 -0
  28. data/lib/kanpachi/doc/template/components/jquery/src/attributes/prop.js +134 -0
  29. data/lib/kanpachi/doc/template/components/jquery/src/attributes/support.js +64 -0
  30. data/lib/kanpachi/doc/template/components/jquery/src/attributes/val.js +176 -0
  31. data/lib/kanpachi/doc/template/components/jquery/src/callbacks.js +205 -0
  32. data/lib/kanpachi/doc/template/components/jquery/src/core.js +542 -0
  33. data/lib/kanpachi/doc/template/components/jquery/src/core/access.js +60 -0
  34. data/lib/kanpachi/doc/template/components/jquery/src/core/init.js +132 -0
  35. data/lib/kanpachi/doc/template/components/jquery/src/core/parseHTML.js +39 -0
  36. data/lib/kanpachi/doc/template/components/jquery/src/core/ready.js +151 -0
  37. data/lib/kanpachi/doc/template/components/jquery/src/core/var/rsingleTag.js +4 -0
  38. data/lib/kanpachi/doc/template/components/jquery/src/css.js +508 -0
  39. data/lib/kanpachi/doc/template/components/jquery/src/css/addGetHookIf.js +32 -0
  40. data/lib/kanpachi/doc/template/components/jquery/src/css/curCSS.js +117 -0
  41. data/lib/kanpachi/doc/template/components/jquery/src/css/defaultDisplay.js +68 -0
  42. data/lib/kanpachi/doc/template/components/jquery/src/css/hiddenVisibleSelectors.js +20 -0
  43. data/lib/kanpachi/doc/template/components/jquery/src/css/support.js +193 -0
  44. data/lib/kanpachi/doc/template/components/jquery/src/css/swap.js +28 -0
  45. data/lib/kanpachi/doc/template/components/jquery/src/css/var/cssExpand.js +3 -0
  46. data/lib/kanpachi/doc/template/components/jquery/src/css/var/isHidden.js +13 -0
  47. data/lib/kanpachi/doc/template/components/jquery/src/css/var/rmargin.js +3 -0
  48. data/lib/kanpachi/doc/template/components/jquery/src/css/var/rnumnonpx.js +5 -0
  49. data/lib/kanpachi/doc/template/components/jquery/src/data.js +332 -0
  50. data/lib/kanpachi/doc/template/components/jquery/src/data/accepts.js +21 -0
  51. data/lib/kanpachi/doc/template/components/jquery/src/data/support.js +25 -0
  52. data/lib/kanpachi/doc/template/components/jquery/src/deferred.js +150 -0
  53. data/lib/kanpachi/doc/template/components/jquery/src/deprecated.js +13 -0
  54. data/lib/kanpachi/doc/template/components/jquery/src/dimensions.js +50 -0
  55. data/lib/kanpachi/doc/template/components/jquery/src/effects.js +648 -0
  56. data/lib/kanpachi/doc/template/components/jquery/src/effects/Tween.js +114 -0
  57. data/lib/kanpachi/doc/template/components/jquery/src/effects/animatedSelector.js +13 -0
  58. data/lib/kanpachi/doc/template/components/jquery/src/effects/support.js +76 -0
  59. data/lib/kanpachi/doc/template/components/jquery/src/event.js +1029 -0
  60. data/lib/kanpachi/doc/template/components/jquery/src/event/alias.js +39 -0
  61. data/lib/kanpachi/doc/template/components/jquery/src/event/support.js +26 -0
  62. data/lib/kanpachi/doc/template/components/jquery/src/exports/amd.js +18 -0
  63. data/lib/kanpachi/doc/template/components/jquery/src/exports/global.js +32 -0
  64. data/lib/kanpachi/doc/template/components/jquery/src/intro.js +44 -0
  65. data/lib/kanpachi/doc/template/components/jquery/src/jquery.js +37 -0
  66. data/lib/kanpachi/doc/template/components/jquery/src/manipulation.js +744 -0
  67. data/lib/kanpachi/doc/template/components/jquery/src/manipulation/_evalUrl.js +18 -0
  68. data/lib/kanpachi/doc/template/components/jquery/src/manipulation/support.js +79 -0
  69. data/lib/kanpachi/doc/template/components/jquery/src/manipulation/var/rcheckableType.js +3 -0
  70. data/lib/kanpachi/doc/template/components/jquery/src/offset.js +211 -0
  71. data/lib/kanpachi/doc/template/components/jquery/src/outro.js +1 -0
  72. data/lib/kanpachi/doc/template/components/jquery/src/queue.js +142 -0
  73. data/lib/kanpachi/doc/template/components/jquery/src/queue/delay.js +22 -0
  74. data/lib/kanpachi/doc/template/components/jquery/src/selector-sizzle.js +14 -0
  75. data/lib/kanpachi/doc/template/components/jquery/src/selector.js +1 -0
  76. data/lib/kanpachi/doc/template/components/jquery/src/serialize.js +110 -0
  77. data/lib/kanpachi/doc/template/components/jquery/src/sizzle/dist/sizzle.js +2015 -0
  78. data/lib/kanpachi/doc/template/components/jquery/src/sizzle/dist/sizzle.min.js +3 -0
  79. data/lib/kanpachi/doc/template/components/jquery/src/sizzle/dist/sizzle.min.map +1 -0
  80. data/lib/kanpachi/doc/template/components/jquery/src/support.js +62 -0
  81. data/lib/kanpachi/doc/template/components/jquery/src/traversing.js +200 -0
  82. data/lib/kanpachi/doc/template/components/jquery/src/traversing/findFilter.js +100 -0
  83. data/lib/kanpachi/doc/template/components/jquery/src/traversing/var/rneedsContext.js +6 -0
  84. data/lib/kanpachi/doc/template/components/jquery/src/var/class2type.js +4 -0
  85. data/lib/kanpachi/doc/template/components/jquery/src/var/concat.js +5 -0
  86. data/lib/kanpachi/doc/template/components/jquery/src/var/deletedIds.js +3 -0
  87. data/lib/kanpachi/doc/template/components/jquery/src/var/hasOwn.js +5 -0
  88. data/lib/kanpachi/doc/template/components/jquery/src/var/indexOf.js +5 -0
  89. data/lib/kanpachi/doc/template/components/jquery/src/var/pnum.js +3 -0
  90. data/lib/kanpachi/doc/template/components/jquery/src/var/push.js +5 -0
  91. data/lib/kanpachi/doc/template/components/jquery/src/var/rnotwhite.js +3 -0
  92. data/lib/kanpachi/doc/template/components/jquery/src/var/slice.js +5 -0
  93. data/lib/kanpachi/doc/template/components/jquery/src/var/strundefined.js +3 -0
  94. data/lib/kanpachi/doc/template/components/jquery/src/var/support.js +4 -0
  95. data/lib/kanpachi/doc/template/components/jquery/src/var/toString.js +5 -0
  96. data/lib/kanpachi/doc/template/components/jquery/src/var/trim.js +3 -0
  97. data/lib/kanpachi/doc/template/components/jquery/src/wrap.js +75 -0
  98. data/lib/kanpachi/doc/template/components/respond/.bower.json +20 -0
  99. data/lib/kanpachi/doc/template/components/respond/Gruntfile.js +90 -0
  100. data/lib/kanpachi/doc/template/components/respond/LICENSE-MIT +22 -0
  101. data/lib/kanpachi/doc/template/components/respond/README.md +114 -0
  102. data/lib/kanpachi/doc/template/components/respond/bower.json +10 -0
  103. data/lib/kanpachi/doc/template/components/respond/cross-domain/example.html +24 -0
  104. data/lib/kanpachi/doc/template/components/respond/cross-domain/respond-proxy.html +96 -0
  105. data/lib/kanpachi/doc/template/components/respond/cross-domain/respond.proxy.gif +0 -0
  106. data/lib/kanpachi/doc/template/components/respond/cross-domain/respond.proxy.js +127 -0
  107. data/lib/kanpachi/doc/template/components/respond/dest/respond.matchmedia.addListener.min.js +5 -0
  108. data/lib/kanpachi/doc/template/components/respond/dest/respond.matchmedia.addListener.src.js +273 -0
  109. data/lib/kanpachi/doc/template/components/respond/dest/respond.min.js +5 -0
  110. data/lib/kanpachi/doc/template/components/respond/dest/respond.src.js +224 -0
  111. data/lib/kanpachi/doc/template/components/respond/package.json +32 -0
  112. data/lib/kanpachi/doc/template/components/respond/src/matchmedia.addListener.js +76 -0
  113. data/lib/kanpachi/doc/template/components/respond/src/matchmedia.polyfill.js +36 -0
  114. data/lib/kanpachi/doc/template/components/respond/src/respond.js +341 -0
  115. data/lib/kanpachi/doc/template/config.rb +4 -0
  116. data/lib/kanpachi/doc/template/source/fonts/glyphicons-halflings-regular.eot +0 -0
  117. data/lib/kanpachi/doc/template/source/fonts/glyphicons-halflings-regular.svg +201 -200
  118. data/lib/kanpachi/doc/template/source/fonts/glyphicons-halflings-regular.ttf +0 -0
  119. data/lib/kanpachi/doc/template/source/fonts/glyphicons-halflings-regular.woff +0 -0
  120. data/lib/kanpachi/doc/template/source/javascripts/all.coffee +2 -0
  121. data/lib/kanpachi/doc/template/source/javascripts/bootstrap.js +271 -319
  122. data/lib/kanpachi/doc/template/source/javascripts/bootstrap.min.js +6 -6
  123. data/lib/kanpachi/doc/template/source/javascripts/ie.coffee +2 -0
  124. data/lib/kanpachi/doc/template/source/layouts/layout.slim +4 -6
  125. data/lib/kanpachi/doc/template/source/stylesheets/bootstrap-theme.css +192 -229
  126. data/lib/kanpachi/doc/template/source/stylesheets/bootstrap-theme.css.map +1 -0
  127. data/lib/kanpachi/doc/template/source/stylesheets/bootstrap-theme.min.css +7 -1
  128. data/lib/kanpachi/doc/template/source/stylesheets/bootstrap.css +2036 -3056
  129. data/lib/kanpachi/doc/template/source/stylesheets/bootstrap.css.map +1 -0
  130. data/lib/kanpachi/doc/template/source/stylesheets/bootstrap.min.css +6 -8
  131. data/lib/kanpachi/version.rb +1 -1
  132. data/wercker.yml +27 -0
  133. metadata +143 -31
  134. data/lib/kanpachi/doc/template/source/javascripts/all.js +0 -1
  135. data/lib/kanpachi/doc/template/source/javascripts/jquery-1.10.2.min.js +0 -6
  136. data/lib/kanpachi/doc/template/source/javascripts/respond.min.js +0 -7
@@ -0,0 +1,60 @@
1
+ define([
2
+ "../core"
3
+ ], function( jQuery ) {
4
+
5
+ // Multifunctional method to get and set values of a collection
6
+ // The value/s can optionally be executed if it's a function
7
+ var access = jQuery.access = function( elems, fn, key, value, chainable, emptyGet, raw ) {
8
+ var i = 0,
9
+ length = elems.length,
10
+ bulk = key == null;
11
+
12
+ // Sets many values
13
+ if ( jQuery.type( key ) === "object" ) {
14
+ chainable = true;
15
+ for ( i in key ) {
16
+ jQuery.access( elems, fn, i, key[i], true, emptyGet, raw );
17
+ }
18
+
19
+ // Sets one value
20
+ } else if ( value !== undefined ) {
21
+ chainable = true;
22
+
23
+ if ( !jQuery.isFunction( value ) ) {
24
+ raw = true;
25
+ }
26
+
27
+ if ( bulk ) {
28
+ // Bulk operations run against the entire set
29
+ if ( raw ) {
30
+ fn.call( elems, value );
31
+ fn = null;
32
+
33
+ // ...except when executing function values
34
+ } else {
35
+ bulk = fn;
36
+ fn = function( elem, key, value ) {
37
+ return bulk.call( jQuery( elem ), value );
38
+ };
39
+ }
40
+ }
41
+
42
+ if ( fn ) {
43
+ for ( ; i < length; i++ ) {
44
+ fn( elems[i], key, raw ? value : value.call( elems[i], i, fn( elems[i], key ) ) );
45
+ }
46
+ }
47
+ }
48
+
49
+ return chainable ?
50
+ elems :
51
+
52
+ // Gets
53
+ bulk ?
54
+ fn.call( elems ) :
55
+ length ? fn( elems[0], key ) : emptyGet;
56
+ };
57
+
58
+ return access;
59
+
60
+ });
@@ -0,0 +1,132 @@
1
+ // Initialize a jQuery object
2
+ define([
3
+ "../core",
4
+ "./var/rsingleTag",
5
+ "../traversing/findFilter"
6
+ ], function( jQuery, rsingleTag ) {
7
+
8
+ // A central reference to the root jQuery(document)
9
+ var rootjQuery,
10
+
11
+ // Use the correct document accordingly with window argument (sandbox)
12
+ document = window.document,
13
+
14
+ // A simple way to check for HTML strings
15
+ // Prioritize #id over <tag> to avoid XSS via location.hash (#9521)
16
+ // Strict HTML recognition (#11290: must start with <)
17
+ rquickExpr = /^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]*))$/,
18
+
19
+ init = jQuery.fn.init = function( selector, context ) {
20
+ var match, elem;
21
+
22
+ // HANDLE: $(""), $(null), $(undefined), $(false)
23
+ if ( !selector ) {
24
+ return this;
25
+ }
26
+
27
+ // Handle HTML strings
28
+ if ( typeof selector === "string" ) {
29
+ if ( selector.charAt(0) === "<" && selector.charAt( selector.length - 1 ) === ">" && selector.length >= 3 ) {
30
+ // Assume that strings that start and end with <> are HTML and skip the regex check
31
+ match = [ null, selector, null ];
32
+
33
+ } else {
34
+ match = rquickExpr.exec( selector );
35
+ }
36
+
37
+ // Match html or make sure no context is specified for #id
38
+ if ( match && (match[1] || !context) ) {
39
+
40
+ // HANDLE: $(html) -> $(array)
41
+ if ( match[1] ) {
42
+ context = context instanceof jQuery ? context[0] : context;
43
+
44
+ // scripts is true for back-compat
45
+ // Intentionally let the error be thrown if parseHTML is not present
46
+ jQuery.merge( this, jQuery.parseHTML(
47
+ match[1],
48
+ context && context.nodeType ? context.ownerDocument || context : document,
49
+ true
50
+ ) );
51
+
52
+ // HANDLE: $(html, props)
53
+ if ( rsingleTag.test( match[1] ) && jQuery.isPlainObject( context ) ) {
54
+ for ( match in context ) {
55
+ // Properties of context are called as methods if possible
56
+ if ( jQuery.isFunction( this[ match ] ) ) {
57
+ this[ match ]( context[ match ] );
58
+
59
+ // ...and otherwise set as attributes
60
+ } else {
61
+ this.attr( match, context[ match ] );
62
+ }
63
+ }
64
+ }
65
+
66
+ return this;
67
+
68
+ // HANDLE: $(#id)
69
+ } else {
70
+ elem = document.getElementById( match[2] );
71
+
72
+ // Check parentNode to catch when Blackberry 4.6 returns
73
+ // nodes that are no longer in the document #6963
74
+ if ( elem && elem.parentNode ) {
75
+ // Handle the case where IE and Opera return items
76
+ // by name instead of ID
77
+ if ( elem.id !== match[2] ) {
78
+ return rootjQuery.find( selector );
79
+ }
80
+
81
+ // Otherwise, we inject the element directly into the jQuery object
82
+ this.length = 1;
83
+ this[0] = elem;
84
+ }
85
+
86
+ this.context = document;
87
+ this.selector = selector;
88
+ return this;
89
+ }
90
+
91
+ // HANDLE: $(expr, $(...))
92
+ } else if ( !context || context.jquery ) {
93
+ return ( context || rootjQuery ).find( selector );
94
+
95
+ // HANDLE: $(expr, context)
96
+ // (which is just equivalent to: $(context).find(expr)
97
+ } else {
98
+ return this.constructor( context ).find( selector );
99
+ }
100
+
101
+ // HANDLE: $(DOMElement)
102
+ } else if ( selector.nodeType ) {
103
+ this.context = this[0] = selector;
104
+ this.length = 1;
105
+ return this;
106
+
107
+ // HANDLE: $(function)
108
+ // Shortcut for document ready
109
+ } else if ( jQuery.isFunction( selector ) ) {
110
+ return typeof rootjQuery.ready !== "undefined" ?
111
+ rootjQuery.ready( selector ) :
112
+ // Execute immediately if ready is not present
113
+ selector( jQuery );
114
+ }
115
+
116
+ if ( selector.selector !== undefined ) {
117
+ this.selector = selector.selector;
118
+ this.context = selector.context;
119
+ }
120
+
121
+ return jQuery.makeArray( selector, this );
122
+ };
123
+
124
+ // Give the init function the jQuery prototype for later instantiation
125
+ init.prototype = jQuery.fn;
126
+
127
+ // Initialize central reference
128
+ rootjQuery = jQuery( document );
129
+
130
+ return init;
131
+
132
+ });
@@ -0,0 +1,39 @@
1
+ define([
2
+ "../core",
3
+ "./var/rsingleTag",
4
+ "../manipulation" // buildFragment
5
+ ], function( jQuery, rsingleTag ) {
6
+
7
+ // data: string of html
8
+ // context (optional): If specified, the fragment will be created in this context, defaults to document
9
+ // keepScripts (optional): If true, will include scripts passed in the html string
10
+ jQuery.parseHTML = function( data, context, keepScripts ) {
11
+ if ( !data || typeof data !== "string" ) {
12
+ return null;
13
+ }
14
+ if ( typeof context === "boolean" ) {
15
+ keepScripts = context;
16
+ context = false;
17
+ }
18
+ context = context || document;
19
+
20
+ var parsed = rsingleTag.exec( data ),
21
+ scripts = !keepScripts && [];
22
+
23
+ // Single tag
24
+ if ( parsed ) {
25
+ return [ context.createElement( parsed[1] ) ];
26
+ }
27
+
28
+ parsed = jQuery.buildFragment( [ data ], context, scripts );
29
+
30
+ if ( scripts && scripts.length ) {
31
+ jQuery( scripts ).remove();
32
+ }
33
+
34
+ return jQuery.merge( [], parsed.childNodes );
35
+ };
36
+
37
+ return jQuery.parseHTML;
38
+
39
+ });
@@ -0,0 +1,151 @@
1
+ define([
2
+ "../core",
3
+ "../core/init",
4
+ "../deferred"
5
+ ], function( jQuery ) {
6
+
7
+ // The deferred used on DOM ready
8
+ var readyList;
9
+
10
+ jQuery.fn.ready = function( fn ) {
11
+ // Add the callback
12
+ jQuery.ready.promise().done( fn );
13
+
14
+ return this;
15
+ };
16
+
17
+ jQuery.extend({
18
+ // Is the DOM ready to be used? Set to true once it occurs.
19
+ isReady: false,
20
+
21
+ // A counter to track how many items to wait for before
22
+ // the ready event fires. See #6781
23
+ readyWait: 1,
24
+
25
+ // Hold (or release) the ready event
26
+ holdReady: function( hold ) {
27
+ if ( hold ) {
28
+ jQuery.readyWait++;
29
+ } else {
30
+ jQuery.ready( true );
31
+ }
32
+ },
33
+
34
+ // Handle when the DOM is ready
35
+ ready: function( wait ) {
36
+
37
+ // Abort if there are pending holds or we're already ready
38
+ if ( wait === true ? --jQuery.readyWait : jQuery.isReady ) {
39
+ return;
40
+ }
41
+
42
+ // Make sure body exists, at least, in case IE gets a little overzealous (ticket #5443).
43
+ if ( !document.body ) {
44
+ return setTimeout( jQuery.ready );
45
+ }
46
+
47
+ // Remember that the DOM is ready
48
+ jQuery.isReady = true;
49
+
50
+ // If a normal DOM Ready event fired, decrement, and wait if need be
51
+ if ( wait !== true && --jQuery.readyWait > 0 ) {
52
+ return;
53
+ }
54
+
55
+ // If there are functions bound, to execute
56
+ readyList.resolveWith( document, [ jQuery ] );
57
+
58
+ // Trigger any bound ready events
59
+ if ( jQuery.fn.trigger ) {
60
+ jQuery( document ).trigger("ready").off("ready");
61
+ }
62
+ }
63
+ });
64
+
65
+ /**
66
+ * Clean-up method for dom ready events
67
+ */
68
+ function detach() {
69
+ if ( document.addEventListener ) {
70
+ document.removeEventListener( "DOMContentLoaded", completed, false );
71
+ window.removeEventListener( "load", completed, false );
72
+
73
+ } else {
74
+ document.detachEvent( "onreadystatechange", completed );
75
+ window.detachEvent( "onload", completed );
76
+ }
77
+ }
78
+
79
+ /**
80
+ * The ready event handler and self cleanup method
81
+ */
82
+ function completed() {
83
+ // readyState === "complete" is good enough for us to call the dom ready in oldIE
84
+ if ( document.addEventListener || event.type === "load" || document.readyState === "complete" ) {
85
+ detach();
86
+ jQuery.ready();
87
+ }
88
+ }
89
+
90
+ jQuery.ready.promise = function( obj ) {
91
+ if ( !readyList ) {
92
+
93
+ readyList = jQuery.Deferred();
94
+
95
+ // Catch cases where $(document).ready() is called after the browser event has already occurred.
96
+ // we once tried to use readyState "interactive" here, but it caused issues like the one
97
+ // discovered by ChrisS here: http://bugs.jquery.com/ticket/12282#comment:15
98
+ if ( document.readyState === "complete" ) {
99
+ // Handle it asynchronously to allow scripts the opportunity to delay ready
100
+ setTimeout( jQuery.ready );
101
+
102
+ // Standards-based browsers support DOMContentLoaded
103
+ } else if ( document.addEventListener ) {
104
+ // Use the handy event callback
105
+ document.addEventListener( "DOMContentLoaded", completed, false );
106
+
107
+ // A fallback to window.onload, that will always work
108
+ window.addEventListener( "load", completed, false );
109
+
110
+ // If IE event model is used
111
+ } else {
112
+ // Ensure firing before onload, maybe late but safe also for iframes
113
+ document.attachEvent( "onreadystatechange", completed );
114
+
115
+ // A fallback to window.onload, that will always work
116
+ window.attachEvent( "onload", completed );
117
+
118
+ // If IE and not a frame
119
+ // continually check to see if the document is ready
120
+ var top = false;
121
+
122
+ try {
123
+ top = window.frameElement == null && document.documentElement;
124
+ } catch(e) {}
125
+
126
+ if ( top && top.doScroll ) {
127
+ (function doScrollCheck() {
128
+ if ( !jQuery.isReady ) {
129
+
130
+ try {
131
+ // Use the trick by Diego Perini
132
+ // http://javascript.nwbox.com/IEContentLoaded/
133
+ top.doScroll("left");
134
+ } catch(e) {
135
+ return setTimeout( doScrollCheck, 50 );
136
+ }
137
+
138
+ // detach all dom ready events
139
+ detach();
140
+
141
+ // and execute any waiting functions
142
+ jQuery.ready();
143
+ }
144
+ })();
145
+ }
146
+ }
147
+ }
148
+ return readyList.promise( obj );
149
+ };
150
+
151
+ });
@@ -0,0 +1,4 @@
1
+ define(function() {
2
+ // Match a standalone tag
3
+ return (/^<(\w+)\s*\/?>(?:<\/\1>|)$/);
4
+ });
@@ -0,0 +1,508 @@
1
+ define([
2
+ "./core",
3
+ "./var/pnum",
4
+ "./core/access",
5
+ "./css/var/rmargin",
6
+ "./css/var/rnumnonpx",
7
+ "./css/var/cssExpand",
8
+ "./css/var/isHidden",
9
+ "./css/curCSS",
10
+ "./css/defaultDisplay",
11
+ "./css/addGetHookIf",
12
+ "./css/support",
13
+
14
+ "./core/init",
15
+ "./css/swap",
16
+ "./core/ready",
17
+ "./selector" // contains
18
+ ], function( jQuery, pnum, access, rmargin, rnumnonpx, cssExpand, isHidden,
19
+ curCSS, defaultDisplay, addGetHookIf, support ) {
20
+
21
+ var
22
+ // BuildExclude
23
+ getStyles = curCSS.getStyles,
24
+ ralpha = /alpha\([^)]*\)/i,
25
+ ropacity = /opacity\s*=\s*([^)]*)/,
26
+
27
+ // swappable if display is none or starts with table except "table", "table-cell", or "table-caption"
28
+ // see here for display values: https://developer.mozilla.org/en-US/docs/CSS/display
29
+ rdisplayswap = /^(none|table(?!-c[ea]).+)/,
30
+ rnumsplit = new RegExp( "^(" + pnum + ")(.*)$", "i" ),
31
+ rrelNum = new RegExp( "^([+-])=(" + pnum + ")", "i" ),
32
+
33
+ cssShow = { position: "absolute", visibility: "hidden", display: "block" },
34
+ cssNormalTransform = {
35
+ letterSpacing: 0,
36
+ fontWeight: 400
37
+ },
38
+
39
+ cssPrefixes = [ "Webkit", "O", "Moz", "ms" ];
40
+
41
+ // BuildExclude
42
+ curCSS = curCSS.curCSS;
43
+
44
+ // return a css property mapped to a potentially vendor prefixed property
45
+ function vendorPropName( style, name ) {
46
+
47
+ // shortcut for names that are not vendor prefixed
48
+ if ( name in style ) {
49
+ return name;
50
+ }
51
+
52
+ // check for vendor prefixed names
53
+ var capName = name.charAt(0).toUpperCase() + name.slice(1),
54
+ origName = name,
55
+ i = cssPrefixes.length;
56
+
57
+ while ( i-- ) {
58
+ name = cssPrefixes[ i ] + capName;
59
+ if ( name in style ) {
60
+ return name;
61
+ }
62
+ }
63
+
64
+ return origName;
65
+ }
66
+
67
+ function showHide( elements, show ) {
68
+ var display, elem, hidden,
69
+ values = [],
70
+ index = 0,
71
+ length = elements.length;
72
+
73
+ for ( ; index < length; index++ ) {
74
+ elem = elements[ index ];
75
+ if ( !elem.style ) {
76
+ continue;
77
+ }
78
+
79
+ values[ index ] = jQuery._data( elem, "olddisplay" );
80
+ display = elem.style.display;
81
+ if ( show ) {
82
+ // Reset the inline display of this element to learn if it is
83
+ // being hidden by cascaded rules or not
84
+ if ( !values[ index ] && display === "none" ) {
85
+ elem.style.display = "";
86
+ }
87
+
88
+ // Set elements which have been overridden with display: none
89
+ // in a stylesheet to whatever the default browser style is
90
+ // for such an element
91
+ if ( elem.style.display === "" && isHidden( elem ) ) {
92
+ values[ index ] = jQuery._data( elem, "olddisplay", defaultDisplay(elem.nodeName) );
93
+ }
94
+ } else {
95
+
96
+ if ( !values[ index ] ) {
97
+ hidden = isHidden( elem );
98
+
99
+ if ( display && display !== "none" || !hidden ) {
100
+ jQuery._data( elem, "olddisplay", hidden ? display : jQuery.css( elem, "display" ) );
101
+ }
102
+ }
103
+ }
104
+ }
105
+
106
+ // Set the display of most of the elements in a second loop
107
+ // to avoid the constant reflow
108
+ for ( index = 0; index < length; index++ ) {
109
+ elem = elements[ index ];
110
+ if ( !elem.style ) {
111
+ continue;
112
+ }
113
+ if ( !show || elem.style.display === "none" || elem.style.display === "" ) {
114
+ elem.style.display = show ? values[ index ] || "" : "none";
115
+ }
116
+ }
117
+
118
+ return elements;
119
+ }
120
+
121
+ function setPositiveNumber( elem, value, subtract ) {
122
+ var matches = rnumsplit.exec( value );
123
+ return matches ?
124
+ // Guard against undefined "subtract", e.g., when used as in cssHooks
125
+ Math.max( 0, matches[ 1 ] - ( subtract || 0 ) ) + ( matches[ 2 ] || "px" ) :
126
+ value;
127
+ }
128
+
129
+ function augmentWidthOrHeight( elem, name, extra, isBorderBox, styles ) {
130
+ var i = extra === ( isBorderBox ? "border" : "content" ) ?
131
+ // If we already have the right measurement, avoid augmentation
132
+ 4 :
133
+ // Otherwise initialize for horizontal or vertical properties
134
+ name === "width" ? 1 : 0,
135
+
136
+ val = 0;
137
+
138
+ for ( ; i < 4; i += 2 ) {
139
+ // both box models exclude margin, so add it if we want it
140
+ if ( extra === "margin" ) {
141
+ val += jQuery.css( elem, extra + cssExpand[ i ], true, styles );
142
+ }
143
+
144
+ if ( isBorderBox ) {
145
+ // border-box includes padding, so remove it if we want content
146
+ if ( extra === "content" ) {
147
+ val -= jQuery.css( elem, "padding" + cssExpand[ i ], true, styles );
148
+ }
149
+
150
+ // at this point, extra isn't border nor margin, so remove border
151
+ if ( extra !== "margin" ) {
152
+ val -= jQuery.css( elem, "border" + cssExpand[ i ] + "Width", true, styles );
153
+ }
154
+ } else {
155
+ // at this point, extra isn't content, so add padding
156
+ val += jQuery.css( elem, "padding" + cssExpand[ i ], true, styles );
157
+
158
+ // at this point, extra isn't content nor padding, so add border
159
+ if ( extra !== "padding" ) {
160
+ val += jQuery.css( elem, "border" + cssExpand[ i ] + "Width", true, styles );
161
+ }
162
+ }
163
+ }
164
+
165
+ return val;
166
+ }
167
+
168
+ function getWidthOrHeight( elem, name, extra ) {
169
+
170
+ // Start with offset property, which is equivalent to the border-box value
171
+ var valueIsBorderBox = true,
172
+ val = name === "width" ? elem.offsetWidth : elem.offsetHeight,
173
+ styles = getStyles( elem ),
174
+ isBorderBox = support.boxSizing() && jQuery.css( elem, "boxSizing", false, styles ) === "border-box";
175
+
176
+ // some non-html elements return undefined for offsetWidth, so check for null/undefined
177
+ // svg - https://bugzilla.mozilla.org/show_bug.cgi?id=649285
178
+ // MathML - https://bugzilla.mozilla.org/show_bug.cgi?id=491668
179
+ if ( val <= 0 || val == null ) {
180
+ // Fall back to computed then uncomputed css if necessary
181
+ val = curCSS( elem, name, styles );
182
+ if ( val < 0 || val == null ) {
183
+ val = elem.style[ name ];
184
+ }
185
+
186
+ // Computed unit is not pixels. Stop here and return.
187
+ if ( rnumnonpx.test(val) ) {
188
+ return val;
189
+ }
190
+
191
+ // we need the check for style in case a browser which returns unreliable values
192
+ // for getComputedStyle silently falls back to the reliable elem.style
193
+ valueIsBorderBox = isBorderBox && ( support.boxSizingReliable() || val === elem.style[ name ] );
194
+
195
+ // Normalize "", auto, and prepare for extra
196
+ val = parseFloat( val ) || 0;
197
+ }
198
+
199
+ // use the active box-sizing model to add/subtract irrelevant styles
200
+ return ( val +
201
+ augmentWidthOrHeight(
202
+ elem,
203
+ name,
204
+ extra || ( isBorderBox ? "border" : "content" ),
205
+ valueIsBorderBox,
206
+ styles
207
+ )
208
+ ) + "px";
209
+ }
210
+
211
+ jQuery.extend({
212
+ // Add in style property hooks for overriding the default
213
+ // behavior of getting and setting a style property
214
+ cssHooks: {
215
+ opacity: {
216
+ get: function( elem, computed ) {
217
+ if ( computed ) {
218
+ // We should always get a number back from opacity
219
+ var ret = curCSS( elem, "opacity" );
220
+ return ret === "" ? "1" : ret;
221
+ }
222
+ }
223
+ }
224
+ },
225
+
226
+ // Don't automatically add "px" to these possibly-unitless properties
227
+ cssNumber: {
228
+ "columnCount": true,
229
+ "fillOpacity": true,
230
+ "fontWeight": true,
231
+ "lineHeight": true,
232
+ "opacity": true,
233
+ "order": true,
234
+ "orphans": true,
235
+ "widows": true,
236
+ "zIndex": true,
237
+ "zoom": true
238
+ },
239
+
240
+ // Add in properties whose names you wish to fix before
241
+ // setting or getting the value
242
+ cssProps: {
243
+ // normalize float css property
244
+ "float": support.cssFloat ? "cssFloat" : "styleFloat"
245
+ },
246
+
247
+ // Get and set the style property on a DOM Node
248
+ style: function( elem, name, value, extra ) {
249
+ // Don't set styles on text and comment nodes
250
+ if ( !elem || elem.nodeType === 3 || elem.nodeType === 8 || !elem.style ) {
251
+ return;
252
+ }
253
+
254
+ // Make sure that we're working with the right name
255
+ var ret, type, hooks,
256
+ origName = jQuery.camelCase( name ),
257
+ style = elem.style;
258
+
259
+ name = jQuery.cssProps[ origName ] || ( jQuery.cssProps[ origName ] = vendorPropName( style, origName ) );
260
+
261
+ // gets hook for the prefixed version
262
+ // followed by the unprefixed version
263
+ hooks = jQuery.cssHooks[ name ] || jQuery.cssHooks[ origName ];
264
+
265
+ // Check if we're setting a value
266
+ if ( value !== undefined ) {
267
+ type = typeof value;
268
+
269
+ // convert relative number strings (+= or -=) to relative numbers. #7345
270
+ if ( type === "string" && (ret = rrelNum.exec( value )) ) {
271
+ value = ( ret[1] + 1 ) * ret[2] + parseFloat( jQuery.css( elem, name ) );
272
+ // Fixes bug #9237
273
+ type = "number";
274
+ }
275
+
276
+ // Make sure that null and NaN values aren't set. See: #7116
277
+ if ( value == null || value !== value ) {
278
+ return;
279
+ }
280
+
281
+ // If a number was passed in, add 'px' to the (except for certain CSS properties)
282
+ if ( type === "number" && !jQuery.cssNumber[ origName ] ) {
283
+ value += "px";
284
+ }
285
+
286
+ // Fixes #8908, it can be done more correctly by specifing setters in cssHooks,
287
+ // but it would mean to define eight (for every problematic property) identical functions
288
+ if ( !support.clearCloneStyle && value === "" && name.indexOf("background") === 0 ) {
289
+ style[ name ] = "inherit";
290
+ }
291
+
292
+ // If a hook was provided, use that value, otherwise just set the specified value
293
+ if ( !hooks || !("set" in hooks) || (value = hooks.set( elem, value, extra )) !== undefined ) {
294
+
295
+ // Support: IE
296
+ // Swallow errors from 'invalid' CSS values (#5509)
297
+ try {
298
+ // Support: Chrome, Safari
299
+ // Setting style to blank string required to delete "style: x !important;"
300
+ style[ name ] = "";
301
+ style[ name ] = value;
302
+ } catch(e) {}
303
+ }
304
+
305
+ } else {
306
+ // If a hook was provided get the non-computed value from there
307
+ if ( hooks && "get" in hooks && (ret = hooks.get( elem, false, extra )) !== undefined ) {
308
+ return ret;
309
+ }
310
+
311
+ // Otherwise just get the value from the style object
312
+ return style[ name ];
313
+ }
314
+ },
315
+
316
+ css: function( elem, name, extra, styles ) {
317
+ var num, val, hooks,
318
+ origName = jQuery.camelCase( name );
319
+
320
+ // Make sure that we're working with the right name
321
+ name = jQuery.cssProps[ origName ] || ( jQuery.cssProps[ origName ] = vendorPropName( elem.style, origName ) );
322
+
323
+ // gets hook for the prefixed version
324
+ // followed by the unprefixed version
325
+ hooks = jQuery.cssHooks[ name ] || jQuery.cssHooks[ origName ];
326
+
327
+ // If a hook was provided get the computed value from there
328
+ if ( hooks && "get" in hooks ) {
329
+ val = hooks.get( elem, true, extra );
330
+ }
331
+
332
+ // Otherwise, if a way to get the computed value exists, use that
333
+ if ( val === undefined ) {
334
+ val = curCSS( elem, name, styles );
335
+ }
336
+
337
+ //convert "normal" to computed value
338
+ if ( val === "normal" && name in cssNormalTransform ) {
339
+ val = cssNormalTransform[ name ];
340
+ }
341
+
342
+ // Return, converting to number if forced or a qualifier was provided and val looks numeric
343
+ if ( extra === "" || extra ) {
344
+ num = parseFloat( val );
345
+ return extra === true || jQuery.isNumeric( num ) ? num || 0 : val;
346
+ }
347
+ return val;
348
+ }
349
+ });
350
+
351
+ jQuery.each([ "height", "width" ], function( i, name ) {
352
+ jQuery.cssHooks[ name ] = {
353
+ get: function( elem, computed, extra ) {
354
+ if ( computed ) {
355
+ // certain elements can have dimension info if we invisibly show them
356
+ // however, it must have a current display style that would benefit from this
357
+ return elem.offsetWidth === 0 && rdisplayswap.test( jQuery.css( elem, "display" ) ) ?
358
+ jQuery.swap( elem, cssShow, function() {
359
+ return getWidthOrHeight( elem, name, extra );
360
+ }) :
361
+ getWidthOrHeight( elem, name, extra );
362
+ }
363
+ },
364
+
365
+ set: function( elem, value, extra ) {
366
+ var styles = extra && getStyles( elem );
367
+ return setPositiveNumber( elem, value, extra ?
368
+ augmentWidthOrHeight(
369
+ elem,
370
+ name,
371
+ extra,
372
+ support.boxSizing() && jQuery.css( elem, "boxSizing", false, styles ) === "border-box",
373
+ styles
374
+ ) : 0
375
+ );
376
+ }
377
+ };
378
+ });
379
+
380
+ if ( !support.opacity ) {
381
+ jQuery.cssHooks.opacity = {
382
+ get: function( elem, computed ) {
383
+ // IE uses filters for opacity
384
+ return ropacity.test( (computed && elem.currentStyle ? elem.currentStyle.filter : elem.style.filter) || "" ) ?
385
+ ( 0.01 * parseFloat( RegExp.$1 ) ) + "" :
386
+ computed ? "1" : "";
387
+ },
388
+
389
+ set: function( elem, value ) {
390
+ var style = elem.style,
391
+ currentStyle = elem.currentStyle,
392
+ opacity = jQuery.isNumeric( value ) ? "alpha(opacity=" + value * 100 + ")" : "",
393
+ filter = currentStyle && currentStyle.filter || style.filter || "";
394
+
395
+ // IE has trouble with opacity if it does not have layout
396
+ // Force it by setting the zoom level
397
+ style.zoom = 1;
398
+
399
+ // if setting opacity to 1, and no other filters exist - attempt to remove filter attribute #6652
400
+ // if value === "", then remove inline opacity #12685
401
+ if ( ( value >= 1 || value === "" ) &&
402
+ jQuery.trim( filter.replace( ralpha, "" ) ) === "" &&
403
+ style.removeAttribute ) {
404
+
405
+ // Setting style.filter to null, "" & " " still leave "filter:" in the cssText
406
+ // if "filter:" is present at all, clearType is disabled, we want to avoid this
407
+ // style.removeAttribute is IE Only, but so apparently is this code path...
408
+ style.removeAttribute( "filter" );
409
+
410
+ // if there is no filter style applied in a css rule or unset inline opacity, we are done
411
+ if ( value === "" || currentStyle && !currentStyle.filter ) {
412
+ return;
413
+ }
414
+ }
415
+
416
+ // otherwise, set new filter values
417
+ style.filter = ralpha.test( filter ) ?
418
+ filter.replace( ralpha, opacity ) :
419
+ filter + " " + opacity;
420
+ }
421
+ };
422
+ }
423
+
424
+ jQuery.cssHooks.marginRight = addGetHookIf( support.reliableMarginRight,
425
+ function( elem, computed ) {
426
+ if ( computed ) {
427
+ // WebKit Bug 13343 - getComputedStyle returns wrong value for margin-right
428
+ // Work around by temporarily setting element display to inline-block
429
+ return jQuery.swap( elem, { "display": "inline-block" },
430
+ curCSS, [ elem, "marginRight" ] );
431
+ }
432
+ }
433
+ );
434
+
435
+ // These hooks are used by animate to expand properties
436
+ jQuery.each({
437
+ margin: "",
438
+ padding: "",
439
+ border: "Width"
440
+ }, function( prefix, suffix ) {
441
+ jQuery.cssHooks[ prefix + suffix ] = {
442
+ expand: function( value ) {
443
+ var i = 0,
444
+ expanded = {},
445
+
446
+ // assumes a single number if not a string
447
+ parts = typeof value === "string" ? value.split(" ") : [ value ];
448
+
449
+ for ( ; i < 4; i++ ) {
450
+ expanded[ prefix + cssExpand[ i ] + suffix ] =
451
+ parts[ i ] || parts[ i - 2 ] || parts[ 0 ];
452
+ }
453
+
454
+ return expanded;
455
+ }
456
+ };
457
+
458
+ if ( !rmargin.test( prefix ) ) {
459
+ jQuery.cssHooks[ prefix + suffix ].set = setPositiveNumber;
460
+ }
461
+ });
462
+
463
+ jQuery.fn.extend({
464
+ css: function( name, value ) {
465
+ return access( this, function( elem, name, value ) {
466
+ var styles, len,
467
+ map = {},
468
+ i = 0;
469
+
470
+ if ( jQuery.isArray( name ) ) {
471
+ styles = getStyles( elem );
472
+ len = name.length;
473
+
474
+ for ( ; i < len; i++ ) {
475
+ map[ name[ i ] ] = jQuery.css( elem, name[ i ], false, styles );
476
+ }
477
+
478
+ return map;
479
+ }
480
+
481
+ return value !== undefined ?
482
+ jQuery.style( elem, name, value ) :
483
+ jQuery.css( elem, name );
484
+ }, name, value, arguments.length > 1 );
485
+ },
486
+ show: function() {
487
+ return showHide( this, true );
488
+ },
489
+ hide: function() {
490
+ return showHide( this );
491
+ },
492
+ toggle: function( state ) {
493
+ if ( typeof state === "boolean" ) {
494
+ return state ? this.show() : this.hide();
495
+ }
496
+
497
+ return this.each(function() {
498
+ if ( isHidden( this ) ) {
499
+ jQuery( this ).show();
500
+ } else {
501
+ jQuery( this ).hide();
502
+ }
503
+ });
504
+ }
505
+ });
506
+
507
+ return jQuery;
508
+ });