kirgudu_base 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (360) hide show
  1. checksums.yaml +15 -0
  2. data/MIT-LICENSE +20 -0
  3. data/README.rdoc +3 -0
  4. data/Rakefile +40 -0
  5. data/app/assets/images/kirgudu_base/404-fry.png +0 -0
  6. data/app/assets/images/kirgudu_base/Documents.gif +0 -0
  7. data/app/assets/images/kirgudu_base/Meetings.gif +0 -0
  8. data/app/assets/images/kirgudu_base/Repair.gif +0 -0
  9. data/app/assets/images/kirgudu_base/ajax-loader.gif +0 -0
  10. data/app/assets/images/kirgudu_base/alpha.png +0 -0
  11. data/app/assets/images/kirgudu_base/alpha2.png +0 -0
  12. data/app/assets/images/kirgudu_base/arrow.png +0 -0
  13. data/app/assets/images/kirgudu_base/box.gif +0 -0
  14. data/app/assets/images/kirgudu_base/chosen-sprite.png +0 -0
  15. data/app/assets/images/kirgudu_base/company_pxg.png +0 -0
  16. data/app/assets/images/kirgudu_base/datatables/back_disabled.png +0 -0
  17. data/app/assets/images/kirgudu_base/datatables/back_enabled.png +0 -0
  18. data/app/assets/images/kirgudu_base/datatables/back_enabled_hover.png +0 -0
  19. data/app/assets/images/kirgudu_base/datatables/forward_disabled.png +0 -0
  20. data/app/assets/images/kirgudu_base/datatables/forward_enabled.png +0 -0
  21. data/app/assets/images/kirgudu_base/datatables/forward_enabled_hover.png +0 -0
  22. data/app/assets/images/kirgudu_base/datatables/sort_asc.png +0 -0
  23. data/app/assets/images/kirgudu_base/datatables/sort_asc_disabled.png +0 -0
  24. data/app/assets/images/kirgudu_base/datatables/sort_both.png +0 -0
  25. data/app/assets/images/kirgudu_base/datatables/sort_desc.png +0 -0
  26. data/app/assets/images/kirgudu_base/datatables/sort_desc_disabled.png +0 -0
  27. data/app/assets/images/kirgudu_base/fancybox/blank.gif +0 -0
  28. data/app/assets/images/kirgudu_base/fancybox/fancybox_buttons.png +0 -0
  29. data/app/assets/images/kirgudu_base/fancybox/fancybox_loading.gif +0 -0
  30. data/app/assets/images/kirgudu_base/fancybox/fancybox_overlay.png +0 -0
  31. data/app/assets/images/kirgudu_base/fancybox/fancybox_sprite.png +0 -0
  32. data/app/assets/images/kirgudu_base/favicon.png +0 -0
  33. data/app/assets/images/kirgudu_base/general/clock.png +0 -0
  34. data/app/assets/images/kirgudu_base/general/clock2.png +0 -0
  35. data/app/assets/images/kirgudu_base/general/coffee.png +0 -0
  36. data/app/assets/images/kirgudu_base/general/coffee2.png +0 -0
  37. data/app/assets/images/kirgudu_base/general/flipchart.png +0 -0
  38. data/app/assets/images/kirgudu_base/general/flipchart2.png +0 -0
  39. data/app/assets/images/kirgudu_base/general/sun.png +0 -0
  40. data/app/assets/images/kirgudu_base/general/sun2.png +0 -0
  41. data/app/assets/images/kirgudu_base/glyphicons-halflings-white.png +0 -0
  42. data/app/assets/images/kirgudu_base/glyphicons-halflings.png +0 -0
  43. data/app/assets/images/kirgudu_base/gradient1.png +0 -0
  44. data/app/assets/images/kirgudu_base/hue2.png +0 -0
  45. data/app/assets/images/kirgudu_base/ico_16_4_d.gif +0 -0
  46. data/app/assets/images/kirgudu_base/ico_18_1010.gif +0 -0
  47. data/app/assets/images/kirgudu_base/ico_18_112.gif +0 -0
  48. data/app/assets/images/kirgudu_base/ico_18_2020.gif +0 -0
  49. data/app/assets/images/kirgudu_base/icon-contacts.gif +0 -0
  50. data/app/assets/images/kirgudu_base/icon-employees.gif +0 -0
  51. data/app/assets/images/kirgudu_base/icon-list.gif +0 -0
  52. data/app/assets/images/kirgudu_base/icon-orders-green.gif +0 -0
  53. data/app/assets/images/kirgudu_base/icon-orders.gif +0 -0
  54. data/app/assets/images/kirgudu_base/icon-tenders.gif +0 -0
  55. data/app/assets/images/kirgudu_base/icons-sa7c41345d9.png +0 -0
  56. data/app/assets/images/kirgudu_base/login-corner.png +0 -0
  57. data/app/assets/images/kirgudu_base/login-corner2.png +0 -0
  58. data/app/assets/images/kirgudu_base/logo.png +0 -0
  59. data/app/assets/images/kirgudu_base/maps/m1.png +0 -0
  60. data/app/assets/images/kirgudu_base/maps/m2.png +0 -0
  61. data/app/assets/images/kirgudu_base/maps/m3.png +0 -0
  62. data/app/assets/images/kirgudu_base/meeting-schedule.gif +0 -0
  63. data/app/assets/images/kirgudu_base/menu_icons/calendar.png +0 -0
  64. data/app/assets/images/kirgudu_base/menu_icons/dashboard.png +0 -0
  65. data/app/assets/images/kirgudu_base/menu_icons/forms.png +0 -0
  66. data/app/assets/images/kirgudu_base/menu_icons/gallery.png +0 -0
  67. data/app/assets/images/kirgudu_base/menu_icons/grid.png +0 -0
  68. data/app/assets/images/kirgudu_base/menu_icons/maps.png +0 -0
  69. data/app/assets/images/kirgudu_base/menu_icons/others.png +0 -0
  70. data/app/assets/images/kirgudu_base/menu_icons/statistics.png +0 -0
  71. data/app/assets/images/kirgudu_base/menu_icons/tables.png +0 -0
  72. data/app/assets/images/kirgudu_base/menu_icons/widgets.png +0 -0
  73. data/app/assets/images/kirgudu_base/menu_top/profile-avatar.png +0 -0
  74. data/app/assets/images/kirgudu_base/menu_top/profile-messages.png +0 -0
  75. data/app/assets/images/kirgudu_base/message_avatar1.png +0 -0
  76. data/app/assets/images/kirgudu_base/message_avatar2.png +0 -0
  77. data/app/assets/images/kirgudu_base/message_avatar3.png +0 -0
  78. data/app/assets/images/kirgudu_base/message_avatar4.png +0 -0
  79. data/app/assets/images/kirgudu_base/message_avatar5.png +0 -0
  80. data/app/assets/images/kirgudu_base/message_avatar6.png +0 -0
  81. data/app/assets/images/kirgudu_base/message_avatar7.png +0 -0
  82. data/app/assets/images/kirgudu_base/news-icon-16.gif +0 -0
  83. data/app/assets/images/kirgudu_base/operator-def.png +0 -0
  84. data/app/assets/images/kirgudu_base/patterns/bg_dark.png +0 -0
  85. data/app/assets/images/kirgudu_base/patterns/bg_dark2.png +0 -0
  86. data/app/assets/images/kirgudu_base/patterns/bg_dark3.png +0 -0
  87. data/app/assets/images/kirgudu_base/patterns/whitey.png +0 -0
  88. data/app/assets/images/kirgudu_base/people-16-16-256.gif +0 -0
  89. data/app/assets/images/kirgudu_base/sales_24x24 (1).gif +0 -0
  90. data/app/assets/images/kirgudu_base/sample_avatar_big.jpg +0 -0
  91. data/app/assets/images/kirgudu_base/saturation2.png +0 -0
  92. data/app/assets/images/kirgudu_base/search.png +0 -0
  93. data/app/assets/images/kirgudu_base/toggle.png +0 -0
  94. data/app/assets/images/kirgudu_base/ui-bg_fine-grain_10_e7e7e7_60x60.png +0 -0
  95. data/app/assets/images/kirgudu_base/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
  96. data/app/assets/images/kirgudu_base/ui-bg_flat_0_ef4622_40x100.png +0 -0
  97. data/app/assets/images/kirgudu_base/ui-bg_glass_65_ffffff_1x400.png +0 -0
  98. data/app/assets/images/kirgudu_base/ui-bg_highlight-hard_100_e1e1e1_1x100.png +0 -0
  99. data/app/assets/images/kirgudu_base/ui-bg_highlight-hard_100_eeeeee_1x100.png +0 -0
  100. data/app/assets/images/kirgudu_base/ui-bg_highlight-hard_75_dddddd_1x100.png +0 -0
  101. data/app/assets/images/kirgudu_base/ui-bg_inset-soft_95_fef1ec_1x100.png +0 -0
  102. data/app/assets/images/kirgudu_base/ui-icons_454545_256x240.png +0 -0
  103. data/app/assets/images/kirgudu_base/ui-icons_525d66_256x240.png +0 -0
  104. data/app/assets/images/kirgudu_base/ui-icons_cd0a0a_256x240.png +0 -0
  105. data/app/assets/images/kirgudu_base/ui-icons_ffffff_256x240.png +0 -0
  106. data/app/assets/images/kirgudu_base/uploadify-cancel.png +0 -0
  107. data/app/assets/javascripts/kirgudu_base/ajax_form.js +52 -0
  108. data/app/assets/javascripts/kirgudu_base/application.js +15 -0
  109. data/app/assets/javascripts/kirgudu_base/avgrund.js +85 -0
  110. data/app/assets/javascripts/kirgudu_base/bootstrap-alert.js +90 -0
  111. data/app/assets/javascripts/kirgudu_base/bootstrap-button.js +96 -0
  112. data/app/assets/javascripts/kirgudu_base/bootstrap-carousel.js +176 -0
  113. data/app/assets/javascripts/kirgudu_base/bootstrap-collapse.js +158 -0
  114. data/app/assets/javascripts/kirgudu_base/bootstrap-colorpicker.js +520 -0
  115. data/app/assets/javascripts/kirgudu_base/bootstrap-datepicker.js +401 -0
  116. data/app/assets/javascripts/kirgudu_base/bootstrap-dropdown.js +150 -0
  117. data/app/assets/javascripts/kirgudu_base/bootstrap-modal.js +239 -0
  118. data/app/assets/javascripts/kirgudu_base/bootstrap-popover.js +103 -0
  119. data/app/assets/javascripts/kirgudu_base/bootstrap-scrollspy.js +151 -0
  120. data/app/assets/javascripts/kirgudu_base/bootstrap-tab.js +135 -0
  121. data/app/assets/javascripts/kirgudu_base/bootstrap-tooltip.js +275 -0
  122. data/app/assets/javascripts/kirgudu_base/bootstrap-transition.js +60 -0
  123. data/app/assets/javascripts/kirgudu_base/bootstrap-typeahead.js +300 -0
  124. data/app/assets/javascripts/kirgudu_base/bootstrap-wysihtml5.js +458 -0
  125. data/app/assets/javascripts/kirgudu_base/bootstrap.js +6 -0
  126. data/app/assets/javascripts/kirgudu_base/character-limit.js +18 -0
  127. data/app/assets/javascripts/kirgudu_base/chosen.jquery.min.js +10 -0
  128. data/app/assets/javascripts/kirgudu_base/client_main.js +1017 -0
  129. data/app/assets/javascripts/kirgudu_base/delete.js +67 -0
  130. data/app/assets/javascripts/kirgudu_base/excanvas.compiled.js +35 -0
  131. data/app/assets/javascripts/kirgudu_base/fileinput.jquery.js +98 -0
  132. data/app/assets/javascripts/kirgudu_base/fullcalendar.js +5220 -0
  133. data/app/assets/javascripts/kirgudu_base/gmap3.min.js +39 -0
  134. data/app/assets/javascripts/kirgudu_base/highcharts.js +246 -0
  135. data/app/assets/javascripts/kirgudu_base/jdpicker.js +555 -0
  136. data/app/assets/javascripts/kirgudu_base/jnavigate.jquery.min.js +2 -0
  137. data/app/assets/javascripts/kirgudu_base/jquery-ui-1.8.23.custom.min.js +125 -0
  138. data/app/assets/javascripts/kirgudu_base/jquery-ui-1.8.23.custom.min_d9931121.js +125 -0
  139. data/app/assets/javascripts/kirgudu_base/jquery.blockUI.js +534 -0
  140. data/app/assets/javascripts/kirgudu_base/jquery.bookblock.js +533 -0
  141. data/app/assets/javascripts/kirgudu_base/jquery.cookie.js +94 -0
  142. data/app/assets/javascripts/kirgudu_base/jquery.dataTables.js +12092 -0
  143. data/app/assets/javascripts/kirgudu_base/jquery.endless-scroll.js +343 -0
  144. data/app/assets/javascripts/kirgudu_base/jquery.fancybox-buttons.js +121 -0
  145. data/app/assets/javascripts/kirgudu_base/jquery.fancybox-media.js +196 -0
  146. data/app/assets/javascripts/kirgudu_base/jquery.fancybox-thumbs.js +162 -0
  147. data/app/assets/javascripts/kirgudu_base/jquery.fancybox.js +1985 -0
  148. data/app/assets/javascripts/kirgudu_base/jquery.flot.crosshair.js +167 -0
  149. data/app/assets/javascripts/kirgudu_base/jquery.flot.js +2599 -0
  150. data/app/assets/javascripts/kirgudu_base/jquery.flot.pie.js +751 -0
  151. data/app/assets/javascripts/kirgudu_base/jquery.flot.resize.js +60 -0
  152. data/app/assets/javascripts/kirgudu_base/jquery.flot.spider.js +314 -0
  153. data/app/assets/javascripts/kirgudu_base/jquery.flot.stack.js +184 -0
  154. data/app/assets/javascripts/kirgudu_base/jquery.history.js +1 -0
  155. data/app/assets/javascripts/kirgudu_base/jquery.jcarousel.min.js +16 -0
  156. data/app/assets/javascripts/kirgudu_base/jquery.jeditable.js +543 -0
  157. data/app/assets/javascripts/kirgudu_base/jquery.js +2 -0
  158. data/app/assets/javascripts/kirgudu_base/jquery.json-2.3.min.js +23 -0
  159. data/app/assets/javascripts/kirgudu_base/jquery.maskedinput-1.3.js +258 -0
  160. data/app/assets/javascripts/kirgudu_base/jquery.mousewheel-min.js +12 -0
  161. data/app/assets/javascripts/kirgudu_base/jquery.peity.min.js +11 -0
  162. data/app/assets/javascripts/kirgudu_base/jquery.simplemodal-1.4.4.js +716 -0
  163. data/app/assets/javascripts/kirgudu_base/jquery.slides.min.js +7 -0
  164. data/app/assets/javascripts/kirgudu_base/jquery.sparkline.min.js +5 -0
  165. data/app/assets/javascripts/kirgudu_base/jquery.tagsinput.js +354 -0
  166. data/app/assets/javascripts/kirgudu_base/jquery.tools.min.js +17 -0
  167. data/app/assets/javascripts/kirgudu_base/jquery.touchdown.js +54 -0
  168. data/app/assets/javascripts/kirgudu_base/jquery.uniform.min.js +17 -0
  169. data/app/assets/javascripts/kirgudu_base/jquery.uploadify-3.1.js +975 -0
  170. data/app/assets/javascripts/kirgudu_base/jquery.uploadify.min.js +16 -0
  171. data/app/assets/javascripts/kirgudu_base/jquery.url-2.0.js +174 -0
  172. data/app/assets/javascripts/kirgudu_base/jquery.validate.min.js +4 -0
  173. data/app/assets/javascripts/kirgudu_base/jquerypp.custom.js +301 -0
  174. data/app/assets/javascripts/kirgudu_base/justgage.1.0.1.min.js +12 -0
  175. data/app/assets/javascripts/kirgudu_base/main.js +157 -0
  176. data/app/assets/javascripts/kirgudu_base/modernizr.custom.32549.js +815 -0
  177. data/app/assets/javascripts/kirgudu_base/mustache.js +532 -0
  178. data/app/assets/javascripts/kirgudu_base/popbox.js +57 -0
  179. data/app/assets/javascripts/kirgudu_base/raphael.2.1.0.min.js +10 -0
  180. data/app/assets/javascripts/kirgudu_base/scripts.js +1277 -0
  181. data/app/assets/javascripts/kirgudu_base/scripts_OLD.js +204 -0
  182. data/app/assets/javascripts/kirgudu_base/sub_select.js +50 -0
  183. data/app/assets/javascripts/kirgudu_base/swfobject.js +5 -0
  184. data/app/assets/javascripts/kirgudu_base/syntax-highlighter/shAutoloader.js +17 -0
  185. data/app/assets/javascripts/kirgudu_base/syntax-highlighter/shBrushAS3.js +59 -0
  186. data/app/assets/javascripts/kirgudu_base/syntax-highlighter/shBrushAppleScript.js +75 -0
  187. data/app/assets/javascripts/kirgudu_base/syntax-highlighter/shBrushBash.js +59 -0
  188. data/app/assets/javascripts/kirgudu_base/syntax-highlighter/shBrushCSharp.js +65 -0
  189. data/app/assets/javascripts/kirgudu_base/syntax-highlighter/shBrushColdFusion.js +100 -0
  190. data/app/assets/javascripts/kirgudu_base/syntax-highlighter/shBrushCpp.js +97 -0
  191. data/app/assets/javascripts/kirgudu_base/syntax-highlighter/shBrushCss.js +91 -0
  192. data/app/assets/javascripts/kirgudu_base/syntax-highlighter/shBrushDelphi.js +55 -0
  193. data/app/assets/javascripts/kirgudu_base/syntax-highlighter/shBrushDiff.js +41 -0
  194. data/app/assets/javascripts/kirgudu_base/syntax-highlighter/shBrushErlang.js +52 -0
  195. data/app/assets/javascripts/kirgudu_base/syntax-highlighter/shBrushGroovy.js +67 -0
  196. data/app/assets/javascripts/kirgudu_base/syntax-highlighter/shBrushJScript.js +52 -0
  197. data/app/assets/javascripts/kirgudu_base/syntax-highlighter/shBrushJava.js +57 -0
  198. data/app/assets/javascripts/kirgudu_base/syntax-highlighter/shBrushJavaFX.js +58 -0
  199. data/app/assets/javascripts/kirgudu_base/syntax-highlighter/shBrushPerl.js +72 -0
  200. data/app/assets/javascripts/kirgudu_base/syntax-highlighter/shBrushPhp.js +88 -0
  201. data/app/assets/javascripts/kirgudu_base/syntax-highlighter/shBrushPlain.js +33 -0
  202. data/app/assets/javascripts/kirgudu_base/syntax-highlighter/shBrushPowerShell.js +74 -0
  203. data/app/assets/javascripts/kirgudu_base/syntax-highlighter/shBrushPython.js +64 -0
  204. data/app/assets/javascripts/kirgudu_base/syntax-highlighter/shBrushRuby.js +55 -0
  205. data/app/assets/javascripts/kirgudu_base/syntax-highlighter/shBrushSass.js +94 -0
  206. data/app/assets/javascripts/kirgudu_base/syntax-highlighter/shBrushScala.js +51 -0
  207. data/app/assets/javascripts/kirgudu_base/syntax-highlighter/shBrushSql.js +66 -0
  208. data/app/assets/javascripts/kirgudu_base/syntax-highlighter/shBrushVb.js +56 -0
  209. data/app/assets/javascripts/kirgudu_base/syntax-highlighter/shBrushXml.js +69 -0
  210. data/app/assets/javascripts/kirgudu_base/syntax-highlighter/shCore.js +17 -0
  211. data/app/assets/javascripts/kirgudu_base/syntax-highlighter/shLegacy.js +17 -0
  212. data/app/assets/javascripts/kirgudu_base/textarea-autogrow.js +55 -0
  213. data/app/assets/javascripts/kirgudu_base/tiny_mce.js +1 -0
  214. data/app/assets/javascripts/kirgudu_base/watch.js +81 -0
  215. data/app/assets/javascripts/kirgudu_base/web/inputPlaceholder.js +82 -0
  216. data/app/assets/javascripts/kirgudu_base/web/js.js +91 -0
  217. data/app/assets/javascripts/kirgudu_base/web/navigate.js +20 -0
  218. data/app/assets/javascripts/kirgudu_base/web/watch.js +1706 -0
  219. data/app/assets/javascripts/kirgudu_base/wysihtml5-0.3.0.min.js +261 -0
  220. data/app/assets/stylesheets/kirgudu_base/bootstrap.css +4551 -0
  221. data/app/assets/stylesheets/kirgudu_base/chosen.css +397 -0
  222. data/app/assets/stylesheets/kirgudu_base/fullcalendar.css +655 -0
  223. data/app/assets/stylesheets/kirgudu_base/info-message.css +79 -0
  224. data/app/assets/stylesheets/kirgudu_base/jdpicker.css +200 -0
  225. data/app/assets/stylesheets/kirgudu_base/jquery-ui-1.8.23.custom.css +1235 -0
  226. data/app/assets/stylesheets/kirgudu_base/jquery.fancybox-buttons.css +96 -0
  227. data/app/assets/stylesheets/kirgudu_base/jquery.fancybox-thumbs.css +54 -0
  228. data/app/assets/stylesheets/kirgudu_base/jquery.fancybox.css +249 -0
  229. data/app/assets/stylesheets/kirgudu_base/jquery.tagsinput.css +7 -0
  230. data/app/assets/stylesheets/kirgudu_base/main.css +1368 -0
  231. data/app/assets/stylesheets/kirgudu_base/menu.css +159 -0
  232. data/app/assets/stylesheets/kirgudu_base/popbox.css +58 -0
  233. data/app/assets/stylesheets/kirgudu_base/responsive.css +2249 -0
  234. data/app/assets/stylesheets/kirgudu_base/switcher.css +80 -0
  235. data/app/assets/stylesheets/kirgudu_base/syntax-higlignter/shCore.css +226 -0
  236. data/app/assets/stylesheets/kirgudu_base/syntax-higlignter/shCoreDefault.css +328 -0
  237. data/app/assets/stylesheets/kirgudu_base/syntax-higlignter/shCoreDjango.css +331 -0
  238. data/app/assets/stylesheets/kirgudu_base/syntax-higlignter/shCoreEclipse.css +339 -0
  239. data/app/assets/stylesheets/kirgudu_base/syntax-higlignter/shCoreEmacs.css +324 -0
  240. data/app/assets/stylesheets/kirgudu_base/syntax-higlignter/shCoreFadeToGrey.css +328 -0
  241. data/app/assets/stylesheets/kirgudu_base/syntax-higlignter/shCoreMDUltra.css +324 -0
  242. data/app/assets/stylesheets/kirgudu_base/syntax-higlignter/shCoreMidnight.css +324 -0
  243. data/app/assets/stylesheets/kirgudu_base/syntax-higlignter/shCoreRDark.css +324 -0
  244. data/app/assets/stylesheets/kirgudu_base/syntax-higlignter/shThemeDefault.css +117 -0
  245. data/app/assets/stylesheets/kirgudu_base/syntax-higlignter/shThemeDjango.css +120 -0
  246. data/app/assets/stylesheets/kirgudu_base/syntax-higlignter/shThemeEclipse.css +128 -0
  247. data/app/assets/stylesheets/kirgudu_base/syntax-higlignter/shThemeEmacs.css +113 -0
  248. data/app/assets/stylesheets/kirgudu_base/syntax-higlignter/shThemeFadeToGrey.css +117 -0
  249. data/app/assets/stylesheets/kirgudu_base/syntax-higlignter/shThemeMDUltra.css +113 -0
  250. data/app/assets/stylesheets/kirgudu_base/syntax-higlignter/shThemeMidnight.css +113 -0
  251. data/app/assets/stylesheets/kirgudu_base/syntax-higlignter/shThemeRDark.css +113 -0
  252. data/app/assets/stylesheets/kirgudu_base/uploadify.css +92 -0
  253. data/app/controllers/kirgudu_base/admin_controller.rb +91 -0
  254. data/app/controllers/kirgudu_base/application_controller.rb +676 -0
  255. data/app/controllers/kirgudu_base/cabinet_controller.rb +93 -0
  256. data/app/controllers/kirgudu_base/facade_controller.rb +82 -0
  257. data/app/helpers/kirgudu_base/application_helper.rb +486 -0
  258. data/app/helpers/kirgudu_base/breadcrumbs_helper.rb +27 -0
  259. data/app/helpers/kirgudu_base/class_helper.rb +32 -0
  260. data/app/helpers/kirgudu_base/controllers/basic_actions.rb +625 -0
  261. data/app/helpers/kirgudu_base/controllers/container_items_management_actions.rb +118 -0
  262. data/app/helpers/kirgudu_base/controllers/container_items_sorting_actions.rb +64 -0
  263. data/app/helpers/kirgudu_base/controllers/dynamic_pages.rb +30 -0
  264. data/app/helpers/kirgudu_base/controllers/obligatory_filters.rb +29 -0
  265. data/app/helpers/kirgudu_base/controllers/transaction_wrapper.rb +138 -0
  266. data/app/helpers/kirgudu_base/form_builder.rb +474 -0
  267. data/app/helpers/kirgudu_base/gui_helper.rb +443 -0
  268. data/app/helpers/kirgudu_base/models/basic_management_urls.rb +104 -0
  269. data/app/helpers/kirgudu_base/models/data_filter.rb +236 -0
  270. data/app/helpers/kirgudu_base/models/exports.rb +167 -0
  271. data/app/helpers/kirgudu_base/models/filters.rb +32 -0
  272. data/app/helpers/kirgudu_base/models/form_properties.rb +108 -0
  273. data/app/helpers/kirgudu_base/models/form_property.rb +335 -0
  274. data/app/helpers/kirgudu_base/models/methods.rb +64 -0
  275. data/app/helpers/kirgudu_base/models/scopes.rb +157 -0
  276. data/app/helpers/kirgudu_base/models/sorting.rb +99 -0
  277. data/app/helpers/kirgudu_base/models/standard_actions.rb +50 -0
  278. data/app/helpers/kirgudu_base/models/uncloneable_properties.rb +21 -0
  279. data/app/helpers/kirgudu_base/old_form_builder.rb +340 -0
  280. data/app/helpers/kirgudu_base/url_helper.rb +18 -0
  281. data/app/models/kirgudu_base/base_model.rb +293 -0
  282. data/app/models/kirgudu_base/dynamic_pages/action_for.rb +78 -0
  283. data/app/models/kirgudu_base/dynamic_pages/action_for_builder.rb +46 -0
  284. data/app/models/kirgudu_base/dynamic_pages/data_source.rb +111 -0
  285. data/app/models/kirgudu_base/dynamic_pages/data_source_builder.rb +79 -0
  286. data/app/models/kirgudu_base/dynamic_pages/form.rb +99 -0
  287. data/app/models/kirgudu_base/dynamic_pages/form_builder.rb +85 -0
  288. data/app/models/kirgudu_base/dynamic_pages/input_type.rb +17 -0
  289. data/app/models/kirgudu_base/dynamic_pages/on_change.rb +40 -0
  290. data/app/models/kirgudu_base/dynamic_pages/on_change_builder.rb +38 -0
  291. data/app/models/kirgudu_base/dynamic_pages/page.rb +55 -0
  292. data/app/models/kirgudu_base/dynamic_pages/page_builder.rb +63 -0
  293. data/app/models/kirgudu_base/dynamic_pages/property.rb +185 -0
  294. data/app/models/kirgudu_base/dynamic_pages/property_builder.rb +123 -0
  295. data/app/models/kirgudu_base/template.rb +6 -0
  296. data/app/models/kirgudu_base/template_element.rb +6 -0
  297. data/app/views/layouts/kirgudu_base/application.html.erb +141 -0
  298. data/app/views/shared/kirgudu_base/_body_javascripts_files.html.erb +71 -0
  299. data/app/views/shared/kirgudu_base/_body_javascripts_scripts.html.erb +1099 -0
  300. data/app/views/shared/kirgudu_base/_breadcrumbs.html.erb +36 -0
  301. data/app/views/shared/kirgudu_base/_head_javascripts.html.erb +21 -0
  302. data/app/views/shared/kirgudu_base/_head_stylesheets.html.erb +21 -0
  303. data/app/views/shared/kirgudu_base/_index_page_filter.html.erb +43 -0
  304. data/app/views/shared/kirgudu_base/_left_menu_standard_actions.html.erb +57 -0
  305. data/app/views/shared/kirgudu_base/_services_top_line.html.erb +5 -0
  306. data/app/views/shared/kirgudu_base/_top_nav_bar.html.erb +58 -0
  307. data/app/views/shared/kirgudu_base/entry_edit_form_renderer.html.erb +70 -0
  308. data/app/views/shared/kirgudu_base/entry_index_renderer.html.erb +98 -0
  309. data/app/views/shared/kirgudu_base/entry_new_form_renderer.html.erb +68 -0
  310. data/app/views/shared/kirgudu_base/entry_not_found_renderer.html.erb +15 -0
  311. data/app/views/shared/kirgudu_base/entry_show_renderer.html.erb +28 -0
  312. data/app/views/shared/kirgudu_base/manage_images/managing_items_index.html.erb +34 -0
  313. data/app/views/shared/kirgudu_base/manage_images/managing_items_manage.html.erb +72 -0
  314. data/app/views/shared/kirgudu_base/manage_images/managing_items_sort_index.html.erb +33 -0
  315. data/app/views/shared/kirgudu_base/manage_items/managing_items_index.html.erb +42 -0
  316. data/app/views/shared/kirgudu_base/manage_items/managing_items_manage.html.erb +66 -0
  317. data/app/views/shared/kirgudu_base/manage_items/managing_items_sort_index.html.erb +33 -0
  318. data/config/routes.rb +3 -0
  319. data/db/migrate/20131114161828_create_kirgudu_base_templates.rb +17 -0
  320. data/db/migrate/20131114165013_create_kirgudu_base_template_elements.rb +18 -0
  321. data/lib/kirgudu_base/engine.rb +6 -0
  322. data/lib/kirgudu_base/version.rb +4 -0
  323. data/lib/kirgudu_base.rb +5 -0
  324. data/lib/tasks/kirgudu_base_tasks.rake +4 -0
  325. data/test/dummy/README.rdoc +261 -0
  326. data/test/dummy/Rakefile +7 -0
  327. data/test/dummy/app/assets/javascripts/application.js +15 -0
  328. data/test/dummy/app/assets/stylesheets/application.css +13 -0
  329. data/test/dummy/app/controllers/application_controller.rb +4 -0
  330. data/test/dummy/app/helpers/application_helper.rb +3 -0
  331. data/test/dummy/app/views/layouts/application.html.erb +14 -0
  332. data/test/dummy/config/application.rb +60 -0
  333. data/test/dummy/config/boot.rb +11 -0
  334. data/test/dummy/config/database.yml +25 -0
  335. data/test/dummy/config/environment.rb +6 -0
  336. data/test/dummy/config/environments/development.rb +38 -0
  337. data/test/dummy/config/environments/production.rb +68 -0
  338. data/test/dummy/config/environments/test.rb +38 -0
  339. data/test/dummy/config/initializers/backtrace_silencers.rb +8 -0
  340. data/test/dummy/config/initializers/inflections.rb +16 -0
  341. data/test/dummy/config/initializers/mime_types.rb +6 -0
  342. data/test/dummy/config/initializers/secret_token.rb +8 -0
  343. data/test/dummy/config/initializers/session_store.rb +9 -0
  344. data/test/dummy/config/initializers/wrap_parameters.rb +15 -0
  345. data/test/dummy/config/locales/en.yml +5 -0
  346. data/test/dummy/config/routes.rb +5 -0
  347. data/test/dummy/config.ru +4 -0
  348. data/test/dummy/public/404.html +26 -0
  349. data/test/dummy/public/422.html +26 -0
  350. data/test/dummy/public/500.html +25 -0
  351. data/test/dummy/public/favicon.ico +0 -0
  352. data/test/dummy/script/rails +6 -0
  353. data/test/fixtures/kirgudu_base/template_elements.yml +17 -0
  354. data/test/fixtures/kirgudu_base/templates.yml +15 -0
  355. data/test/integration/navigation_test.rb +11 -0
  356. data/test/kirgudu_base_test.rb +8 -0
  357. data/test/test_helper.rb +16 -0
  358. data/test/unit/kirgudu_base/template_element_test.rb +10 -0
  359. data/test/unit/kirgudu_base/template_test.rb +10 -0
  360. metadata +492 -0
@@ -0,0 +1,12 @@
1
+ /**
2
+ * JustGage - a handy JavaScript plugin for generating and animating nice & clean dashboard gauges.
3
+ * Copyright (c) 2012 Bojan Djuricic - pindjur(at)gmail(dot)com | http://www.madcog.com
4
+ * Licensed under MIT.
5
+ * Date: 31/07/2012
6
+ * @author Bojan Djuricic (@Toorshia)
7
+ * @version 1.0
8
+ *
9
+ * http://www.justgage.com
10
+ */
11
+
12
+ JustGage=function(x){if(!x.id){alert("Missing id parameter for gauge!");return false}if(!document.getElementById(x.id)){alert('No element with id: "'+x.id+'" found!');return false}this.config={id:x.id,title:(x.title)?x.title:"Title",titleFontColor:(x.titleFontColor)?x.titleFontColor:"#999999",value:(x.value)?x.value:0,valueFontColor:(x.valueFontColor)?x.valueFontColor:"#010101",min:(x.min)?x.min:0,max:(x.max)?x.max:100,showMinMax:(x.showMinMax!=null)?x.showMinMax:true,gaugeWidthScale:(x.gaugeWidthScale)?x.gaugeWidthScale:1,gaugeColor:(x.gaugeColor)?x.gaugeColor:"#edebeb",label:(x.label)?x.label:"",showInnerShadow:(x.showInnerShadow!=null)?x.showInnerShadow:true,shadowOpacity:(x.shadowOpacity)?x.shadowOpacity:0.2,shadowSize:(x.shadowSize)?x.shadowSize:5,shadowVerticalOffset:(x.shadowVerticalOffset)?x.shadowVerticalOffset:3,levelColors:(x.levelColors)?x.levelColors:percentColors,levelColorsGradient:(x.levelColorsGradient!=null)?x.levelColorsGradient:true,labelFontColor:(x.labelFontColor)?x.labelFontColor:"#b3b3b3",startAnimationTime:(x.startAnimationTime)?x.startAnimationTime:700,startAnimationType:(x.startAnimationType)?x.startAnimationType:">",refreshAnimationTime:(x.refreshAnimationTime)?x.refreshAnimationTime:700,refreshAnimationType:(x.refreshAnimationType)?x.refreshAnimationType:">"};if(x.value>this.config.max){this.config.value=this.config.max}if(x.value<this.config.min){this.config.value=this.config.min}this.originalValue=x.value;this.canvas=Raphael(this.config.id,"100%","100%");var d=getStyle(document.getElementById(this.config.id),"width").slice(0,-2)*1;var q=getStyle(document.getElementById(this.config.id),"height").slice(0,-2)*1;var c,l;if((d/q)>1.25){c=1.25*q;l=q}else{c=d;l=d/1.25}var i=(d-c)/2;var g=(q-l)/2;var s=((l/8)>10)?(l/10):10;var n=i+c/2;var m=g+l/6.5;var k=((l/6.4)>16)?(l/6.4):16;var r=i+c/2;var p=g+l/1.4;var b=((l/16)>10)?(l/16):10;var f=i+c/2;var e=p+k/2+6;var j=((l/16)>10)?(l/16):10;var w=i+(c/10)+(c/6.666666666666667*this.config.gaugeWidthScale)/2;var v=g+l/1.126760563380282;var h=((l/16)>10)?(l/16):10;var u=i+c-(c/10)-(c/6.666666666666667*this.config.gaugeWidthScale)/2;var t=g+l/1.126760563380282;this.params={canvasW:d,canvasH:q,widgetW:c,widgetH:l,dx:i,dy:g,titleFontSize:s,titleX:n,titleY:m,valueFontSize:k,valueX:r,valueY:p,labelFontSize:b,labelX:f,labelY:e,minFontSize:j,minX:w,minY:v,maxFontSize:h,maxX:u,maxY:t};this.canvas.customAttributes.pki=function(K,L,N,E,O,F,D,y){var B=(1-(K-L)/(N-L))*Math.PI,G=E/2-E/10,J=G-E/6.666666666666667*y,C=E/2+F,A=O/1.25+D,H=E/2+F+G*Math.cos(B),P=O-(O-A)+D-G*Math.sin(B),M=E/2+F+J*Math.cos(B),z=O-(O-A)+D-J*Math.sin(B),I;I+="M"+(C-J)+","+A+" ";I+="L"+(C-G)+","+A+" ";I+="A"+G+","+G+" 0 0,1 "+H+","+P+" ";I+="L"+M+","+z+" ";I+="A"+J+","+J+" 0 0,0 "+(C-J)+","+A+" ";I+="z ";return{path:I}};this.gauge=this.canvas.path().attr({stroke:"none",fill:this.config.gaugeColor,pki:[this.config.max,this.config.min,this.config.max,this.params.widgetW,this.params.widgetH,this.params.dx,this.params.dy,this.config.gaugeWidthScale]});this.gauge.id=this.config.id+"-gauge";this.level=this.canvas.path().attr({stroke:"none",fill:getColorForPercentage((this.config.value-this.config.min)/(this.config.max-this.config.min),this.config.levelColors,this.config.levelColorsGradient),pki:[this.config.min,this.config.min,this.config.max,this.params.widgetW,this.params.widgetH,this.params.dx,this.params.dy,this.config.gaugeWidthScale]});this.level.id=this.config.id+"-level";this.txtTitle=this.canvas.text(this.params.titleX,this.params.titleY,this.config.title);this.txtTitle.attr({"font-size":this.params.titleFontSize,"font-weight":"bold","font-family":"Arial",fill:this.config.titleFontColor,"fill-opacity":"1"});this.txtTitle.id=this.config.id+"-txttitle";this.txtValue=this.canvas.text(this.params.valueX,this.params.valueY,this.originalValue);this.txtValue.attr({"font-size":this.params.valueFontSize,"font-weight":"bold","font-family":"Arial",fill:this.config.valueFontColor,"fill-opacity":"0"});this.txtValue.id=this.config.id+"-txtvalue";this.txtLabel=this.canvas.text(this.params.labelX,this.params.labelY,this.config.label);this.txtLabel.attr({"font-size":this.params.labelFontSize,"font-weight":"normal","font-family":"Arial",fill:this.config.labelFontColor,"fill-opacity":"0"});this.txtLabel.id=this.config.id+"-txtlabel";this.txtMin=this.canvas.text(this.params.minX,this.params.minY,this.config.min);this.txtMin.attr({"font-size":this.params.minFontSize,"font-weight":"normal","font-family":"Arial",fill:this.config.labelFontColor,"fill-opacity":(this.config.showMinMax==true)?"1":"0"});this.txtMin.id=this.config.id+"-txtmin";this.txtMax=this.canvas.text(this.params.maxX,this.params.maxY,this.config.max);this.txtMax.attr({"font-size":this.params.maxFontSize,"font-weight":"normal","font-family":"Arial",fill:this.config.labelFontColor,"fill-opacity":(this.config.showMinMax==true)?"1":"0"});this.txtMax.id=this.config.id+"-txtmax";var a=this.canvas.canvas.childNodes[1];var o="http://www.w3.org/2000/svg";if(ie<9){onCreateElementNsReady(function(){this.generateShadow()})}else{this.generateShadow(o,a)}this.level.animate({pki:[this.config.value,this.config.min,this.config.max,this.params.widgetW,this.params.widgetH,this.params.dx,this.params.dy,this.config.gaugeWidthScale]},this.config.startAnimationTime,this.config.startAnimationType);this.txtValue.animate({"fill-opacity":"1"},this.config.startAnimationTime,this.config.startAnimationType);this.txtLabel.animate({"fill-opacity":"1"},this.config.startAnimationTime,this.config.startAnimationType)};JustGage.prototype.refresh=function(b){originalVal=b;if(b>this.config.max){b=this.config.max}if(b<this.config.min){b=this.config.min}var a=getColorForPercentage((b-this.config.min)/(this.config.max-this.config.min),this.config.levelColors,this.config.levelColorsGradient);this.canvas.getById(this.config.id+"-txtvalue").attr({text:originalVal});this.canvas.getById(this.config.id+"-level").animate({pki:[b,this.config.min,this.config.max,this.params.widgetW,this.params.widgetH,this.params.dx,this.params.dy,this.config.gaugeWidthScale],fill:a},this.config.refreshAnimationTime,this.config.refreshAnimationType)};var percentColors=["#a9d70b","#f9c802","#ff0000"];JustGage.prototype.generateShadow=function(f,e){var h=document.createElementNS(f,"filter");h.setAttribute("id",this.config.id+"-inner-shadow");e.appendChild(h);var i=document.createElementNS(f,"feOffset");i.setAttribute("dx",0);i.setAttribute("dy",this.config.shadowVerticalOffset);h.appendChild(i);var g=document.createElementNS(f,"feGaussianBlur");g.setAttribute("result","offset-blur");g.setAttribute("stdDeviation",this.config.shadowSize);h.appendChild(g);var d=document.createElementNS(f,"feComposite");d.setAttribute("operator","out");d.setAttribute("in","SourceGraphic");d.setAttribute("in2","offset-blur");d.setAttribute("result","inverse");h.appendChild(d);var c=document.createElementNS(f,"feFlood");c.setAttribute("flood-color","black");c.setAttribute("flood-opacity",this.config.shadowOpacity);c.setAttribute("result","color");h.appendChild(c);var b=document.createElementNS(f,"feComposite");b.setAttribute("operator","in");b.setAttribute("in","color");b.setAttribute("in2","inverse");b.setAttribute("result","shadow");h.appendChild(b);var a=document.createElementNS(f,"feComposite");a.setAttribute("operator","over");a.setAttribute("in","shadow");a.setAttribute("in2","SourceGraphic");h.appendChild(a);if(this.config.showInnerShadow==true){this.canvas.canvas.childNodes[2].setAttribute("filter","url(#"+this.config.id+"-inner-shadow)");this.canvas.canvas.childNodes[3].setAttribute("filter","url(#"+this.config.id+"-inner-shadow)")}};var getColorForPercentage=function(b,c,d){var a=c.length;if(a===1){return c[0]}var f=(d)?(1/(a-1)):(1/a);var g=new Array();for(var n=0;n<c.length;n++){var h=(d)?(f*n):(f*(n+1));var r=parseInt((cutHex(c[n])).substring(0,2),16);var e=parseInt((cutHex(c[n])).substring(2,4),16);var k=parseInt((cutHex(c[n])).substring(4,6),16);g[n]={pct:h,color:{r:r,g:e,b:k}}}if(b==0){return"rgb("+[g[0].color.r,g[0].color.g,g[0].color.b].join(",")+")"}for(var n=0;n<g.length;n++){if(b<=g[n].pct){if(d==true){var q=g[n-1];var o=g[n];var j=o.pct-q.pct;var m=(b-q.pct)/j;var s=1-m;var p=m;var l={r:Math.floor(q.color.r*s+o.color.r*p),g:Math.floor(q.color.g*s+o.color.g*p),b:Math.floor(q.color.b*s+o.color.b*p)};return"rgb("+[l.r,l.g,l.b].join(",")+")"}else{return"rgb("+[g[n].color.r,g[n].color.g,g[n].color.b].join(",")+")"}}}};function getRandomInt(b,a){return Math.floor(Math.random()*(a-b+1))+b}function cutHex(a){return(a.charAt(0)=="#")?a.substring(1,7):a}function getStyle(a,b){var c="";if(document.defaultView&&document.defaultView.getComputedStyle){c=document.defaultView.getComputedStyle(a,"").getPropertyValue(b)}else{if(a.currentStyle){b=b.replace(/\-(\w)/g,function(d,e){return e.toUpperCase()});c=a.currentStyle[b]}}return c}function onCreateElementNsReady(a){if(document.createElementNS!=undefined){a()}else{setTimeout(function(){onCreateElementNsReady(a)},100)}}var ie=(function(){var c,a=3,d=document.createElement("div"),b=d.getElementsByTagName("i");while(d.innerHTML="<!--[if gt IE "+(++a)+"]><i></i><![endif]-->",b[0]){}return a>4?a:c}());
@@ -0,0 +1,157 @@
1
+ $(function() {
2
+ $("select[selectType=\"hours\"]").each(function() {
3
+ for (i = $(this).attr("start"); i <= $(this).attr("finish"); i++)
4
+ $("<option value=\"" + i + "\">" + (i < 10 ? "0" + i : i) + "</option>").appendTo($(this));
5
+ });
6
+ $("select[selectType=\"minutes\"]").each(function() {
7
+ for (i = 0; i <= 59; i+= ($(this).attr("interval") >= 1 ? parseInt($(this).attr("interval")) : 1))
8
+ $("<option value=\"" + i + "\">" + (i < 10 ? "0" + i : i) + "</option>").appendTo($(this));
9
+ });
10
+ $("select[select]").each(function() {
11
+ var s = $(this).attr("select");
12
+ if (s)
13
+ $(this).find("[value=\"" + s + "\"]").attr("selected", "true");
14
+ });
15
+ $("select").change(function() {
16
+ var attrs = $(this).find(":selected").data();
17
+ for (k in attrs) {
18
+ $("[data-accept=\"" + $(this).attr("name") + "." + k + "\"]").val(attrs[k]);
19
+ }
20
+ });
21
+ $(".cancelBtn").live("click", function() {
22
+ window.location.href = window.location.href.replace(/\?.+$/, "");
23
+ return false;
24
+ });
25
+
26
+ /* Work with top tabs. */
27
+ $("[data-tabs] li").click(function() {
28
+ $("[data-tabs] li").each(function() {
29
+ $(this).removeClass("active");
30
+ $("#" + $(this).attr("data-tabs-block")).hide();
31
+ });
32
+ $(this).addClass("active");
33
+ $("#" + $(this).attr("data-tabs-block")).show();
34
+ });
35
+ $("[data-tabs] .active").click();
36
+ });
37
+
38
+ function hide_notification(uid_mess){
39
+ $("#"+uid_mess).hide();
40
+ message_height=message_height-120;
41
+ }
42
+
43
+ $(document).ready(function(){
44
+ $(".tableHolder table th").each(function(){
45
+ var match=document.location.href.match(/filter_sort=[a-z|A-Z|0-9|-]*/);
46
+ if(match){
47
+
48
+ if(match[0]=="filter_sort="+$(this).attr('sort'))
49
+ $(this).append("<div class='icon-chevron-down' style='margin:3px;'></div>");
50
+ if(match[0]=="filter_sort="+$(this).attr('sort')+"-desc")
51
+ $(this).append("<div class='icon-chevron-up' style='margin:3px;'></div>");
52
+ }
53
+ });
54
+
55
+ $(".tableHolder table th").click(function(e){
56
+ var match=document.location.href.match(/filter_sort=[a-z|A-Z|0-9|-]*/);
57
+ if(match){
58
+
59
+ if(match[0]=="filter_sort="+$(this).attr('sort'))
60
+ document.location.href=document.location.href.replace(/filter_sort=[a-z|A-Z|0-9|-]*/,'filter_sort='+$(this).attr('sort')+"-desc");
61
+ else if(match[0]=="filter_sort="+$(this).attr('sort')+"-desc")
62
+ document.location.href=document.location.href.replace(/filter_sort=[a-z|A-Z|0-9|-]*/,'filter_sort='+$(this).attr('sort'));
63
+ else
64
+ document.location.href=document.location.href.replace(/filter_sort=[a-z|A-Z|0-9|-]*/,'filter_sort='+$(this).attr('sort'));
65
+ }
66
+ else
67
+ document.location.href+=(document.location.href.split('?').length>1?("&filter_sort="+$(this).attr('sort')):("?filter_sort="+$(this).attr('sort')));
68
+
69
+ });
70
+ });
71
+
72
+
73
+ var message_height=10;
74
+
75
+ //var checkMessages = setInterval(function() {
76
+ // $.post("/api/newMessages/", {}, function(data) {
77
+ // if (parseInt($(data).find("number").text()) > 0) {
78
+ // for(i=1;i<parseInt($(data).find("number").text())+1;i++){
79
+ // author=$(data).find("mess_"+i).find("author").text();
80
+ // author_id=$(data).find("mess_"+i).find("author_id").text();
81
+ // author_photo=$(data).find("mess_"+i).find("author_photo").text();
82
+ // text=$(data).find("mess_"+i).find("text").text().replace(/<!\[CDATA\[/,'').replace(/]]>/,'');
83
+ //
84
+ // uid_mess=Math.round((Math.random()*10000));
85
+ // $("<img src='/uploads'"+author_photo+"/>").ready(function(){
86
+ // $("<div class=\"notification\" id='"+uid_mess+"'></div>").append("<table width='100%' >"+
87
+ // "<tr><td colspan='2' width='90%' align='left'><span class='message_header'>Новое сообщение</span></td><td width='20px'>"+
88
+ // "<a href='javascript:hide_notification("+uid_mess+");'>"+
89
+ // "<span class='icon-white icon-remove back_black'></span></a></td></tr></table>"+
90
+ // "<table width='100%' cellpadding='3'><tr><td width='50px'><img src='/uploads"+author_photo+"'/></td>"+
91
+ // "<td align='left' colspan='2' valign='top'>"+
92
+ // "<a href='/employees/"+author_id+"' target='_blank'>"+
93
+ // "<span class='author_name'>"+author+"</span></a>"+
94
+ // "<a href=\"javascript:showFormModal('/messages/add/?to="+author_id+"')\">"+
95
+ // "<span class='message_text'>"+text+"</span>"+
96
+ // "</a></td></tr></table>").appendTo("body").animate({bottom:message_height},300);
97
+ //
98
+ //
99
+ //
100
+ // message_height+=120;
101
+ // });}
102
+ //
103
+ //
104
+ // // var mok = $("<div class=\"notification\">" + $(data).find("message").text() + "<a href='javascript:hide_notification();'><span class='icon-close'></span></a></div>").css("opacity", "0.95").appendTo("body");
105
+ // //$(".container li").first().find(".badge").text($(data).find("number").text());
106
+ // }
107
+ // }, "text");
108
+ // }, 10000);
109
+
110
+ //Buttons
111
+ $.fn.btnShowLoader = function() {
112
+ $(this).attr("disabled", "disabled").html("<i class='loading'></i> " + $(this).html());
113
+ }
114
+ $.fn.btnHideLoader = function() {
115
+ $(this).removeAttr("disabled").find("i.loading").remove();
116
+ }
117
+
118
+ //Date
119
+ $(function() {
120
+ $(".selDate input").each(function() {
121
+ $(this).removeAttr("disabled").removeAttr("name");
122
+ var lastVal;
123
+ var blurChange = function() {
124
+ var newVal = $(this).val().split(".");
125
+ if (newVal.length != 3) {
126
+ if ($(this).val().length == 8 && parseInt($(this).val(), 10).toString().length == 8) {
127
+ newVal = [$(this).val().substr(0, 2), $(this).val().substr(2, 2), $(this).val().substr(4, 4)];
128
+ }
129
+ else
130
+ newVal = lastVal;
131
+ }
132
+ newVal[0] = parseInt(newVal[0], 10);
133
+ newVal[1] = parseInt(newVal[1], 10);
134
+ newVal[2] = parseInt(newVal[2], 10);
135
+
136
+ if (newVal[0] < 1 || newVal[0] > 31) newVal[0] = 1;
137
+ if (newVal[1] < 1 || newVal[1] > 12) newVal[1] = 1;
138
+ if (newVal[2] < 1 || newVal[2] > 2020) newVal[2] = 1;
139
+
140
+ $(this).val((newVal[0] < 10 ? "0" : "") + newVal[0] + "." +
141
+ (newVal[1] < 10 ? "0" : "") + newVal[1] + "." +
142
+ (newVal[2] < 100 ? "20" : "") + (newVal[2] < 10 ? "0" : "") + newVal[2]);
143
+
144
+ $(this).parent().siblings("input").val($(this).val());
145
+ };
146
+ $(this).focus(function(e) {
147
+ lastVal = $(this).val().split(".");
148
+ if (lastVal.length != 3) lastVal = [0, 0, 0];
149
+ $obj = $(this);
150
+ setTimeout(function() { $obj.select(); }, 100);
151
+ e.preventDefault();
152
+ e.stopPropagation();
153
+ return false;
154
+ }).blur(blurChange).change(blurChange);
155
+ }
156
+ );
157
+ });
@@ -0,0 +1,815 @@
1
+ /* Modernizr 2.6.2 (Custom Build) | MIT & BSD
2
+ * Build: http://modernizr.com/download/#-fontface-backgroundsize-borderimage-borderradius-boxshadow-flexbox-flexbox_legacy-hsla-multiplebgs-opacity-rgba-textshadow-cssanimations-csscolumns-generatedcontent-cssgradients-cssreflections-csstransforms-csstransforms3d-csstransitions-applicationcache-canvas-canvastext-draganddrop-hashchange-history-audio-video-indexeddb-input-inputtypes-localstorage-postmessage-sessionstorage-websockets-websqldatabase-webworkers-geolocation-inlinesvg-smil-svg-svgclippaths-touch-webgl-shiv-cssclasses-addtest-prefixed-teststyles-testprop-testallprops-hasevent-prefixes-domprefixes-load
3
+ */
4
+ ;
5
+
6
+
7
+
8
+ window.Modernizr = (function( window, document, undefined ) {
9
+
10
+ var version = '2.6.2',
11
+
12
+ Modernizr = {},
13
+
14
+ enableClasses = true,
15
+
16
+ docElement = document.documentElement,
17
+
18
+ mod = 'modernizr',
19
+ modElem = document.createElement(mod),
20
+ mStyle = modElem.style,
21
+
22
+ inputElem = document.createElement('input') ,
23
+
24
+ smile = ':)',
25
+
26
+ toString = {}.toString,
27
+
28
+ prefixes = ' -webkit- -moz- -o- -ms- '.split(' '),
29
+
30
+
31
+
32
+ omPrefixes = 'Webkit Moz O ms',
33
+
34
+ cssomPrefixes = omPrefixes.split(' '),
35
+
36
+ domPrefixes = omPrefixes.toLowerCase().split(' '),
37
+
38
+ ns = {'svg': 'http://www.w3.org/2000/svg'},
39
+
40
+ tests = {},
41
+ inputs = {},
42
+ attrs = {},
43
+
44
+ classes = [],
45
+
46
+ slice = classes.slice,
47
+
48
+ featureName,
49
+
50
+
51
+ injectElementWithStyles = function( rule, callback, nodes, testnames ) {
52
+
53
+ var style, ret, node, docOverflow,
54
+ div = document.createElement('div'),
55
+ body = document.body,
56
+ fakeBody = body || document.createElement('body');
57
+
58
+ if ( parseInt(nodes, 10) ) {
59
+ while ( nodes-- ) {
60
+ node = document.createElement('div');
61
+ node.id = testnames ? testnames[nodes] : mod + (nodes + 1);
62
+ div.appendChild(node);
63
+ }
64
+ }
65
+
66
+ style = ['&#173;','<style id="s', mod, '">', rule, '</style>'].join('');
67
+ div.id = mod;
68
+ (body ? div : fakeBody).innerHTML += style;
69
+ fakeBody.appendChild(div);
70
+ if ( !body ) {
71
+ fakeBody.style.background = '';
72
+ fakeBody.style.overflow = 'hidden';
73
+ docOverflow = docElement.style.overflow;
74
+ docElement.style.overflow = 'hidden';
75
+ docElement.appendChild(fakeBody);
76
+ }
77
+
78
+ ret = callback(div, rule);
79
+ if ( !body ) {
80
+ fakeBody.parentNode.removeChild(fakeBody);
81
+ docElement.style.overflow = docOverflow;
82
+ } else {
83
+ div.parentNode.removeChild(div);
84
+ }
85
+
86
+ return !!ret;
87
+
88
+ },
89
+
90
+
91
+
92
+ isEventSupported = (function() {
93
+
94
+ var TAGNAMES = {
95
+ 'select': 'input', 'change': 'input',
96
+ 'submit': 'form', 'reset': 'form',
97
+ 'error': 'img', 'load': 'img', 'abort': 'img'
98
+ };
99
+
100
+ function isEventSupported( eventName, element ) {
101
+
102
+ element = element || document.createElement(TAGNAMES[eventName] || 'div');
103
+ eventName = 'on' + eventName;
104
+
105
+ var isSupported = eventName in element;
106
+
107
+ if ( !isSupported ) {
108
+ if ( !element.setAttribute ) {
109
+ element = document.createElement('div');
110
+ }
111
+ if ( element.setAttribute && element.removeAttribute ) {
112
+ element.setAttribute(eventName, '');
113
+ isSupported = is(element[eventName], 'function');
114
+
115
+ if ( !is(element[eventName], 'undefined') ) {
116
+ element[eventName] = undefined;
117
+ }
118
+ element.removeAttribute(eventName);
119
+ }
120
+ }
121
+
122
+ element = null;
123
+ return isSupported;
124
+ }
125
+ return isEventSupported;
126
+ })(),
127
+
128
+
129
+ _hasOwnProperty = ({}).hasOwnProperty, hasOwnProp;
130
+
131
+ if ( !is(_hasOwnProperty, 'undefined') && !is(_hasOwnProperty.call, 'undefined') ) {
132
+ hasOwnProp = function (object, property) {
133
+ return _hasOwnProperty.call(object, property);
134
+ };
135
+ }
136
+ else {
137
+ hasOwnProp = function (object, property) {
138
+ return ((property in object) && is(object.constructor.prototype[property], 'undefined'));
139
+ };
140
+ }
141
+
142
+
143
+ if (!Function.prototype.bind) {
144
+ Function.prototype.bind = function bind(that) {
145
+
146
+ var target = this;
147
+
148
+ if (typeof target != "function") {
149
+ throw new TypeError();
150
+ }
151
+
152
+ var args = slice.call(arguments, 1),
153
+ bound = function () {
154
+
155
+ if (this instanceof bound) {
156
+
157
+ var F = function(){};
158
+ F.prototype = target.prototype;
159
+ var self = new F();
160
+
161
+ var result = target.apply(
162
+ self,
163
+ args.concat(slice.call(arguments))
164
+ );
165
+ if (Object(result) === result) {
166
+ return result;
167
+ }
168
+ return self;
169
+
170
+ } else {
171
+
172
+ return target.apply(
173
+ that,
174
+ args.concat(slice.call(arguments))
175
+ );
176
+
177
+ }
178
+
179
+ };
180
+
181
+ return bound;
182
+ };
183
+ }
184
+
185
+ function setCss( str ) {
186
+ mStyle.cssText = str;
187
+ }
188
+
189
+ function setCssAll( str1, str2 ) {
190
+ return setCss(prefixes.join(str1 + ';') + ( str2 || '' ));
191
+ }
192
+
193
+ function is( obj, type ) {
194
+ return typeof obj === type;
195
+ }
196
+
197
+ function contains( str, substr ) {
198
+ return !!~('' + str).indexOf(substr);
199
+ }
200
+
201
+ function testProps( props, prefixed ) {
202
+ for ( var i in props ) {
203
+ var prop = props[i];
204
+ if ( !contains(prop, "-") && mStyle[prop] !== undefined ) {
205
+ return prefixed == 'pfx' ? prop : true;
206
+ }
207
+ }
208
+ return false;
209
+ }
210
+
211
+ function testDOMProps( props, obj, elem ) {
212
+ for ( var i in props ) {
213
+ var item = obj[props[i]];
214
+ if ( item !== undefined) {
215
+
216
+ if (elem === false) return props[i];
217
+
218
+ if (is(item, 'function')){
219
+ return item.bind(elem || obj);
220
+ }
221
+
222
+ return item;
223
+ }
224
+ }
225
+ return false;
226
+ }
227
+
228
+ function testPropsAll( prop, prefixed, elem ) {
229
+
230
+ var ucProp = prop.charAt(0).toUpperCase() + prop.slice(1),
231
+ props = (prop + ' ' + cssomPrefixes.join(ucProp + ' ') + ucProp).split(' ');
232
+
233
+ if(is(prefixed, "string") || is(prefixed, "undefined")) {
234
+ return testProps(props, prefixed);
235
+
236
+ } else {
237
+ props = (prop + ' ' + (domPrefixes).join(ucProp + ' ') + ucProp).split(' ');
238
+ return testDOMProps(props, prefixed, elem);
239
+ }
240
+ } tests['flexbox'] = function() {
241
+ return testPropsAll('flexWrap');
242
+ }; tests['canvas'] = function() {
243
+ var elem = document.createElement('canvas');
244
+ return !!(elem.getContext && elem.getContext('2d'));
245
+ };
246
+
247
+ tests['canvastext'] = function() {
248
+ return !!(Modernizr['canvas'] && is(document.createElement('canvas').getContext('2d').fillText, 'function'));
249
+ };
250
+
251
+
252
+
253
+ tests['webgl'] = function() {
254
+ return !!window.WebGLRenderingContext;
255
+ };
256
+
257
+
258
+ tests['touch'] = function() {
259
+ var bool;
260
+
261
+ if(('ontouchstart' in window) || window.DocumentTouch && document instanceof DocumentTouch) {
262
+ bool = true;
263
+ } else {
264
+ injectElementWithStyles(['@media (',prefixes.join('touch-enabled),('),mod,')','{#modernizr{top:9px;position:absolute}}'].join(''), function( node ) {
265
+ bool = node.offsetTop === 9;
266
+ });
267
+ }
268
+
269
+ return bool;
270
+ };
271
+
272
+
273
+
274
+ tests['geolocation'] = function() {
275
+ return 'geolocation' in navigator;
276
+ };
277
+
278
+
279
+ tests['postmessage'] = function() {
280
+ return !!window.postMessage;
281
+ };
282
+
283
+
284
+ tests['websqldatabase'] = function() {
285
+ return !!window.openDatabase;
286
+ };
287
+
288
+ tests['indexedDB'] = function() {
289
+ return !!testPropsAll("indexedDB", window);
290
+ };
291
+
292
+ tests['hashchange'] = function() {
293
+ return isEventSupported('hashchange', window) && (document.documentMode === undefined || document.documentMode > 7);
294
+ };
295
+
296
+ tests['history'] = function() {
297
+ return !!(window.history && history.pushState);
298
+ };
299
+
300
+ tests['draganddrop'] = function() {
301
+ var div = document.createElement('div');
302
+ return ('draggable' in div) || ('ondragstart' in div && 'ondrop' in div);
303
+ };
304
+
305
+ tests['websockets'] = function() {
306
+ return 'WebSocket' in window || 'MozWebSocket' in window;
307
+ };
308
+
309
+
310
+ tests['rgba'] = function() {
311
+ setCss('background-color:rgba(150,255,150,.5)');
312
+
313
+ return contains(mStyle.backgroundColor, 'rgba');
314
+ };
315
+
316
+ tests['hsla'] = function() {
317
+ setCss('background-color:hsla(120,40%,100%,.5)');
318
+
319
+ return contains(mStyle.backgroundColor, 'rgba') || contains(mStyle.backgroundColor, 'hsla');
320
+ };
321
+
322
+ tests['multiplebgs'] = function() {
323
+ setCss('background:url(https://),url(https://),red url(https://)');
324
+
325
+ return (/(url\s*\(.*?){3}/).test(mStyle.background);
326
+ }; tests['backgroundsize'] = function() {
327
+ return testPropsAll('backgroundSize');
328
+ };
329
+
330
+ tests['borderimage'] = function() {
331
+ return testPropsAll('borderImage');
332
+ };
333
+
334
+
335
+
336
+ tests['borderradius'] = function() {
337
+ return testPropsAll('borderRadius');
338
+ };
339
+
340
+ tests['boxshadow'] = function() {
341
+ return testPropsAll('boxShadow');
342
+ };
343
+
344
+ tests['textshadow'] = function() {
345
+ return document.createElement('div').style.textShadow === '';
346
+ };
347
+
348
+
349
+ tests['opacity'] = function() {
350
+ setCssAll('opacity:.55');
351
+
352
+ return (/^0.55$/).test(mStyle.opacity);
353
+ };
354
+
355
+
356
+ tests['cssanimations'] = function() {
357
+ return testPropsAll('animationName');
358
+ };
359
+
360
+
361
+ tests['csscolumns'] = function() {
362
+ return testPropsAll('columnCount');
363
+ };
364
+
365
+
366
+ tests['cssgradients'] = function() {
367
+ var str1 = 'background-image:',
368
+ str2 = 'gradient(linear,left top,right bottom,from(#9f9),to(white));',
369
+ str3 = 'linear-gradient(left top,#9f9, white);';
370
+
371
+ setCss(
372
+ (str1 + '-webkit- '.split(' ').join(str2 + str1) +
373
+ prefixes.join(str3 + str1)).slice(0, -str1.length)
374
+ );
375
+
376
+ return contains(mStyle.backgroundImage, 'gradient');
377
+ };
378
+
379
+
380
+ tests['cssreflections'] = function() {
381
+ return testPropsAll('boxReflect');
382
+ };
383
+
384
+
385
+ tests['csstransforms'] = function() {
386
+ return !!testPropsAll('transform');
387
+ };
388
+
389
+
390
+ tests['csstransforms3d'] = function() {
391
+
392
+ var ret = !!testPropsAll('perspective');
393
+
394
+ if ( ret && 'webkitPerspective' in docElement.style ) {
395
+
396
+ injectElementWithStyles('@media (transform-3d),(-webkit-transform-3d){#modernizr{left:9px;position:absolute;height:3px;}}', function( node, rule ) {
397
+ ret = node.offsetLeft === 9 && node.offsetHeight === 3;
398
+ });
399
+ }
400
+ return ret;
401
+ };
402
+
403
+
404
+ tests['csstransitions'] = function() {
405
+ return testPropsAll('transition');
406
+ };
407
+
408
+
409
+
410
+ tests['fontface'] = function() {
411
+ var bool;
412
+
413
+ injectElementWithStyles('@font-face {font-family:"font";src:url("https://")}', function( node, rule ) {
414
+ var style = document.getElementById('smodernizr'),
415
+ sheet = style.sheet || style.styleSheet,
416
+ cssText = sheet ? (sheet.cssRules && sheet.cssRules[0] ? sheet.cssRules[0].cssText : sheet.cssText || '') : '';
417
+
418
+ bool = /src/i.test(cssText) && cssText.indexOf(rule.split(' ')[0]) === 0;
419
+ });
420
+
421
+ return bool;
422
+ };
423
+
424
+ tests['generatedcontent'] = function() {
425
+ var bool;
426
+
427
+ injectElementWithStyles(['#',mod,'{font:0/0 a}#',mod,':after{content:"',smile,'";visibility:hidden;font:3px/1 a}'].join(''), function( node ) {
428
+ bool = node.offsetHeight >= 3;
429
+ });
430
+
431
+ return bool;
432
+ };
433
+ tests['video'] = function() {
434
+ var elem = document.createElement('video'),
435
+ bool = false;
436
+
437
+ try {
438
+ if ( bool = !!elem.canPlayType ) {
439
+ bool = new Boolean(bool);
440
+ bool.ogg = elem.canPlayType('video/ogg; codecs="theora"') .replace(/^no$/,'');
441
+
442
+ bool.h264 = elem.canPlayType('video/mp4; codecs="avc1.42E01E"') .replace(/^no$/,'');
443
+
444
+ bool.webm = elem.canPlayType('video/webm; codecs="vp8, vorbis"').replace(/^no$/,'');
445
+ }
446
+
447
+ } catch(e) { }
448
+
449
+ return bool;
450
+ };
451
+
452
+ tests['audio'] = function() {
453
+ var elem = document.createElement('audio'),
454
+ bool = false;
455
+
456
+ try {
457
+ if ( bool = !!elem.canPlayType ) {
458
+ bool = new Boolean(bool);
459
+ bool.ogg = elem.canPlayType('audio/ogg; codecs="vorbis"').replace(/^no$/,'');
460
+ bool.mp3 = elem.canPlayType('audio/mpeg;') .replace(/^no$/,'');
461
+
462
+ bool.wav = elem.canPlayType('audio/wav; codecs="1"') .replace(/^no$/,'');
463
+ bool.m4a = ( elem.canPlayType('audio/x-m4a;') ||
464
+ elem.canPlayType('audio/aac;')) .replace(/^no$/,'');
465
+ }
466
+ } catch(e) { }
467
+
468
+ return bool;
469
+ };
470
+
471
+
472
+ tests['localstorage'] = function() {
473
+ try {
474
+ localStorage.setItem(mod, mod);
475
+ localStorage.removeItem(mod);
476
+ return true;
477
+ } catch(e) {
478
+ return false;
479
+ }
480
+ };
481
+
482
+ tests['sessionstorage'] = function() {
483
+ try {
484
+ sessionStorage.setItem(mod, mod);
485
+ sessionStorage.removeItem(mod);
486
+ return true;
487
+ } catch(e) {
488
+ return false;
489
+ }
490
+ };
491
+
492
+
493
+ tests['webworkers'] = function() {
494
+ return !!window.Worker;
495
+ };
496
+
497
+
498
+ tests['applicationcache'] = function() {
499
+ return !!window.applicationCache;
500
+ };
501
+
502
+
503
+ tests['svg'] = function() {
504
+ return !!document.createElementNS && !!document.createElementNS(ns.svg, 'svg').createSVGRect;
505
+ };
506
+
507
+ tests['inlinesvg'] = function() {
508
+ var div = document.createElement('div');
509
+ div.innerHTML = '<svg/>';
510
+ return (div.firstChild && div.firstChild.namespaceURI) == ns.svg;
511
+ };
512
+
513
+ tests['smil'] = function() {
514
+ return !!document.createElementNS && /SVGAnimate/.test(toString.call(document.createElementNS(ns.svg, 'animate')));
515
+ };
516
+
517
+
518
+ tests['svgclippaths'] = function() {
519
+ return !!document.createElementNS && /SVGClipPath/.test(toString.call(document.createElementNS(ns.svg, 'clipPath')));
520
+ };
521
+
522
+ function webforms() {
523
+ Modernizr['input'] = (function( props ) {
524
+ for ( var i = 0, len = props.length; i < len; i++ ) {
525
+ attrs[ props[i] ] = !!(props[i] in inputElem);
526
+ }
527
+ if (attrs.list){
528
+ attrs.list = !!(document.createElement('datalist') && window.HTMLDataListElement);
529
+ }
530
+ return attrs;
531
+ })('autocomplete autofocus list placeholder max min multiple pattern required step'.split(' '));
532
+ Modernizr['inputtypes'] = (function(props) {
533
+
534
+ for ( var i = 0, bool, inputElemType, defaultView, len = props.length; i < len; i++ ) {
535
+
536
+ inputElem.setAttribute('type', inputElemType = props[i]);
537
+ bool = inputElem.type !== 'text';
538
+
539
+ if ( bool ) {
540
+
541
+ inputElem.value = smile;
542
+ inputElem.style.cssText = 'position:absolute;visibility:hidden;';
543
+
544
+ if ( /^range$/.test(inputElemType) && inputElem.style.WebkitAppearance !== undefined ) {
545
+
546
+ docElement.appendChild(inputElem);
547
+ defaultView = document.defaultView;
548
+
549
+ bool = defaultView.getComputedStyle &&
550
+ defaultView.getComputedStyle(inputElem, null).WebkitAppearance !== 'textfield' &&
551
+ (inputElem.offsetHeight !== 0);
552
+
553
+ docElement.removeChild(inputElem);
554
+
555
+ } else if ( /^(search|tel)$/.test(inputElemType) ){
556
+ } else if ( /^(url|email)$/.test(inputElemType) ) {
557
+ bool = inputElem.checkValidity && inputElem.checkValidity() === false;
558
+
559
+ } else {
560
+ bool = inputElem.value != smile;
561
+ }
562
+ }
563
+
564
+ inputs[ props[i] ] = !!bool;
565
+ }
566
+ return inputs;
567
+ })('search tel url email datetime date month week time datetime-local number range color'.split(' '));
568
+ }
569
+ for ( var feature in tests ) {
570
+ if ( hasOwnProp(tests, feature) ) {
571
+ featureName = feature.toLowerCase();
572
+ Modernizr[featureName] = tests[feature]();
573
+
574
+ classes.push((Modernizr[featureName] ? '' : 'no-') + featureName);
575
+ }
576
+ }
577
+
578
+ Modernizr.input || webforms();
579
+
580
+
581
+ Modernizr.addTest = function ( feature, test ) {
582
+ if ( typeof feature == 'object' ) {
583
+ for ( var key in feature ) {
584
+ if ( hasOwnProp( feature, key ) ) {
585
+ Modernizr.addTest( key, feature[ key ] );
586
+ }
587
+ }
588
+ } else {
589
+
590
+ feature = feature.toLowerCase();
591
+
592
+ if ( Modernizr[feature] !== undefined ) {
593
+ return Modernizr;
594
+ }
595
+
596
+ test = typeof test == 'function' ? test() : test;
597
+
598
+ if (typeof enableClasses !== "undefined" && enableClasses) {
599
+ docElement.className += ' ' + (test ? '' : 'no-') + feature;
600
+ }
601
+ Modernizr[feature] = test;
602
+
603
+ }
604
+
605
+ return Modernizr;
606
+ };
607
+
608
+
609
+ setCss('');
610
+ modElem = inputElem = null;
611
+
612
+ ;(function(window, document) {
613
+ var options = window.html5 || {};
614
+
615
+ var reSkip = /^<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/i;
616
+
617
+ var saveClones = /^(?:a|b|code|div|fieldset|h1|h2|h3|h4|h5|h6|i|label|li|ol|p|q|span|strong|style|table|tbody|td|th|tr|ul)$/i;
618
+
619
+ var supportsHtml5Styles;
620
+
621
+ var expando = '_html5shiv';
622
+
623
+ var expanID = 0;
624
+
625
+ var expandoData = {};
626
+
627
+ var supportsUnknownElements;
628
+
629
+ (function() {
630
+ try {
631
+ var a = document.createElement('a');
632
+ a.innerHTML = '<xyz></xyz>';
633
+ supportsHtml5Styles = ('hidden' in a);
634
+
635
+ supportsUnknownElements = a.childNodes.length == 1 || (function() {
636
+ (document.createElement)('a');
637
+ var frag = document.createDocumentFragment();
638
+ return (
639
+ typeof frag.cloneNode == 'undefined' ||
640
+ typeof frag.createDocumentFragment == 'undefined' ||
641
+ typeof frag.createElement == 'undefined'
642
+ );
643
+ }());
644
+ } catch(e) {
645
+ supportsHtml5Styles = true;
646
+ supportsUnknownElements = true;
647
+ }
648
+
649
+ }()); function addStyleSheet(ownerDocument, cssText) {
650
+ var p = ownerDocument.createElement('p'),
651
+ parent = ownerDocument.getElementsByTagName('head')[0] || ownerDocument.documentElement;
652
+
653
+ p.innerHTML = 'x<style>' + cssText + '</style>';
654
+ return parent.insertBefore(p.lastChild, parent.firstChild);
655
+ }
656
+
657
+ function getElements() {
658
+ var elements = html5.elements;
659
+ return typeof elements == 'string' ? elements.split(' ') : elements;
660
+ }
661
+
662
+ function getExpandoData(ownerDocument) {
663
+ var data = expandoData[ownerDocument[expando]];
664
+ if (!data) {
665
+ data = {};
666
+ expanID++;
667
+ ownerDocument[expando] = expanID;
668
+ expandoData[expanID] = data;
669
+ }
670
+ return data;
671
+ }
672
+
673
+ function createElement(nodeName, ownerDocument, data){
674
+ if (!ownerDocument) {
675
+ ownerDocument = document;
676
+ }
677
+ if(supportsUnknownElements){
678
+ return ownerDocument.createElement(nodeName);
679
+ }
680
+ if (!data) {
681
+ data = getExpandoData(ownerDocument);
682
+ }
683
+ var node;
684
+
685
+ if (data.cache[nodeName]) {
686
+ node = data.cache[nodeName].cloneNode();
687
+ } else if (saveClones.test(nodeName)) {
688
+ node = (data.cache[nodeName] = data.createElem(nodeName)).cloneNode();
689
+ } else {
690
+ node = data.createElem(nodeName);
691
+ }
692
+
693
+ return node.canHaveChildren && !reSkip.test(nodeName) ? data.frag.appendChild(node) : node;
694
+ }
695
+
696
+ function createDocumentFragment(ownerDocument, data){
697
+ if (!ownerDocument) {
698
+ ownerDocument = document;
699
+ }
700
+ if(supportsUnknownElements){
701
+ return ownerDocument.createDocumentFragment();
702
+ }
703
+ data = data || getExpandoData(ownerDocument);
704
+ var clone = data.frag.cloneNode(),
705
+ i = 0,
706
+ elems = getElements(),
707
+ l = elems.length;
708
+ for(;i<l;i++){
709
+ clone.createElement(elems[i]);
710
+ }
711
+ return clone;
712
+ }
713
+
714
+ function shivMethods(ownerDocument, data) {
715
+ if (!data.cache) {
716
+ data.cache = {};
717
+ data.createElem = ownerDocument.createElement;
718
+ data.createFrag = ownerDocument.createDocumentFragment;
719
+ data.frag = data.createFrag();
720
+ }
721
+
722
+
723
+ ownerDocument.createElement = function(nodeName) {
724
+ if (!html5.shivMethods) {
725
+ return data.createElem(nodeName);
726
+ }
727
+ return createElement(nodeName, ownerDocument, data);
728
+ };
729
+
730
+ ownerDocument.createDocumentFragment = Function('h,f', 'return function(){' +
731
+ 'var n=f.cloneNode(),c=n.createElement;' +
732
+ 'h.shivMethods&&(' +
733
+ getElements().join().replace(/\w+/g, function(nodeName) {
734
+ data.createElem(nodeName);
735
+ data.frag.createElement(nodeName);
736
+ return 'c("' + nodeName + '")';
737
+ }) +
738
+ ');return n}'
739
+ )(html5, data.frag);
740
+ } function shivDocument(ownerDocument) {
741
+ if (!ownerDocument) {
742
+ ownerDocument = document;
743
+ }
744
+ var data = getExpandoData(ownerDocument);
745
+
746
+ if (html5.shivCSS && !supportsHtml5Styles && !data.hasCSS) {
747
+ data.hasCSS = !!addStyleSheet(ownerDocument,
748
+ 'article,aside,figcaption,figure,footer,header,hgroup,nav,section{display:block}' +
749
+ 'mark{background:#FF0;color:#000}'
750
+ );
751
+ }
752
+ if (!supportsUnknownElements) {
753
+ shivMethods(ownerDocument, data);
754
+ }
755
+ return ownerDocument;
756
+ } var html5 = {
757
+
758
+ 'elements': options.elements || 'abbr article aside audio bdi canvas data datalist details figcaption figure footer header hgroup mark meter nav output progress section summary time video',
759
+
760
+ 'shivCSS': (options.shivCSS !== false),
761
+
762
+ 'supportsUnknownElements': supportsUnknownElements,
763
+
764
+ 'shivMethods': (options.shivMethods !== false),
765
+
766
+ 'type': 'default',
767
+
768
+ 'shivDocument': shivDocument,
769
+
770
+ createElement: createElement,
771
+
772
+ createDocumentFragment: createDocumentFragment
773
+ }; window.html5 = html5;
774
+
775
+ shivDocument(document);
776
+
777
+ }(this, document));
778
+
779
+ Modernizr._version = version;
780
+
781
+ Modernizr._prefixes = prefixes;
782
+ Modernizr._domPrefixes = domPrefixes;
783
+ Modernizr._cssomPrefixes = cssomPrefixes;
784
+
785
+
786
+ Modernizr.hasEvent = isEventSupported;
787
+
788
+ Modernizr.testProp = function(prop){
789
+ return testProps([prop]);
790
+ };
791
+
792
+ Modernizr.testAllProps = testPropsAll;
793
+
794
+
795
+ Modernizr.testStyles = injectElementWithStyles;
796
+ Modernizr.prefixed = function(prop, obj, elem){
797
+ if(!obj) {
798
+ return testPropsAll(prop, 'pfx');
799
+ } else {
800
+ return testPropsAll(prop, obj, elem);
801
+ }
802
+ };
803
+
804
+
805
+ docElement.className = docElement.className.replace(/(^|\s)no-js(\s|$)/, '$1$2') +
806
+
807
+ (enableClasses ? ' js ' + classes.join(' ') : '');
808
+
809
+ return Modernizr;
810
+
811
+ })(this, this.document);
812
+ /*yepnope1.5.4|WTFPL*/
813
+ (function(a,b,c){function d(a){return"[object Function]"==o.call(a)}function e(a){return"string"==typeof a}function f(){}function g(a){return!a||"loaded"==a||"complete"==a||"uninitialized"==a}function h(){var a=p.shift();q=1,a?a.t?m(function(){("c"==a.t?B.injectCss:B.injectJs)(a.s,0,a.a,a.x,a.e,1)},0):(a(),h()):q=0}function i(a,c,d,e,f,i,j){function k(b){if(!o&&g(l.readyState)&&(u.r=o=1,!q&&h(),l.onload=l.onreadystatechange=null,b)){"img"!=a&&m(function(){t.removeChild(l)},50);for(var d in y[c])y[c].hasOwnProperty(d)&&y[c][d].onload()}}var j=j||B.errorTimeout,l=b.createElement(a),o=0,r=0,u={t:d,s:c,e:f,a:i,x:j};1===y[c]&&(r=1,y[c]=[]),"object"==a?l.data=c:(l.src=c,l.type=a),l.width=l.height="0",l.onerror=l.onload=l.onreadystatechange=function(){k.call(this,r)},p.splice(e,0,u),"img"!=a&&(r||2===y[c]?(t.insertBefore(l,s?null:n),m(k,j)):y[c].push(l))}function j(a,b,c,d,f){return q=0,b=b||"j",e(a)?i("c"==b?v:u,a,b,this.i++,c,d,f):(p.splice(this.i++,0,a),1==p.length&&h()),this}function k(){var a=B;return a.loader={load:j,i:0},a}var l=b.documentElement,m=a.setTimeout,n=b.getElementsByTagName("script")[0],o={}.toString,p=[],q=0,r="MozAppearance"in l.style,s=r&&!!b.createRange().compareNode,t=s?l:n.parentNode,l=a.opera&&"[object Opera]"==o.call(a.opera),l=!!b.attachEvent&&!l,u=r?"object":l?"script":"img",v=l?"script":u,w=Array.isArray||function(a){return"[object Array]"==o.call(a)},x=[],y={},z={timeout:function(a,b){return b.length&&(a.timeout=b[0]),a}},A,B;B=function(a){function b(a){var a=a.split("!"),b=x.length,c=a.pop(),d=a.length,c={url:c,origUrl:c,prefixes:a},e,f,g;for(f=0;f<d;f++)g=a[f].split("="),(e=z[g.shift()])&&(c=e(c,g));for(f=0;f<b;f++)c=x[f](c);return c}function g(a,e,f,g,h){var i=b(a),j=i.autoCallback;i.url.split(".").pop().split("?").shift(),i.bypass||(e&&(e=d(e)?e:e[a]||e[g]||e[a.split("/").pop().split("?")[0]]),i.instead?i.instead(a,e,f,g,h):(y[i.url]?i.noexec=!0:y[i.url]=1,f.load(i.url,i.forceCSS||!i.forceJS&&"css"==i.url.split(".").pop().split("?").shift()?"c":c,i.noexec,i.attrs,i.timeout),(d(e)||d(j))&&f.load(function(){k(),e&&e(i.origUrl,h,g),j&&j(i.origUrl,h,g),y[i.url]=2})))}function h(a,b){function c(a,c){if(a){if(e(a))c||(j=function(){var a=[].slice.call(arguments);k.apply(this,a),l()}),g(a,j,b,0,h);else if(Object(a)===a)for(n in m=function(){var b=0,c;for(c in a)a.hasOwnProperty(c)&&b++;return b}(),a)a.hasOwnProperty(n)&&(!c&&!--m&&(d(j)?j=function(){var a=[].slice.call(arguments);k.apply(this,a),l()}:j[n]=function(a){return function(){var b=[].slice.call(arguments);a&&a.apply(this,b),l()}}(k[n])),g(a[n],j,b,n,h))}else!c&&l()}var h=!!a.test,i=a.load||a.both,j=a.callback||f,k=j,l=a.complete||f,m,n;c(h?a.yep:a.nope,!!i),i&&c(i)}var i,j,l=this.yepnope.loader;if(e(a))g(a,0,l,0);else if(w(a))for(i=0;i<a.length;i++)j=a[i],e(j)?g(j,0,l,0):w(j)?B(j):Object(j)===j&&h(j,l);else Object(a)===a&&h(a,l)},B.addPrefix=function(a,b){z[a]=b},B.addFilter=function(a){x.push(a)},B.errorTimeout=1e4,null==b.readyState&&b.addEventListener&&(b.readyState="loading",b.addEventListener("DOMContentLoaded",A=function(){b.removeEventListener("DOMContentLoaded",A,0),b.readyState="complete"},0)),a.yepnope=k(),a.yepnope.executeStack=h,a.yepnope.injectJs=function(a,c,d,e,i,j){var k=b.createElement("script"),l,o,e=e||B.errorTimeout;k.src=a;for(o in d)k.setAttribute(o,d[o]);c=j?h:c||f,k.onreadystatechange=k.onload=function(){!l&&g(k.readyState)&&(l=1,c(),k.onload=k.onreadystatechange=null)},m(function(){l||(l=1,c(1))},e),i?k.onload():n.parentNode.insertBefore(k,n)},a.yepnope.injectCss=function(a,c,d,e,g,i){var e=b.createElement("link"),j,c=i?h:c||f;e.href=a,e.rel="stylesheet",e.type="text/css";for(j in d)e.setAttribute(j,d[j]);g||(n.parentNode.insertBefore(e,n),m(c,0))}})(this,document);
814
+ Modernizr.load=function(){yepnope.apply(window,[].slice.call(arguments,0));};
815
+ ;