jekyll-chalk 0.1.0 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (275) hide show
  1. checksums.yaml +4 -4
  2. data/LICENSE.txt +21 -0
  3. data/README.md +89 -0
  4. data/_includes/footer.html +7 -0
  5. data/_includes/head.html +33 -0
  6. data/_includes/image.html +3 -0
  7. data/_includes/javascripts.html +21 -0
  8. data/_includes/navigation.html +75 -0
  9. data/_layouts/articles_by_tag.html +38 -0
  10. data/_layouts/default.html +16 -0
  11. data/_layouts/page.html +5 -0
  12. data/_layouts/post.html +71 -0
  13. data/assets/bower/fluidbox/.bower.json +44 -0
  14. data/assets/bower/fluidbox/Gruntfile.js +8 -0
  15. data/assets/bower/fluidbox/LICENSE.md +23 -0
  16. data/assets/bower/fluidbox/README.md +396 -0
  17. data/assets/bower/fluidbox/bower.json +35 -0
  18. data/assets/bower/fluidbox/demo/css/styles.min.css +2 -0
  19. data/assets/bower/fluidbox/demo/css/styles.min.css.map +1 -0
  20. data/assets/bower/fluidbox/demo/fonts/BLOKKRegular.eot +0 -0
  21. data/assets/bower/fluidbox/demo/fonts/BLOKKRegular.svg +233 -0
  22. data/assets/bower/fluidbox/demo/fonts/BLOKKRegular.ttf +0 -0
  23. data/assets/bower/fluidbox/demo/fonts/BLOKKRegular.woff +0 -0
  24. data/assets/bower/fluidbox/demo/fonts/fontello.eot +0 -0
  25. data/assets/bower/fluidbox/demo/fonts/fontello.svg +13 -0
  26. data/assets/bower/fluidbox/demo/fonts/fontello.ttf +0 -0
  27. data/assets/bower/fluidbox/demo/fonts/fontello.woff +0 -0
  28. data/assets/bower/fluidbox/demo/index.html +758 -0
  29. data/assets/bower/fluidbox/demo/src/css/styles.scss +1131 -0
  30. data/assets/bower/fluidbox/dist/css/fluidbox.min.css +2 -0
  31. data/assets/bower/fluidbox/dist/css/fluidbox.min.css.map +1 -0
  32. data/assets/bower/fluidbox/dist/js/jquery.fluidbox.min.js +1 -0
  33. data/assets/bower/fluidbox/grunt/aliases.yaml +20 -0
  34. data/assets/bower/fluidbox/grunt/clean.js +5 -0
  35. data/assets/bower/fluidbox/grunt/concurrent.js +33 -0
  36. data/assets/bower/fluidbox/grunt/jshint.js +10 -0
  37. data/assets/bower/fluidbox/grunt/postcss.js +47 -0
  38. data/assets/bower/fluidbox/grunt/sass.js +42 -0
  39. data/assets/bower/fluidbox/grunt/uglify.js +7 -0
  40. data/assets/bower/fluidbox/grunt/watch.js +28 -0
  41. data/assets/bower/fluidbox/index.html +8 -0
  42. data/assets/bower/fluidbox/license.txt +21 -0
  43. data/assets/bower/fluidbox/src/css/_fluidbox.scss +95 -0
  44. data/assets/bower/fluidbox/src/css/fluidbox.scss +2 -0
  45. data/assets/bower/fluidbox/src/js/jquery.fluidbox.js +722 -0
  46. data/assets/bower/jquery/.bower.json +25 -0
  47. data/assets/bower/jquery/AUTHORS.txt +295 -0
  48. data/assets/bower/jquery/LICENSE.txt +36 -0
  49. data/assets/bower/jquery/README.md +65 -0
  50. data/assets/bower/jquery/bower.json +14 -0
  51. data/assets/bower/jquery/dist/core.js +482 -0
  52. data/assets/bower/jquery/dist/jquery.js +10220 -0
  53. data/assets/bower/jquery/dist/jquery.min.js +4 -0
  54. data/assets/bower/jquery/dist/jquery.min.map +1 -0
  55. data/assets/bower/jquery/dist/jquery.slim.js +8107 -0
  56. data/assets/bower/jquery/dist/jquery.slim.min.js +4 -0
  57. data/assets/bower/jquery/dist/jquery.slim.min.map +1 -0
  58. data/assets/bower/jquery/external/sizzle/LICENSE.txt +36 -0
  59. data/assets/bower/jquery/external/sizzle/dist/sizzle.js +2272 -0
  60. data/assets/bower/jquery/external/sizzle/dist/sizzle.min.js +3 -0
  61. data/assets/bower/jquery/external/sizzle/dist/sizzle.min.map +1 -0
  62. data/assets/bower/jquery/src/.eslintrc.json +18 -0
  63. data/assets/bower/jquery/src/ajax.js +855 -0
  64. data/assets/bower/jquery/src/ajax/jsonp.js +102 -0
  65. data/assets/bower/jquery/src/ajax/load.js +76 -0
  66. data/assets/bower/jquery/src/ajax/parseXML.js +30 -0
  67. data/assets/bower/jquery/src/ajax/script.js +77 -0
  68. data/assets/bower/jquery/src/ajax/var/location.js +5 -0
  69. data/assets/bower/jquery/src/ajax/var/nonce.js +7 -0
  70. data/assets/bower/jquery/src/ajax/var/rquery.js +5 -0
  71. data/assets/bower/jquery/src/ajax/xhr.js +169 -0
  72. data/assets/bower/jquery/src/attributes.js +13 -0
  73. data/assets/bower/jquery/src/attributes/attr.js +140 -0
  74. data/assets/bower/jquery/src/attributes/classes.js +174 -0
  75. data/assets/bower/jquery/src/attributes/prop.js +143 -0
  76. data/assets/bower/jquery/src/attributes/support.js +33 -0
  77. data/assets/bower/jquery/src/attributes/val.js +188 -0
  78. data/assets/bower/jquery/src/callbacks.js +234 -0
  79. data/assets/bower/jquery/src/core.js +482 -0
  80. data/assets/bower/jquery/src/core/DOMEval.js +16 -0
  81. data/assets/bower/jquery/src/core/access.js +70 -0
  82. data/assets/bower/jquery/src/core/init.js +127 -0
  83. data/assets/bower/jquery/src/core/parseHTML.js +65 -0
  84. data/assets/bower/jquery/src/core/ready-no-deferred.js +105 -0
  85. data/assets/bower/jquery/src/core/ready.js +95 -0
  86. data/assets/bower/jquery/src/core/readyException.js +13 -0
  87. data/assets/bower/jquery/src/core/stripAndCollapse.js +14 -0
  88. data/assets/bower/jquery/src/core/support.js +20 -0
  89. data/assets/bower/jquery/src/core/var/rsingleTag.js +6 -0
  90. data/assets/bower/jquery/src/css.js +426 -0
  91. data/assets/bower/jquery/src/css/addGetHookIf.js +26 -0
  92. data/assets/bower/jquery/src/css/adjustCSS.js +71 -0
  93. data/assets/bower/jquery/src/css/curCSS.js +59 -0
  94. data/assets/bower/jquery/src/css/hiddenVisibleSelectors.js +15 -0
  95. data/assets/bower/jquery/src/css/showHide.js +105 -0
  96. data/assets/bower/jquery/src/css/support.js +89 -0
  97. data/assets/bower/jquery/src/css/var/cssExpand.js +5 -0
  98. data/assets/bower/jquery/src/css/var/getStyles.js +17 -0
  99. data/assets/bower/jquery/src/css/var/isHiddenWithinTree.js +34 -0
  100. data/assets/bower/jquery/src/css/var/rmargin.js +5 -0
  101. data/assets/bower/jquery/src/css/var/rnumnonpx.js +7 -0
  102. data/assets/bower/jquery/src/css/var/swap.js +26 -0
  103. data/assets/bower/jquery/src/data.js +179 -0
  104. data/assets/bower/jquery/src/data/Data.js +161 -0
  105. data/assets/bower/jquery/src/data/var/acceptData.js +19 -0
  106. data/assets/bower/jquery/src/data/var/dataPriv.js +7 -0
  107. data/assets/bower/jquery/src/data/var/dataUser.js +7 -0
  108. data/assets/bower/jquery/src/deferred.js +389 -0
  109. data/assets/bower/jquery/src/deferred/exceptionHook.js +21 -0
  110. data/assets/bower/jquery/src/deprecated.js +30 -0
  111. data/assets/bower/jquery/src/dimensions.js +56 -0
  112. data/assets/bower/jquery/src/effects.js +693 -0
  113. data/assets/bower/jquery/src/effects/Tween.js +123 -0
  114. data/assets/bower/jquery/src/effects/animatedSelector.js +15 -0
  115. data/assets/bower/jquery/src/event.js +745 -0
  116. data/assets/bower/jquery/src/event/ajax.js +22 -0
  117. data/assets/bower/jquery/src/event/alias.js +29 -0
  118. data/assets/bower/jquery/src/event/focusin.js +55 -0
  119. data/assets/bower/jquery/src/event/support.js +11 -0
  120. data/assets/bower/jquery/src/event/trigger.js +185 -0
  121. data/assets/bower/jquery/src/exports/amd.js +26 -0
  122. data/assets/bower/jquery/src/exports/global.js +34 -0
  123. data/assets/bower/jquery/src/jquery.js +41 -0
  124. data/assets/bower/jquery/src/manipulation.js +486 -0
  125. data/assets/bower/jquery/src/manipulation/_evalUrl.js +23 -0
  126. data/assets/bower/jquery/src/manipulation/buildFragment.js +104 -0
  127. data/assets/bower/jquery/src/manipulation/getAll.js +31 -0
  128. data/assets/bower/jquery/src/manipulation/setGlobalEval.js +22 -0
  129. data/assets/bower/jquery/src/manipulation/support.js +35 -0
  130. data/assets/bower/jquery/src/manipulation/var/rcheckableType.js +5 -0
  131. data/assets/bower/jquery/src/manipulation/var/rscriptType.js +5 -0
  132. data/assets/bower/jquery/src/manipulation/var/rtagName.js +5 -0
  133. data/assets/bower/jquery/src/manipulation/wrapMap.js +29 -0
  134. data/assets/bower/jquery/src/offset.js +232 -0
  135. data/assets/bower/jquery/src/queue.js +145 -0
  136. data/assets/bower/jquery/src/queue/delay.js +24 -0
  137. data/assets/bower/jquery/src/selector-native.js +237 -0
  138. data/assets/bower/jquery/src/selector-sizzle.js +19 -0
  139. data/assets/bower/jquery/src/selector.js +3 -0
  140. data/assets/bower/jquery/src/serialize.js +130 -0
  141. data/assets/bower/jquery/src/traversing.js +178 -0
  142. data/assets/bower/jquery/src/traversing/findFilter.js +106 -0
  143. data/assets/bower/jquery/src/traversing/var/dir.js +22 -0
  144. data/assets/bower/jquery/src/traversing/var/rneedsContext.js +8 -0
  145. data/assets/bower/jquery/src/traversing/var/siblings.js +17 -0
  146. data/assets/bower/jquery/src/var/ObjectFunctionString.js +7 -0
  147. data/assets/bower/jquery/src/var/arr.js +5 -0
  148. data/assets/bower/jquery/src/var/class2type.js +6 -0
  149. data/assets/bower/jquery/src/var/concat.js +7 -0
  150. data/assets/bower/jquery/src/var/document.js +5 -0
  151. data/assets/bower/jquery/src/var/documentElement.js +7 -0
  152. data/assets/bower/jquery/src/var/fnToString.js +7 -0
  153. data/assets/bower/jquery/src/var/getProto.js +5 -0
  154. data/assets/bower/jquery/src/var/hasOwn.js +7 -0
  155. data/assets/bower/jquery/src/var/indexOf.js +7 -0
  156. data/assets/bower/jquery/src/var/pnum.js +5 -0
  157. data/assets/bower/jquery/src/var/push.js +7 -0
  158. data/assets/bower/jquery/src/var/rcssNum.js +9 -0
  159. data/assets/bower/jquery/src/var/rnothtmlwhite.js +8 -0
  160. data/assets/bower/jquery/src/var/slice.js +7 -0
  161. data/assets/bower/jquery/src/var/support.js +6 -0
  162. data/assets/bower/jquery/src/var/toString.js +7 -0
  163. data/assets/bower/jquery/src/wrap.js +77 -0
  164. data/assets/bower/scrollreveal/.bower.json +36 -0
  165. data/assets/bower/scrollreveal/CHANGELOG.md +268 -0
  166. data/assets/bower/scrollreveal/LICENSE.md +12 -0
  167. data/assets/bower/scrollreveal/README.md +413 -0
  168. data/assets/bower/scrollreveal/bower.json +24 -0
  169. data/assets/bower/scrollreveal/dist/scrollreveal.js +860 -0
  170. data/assets/bower/scrollreveal/dist/scrollreveal.min.js +1 -0
  171. data/assets/bower/turbolinks5/.blade.yml +15 -0
  172. data/assets/bower/turbolinks5/.bower.json +14 -0
  173. data/assets/bower/turbolinks5/.gitignore +2 -0
  174. data/assets/bower/turbolinks5/CONDUCT.md +79 -0
  175. data/assets/bower/turbolinks5/Gemfile +9 -0
  176. data/assets/bower/turbolinks5/LICENSE +20 -0
  177. data/assets/bower/turbolinks5/README.md +435 -0
  178. data/assets/bower/turbolinks5/bin/blade +16 -0
  179. data/assets/bower/turbolinks5/bin/rackup +16 -0
  180. data/assets/bower/turbolinks5/config.ru +8 -0
  181. data/assets/bower/turbolinks5/dist/turbolinks.js +6 -0
  182. data/assets/bower/turbolinks5/package.json +31 -0
  183. data/assets/bower/turbolinks5/src/turbolinks/BANNER.js.erb +4 -0
  184. data/assets/bower/turbolinks5/src/turbolinks/VERSION +1 -0
  185. data/assets/bower/turbolinks5/src/turbolinks/browser_adapter.coffee +61 -0
  186. data/assets/bower/turbolinks5/src/turbolinks/compatibility.coffee +30 -0
  187. data/assets/bower/turbolinks5/src/turbolinks/controller.coffee +239 -0
  188. data/assets/bower/turbolinks5/src/turbolinks/error_renderer.coffee +21 -0
  189. data/assets/bower/turbolinks5/src/turbolinks/head_details.coffee +51 -0
  190. data/assets/bower/turbolinks5/src/turbolinks/helpers.coffee +51 -0
  191. data/assets/bower/turbolinks5/src/turbolinks/history.coffee +46 -0
  192. data/assets/bower/turbolinks5/src/turbolinks/http_request.coffee +88 -0
  193. data/assets/bower/turbolinks5/src/turbolinks/index.coffee +16 -0
  194. data/assets/bower/turbolinks5/src/turbolinks/location.coffee +70 -0
  195. data/assets/bower/turbolinks5/src/turbolinks/progress_bar.coffee +83 -0
  196. data/assets/bower/turbolinks5/src/turbolinks/renderer.coffee +27 -0
  197. data/assets/bower/turbolinks5/src/turbolinks/scroll_manager.coffee +27 -0
  198. data/assets/bower/turbolinks5/src/turbolinks/snapshot.coffee +47 -0
  199. data/assets/bower/turbolinks5/src/turbolinks/snapshot_cache.coffee +43 -0
  200. data/assets/bower/turbolinks5/src/turbolinks/snapshot_renderer.coffee +88 -0
  201. data/assets/bower/turbolinks5/src/turbolinks/start.coffee +18 -0
  202. data/assets/bower/turbolinks5/src/turbolinks/view.coffee +34 -0
  203. data/assets/bower/turbolinks5/src/turbolinks/visit.coffee +162 -0
  204. data/assets/bower/turbolinks5/test/src/fixtures/additional_assets.html +12 -0
  205. data/assets/bower/turbolinks5/test/src/fixtures/body_script.html +18 -0
  206. data/assets/bower/turbolinks5/test/src/fixtures/eval_false_script.html +18 -0
  207. data/assets/bower/turbolinks5/test/src/fixtures/head_script.html +18 -0
  208. data/assets/bower/turbolinks5/test/src/fixtures/navigation.html +21 -0
  209. data/assets/bower/turbolinks5/test/src/fixtures/one.html +12 -0
  210. data/assets/bower/turbolinks5/test/src/fixtures/rendering.html +20 -0
  211. data/assets/bower/turbolinks5/test/src/fixtures/tracked_asset_change.html +11 -0
  212. data/assets/bower/turbolinks5/test/src/fixtures/visit.html +14 -0
  213. data/assets/bower/turbolinks5/test/src/head.html.erb +1 -0
  214. data/assets/bower/turbolinks5/test/src/helpers/replicant_helpers.coffee +18 -0
  215. data/assets/bower/turbolinks5/test/src/modules/navigation_tests.coffee +75 -0
  216. data/assets/bower/turbolinks5/test/src/modules/rendering_tests.coffee +123 -0
  217. data/assets/bower/turbolinks5/test/src/modules/visit_tests.coffee +49 -0
  218. data/assets/bower/turbolinks5/test/src/test.coffee +4 -0
  219. data/assets/bower/turbolinks5/test/src/test.css +20 -0
  220. data/assets/bower/turbolinks5/test/vendor/replicant.js +10 -0
  221. data/assets/fonts/cormorant-garamond/Cormorant-Garamond-700.eot +0 -0
  222. data/assets/fonts/cormorant-garamond/Cormorant-Garamond-700.ttf +0 -0
  223. data/assets/fonts/cormorant-garamond/Cormorant-Garamond-700.woff +0 -0
  224. data/assets/fonts/cormorant-garamond/Cormorant-Garamond-700.woff2 +0 -0
  225. data/assets/fonts/ionicons/ionicons.eot +0 -0
  226. data/assets/fonts/ionicons/ionicons.svg +2232 -0
  227. data/assets/fonts/ionicons/ionicons.ttf +0 -0
  228. data/assets/fonts/ionicons/ionicons.woff +0 -0
  229. data/assets/fonts/lato/Lato-300.eot +0 -0
  230. data/assets/fonts/lato/Lato-300.ttf +0 -0
  231. data/assets/fonts/lato/Lato-300.woff +0 -0
  232. data/assets/fonts/lato/Lato-300.woff2 +0 -0
  233. data/assets/fonts/lato/Lato-700.eot +0 -0
  234. data/assets/fonts/lato/Lato-700.ttf +0 -0
  235. data/assets/fonts/lato/Lato-700.woff +0 -0
  236. data/assets/fonts/lato/Lato-700.woff2 +0 -0
  237. data/assets/fonts/lato/Lato-regular.eot +0 -0
  238. data/assets/fonts/lato/Lato-regular.ttf +0 -0
  239. data/assets/fonts/lato/Lato-regular.woff +0 -0
  240. data/assets/fonts/lato/Lato-regular.woff2 +0 -0
  241. data/assets/images/about.jpg +0 -0
  242. data/assets/images/about@2x.jpg +0 -0
  243. data/assets/images/apple-touch-icon.png +0 -0
  244. data/assets/images/documentation/chalk-intro.png +0 -0
  245. data/assets/images/documentation/chalk-intro@2x.png +0 -0
  246. data/assets/images/documentation/enlarge.gif +0 -0
  247. data/assets/images/documentation/enlarge@2x.gif +0 -0
  248. data/assets/images/documentation/sample-image.jpg +0 -0
  249. data/assets/images/documentation/sample-image@2x.jpg +0 -0
  250. data/assets/images/og-image.jpg +0 -0
  251. data/assets/javascripts/application.js +24 -0
  252. data/assets/javascripts/vendor.js +6 -0
  253. data/assets/javascripts/vendor/jquery-throttle-debounce.js +9 -0
  254. data/assets/javascripts/vendor/retina.js +182 -0
  255. data/assets/stylesheets/.csscomb.json +197 -0
  256. data/assets/stylesheets/.scss-lint.yml +33 -0
  257. data/assets/stylesheets/_base.scss +151 -0
  258. data/assets/stylesheets/_mixins.scss +28 -0
  259. data/assets/stylesheets/_variables.scss +47 -0
  260. data/assets/stylesheets/dark.scss +70 -0
  261. data/assets/stylesheets/fonts.scss +63 -0
  262. data/assets/stylesheets/layouts/_footer.scss +17 -0
  263. data/assets/stylesheets/layouts/_grid.scss +102 -0
  264. data/assets/stylesheets/light.scss +70 -0
  265. data/assets/stylesheets/modules/_about.scss +10 -0
  266. data/assets/stylesheets/modules/_articles.scss +211 -0
  267. data/assets/stylesheets/modules/_embed.scss +31 -0
  268. data/assets/stylesheets/modules/_header.scss +57 -0
  269. data/assets/stylesheets/modules/_highlights-dark.scss +415 -0
  270. data/assets/stylesheets/modules/_highlights-light.scss +409 -0
  271. data/assets/stylesheets/modules/_icons.scss +2967 -0
  272. data/assets/stylesheets/notfound-dark.scss +90 -0
  273. data/assets/stylesheets/notfound-light.scss +90 -0
  274. data/assets/stylesheets/vendor/_normalize.scss +461 -0
  275. metadata +276 -3
@@ -0,0 +1,145 @@
1
+ define( [
2
+ "./core",
3
+ "./data/var/dataPriv",
4
+ "./deferred",
5
+ "./callbacks"
6
+ ], function( jQuery, dataPriv ) {
7
+
8
+ "use strict";
9
+
10
+ jQuery.extend( {
11
+ queue: function( elem, type, data ) {
12
+ var queue;
13
+
14
+ if ( elem ) {
15
+ type = ( type || "fx" ) + "queue";
16
+ queue = dataPriv.get( elem, type );
17
+
18
+ // Speed up dequeue by getting out quickly if this is just a lookup
19
+ if ( data ) {
20
+ if ( !queue || jQuery.isArray( data ) ) {
21
+ queue = dataPriv.access( elem, type, jQuery.makeArray( data ) );
22
+ } else {
23
+ queue.push( data );
24
+ }
25
+ }
26
+ return queue || [];
27
+ }
28
+ },
29
+
30
+ dequeue: function( elem, type ) {
31
+ type = type || "fx";
32
+
33
+ var queue = jQuery.queue( elem, type ),
34
+ startLength = queue.length,
35
+ fn = queue.shift(),
36
+ hooks = jQuery._queueHooks( elem, type ),
37
+ next = function() {
38
+ jQuery.dequeue( elem, type );
39
+ };
40
+
41
+ // If the fx queue is dequeued, always remove the progress sentinel
42
+ if ( fn === "inprogress" ) {
43
+ fn = queue.shift();
44
+ startLength--;
45
+ }
46
+
47
+ if ( fn ) {
48
+
49
+ // Add a progress sentinel to prevent the fx queue from being
50
+ // automatically dequeued
51
+ if ( type === "fx" ) {
52
+ queue.unshift( "inprogress" );
53
+ }
54
+
55
+ // Clear up the last queue stop function
56
+ delete hooks.stop;
57
+ fn.call( elem, next, hooks );
58
+ }
59
+
60
+ if ( !startLength && hooks ) {
61
+ hooks.empty.fire();
62
+ }
63
+ },
64
+
65
+ // Not public - generate a queueHooks object, or return the current one
66
+ _queueHooks: function( elem, type ) {
67
+ var key = type + "queueHooks";
68
+ return dataPriv.get( elem, key ) || dataPriv.access( elem, key, {
69
+ empty: jQuery.Callbacks( "once memory" ).add( function() {
70
+ dataPriv.remove( elem, [ type + "queue", key ] );
71
+ } )
72
+ } );
73
+ }
74
+ } );
75
+
76
+ jQuery.fn.extend( {
77
+ queue: function( type, data ) {
78
+ var setter = 2;
79
+
80
+ if ( typeof type !== "string" ) {
81
+ data = type;
82
+ type = "fx";
83
+ setter--;
84
+ }
85
+
86
+ if ( arguments.length < setter ) {
87
+ return jQuery.queue( this[ 0 ], type );
88
+ }
89
+
90
+ return data === undefined ?
91
+ this :
92
+ this.each( function() {
93
+ var queue = jQuery.queue( this, type, data );
94
+
95
+ // Ensure a hooks for this queue
96
+ jQuery._queueHooks( this, type );
97
+
98
+ if ( type === "fx" && queue[ 0 ] !== "inprogress" ) {
99
+ jQuery.dequeue( this, type );
100
+ }
101
+ } );
102
+ },
103
+ dequeue: function( type ) {
104
+ return this.each( function() {
105
+ jQuery.dequeue( this, type );
106
+ } );
107
+ },
108
+ clearQueue: function( type ) {
109
+ return this.queue( type || "fx", [] );
110
+ },
111
+
112
+ // Get a promise resolved when queues of a certain type
113
+ // are emptied (fx is the type by default)
114
+ promise: function( type, obj ) {
115
+ var tmp,
116
+ count = 1,
117
+ defer = jQuery.Deferred(),
118
+ elements = this,
119
+ i = this.length,
120
+ resolve = function() {
121
+ if ( !( --count ) ) {
122
+ defer.resolveWith( elements, [ elements ] );
123
+ }
124
+ };
125
+
126
+ if ( typeof type !== "string" ) {
127
+ obj = type;
128
+ type = undefined;
129
+ }
130
+ type = type || "fx";
131
+
132
+ while ( i-- ) {
133
+ tmp = dataPriv.get( elements[ i ], type + "queueHooks" );
134
+ if ( tmp && tmp.empty ) {
135
+ count++;
136
+ tmp.empty.add( resolve );
137
+ }
138
+ }
139
+ resolve();
140
+ return defer.promise( obj );
141
+ }
142
+ } );
143
+
144
+ return jQuery;
145
+ } );
@@ -0,0 +1,24 @@
1
+ define( [
2
+ "../core",
3
+ "../queue",
4
+ "../effects" // Delay is optional because of this dependency
5
+ ], function( jQuery ) {
6
+
7
+ "use strict";
8
+
9
+ // Based off of the plugin by Clint Helfers, with permission.
10
+ // https://web.archive.org/web/20100324014747/http://blindsignals.com/index.php/2009/07/jquery-delay/
11
+ jQuery.fn.delay = function( time, type ) {
12
+ time = jQuery.fx ? jQuery.fx.speeds[ time ] || time : time;
13
+ type = type || "fx";
14
+
15
+ return this.queue( type, function( next, hooks ) {
16
+ var timeout = window.setTimeout( next, time );
17
+ hooks.stop = function() {
18
+ window.clearTimeout( timeout );
19
+ };
20
+ } );
21
+ };
22
+
23
+ return jQuery.fn.delay;
24
+ } );
@@ -0,0 +1,237 @@
1
+ define( [
2
+ "./core",
3
+ "./var/document",
4
+ "./var/documentElement",
5
+ "./var/hasOwn",
6
+ "./var/indexOf"
7
+ ], function( jQuery, document, documentElement, hasOwn, indexOf ) {
8
+
9
+ "use strict";
10
+
11
+ /*
12
+ * Optional (non-Sizzle) selector module for custom builds.
13
+ *
14
+ * Note that this DOES NOT SUPPORT many documented jQuery
15
+ * features in exchange for its smaller size:
16
+ *
17
+ * Attribute not equal selector
18
+ * Positional selectors (:first; :eq(n); :odd; etc.)
19
+ * Type selectors (:input; :checkbox; :button; etc.)
20
+ * State-based selectors (:animated; :visible; :hidden; etc.)
21
+ * :has(selector)
22
+ * :not(complex selector)
23
+ * custom selectors via Sizzle extensions
24
+ * Leading combinators (e.g., $collection.find("> *"))
25
+ * Reliable functionality on XML fragments
26
+ * Requiring all parts of a selector to match elements under context
27
+ * (e.g., $div.find("div > *") now matches children of $div)
28
+ * Matching against non-elements
29
+ * Reliable sorting of disconnected nodes
30
+ * querySelectorAll bug fixes (e.g., unreliable :focus on WebKit)
31
+ *
32
+ * If any of these are unacceptable tradeoffs, either use Sizzle or
33
+ * customize this stub for the project's specific needs.
34
+ */
35
+
36
+ var hasDuplicate, sortInput,
37
+ sortStable = jQuery.expando.split( "" ).sort( sortOrder ).join( "" ) === jQuery.expando,
38
+ matches = documentElement.matches ||
39
+ documentElement.webkitMatchesSelector ||
40
+ documentElement.mozMatchesSelector ||
41
+ documentElement.oMatchesSelector ||
42
+ documentElement.msMatchesSelector,
43
+
44
+ // CSS string/identifier serialization
45
+ // https://drafts.csswg.org/cssom/#common-serializing-idioms
46
+ rcssescape = /([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g,
47
+ fcssescape = function( ch, asCodePoint ) {
48
+ if ( asCodePoint ) {
49
+
50
+ // U+0000 NULL becomes U+FFFD REPLACEMENT CHARACTER
51
+ if ( ch === "\0" ) {
52
+ return "\uFFFD";
53
+ }
54
+
55
+ // Control characters and (dependent upon position) numbers get escaped as code points
56
+ return ch.slice( 0, -1 ) + "\\" + ch.charCodeAt( ch.length - 1 ).toString( 16 ) + " ";
57
+ }
58
+
59
+ // Other potentially-special ASCII characters get backslash-escaped
60
+ return "\\" + ch;
61
+ };
62
+
63
+ function sortOrder( a, b ) {
64
+
65
+ // Flag for duplicate removal
66
+ if ( a === b ) {
67
+ hasDuplicate = true;
68
+ return 0;
69
+ }
70
+
71
+ // Sort on method existence if only one input has compareDocumentPosition
72
+ var compare = !a.compareDocumentPosition - !b.compareDocumentPosition;
73
+ if ( compare ) {
74
+ return compare;
75
+ }
76
+
77
+ // Calculate position if both inputs belong to the same document
78
+ compare = ( a.ownerDocument || a ) === ( b.ownerDocument || b ) ?
79
+ a.compareDocumentPosition( b ) :
80
+
81
+ // Otherwise we know they are disconnected
82
+ 1;
83
+
84
+ // Disconnected nodes
85
+ if ( compare & 1 ) {
86
+
87
+ // Choose the first element that is related to our preferred document
88
+ if ( a === document || a.ownerDocument === document &&
89
+ jQuery.contains( document, a ) ) {
90
+ return -1;
91
+ }
92
+ if ( b === document || b.ownerDocument === document &&
93
+ jQuery.contains( document, b ) ) {
94
+ return 1;
95
+ }
96
+
97
+ // Maintain original order
98
+ return sortInput ?
99
+ ( indexOf.call( sortInput, a ) - indexOf.call( sortInput, b ) ) :
100
+ 0;
101
+ }
102
+
103
+ return compare & 4 ? -1 : 1;
104
+ }
105
+
106
+ function uniqueSort( results ) {
107
+ var elem,
108
+ duplicates = [],
109
+ j = 0,
110
+ i = 0;
111
+
112
+ hasDuplicate = false;
113
+ sortInput = !sortStable && results.slice( 0 );
114
+ results.sort( sortOrder );
115
+
116
+ if ( hasDuplicate ) {
117
+ while ( ( elem = results[ i++ ] ) ) {
118
+ if ( elem === results[ i ] ) {
119
+ j = duplicates.push( i );
120
+ }
121
+ }
122
+ while ( j-- ) {
123
+ results.splice( duplicates[ j ], 1 );
124
+ }
125
+ }
126
+
127
+ // Clear input after sorting to release objects
128
+ // See https://github.com/jquery/sizzle/pull/225
129
+ sortInput = null;
130
+
131
+ return results;
132
+ }
133
+
134
+ function escape( sel ) {
135
+ return ( sel + "" ).replace( rcssescape, fcssescape );
136
+ }
137
+
138
+ jQuery.extend( {
139
+ uniqueSort: uniqueSort,
140
+ unique: uniqueSort,
141
+ escapeSelector: escape,
142
+ find: function( selector, context, results, seed ) {
143
+ var elem, nodeType,
144
+ i = 0;
145
+
146
+ results = results || [];
147
+ context = context || document;
148
+
149
+ // Same basic safeguard as Sizzle
150
+ if ( !selector || typeof selector !== "string" ) {
151
+ return results;
152
+ }
153
+
154
+ // Early return if context is not an element or document
155
+ if ( ( nodeType = context.nodeType ) !== 1 && nodeType !== 9 ) {
156
+ return [];
157
+ }
158
+
159
+ if ( seed ) {
160
+ while ( ( elem = seed[ i++ ] ) ) {
161
+ if ( jQuery.find.matchesSelector( elem, selector ) ) {
162
+ results.push( elem );
163
+ }
164
+ }
165
+ } else {
166
+ jQuery.merge( results, context.querySelectorAll( selector ) );
167
+ }
168
+
169
+ return results;
170
+ },
171
+ text: function( elem ) {
172
+ var node,
173
+ ret = "",
174
+ i = 0,
175
+ nodeType = elem.nodeType;
176
+
177
+ if ( !nodeType ) {
178
+
179
+ // If no nodeType, this is expected to be an array
180
+ while ( ( node = elem[ i++ ] ) ) {
181
+
182
+ // Do not traverse comment nodes
183
+ ret += jQuery.text( node );
184
+ }
185
+ } else if ( nodeType === 1 || nodeType === 9 || nodeType === 11 ) {
186
+
187
+ // Use textContent for elements
188
+ return elem.textContent;
189
+ } else if ( nodeType === 3 || nodeType === 4 ) {
190
+ return elem.nodeValue;
191
+ }
192
+
193
+ // Do not include comment or processing instruction nodes
194
+
195
+ return ret;
196
+ },
197
+ contains: function( a, b ) {
198
+ var adown = a.nodeType === 9 ? a.documentElement : a,
199
+ bup = b && b.parentNode;
200
+ return a === bup || !!( bup && bup.nodeType === 1 && adown.contains( bup ) );
201
+ },
202
+ isXMLDoc: function( elem ) {
203
+
204
+ // documentElement is verified for cases where it doesn't yet exist
205
+ // (such as loading iframes in IE - #4833)
206
+ var documentElement = elem && ( elem.ownerDocument || elem ).documentElement;
207
+ return documentElement ? documentElement.nodeName !== "HTML" : false;
208
+ },
209
+ expr: {
210
+ attrHandle: {},
211
+ match: {
212
+ bool: new RegExp( "^(?:checked|selected|async|autofocus|autoplay|controls|defer" +
213
+ "|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped)$", "i" ),
214
+ needsContext: /^[\x20\t\r\n\f]*[>+~]/
215
+ }
216
+ }
217
+ } );
218
+
219
+ jQuery.extend( jQuery.find, {
220
+ matches: function( expr, elements ) {
221
+ return jQuery.find( expr, null, null, elements );
222
+ },
223
+ matchesSelector: function( elem, expr ) {
224
+ return matches.call( elem, expr );
225
+ },
226
+ attr: function( elem, name ) {
227
+ var fn = jQuery.expr.attrHandle[ name.toLowerCase() ],
228
+
229
+ // Don't get fooled by Object.prototype properties (jQuery #13807)
230
+ value = fn && hasOwn.call( jQuery.expr.attrHandle, name.toLowerCase() ) ?
231
+ fn( elem, name, jQuery.isXMLDoc( elem ) ) :
232
+ undefined;
233
+ return value !== undefined ? value : elem.getAttribute( name );
234
+ }
235
+ } );
236
+
237
+ } );
@@ -0,0 +1,19 @@
1
+ define( [
2
+ "./core",
3
+ "../external/sizzle/dist/sizzle"
4
+ ], function( jQuery, Sizzle ) {
5
+
6
+ "use strict";
7
+
8
+ jQuery.find = Sizzle;
9
+ jQuery.expr = Sizzle.selectors;
10
+
11
+ // Deprecated
12
+ jQuery.expr[ ":" ] = jQuery.expr.pseudos;
13
+ jQuery.uniqueSort = jQuery.unique = Sizzle.uniqueSort;
14
+ jQuery.text = Sizzle.getText;
15
+ jQuery.isXMLDoc = Sizzle.isXML;
16
+ jQuery.contains = Sizzle.contains;
17
+ jQuery.escapeSelector = Sizzle.escape;
18
+
19
+ } );
@@ -0,0 +1,3 @@
1
+ define( [ "./selector-sizzle" ], function() {
2
+ "use strict";
3
+ } );
@@ -0,0 +1,130 @@
1
+ define( [
2
+ "./core",
3
+ "./manipulation/var/rcheckableType",
4
+ "./core/init",
5
+ "./traversing", // filter
6
+ "./attributes/prop"
7
+ ], function( jQuery, rcheckableType ) {
8
+
9
+ "use strict";
10
+
11
+ var
12
+ rbracket = /\[\]$/,
13
+ rCRLF = /\r?\n/g,
14
+ rsubmitterTypes = /^(?:submit|button|image|reset|file)$/i,
15
+ rsubmittable = /^(?:input|select|textarea|keygen)/i;
16
+
17
+ function buildParams( prefix, obj, traditional, add ) {
18
+ var name;
19
+
20
+ if ( jQuery.isArray( obj ) ) {
21
+
22
+ // Serialize array item.
23
+ jQuery.each( obj, function( i, v ) {
24
+ if ( traditional || rbracket.test( prefix ) ) {
25
+
26
+ // Treat each array item as a scalar.
27
+ add( prefix, v );
28
+
29
+ } else {
30
+
31
+ // Item is non-scalar (array or object), encode its numeric index.
32
+ buildParams(
33
+ prefix + "[" + ( typeof v === "object" && v != null ? i : "" ) + "]",
34
+ v,
35
+ traditional,
36
+ add
37
+ );
38
+ }
39
+ } );
40
+
41
+ } else if ( !traditional && jQuery.type( obj ) === "object" ) {
42
+
43
+ // Serialize object item.
44
+ for ( name in obj ) {
45
+ buildParams( prefix + "[" + name + "]", obj[ name ], traditional, add );
46
+ }
47
+
48
+ } else {
49
+
50
+ // Serialize scalar item.
51
+ add( prefix, obj );
52
+ }
53
+ }
54
+
55
+ // Serialize an array of form elements or a set of
56
+ // key/values into a query string
57
+ jQuery.param = function( a, traditional ) {
58
+ var prefix,
59
+ s = [],
60
+ add = function( key, valueOrFunction ) {
61
+
62
+ // If value is a function, invoke it and use its return value
63
+ var value = jQuery.isFunction( valueOrFunction ) ?
64
+ valueOrFunction() :
65
+ valueOrFunction;
66
+
67
+ s[ s.length ] = encodeURIComponent( key ) + "=" +
68
+ encodeURIComponent( value == null ? "" : value );
69
+ };
70
+
71
+ // If an array was passed in, assume that it is an array of form elements.
72
+ if ( jQuery.isArray( a ) || ( a.jquery && !jQuery.isPlainObject( a ) ) ) {
73
+
74
+ // Serialize the form elements
75
+ jQuery.each( a, function() {
76
+ add( this.name, this.value );
77
+ } );
78
+
79
+ } else {
80
+
81
+ // If traditional, encode the "old" way (the way 1.3.2 or older
82
+ // did it), otherwise encode params recursively.
83
+ for ( prefix in a ) {
84
+ buildParams( prefix, a[ prefix ], traditional, add );
85
+ }
86
+ }
87
+
88
+ // Return the resulting serialization
89
+ return s.join( "&" );
90
+ };
91
+
92
+ jQuery.fn.extend( {
93
+ serialize: function() {
94
+ return jQuery.param( this.serializeArray() );
95
+ },
96
+ serializeArray: function() {
97
+ return this.map( function() {
98
+
99
+ // Can add propHook for "elements" to filter or add form elements
100
+ var elements = jQuery.prop( this, "elements" );
101
+ return elements ? jQuery.makeArray( elements ) : this;
102
+ } )
103
+ .filter( function() {
104
+ var type = this.type;
105
+
106
+ // Use .is( ":disabled" ) so that fieldset[disabled] works
107
+ return this.name && !jQuery( this ).is( ":disabled" ) &&
108
+ rsubmittable.test( this.nodeName ) && !rsubmitterTypes.test( type ) &&
109
+ ( this.checked || !rcheckableType.test( type ) );
110
+ } )
111
+ .map( function( i, elem ) {
112
+ var val = jQuery( this ).val();
113
+
114
+ if ( val == null ) {
115
+ return null;
116
+ }
117
+
118
+ if ( jQuery.isArray( val ) ) {
119
+ return jQuery.map( val, function( val ) {
120
+ return { name: elem.name, value: val.replace( rCRLF, "\r\n" ) };
121
+ } );
122
+ }
123
+
124
+ return { name: elem.name, value: val.replace( rCRLF, "\r\n" ) };
125
+ } ).get();
126
+ }
127
+ } );
128
+
129
+ return jQuery;
130
+ } );