link-checker 0.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (348) hide show
  1. data/.rvmrc +81 -0
  2. data/Gemfile +12 -0
  3. data/Gemfile.lock +56 -0
  4. data/LICENSE.txt +20 -0
  5. data/README.md +15 -0
  6. data/Rakefile +29 -0
  7. data/VERSION +1 -0
  8. data/bin/check-links +8 -0
  9. data/lib/link_checker.rb +80 -0
  10. data/link-checker.gemspec +404 -0
  11. data/spec/link-checker_spec.rb +92 -0
  12. data/spec/spec_helper.rb +4 -0
  13. data/spec/test-site/.gitignore +12 -0
  14. data/spec/test-site/.powrc +5 -0
  15. data/spec/test-site/.rbenv-version +1 -0
  16. data/spec/test-site/.rvmrc +1 -0
  17. data/spec/test-site/.slugignore +3 -0
  18. data/spec/test-site/.themes/classic/sass/_base.scss +5 -0
  19. data/spec/test-site/.themes/classic/sass/_partials.scss +8 -0
  20. data/spec/test-site/.themes/classic/sass/base/_layout.scss +192 -0
  21. data/spec/test-site/.themes/classic/sass/base/_solarized.scss +46 -0
  22. data/spec/test-site/.themes/classic/sass/base/_theme.scss +86 -0
  23. data/spec/test-site/.themes/classic/sass/base/_typography.scss +161 -0
  24. data/spec/test-site/.themes/classic/sass/base/_utilities.scss +28 -0
  25. data/spec/test-site/.themes/classic/sass/custom/_colors.scss +43 -0
  26. data/spec/test-site/.themes/classic/sass/custom/_fonts.scss +10 -0
  27. data/spec/test-site/.themes/classic/sass/custom/_layout.scss +21 -0
  28. data/spec/test-site/.themes/classic/sass/custom/_styles.scss +2 -0
  29. data/spec/test-site/.themes/classic/sass/partials/_archive.scss +72 -0
  30. data/spec/test-site/.themes/classic/sass/partials/_blog.scss +141 -0
  31. data/spec/test-site/.themes/classic/sass/partials/_footer.scss +19 -0
  32. data/spec/test-site/.themes/classic/sass/partials/_header.scss +18 -0
  33. data/spec/test-site/.themes/classic/sass/partials/_navigation.scss +137 -0
  34. data/spec/test-site/.themes/classic/sass/partials/_sharing.scss +8 -0
  35. data/spec/test-site/.themes/classic/sass/partials/_sidebar.scss +5 -0
  36. data/spec/test-site/.themes/classic/sass/partials/_syntax.scss +253 -0
  37. data/spec/test-site/.themes/classic/sass/partials/sidebar/_base.scss +106 -0
  38. data/spec/test-site/.themes/classic/sass/partials/sidebar/_delicious.scss +4 -0
  39. data/spec/test-site/.themes/classic/sass/partials/sidebar/_googleplus.scss +26 -0
  40. data/spec/test-site/.themes/classic/sass/partials/sidebar/_pinboard.scss +12 -0
  41. data/spec/test-site/.themes/classic/sass/partials/sidebar/_twitter.scss +34 -0
  42. data/spec/test-site/.themes/classic/sass/screen.scss +10 -0
  43. data/spec/test-site/.themes/classic/source/_includes/after_footer.html +5 -0
  44. data/spec/test-site/.themes/classic/source/_includes/archive_post.html +8 -0
  45. data/spec/test-site/.themes/classic/source/_includes/article.html +28 -0
  46. data/spec/test-site/.themes/classic/source/_includes/asides/delicious.html +8 -0
  47. data/spec/test-site/.themes/classic/source/_includes/asides/github.html +30 -0
  48. data/spec/test-site/.themes/classic/source/_includes/asides/googleplus.html +11 -0
  49. data/spec/test-site/.themes/classic/source/_includes/asides/pinboard.html +19 -0
  50. data/spec/test-site/.themes/classic/source/_includes/asides/recent_posts.html +10 -0
  51. data/spec/test-site/.themes/classic/source/_includes/asides/twitter.html +19 -0
  52. data/spec/test-site/.themes/classic/source/_includes/custom/after_footer.html +3 -0
  53. data/spec/test-site/.themes/classic/source/_includes/custom/asides/about.html +4 -0
  54. data/spec/test-site/.themes/classic/source/_includes/custom/category_feed.xml +27 -0
  55. data/spec/test-site/.themes/classic/source/_includes/custom/footer.html +4 -0
  56. data/spec/test-site/.themes/classic/source/_includes/custom/head.html +3 -0
  57. data/spec/test-site/.themes/classic/source/_includes/custom/header.html +6 -0
  58. data/spec/test-site/.themes/classic/source/_includes/custom/navigation.html +4 -0
  59. data/spec/test-site/.themes/classic/source/_includes/disqus.html +21 -0
  60. data/spec/test-site/.themes/classic/source/_includes/facebook_like.html +10 -0
  61. data/spec/test-site/.themes/classic/source/_includes/footer.html +1 -0
  62. data/spec/test-site/.themes/classic/source/_includes/google_analytics.html +13 -0
  63. data/spec/test-site/.themes/classic/source/_includes/google_plus_one.html +9 -0
  64. data/spec/test-site/.themes/classic/source/_includes/head.html +29 -0
  65. data/spec/test-site/.themes/classic/source/_includes/header.html +1 -0
  66. data/spec/test-site/.themes/classic/source/_includes/navigation.html +15 -0
  67. data/spec/test-site/.themes/classic/source/_includes/post/author.html +8 -0
  68. data/spec/test-site/.themes/classic/source/_includes/post/categories.html +10 -0
  69. data/spec/test-site/.themes/classic/source/_includes/post/date.html +15 -0
  70. data/spec/test-site/.themes/classic/source/_includes/post/disqus_thread.html +1 -0
  71. data/spec/test-site/.themes/classic/source/_includes/post/sharing.html +11 -0
  72. data/spec/test-site/.themes/classic/source/_includes/twitter_sharing.html +11 -0
  73. data/spec/test-site/.themes/classic/source/_layouts/category_index.html +17 -0
  74. data/spec/test-site/.themes/classic/source/_layouts/default.html +14 -0
  75. data/spec/test-site/.themes/classic/source/_layouts/page.html +42 -0
  76. data/spec/test-site/.themes/classic/source/_layouts/post.html +43 -0
  77. data/spec/test-site/.themes/classic/source/assets/jwplayer/glow/controlbar/background.png +0 -0
  78. data/spec/test-site/.themes/classic/source/assets/jwplayer/glow/controlbar/blankButton.png +0 -0
  79. data/spec/test-site/.themes/classic/source/assets/jwplayer/glow/controlbar/divider.png +0 -0
  80. data/spec/test-site/.themes/classic/source/assets/jwplayer/glow/controlbar/fullscreenButton.png +0 -0
  81. data/spec/test-site/.themes/classic/source/assets/jwplayer/glow/controlbar/fullscreenButtonOver.png +0 -0
  82. data/spec/test-site/.themes/classic/source/assets/jwplayer/glow/controlbar/muteButton.png +0 -0
  83. data/spec/test-site/.themes/classic/source/assets/jwplayer/glow/controlbar/muteButtonOver.png +0 -0
  84. data/spec/test-site/.themes/classic/source/assets/jwplayer/glow/controlbar/normalscreenButton.png +0 -0
  85. data/spec/test-site/.themes/classic/source/assets/jwplayer/glow/controlbar/normalscreenButtonOver.png +0 -0
  86. data/spec/test-site/.themes/classic/source/assets/jwplayer/glow/controlbar/pauseButton.png +0 -0
  87. data/spec/test-site/.themes/classic/source/assets/jwplayer/glow/controlbar/pauseButtonOver.png +0 -0
  88. data/spec/test-site/.themes/classic/source/assets/jwplayer/glow/controlbar/playButton.png +0 -0
  89. data/spec/test-site/.themes/classic/source/assets/jwplayer/glow/controlbar/playButtonOver.png +0 -0
  90. data/spec/test-site/.themes/classic/source/assets/jwplayer/glow/controlbar/timeSliderBuffer.png +0 -0
  91. data/spec/test-site/.themes/classic/source/assets/jwplayer/glow/controlbar/timeSliderCapLeft.png +0 -0
  92. data/spec/test-site/.themes/classic/source/assets/jwplayer/glow/controlbar/timeSliderCapRight.png +0 -0
  93. data/spec/test-site/.themes/classic/source/assets/jwplayer/glow/controlbar/timeSliderProgress.png +0 -0
  94. data/spec/test-site/.themes/classic/source/assets/jwplayer/glow/controlbar/timeSliderRail.png +0 -0
  95. data/spec/test-site/.themes/classic/source/assets/jwplayer/glow/controlbar/unmuteButton.png +0 -0
  96. data/spec/test-site/.themes/classic/source/assets/jwplayer/glow/controlbar/unmuteButtonOver.png +0 -0
  97. data/spec/test-site/.themes/classic/source/assets/jwplayer/glow/display/background.png +0 -0
  98. data/spec/test-site/.themes/classic/source/assets/jwplayer/glow/display/bufferIcon.png +0 -0
  99. data/spec/test-site/.themes/classic/source/assets/jwplayer/glow/display/muteIcon.png +0 -0
  100. data/spec/test-site/.themes/classic/source/assets/jwplayer/glow/display/playIcon.png +0 -0
  101. data/spec/test-site/.themes/classic/source/assets/jwplayer/glow/dock/button.png +0 -0
  102. data/spec/test-site/.themes/classic/source/assets/jwplayer/glow/glow.xml +115 -0
  103. data/spec/test-site/.themes/classic/source/assets/jwplayer/glow/playlist/item.png +0 -0
  104. data/spec/test-site/.themes/classic/source/assets/jwplayer/glow/playlist/itemOver.png +0 -0
  105. data/spec/test-site/.themes/classic/source/assets/jwplayer/glow/playlist/sliderCapBottom.png +0 -0
  106. data/spec/test-site/.themes/classic/source/assets/jwplayer/glow/playlist/sliderCapTop.png +0 -0
  107. data/spec/test-site/.themes/classic/source/assets/jwplayer/glow/playlist/sliderRail.png +0 -0
  108. data/spec/test-site/.themes/classic/source/assets/jwplayer/glow/playlist/sliderThumb.png +0 -0
  109. data/spec/test-site/.themes/classic/source/assets/jwplayer/glow/sharing/embedIcon.png +0 -0
  110. data/spec/test-site/.themes/classic/source/assets/jwplayer/glow/sharing/embedScreen.png +0 -0
  111. data/spec/test-site/.themes/classic/source/assets/jwplayer/glow/sharing/shareIcon.png +0 -0
  112. data/spec/test-site/.themes/classic/source/assets/jwplayer/glow/sharing/shareScreen.png +0 -0
  113. data/spec/test-site/.themes/classic/source/assets/jwplayer/player.swf +0 -0
  114. data/spec/test-site/.themes/classic/source/atom.xml +27 -0
  115. data/spec/test-site/.themes/classic/source/blog/archives/index.html +18 -0
  116. data/spec/test-site/.themes/classic/source/favicon.png +0 -0
  117. data/spec/test-site/.themes/classic/source/images/bird_32_gray.png +0 -0
  118. data/spec/test-site/.themes/classic/source/images/bird_32_gray_fail.png +0 -0
  119. data/spec/test-site/.themes/classic/source/images/code_bg.png +0 -0
  120. data/spec/test-site/.themes/classic/source/images/dotted-border.png +0 -0
  121. data/spec/test-site/.themes/classic/source/images/email.png +0 -0
  122. data/spec/test-site/.themes/classic/source/images/line-tile.png +0 -0
  123. data/spec/test-site/.themes/classic/source/images/noise.png +0 -0
  124. data/spec/test-site/.themes/classic/source/images/rss.png +0 -0
  125. data/spec/test-site/.themes/classic/source/images/search.png +0 -0
  126. data/spec/test-site/.themes/classic/source/index.html +29 -0
  127. data/spec/test-site/.themes/classic/source/javascripts/ender.js +45 -0
  128. data/spec/test-site/.themes/classic/source/javascripts/github.js +37 -0
  129. data/spec/test-site/.themes/classic/source/javascripts/libs/ender.js +1497 -0
  130. data/spec/test-site/.themes/classic/source/javascripts/libs/jXHR.js +85 -0
  131. data/spec/test-site/.themes/classic/source/javascripts/libs/swfobject-dynamic.js +298 -0
  132. data/spec/test-site/.themes/classic/source/javascripts/modernizr-2.0.js +5 -0
  133. data/spec/test-site/.themes/classic/source/javascripts/octopress.js +161 -0
  134. data/spec/test-site/.themes/classic/source/javascripts/pinboard.js +56 -0
  135. data/spec/test-site/.themes/classic/source/javascripts/twitter.js +78 -0
  136. data/spec/test-site/CHANGELOG.markdown +29 -0
  137. data/spec/test-site/Gemfile +18 -0
  138. data/spec/test-site/Gemfile.lock +69 -0
  139. data/spec/test-site/README.markdown +36 -0
  140. data/spec/test-site/Rakefile +379 -0
  141. data/spec/test-site/_config.yml +99 -0
  142. data/spec/test-site/config.rb +16 -0
  143. data/spec/test-site/config.ru +25 -0
  144. data/spec/test-site/plugins/backtick_code_block.rb +43 -0
  145. data/spec/test-site/plugins/blockquote.rb +83 -0
  146. data/spec/test-site/plugins/category_generator.rb +174 -0
  147. data/spec/test-site/plugins/code_block.rb +98 -0
  148. data/spec/test-site/plugins/date.rb +98 -0
  149. data/spec/test-site/plugins/gist_tag.rb +100 -0
  150. data/spec/test-site/plugins/haml.rb +24 -0
  151. data/spec/test-site/plugins/image_tag.rb +50 -0
  152. data/spec/test-site/plugins/include_array.rb +58 -0
  153. data/spec/test-site/plugins/include_code.rb +73 -0
  154. data/spec/test-site/plugins/jsfiddle.rb +40 -0
  155. data/spec/test-site/plugins/octopress_filters.rb +135 -0
  156. data/spec/test-site/plugins/pagination.rb +121 -0
  157. data/spec/test-site/plugins/post_filters.rb +176 -0
  158. data/spec/test-site/plugins/preview_unpublished.rb +48 -0
  159. data/spec/test-site/plugins/pullquote.rb +45 -0
  160. data/spec/test-site/plugins/pygments_code.rb +41 -0
  161. data/spec/test-site/plugins/raw.rb +40 -0
  162. data/spec/test-site/plugins/render_partial.rb +69 -0
  163. data/spec/test-site/plugins/rubypants.rb +489 -0
  164. data/spec/test-site/plugins/sitemap_generator.rb +312 -0
  165. data/spec/test-site/plugins/titlecase.rb +36 -0
  166. data/spec/test-site/plugins/video_tag.rb +47 -0
  167. data/spec/test-site/public/assets/jwplayer/glow/controlbar/background.png +0 -0
  168. data/spec/test-site/public/assets/jwplayer/glow/controlbar/blankButton.png +0 -0
  169. data/spec/test-site/public/assets/jwplayer/glow/controlbar/divider.png +0 -0
  170. data/spec/test-site/public/assets/jwplayer/glow/controlbar/fullscreenButton.png +0 -0
  171. data/spec/test-site/public/assets/jwplayer/glow/controlbar/fullscreenButtonOver.png +0 -0
  172. data/spec/test-site/public/assets/jwplayer/glow/controlbar/muteButton.png +0 -0
  173. data/spec/test-site/public/assets/jwplayer/glow/controlbar/muteButtonOver.png +0 -0
  174. data/spec/test-site/public/assets/jwplayer/glow/controlbar/normalscreenButton.png +0 -0
  175. data/spec/test-site/public/assets/jwplayer/glow/controlbar/normalscreenButtonOver.png +0 -0
  176. data/spec/test-site/public/assets/jwplayer/glow/controlbar/pauseButton.png +0 -0
  177. data/spec/test-site/public/assets/jwplayer/glow/controlbar/pauseButtonOver.png +0 -0
  178. data/spec/test-site/public/assets/jwplayer/glow/controlbar/playButton.png +0 -0
  179. data/spec/test-site/public/assets/jwplayer/glow/controlbar/playButtonOver.png +0 -0
  180. data/spec/test-site/public/assets/jwplayer/glow/controlbar/timeSliderBuffer.png +0 -0
  181. data/spec/test-site/public/assets/jwplayer/glow/controlbar/timeSliderCapLeft.png +0 -0
  182. data/spec/test-site/public/assets/jwplayer/glow/controlbar/timeSliderCapRight.png +0 -0
  183. data/spec/test-site/public/assets/jwplayer/glow/controlbar/timeSliderProgress.png +0 -0
  184. data/spec/test-site/public/assets/jwplayer/glow/controlbar/timeSliderRail.png +0 -0
  185. data/spec/test-site/public/assets/jwplayer/glow/controlbar/unmuteButton.png +0 -0
  186. data/spec/test-site/public/assets/jwplayer/glow/controlbar/unmuteButtonOver.png +0 -0
  187. data/spec/test-site/public/assets/jwplayer/glow/display/background.png +0 -0
  188. data/spec/test-site/public/assets/jwplayer/glow/display/bufferIcon.png +0 -0
  189. data/spec/test-site/public/assets/jwplayer/glow/display/muteIcon.png +0 -0
  190. data/spec/test-site/public/assets/jwplayer/glow/display/playIcon.png +0 -0
  191. data/spec/test-site/public/assets/jwplayer/glow/dock/button.png +0 -0
  192. data/spec/test-site/public/assets/jwplayer/glow/glow.xml +115 -0
  193. data/spec/test-site/public/assets/jwplayer/glow/playlist/item.png +0 -0
  194. data/spec/test-site/public/assets/jwplayer/glow/playlist/itemOver.png +0 -0
  195. data/spec/test-site/public/assets/jwplayer/glow/playlist/sliderCapBottom.png +0 -0
  196. data/spec/test-site/public/assets/jwplayer/glow/playlist/sliderCapTop.png +0 -0
  197. data/spec/test-site/public/assets/jwplayer/glow/playlist/sliderRail.png +0 -0
  198. data/spec/test-site/public/assets/jwplayer/glow/playlist/sliderThumb.png +0 -0
  199. data/spec/test-site/public/assets/jwplayer/glow/sharing/embedIcon.png +0 -0
  200. data/spec/test-site/public/assets/jwplayer/glow/sharing/embedScreen.png +0 -0
  201. data/spec/test-site/public/assets/jwplayer/glow/sharing/shareIcon.png +0 -0
  202. data/spec/test-site/public/assets/jwplayer/glow/sharing/shareScreen.png +0 -0
  203. data/spec/test-site/public/assets/jwplayer/player.swf +0 -0
  204. data/spec/test-site/public/atom.xml +27 -0
  205. data/spec/test-site/public/blog/2012/10/02/a-list-of-links/index.html +196 -0
  206. data/spec/test-site/public/blog/archives/index.html +149 -0
  207. data/spec/test-site/public/favicon.png +0 -0
  208. data/spec/test-site/public/images/bird_32_gray.png +0 -0
  209. data/spec/test-site/public/images/bird_32_gray_fail.png +0 -0
  210. data/spec/test-site/public/images/code_bg.png +0 -0
  211. data/spec/test-site/public/images/dotted-border.png +0 -0
  212. data/spec/test-site/public/images/email.png +0 -0
  213. data/spec/test-site/public/images/line-tile.png +0 -0
  214. data/spec/test-site/public/images/noise.png +0 -0
  215. data/spec/test-site/public/images/rss.png +0 -0
  216. data/spec/test-site/public/images/search.png +0 -0
  217. data/spec/test-site/public/index.html +165 -0
  218. data/spec/test-site/public/javascripts/ender.js +45 -0
  219. data/spec/test-site/public/javascripts/github.js +37 -0
  220. data/spec/test-site/public/javascripts/libs/ender.js +1497 -0
  221. data/spec/test-site/public/javascripts/libs/jXHR.js +85 -0
  222. data/spec/test-site/public/javascripts/libs/swfobject-dynamic.js +298 -0
  223. data/spec/test-site/public/javascripts/modernizr-2.0.js +5 -0
  224. data/spec/test-site/public/javascripts/octopress.js +161 -0
  225. data/spec/test-site/public/javascripts/pinboard.js +56 -0
  226. data/spec/test-site/public/javascripts/twitter.js +78 -0
  227. data/spec/test-site/public/sitemap.xml +15 -0
  228. data/spec/test-site/public/stylesheets/screen.css +1 -0
  229. data/spec/test-site/sass/_base.scss +5 -0
  230. data/spec/test-site/sass/_partials.scss +8 -0
  231. data/spec/test-site/sass/base/_layout.scss +192 -0
  232. data/spec/test-site/sass/base/_solarized.scss +46 -0
  233. data/spec/test-site/sass/base/_theme.scss +86 -0
  234. data/spec/test-site/sass/base/_typography.scss +161 -0
  235. data/spec/test-site/sass/base/_utilities.scss +28 -0
  236. data/spec/test-site/sass/custom/_colors.scss +43 -0
  237. data/spec/test-site/sass/custom/_fonts.scss +10 -0
  238. data/spec/test-site/sass/custom/_layout.scss +21 -0
  239. data/spec/test-site/sass/custom/_styles.scss +2 -0
  240. data/spec/test-site/sass/partials/_archive.scss +72 -0
  241. data/spec/test-site/sass/partials/_blog.scss +141 -0
  242. data/spec/test-site/sass/partials/_footer.scss +19 -0
  243. data/spec/test-site/sass/partials/_header.scss +18 -0
  244. data/spec/test-site/sass/partials/_navigation.scss +137 -0
  245. data/spec/test-site/sass/partials/_sharing.scss +8 -0
  246. data/spec/test-site/sass/partials/_sidebar.scss +5 -0
  247. data/spec/test-site/sass/partials/_syntax.scss +253 -0
  248. data/spec/test-site/sass/partials/sidebar/_base.scss +106 -0
  249. data/spec/test-site/sass/partials/sidebar/_delicious.scss +4 -0
  250. data/spec/test-site/sass/partials/sidebar/_googleplus.scss +26 -0
  251. data/spec/test-site/sass/partials/sidebar/_pinboard.scss +12 -0
  252. data/spec/test-site/sass/partials/sidebar/_twitter.scss +34 -0
  253. data/spec/test-site/sass/screen.scss +10 -0
  254. data/spec/test-site/source/_includes/after_footer.html +5 -0
  255. data/spec/test-site/source/_includes/archive_post.html +8 -0
  256. data/spec/test-site/source/_includes/article.html +28 -0
  257. data/spec/test-site/source/_includes/asides/delicious.html +8 -0
  258. data/spec/test-site/source/_includes/asides/github.html +30 -0
  259. data/spec/test-site/source/_includes/asides/googleplus.html +11 -0
  260. data/spec/test-site/source/_includes/asides/pinboard.html +19 -0
  261. data/spec/test-site/source/_includes/asides/recent_posts.html +10 -0
  262. data/spec/test-site/source/_includes/asides/twitter.html +19 -0
  263. data/spec/test-site/source/_includes/custom/after_footer.html +3 -0
  264. data/spec/test-site/source/_includes/custom/asides/about.html +4 -0
  265. data/spec/test-site/source/_includes/custom/category_feed.xml +27 -0
  266. data/spec/test-site/source/_includes/custom/footer.html +4 -0
  267. data/spec/test-site/source/_includes/custom/head.html +3 -0
  268. data/spec/test-site/source/_includes/custom/header.html +6 -0
  269. data/spec/test-site/source/_includes/custom/navigation.html +4 -0
  270. data/spec/test-site/source/_includes/disqus.html +21 -0
  271. data/spec/test-site/source/_includes/facebook_like.html +10 -0
  272. data/spec/test-site/source/_includes/footer.html +1 -0
  273. data/spec/test-site/source/_includes/google_analytics.html +13 -0
  274. data/spec/test-site/source/_includes/google_plus_one.html +9 -0
  275. data/spec/test-site/source/_includes/head.html +29 -0
  276. data/spec/test-site/source/_includes/header.html +1 -0
  277. data/spec/test-site/source/_includes/navigation.html +15 -0
  278. data/spec/test-site/source/_includes/post/author.html +8 -0
  279. data/spec/test-site/source/_includes/post/categories.html +10 -0
  280. data/spec/test-site/source/_includes/post/date.html +15 -0
  281. data/spec/test-site/source/_includes/post/disqus_thread.html +1 -0
  282. data/spec/test-site/source/_includes/post/sharing.html +11 -0
  283. data/spec/test-site/source/_includes/twitter_sharing.html +11 -0
  284. data/spec/test-site/source/_layouts/category_index.html +17 -0
  285. data/spec/test-site/source/_layouts/default.html +14 -0
  286. data/spec/test-site/source/_layouts/page.html +42 -0
  287. data/spec/test-site/source/_layouts/post.html +43 -0
  288. data/spec/test-site/source/_posts/2012-10-02-a-list-of-links.markdown +11 -0
  289. data/spec/test-site/source/assets/jwplayer/glow/controlbar/background.png +0 -0
  290. data/spec/test-site/source/assets/jwplayer/glow/controlbar/blankButton.png +0 -0
  291. data/spec/test-site/source/assets/jwplayer/glow/controlbar/divider.png +0 -0
  292. data/spec/test-site/source/assets/jwplayer/glow/controlbar/fullscreenButton.png +0 -0
  293. data/spec/test-site/source/assets/jwplayer/glow/controlbar/fullscreenButtonOver.png +0 -0
  294. data/spec/test-site/source/assets/jwplayer/glow/controlbar/muteButton.png +0 -0
  295. data/spec/test-site/source/assets/jwplayer/glow/controlbar/muteButtonOver.png +0 -0
  296. data/spec/test-site/source/assets/jwplayer/glow/controlbar/normalscreenButton.png +0 -0
  297. data/spec/test-site/source/assets/jwplayer/glow/controlbar/normalscreenButtonOver.png +0 -0
  298. data/spec/test-site/source/assets/jwplayer/glow/controlbar/pauseButton.png +0 -0
  299. data/spec/test-site/source/assets/jwplayer/glow/controlbar/pauseButtonOver.png +0 -0
  300. data/spec/test-site/source/assets/jwplayer/glow/controlbar/playButton.png +0 -0
  301. data/spec/test-site/source/assets/jwplayer/glow/controlbar/playButtonOver.png +0 -0
  302. data/spec/test-site/source/assets/jwplayer/glow/controlbar/timeSliderBuffer.png +0 -0
  303. data/spec/test-site/source/assets/jwplayer/glow/controlbar/timeSliderCapLeft.png +0 -0
  304. data/spec/test-site/source/assets/jwplayer/glow/controlbar/timeSliderCapRight.png +0 -0
  305. data/spec/test-site/source/assets/jwplayer/glow/controlbar/timeSliderProgress.png +0 -0
  306. data/spec/test-site/source/assets/jwplayer/glow/controlbar/timeSliderRail.png +0 -0
  307. data/spec/test-site/source/assets/jwplayer/glow/controlbar/unmuteButton.png +0 -0
  308. data/spec/test-site/source/assets/jwplayer/glow/controlbar/unmuteButtonOver.png +0 -0
  309. data/spec/test-site/source/assets/jwplayer/glow/display/background.png +0 -0
  310. data/spec/test-site/source/assets/jwplayer/glow/display/bufferIcon.png +0 -0
  311. data/spec/test-site/source/assets/jwplayer/glow/display/muteIcon.png +0 -0
  312. data/spec/test-site/source/assets/jwplayer/glow/display/playIcon.png +0 -0
  313. data/spec/test-site/source/assets/jwplayer/glow/dock/button.png +0 -0
  314. data/spec/test-site/source/assets/jwplayer/glow/glow.xml +115 -0
  315. data/spec/test-site/source/assets/jwplayer/glow/playlist/item.png +0 -0
  316. data/spec/test-site/source/assets/jwplayer/glow/playlist/itemOver.png +0 -0
  317. data/spec/test-site/source/assets/jwplayer/glow/playlist/sliderCapBottom.png +0 -0
  318. data/spec/test-site/source/assets/jwplayer/glow/playlist/sliderCapTop.png +0 -0
  319. data/spec/test-site/source/assets/jwplayer/glow/playlist/sliderRail.png +0 -0
  320. data/spec/test-site/source/assets/jwplayer/glow/playlist/sliderThumb.png +0 -0
  321. data/spec/test-site/source/assets/jwplayer/glow/sharing/embedIcon.png +0 -0
  322. data/spec/test-site/source/assets/jwplayer/glow/sharing/embedScreen.png +0 -0
  323. data/spec/test-site/source/assets/jwplayer/glow/sharing/shareIcon.png +0 -0
  324. data/spec/test-site/source/assets/jwplayer/glow/sharing/shareScreen.png +0 -0
  325. data/spec/test-site/source/assets/jwplayer/player.swf +0 -0
  326. data/spec/test-site/source/atom.xml +27 -0
  327. data/spec/test-site/source/blog/archives/index.html +18 -0
  328. data/spec/test-site/source/favicon.png +0 -0
  329. data/spec/test-site/source/images/bird_32_gray.png +0 -0
  330. data/spec/test-site/source/images/bird_32_gray_fail.png +0 -0
  331. data/spec/test-site/source/images/code_bg.png +0 -0
  332. data/spec/test-site/source/images/dotted-border.png +0 -0
  333. data/spec/test-site/source/images/email.png +0 -0
  334. data/spec/test-site/source/images/line-tile.png +0 -0
  335. data/spec/test-site/source/images/noise.png +0 -0
  336. data/spec/test-site/source/images/rss.png +0 -0
  337. data/spec/test-site/source/images/search.png +0 -0
  338. data/spec/test-site/source/index.html +29 -0
  339. data/spec/test-site/source/javascripts/ender.js +45 -0
  340. data/spec/test-site/source/javascripts/github.js +37 -0
  341. data/spec/test-site/source/javascripts/libs/ender.js +1497 -0
  342. data/spec/test-site/source/javascripts/libs/jXHR.js +85 -0
  343. data/spec/test-site/source/javascripts/libs/swfobject-dynamic.js +298 -0
  344. data/spec/test-site/source/javascripts/modernizr-2.0.js +5 -0
  345. data/spec/test-site/source/javascripts/octopress.js +161 -0
  346. data/spec/test-site/source/javascripts/pinboard.js +56 -0
  347. data/spec/test-site/source/javascripts/twitter.js +78 -0
  348. metadata +475 -0
@@ -0,0 +1,45 @@
1
+ /*!
2
+ * =============================================================
3
+ * Ender: open module JavaScript framework (https://ender.no.de)
4
+ * Build: ender build jeesh reqwest
5
+ * =============================================================
6
+ */
7
+
8
+
9
+ /*!
10
+ * Ender: open module JavaScript framework (client-lib)
11
+ * copyright Dustin Diaz & Jacob Thornton 2011 (@ded @fat)
12
+ * http://ender.no.de
13
+ * License MIT
14
+ */
15
+ !function(a){function d(a){var c=b[a]||window[a];if(!c)throw new Error("Requested module '"+a+"' has not been defined.");return c}function e(a,c){return b[a]=c}function f(a,b){for(var c in b)c!="noConflict"&&c!="_VERSION"&&(a[c]=b[c]);return a}function g(a,b,c){return h._select&&(typeof a=="string"||a.nodeName||a.length&&"item"in a||a==window)?(c=h._select(a,b),c.selector=a):c=isFinite(a.length)?a:[a],f(c,g)}function h(a,b){return g(a,b)}a.global=a;var b={},c=a.$;a.provide=e,a.require=d,f(h,{_VERSION:"0.3.4",fn:a.$&&a.$.fn||{},ender:function(a,b){f(b?g:h,a)},_select:function(a,b){return(b||document).querySelectorAll(a)}}),f(g,{forEach:function(a,b,c){for(c=0,l=this.length;c<l;++c)c in this&&a.call(b||this[c],this[c],c,this);return this},$:h}),h.noConflict=function(){return a.$=c,this},typeof module!="undefined"&&module.exports&&(module.exports=h),a.ender=a.$=a.ender||h}(this),!function(){var module={exports:{}},exports=module.exports;
16
+ /*!
17
+ * Reqwest! A general purpose XHR connection manager
18
+ * (c) Dustin Diaz 2011
19
+ * https://github.com/ded/reqwest
20
+ * license MIT
21
+ */
22
+ !function(a,b){typeof define=="function"?define(b):typeof module!="undefined"?module.exports=b():this[a]=b()}("reqwest",function(){function handleReadyState(a,b,c){return function(){a&&a[readyState]==4&&(twoHundo.test(a.status)?b(a):c(a))}}function setHeaders(a,b){var c=b.headers||{};c.Accept=c.Accept||"text/javascript, text/html, application/xml, text/xml, */*",b.crossOrigin||(c["X-Requested-With"]=c["X-Requested-With"]||"XMLHttpRequest"),c[contentType]=c[contentType]||"application/x-www-form-urlencoded";for(var d in c)c.hasOwnProperty(d)&&a.setRequestHeader(d,c[d])}function getCallbackName(a,b){var c=a.jsonpCallback||"callback";if(a.url.slice(-(c.length+2))==c+"=?"){var d="reqwest_"+b;return a.url=a.url.substr(0,a.url.length-1)+d,d}var e=new RegExp(c+"=([\\w]+)");return a.url.match(e)[1]}function generalCallback(a){lastValue=a}function getRequest(a,b,c){if(a.type!="jsonp"){var g=xhr(),h=(a.method||"GET").toUpperCase(),i=typeof a=="string"?a:a.url,j=a.processData!==!1&&a.data&&typeof a.data!="string"?reqwest.toQueryString(a.data):a.data||null;return h=="GET"&&j&&j!==""&&(i+=(/\?/.test(i)?"&":"?")+j)&&(j=null),g.open(h,i,!0),setHeaders(g,a),g.onreadystatechange=handleReadyState(g,b,c),a.before&&a.before(g),g.send(j),g}var d=doc.createElement("script"),e=0,f=uniqid++;win[getCallbackName(a,f)]=generalCallback,d.type="text/javascript",d.src=a.url,d.async=!0,typeof d.onreadystatechange!="undefined"&&(d.event="onclick",d.htmlFor=d.id="_reqwest_"+f),d.onload=d.onreadystatechange=function(){if(d[readyState]&&d[readyState]!=="complete"&&d[readyState]!=="loaded"||e)return!1;d.onload=d.onreadystatechange=null,d.onclick&&d.onclick(),a.success&&a.success(lastValue),lastValue=undefined,head.removeChild(d),e=1},head.appendChild(d)}function Reqwest(a,b){this.o=a,this.fn=b,init.apply(this,arguments)}function setType(a){return/\.json$/.test(a)?"json":/\.jsonp$/.test(a)?"jsonp":/\.js$/.test(a)?"js":/\.html?$/.test(a)?"html":/\.xml$/.test(a)?"xml":"js"}function init(o,fn){function complete(a){o.timeout&&clearTimeout(self.timeout),self.timeout=null,o.complete&&o.complete(a)}function success(resp){var r=resp.responseText;if(r)switch(type){case"json":try{resp=win.JSON?win.JSON.parse(r):eval("("+r+")")}catch(err){return error(resp,"Could not parse JSON in response",err)}break;case"js":resp=eval(r);break;case"html":resp=r}fn(resp),o.success&&o.success(resp),complete(resp)}function error(a,b,c){o.error&&o.error(a,b,c),complete(a)}this.url=typeof o=="string"?o:o.url,this.timeout=null;var type=o.type||setType(this.url),self=this;fn=fn||function(){},o.timeout&&(this.timeout=setTimeout(function(){self.abort()},o.timeout)),this.request=getRequest(o,success,error)}function reqwest(a,b){return new Reqwest(a,b)}function normalize(a){return a?a.replace(/\r?\n/g,"\r\n"):""}function serial(a,b){var c=a.name,d=a.tagName.toLowerCase(),e;if(a.disabled||!c)return;switch(d){case"input":if(!/reset|button|image|file/i.test(a.type)){var f=/checkbox/i.test(a.type),g=/radio/i.test(a.type),h=a.value;(!f&&!g||a.checked)&&b(c,normalize(f&&h===""?"on":h))}break;case"textarea":b(c,normalize(a.value));break;case"select":if(a.type.toLowerCase()==="select-one")e=a.selectedIndex<0?null:a.options[a.selectedIndex],e&&!e.disabled&&b(c,normalize(e.value||e.text));else for(var i=0;a.length&&i<a.length;i++)e=a.options[i],e.selected&&!e.disabled&&b(c,normalize(e.value||e.text))}}function eachFormElement(){var a=this,b=function(b,c){for(var d=0;d<c.length;d++){var e=b[byTag](c[d]);for(var f=0;f<e.length;f++)serial(e[f],a)}};for(var c=0;c<arguments.length;c++){var d=arguments[c];/input|select|textarea/i.test(d.tagName)&&serial(d,a),b(d,["input","select","textarea"])}}function serializeQueryString(){return reqwest.toQueryString(reqwest.serializeArray.apply(null,arguments))}function serializeHash(){var a={};return eachFormElement.apply(function(b,c){b in a?(a[b]&&!isArray(a[b])&&(a[b]=[a[b]]),a[b].push(c)):a[b]=c},arguments),a}var context=this,win=window,doc=document,old=context.reqwest,twoHundo=/^20\d$/,byTag="getElementsByTagName",readyState="readyState",contentType="Content-Type",head=doc[byTag]("head")[0],uniqid=0,lastValue,xhr="XMLHttpRequest"in win?function(){return new XMLHttpRequest}:function(){return new ActiveXObject("Microsoft.XMLHTTP")};Reqwest.prototype={abort:function(){this.request.abort()},retry:function(){init.call(this,this.o,this.fn)}};var isArray=typeof Array.isArray=="function"?Array.isArray:function(a){return Object.prototype.toString.call(a)=="[object Array]"};return reqwest.serializeArray=function(){var a=[];return eachFormElement.apply(function(b,c){a.push({name:b,value:c})},arguments),a},reqwest.serialize=function(){if(arguments.length===0)return"";var a,b,c=Array.prototype.slice.call(arguments,0);return a=c.pop(),a&&a.nodeType&&c.push(a)&&(a=null),a&&(a=a.type),a=="map"?b=serializeHash:a=="array"?b=reqwest.serializeArray:b=serializeQueryString,b.apply(null,c)},reqwest.toQueryString=function(a){var b="",c,d=encodeURIComponent,e=function(a,c){b+=d(a)+"="+d(c)+"&"};if(isArray(a))for(c=0;a&&c<a.length;c++)e(a[c].name,a[c].value);else for(var f in a){if(!Object.hasOwnProperty.call(a,f))continue;var g=a[f];if(isArray(g))for(c=0;c<g.length;c++)e(f,g[c]);else e(f,a[f])}return b.replace(/&$/,"").replace(/%20/g,"+")},reqwest.noConflict=function(){return context.reqwest=old,this},reqwest}),provide("reqwest",module.exports),!function(a){var b=require("reqwest"),c=function(a){return function(){var c=(this&&this.length>0?this:[]).concat(Array.prototype.slice.call(arguments,0));return b[a].apply(null,c)}},d=c("serialize"),e=c("serializeArray");a.ender({ajax:b,serialize:d,serializeArray:e,toQueryString:b.toQueryString}),a.ender({serialize:d,serializeArray:e},!0)}(ender)}(),!function(){var a={exports:{}},b=a.exports;
23
+ /*!
24
+ * bean.js - copyright Jacob Thornton 2011
25
+ * https://github.com/fat/bean
26
+ * MIT License
27
+ * special thanks to:
28
+ * dean edwards: http://dean.edwards.name/
29
+ * dperini: https://github.com/dperini/nwevents
30
+ * the entire mootools team: github.com/mootools/mootools-core
31
+ */
32
+ !function(b,c){typeof define=="function"?define(c):typeof a!="undefined"?a.exports=c():this[b]=c()}("bean",function(){function F(a){var b=a.relatedTarget;return b?b!=this&&b.prefix!="xul"&&!/document/.test(this.toString())&&!p(this,b):b===null}var a=window,b=1,c={},d={},e=/over|out/,f=/[^\.]*(?=\..*)\.|.*/,g=/\..*/,h="addEventListener",i="attachEvent",j="removeEventListener",k="detachEvent",l=document||{},m=l.documentElement||{},n=m[h],o=n?h:i,p=function(a,b){var c=b.parentNode;while(c!==null){if(c==a)return!0;c=c.parentNode}},q=function(a,c){return a.__uid=c&&c+"::"+b++||a.__uid||b++},r=function(a){var b=q(a);return c[b]=c[b]||{}},s=n?function(a,b,c,d){a[d?h:j](b,c,!1)}:function(a,b,c,d,e){e&&d&&a["_on"+e]===null&&(a["_on"+e]=0),a[d?i:k]("on"+b,c)},t=function(b,c,d){return function(e){return e=D(e||((this.ownerDocument||this.document||this).parentWindow||a).event),c.apply(b,[e].concat(d))}},u=function(b,c,d,e,f){return function(g){if(e?e.apply(this,arguments):n?!0:g&&g.propertyName=="_on"+d||!g)g=g?D(g||((this.ownerDocument||this.document||this).parentWindow||a).event):null,c.apply(b,Array.prototype.slice.call(arguments,g?0:1).concat(f))}},v=function(a,b,c,e){var h=b.replace(g,""),i=r(a),j=i[h]||(i[h]={}),k=c,l=q(c,b.replace(f,""));if(j[l])return a;var m=G[h];m&&(c=m.condition?u(a,c,h,m.condition):c,h=m.base||h);var p=E[h];c=p?t(a,c,e):u(a,c,h,!1,e),p=n||p;if(h=="unload"){var v=c;c=function(){w(a,h,c)&&v()}}return a[o]&&s(a,p?h:"propertychange",c,!0,!p&&h),j[l]=c,c.__uid=l,c.__originalFn=k,h=="unload"?a:d[q(a)]=a},w=function(a,b,c){function l(b){c=j[k][b];if(!c)return;delete j[k][b];if(a[o]){k=G[k]?G[k].base:k;var d=n||E[k];s(a,d?k:"propertychange",c,!1,!d&&k)}}var d,e,h,i,j=r(a),k=b.replace(g,"");if(!j||!j[k])return a;e=b.replace(f,""),h=e?e.split("."):[c.__uid],l(e);for(i=h.length;i--;l(h[i]));return a},x=function(a,b,c){return function(d){var e=typeof a=="string"?c(a,this):a;for(var f=d.target;f&&f!=this;f=f.parentNode)for(var g=e.length;g--;)if(e[g]==f)return b.apply(f,arguments)}},y=function(a,b,c,d,e){if(typeof b=="object"&&!c)for(var f in b)b.hasOwnProperty(f)&&y(a,f,b[f]);else{var g=typeof c=="string",h=(g?c:b).split(" ");c=g?x(b,d,e):c;for(var i=h.length;i--;)v(a,h[i],c,Array.prototype.slice.call(arguments,g?4:3))}return a},z=function(a,b,c){var d,e,h,i,j,k=typeof b=="string",l=k&&b.replace(f,""),m=w,n=r(a);l=l&&l.split(".");if(k&&/\s/.test(b)){b=b.split(" "),j=b.length-1;while(z(a,b[j])&&j--);return a}i=k?b.replace(g,""):b;if(!n||l||k&&!n[i]){for(d in n)if(n.hasOwnProperty(d))for(j in n[d])for(e=l.length;e--;)n[d].hasOwnProperty(j)&&(new RegExp("^"+l[e]+"::\\d*(\\..*)?$")).test(j)&&m(a,[d,j].join("."));return a}if(typeof c=="function")m(a,i,c);else if(l)m(a,b);else{m=i?m:z,h=k&&i,i=i?c||n[i]||i:n;for(d in i)i.hasOwnProperty(d)&&(m(a,h||d,i[d]),delete i[d])}return a},A=function(a,b,c){var d,e,h,i,j=b.split(" ");for(h=j.length;h--;){b=j[h].replace(g,"");var k=E[b],l=j[h].replace(f,""),m=r(a)[b];if(l){l=l.split(".");for(e=l.length;e--;)for(i in m)m.hasOwnProperty(i)&&(new RegExp("^"+l[e]+"::\\d*(\\..*)?$")).test(i)&&m[i].apply(a,[!1].concat(c))}else if(!c&&a[o])B(k,b,a);else for(e in m)m.hasOwnProperty(e)&&m[e].apply(a,[!1].concat(c))}return a},B=n?function(b,c,d){evt=document.createEvent(b?"HTMLEvents":"UIEvents"),evt[b?"initEvent":"initUIEvent"](c,!0,!0,a,1),d.dispatchEvent(evt)}:function(a,b,c){a?c.fireEvent("on"+b,document.createEventObject()):c["_on"+b]++},C=function(a,b,c){var d=r(b),e,f,g=q(a);e=c?d[c]:d;for(f in e)e.hasOwnProperty(f)&&(c?y:C)(a,c||b,c?e[f].__originalFn:f);return a},D=function(a){var b={};if(!a)return b;var c=a.type,d=a.target||a.srcElement;b.preventDefault=D.preventDefault(a),b.stopPropagation=D.stopPropagation(a),b.target=d&&d.nodeType==3?d.parentNode:d;if(~c.indexOf("key"))b.keyCode=a.which||a.keyCode;else if(/click|mouse|menu/i.test(c)){b.rightClick=a.which==3||a.button==2,b.pos={x:0,y:0};if(a.pageX||a.pageY)b.clientX=a.pageX,b.clientY=a.pageY;else if(a.clientX||a.clientY)b.clientX=a.clientX+document.body.scrollLeft+document.documentElement.scrollLeft,b.clientY=a.clientY+document.body.scrollTop+document.documentElement.scrollTop;e.test(c)&&(b.relatedTarget=a.relatedTarget||a[(c=="mouseover"?"from":"to")+"Element"])}for(var f in a)f in b||(b[f]=a[f]);return b};D.preventDefault=function(a){return function(){a.preventDefault?a.preventDefault():a.returnValue=!1}},D.stopPropagation=function(a){return function(){a.stopPropagation?a.stopPropagation():a.cancelBubble=!0}};var E={click:1,dblclick:1,mouseup:1,mousedown:1,contextmenu:1,mousewheel:1,DOMMouseScroll:1,mouseover:1,mouseout:1,mousemove:1,selectstart:1,selectend:1,keydown:1,keypress:1,keyup:1,orientationchange:1,touchstart:1,touchmove:1,touchend:1,touchcancel:1,gesturestart:1,gesturechange:1,gestureend:1,focus:1,blur:1,change:1,reset:1,select:1,submit:1,load:1,unload:1,beforeunload:1,resize:1,move:1,DOMContentLoaded:1,readystatechange:1,error:1,abort:1,scroll:1},G={mouseenter:{base:"mouseover",condition:F},mouseleave:{base:"mouseout",condition:F},mousewheel:{base:/Firefox/.test(navigator.userAgent)?"DOMMouseScroll":"mousewheel"}},H={add:y,remove:z,clone:C,fire:A},I=function(a){var b=z(a).__uid;b&&(delete d[b],delete c[b])};return a[i]&&y(a,"unload",function(){for(var b in d)d.hasOwnProperty(b)&&I(d[b]);a.CollectGarbage&&CollectGarbage()}),H.noConflict=function(){return context.bean=old,this},H}),provide("bean",a.exports),!function(a){var b=require("bean"),c=function(c,d,e){var f=d?[d]:[];return function(){for(var e,g=0,h=this.length;g<h;g++)e=[this[g]].concat(f,Array.prototype.slice.call(arguments,0)),e.length==4&&e.push(a),!arguments.length&&c=="add"&&d&&(c="fire"),b[c].apply(this,e);return this}},d=c("add"),e=c("remove"),f=c("fire"),g={on:d,addListener:d,bind:d,listen:d,delegate:d,unbind:e,unlisten:e,removeListener:e,undelegate:e,emit:f,trigger:f,cloneEvents:c("clone"),hover:function(a,c,d){for(d=this.length;d--;)b.add.call(this,this[d],"mouseenter",a),b.add.call(this,this[d],"mouseleave",c);return this}},h,i=["blur","change","click","dblclick","error","focus","focusin","focusout","keydown","keypress","keyup","load","mousedown","mouseenter","mouseleave","mouseout","mouseover","mouseup","mousemove","resize","scroll","select","submit","unload"];for(h=i.length;h--;)g[i[h]]=c("add",i[h]);a.ender(g,!0)}(ender)}(),!function(){var a={exports:{}},b=a.exports;
33
+ /*!
34
+ * Bonzo: DOM Utility (c) Dustin Diaz 2011
35
+ * https://github.com/ded/bonzo
36
+ * License MIT
37
+ */
38
+ !function(b,c){typeof define=="function"?define(c):typeof a!="undefined"?a.exports=c():this[b]=c()}("bonzo",function(){function x(a){return new RegExp("(^|\\s+)"+a+"(\\s+|$)")}function y(a,b,c){for(var d=0,e=a.length;d<e;d++)b.call(c||a[d],a[d],d,a);return a}function z(a){return a.replace(/-(.)/g,function(a,b){return b.toUpperCase()})}function A(a){return a&&a.nodeName&&a.nodeType==1}function B(a,b,c,d){for(d=0,j=a.length;d<j;++d)if(b.call(c,a[d],d,a))return!0;return!1}function D(a,b,c){var d=0,g=b||this,h=[],i=f&&typeof a=="string"&&a.charAt(0)!="<"?f(a):a;return y(J(i),function(a){y(g,function(b){var f=!b[e]||b[e]&&!b[e][e]?function(){var a=b.cloneNode(!0);return g.$&&g.cloneEvents&&g.$(a).cloneEvents(b),a}():b;c(a,f),h[d]=f,d++})},this),y(h,function(a,b){g[b]=a}),g.length=d,g}function E(a,b,c){var d=N(a),e=d.css("position"),f=d.offset(),g="relative",h=e==g,i=[parseInt(d.css("left"),10),parseInt(d.css("top"),10)];e=="static"&&(d.css("position",g),e=g),isNaN(i[0])&&(i[0]=h?0:a.offsetLeft),isNaN(i[1])&&(i[1]=h?0:a.offsetTop),b!=null&&(a.style.left=b-f.left+i[0]+q),c!=null&&(a.style.top=c-f.top+i[1]+q)}function F(a,b){return x(b).test(a.className)}function G(a,b){a.className=w(a.className+" "+b)}function H(a,b){a.className=w(a.className.replace(x(b)," "))}function I(a){this.length=0;if(a){a=typeof a!="string"&&!a.nodeType&&typeof a.length!="undefined"?a:[a],this.length=a.length;for(var b=0;b<a.length;b++)this[b]=a[b]}}function J(a){return typeof a=="string"?N.create(a):A(a)?[a]:a}function K(a,c,d){var e=this[0];return a==null&&c==null?(L(e)?M():{x:e.scrollLeft,y:e.scrollTop})[d]:(L(e)?b.scrollTo(a,c):(a!=null&&(e.scrollLeft=a),c!=null&&(e.scrollTop=c)),this)}function L(a){return a===b||/^(?:body|html)$/i.test(a.tagName)}function M(){return{x:b.pageXOffset||d.scrollLeft,y:b.pageYOffset||d.scrollTop}}function N(a,b){return new I(a,b)}var a=this,b=window,c=b.document,d=c.documentElement,e="parentNode",f=null,g=/^checked|value|selected$/,h=/select|fieldset|table|tbody|tfoot|td|tr|colgroup/i,i="table",k={thead:i,tbody:i,tfoot:i,tr:"tbody",th:"tr",td:"tr",fieldset:"form",option:"select"},l=/^checked|selected$/,m=/msie/i.test(navigator.userAgent),n=[],o=0,p=/^-?[\d\.]+$/,q="px",r="setAttribute",s="getAttribute",t=/(^\s*|\s*$)/g,u={lineHeight:1,zoom:1,zIndex:1,opacity:1},v=function(){var a=["webkitTransform","MozTransform","OTransform","msTransform","Transform"],b;for(b=0;b<a.length;b++)if(a[b]in c.createElement("a").style)return a[b]}(),w=String.prototype.trim?function(a){return a.trim()}:function(a){return a.replace(t,"")},C=c.defaultView&&c.defaultView.getComputedStyle?function(a,b){b=b=="transform"?v:b,b=b=="transform-origin"?v+"Origin":b;var d=null;b=="float"&&(b="cssFloat");var e=c.defaultView.getComputedStyle(a,"");return e&&(d=e[z(b)]),a.style[b]||d}:m&&d.currentStyle?function(a,b){b=z(b),b=b=="float"?"styleFloat":b;if(b=="opacity"){var c=100;try{c=a.filters["DXImageTransform.Microsoft.Alpha"].opacity}catch(d){try{c=a.filters("alpha").opacity}catch(e){}}return c/100}var f=a.currentStyle?a.currentStyle[b]:null;return a.style[b]||f}:function(a,b){return a.style[z(b)]};I.prototype={get:function(a){return this[a]},each:function(a,b){return y(this,a,b)},map:function(a,b){var c=[],d,e;for(e=0;e<this.length;e++)d=a.call(this,this[e],e),b?b(d)&&c.push(d):c.push(d);return c},first:function(){return N(this[0])},last:function(){return N(this[this.length-1])},html:function(a,b){function f(b){while(b.firstChild)b.removeChild(b.firstChild);y(J(a),function(a){b.appendChild(a)})}var c=b?d.textContent===null?"innerText":"textContent":"innerHTML",e;return typeof a!="undefined"?this.each(function(b){(e=b.tagName.match(h))?f(b,e[0]):b[c]=a}):this[0]?this[0][c]:""},text:function(a){return this.html(a,1)},addClass:function(a){return this.each(function(b){F(b,a)||G(b,a)})},removeClass:function(a){return this.each(function(b){F(b,a)&&H(b,a)})},hasClass:function(a){return B(this,function(b){return F(b,a)})},toggleClass:function(a,b){return this.each(function(c){typeof b!="undefined"?b?G(c,a):H(c,a):F(c,a)?H(c,a):G(c,a)})},show:function(a){return this.each(function(b){b.style.display=a||""})},hide:function(a){return this.each(function(a){a.style.display="none"})},append:function(a){return this.each(function(b){y(J(a),function(a){b.appendChild(a)})})},prepend:function(a){return this.each(function(b){var c=b.firstChild;y(J(a),function(a){b.insertBefore(a,c)})})},appendTo:function(a,b){return D.call(this,a,b,function(a,b){a.appendChild(b)})},prependTo:function(a,b){return D.call(this,a,b,function(a,b){a.insertBefore(b,a.firstChild)})},next:function(){return this.related("nextSibling")},previous:function(){return this.related("previousSibling")},related:function(a){return this.map(function(b){b=b[a];while(b&&b.nodeType!==1)b=b[a];return b||0},function(a){return a})},before:function(a){return this.each(function(b){y(N.create(a),function(a){b[e].insertBefore(a,b)})})},after:function(a){return this.each(function(b){y(N.create(a),function(a){b[e].insertBefore(a,b.nextSibling)})})},insertBefore:function(a,b){return D.call(this,a,b,function(a,b){a[e].insertBefore(b,a)})},insertAfter:function(a,b){return D.call(this,a,b,function(a,b){var c=a.nextSibling;c?a[e].insertBefore(b,c):a[e].appendChild(b)})},replaceWith:function(a){return this.each(function(b){b.parentNode.replaceChild(N.create(a)[0],b)})},css:function(a,d,e){function g(a,b,c){for(var d in f)f.hasOwnProperty(d)&&(c=f[d],(b=z(d))&&p.test(c)&&!(b in u)&&(c+=q),b=b=="transform"?v:b,b=b=="transformOrigin"?v+"Origin":b,a.style[b]=c)}if(d===undefined&&typeof a=="string")return d=this[0],d?d==c||d==b?(e=d==c?N.doc():N.viewport(),a=="width"?e.width:a=="height"?e.height:""):C(d,a):null;var f=a;typeof a=="string"&&(f={},f[a]=d),m&&f.opacity&&(f.filter="alpha(opacity="+f.opacity*100+")",f.zoom=a.zoom||1,delete f.opacity);if(d=f["float"])m?f.styleFloat=d:f.cssFloat=d,delete f["float"];return this.each(g)},offset:function(a,b){if(typeof a=="number"||typeof b=="number")return this.each(function(c){E(c,a,b)});var c=this[0],d=c.offsetWidth,e=c.offsetHeight,f=c.offsetTop,g=c.offsetLeft;while(c=c.offsetParent)f+=c.offsetTop,g+=c.offsetLeft;return{top:f,left:g,height:e,width:d}},attr:function(a,b){var c=this[0];if(typeof a=="string"||a instanceof String)return typeof b=="undefined"?g.test(a)?l.test(a)&&typeof c[a]=="string"?!0:c[a]:c[s](a):this.each(function(c){g.test(a)?c[a]=b:c[r](a,b)});for(var d in a)a.hasOwnProperty(d)&&this.attr(d,a[d]);return this},val:function(a){return typeof a=="string"?this.attr("value",a):this[0].value},removeAttr:function(a){return this.each(function(b){l.test(a)?b[a]=!1:b.removeAttribute(a)})},data:function(a,b){var c=this[0];if(typeof b=="undefined"){c[s]("data-node-uid")||c[r]("data-node-uid",++o);var d=c[s]("data-node-uid");return n[d]||(n[d]={}),n[d][a]}return this.each(function(c){c[s]("data-node-uid")||c[r]("data-node-uid",++o);var d=c[s]("data-node-uid"),e=n[d]||(n[d]={});e[a]=b})},remove:function(){return this.each(function(a){a[e]&&a[e].removeChild(a)})},empty:function(){return this.each(function(a){while(a.firstChild)a.removeChild(a.firstChild)})},detach:function(){return this.map(function(a){return a[e].removeChild(a)})},scrollTop:function(a){return K.call(this,null,a,"y")},scrollLeft:function(a){return K.call(this,a,null,"x")},toggle:function(a){return this.each(function(a){a.style.display=a.offsetWidth||a.offsetHeight?"none":"block"}),a&&a(),this}},N.setQueryEngine=function(a){f=a,delete N.setQueryEngine},N.aug=function(a,b){for(var c in a)a.hasOwnProperty(c)&&((b||I.prototype)[c]=a[c])},N.create=function(a){return typeof a=="string"?function(){var b=/^<([^\s>]+)/.exec(a),d=c.createElement(b&&k[b[1].toLowerCase()]||"div"),e=[];d.innerHTML=a;var f=d.childNodes;d=d.firstChild,e.push(d);while(d=d.nextSibling)d.nodeType==1&&e.push(d);return e}():A(a)?[a.cloneNode(!0)]:[]},N.doc=function(){var a=this.viewport();return{width:Math.max(c.body.scrollWidth,d.scrollWidth,a.width),height:Math.max(c.body.scrollHeight,d.scrollHeight,a.height)}},N.firstChild=function(a){for(var b=a.childNodes,c=0,d=b&&b.length||0,e;c<d;c++)b[c].nodeType===1&&(e=b[d=c]);return e},N.viewport=function(){return{width:m?d.clientWidth:self.innerWidth,height:m?d.clientHeight:self.innerHeight}},N.isAncestor="compareDocumentPosition"in d?function(a,b){return(a.compareDocumentPosition(b)&16)==16}:"contains"in d?function(a,b){return a!==b&&a.contains(b)}:function(a,b){while(b=b[e])if(b===a)return!0;return!1};var O=a.bonzo;return N.noConflict=function(){return a.bonzo=O,this},N}),provide("bonzo",a.exports),!function(a){function c(a,b){for(var c=0;c<a.length;c++)if(a[c]===b)return c;return-1}function d(a){var b=[],c,d;e:for(c=0;c<a.length;c++){for(d=0;d<b.length;d++)if(b[d]==a[c])continue e;b[b.length]=a[c]}return b}function e(a,b,c){return a?b.css(c,a):function(a){return a=parseInt(b.css(c),10),isNaN(a)?b[0]["offset"+c.replace(/^\w/,function(a){return a.toUpperCase()})]:a}()}var b=require("bonzo");b.setQueryEngine(a),a.ender(b),a.ender(b(),!0),a.ender({create:function(c){return a(b.create(c))}}),a.id=function(b){return a([document.getElementById(b)])},a.ender({parents:function(b,e){var f=a(b),g,h,i,j=[];for(g=0,h=this.length;g<h;g++){i=this[g];while(i=i.parentNode)if(~c(f,i)){j.push(i);if(e)break}}return a(d(j))},closest:function(a){return this.parents(a,!0)},first:function(){return a(this[0])},last:function(){return a(this[this.length-1])},next:function(){return a(b(this).next())},previous:function(){return a(b(this).previous())},appendTo:function(a){return b(this.selector).appendTo(a,this)},prependTo:function(a){return b(this.selector).prependTo(a,this)},insertAfter:function(a){return b(this.selector).insertAfter(a,this)},insertBefore:function(a){return b(this.selector).insertBefore(a,this)},siblings:function(){var b,c,d,e=[];for(b=0,c=this.length;b<c;b++){d=this[b];while(d=d.previousSibling)d.nodeType==1&&e.push(d);d=this[b];while(d=d.nextSibling)d.nodeType==1&&e.push(d)}return a(e)},children:function(){var c,e,f=[];for(c=0,l=this.length;c<l;c++){if(!(e=b.firstChild(this[c])))continue;f.push(e);while(e=e.nextSibling)e.nodeType==1&&f.push(e)}return a(d(f))},height:function(a){return e(a,this,"height")},width:function(a){return e(a,this,"width")}},!0)}(ender)}(),!function(){var a={exports:{}},b=a.exports;!function(b,c){typeof define=="function"?define(c):typeof a!="undefined"?a.exports=c():this[b]=this.domReady=c()}("domready",function(a){function l(a){k=1;while(a=b.shift())a()}var b=[],c,d=!1,e=document,f=e.documentElement,g=f.doScroll,h="DOMContentLoaded",i="addEventListener",j="onreadystatechange",k=/^loade|c/.test(e.readyState);return e[i]&&e[i](h,c=function(){e.removeEventListener(h,c,d),l()},d),g&&e.attachEvent(j,c=function(){/^c/.test(e.readyState)&&(e.detachEvent(j,c),l())}),a=g?function(c){self!=top?k?c():b.push(c):function(){try{f.doScroll("left")}catch(b){return setTimeout(function(){a(c)},50)}c()}()}:function(a){k?a():b.push(a)}}),provide("domready",a.exports),!function(a){var b=require("domready");a.ender({domReady:b}),a.ender({ready:function(a){return b(a),this}},!0)}(ender)}(),!function(){var a={exports:{}},b=a.exports;
39
+ /*!
40
+ * Qwery - A Blazing Fast query selector engine
41
+ * https://github.com/ded/qwery
42
+ * copyright Dustin Diaz & Jacob Thornton 2011
43
+ * MIT License
44
+ */
45
+ !function(b,c){typeof define=="function"?define(c):typeof a!="undefined"?a.exports=c():this[b]=c()}("qwery",function(){function M(){this.c={}}function R(a){l=[];for(e=0,h=a.length;e<h;e++)$(a[e])?l=l.concat(a[e]):l.push(a[e]);return l}function S(a){while(a=a.previousSibling)if(a.nodeType==1)break;return a}function T(a){return a.match(K)}function U(a,b,c,d,f,g,h,i,k,l,m){var n,o,p;if(b&&this.tagName.toLowerCase()!==b)return!1;if(c&&(n=c.match(v))&&n[1]!==this.id)return!1;if(c&&(q=c.match(w)))for(e=q.length;e--;){o=q[e].slice(1);if(!(N.g(o)||N.s(o,new RegExp("(^|\\s+)"+o+"(\\s+|$)"))).test(this.className))return!1}if(k&&ba.pseudos[k]&&!ba.pseudos[k](this,m))return!1;if(d&&!h){j=this.attributes;for(p in j)if(Object.prototype.hasOwnProperty.call(j,p)&&(j[p].name||p)==f)return this}return d&&!W(g,this.getAttribute(f)||"",h)?!1:this}function V(a){return O.g(a)||O.s(a,a.replace(E,"\\$1"))}function W(a,b,c){switch(a){case"=":return b==c;case"^=":return b.match(P.g("^="+c)||P.s("^="+c,new RegExp("^"+V(c))));case"$=":return b.match(P.g("$="+c)||P.s("$="+c,new RegExp(V(c)+"$")));case"*=":return b.match(P.g(c)||P.s(c,new RegExp(V(c))));case"~=":return b.match(P.g("~="+c)||P.s("~="+c,new RegExp("(?:^|\\s+)"+V(c)+"(?:\\s+|$)")));case"|=":return b.match(P.g("|="+c)||P.s("|="+c,new RegExp("^"+V(c)+"(-|$)")))}return 0}function X(a){var c=[],d=[],e,f=0,g,h,i,j,k,l,m,n,o,q,r,s=Q.g(a)||Q.s(a,a.split(J)),t=a.match(I),u;s=s.slice(0);if(!s.length)return c;k=s.pop(),n=s.length&&(i=s[s.length-1].match(x))?b.getElementById(i[1]):b;if(!n)return c;o=T(k),m=t&&/^[+~]$/.test(t[t.length-1])?function(a){while(n=n.nextSibling)n.nodeType==1&&(o[1]?o[1]==n.tagName.toLowerCase():1)&&a.push(n);return a}([]):n.getElementsByTagName(o[1]||"*");for(e=0,h=m.length;e<h;e++)if(q=U.apply(m[e],o))c[f++]=q;if(!s.length)return c;for(f=0,h=c.length,g=0;f<h;f++){j=c[f];for(e=s.length;e--;)while(j=L[t[e]](j,c[f]))if(p=U.apply(j,T(s[e])))break;p&&(d[g++]=c[f])}return d}function Y(a){return a&&a.nodeType&&(a.nodeType==1||a.nodeType==9)}function Z(a){var b=[],c,d;e:for(c=0;c<a.length;c++){for(d=0;d<b.length;d++)if(b[d]==a[c])continue e;b[b.length]=a[c]}return b}function $(a){return typeof a=="object"&&isFinite(a.length)}function _(a){return a?typeof a=="string"?ba(a)[0]:$(a)?a[0]:a:b}function ba(a,c){var d=_(c);return!d||!a?[]:a===window||Y(a)?!c||a!==window&&Y(d)&&bb(a,d)?[a]:[]:a&&$(a)?R(a):(i=a.match(x))?(n=b.getElementById(i[1]))?[n]:[]:(i=a.match(z))?R(d.getElementsByTagName(i[1])):bd(a,d)}var a=this,b=document,c=a.qwery,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u=b.documentElement,v=/#([\w\-]+)/,w=/\.[\w\-]+/g,x=/^#([\w\-]+$)/,y=/^\.([\w\-]+)$/,z=/^([\w\-]+)$/,A=/^([\w]+)?\.([\w\-]+)$/,B=/\s*([\s\+\~>])\s*/g,C=/[\s\>\+\~]/,D=/(?![\s\w\-\/\?\&\=\:\.\(\)\!,@#%<>\{\}\$\*\^'"]*\]|[\s\w\+\-]*\))/,E=/([.*+?\^=!:${}()|\[\]\/\\])/g,F=/^([a-z0-9]+)?(?:([\.\#]+[\w\-\.#]+)?)/,G=/\[([\w\-]+)(?:([\|\^\$\*\~]?\=)['"]?([ \w\-\/\?\&\=\:\.\(\)\!,@#%<>\{\}\$\*\^]+)["']?)?\]/,H=/:([\w\-]+)(\(['"]?([\s\w\+\-]+)['"]?\))?/,I=new RegExp("("+C.source+")"+D.source,"g"),J=new RegExp(C.source+D.source),K=new RegExp(F.source+"("+G.source+")?"+"("+H.source+")?"),L={" ":function(a){return a&&a!==u&&a.parentNode},">":function(a,b){return a&&a.parentNode==b.parentNode&&a.parentNode},"~":function(a){return a&&a.previousSibling},"+":function(a,b,c,d){return a?(c=S(a),d=S(b),c&&d&&c==d&&c):!1}};M.prototype={g:function(a){return this.c[a]||undefined},s:function(a,b){return this.c[a]=b,b}};var N=new M,O=new M,P=new M,Q=new M,bb="compareDocumentPosition"in u?function(a,b){return(b.compareDocumentPosition(a)&16)==16}:"contains"in u?function(a,c){return c=c==b||c==window?u:c,c!==a&&c.contains(a)}:function(a,b){while(a=a.parentNode)if(a===b)return 1;return 0},bc=function(){if(!b.querySelector||!b.querySelectorAll)return!1;try{return b.querySelectorAll(":nth-of-type(1)").length}catch(a){return!1}}(),bd=bc?function(a,c){return b.getElementsByClassName&&(i=a.match(y))?R(c.getElementsByClassName(i[1])):R(c.querySelectorAll(a))}:function(a,c){a=a.replace(B,"$1");var d=[],e,g,j=[],k;if(i=a.match(A)){s=c.getElementsByTagName(i[1]||"*"),l=N.g(i[2])||N.s(i[2],new RegExp("(^|\\s+)"+i[2]+"(\\s+|$)"));for(k=0,h=s.length,f=0;k<h;k++)l.test(s[k].className)&&(d[f++]=s[k]);return d}for(k=0,s=a.split(","),h=s.length;k<h;k++)j[k]=X(s[k]);for(k=0,h=j.length;k<h&&(g=j[k]);k++){var m=g;if(c!==b){m=[];for(f=0,i=g.length;f<i&&(e=g[f]);f++)bb(e,c)&&m.push(e)}d=d.concat(m)}return Z(d)};return ba.uniq=Z,ba.pseudos={},ba.noConflict=function(){return a.qwery=c,this},ba}),provide("qwery",a.exports),!function(a,b){function f(b,c){var d=/^\s*<([^\s>]+)\s*/.exec(b)[1],f=(c||a).createElement(e[d]||"div"),g=[];f.innerHTML=b;var h=f.childNodes;f=f.firstChild,f.nodeType==1&&g.push(f);while(f=f.nextSibling)f.nodeType==1&&g.push(f);return g}var c=require("qwery"),d="table",e={thead:d,tbody:d,tfoot:d,tr:"tbody",th:"tr",td:"tr",fieldset:"form",option:"select"};b._select=function(a,b){return/^\s*</.test(a)?f(a,b):c(a,b)},b.pseudos=c.pseudos,b.ender({find:function(a){var d=[],e,f,g,h,i;for(e=0,f=this.length;e<f;e++){i=c(a,this[e]);for(g=0,h=i.length;g<h;g++)d.push(i[g])}return b(c.uniq(d))},and:function(a){var c=b(a);for(var d=this.length,e=0,f=this.length+c.length;d<f;d++,e++)this[d]=c[e];return this}},!0)}(document,ender)}()
@@ -0,0 +1,37 @@
1
+ var github = (function(){
2
+ function render(target, repos){
3
+ var i = 0, fragment = '', t = $(target)[0];
4
+
5
+ for(i = 0; i < repos.length; i++) {
6
+ fragment += '<li><a href="'+repos[i].html_url+'">'+repos[i].name+'</a><p>'+(repos[i].description||'')+'</p></li>';
7
+ }
8
+ t.innerHTML = fragment;
9
+ }
10
+ return {
11
+ showRepos: function(options){
12
+ $.ajax({
13
+ url: "https://api.github.com/users/"+options.user+"/repos?callback=?"
14
+ , type: 'jsonp'
15
+ , error: function (err) { $(options.target + ' li.loading').addClass('error').text("Error loading feed"); }
16
+ , success: function(data) {
17
+ var repos = [];
18
+ if (!data || !data.data) { return; }
19
+ for (var i = 0; i < data.data.length; i++) {
20
+ if (options.skip_forks && data.data[i].fork) { continue; }
21
+ repos.push(data.data[i]);
22
+ }
23
+ repos.sort(function(a, b) {
24
+ var aDate = new Date(a.pushed_at).valueOf(),
25
+ bDate = new Date(b.pushed_at).valueOf();
26
+
27
+ if (aDate === bDate) { return 0; }
28
+ return aDate > bDate ? -1 : 1;
29
+ });
30
+
31
+ if (options.count) { repos.splice(options.count); }
32
+ render(options.target, repos);
33
+ }
34
+ });
35
+ }
36
+ };
37
+ })();
@@ -0,0 +1,1497 @@
1
+ /*!
2
+ * Ender: open module JavaScript framework
3
+ * copyright Dustin Diaz & Jacob Thornton 2011 (@ded @fat)
4
+ * https://ender.no.de
5
+ * License MIT
6
+ * Build: ender -b jeesh
7
+ */
8
+ !function (context) {
9
+
10
+ function aug(o, o2) {
11
+ for (var k in o2) {
12
+ k != 'noConflict' && k != '_VERSION' && (o[k] = o2[k]);
13
+ }
14
+ return o;
15
+ }
16
+
17
+ function boosh(s, r) {
18
+ var els;
19
+ if (ender._select && typeof s == 'string' || s.nodeName || s.length && 'item' in s || s == window) { //string || node || nodelist || window
20
+ els = ender._select(s, r);
21
+ els.selector = s;
22
+ } else {
23
+ els = isFinite(s.length) ? s : [s];
24
+ }
25
+ return aug(els, boosh);
26
+ }
27
+
28
+ function ender(s, r) {
29
+ return boosh(s, r);
30
+ }
31
+
32
+ aug(ender, {
33
+ _VERSION: '0.2.0',
34
+ ender: function (o, chain) {
35
+ aug(chain ? boosh : ender, o);
36
+ }
37
+ });
38
+
39
+ aug(boosh, {
40
+ forEach: function (fn, scope) {
41
+ // opt out of native forEach so we can intentionally call our own scope
42
+ // defaulting to the current item
43
+ for (var i = 0, l = this.length; i < l; ++i) {
44
+ i in this && fn.call(scope || this[i], this[i], i, this);
45
+ }
46
+ // return self for chaining
47
+ return this;
48
+ }
49
+ });
50
+
51
+ var old = context.$;
52
+ ender.noConflict = function () {
53
+ context.$ = old;
54
+ return this;
55
+ };
56
+
57
+ (typeof module !== 'undefined') && module.exports && (module.exports = ender);
58
+ // use subscript notation as extern for Closure compilation
59
+ context['ender'] = context['$'] = ender;
60
+
61
+ }(this);
62
+ /*!
63
+ * bean.js - copyright Jacob Thornton 2011
64
+ * https://github.com/fat/bean
65
+ * MIT License
66
+ * special thanks to:
67
+ * dean edwards: http://dean.edwards.name/
68
+ * dperini: https://github.com/dperini/nwevents
69
+ * the entire mootools team: github.com/mootools/mootools-core
70
+ */
71
+ !function (context) {
72
+ var __uid = 1, registry = {}, collected = {},
73
+ overOut = /over|out/,
74
+ namespace = /[^\.]*(?=\..*)\.|.*/,
75
+ stripName = /\..*/,
76
+ addEvent = 'addEventListener',
77
+ attachEvent = 'attachEvent',
78
+ removeEvent = 'removeEventListener',
79
+ detachEvent = 'detachEvent',
80
+ doc = context.document || {},
81
+ root = doc.documentElement || {},
82
+ W3C_MODEL = root[addEvent],
83
+ eventSupport = W3C_MODEL ? addEvent : attachEvent,
84
+
85
+ isDescendant = function (parent, child) {
86
+ var node = child.parentNode;
87
+ while (node != null) {
88
+ if (node == parent) {
89
+ return true;
90
+ }
91
+ node = node.parentNode;
92
+ }
93
+ },
94
+
95
+ retrieveUid = function (obj, uid) {
96
+ return (obj.__uid = uid || obj.__uid || __uid++);
97
+ },
98
+
99
+ retrieveEvents = function (element) {
100
+ var uid = retrieveUid(element);
101
+ return (registry[uid] = registry[uid] || {});
102
+ },
103
+
104
+ listener = W3C_MODEL ? function (element, type, fn, add) {
105
+ element[add ? addEvent : removeEvent](type, fn, false);
106
+ } : function (element, type, fn, add, custom) {
107
+ custom && add && (element['_on' + custom] = element['_on' + custom] || 0);
108
+ element[add ? attachEvent : detachEvent]('on' + type, fn);
109
+ },
110
+
111
+ nativeHandler = function (element, fn, args) {
112
+ return function (event) {
113
+ event = fixEvent(event || ((this.ownerDocument || this.document || this).parentWindow || context).event);
114
+ return fn.apply(element, [event].concat(args));
115
+ };
116
+ },
117
+
118
+ customHandler = function (element, fn, type, condition, args) {
119
+ return function (event) {
120
+ if (condition ? condition.call(this, event) : W3C_MODEL ? true : event && event.propertyName == '_on' + type || !event) {
121
+ fn.apply(element, [event].concat(args));
122
+ }
123
+ };
124
+ },
125
+
126
+ addListener = function (element, orgType, fn, args) {
127
+ var type = orgType.replace(stripName, ''),
128
+ events = retrieveEvents(element),
129
+ handlers = events[type] || (events[type] = {}),
130
+ uid = retrieveUid(fn, orgType.replace(namespace, ''));
131
+ if (handlers[uid]) {
132
+ return element;
133
+ }
134
+ var custom = customEvents[type];
135
+ if (custom) {
136
+ fn = custom.condition ? customHandler(element, fn, type, custom.condition) : fn;
137
+ type = custom.base || type;
138
+ }
139
+ var isNative = nativeEvents[type];
140
+ fn = isNative ? nativeHandler(element, fn, args) : customHandler(element, fn, type, false, args);
141
+ isNative = W3C_MODEL || isNative;
142
+ if (type == 'unload') {
143
+ var org = fn;
144
+ fn = function () {
145
+ removeListener(element, type, fn) && org();
146
+ };
147
+ }
148
+ element[eventSupport] && listener(element, isNative ? type : 'propertychange', fn, true, !isNative && type);
149
+ handlers[uid] = fn;
150
+ fn.__uid = uid;
151
+ return type == 'unload' ? element : (collected[retrieveUid(element)] = element);
152
+ },
153
+
154
+ removeListener = function (element, orgType, handler) {
155
+ var uid, names, uids, i, events = retrieveEvents(element), type = orgType.replace(stripName, '');
156
+ if (!events || !events[type]) {
157
+ return element;
158
+ }
159
+ names = orgType.replace(namespace, '');
160
+ uids = names ? names.split('.') : [handler.__uid];
161
+ for (i = uids.length; i--;) {
162
+ uid = uids[i];
163
+ handler = events[type][uid];
164
+ delete events[type][uid];
165
+ if (element[eventSupport]) {
166
+ type = customEvents[type] ? customEvents[type].base : type;
167
+ var isNative = W3C_MODEL || nativeEvents[type];
168
+ listener(element, isNative ? type : 'propertychange', handler, false, !isNative && type);
169
+ }
170
+ }
171
+ return element;
172
+ },
173
+
174
+ del = function (selector, fn, $) {
175
+ return function (e) {
176
+ var array = typeof selector == 'string' ? $(selector, this) : selector;
177
+ for (var target = e.target; target && target != this; target = target.parentNode) {
178
+ for (var i = array.length; i--;) {
179
+ if (array[i] == target) {
180
+ return fn.apply(target, arguments);
181
+ }
182
+ }
183
+ }
184
+ };
185
+ },
186
+
187
+ add = function (element, events, fn, delfn, $) {
188
+ if (typeof events == 'object' && !fn) {
189
+ for (var type in events) {
190
+ events.hasOwnProperty(type) && add(element, type, events[type]);
191
+ }
192
+ } else {
193
+ var isDel = typeof fn == 'string', types = (isDel ? fn : events).split(' ');
194
+ fn = isDel ? del(events, delfn, $) : fn;
195
+ for (var i = types.length; i--;) {
196
+ addListener(element, types[i], fn, Array.prototype.slice.call(arguments, isDel ? 4 : 3));
197
+ }
198
+ }
199
+ return element;
200
+ },
201
+
202
+ remove = function (element, orgEvents, fn) {
203
+ var k, type, events,
204
+ isString = typeof(orgEvents) == 'string',
205
+ names = isString && orgEvents.replace(namespace, ''),
206
+ rm = removeListener,
207
+ attached = retrieveEvents(element);
208
+ if (isString && /\s/.test(orgEvents)) {
209
+ orgEvents = orgEvents.split(' ');
210
+ var i = orgEvents.length - 1;
211
+ while (remove(element, orgEvents[i]) && i--) {}
212
+ return element;
213
+ }
214
+ events = isString ? orgEvents.replace(stripName, '') : orgEvents;
215
+ if (!attached || (isString && !attached[events])) {
216
+ return element;
217
+ }
218
+ if (typeof fn == 'function') {
219
+ rm(element, events, fn);
220
+ } else if (names) {
221
+ rm(element, orgEvents);
222
+ } else {
223
+ rm = events ? rm : remove;
224
+ type = isString && events;
225
+ events = events ? (fn || attached[events] || events) : attached;
226
+ for (k in events) {
227
+ events.hasOwnProperty(k) && rm(element, type || k, events[k]);
228
+ }
229
+ }
230
+ return element;
231
+ },
232
+
233
+ fire = function (element, type, args) {
234
+ var evt, k, i, types = type.split(' ');
235
+ for (i = types.length; i--;) {
236
+ type = types[i].replace(stripName, '');
237
+ var isNative = nativeEvents[type],
238
+ isNamespace = types[i].replace(namespace, ''),
239
+ handlers = retrieveEvents(element)[type];
240
+ if (isNamespace) {
241
+ isNamespace = isNamespace.split('.');
242
+ for (k = isNamespace.length; k--;) {
243
+ handlers[isNamespace[k]] && handlers[isNamespace[k]].apply(element, args);
244
+ }
245
+ } else if (!args && element[eventSupport]) {
246
+ fireListener(isNative, type, element);
247
+ } else {
248
+ for (k in handlers) {
249
+ handlers.hasOwnProperty(k) && handlers[k].apply(element, args);
250
+ }
251
+ }
252
+ }
253
+ return element;
254
+ },
255
+
256
+ fireListener = W3C_MODEL ? function (isNative, type, element) {
257
+ evt = document.createEvent(isNative ? "HTMLEvents" : "UIEvents");
258
+ evt[isNative ? 'initEvent' : 'initUIEvent'](type, true, true, context, 1);
259
+ element.dispatchEvent(evt);
260
+ } : function (isNative, type, element) {
261
+ isNative ? element.fireEvent('on' + type, document.createEventObject()) : element['_on' + type]++;
262
+ },
263
+
264
+ clone = function (element, from, type) {
265
+ var events = retrieveEvents(from), obj, k;
266
+ obj = type ? events[type] : events;
267
+ for (k in obj) {
268
+ obj.hasOwnProperty(k) && (type ? add : clone)(element, type || from, type ? obj[k] : k);
269
+ }
270
+ return element;
271
+ },
272
+
273
+ fixEvent = function (e) {
274
+ var result = {};
275
+ if (!e) {
276
+ return result;
277
+ }
278
+ var type = e.type, target = e.target || e.srcElement;
279
+ result.preventDefault = fixEvent.preventDefault(e);
280
+ result.stopPropagation = fixEvent.stopPropagation(e);
281
+ result.target = target && target.nodeType == 3 ? target.parentNode : target;
282
+ if (~type.indexOf('key')) {
283
+ result.keyCode = e.which || e.keyCode;
284
+ } else if ((/click|mouse|menu/i).test(type)) {
285
+ result.rightClick = e.which == 3 || e.button == 2;
286
+ result.pos = { x: 0, y: 0 };
287
+ if (e.pageX || e.pageY) {
288
+ result.clientX = e.pageX;
289
+ result.clientY = e.pageY;
290
+ } else if (e.clientX || e.clientY) {
291
+ result.clientX = e.clientX + document.body.scrollLeft + document.documentElement.scrollLeft;
292
+ result.clientY = e.clientY + document.body.scrollTop + document.documentElement.scrollTop;
293
+ }
294
+ overOut.test(type) && (result.relatedTarget = e.relatedTarget || e[(type == 'mouseover' ? 'from' : 'to') + 'Element']);
295
+ }
296
+ for (var k in e) {
297
+ if (!(k in result)) {
298
+ result[k] = e[k];
299
+ }
300
+ }
301
+ return result;
302
+ };
303
+
304
+ fixEvent.preventDefault = function (e) {
305
+ return function () {
306
+ if (e.preventDefault) {
307
+ e.preventDefault();
308
+ }
309
+ else {
310
+ e.returnValue = false;
311
+ }
312
+ };
313
+ };
314
+
315
+ fixEvent.stopPropagation = function (e) {
316
+ return function () {
317
+ if (e.stopPropagation) {
318
+ e.stopPropagation();
319
+ } else {
320
+ e.cancelBubble = true;
321
+ }
322
+ };
323
+ };
324
+
325
+ var nativeEvents = { click: 1, dblclick: 1, mouseup: 1, mousedown: 1, contextmenu: 1, //mouse buttons
326
+ mousewheel: 1, DOMMouseScroll: 1, //mouse wheel
327
+ mouseover: 1, mouseout: 1, mousemove: 1, selectstart: 1, selectend: 1, //mouse movement
328
+ keydown: 1, keypress: 1, keyup: 1, //keyboard
329
+ orientationchange: 1, // mobile
330
+ touchstart: 1, touchmove: 1, touchend: 1, touchcancel: 1, // touch
331
+ gesturestart: 1, gesturechange: 1, gestureend: 1, // gesture
332
+ focus: 1, blur: 1, change: 1, reset: 1, select: 1, submit: 1, //form elements
333
+ load: 1, unload: 1, beforeunload: 1, resize: 1, move: 1, DOMContentLoaded: 1, readystatechange: 1, //window
334
+ error: 1, abort: 1, scroll: 1 }; //misc
335
+
336
+ function check(event) {
337
+ var related = event.relatedTarget;
338
+ if (!related) {
339
+ return related == null;
340
+ }
341
+ return (related != this && related.prefix != 'xul' && !/document/.test(this.toString()) && !isDescendant(this, related));
342
+ }
343
+
344
+ var customEvents = {
345
+ mouseenter: { base: 'mouseover', condition: check },
346
+ mouseleave: { base: 'mouseout', condition: check },
347
+ mousewheel: { base: /Firefox/.test(navigator.userAgent) ? 'DOMMouseScroll' : 'mousewheel' }
348
+ };
349
+
350
+ var bean = { add: add, remove: remove, clone: clone, fire: fire };
351
+
352
+ var clean = function (el) {
353
+ var uid = remove(el).__uid;
354
+ if (uid) {
355
+ delete collected[uid];
356
+ delete registry[uid];
357
+ }
358
+ };
359
+
360
+ if (context[attachEvent]) {
361
+ add(context, 'unload', function () {
362
+ for (var k in collected) {
363
+ collected.hasOwnProperty(k) && clean(collected[k]);
364
+ }
365
+ context.CollectGarbage && CollectGarbage();
366
+ });
367
+ }
368
+
369
+ var oldBean = context.bean;
370
+ bean.noConflict = function () {
371
+ context.bean = oldBean;
372
+ return this;
373
+ };
374
+
375
+ (typeof module !== 'undefined' && module.exports) ?
376
+ (module.exports = bean) :
377
+ (context['bean'] = bean);
378
+
379
+ }(this);!function ($) {
380
+ var b = bean.noConflict(),
381
+ integrate = function (method, type, method2) {
382
+ var _args = type ? [type] : [];
383
+ return function () {
384
+ for (var args, i = 0, l = this.length; i < l; i++) {
385
+ args = [this[i]].concat(_args, Array.prototype.slice.call(arguments, 0));
386
+ args.length == 4 && args.push($);
387
+ !arguments.length && method == 'add' && type && (method = 'fire');
388
+ b[method].apply(this, args);
389
+ }
390
+ return this;
391
+ };
392
+ };
393
+
394
+ var add = integrate('add'),
395
+ remove = integrate('remove'),
396
+ fire = integrate('fire');
397
+
398
+ var methods = {
399
+
400
+ on: add,
401
+ addListener: add,
402
+ bind: add,
403
+ listen: add,
404
+ delegate: add,
405
+
406
+ unbind: remove,
407
+ unlisten: remove,
408
+ removeListener: remove,
409
+ undelegate: remove,
410
+
411
+ emit: fire,
412
+ trigger: fire,
413
+
414
+ cloneEvents: integrate('clone'),
415
+
416
+ hover: function (enter, leave) {
417
+ for (var i = 0, l = this.length; i < l; i++) {
418
+ b.add.call(this, this[i], 'mouseenter', enter);
419
+ b.add.call(this, this[i], 'mouseleave', leave);
420
+ }
421
+ return this;
422
+ }
423
+ };
424
+
425
+ var shortcuts = [
426
+ 'blur', 'change', 'click', 'dblclick', 'error', 'focus', 'focusin',
427
+ 'focusout', 'keydown', 'keypress', 'keyup', 'load', 'mousedown',
428
+ 'mouseenter', 'mouseleave', 'mouseout', 'mouseover', 'mouseup',
429
+ 'resize', 'scroll', 'select', 'submit', 'unload'
430
+ ];
431
+
432
+ for (var i = shortcuts.length; i--;) {
433
+ var shortcut = shortcuts[i];
434
+ methods[shortcut] = integrate('add', shortcut);
435
+ }
436
+
437
+ $.ender(methods, true);
438
+ }(ender);
439
+ /*!
440
+ * bonzo.js - copyright @dedfat 2011
441
+ * https://github.com/ded/bonzo
442
+ * Follow our software http://twitter.com/dedfat
443
+ * MIT License
444
+ */
445
+ !function (context) {
446
+
447
+ var doc = context.document,
448
+ html = doc.documentElement,
449
+ query = null,
450
+ byTag = 'getElementsByTagName',
451
+ specialAttributes = /^checked|value|selected$/,
452
+ specialTags = /select|map|fieldset|table|tbody|tr|colgroup/i,
453
+ tagMap = { select: 'option', table: 'tbody', tr: 'td' },
454
+ stateAttributes = /^checked|selected$/,
455
+ ie = /msie/i.test(navigator.userAgent),
456
+ uidList = [],
457
+ uuids = 0,
458
+ digit = /^-?[\d\.]+$/,
459
+ px = 'px',
460
+ // commonly used methods
461
+ setAttribute = 'setAttribute',
462
+ getAttribute = 'getAttribute',
463
+ trimReplace = /(^\s*|\s*$)/g,
464
+ unitless = { lineHeight: 1, zoom: 1, zIndex: 1, opacity: 1 };
465
+
466
+ function classReg(c) {
467
+ return new RegExp("(^|\\s+)" + c + "(\\s+|$)");
468
+ }
469
+
470
+ function each(ar, fn, scope) {
471
+ for (var i = 0, l = ar.length; i < l; i++) {
472
+ fn.call(scope || ar[i], ar[i], i, ar);
473
+ }
474
+ return ar;
475
+ }
476
+
477
+ var trim = String.prototype.trim ?
478
+ function (s) {
479
+ return s.trim();
480
+ } :
481
+ function (s) {
482
+ return s.replace(trimReplace, '');
483
+ };
484
+
485
+ function camelize(s) {
486
+ return s.replace(/-(.)/g, function (m, m1) {
487
+ return m1.toUpperCase();
488
+ });
489
+ }
490
+
491
+ function is(node) {
492
+ return node && node.nodeName && node.nodeType == 1;
493
+ }
494
+
495
+ function some(ar, fn, scope) {
496
+ for (var i = 0, j = ar.length; i < j; ++i) {
497
+ if (fn.call(scope, ar[i], i, ar)) {
498
+ return true;
499
+ }
500
+ }
501
+ return false;
502
+ }
503
+
504
+ var getStyle = doc.defaultView && doc.defaultView.getComputedStyle ?
505
+ function (el, property) {
506
+ var value = null;
507
+ if (property == 'float') {
508
+ property = 'cssFloat';
509
+ }
510
+ var computed = doc.defaultView.getComputedStyle(el, '');
511
+ computed && (value = computed[camelize(property)]);
512
+ return el.style[property] || value;
513
+
514
+ } : (ie && html.currentStyle) ?
515
+
516
+ function (el, property) {
517
+ property = camelize(property);
518
+ property = property == 'float' ? 'styleFloat' : property;
519
+
520
+ if (property == 'opacity') {
521
+ var val = 100;
522
+ try {
523
+ val = el.filters['DXImageTransform.Microsoft.Alpha'].opacity;
524
+ } catch (e1) {
525
+ try {
526
+ val = el.filters('alpha').opacity;
527
+ } catch (e2) {}
528
+ }
529
+ return val / 100;
530
+ }
531
+ var value = el.currentStyle ? el.currentStyle[property] : null;
532
+ return el.style[property] || value;
533
+ } :
534
+
535
+ function (el, property) {
536
+ return el.style[camelize(property)];
537
+ };
538
+
539
+ function insert(target, host, fn) {
540
+ var i = 0, self = host || this, r = [];
541
+ each(normalize(query ? query(target) : target), function (t) {
542
+ each(self, function (el) {
543
+ var n = el.cloneNode(true);
544
+ fn(t, n);
545
+ r[i] = n;
546
+ i++;
547
+ });
548
+ }, this);
549
+ each(r, function (e, i) {
550
+ self[i] = e;
551
+ });
552
+ self.length = i;
553
+ return self;
554
+ }
555
+
556
+ function xy(el, x, y) {
557
+ var $el = bonzo(el),
558
+ style = $el.css('position'),
559
+ offset = $el.offset(),
560
+ rel = 'relative',
561
+ isRel = style == rel,
562
+ delta = [parseInt($el.css('left'), 10), parseInt($el.css('top'), 10)];
563
+
564
+ if (style == 'static') {
565
+ $el.css('position', rel);
566
+ style = rel;
567
+ }
568
+
569
+ isNaN(delta[0]) && (delta[0] = isRel ? 0 : el.offsetLeft);
570
+ isNaN(delta[1]) && (delta[1] = isRel ? 0 : el.offsetTop);
571
+
572
+ x !== null && (el.style.left = x - offset.left + delta[0] + 'px');
573
+ y !== null && (el.style.top = y - offset.top + delta[1] + 'px');
574
+
575
+ }
576
+
577
+ function Bonzo(elements) {
578
+ this.length = 0;
579
+ this.original = elements;
580
+ if (elements) {
581
+ elements = typeof elements !== 'string' &&
582
+ !elements.nodeType &&
583
+ typeof elements.length !== 'undefined' ?
584
+ elements :
585
+ [elements];
586
+ this.length = elements.length;
587
+ for (var i = 0; i < elements.length; i++) {
588
+ this[i] = elements[i];
589
+ }
590
+ }
591
+ }
592
+
593
+ Bonzo.prototype = {
594
+
595
+ each: function (fn, scope) {
596
+ return each(this, fn, scope);
597
+ },
598
+
599
+ map: function (fn, reject) {
600
+ var m = [], n, i;
601
+ for (i = 0; i < this.length; i++) {
602
+ n = fn.call(this, this[i]);
603
+ reject ? (reject(n) && m.push(n)) : m.push(n);
604
+ }
605
+ return m;
606
+ },
607
+
608
+ first: function () {
609
+ return bonzo(this[0]);
610
+ },
611
+
612
+ last: function () {
613
+ return bonzo(this[this.length - 1]);
614
+ },
615
+
616
+ html: function (h, text) {
617
+ var method = text ?
618
+ html.textContent == null ?
619
+ 'innerText' :
620
+ 'textContent' :
621
+ 'innerHTML', m;
622
+ function append(el, tag) {
623
+ while (el.firstChild) {
624
+ el.removeChild(el.firstChild);
625
+ }
626
+ each(normalize(h, tag), function (node) {
627
+ el.appendChild(node);
628
+ });
629
+ }
630
+ return typeof h !== 'undefined' ?
631
+ this.each(function (el) {
632
+ (m = el.tagName.match(specialTags)) ?
633
+ append(el, m[0]) :
634
+ (el[method] = h);
635
+ }) :
636
+ this[0] ? this[0][method] : '';
637
+ },
638
+
639
+ text: function (text) {
640
+ return this.html(text, 1);
641
+ },
642
+
643
+ addClass: function (c) {
644
+ return this.each(function (el) {
645
+ this.hasClass(el, c) || (el.className = trim(el.className + ' ' + c));
646
+ }, this);
647
+ },
648
+
649
+ removeClass: function (c) {
650
+ return this.each(function (el) {
651
+ this.hasClass(el, c) && (el.className = trim(el.className.replace(classReg(c), ' ')));
652
+ }, this);
653
+ },
654
+
655
+ hasClass: function (el, c) {
656
+ return typeof c == 'undefined' ?
657
+ some(this, function (i) {
658
+ return classReg(el).test(i.className);
659
+ }) :
660
+ classReg(c).test(el.className);
661
+ },
662
+
663
+ toggleClass: function (c, condition) {
664
+ if (typeof condition !== 'undefined' && !condition) {
665
+ return this;
666
+ }
667
+ return this.each(function (el) {
668
+ this.hasClass(el, c) ?
669
+ (el.className = trim(el.className.replace(classReg(c), ' '))) :
670
+ (el.className = trim(el.className + ' ' + c));
671
+ }, this);
672
+ },
673
+
674
+ show: function (type) {
675
+ return this.each(function (el) {
676
+ el.style.display = type || '';
677
+ });
678
+ },
679
+
680
+ hide: function (elements) {
681
+ return this.each(function (el) {
682
+ el.style.display = 'none';
683
+ });
684
+ },
685
+
686
+ append: function (node) {
687
+ return this.each(function (el) {
688
+ each(normalize(node), function (i) {
689
+ el.appendChild(i);
690
+ });
691
+ });
692
+ },
693
+
694
+ prepend: function (node) {
695
+ return this.each(function (el) {
696
+ var first = el.firstChild;
697
+ each(normalize(node), function (i) {
698
+ el.insertBefore(i, first);
699
+ });
700
+ });
701
+ },
702
+
703
+ appendTo: function (target, host) {
704
+ return insert.call(this, target, host, function (t, el) {
705
+ t.appendChild(el);
706
+ });
707
+ },
708
+
709
+ prependTo: function (target, host) {
710
+ return insert.call(this, target, host, function (t, el) {
711
+ t.insertBefore(el, t.firstChild);
712
+ });
713
+ },
714
+
715
+ next: function () {
716
+ return this.related('nextSibling');
717
+ },
718
+
719
+ previous: function () {
720
+ return this.related('previousSibling');
721
+ },
722
+
723
+ related: function (method) {
724
+ return this.map(
725
+ function (el) {
726
+ el = el[method];
727
+ while (el && el.nodeType !== 1) {
728
+ el = el[method];
729
+ }
730
+ return el || 0;
731
+ },
732
+ function (el) {
733
+ return el;
734
+ }
735
+ );
736
+ },
737
+
738
+ before: function (node) {
739
+ return this.each(function (el) {
740
+ each(bonzo.create(node), function (i) {
741
+ el.parentNode.insertBefore(i, el);
742
+ });
743
+ });
744
+ },
745
+
746
+ after: function (node) {
747
+ return this.each(function (el) {
748
+ each(bonzo.create(node), function (i) {
749
+ el.parentNode.insertBefore(i, el.nextSibling);
750
+ });
751
+ });
752
+ },
753
+
754
+ insertBefore: function (target, host) {
755
+ return insert.call(this, target, host, function (t, el) {
756
+ t.parentNode.insertBefore(el, t);
757
+ });
758
+ },
759
+
760
+ insertAfter: function (target, host) {
761
+ return insert.call(this, target, host, function (t, el) {
762
+ var sibling = t.nextSibling;
763
+ if (sibling) {
764
+ t.parentNode.insertBefore(el, sibling);
765
+ }
766
+ else {
767
+ t.parentNode.appendChild(el);
768
+ }
769
+ });
770
+ },
771
+
772
+ css: function (o, v) {
773
+ // is this a request for just getting a style?
774
+ if (v === undefined && typeof o == 'string') {
775
+ return getStyle(this[0], o);
776
+ }
777
+ var iter = o;
778
+ if (typeof o == 'string') {
779
+ iter = {};
780
+ iter[o] = v;
781
+ }
782
+
783
+ if (ie && iter.opacity) {
784
+ // oh this 'ol gamut
785
+ iter.filter = 'alpha(opacity=' + (iter.opacity * 100) + ')';
786
+ // give it layout
787
+ iter.zoom = o.zoom || 1;
788
+ delete iter.opacity;
789
+ }
790
+
791
+ if (v = iter['float']) {
792
+ // float is a reserved style word. w3 uses cssFloat, ie uses styleFloat
793
+ ie ? (iter.styleFloat = v) : (iter.cssFloat = v);
794
+ delete iter['float'];
795
+ }
796
+
797
+ var fn = function (el, p, v) {
798
+ for (var k in iter) {
799
+ if (iter.hasOwnProperty(k)) {
800
+ v = iter[k];
801
+ // change "5" to "5px" - unless you're line-height, which is allowed
802
+ (p = camelize(k)) && digit.test(v) && !(p in unitless) && (v += px);
803
+ el.style[p] = v;
804
+ }
805
+ }
806
+ };
807
+ return this.each(fn);
808
+ },
809
+
810
+ offset: function (x, y) {
811
+ if (x || y) {
812
+ return this.each(function (el) {
813
+ xy(el, x, y);
814
+ });
815
+ }
816
+ var el = this[0];
817
+ var width = el.offsetWidth;
818
+ var height = el.offsetHeight;
819
+ var top = el.offsetTop;
820
+ var left = el.offsetLeft;
821
+ while (el = el.offsetParent) {
822
+ top = top + el.offsetTop;
823
+ left = left + el.offsetLeft;
824
+ }
825
+
826
+ return {
827
+ top: top,
828
+ left: left,
829
+ height: height,
830
+ width: width
831
+ };
832
+ },
833
+
834
+ attr: function (k, v) {
835
+ var el = this[0];
836
+ return typeof v == 'undefined' ?
837
+ specialAttributes.test(k) ?
838
+ stateAttributes.test(k) && typeof el[k] == 'string' ?
839
+ true : el[k] : el[getAttribute](k) :
840
+ this.each(function (el) {
841
+ k == 'value' ? (el.value = v) : el[setAttribute](k, v);
842
+ });
843
+ },
844
+
845
+ val: function (s) {
846
+ return (typeof s == 'string') ? this.attr('value', s) : this[0].value;
847
+ },
848
+
849
+ removeAttr: function (k) {
850
+ return this.each(function (el) {
851
+ el.removeAttribute(k);
852
+ });
853
+ },
854
+
855
+ data: function (k, v) {
856
+ var el = this[0];
857
+ if (typeof v === 'undefined') {
858
+ el[getAttribute]('data-node-uid') || el[setAttribute]('data-node-uid', ++uuids);
859
+ var uid = el[getAttribute]('data-node-uid');
860
+ uidList[uid] || (uidList[uid] = {});
861
+ return uidList[uid][k];
862
+ } else {
863
+ return this.each(function (el) {
864
+ el[getAttribute]('data-node-uid') || el[setAttribute]('data-node-uid', ++uuids);
865
+ var uid = el[getAttribute]('data-node-uid');
866
+ var o = {};
867
+ o[k] = v;
868
+ uidList[uid] = o;
869
+ });
870
+ }
871
+ },
872
+
873
+ remove: function () {
874
+ return this.each(function (el) {
875
+ el.parentNode && el.parentNode.removeChild(el);
876
+ });
877
+ },
878
+
879
+ empty: function () {
880
+ return this.each(function (el) {
881
+ while (el.firstChild) {
882
+ el.removeChild(el.firstChild);
883
+ }
884
+ });
885
+ },
886
+
887
+ detach: function () {
888
+ return this.map(function (el) {
889
+ return el.parentNode.removeChild(el);
890
+ });
891
+ },
892
+
893
+ scrollTop: function (y) {
894
+ return scroll.call(this, null, y, 'y');
895
+ },
896
+
897
+ scrollLeft: function (x) {
898
+ return scroll.call(this, x, null, 'x');
899
+ }
900
+ };
901
+
902
+ function normalize(node, tag) {
903
+ return typeof node == 'string' ? bonzo.create(node, tag) : is(node) ? [node] : node;
904
+ }
905
+
906
+ function scroll(x, y, type) {
907
+ var el = this[0];
908
+ if (x == null && y == null) {
909
+ return (isBody(el) ? getWindowScroll() : { x: el.scrollLeft, y: el.scrollTop })[type];
910
+ }
911
+ if (isBody(el)) {
912
+ window.scrollTo(x, y);
913
+ } else {
914
+ x != null && (el.scrollLeft = x);
915
+ y != null && (el.scrollTop = y);
916
+ }
917
+ return this;
918
+ }
919
+
920
+ function isBody(element) {
921
+ return element === window || (/^(?:body|html)$/i).test(element.tagName);
922
+ }
923
+
924
+ function getWindowScroll() {
925
+ return { x: window.pageXOffset || html.scrollLeft, y: window.pageYOffset || html.scrollTop };
926
+ }
927
+
928
+ function bonzo(els, host) {
929
+ return new Bonzo(els, host);
930
+ }
931
+
932
+ bonzo.setQueryEngine = function (q) {
933
+ query = q;
934
+ delete bonzo.setQueryEngine;
935
+ };
936
+
937
+ bonzo.aug = function (o, target) {
938
+ for (var k in o) {
939
+ o.hasOwnProperty(k) && ((target || Bonzo.prototype)[k] = o[k]);
940
+ }
941
+ };
942
+
943
+ bonzo.create = function (node, tag) {
944
+ return typeof node == 'string' ?
945
+ function () {
946
+ var t = tag ? tagMap[tag.toLowerCase()] : null;
947
+ var el = doc.createElement(t || 'div'), els = [];
948
+ if (tag) {
949
+ var bitches = node.match(new RegExp("<" + t + ">.+?<\\/" + t + ">", "g"));
950
+ each(bitches, function (m) {
951
+ m = m.replace(/<(.+)>(.+?)<\/\1>/, '$2');
952
+ var bah = doc.createElement(t);
953
+ bah.appendChild(doc.createDocumentFragment(m));
954
+ el.appendChild(bah);
955
+ });
956
+ } else {
957
+ el.innerHTML = node;
958
+ }
959
+ var nodes = el.childNodes;
960
+ el = el.firstChild;
961
+ els.push(el);
962
+ while (el = el.nextSibling) {
963
+ (el.nodeType == 1) && els.push(el);
964
+ }
965
+ return els;
966
+
967
+ }() : is(node) ? [node.cloneNode(true)] : [];
968
+ };
969
+
970
+ bonzo.doc = function () {
971
+ var w = html.scrollWidth,
972
+ h = html.scrollHeight,
973
+ vp = this.viewport();
974
+ return {
975
+ width: Math.max(w, vp.width),
976
+ height: Math.max(h, vp.height)
977
+ };
978
+ };
979
+
980
+ bonzo.firstChild = function (el) {
981
+ for (var c = el.childNodes, i = 0, j = (c && c.length) || 0, e; i < j; i++) {
982
+ if (c[i].nodeType === 1) {
983
+ e = c[j = i];
984
+ }
985
+ }
986
+ return e;
987
+ };
988
+
989
+ bonzo.viewport = function () {
990
+ var h = self.innerHeight,
991
+ w = self.innerWidth;
992
+ ie && (h = html.clientHeight) && (w = html.clientWidth);
993
+ return {
994
+ width: w,
995
+ height: h
996
+ };
997
+ };
998
+
999
+ bonzo.isAncestor = 'compareDocumentPosition' in html ?
1000
+ function (container, element) {
1001
+ return (container.compareDocumentPosition(element) & 16) == 16;
1002
+ } : 'contains' in html ?
1003
+ function (container, element) {
1004
+ return container !== element && container.contains(element);
1005
+ } :
1006
+ function (container, element) {
1007
+ while (element = element.parentNode) {
1008
+ if (element === container) {
1009
+ return true;
1010
+ }
1011
+ }
1012
+ return false;
1013
+ };
1014
+
1015
+ var old = context.bonzo;
1016
+ bonzo.noConflict = function () {
1017
+ context.bonzo = old;
1018
+ return this;
1019
+ };
1020
+ context['bonzo'] = bonzo;
1021
+
1022
+ }(this);!function ($) {
1023
+
1024
+ var b = bonzo;
1025
+ b.setQueryEngine($);
1026
+ $.ender(b);
1027
+ $.ender(b(), true);
1028
+ $.ender({
1029
+ create: function (node) {
1030
+ return $(b.create(node));
1031
+ }
1032
+ });
1033
+
1034
+ $.id = function (id) {
1035
+ return $([document.getElementById(id)]);
1036
+ };
1037
+
1038
+ function indexOf(ar, val) {
1039
+ for (var i = 0; i < ar.length; i++) {
1040
+ if (ar[i] === val) {
1041
+ return i;
1042
+ }
1043
+ }
1044
+ return -1;
1045
+ }
1046
+
1047
+ function uniq(ar) {
1048
+ var a = [], i, j;
1049
+ label:
1050
+ for (i = 0; i < ar.length; i++) {
1051
+ for (j = 0; j < a.length; j++) {
1052
+ if (a[j] == ar[i]) {
1053
+ continue label;
1054
+ }
1055
+ }
1056
+ a[a.length] = ar[i];
1057
+ }
1058
+ return a;
1059
+ }
1060
+
1061
+ $.ender({
1062
+ parents: function (selector, closest) {
1063
+ var collection = $(selector), j, k, p, r = [];
1064
+ for (j = 0, k = this.length; j < k; j++) {
1065
+ p = this[j];
1066
+ while (p = p.parentNode) {
1067
+ if (indexOf(collection, p) !== -1) {
1068
+ r.push(p);
1069
+ if (closest) break;
1070
+ }
1071
+ }
1072
+ }
1073
+ return $(uniq(r));
1074
+ },
1075
+
1076
+ closest: function (selector) {
1077
+ return this.parents(selector, true);
1078
+ },
1079
+
1080
+ first: function () {
1081
+ return $(this[0]);
1082
+ },
1083
+
1084
+ last: function () {
1085
+ return $(this[this.length - 1]);
1086
+ },
1087
+
1088
+ next: function () {
1089
+ return $(b(this).next());
1090
+ },
1091
+
1092
+ previous: function () {
1093
+ return $(b(this).previous());
1094
+ },
1095
+
1096
+ appendTo: function (t) {
1097
+ return b(this.selector).appendTo(t, this);
1098
+ },
1099
+
1100
+ prependTo: function (t) {
1101
+ return b(this.selector).prependTo(t, this);
1102
+ },
1103
+
1104
+ insertAfter: function (t) {
1105
+ return b(this.selector).insertAfter(t, this);
1106
+ },
1107
+
1108
+ insertBefore: function (t) {
1109
+ return b(this.selector).insertBefore(t, this);
1110
+ },
1111
+
1112
+ siblings: function () {
1113
+ var i, l, p, r = [];
1114
+ for (i = 0, l = this.length; i < l; i++) {
1115
+ p = this[i];
1116
+ while (p = p.previousSibling) {
1117
+ p.nodeType == 1 && r.push(p);
1118
+ }
1119
+ p = this[i];
1120
+ while (p = p.nextSibling) {
1121
+ p.nodeType == 1 && r.push(p);
1122
+ }
1123
+ }
1124
+ return $(r);
1125
+ },
1126
+
1127
+ children: function () {
1128
+ var el, r = [];
1129
+ for (i = 0, l = this.length; i < l; i++) {
1130
+ if (!(el = b.firstChild(this[i]))) {
1131
+ continue;
1132
+ }
1133
+ r.push(el);
1134
+ while (el = el.nextSibling) {
1135
+ el.nodeType == 1 && r.push(el);
1136
+ }
1137
+ }
1138
+ return $(uniq(r));
1139
+ },
1140
+
1141
+ height: function (v) {
1142
+ return v ? this.css('height', v) : parseInt(this.css('height'), 10);
1143
+ },
1144
+
1145
+ width: function (v) {
1146
+ return v ? this.css('width', v) : parseInt(this.css('width'), 10);
1147
+ }
1148
+ }, true);
1149
+
1150
+ }(ender || $);
1151
+
1152
+ !function () { var exports = {}, module = { exports: exports }; !function (doc) {
1153
+ var loaded = 0, fns = [], ol, f = false,
1154
+ testEl = doc.createElement('a'),
1155
+ domContentLoaded = 'DOMContentLoaded',
1156
+ addEventListener = 'addEventListener',
1157
+ onreadystatechange = 'onreadystatechange';
1158
+
1159
+ /^loade|c/.test(doc.readyState) && (loaded = 1);
1160
+
1161
+ function flush() {
1162
+ loaded = 1;
1163
+ for (var i = 0, l = fns.length; i < l; i++) {
1164
+ fns[i]();
1165
+ }
1166
+ }
1167
+ doc[addEventListener] && doc[addEventListener](domContentLoaded, function fn() {
1168
+ doc.removeEventListener(domContentLoaded, fn, f);
1169
+ flush();
1170
+ }, f);
1171
+
1172
+
1173
+ testEl.doScroll && doc.attachEvent(onreadystatechange, (ol = function ol() {
1174
+ if (/^c/.test(doc.readyState)) {
1175
+ doc.detachEvent(onreadystatechange, ol);
1176
+ flush();
1177
+ }
1178
+ }));
1179
+
1180
+ var domReady = testEl.doScroll ?
1181
+ function (fn) {
1182
+ self != top ?
1183
+ !loaded ?
1184
+ fns.push(fn) :
1185
+ fn() :
1186
+ !function () {
1187
+ try {
1188
+ testEl.doScroll('left');
1189
+ } catch (e) {
1190
+ return setTimeout(function() {
1191
+ domReady(fn);
1192
+ }, 50);
1193
+ }
1194
+ fn();
1195
+ }();
1196
+ } :
1197
+ function (fn) {
1198
+ loaded ? fn() : fns.push(fn);
1199
+ };
1200
+
1201
+ (typeof module !== 'undefined') && module.exports ?
1202
+ (module.exports = {domReady: domReady}) :
1203
+ (window.domReady = domReady);
1204
+
1205
+ }(document); $.ender(module.exports); }.call($);
1206
+ /*!
1207
+ * qwery.js - copyright @dedfat
1208
+ * https://github.com/ded/qwery
1209
+ * Follow our software http://twitter.com/dedfat
1210
+ * MIT License
1211
+ */
1212
+
1213
+ !function (context, doc) {
1214
+
1215
+ var c, i, j, k, l, m, o, p, r, v,
1216
+ el, node, len, found, classes, item, items, token,
1217
+ id = /#([\w\-]+)/,
1218
+ clas = /\.[\w\-]+/g,
1219
+ idOnly = /^#([\w\-]+$)/,
1220
+ classOnly = /^\.([\w\-]+)$/,
1221
+ tagOnly = /^([\w\-]+)$/,
1222
+ tagAndOrClass = /^([\w]+)?\.([\w\-]+)$/,
1223
+ html = doc.documentElement,
1224
+ tokenizr = /\s(?![\s\w\-\/\?\&\=\:\.\(\)\!,@#%<>\{\}\$\*\^'"]*\])/,
1225
+ specialChars = /([.*+?\^=!:${}()|\[\]\/\\])/g,
1226
+ simple = /^([a-z0-9]+)?(?:([\.\#]+[\w\-\.#]+)?)/,
1227
+ attr = /\[([\w\-]+)(?:([\|\^\$\*\~]?\=)['"]?([ \w\-\/\?\&\=\:\.\(\)\!,@#%<>\{\}\$\*\^]+)["']?)?\]/,
1228
+ chunker = new RegExp(simple.source + '(' + attr.source + ')?');
1229
+
1230
+ function array(ar) {
1231
+ r = [];
1232
+ for (i = 0, len = ar.length; i < len; i++) {
1233
+ r[i] = ar[i];
1234
+ }
1235
+ return r;
1236
+ }
1237
+
1238
+ var cache = function () {
1239
+ this.c = {};
1240
+ };
1241
+ cache.prototype = {
1242
+ g: function (k) {
1243
+ return this.c[k] || undefined;
1244
+ },
1245
+ s: function (k, v) {
1246
+ this.c[k] = v;
1247
+ return v;
1248
+ }
1249
+ };
1250
+
1251
+ var classCache = new cache(),
1252
+ cleanCache = new cache(),
1253
+ attrCache = new cache(),
1254
+ tokenCache = new cache();
1255
+
1256
+ function q(query) {
1257
+ return query.match(chunker);
1258
+ }
1259
+
1260
+ function interpret(whole, tag, idsAndClasses, wholeAttribute, attribute, qualifier, value) {
1261
+ var m, c, k;
1262
+ if (tag && this.tagName.toLowerCase() !== tag) {
1263
+ return false;
1264
+ }
1265
+ if (idsAndClasses && (m = idsAndClasses.match(id)) && m[1] !== this.id) {
1266
+ return false;
1267
+ }
1268
+ if (idsAndClasses && (classes = idsAndClasses.match(clas))) {
1269
+ for (i = classes.length; i--;) {
1270
+ c = classes[i].slice(1);
1271
+ if (!(classCache.g(c) || classCache.s(c, new RegExp('(^|\\s+)' + c + '(\\s+|$)'))).test(this.className)) {
1272
+ return false;
1273
+ }
1274
+ }
1275
+ }
1276
+ if (wholeAttribute && !value) {
1277
+ o = this.attributes;
1278
+ for (k in o) {
1279
+ if (Object.prototype.hasOwnProperty.call(o, k) && (o[k].name || k) == attribute) {
1280
+ return this;
1281
+ }
1282
+ }
1283
+ }
1284
+ if (wholeAttribute && !checkAttr(qualifier, this.getAttribute(attribute) || '', value)) {
1285
+ return false;
1286
+ }
1287
+ return this;
1288
+ }
1289
+
1290
+ function loopAll(tokens) {
1291
+ var r = [], token = tokens.pop(), intr = q(token), tag = intr[1] || '*', i, l, els,
1292
+ root = tokens.length && (m = tokens[0].match(idOnly)) ? doc.getElementById(m[1]) : doc;
1293
+ if (!root) {
1294
+ return r;
1295
+ }
1296
+ els = root.getElementsByTagName(tag);
1297
+ for (i = 0, l = els.length; i < l; i++) {
1298
+ el = els[i];
1299
+ if (item = interpret.apply(el, intr)) {
1300
+ r.push(item);
1301
+ }
1302
+ }
1303
+ return r;
1304
+ }
1305
+
1306
+ function clean(s) {
1307
+ return cleanCache.g(s) || cleanCache.s(s, s.replace(specialChars, '\\$1'));
1308
+ }
1309
+
1310
+ function checkAttr(qualify, actual, val) {
1311
+ switch (qualify) {
1312
+ case '=':
1313
+ return actual == val;
1314
+ case '^=':
1315
+ return actual.match(attrCache.g('^=' + val) || attrCache.s('^=' + val, new RegExp('^' + clean(val))));
1316
+ case '$=':
1317
+ return actual.match(attrCache.g('$=' + val) || attrCache.s('$=' + val, new RegExp(clean(val) + '$')));
1318
+ case '*=':
1319
+ return actual.match(attrCache.g(val) || attrCache.s(val, new RegExp(clean(val))));
1320
+ case '~=':
1321
+ return actual.match(attrCache.g('~=' + val) || attrCache.s('~=' + val, new RegExp('(?:^|\\s+)' + clean(val) + '(?:\\s+|$)')));
1322
+ case '|=':
1323
+ return actual.match(attrCache.g('|=' + val) || attrCache.s('|=' + val, new RegExp('^' + clean(val) + '(-|$)')));
1324
+ }
1325
+ return false;
1326
+ }
1327
+
1328
+ function _qwery(selector) {
1329
+ var r = [], ret = [], i, l,
1330
+ tokens = tokenCache.g(selector) || tokenCache.s(selector, selector.split(tokenizr));
1331
+ tokens = tokens.slice(0);
1332
+ if (!tokens.length) {
1333
+ return r;
1334
+ }
1335
+ r = loopAll(tokens);
1336
+ if (!tokens.length) {
1337
+ return r;
1338
+ }
1339
+ // loop through all descendent tokens
1340
+ for (j = 0, l = r.length, k = 0; j < l; j++) {
1341
+ node = r[j];
1342
+ p = node;
1343
+ // loop through each token
1344
+ for (i = tokens.length; i--;) {
1345
+ z: // loop through parent nodes
1346
+ while (p !== html && (p = p.parentNode)) {
1347
+ if (found = interpret.apply(p, q(tokens[i]))) {
1348
+ break z;
1349
+ }
1350
+ }
1351
+ }
1352
+ found && (ret[k++] = node);
1353
+ }
1354
+ return ret;
1355
+ }
1356
+
1357
+ function boilerPlate(selector, _root, fn) {
1358
+ var root = (typeof _root == 'string') ? fn(_root)[0] : (_root || doc);
1359
+ if (selector === window || isNode(selector)) {
1360
+ return !_root || (selector !== window && isNode(root) && isAncestor(selector, root)) ? [selector] : [];
1361
+ }
1362
+ if (selector && typeof selector === 'object' && isFinite(selector.length)) {
1363
+ return array(selector);
1364
+ }
1365
+ if (m = selector.match(idOnly)) {
1366
+ return (el = doc.getElementById(m[1])) ? [el] : [];
1367
+ }
1368
+ if (m = selector.match(tagOnly)) {
1369
+ return array(root.getElementsByTagName(m[1]));
1370
+ }
1371
+ return false;
1372
+ }
1373
+
1374
+ function isNode(el) {
1375
+ return (el && el.nodeType && (el.nodeType == 1 || el.nodeType == 9));
1376
+ }
1377
+
1378
+ function uniq(ar) {
1379
+ var a = [], i, j;
1380
+ label:
1381
+ for (i = 0; i < ar.length; i++) {
1382
+ for (j = 0; j < a.length; j++) {
1383
+ if (a[j] == ar[i]) {
1384
+ continue label;
1385
+ }
1386
+ }
1387
+ a[a.length] = ar[i];
1388
+ }
1389
+ return a;
1390
+ }
1391
+
1392
+ function qwery(selector, _root) {
1393
+ var root = (typeof _root == 'string') ? qwery(_root)[0] : (_root || doc);
1394
+ if (!root || !selector) {
1395
+ return [];
1396
+ }
1397
+ if (m = boilerPlate(selector, _root, qwery)) {
1398
+ return m;
1399
+ }
1400
+ return select(selector, root);
1401
+ }
1402
+
1403
+ var isAncestor = 'compareDocumentPosition' in html ?
1404
+ function (element, container) {
1405
+ return (container.compareDocumentPosition(element) & 16) == 16;
1406
+ } : 'contains' in html ?
1407
+ function (element, container) {
1408
+ container = container == doc || container == window ? html : container;
1409
+ return container !== element && container.contains(element);
1410
+ } :
1411
+ function (element, container) {
1412
+ while (element = element.parentNode) {
1413
+ if (element === container) {
1414
+ return 1;
1415
+ }
1416
+ }
1417
+ return 0;
1418
+ },
1419
+
1420
+ select = (doc.querySelector && doc.querySelectorAll) ?
1421
+ function (selector, root) {
1422
+ if (doc.getElementsByClassName && (m = selector.match(classOnly))) {
1423
+ return array((root).getElementsByClassName(m[1]));
1424
+ }
1425
+ return array((root).querySelectorAll(selector));
1426
+ } :
1427
+ function (selector, root) {
1428
+ var result = [], collection, collections = [], i;
1429
+ if (m = selector.match(tagAndOrClass)) {
1430
+ items = root.getElementsByTagName(m[1] || '*');
1431
+ r = classCache.g(m[2]) || classCache.s(m[2], new RegExp('(^|\\s+)' + m[2] + '(\\s+|$)'));
1432
+ for (i = 0, l = items.length, j = 0; i < l; i++) {
1433
+ r.test(items[i].className) && (result[j++] = items[i]);
1434
+ }
1435
+ return result;
1436
+ }
1437
+ for (i = 0, items = selector.split(','), l = items.length; i < l; i++) {
1438
+ collections[i] = _qwery(items[i]);
1439
+ }
1440
+ for (i = 0, l = collections.length; i < l && (collection = collections[i]); i++) {
1441
+ var ret = collection;
1442
+ if (root !== doc) {
1443
+ ret = [];
1444
+ for (j = 0, m = collection.length; j < m && (element = collection[j]); j++) {
1445
+ // make sure element is a descendent of root
1446
+ isAncestor(element, root) && ret.push(element);
1447
+ }
1448
+ }
1449
+ result = result.concat(ret);
1450
+ }
1451
+ return uniq(result);
1452
+ };
1453
+
1454
+ qwery.uniq = uniq;
1455
+ var oldQwery = context.qwery;
1456
+ qwery.noConflict = function () {
1457
+ context.qwery = oldQwery;
1458
+ return this;
1459
+ };
1460
+ context['qwery'] = qwery;
1461
+
1462
+ }(this, document);!function (doc) {
1463
+ var q = qwery.noConflict();
1464
+ function create(node, root) {
1465
+ var el = (root || doc).createElement('div'), els = [];
1466
+ el.innerHTML = node;
1467
+ var nodes = el.childNodes;
1468
+ el = el.firstChild;
1469
+ els.push(el);
1470
+ while (el = el.nextSibling) {
1471
+ (el.nodeType == 1) && els.push(el);
1472
+ }
1473
+ return els;
1474
+ };
1475
+ $._select = function (s, r) {
1476
+ return /^\s*</.test(s) ? create(s, r) : q(s, r);
1477
+ };
1478
+ $.ender({
1479
+ find: function (s) {
1480
+ var r = [], i, l, j, k, els;
1481
+ for (i = 0, l = this.length; i < l; i++) {
1482
+ els = q(s, this[i]);
1483
+ for (j = 0, k = els.length; j < k; j++) {
1484
+ r.push(els[j]);
1485
+ }
1486
+ }
1487
+ return $(q.uniq(r));
1488
+ }
1489
+ , and: function (s) {
1490
+ var plus = $(s);
1491
+ for (var i = this.length, j = 0, l = this.length + plus.length; i < l; i++, j++) {
1492
+ this[i] = plus[j];
1493
+ }
1494
+ return this;
1495
+ }
1496
+ }, true);
1497
+ }(document);