action_ui 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (386) hide show
  1. checksums.yaml +7 -0
  2. data/README.md +36 -0
  3. data/lib/cre_pro-rails.rb +8 -0
  4. data/lib/cre_pro/rails.rb +7 -0
  5. data/lib/cre_pro/rails/version.rb +5 -0
  6. data/vendor/assets/javascripts/gp/gp.js +292 -0
  7. data/vendor/assets/javascripts/ld/bootstrap-checkbox-radio-switch-tags.js +869 -0
  8. data/vendor/assets/javascripts/ld/bootstrap-datetimepicker.js +2573 -0
  9. data/vendor/assets/javascripts/ld/bootstrap-notify.js +379 -0
  10. data/vendor/assets/javascripts/ld/bootstrap-selectpicker.js +1711 -0
  11. data/vendor/assets/javascripts/ld/bootstrap-table.js +2484 -0
  12. data/vendor/assets/javascripts/ld/chartist.min.js +8 -0
  13. data/vendor/assets/javascripts/ld/demo.js +731 -0
  14. data/vendor/assets/javascripts/ld/fullcalendar.min.js +9 -0
  15. data/vendor/assets/javascripts/ld/jquery-jvectormap.js +3381 -0
  16. data/vendor/assets/javascripts/ld/jquery-ui.min.js +24 -0
  17. data/vendor/assets/javascripts/ld/jquery.bootstrap.wizard.min.js +22 -0
  18. data/vendor/assets/javascripts/ld/jquery.datatables.js +15498 -0
  19. data/vendor/assets/javascripts/ld/jquery.min.js +5 -0
  20. data/vendor/assets/javascripts/ld/jquery.validate.min.js +4 -0
  21. data/vendor/assets/javascripts/ld/ld.js +422 -0
  22. data/vendor/assets/javascripts/ld/moment.min.js +7 -0
  23. data/vendor/assets/javascripts/ld/sweetalert2.js +877 -0
  24. data/vendor/assets/javascripts/mk/bootstrap-datepicker.js +474 -0
  25. data/vendor/assets/javascripts/mk/bootstrap.min.js +7 -0
  26. data/vendor/assets/javascripts/mk/jasny-bootstrap.min.js +6 -0
  27. data/vendor/assets/javascripts/mk/jquery.dropdown.js +378 -0
  28. data/vendor/assets/javascripts/mk/jquery.flexisel.js +342 -0
  29. data/vendor/assets/javascripts/mk/jquery.min.js +3 -0
  30. data/vendor/assets/javascripts/mk/jquery.tagsinput.js +355 -0
  31. data/vendor/assets/javascripts/mk/mk.js +191 -0
  32. data/vendor/assets/javascripts/mk/mk.min.js +1 -0
  33. data/vendor/assets/javascripts/mk/nouislider.min.js +31 -0
  34. data/vendor/assets/javascripts/pd/bootstrap-checkbox-radio-switch-tags.js +869 -0
  35. data/vendor/assets/javascripts/pd/bootstrap-datetimepicker.js +2576 -0
  36. data/vendor/assets/javascripts/pd/bootstrap-notify.js +379 -0
  37. data/vendor/assets/javascripts/pd/bootstrap-selectpicker.js +1711 -0
  38. data/vendor/assets/javascripts/pd/bootstrap-table.js +2484 -0
  39. data/vendor/assets/javascripts/pd/bootstrap.min.js +12 -0
  40. data/vendor/assets/javascripts/pd/chartist.min.js +9 -0
  41. data/vendor/assets/javascripts/pd/demo.js +911 -0
  42. data/vendor/assets/javascripts/pd/fullcalendar.min.js +9 -0
  43. data/vendor/assets/javascripts/pd/jquery-1.10.2.js +9789 -0
  44. data/vendor/assets/javascripts/pd/jquery-1.10.2.min.js +3 -0
  45. data/vendor/assets/javascripts/pd/jquery-jvectormap.js +3381 -0
  46. data/vendor/assets/javascripts/pd/jquery-ui.min.js +24 -0
  47. data/vendor/assets/javascripts/pd/jquery.bootstrap.wizard.min.js +22 -0
  48. data/vendor/assets/javascripts/pd/jquery.datatables.js +15498 -0
  49. data/vendor/assets/javascripts/pd/jquery.easypiechart.min.js +9 -0
  50. data/vendor/assets/javascripts/pd/jquery.min.js +5 -0
  51. data/vendor/assets/javascripts/pd/jquery.tagsinput.js +355 -0
  52. data/vendor/assets/javascripts/pd/jquery.validate.min.js +4 -0
  53. data/vendor/assets/javascripts/pd/moment.min.js +7 -0
  54. data/vendor/assets/javascripts/pd/pd.js +335 -0
  55. data/vendor/assets/javascripts/pd/sweetalert2.js +877 -0
  56. data/vendor/assets/javascripts/pk/bootstrap-datepicker.js +492 -0
  57. data/vendor/assets/javascripts/pk/bootstrap-select.js +1711 -0
  58. data/vendor/assets/javascripts/pk/chartist.min.js +8 -0
  59. data/vendor/assets/javascripts/pk/ct-pk-bootstrapswitch.js +249 -0
  60. data/vendor/assets/javascripts/pk/ct-pk-checkbox.js +109 -0
  61. data/vendor/assets/javascripts/pk/ct-pk-radio.js +140 -0
  62. data/vendor/assets/javascripts/pk/ct-pk.js +305 -0
  63. data/vendor/assets/javascripts/pk/demo.js +289 -0
  64. data/vendor/assets/javascripts/pk/jasny-bootstrap.min.js +6 -0
  65. data/vendor/assets/javascripts/pk/jquery-1.10.2.js +9789 -0
  66. data/vendor/assets/javascripts/pk/jquery-ui-1.10.4.custom.min.js +6 -0
  67. data/vendor/assets/javascripts/pk/jquery.tagsinput.js +355 -0
  68. data/vendor/assets/javascripts/pk/photo_swipe/init-gallery.js +205 -0
  69. data/vendor/assets/javascripts/pk/photo_swipe/photoswipe-ui-default.min.js +4 -0
  70. data/vendor/assets/javascripts/pk/photo_swipe/photoswipe.min.js +4 -0
  71. data/vendor/assets/javascripts/pk/presentation-page/atv-img-min.js +233 -0
  72. data/vendor/assets/javascripts/pk/presentation-page/jquery.sharrre.js +585 -0
  73. data/vendor/assets/javascripts/sd/bootstrap-datepicker.js +492 -0
  74. data/vendor/assets/javascripts/sd/bootstrap-select.js +1711 -0
  75. data/vendor/assets/javascripts/sd/chartist.min.js +8 -0
  76. data/vendor/assets/javascripts/sd/demo.js +227 -0
  77. data/vendor/assets/javascripts/sd/jquery-ui.custom.min.js +7 -0
  78. data/vendor/assets/javascripts/sd/jquery.flexisel.js +342 -0
  79. data/vendor/assets/javascripts/sd/jquery.js +9789 -0
  80. data/vendor/assets/javascripts/sd/jquery.tagsinput.js +355 -0
  81. data/vendor/assets/javascripts/sd/retina.min.js +10 -0
  82. data/vendor/assets/javascripts/sd/sd-bootstrapswitch.js +249 -0
  83. data/vendor/assets/javascripts/sd/sd-checkbox.js +109 -0
  84. data/vendor/assets/javascripts/sd/sd-morphing.js +89 -0
  85. data/vendor/assets/javascripts/sd/sd-radio.js +140 -0
  86. data/vendor/assets/javascripts/sd/sd.js +398 -0
  87. data/vendor/assets/stylesheets/gp/components/_buttons.scss +121 -0
  88. data/vendor/assets/stylesheets/gp/components/_cards.scss +271 -0
  89. data/vendor/assets/stylesheets/gp/components/_carousel.scss +15 -0
  90. data/vendor/assets/stylesheets/gp/components/_clients.scss +172 -0
  91. data/vendor/assets/stylesheets/gp/components/_closure.scss +19 -0
  92. data/vendor/assets/stylesheets/gp/components/_contact.scss +93 -0
  93. data/vendor/assets/stylesheets/gp/components/_dropdown.scss +173 -0
  94. data/vendor/assets/stylesheets/gp/components/_example-pages.scss +524 -0
  95. data/vendor/assets/stylesheets/gp/components/_footers.scss +191 -0
  96. data/vendor/assets/stylesheets/gp/components/_headers.scss +72 -0
  97. data/vendor/assets/stylesheets/gp/components/_inputs.scss +145 -0
  98. data/vendor/assets/stylesheets/gp/components/_labels.scss +15 -0
  99. data/vendor/assets/stylesheets/gp/components/_misc.scss +332 -0
  100. data/vendor/assets/stylesheets/gp/components/_mixins.scss +11 -0
  101. data/vendor/assets/stylesheets/gp/components/_navbars.scss +252 -0
  102. data/vendor/assets/stylesheets/gp/components/_numbers.scss +61 -0
  103. data/vendor/assets/stylesheets/gp/components/_projects.scss +279 -0
  104. data/vendor/assets/stylesheets/gp/components/_responsive.scss +950 -0
  105. data/vendor/assets/stylesheets/gp/components/_sections.scss +328 -0
  106. data/vendor/assets/stylesheets/gp/components/_social-buttons.scss +30 -0
  107. data/vendor/assets/stylesheets/gp/components/_team.scss +182 -0
  108. data/vendor/assets/stylesheets/gp/components/_theme.scss +22 -0
  109. data/vendor/assets/stylesheets/gp/components/_typography.scss +252 -0
  110. data/vendor/assets/stylesheets/gp/components/_variables.scss +267 -0
  111. data/vendor/assets/stylesheets/gp/components/mixins/_buttons.scss +61 -0
  112. data/vendor/assets/stylesheets/gp/components/mixins/_cards.scss +8 -0
  113. data/vendor/assets/stylesheets/gp/components/mixins/_inputs.scss +17 -0
  114. data/vendor/assets/stylesheets/gp/components/mixins/_navbars.scss +11 -0
  115. data/vendor/assets/stylesheets/gp/components/mixins/_transparency.scss +20 -0
  116. data/vendor/assets/stylesheets/gp/components/mixins/_vendor-prefixes.scss +284 -0
  117. data/vendor/assets/stylesheets/gp/gp.scss +30 -0
  118. data/vendor/assets/stylesheets/ld/ld.scss +53 -0
  119. data/vendor/assets/stylesheets/ld/ld/_alerts.scss +82 -0
  120. data/vendor/assets/stylesheets/ld/ld/_buttons.scss +123 -0
  121. data/vendor/assets/stylesheets/ld/ld/_cards.scss +315 -0
  122. data/vendor/assets/stylesheets/ld/ld/_carousel.scss +15 -0
  123. data/vendor/assets/stylesheets/ld/ld/_checkbox-radio-switch.scss +253 -0
  124. data/vendor/assets/stylesheets/ld/ld/_collapse.scss +49 -0
  125. data/vendor/assets/stylesheets/ld/ld/_dropdown.scss +176 -0
  126. data/vendor/assets/stylesheets/ld/ld/_footers.scss +155 -0
  127. data/vendor/assets/stylesheets/ld/ld/_forms.scss +41 -0
  128. data/vendor/assets/stylesheets/ld/ld/_inputs.scss +170 -0
  129. data/vendor/assets/stylesheets/ld/ld/_labels.scss +54 -0
  130. data/vendor/assets/stylesheets/ld/ld/_media.scss +80 -0
  131. data/vendor/assets/stylesheets/ld/ld/_misc.scss +87 -0
  132. data/vendor/assets/stylesheets/ld/ld/_mixins.scss +22 -0
  133. data/vendor/assets/stylesheets/ld/ld/_modal.scss +79 -0
  134. data/vendor/assets/stylesheets/ld/ld/_navbars.scss +362 -0
  135. data/vendor/assets/stylesheets/ld/ld/_pages.scss +215 -0
  136. data/vendor/assets/stylesheets/ld/ld/_progress-bars.scss +26 -0
  137. data/vendor/assets/stylesheets/ld/ld/_responsive.scss +647 -0
  138. data/vendor/assets/stylesheets/ld/ld/_sidebar-and-main-panel.scss +576 -0
  139. data/vendor/assets/stylesheets/ld/ld/_sliders.scss +219 -0
  140. data/vendor/assets/stylesheets/ld/ld/_social-buttons.scss +77 -0
  141. data/vendor/assets/stylesheets/ld/ld/_tables.scss +120 -0
  142. data/vendor/assets/stylesheets/ld/ld/_tabs-navs-pagination.scss +302 -0
  143. data/vendor/assets/stylesheets/ld/ld/_tags.scss +123 -0
  144. data/vendor/assets/stylesheets/ld/ld/_tooltips-and-popovers.scss +156 -0
  145. data/vendor/assets/stylesheets/ld/ld/_typography.scss +93 -0
  146. data/vendor/assets/stylesheets/ld/ld/_variables.scss +319 -0
  147. data/vendor/assets/stylesheets/ld/ld/mixins/_buttons.scss +74 -0
  148. data/vendor/assets/stylesheets/ld/ld/mixins/_cards.scss +8 -0
  149. data/vendor/assets/stylesheets/ld/ld/mixins/_chartist.scss +85 -0
  150. data/vendor/assets/stylesheets/ld/ld/mixins/_icons.scss +13 -0
  151. data/vendor/assets/stylesheets/ld/ld/mixins/_inputs.scss +17 -0
  152. data/vendor/assets/stylesheets/ld/ld/mixins/_labels.scss +21 -0
  153. data/vendor/assets/stylesheets/ld/ld/mixins/_morphing-buttons.scss +34 -0
  154. data/vendor/assets/stylesheets/ld/ld/mixins/_navbars.scss +11 -0
  155. data/vendor/assets/stylesheets/ld/ld/mixins/_social-buttons.scss +43 -0
  156. data/vendor/assets/stylesheets/ld/ld/mixins/_table-row.scss +22 -0
  157. data/vendor/assets/stylesheets/ld/ld/mixins/_tabs.scss +4 -0
  158. data/vendor/assets/stylesheets/ld/ld/mixins/_transparency.scss +20 -0
  159. data/vendor/assets/stylesheets/ld/ld/mixins/_vendor-prefixes.scss +197 -0
  160. data/vendor/assets/stylesheets/ld/ld/plugins/_animate.scss +188 -0
  161. data/vendor/assets/stylesheets/ld/ld/plugins/_bootstrap-select.scss +308 -0
  162. data/vendor/assets/stylesheets/ld/ld/plugins/_bootstrap-table.scss +328 -0
  163. data/vendor/assets/stylesheets/ld/ld/plugins/_chartist.scss +247 -0
  164. data/vendor/assets/stylesheets/ld/ld/plugins/_datatables.net.scss +513 -0
  165. data/vendor/assets/stylesheets/ld/ld/plugins/_datetime-picker.scss +440 -0
  166. data/vendor/assets/stylesheets/ld/ld/plugins/_fullcalendar.scss +1114 -0
  167. data/vendor/assets/stylesheets/ld/ld/plugins/_jquery.jvectormap.scss +135 -0
  168. data/vendor/assets/stylesheets/ld/ld/plugins/_perfect-scrollbar.scss +111 -0
  169. data/vendor/assets/stylesheets/ld/ld/plugins/_sweetalert2.scss +531 -0
  170. data/vendor/assets/stylesheets/mk/mk.scss +50 -0
  171. data/vendor/assets/stylesheets/mk/mk/_alerts.scss +41 -0
  172. data/vendor/assets/stylesheets/mk/mk/_buttons.scss +283 -0
  173. data/vendor/assets/stylesheets/mk/mk/_cards.scss +576 -0
  174. data/vendor/assets/stylesheets/mk/mk/_carousel.scss +86 -0
  175. data/vendor/assets/stylesheets/mk/mk/_checkboxes.scss +195 -0
  176. data/vendor/assets/stylesheets/mk/mk/_colors.scss +326 -0
  177. data/vendor/assets/stylesheets/mk/mk/_dialogs.scss +99 -0
  178. data/vendor/assets/stylesheets/mk/mk/_dividers.scss +73 -0
  179. data/vendor/assets/stylesheets/mk/mk/_dropdown.scss +86 -0
  180. data/vendor/assets/stylesheets/mk/mk/_example-pages.scss +775 -0
  181. data/vendor/assets/stylesheets/mk/mk/_fileupload.scss +115 -0
  182. data/vendor/assets/stylesheets/mk/mk/_flexisel.scss +54 -0
  183. data/vendor/assets/stylesheets/mk/mk/_form.scss +58 -0
  184. data/vendor/assets/stylesheets/mk/mk/_images.scss +6 -0
  185. data/vendor/assets/stylesheets/mk/mk/_import-bs-less.scss +4 -0
  186. data/vendor/assets/stylesheets/mk/mk/_import-bs-sass.scss +2 -0
  187. data/vendor/assets/stylesheets/mk/mk/_info-areas.scss +57 -0
  188. data/vendor/assets/stylesheets/mk/mk/_inputs-size.scss +223 -0
  189. data/vendor/assets/stylesheets/mk/mk/_inputs.scss +394 -0
  190. data/vendor/assets/stylesheets/mk/mk/_labels.scss +10 -0
  191. data/vendor/assets/stylesheets/mk/mk/_lists.scss +104 -0
  192. data/vendor/assets/stylesheets/mk/mk/_media.scss +47 -0
  193. data/vendor/assets/stylesheets/mk/mk/_misc.scss +94 -0
  194. data/vendor/assets/stylesheets/mk/mk/_mixins.scss +413 -0
  195. data/vendor/assets/stylesheets/mk/mk/_navbar.scss +311 -0
  196. data/vendor/assets/stylesheets/mk/mk/_pagination.scss +91 -0
  197. data/vendor/assets/stylesheets/mk/mk/_panels.scss +47 -0
  198. data/vendor/assets/stylesheets/mk/mk/_pills.scss +128 -0
  199. data/vendor/assets/stylesheets/mk/mk/_popups.scss +77 -0
  200. data/vendor/assets/stylesheets/mk/mk/_progress.scss +33 -0
  201. data/vendor/assets/stylesheets/mk/mk/_radios.scss +114 -0
  202. data/vendor/assets/stylesheets/mk/mk/_responsive.scss +115 -0
  203. data/vendor/assets/stylesheets/mk/mk/_ripples.scss +40 -0
  204. data/vendor/assets/stylesheets/mk/mk/_sections.scss +131 -0
  205. data/vendor/assets/stylesheets/mk/mk/_select.scss +108 -0
  206. data/vendor/assets/stylesheets/mk/mk/_shadows.scss +138 -0
  207. data/vendor/assets/stylesheets/mk/mk/_tables.scss +104 -0
  208. data/vendor/assets/stylesheets/mk/mk/_tabs.scss +53 -0
  209. data/vendor/assets/stylesheets/mk/mk/_tags.scss +97 -0
  210. data/vendor/assets/stylesheets/mk/mk/_togglebutton.scss +87 -0
  211. data/vendor/assets/stylesheets/mk/mk/_typography.scss +75 -0
  212. data/vendor/assets/stylesheets/mk/mk/_variables.scss +224 -0
  213. data/vendor/assets/stylesheets/mk/mk/_variables_bootstrap.scss +883 -0
  214. data/vendor/assets/stylesheets/mk/mk/_welljumbo.scss +28 -0
  215. data/vendor/assets/stylesheets/mk/mk/plugins/_plugin-datepicker.scss +204 -0
  216. data/vendor/assets/stylesheets/mk/mk/plugins/_plugin-nouislider.scss +161 -0
  217. data/vendor/assets/stylesheets/mk/mk/plugins/_plugin-selectize.scss +93 -0
  218. data/vendor/assets/stylesheets/mk/mk/plugins/_plugin-snackbarjs.scss +34 -0
  219. data/vendor/assets/stylesheets/mk/mk/sections/_blogs.scss +17 -0
  220. data/vendor/assets/stylesheets/mk/mk/sections/_contactus.scss +51 -0
  221. data/vendor/assets/stylesheets/mk/mk/sections/_features.scss +92 -0
  222. data/vendor/assets/stylesheets/mk/mk/sections/_footers.scss +163 -0
  223. data/vendor/assets/stylesheets/mk/mk/sections/_headers.scss +125 -0
  224. data/vendor/assets/stylesheets/mk/mk/sections/_pricing.scss +40 -0
  225. data/vendor/assets/stylesheets/mk/mk/sections/_projects.scss +75 -0
  226. data/vendor/assets/stylesheets/mk/mk/sections/_social-subscribe-lines.scss +71 -0
  227. data/vendor/assets/stylesheets/mk/mk/sections/_team.scss +53 -0
  228. data/vendor/assets/stylesheets/mk/mk/sections/_testimonials.scss +5 -0
  229. data/vendor/assets/stylesheets/pd/pd.scss +51 -0
  230. data/vendor/assets/stylesheets/pd/pd/_alerts.scss +60 -0
  231. data/vendor/assets/stylesheets/pd/pd/_animated-buttons.scss +61 -0
  232. data/vendor/assets/stylesheets/pd/pd/_buttons.scss +173 -0
  233. data/vendor/assets/stylesheets/pd/pd/_cards.scss +546 -0
  234. data/vendor/assets/stylesheets/pd/pd/_carousel.scss +15 -0
  235. data/vendor/assets/stylesheets/pd/pd/_chat-message.scss +206 -0
  236. data/vendor/assets/stylesheets/pd/pd/_checkbox-radio.scss +126 -0
  237. data/vendor/assets/stylesheets/pd/pd/_circlechart.scss +18 -0
  238. data/vendor/assets/stylesheets/pd/pd/_collapse.scss +40 -0
  239. data/vendor/assets/stylesheets/pd/pd/_dropdown.scss +413 -0
  240. data/vendor/assets/stylesheets/pd/pd/_footers.scss +87 -0
  241. data/vendor/assets/stylesheets/pd/pd/_forms.scss +43 -0
  242. data/vendor/assets/stylesheets/pd/pd/_inputs.scss +190 -0
  243. data/vendor/assets/stylesheets/pd/pd/_labels.scss +29 -0
  244. data/vendor/assets/stylesheets/pd/pd/_media.scss +80 -0
  245. data/vendor/assets/stylesheets/pd/pd/_misc.scss +104 -0
  246. data/vendor/assets/stylesheets/pd/pd/_mixins.scss +17 -0
  247. data/vendor/assets/stylesheets/pd/pd/_modal.scss +79 -0
  248. data/vendor/assets/stylesheets/pd/pd/_navbars.scss +289 -0
  249. data/vendor/assets/stylesheets/pd/pd/_pages.scss +196 -0
  250. data/vendor/assets/stylesheets/pd/pd/_progress-bars.scss +27 -0
  251. data/vendor/assets/stylesheets/pd/pd/_responsive.scss +666 -0
  252. data/vendor/assets/stylesheets/pd/pd/_sidebar-and-main-panel.scss +514 -0
  253. data/vendor/assets/stylesheets/pd/pd/_sliders.scss +222 -0
  254. data/vendor/assets/stylesheets/pd/pd/_social.scss +130 -0
  255. data/vendor/assets/stylesheets/pd/pd/_switch.scss +145 -0
  256. data/vendor/assets/stylesheets/pd/pd/_tables.scss +194 -0
  257. data/vendor/assets/stylesheets/pd/pd/_tabs-navs-pagination.scss +341 -0
  258. data/vendor/assets/stylesheets/pd/pd/_tags.scss +104 -0
  259. data/vendor/assets/stylesheets/pd/pd/_timeline.scss +178 -0
  260. data/vendor/assets/stylesheets/pd/pd/_tooltips-and-popovers.scss +156 -0
  261. data/vendor/assets/stylesheets/pd/pd/_typography.scss +117 -0
  262. data/vendor/assets/stylesheets/pd/pd/_variables.scss +367 -0
  263. data/vendor/assets/stylesheets/pd/pd/mixins/_alerts.scss +13 -0
  264. data/vendor/assets/stylesheets/pd/pd/mixins/_buttons.scss +89 -0
  265. data/vendor/assets/stylesheets/pd/pd/mixins/_cards.scss +7 -0
  266. data/vendor/assets/stylesheets/pd/pd/mixins/_chartist.scss +104 -0
  267. data/vendor/assets/stylesheets/pd/pd/mixins/_icons.scss +13 -0
  268. data/vendor/assets/stylesheets/pd/pd/mixins/_inputs.scss +17 -0
  269. data/vendor/assets/stylesheets/pd/pd/mixins/_labels.scss +10 -0
  270. data/vendor/assets/stylesheets/pd/pd/mixins/_navbars.scss +11 -0
  271. data/vendor/assets/stylesheets/pd/pd/mixins/_sidebar.scss +54 -0
  272. data/vendor/assets/stylesheets/pd/pd/mixins/_social.scss +68 -0
  273. data/vendor/assets/stylesheets/pd/pd/mixins/_table-row.scss +22 -0
  274. data/vendor/assets/stylesheets/pd/pd/mixins/_tabs.scss +4 -0
  275. data/vendor/assets/stylesheets/pd/pd/mixins/_transparency.scss +20 -0
  276. data/vendor/assets/stylesheets/pd/pd/mixins/_vendor-prefixes.scss +254 -0
  277. data/vendor/assets/stylesheets/pd/pd/plugins/_animate.scss +189 -0
  278. data/vendor/assets/stylesheets/pd/pd/plugins/_bootstrap-select.scss +313 -0
  279. data/vendor/assets/stylesheets/pd/pd/plugins/_bootstrap-table.scss +375 -0
  280. data/vendor/assets/stylesheets/pd/pd/plugins/_chartist.scss +246 -0
  281. data/vendor/assets/stylesheets/pd/pd/plugins/_datatables.net.scss +504 -0
  282. data/vendor/assets/stylesheets/pd/pd/plugins/_datetime-picker.scss +418 -0
  283. data/vendor/assets/stylesheets/pd/pd/plugins/_fullcalendar.scss +1124 -0
  284. data/vendor/assets/stylesheets/pd/pd/plugins/_jquery.jvectormap.scss +135 -0
  285. data/vendor/assets/stylesheets/pd/pd/plugins/_perfect-scrollbar.scss +112 -0
  286. data/vendor/assets/stylesheets/pd/pd/plugins/_sweetalert2.scss +531 -0
  287. data/vendor/assets/stylesheets/pk/ct-pk.scss +64 -0
  288. data/vendor/assets/stylesheets/pk/ct-pk/_alerts.scss +69 -0
  289. data/vendor/assets/stylesheets/pk/ct-pk/_animated-buttons.scss +63 -0
  290. data/vendor/assets/stylesheets/pk/ct-pk/_bootstrap-select.scss +320 -0
  291. data/vendor/assets/stylesheets/pk/ct-pk/_buttons.scss +161 -0
  292. data/vendor/assets/stylesheets/pk/ct-pk/_cards.scss +570 -0
  293. data/vendor/assets/stylesheets/pk/ct-pk/_carousel.scss +59 -0
  294. data/vendor/assets/stylesheets/pk/ct-pk/_chartist.scss +354 -0
  295. data/vendor/assets/stylesheets/pk/ct-pk/_checkbox-radio.scss +129 -0
  296. data/vendor/assets/stylesheets/pk/ct-pk/_collapse.scss +40 -0
  297. data/vendor/assets/stylesheets/pk/ct-pk/_datepicker.scss +198 -0
  298. data/vendor/assets/stylesheets/pk/ct-pk/_dropdown.scss +291 -0
  299. data/vendor/assets/stylesheets/pk/ct-pk/_fileupload.scss +112 -0
  300. data/vendor/assets/stylesheets/pk/ct-pk/_footers.scss +193 -0
  301. data/vendor/assets/stylesheets/pk/ct-pk/_headers.scss +85 -0
  302. data/vendor/assets/stylesheets/pk/ct-pk/_images.scss +28 -0
  303. data/vendor/assets/stylesheets/pk/ct-pk/_info-areas.scss +62 -0
  304. data/vendor/assets/stylesheets/pk/ct-pk/_inputs.scss +171 -0
  305. data/vendor/assets/stylesheets/pk/ct-pk/_labels.scss +29 -0
  306. data/vendor/assets/stylesheets/pk/ct-pk/_media.scss +82 -0
  307. data/vendor/assets/stylesheets/pk/ct-pk/_misc.scss +124 -0
  308. data/vendor/assets/stylesheets/pk/ct-pk/_mixins.scss +16 -0
  309. data/vendor/assets/stylesheets/pk/ct-pk/_modal.scss +91 -0
  310. data/vendor/assets/stylesheets/pk/ct-pk/_navbars.scss +285 -0
  311. data/vendor/assets/stylesheets/pk/ct-pk/_preloaders.scss +282 -0
  312. data/vendor/assets/stylesheets/pk/ct-pk/_progress-bars.scss +27 -0
  313. data/vendor/assets/stylesheets/pk/ct-pk/_responsive.scss +411 -0
  314. data/vendor/assets/stylesheets/pk/ct-pk/_sections.scss +45 -0
  315. data/vendor/assets/stylesheets/pk/ct-pk/_sidebar.scss +206 -0
  316. data/vendor/assets/stylesheets/pk/ct-pk/_sliders.scss +222 -0
  317. data/vendor/assets/stylesheets/pk/ct-pk/_social.scss +130 -0
  318. data/vendor/assets/stylesheets/pk/ct-pk/_switch.scss +145 -0
  319. data/vendor/assets/stylesheets/pk/ct-pk/_tables.scss +135 -0
  320. data/vendor/assets/stylesheets/pk/ct-pk/_tabs-navs-pagination.scss +311 -0
  321. data/vendor/assets/stylesheets/pk/ct-pk/_tags.scss +108 -0
  322. data/vendor/assets/stylesheets/pk/ct-pk/_tooltips-and-popovers.scss +188 -0
  323. data/vendor/assets/stylesheets/pk/ct-pk/_typography.scss +106 -0
  324. data/vendor/assets/stylesheets/pk/ct-pk/_variables.scss +301 -0
  325. data/vendor/assets/stylesheets/pk/ct-pk/mixins/_alerts.scss +11 -0
  326. data/vendor/assets/stylesheets/pk/ct-pk/mixins/_buttons.scss +104 -0
  327. data/vendor/assets/stylesheets/pk/ct-pk/mixins/_inputs.scss +17 -0
  328. data/vendor/assets/stylesheets/pk/ct-pk/mixins/_labels.scss +10 -0
  329. data/vendor/assets/stylesheets/pk/ct-pk/mixins/_navbars.scss +11 -0
  330. data/vendor/assets/stylesheets/pk/ct-pk/mixins/_popovers.scss +21 -0
  331. data/vendor/assets/stylesheets/pk/ct-pk/mixins/_social.scss +68 -0
  332. data/vendor/assets/stylesheets/pk/ct-pk/mixins/_tabs.scss +4 -0
  333. data/vendor/assets/stylesheets/pk/ct-pk/mixins/_transparency.scss +17 -0
  334. data/vendor/assets/stylesheets/pk/ct-pk/mixins/_vendor-prefixes.scss +233 -0
  335. data/vendor/assets/stylesheets/pk/ct-pk/plugins/photo-swipe/_default-skin.scss +592 -0
  336. data/vendor/assets/stylesheets/pk/ct-pk/plugins/photo-swipe/_gallery.scss +27 -0
  337. data/vendor/assets/stylesheets/pk/ct-pk/plugins/photo-swipe/_main-settings.scss +11 -0
  338. data/vendor/assets/stylesheets/pk/ct-pk/plugins/photo-swipe/_main.scss +213 -0
  339. data/vendor/assets/stylesheets/pk/examples.scss +1083 -0
  340. data/vendor/assets/stylesheets/sd/examples.scss +403 -0
  341. data/vendor/assets/stylesheets/sd/sd.scss +41 -0
  342. data/vendor/assets/stylesheets/sd/sd/_alerts.scss +37 -0
  343. data/vendor/assets/stylesheets/sd/sd/_bootstrap-select.scss +307 -0
  344. data/vendor/assets/stylesheets/sd/sd/_buttons.scss +108 -0
  345. data/vendor/assets/stylesheets/sd/sd/_cards.scss +462 -0
  346. data/vendor/assets/stylesheets/sd/sd/_carousel.scss +15 -0
  347. data/vendor/assets/stylesheets/sd/sd/_chartist.scss +335 -0
  348. data/vendor/assets/stylesheets/sd/sd/_checkbox-radio-switch.scss +246 -0
  349. data/vendor/assets/stylesheets/sd/sd/_collapse.scss +33 -0
  350. data/vendor/assets/stylesheets/sd/sd/_datepicker.scss +199 -0
  351. data/vendor/assets/stylesheets/sd/sd/_dropdown.scss +98 -0
  352. data/vendor/assets/stylesheets/sd/sd/_flexisel.scss +53 -0
  353. data/vendor/assets/stylesheets/sd/sd/_footers.scss +216 -0
  354. data/vendor/assets/stylesheets/sd/sd/_icons.scss +127 -0
  355. data/vendor/assets/stylesheets/sd/sd/_inputs.scss +141 -0
  356. data/vendor/assets/stylesheets/sd/sd/_labels.scss +54 -0
  357. data/vendor/assets/stylesheets/sd/sd/_media.scss +80 -0
  358. data/vendor/assets/stylesheets/sd/sd/_misc.scss +115 -0
  359. data/vendor/assets/stylesheets/sd/sd/_mixins.scss +20 -0
  360. data/vendor/assets/stylesheets/sd/sd/_modal.scss +79 -0
  361. data/vendor/assets/stylesheets/sd/sd/_morphing-buttons.scss +161 -0
  362. data/vendor/assets/stylesheets/sd/sd/_navbars.scss +293 -0
  363. data/vendor/assets/stylesheets/sd/sd/_progress-bars.scss +9 -0
  364. data/vendor/assets/stylesheets/sd/sd/_responsive.scss +302 -0
  365. data/vendor/assets/stylesheets/sd/sd/_sections.scss +12 -0
  366. data/vendor/assets/stylesheets/sd/sd/_sidebar-menu.scss +232 -0
  367. data/vendor/assets/stylesheets/sd/sd/_sliders.scss +218 -0
  368. data/vendor/assets/stylesheets/sd/sd/_social-buttons.scss +76 -0
  369. data/vendor/assets/stylesheets/sd/sd/_tables.scss +110 -0
  370. data/vendor/assets/stylesheets/sd/sd/_tabs-navs-pagination.scss +217 -0
  371. data/vendor/assets/stylesheets/sd/sd/_tags.scss +220 -0
  372. data/vendor/assets/stylesheets/sd/sd/_tooltips-and-popovers.scss +156 -0
  373. data/vendor/assets/stylesheets/sd/sd/_typography.scss +73 -0
  374. data/vendor/assets/stylesheets/sd/sd/_variables.scss +249 -0
  375. data/vendor/assets/stylesheets/sd/sd/mixins/_buttons.scss +76 -0
  376. data/vendor/assets/stylesheets/sd/sd/mixins/_cards.scss +8 -0
  377. data/vendor/assets/stylesheets/sd/sd/mixins/_icons.scss +13 -0
  378. data/vendor/assets/stylesheets/sd/sd/mixins/_inputs.scss +17 -0
  379. data/vendor/assets/stylesheets/sd/sd/mixins/_labels.scss +21 -0
  380. data/vendor/assets/stylesheets/sd/sd/mixins/_morphing-buttons.scss +34 -0
  381. data/vendor/assets/stylesheets/sd/sd/mixins/_navbars.scss +11 -0
  382. data/vendor/assets/stylesheets/sd/sd/mixins/_social-buttons.scss +43 -0
  383. data/vendor/assets/stylesheets/sd/sd/mixins/_tabs.scss +4 -0
  384. data/vendor/assets/stylesheets/sd/sd/mixins/_transparency.scss +20 -0
  385. data/vendor/assets/stylesheets/sd/sd/mixins/_vendor-prefixes.scss +177 -0
  386. metadata +484 -0
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 912e1fa0df338e56b886a5cdc039f8521c832bb6
4
+ data.tar.gz: d204d1cde4900885b170f9cde5b71a58c9031d24
5
+ SHA512:
6
+ metadata.gz: 3e1f20daf4986d4757e3c86262a81fa39cf65902a222be90a3dada5e8d5cc1f1a74375ee406d2b074523f84746420fece1e1a22005b60e54266d0ba7e41c0b1c
7
+ data.tar.gz: f25a885e606aace850cab3e8058c68f120d9eb964a2ba4f1d7ae885909ee9aac3bf667f22273ac9529633ef8dc93dd630610ff1adca1ee84fc73ed0ac0ac43c7
@@ -0,0 +1,36 @@
1
+ # CrePro::GEM
2
+
3
+ Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/CrePro/GEM`. To experiment with that code, run `bin/console` for an interactive prompt.
4
+
5
+ TODO: Delete this and the text above, and describe your gem
6
+
7
+ ## Installation
8
+
9
+ Add this line to your application's Gemfile:
10
+
11
+ ```ruby
12
+ gem 'cre_pro'
13
+ ```
14
+
15
+ And then execute:
16
+
17
+ $ bundle
18
+
19
+ Or install it yourself as:
20
+
21
+ $ gem install cre_pro
22
+
23
+ ## Usage
24
+
25
+ TODO: Write usage instructions here
26
+
27
+ ## Development
28
+
29
+ After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
30
+
31
+ To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
32
+
33
+ ## Contributing
34
+
35
+ Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/CrePro-GEM.
36
+
@@ -0,0 +1,8 @@
1
+ require "cre_pro/rails/version"
2
+
3
+ module CrePro
4
+ module Rails
5
+ class Engine < ::Rails::Engine
6
+ end
7
+ end
8
+ end
@@ -0,0 +1,7 @@
1
+ require "cre_pro/rails/version"
2
+
3
+ module CrePro
4
+ module Rails
5
+ # Your code goes here...
6
+ end
7
+ end
@@ -0,0 +1,5 @@
1
+ module CrePro
2
+ module Rails
3
+ VERSION = '0.0.1'
4
+ end
5
+ end
@@ -0,0 +1,292 @@
1
+ var transparent = true;
2
+
3
+ var fixedTop = false;
4
+
5
+ var navbar_initialized = false;
6
+
7
+ var scroll;
8
+
9
+ scroll = ( 2500 - $(window).width() ) / $(window).width();
10
+
11
+ var window_height;
12
+ var window_width;
13
+
14
+ var content_opacity = 0;
15
+ var content_transition = 0;
16
+ var no_touch_screen = false;
17
+
18
+ var burger_menu;
19
+
20
+ var scroll_distance = 500;
21
+
22
+ $(document).ready(function(){
23
+ BrowserDetect.init();
24
+
25
+ if(BrowserDetect.browser == 'Explorer' && BrowserDetect.version <= 9){
26
+ $('body').html(better_browser);
27
+ }
28
+
29
+ window_width = $(window).width();
30
+ window_height = $(window).height();
31
+
32
+ burger_menu = $('.navbar').hasClass('navbar-burger') ? true : false;
33
+
34
+ if (!Modernizr.touch){
35
+ $('body').addClass('no-touch');
36
+ no_touch_screen = true;
37
+ }
38
+
39
+ // Init navigation toggle for small screens
40
+ if(window_width < 992 || burger_menu){
41
+ gaia.initRightMenu();
42
+ }
43
+
44
+ if($('.content-with-opacity').length != 0){
45
+ content_opacity = 1;
46
+ }
47
+
48
+ $navbar = $('.navbar[color-on-scroll]');
49
+ scroll_distance = $navbar.attr('color-on-scroll') || 500;
50
+
51
+ $('.google-map').each(function(){
52
+ var lng = $(this).data('lng');
53
+ var lat = $(this).data('lat');
54
+
55
+ gaia.initGoogleMaps(this, lat, lng);
56
+ });
57
+
58
+ });
59
+
60
+ //activate collapse right menu when the windows is resized
61
+ $(window).resize(function(){
62
+ if($(window).width() < 992){
63
+ gaia.initRightMenu();
64
+ //gaia.checkResponsiveImage();
65
+ }
66
+ if($(window).width() > 992 && !burger_menu){
67
+ $('nav[role="navigation"]').removeClass('navbar-burger');
68
+ gaia.misc.navbar_menu_visible = 1;
69
+ navbar_initialized = false;
70
+ }
71
+ });
72
+
73
+ $(window).on('scroll',function(){
74
+
75
+ gaia.checkScrollForTransparentNavbar();
76
+
77
+
78
+ if(window_width > 992){
79
+ gaia.checkScrollForParallax();
80
+ }
81
+
82
+ if(content_opacity == 1 ){
83
+ gaia.checkScrollForContentTransitions();
84
+ }
85
+
86
+ });
87
+
88
+ $('a[data-scroll="true"]').click(function(e){
89
+ var scroll_target = $(this).data('id');
90
+ var scroll_trigger = $(this).data('scroll');
91
+
92
+ if(scroll_trigger == true && scroll_target !== undefined){
93
+ e.preventDefault();
94
+
95
+ $('html, body').animate({
96
+ scrollTop: $(scroll_target).offset().top - 50
97
+ }, 1000);
98
+ }
99
+
100
+ });
101
+
102
+ gaia = {
103
+ misc:{
104
+ navbar_menu_visible: 0
105
+ },
106
+ initRightMenu: function(){
107
+
108
+ if(!navbar_initialized){
109
+ $toggle = $('.navbar-toggle');
110
+ $toggle.click(function (){
111
+
112
+ if(gaia.misc.navbar_menu_visible == 1) {
113
+ $('html').removeClass('nav-open');
114
+ gaia.misc.navbar_menu_visible = 0;
115
+ $('#bodyClick').remove();
116
+ setTimeout(function(){
117
+ $toggle.removeClass('toggled');
118
+ }, 550);
119
+
120
+ } else {
121
+ setTimeout(function(){
122
+ $toggle.addClass('toggled');
123
+ }, 580);
124
+
125
+ div = '<div id="bodyClick"></div>';
126
+ $(div).appendTo("body").click(function() {
127
+ $('html').removeClass('nav-open');
128
+ gaia.misc.navbar_menu_visible = 0;
129
+ $('#bodyClick').remove();
130
+ setTimeout(function(){
131
+ $toggle.removeClass('toggled');
132
+ }, 550);
133
+ });
134
+
135
+ $('html').addClass('nav-open');
136
+ gaia.misc.navbar_menu_visible = 1;
137
+
138
+ }
139
+ });
140
+ navbar_initialized = true;
141
+ }
142
+
143
+ },
144
+
145
+ checkScrollForTransparentNavbar: debounce(function() {
146
+ if($(document).scrollTop() > scroll_distance ) {
147
+ if(transparent) {
148
+ transparent = false;
149
+ $navbar.removeClass('navbar-transparent');
150
+ }
151
+ } else {
152
+ if( !transparent ) {
153
+ transparent = true;
154
+ $navbar.addClass('navbar-transparent');
155
+ }
156
+ }
157
+ }, 17),
158
+
159
+ checkScrollForParallax: debounce(function() {
160
+ $('.parallax').each(function() {
161
+ var $elem = $(this);
162
+
163
+ if(isElementInViewport($elem)){
164
+ var parent_top = $elem.offset().top;
165
+ var window_bottom = $(window).scrollTop();
166
+ var $image = $elem.children('.image');
167
+
168
+ oVal = ((window_bottom - parent_top) / 3);
169
+ $image.css('transform','translate3d(0px, ' + oVal + 'px, 0px)');
170
+ }
171
+ });
172
+
173
+ }, 6),
174
+
175
+ checkScrollForContentTransitions: debounce(function() {
176
+ $('.content-with-opacity').each(function() {
177
+ var $content = $(this);
178
+
179
+ if(isElementInViewport($content)){
180
+ var window_top = $(window).scrollTop();
181
+ opacityVal = 1 - (window_top / 230);
182
+
183
+ if(opacityVal < 0){
184
+ opacityVal = 0;
185
+ return;
186
+ } else {
187
+ $content.css('opacity',opacityVal);
188
+ }
189
+
190
+ }
191
+ });
192
+ }, 6),
193
+
194
+ initGoogleMaps: function($elem, lat, lng){
195
+ var myLatlng = new google.maps.LatLng(lat, lng);
196
+
197
+ var mapOptions = {
198
+ zoom: 13,
199
+ center: myLatlng,
200
+ scrollwheel: false, //we disable de scroll over the map, it is a really annoing when you scroll through page
201
+ disableDefaultUI: true,
202
+ styles: [{"featureType":"administrative","elementType":"labels","stylers":[{"visibility":"on"},{"gamma":"1.82"}]},{"featureType":"administrative","elementType":"labels.text.fill","stylers":[{"visibility":"on"},{"gamma":"1.96"},{"lightness":"-9"}]},{"featureType":"administrative","elementType":"labels.text.stroke","stylers":[{"visibility":"off"}]},{"featureType":"landscape","elementType":"all","stylers":[{"visibility":"on"},{"lightness":"25"},{"gamma":"1.00"},{"saturation":"-100"}]},{"featureType":"poi.business","elementType":"all","stylers":[{"visibility":"off"}]},{"featureType":"poi.park","elementType":"all","stylers":[{"visibility":"off"}]},{"featureType":"road","elementType":"geometry.stroke","stylers":[{"visibility":"off"}]},{"featureType":"road","elementType":"labels.icon","stylers":[{"visibility":"off"}]},{"featureType":"road.highway","elementType":"geometry","stylers":[{"hue":"#ffaa00"},{"saturation":"-43"},{"visibility":"on"}]},{"featureType":"road.highway","elementType":"geometry.stroke","stylers":[{"visibility":"off"}]},{"featureType":"road.highway","elementType":"labels","stylers":[{"visibility":"simplified"},{"hue":"#ffaa00"},{"saturation":"-70"}]},{"featureType":"road.highway.controlled_access","elementType":"labels","stylers":[{"visibility":"on"}]},{"featureType":"road.arterial","elementType":"all","stylers":[{"visibility":"on"},{"saturation":"-100"},{"lightness":"30"}]},{"featureType":"road.local","elementType":"all","stylers":[{"saturation":"-100"},{"lightness":"40"},{"visibility":"off"}]},{"featureType":"transit.station.airport","elementType":"geometry.fill","stylers":[{"visibility":"on"},{"gamma":"0.80"}]},{"featureType":"water","elementType":"all","stylers":[{"visibility":"off"}]}]
203
+ }
204
+ var map = new google.maps.Map($elem, mapOptions);
205
+
206
+ var marker = new google.maps.Marker({
207
+ position: myLatlng,
208
+ title:"Hello World!"
209
+ });
210
+
211
+ // To add the marker to the map, call setMap();
212
+ marker.setMap(map);
213
+ }
214
+
215
+ }
216
+
217
+ // Returns a function, that, as long as it continues to be invoked, will not
218
+ // be triggered. The function will be called after it stops being called for
219
+ // N milliseconds. If `immediate` is passed, trigger the function on the
220
+ // leading edge, instead of the trailing.
221
+
222
+ function debounce(func, wait, immediate) {
223
+ var timeout;
224
+ return function() {
225
+ var context = this, args = arguments;
226
+ clearTimeout(timeout);
227
+ timeout = setTimeout(function() {
228
+ timeout = null;
229
+ if (!immediate) func.apply(context, args);
230
+ }, wait);
231
+ if (immediate && !timeout) func.apply(context, args);
232
+ };
233
+ };
234
+
235
+
236
+ function isElementInViewport(elem) {
237
+ var $elem = $(elem);
238
+
239
+ // Get the scroll position of the page.
240
+ var scrollElem = ((navigator.userAgent.toLowerCase().indexOf('webkit') != -1) ? 'body' : 'html');
241
+ var viewportTop = $(scrollElem).scrollTop();
242
+ var viewportBottom = viewportTop + $(window).height();
243
+
244
+ // Get the position of the element on the page.
245
+ var elemTop = Math.round( $elem.offset().top );
246
+ var elemBottom = elemTop + $elem.height();
247
+
248
+ return ((elemTop < viewportBottom) && (elemBottom > viewportTop));
249
+ }
250
+
251
+
252
+ var BrowserDetect = {
253
+ init: function () {
254
+ this.browser = this.searchString(this.dataBrowser) || "Other";
255
+ this.version = this.searchVersion(navigator.userAgent) || this.searchVersion(navigator.appVersion) || "Unknown";
256
+ },
257
+ searchString: function (data) {
258
+ for (var i = 0; i < data.length; i++) {
259
+ var dataString = data[i].string;
260
+ this.versionSearchString = data[i].subString;
261
+
262
+ if (dataString.indexOf(data[i].subString) !== -1) {
263
+ return data[i].identity;
264
+ }
265
+ }
266
+ },
267
+ searchVersion: function (dataString) {
268
+ var index = dataString.indexOf(this.versionSearchString);
269
+ if (index === -1) {
270
+ return;
271
+ }
272
+
273
+ var rv = dataString.indexOf("rv:");
274
+ if (this.versionSearchString === "Trident" && rv !== -1) {
275
+ return parseFloat(dataString.substring(rv + 3));
276
+ } else {
277
+ return parseFloat(dataString.substring(index + this.versionSearchString.length + 1));
278
+ }
279
+ },
280
+
281
+ dataBrowser: [
282
+ {string: navigator.userAgent, subString: "Chrome", identity: "Chrome"},
283
+ {string: navigator.userAgent, subString: "MSIE", identity: "Explorer"},
284
+ {string: navigator.userAgent, subString: "Trident", identity: "Explorer"},
285
+ {string: navigator.userAgent, subString: "Firefox", identity: "Firefox"},
286
+ {string: navigator.userAgent, subString: "Safari", identity: "Safari"},
287
+ {string: navigator.userAgent, subString: "Opera", identity: "Opera"}
288
+ ]
289
+
290
+ };
291
+
292
+ var better_browser = '<div class="container"><div class="better-browser row"><div class="col-md-2"></div><div class="col-md-8"><h3>We are sorry but it looks like your Browser doesn\'t support our website Features. In order to get the full experience please download a new version of your favourite browser.</h3></div><div class="col-md-2"></div><br><div class="col-md-4"><a href="https://www.mozilla.org/ro/firefox/new/" class="btn btn-warning">Mozilla</a><br></div><div class="col-md-4"><a href="https://www.google.com/chrome/browser/desktop/index.html" class="btn ">Chrome</a><br></div><div class="col-md-4"><a href="http://windows.microsoft.com/en-us/internet-explorer/ie-11-worldwide-languages" class="btn">Internet Explorer</a><br></div><br><br><h4>Thank you!</h4></div></div>';
@@ -0,0 +1,869 @@
1
+ !function ($) {
2
+
3
+ /* CHECKBOX PUBLIC CLASS DEFINITION
4
+ * ============================== */
5
+
6
+ var Checkbox = function (element, options) {
7
+ this.init(element, options);
8
+ }
9
+
10
+ Checkbox.prototype = {
11
+
12
+ constructor: Checkbox
13
+
14
+ , init: function (element, options) {
15
+ var $el = this.$element = $(element)
16
+
17
+ this.options = $.extend({}, $.fn.checkbox.defaults, options);
18
+ $el.before(this.options.template);
19
+ this.setState();
20
+ }
21
+
22
+ , setState: function () {
23
+ var $el = this.$element
24
+ , $parent = $el.closest('.checkbox');
25
+
26
+ $el.prop('disabled') && $parent.addClass('disabled');
27
+ $el.prop('checked') && $parent.addClass('checked');
28
+ }
29
+
30
+ , toggle: function () {
31
+ var ch = 'checked'
32
+ , $el = this.$element
33
+ , $parent = $el.closest('.checkbox')
34
+ , checked = $el.prop(ch)
35
+ , e = $.Event('toggle')
36
+
37
+ if ($el.prop('disabled') == false) {
38
+ $parent.toggleClass(ch) && checked ? $el.removeAttr(ch) : $el.prop(ch, ch);
39
+ $el.trigger(e).trigger('change');
40
+ }
41
+ }
42
+
43
+ , setCheck: function (option) {
44
+ var d = 'disabled'
45
+ , ch = 'checked'
46
+ , $el = this.$element
47
+ , $parent = $el.closest('.checkbox')
48
+ , checkAction = option == 'check' ? true : false
49
+ , e = $.Event(option)
50
+
51
+ $parent[checkAction ? 'addClass' : 'removeClass' ](ch) && checkAction ? $el.prop(ch, ch) : $el.removeAttr(ch);
52
+ $el.trigger(e).trigger('change');
53
+ }
54
+
55
+ }
56
+
57
+
58
+ /* CHECKBOX PLUGIN DEFINITION
59
+ * ======================== */
60
+
61
+ var old = $.fn.checkbox
62
+
63
+ $.fn.checkbox = function (option) {
64
+ return this.each(function () {
65
+ var $this = $(this)
66
+ , data = $this.data('checkbox')
67
+ , options = $.extend({}, $.fn.checkbox.defaults, $this.data(), typeof option == 'object' && option);
68
+ if (!data) $this.data('checkbox', (data = new Checkbox(this, options)));
69
+ if (option == 'toggle') data.toggle()
70
+ if (option == 'check' || option == 'uncheck') data.setCheck(option)
71
+ else if (option) data.setState();
72
+ });
73
+ }
74
+
75
+ $.fn.checkbox.defaults = {
76
+ template: '<span class="icons"><span class="first-icon fa fa-square-o"></span><span class="second-icon fa fa-check-square-o"></span></span>'
77
+ }
78
+
79
+
80
+ /* CHECKBOX NO CONFLICT
81
+ * ================== */
82
+
83
+ $.fn.checkbox.noConflict = function () {
84
+ $.fn.checkbox = old;
85
+ return this;
86
+ }
87
+
88
+
89
+ /* CHECKBOX DATA-API
90
+ * =============== */
91
+
92
+ $(document).on('click.checkbox.data-api', '.checkbox', function (e) {
93
+ var $checkbox = $(e.target);
94
+ if (e.target.tagName != "A") {
95
+ e && e.preventDefault() && e.stopPropagation();
96
+ if (!$checkbox.hasClass('checkbox')) $checkbox = $checkbox.closest('.checkbox');
97
+ $checkbox.find(':checkbox').checkbox('toggle');
98
+ }
99
+ });
100
+
101
+ $(function () {
102
+ $('[data-toggle="checkbox"]').each(function () {
103
+ if($(this).data('toggle') == 'switch') return;
104
+
105
+ var $checkbox = $(this);
106
+ $checkbox.checkbox();
107
+ });
108
+ });
109
+
110
+ }(window.jQuery);
111
+
112
+
113
+
114
+
115
+ !function ($) {
116
+
117
+ /* RADIO PUBLIC CLASS DEFINITION
118
+ * ============================== */
119
+
120
+ var Radio = function (element, options) {
121
+ this.init(element, options);
122
+ }
123
+
124
+ Radio.prototype = {
125
+
126
+ constructor: Radio
127
+
128
+ , init: function (element, options) {
129
+ var $el = this.$element = $(element)
130
+
131
+ this.options = $.extend({}, $.fn.radio.defaults, options);
132
+ $el.before(this.options.template);
133
+ this.setState();
134
+ }
135
+
136
+ , setState: function () {
137
+ var $el = this.$element
138
+ , $parent = $el.closest('.radio');
139
+
140
+ $el.prop('disabled') && $parent.addClass('disabled');
141
+ $el.prop('checked') && $parent.addClass('checked');
142
+ }
143
+
144
+ , toggle: function () {
145
+ var d = 'disabled'
146
+ , ch = 'checked'
147
+ , $el = this.$element
148
+ , checked = $el.prop(ch)
149
+ , $parent = $el.closest('.radio')
150
+ , $parentWrap = $el.closest('form').length ? $el.closest('form') : $el.closest('body')
151
+ , $elemGroup = $parentWrap.find(':radio[name="' + $el.attr('name') + '"]')
152
+ , e = $.Event('toggle')
153
+
154
+ if ($el.prop(d) == false) {
155
+ $elemGroup.not($el).each(function () {
156
+ var $el = $(this)
157
+ , $parent = $(this).closest('.radio');
158
+
159
+ if ($el.prop(d) == false) {
160
+ $parent.removeClass(ch) && $el.removeAttr(ch).trigger('change');
161
+ }
162
+ });
163
+
164
+ if (checked == false) $parent.addClass(ch) && $el.prop(ch, true);
165
+ $el.trigger(e);
166
+
167
+ if (checked !== $el.prop(ch)) {
168
+ $el.trigger('change');
169
+ }
170
+ }
171
+ }
172
+
173
+ , setCheck: function (option) {
174
+ var ch = 'checked'
175
+ , $el = this.$element
176
+ , $parent = $el.closest('.radio')
177
+ , checkAction = option == 'check' ? true : false
178
+ , checked = $el.prop(ch)
179
+ , $parentWrap = $el.closest('form').length ? $el.closest('form') : $el.closest('body')
180
+ , $elemGroup = $parentWrap.find(':radio[name="' + $el['attr']('name') + '"]')
181
+ , e = $.Event(option)
182
+
183
+ $elemGroup.not($el).each(function () {
184
+ var $el = $(this)
185
+ , $parent = $(this).closest('.radio');
186
+
187
+ $parent.removeClass(ch) && $el.removeAttr(ch);
188
+ });
189
+
190
+ $parent[checkAction ? 'addClass' : 'removeClass'](ch) && checkAction ? $el.prop(ch, ch) : $el.removeAttr(ch);
191
+ $el.trigger(e);
192
+
193
+ if (checked !== $el.prop(ch)) {
194
+ $el.trigger('change');
195
+ }
196
+ }
197
+
198
+ }
199
+
200
+
201
+ /* RADIO PLUGIN DEFINITION
202
+ * ======================== */
203
+
204
+ var old = $.fn.radio
205
+
206
+ $.fn.radio = function (option) {
207
+ return this.each(function () {
208
+ var $this = $(this)
209
+ , data = $this.data('radio')
210
+ , options = $.extend({}, $.fn.radio.defaults, $this.data(), typeof option == 'object' && option);
211
+ if (!data) $this.data('radio', (data = new Radio(this, options)));
212
+ if (option == 'toggle') data.toggle()
213
+ if (option == 'check' || option == 'uncheck') data.setCheck(option)
214
+ else if (option) data.setState();
215
+ });
216
+ }
217
+
218
+ $.fn.radio.defaults = {
219
+ template: '<span class="icons"><span class="first-icon fa fa-circle-o"></span><span class="second-icon fa fa-dot-circle-o"></span></span>'
220
+ }
221
+
222
+
223
+ /* RADIO NO CONFLICT
224
+ * ================== */
225
+
226
+ $.fn.radio.noConflict = function () {
227
+ $.fn.radio = old;
228
+ return this;
229
+ }
230
+
231
+
232
+ /* RADIO DATA-API
233
+ * =============== */
234
+
235
+ $(document).on('click.radio.data-api', '.radio', function (e) {
236
+ var $radio = $(e.target);
237
+ e && e.preventDefault() && e.stopPropagation();
238
+ if (!$radio.hasClass('radio')) $radio = $radio.closest('.radio');
239
+ $radio.find(':radio').radio('toggle');
240
+ });
241
+
242
+ $(function () {
243
+ $('[data-toggle="radio"]').each(function () {
244
+ var $radio = $(this);
245
+ $radio.radio();
246
+ });
247
+ });
248
+
249
+ }(window.jQuery);
250
+
251
+
252
+
253
+ /* ============================================================
254
+ * bootstrapSwitch v1.3 by Larentis Mattia @spiritualGuru
255
+ * http://www.larentis.eu/switch/
256
+ * ============================================================
257
+ * Licensed under the Apache License, Version 2.0
258
+ * http://www.apache.org/licenses/LICENSE-2.0
259
+ * ============================================================ */
260
+
261
+ !function ($) {
262
+ "use strict";
263
+
264
+ $.fn['bootstrapSwitch'] = function (method) {
265
+ var methods = {
266
+ init: function () {
267
+ return this.each(function () {
268
+ var $element = $(this)
269
+ , $div
270
+ , $switchLeft
271
+ , $switchRight
272
+ , $label
273
+ , myClasses = ""
274
+ , classes = $element.attr('class')
275
+ , color
276
+ , moving
277
+ , onLabel = "ON"
278
+ , offLabel = "OFF"
279
+ , icon = false;
280
+
281
+ $.each(['switch-mini', 'switch-small', 'switch-large'], function (i, el) {
282
+ if (classes.indexOf(el) >= 0)
283
+ myClasses = el;
284
+ });
285
+
286
+ $element.addClass('has-switch');
287
+
288
+ if ($element.data('on') !== undefined)
289
+ color = "switch-" + $element.data('on');
290
+
291
+ if ($element.data('on-label') !== undefined)
292
+ onLabel = $element.data('on-label');
293
+
294
+ if ($element.data('off-label') !== undefined)
295
+ offLabel = $element.data('off-label');
296
+
297
+ if ($element.data('icon') !== undefined)
298
+ icon = $element.data('icon');
299
+
300
+ $switchLeft = $('<span>')
301
+ .addClass("switch-left")
302
+ .addClass(myClasses)
303
+ .addClass(color)
304
+ .html(onLabel);
305
+
306
+ color = '';
307
+ if ($element.data('off') !== undefined)
308
+ color = "switch-" + $element.data('off');
309
+
310
+ $switchRight = $('<span>')
311
+ .addClass("switch-right")
312
+ .addClass(myClasses)
313
+ .addClass(color)
314
+ .html(offLabel);
315
+
316
+ $label = $('<label>')
317
+ .html("&nbsp;")
318
+ .addClass(myClasses)
319
+ .attr('for', $element.find('input').attr('id'));
320
+
321
+ if (icon) {
322
+ $label.html('<i class="' + icon + '"></i>');
323
+ }
324
+
325
+ $div = $element.find(':checkbox').wrap($('<div>')).parent().data('animated', false);
326
+
327
+ if ($element.data('animated') !== false)
328
+ $div.addClass('switch-animate').data('animated', true);
329
+
330
+ $div
331
+ .append($switchLeft)
332
+ .append($label)
333
+ .append($switchRight);
334
+
335
+ $element.find('>div').addClass(
336
+ $element.find('input').is(':checked') ? 'switch-on' : 'switch-off'
337
+ );
338
+
339
+ if ($element.find('input').is(':disabled'))
340
+ $(this).addClass('deactivate');
341
+
342
+ var changeStatus = function ($this) {
343
+ $this.siblings('label').trigger('mousedown').trigger('mouseup').trigger('click');
344
+ };
345
+
346
+ $element.on('keydown', function (e) {
347
+ if (e.keyCode === 32) {
348
+ e.stopImmediatePropagation();
349
+ e.preventDefault();
350
+ changeStatus($(e.target).find('span:first'));
351
+ }
352
+ });
353
+
354
+ $switchLeft.on('click', function (e) {
355
+ changeStatus($(this));
356
+ });
357
+
358
+ $switchRight.on('click', function (e) {
359
+ changeStatus($(this));
360
+ });
361
+
362
+ $element.find('input').on('change', function (e) {
363
+ var $this = $(this)
364
+ , $element = $this.parent()
365
+ , thisState = $this.is(':checked')
366
+ , state = $element.is('.switch-off');
367
+
368
+ e.preventDefault();
369
+
370
+ $element.css('left', '');
371
+
372
+ if (state === thisState) {
373
+
374
+ if (thisState)
375
+ $element.removeClass('switch-off').addClass('switch-on');
376
+ else $element.removeClass('switch-on').addClass('switch-off');
377
+
378
+ if ($element.data('animated') !== false)
379
+ $element.addClass("switch-animate");
380
+
381
+ $element.parent().trigger('switch-change', {'el': $this, 'value': thisState})
382
+ }
383
+ });
384
+
385
+ $element.find('label').on('mousedown touchstart', function (e) {
386
+ var $this = $(this);
387
+ moving = false;
388
+
389
+ e.preventDefault();
390
+ e.stopImmediatePropagation();
391
+
392
+ $this.closest('div').removeClass('switch-animate');
393
+
394
+ if ($this.closest('.has-switch').is('.deactivate'))
395
+ $this.unbind('click');
396
+ else {
397
+ $this.on('mousemove touchmove', function (e) {
398
+ var $element = $(this).closest('.switch')
399
+ , relativeX = (e.pageX || e.originalEvent.targetTouches[0].pageX) - $element.offset().left
400
+ , percent = (relativeX / $element.width()) * 100
401
+ , left = 25
402
+ , right = 75;
403
+
404
+ moving = true;
405
+
406
+ if (percent < left)
407
+ percent = left;
408
+ else if (percent > right)
409
+ percent = right;
410
+
411
+ $element.find('>div').css('left', (percent - right) + "%")
412
+ });
413
+
414
+ $this.on('click touchend', function (e) {
415
+ var $this = $(this)
416
+ , $target = $(e.target)
417
+ , $myCheckBox = $target.siblings('input');
418
+
419
+ e.stopImmediatePropagation();
420
+ e.preventDefault();
421
+
422
+ $this.unbind('mouseleave');
423
+
424
+ if (moving)
425
+ $myCheckBox.prop('checked', !(parseInt($this.parent().css('left')) < -25));
426
+ else $myCheckBox.prop("checked", !$myCheckBox.is(":checked"));
427
+
428
+ moving = false;
429
+ $myCheckBox.trigger('change');
430
+ });
431
+
432
+ $this.on('mouseleave', function (e) {
433
+ var $this = $(this)
434
+ , $myCheckBox = $this.siblings('input');
435
+
436
+ e.preventDefault();
437
+ e.stopImmediatePropagation();
438
+
439
+ $this.unbind('mouseleave');
440
+ $this.trigger('mouseup');
441
+
442
+ $myCheckBox.prop('checked', !(parseInt($this.parent().css('left')) < -25)).trigger('change');
443
+ });
444
+
445
+ $this.on('mouseup', function (e) {
446
+ e.stopImmediatePropagation();
447
+ e.preventDefault();
448
+
449
+ $(this).unbind('mousemove');
450
+ });
451
+ }
452
+ });
453
+ }
454
+ );
455
+ },
456
+ toggleActivation: function () {
457
+ $(this).toggleClass('deactivate');
458
+ },
459
+ isActive: function () {
460
+ return !$(this).hasClass('deactivate');
461
+ },
462
+ setActive: function (active) {
463
+ if (active)
464
+ $(this).removeClass('deactivate');
465
+ else $(this).addClass('deactivate');
466
+ },
467
+ toggleState: function (skipOnChange) {
468
+ var $input = $(this).find('input:checkbox');
469
+ $input.prop('checked', !$input.is(':checked')).trigger('change', skipOnChange);
470
+ },
471
+ setState: function (value, skipOnChange) {
472
+ $(this).find('input:checkbox').prop('checked', value).trigger('change', skipOnChange);
473
+ },
474
+ status: function () {
475
+ return $(this).find('input:checkbox').is(':checked');
476
+ },
477
+ destroy: function () {
478
+ var $div = $(this).find('div')
479
+ , $checkbox;
480
+
481
+ $div.find(':not(input:checkbox)').remove();
482
+
483
+ $checkbox = $div.children();
484
+ $checkbox.unwrap().unwrap();
485
+
486
+ $checkbox.unbind('change');
487
+
488
+ return $checkbox;
489
+ }
490
+ };
491
+
492
+ if (methods[method])
493
+ return methods[method].apply(this, Array.prototype.slice.call(arguments, 1));
494
+ else if (typeof method === 'object' || !method)
495
+ return methods.init.apply(this, arguments);
496
+ else
497
+ $.error('Method ' + method + ' does not exist!');
498
+ };
499
+
500
+ $(function () {
501
+ $('.switch').each(function () {
502
+ $(this).bootstrapSwitch();
503
+ });
504
+
505
+ $('[data-toggle="switch"]').each(function (){
506
+ $(this).wrap('<div class="switch" />').parent().bootstrapSwitch();
507
+ });
508
+ });
509
+
510
+
511
+ }(jQuery);
512
+
513
+
514
+
515
+ /*
516
+
517
+ jQuery Tags Input Plugin 1.3.3
518
+
519
+ Copyright (c) 2011 XOXCO, Inc
520
+
521
+ Documentation for this plugin lives here:
522
+ http://xoxco.com/clickable/jquery-tags-input
523
+
524
+ Licensed under the MIT license:
525
+ http://www.opensource.org/licenses/mit-license.php
526
+
527
+ ben@xoxco.com
528
+
529
+ */
530
+
531
+ (function($) {
532
+
533
+ var delimiter = new Array();
534
+ var tags_callbacks = new Array();
535
+ $.fn.doAutosize = function(o){
536
+ var minWidth = $(this).data('minwidth'),
537
+ maxWidth = $(this).data('maxwidth'),
538
+ val = '',
539
+ input = $(this),
540
+ testSubject = $('#'+$(this).data('tester_id'));
541
+
542
+ if (val === (val = input.val())) {return;}
543
+
544
+ // Enter new content into testSubject
545
+ var escaped = val.replace(/&/g, '&amp;').replace(/\s/g,' ').replace(/</g, '&lt;').replace(/>/g, '&gt;');
546
+ testSubject.html(escaped);
547
+ // Calculate new width + whether to change
548
+ var testerWidth = testSubject.width(),
549
+ newWidth = (testerWidth + o.comfortZone) >= minWidth ? testerWidth + o.comfortZone : minWidth,
550
+ currentWidth = input.width(),
551
+ isValidWidthChange = (newWidth < currentWidth && newWidth >= minWidth)
552
+ || (newWidth > minWidth && newWidth < maxWidth);
553
+
554
+ // Animate width
555
+ if (isValidWidthChange) {
556
+ input.width(newWidth);
557
+ }
558
+
559
+
560
+ };
561
+ $.fn.resetAutosize = function(options){
562
+ // alert(JSON.stringify(options));
563
+ var minWidth = $(this).data('minwidth') || options.minInputWidth || $(this).width(),
564
+ maxWidth = $(this).data('maxwidth') || options.maxInputWidth || ($(this).closest('.tagsinput').width() - options.inputPadding),
565
+ val = '',
566
+ input = $(this),
567
+ testSubject = $('<tester/>').css({
568
+ position: 'absolute',
569
+ top: -9999,
570
+ left: -9999,
571
+ width: 'auto',
572
+ fontSize: input.css('fontSize'),
573
+ fontFamily: input.css('fontFamily'),
574
+ fontWeight: input.css('fontWeight'),
575
+ letterSpacing: input.css('letterSpacing'),
576
+ whiteSpace: 'nowrap'
577
+ }),
578
+ testerId = $(this).attr('id')+'_autosize_tester';
579
+ if(! $('#'+testerId).length > 0){
580
+ testSubject.attr('id', testerId);
581
+ testSubject.appendTo('body');
582
+ }
583
+
584
+ input.data('minwidth', minWidth);
585
+ input.data('maxwidth', maxWidth);
586
+ input.data('tester_id', testerId);
587
+ input.css('width', minWidth);
588
+ };
589
+
590
+ $.fn.addTag = function(value,options) {
591
+ options = jQuery.extend({focus:false,callback:true},options);
592
+ this.each(function() {
593
+ var id = $(this).attr('id');
594
+
595
+ var tagslist = $(this).val().split(delimiter[id]);
596
+ if (tagslist[0] == '') {
597
+ tagslist = new Array();
598
+ }
599
+
600
+ value = jQuery.trim(value);
601
+
602
+ if (options.unique) {
603
+ var skipTag = $(this).tagExist(value);
604
+ if(skipTag == true) {
605
+ //Marks fake input as not_valid to let styling it
606
+ $('#'+id+'_tag').addClass('not_valid');
607
+ }
608
+ } else {
609
+ var skipTag = false;
610
+ }
611
+
612
+ if (value !='' && skipTag != true) {
613
+ $('<span>').addClass('tag').append(
614
+ $('<span>').text(value).append('&nbsp;&nbsp;'),
615
+ $('<a class="tagsinput-remove-link">', {
616
+ href : '#',
617
+ title : 'Remove tag',
618
+ text : ''
619
+ }).click(function () {
620
+ return $('#' + id).removeTag(escape(value));
621
+ })
622
+ ).insertBefore('#' + id + '_addTag');
623
+
624
+ tagslist.push(value);
625
+
626
+ $('#'+id+'_tag').val('');
627
+ if (options.focus) {
628
+ $('#'+id+'_tag').focus();
629
+ } else {
630
+ $('#'+id+'_tag').blur();
631
+ }
632
+
633
+ $.fn.tagsInput.updateTagsField(this,tagslist);
634
+
635
+ if (options.callback && tags_callbacks[id] && tags_callbacks[id]['onAddTag']) {
636
+ var f = tags_callbacks[id]['onAddTag'];
637
+ f.call(this, value);
638
+ }
639
+ if(tags_callbacks[id] && tags_callbacks[id]['onChange'])
640
+ {
641
+ var i = tagslist.length;
642
+ var f = tags_callbacks[id]['onChange'];
643
+ f.call(this, $(this), tagslist[i-1]);
644
+ }
645
+ }
646
+
647
+ });
648
+
649
+ return false;
650
+ };
651
+
652
+ $.fn.removeTag = function(value) {
653
+ value = unescape(value);
654
+ this.each(function() {
655
+ var id = $(this).attr('id');
656
+
657
+ var old = $(this).val().split(delimiter[id]);
658
+
659
+ $('#'+id+'_tagsinput .tag').remove();
660
+ str = '';
661
+ for (i=0; i< old.length; i++) {
662
+ if (old[i] != value.trim()) {
663
+ str = str + delimiter[id] +old[i];
664
+ }
665
+ }
666
+
667
+ $.fn.tagsInput.importTags(this,str);
668
+
669
+ if (tags_callbacks[id] && tags_callbacks[id]['onRemoveTag']) {
670
+ var f = tags_callbacks[id]['onRemoveTag'];
671
+ f.call(this, value);
672
+ }
673
+ });
674
+
675
+ return false;
676
+ };
677
+
678
+ $.fn.tagExist = function(val) {
679
+ var id = $(this).attr('id');
680
+ var tagslist = $(this).val().split(delimiter[id]);
681
+ return (jQuery.inArray(val, tagslist) >= 0); //true when tag exists, false when not
682
+ };
683
+
684
+ // clear all existing tags and import new ones from a string
685
+ $.fn.importTags = function(str) {
686
+ id = $(this).attr('id');
687
+ $('#'+id+'_tagsinput .tag').remove();
688
+ $.fn.tagsInput.importTags(this,str);
689
+ }
690
+
691
+ $.fn.tagsInput = function(options) {
692
+ var settings = jQuery.extend({
693
+ interactive:true,
694
+ defaultText:'',
695
+ minChars:0,
696
+ width:'',
697
+ height:'',
698
+ autocomplete: {selectFirst: false },
699
+ 'hide':true,
700
+ 'delimiter':',',
701
+ 'unique':true,
702
+ removeWithBackspace:true,
703
+ placeholderColor:'#666666',
704
+ autosize: true,
705
+ comfortZone: 20,
706
+ inputPadding: 6*2
707
+ },options);
708
+
709
+ this.each(function() {
710
+ if (settings.hide) {
711
+ $(this).hide();
712
+ }
713
+ var id = $(this).attr('id');
714
+ if (!id || delimiter[$(this).attr('id')]) {
715
+ id = $(this).attr('id', 'tags' + new Date().getTime()).attr('id');
716
+ }
717
+
718
+ var data = jQuery.extend({
719
+ pid:id,
720
+ real_input: '#'+id,
721
+ holder: '#'+id+'_tagsinput',
722
+ input_wrapper: '#'+id+'_addTag',
723
+ fake_input: '#'+id+'_tag'
724
+ },settings);
725
+
726
+ delimiter[id] = data.delimiter;
727
+
728
+ if (settings.onAddTag || settings.onRemoveTag || settings.onChange) {
729
+ tags_callbacks[id] = new Array();
730
+ tags_callbacks[id]['onAddTag'] = settings.onAddTag;
731
+ tags_callbacks[id]['onRemoveTag'] = settings.onRemoveTag;
732
+ tags_callbacks[id]['onChange'] = settings.onChange;
733
+ }
734
+
735
+ var containerClass = $('#'+id).attr('class').replace('tagsinput', '');
736
+ var markup = '<div id="'+id+'_tagsinput" class="tagsinput '+containerClass+'"><div class="tagsinput-add-container" id="'+id+'_addTag"><div class="tagsinput-add"></div>';
737
+
738
+ if (settings.interactive) {
739
+ markup = markup + '<input id="'+id+'_tag" value="" data-default="'+settings.defaultText+'" />';
740
+ }
741
+
742
+ markup = markup + '</div></div>';
743
+
744
+ $(markup).insertAfter(this);
745
+
746
+ $(data.holder).css('width',settings.width);
747
+ $(data.holder).css('min-height',settings.height);
748
+ $(data.holder).css('height','100%');
749
+
750
+ if ($(data.real_input).val()!='') {
751
+ $.fn.tagsInput.importTags($(data.real_input),$(data.real_input).val());
752
+ }
753
+ if (settings.interactive) {
754
+ $(data.fake_input).val($(data.fake_input).attr('data-default'));
755
+ $(data.fake_input).css('color',settings.placeholderColor);
756
+ $(data.fake_input).resetAutosize(settings);
757
+
758
+ $(data.holder).bind('click',data,function(event) {
759
+ $(event.data.fake_input).focus();
760
+ });
761
+
762
+ $(data.fake_input).bind('focus',data,function(event) {
763
+ if ($(event.data.fake_input).val()==$(event.data.fake_input).attr('data-default')) {
764
+ $(event.data.fake_input).val('');
765
+ }
766
+ $(event.data.fake_input).css('color','#000000');
767
+ });
768
+
769
+ if (settings.autocomplete_url != undefined) {
770
+ autocomplete_options = {source: settings.autocomplete_url};
771
+ for (attrname in settings.autocomplete) {
772
+ autocomplete_options[attrname] = settings.autocomplete[attrname];
773
+ }
774
+
775
+ if (jQuery.Autocompleter !== undefined) {
776
+ $(data.fake_input).autocomplete(settings.autocomplete_url, settings.autocomplete);
777
+ $(data.fake_input).bind('result',data,function(event,data,formatted) {
778
+ if (data) {
779
+ $('#'+id).addTag(data[0] + "",{focus:true,unique:(settings.unique)});
780
+ }
781
+ });
782
+ } else if (jQuery.ui.autocomplete !== undefined) {
783
+ $(data.fake_input).autocomplete(autocomplete_options);
784
+ $(data.fake_input).bind('autocompleteselect',data,function(event,ui) {
785
+ $(event.data.real_input).addTag(ui.item.value,{focus:true,unique:(settings.unique)});
786
+ return false;
787
+ });
788
+ }
789
+
790
+
791
+ } else {
792
+ // if a user tabs out of the field, create a new tag
793
+ // this is only available if autocomplete is not used.
794
+ $(data.fake_input).bind('blur',data,function(event) {
795
+ var d = $(this).attr('data-default');
796
+ if ($(event.data.fake_input).val()!='' && $(event.data.fake_input).val()!=d) {
797
+ if( (event.data.minChars <= $(event.data.fake_input).val().length) && (!event.data.maxChars || (event.data.maxChars >= $(event.data.fake_input).val().length)) )
798
+ $(event.data.real_input).addTag($(event.data.fake_input).val(),{focus:true,unique:(settings.unique)});
799
+ } else {
800
+ $(event.data.fake_input).val($(event.data.fake_input).attr('data-default'));
801
+ $(event.data.fake_input).css('color',settings.placeholderColor);
802
+ }
803
+ return false;
804
+ });
805
+
806
+ }
807
+ // if user types a comma, create a new tag
808
+ $(data.fake_input).bind('keypress',data,function(event) {
809
+ if (event.which==event.data.delimiter.charCodeAt(0) || event.which==13 ) {
810
+ event.preventDefault();
811
+ if( (event.data.minChars <= $(event.data.fake_input).val().length) && (!event.data.maxChars || (event.data.maxChars >= $(event.data.fake_input).val().length)) )
812
+ $(event.data.real_input).addTag($(event.data.fake_input).val(),{focus:true,unique:(settings.unique)});
813
+ $(event.data.fake_input).resetAutosize(settings);
814
+ return false;
815
+ } else if (event.data.autosize) {
816
+ $(event.data.fake_input).doAutosize(settings);
817
+
818
+ }
819
+ });
820
+ //Delete last tag on backspace
821
+ data.removeWithBackspace && $(data.fake_input).bind('keydown', function(event)
822
+ {
823
+ if(event.keyCode == 8 && $(this).val() == '')
824
+ {
825
+ event.preventDefault();
826
+ var last_tag = $(this).closest('.tagsinput').find('.tag:last').text();
827
+ var id = $(this).attr('id').replace(/_tag$/, '');
828
+ last_tag = last_tag.replace(/[\s\u00a0]+x$/, '');
829
+ $('#' + id).removeTag(escape(last_tag));
830
+ $(this).trigger('focus');
831
+ }
832
+ });
833
+ $(data.fake_input).blur();
834
+
835
+ //Removes the not_valid class when user changes the value of the fake input
836
+ if(data.unique) {
837
+ $(data.fake_input).keydown(function(event){
838
+ if(event.keyCode == 8 || String.fromCharCode(event.which).match(/\w+|[áéíóúÁÉÍÓÚñÑ,/]+/)) {
839
+ $(this).removeClass('not_valid');
840
+ }
841
+ });
842
+ }
843
+ } // if settings.interactive
844
+ });
845
+
846
+ return this;
847
+
848
+ };
849
+
850
+ $.fn.tagsInput.updateTagsField = function(obj,tagslist) {
851
+ var id = $(obj).attr('id');
852
+ $(obj).val(tagslist.join(delimiter[id]));
853
+ };
854
+
855
+ $.fn.tagsInput.importTags = function(obj,val) {
856
+ $(obj).val('');
857
+ var id = $(obj).attr('id');
858
+ var tags = val.split(delimiter[id]);
859
+ for (i=0; i<tags.length; i++) {
860
+ $(obj).addTag(tags[i],{focus:false,callback:false});
861
+ }
862
+ if(tags_callbacks[id] && tags_callbacks[id]['onChange'])
863
+ {
864
+ var f = tags_callbacks[id]['onChange'];
865
+ f.call(obj, obj, tags[i]);
866
+ }
867
+ };
868
+
869
+ })(jQuery);