@csdsesystems/central-styles 0.1.0 → 1.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (466) hide show
  1. package/Gulpfile.js +56 -0
  2. package/README.md +41 -0
  3. package/css/.gitignore +3 -0
  4. package/dependencies/.editorconfig +21 -0
  5. package/dependencies/.jshintrc +24 -0
  6. package/dependencies/LICENSE +21 -0
  7. package/dependencies/README.md +80 -0
  8. package/dependencies/bower.json +24 -0
  9. package/dependencies/components.html +2761 -0
  10. package/dependencies/css/.gitignore +3 -0
  11. package/dependencies/css/green.png +0 -0
  12. package/dependencies/css/green@2x.png +0 -0
  13. package/dependencies/css/red.png +0 -0
  14. package/dependencies/css/red@2x.png +0 -0
  15. package/dependencies/css/steelblue.png +0 -0
  16. package/dependencies/css/steelblue@2x.png +0 -0
  17. package/dependencies/example.png +0 -0
  18. package/dependencies/index.html +120 -0
  19. package/dependencies/layout.html +712 -0
  20. package/dependencies/package.json +76 -0
  21. package/dependencies/patterns.html +313 -0
  22. package/dependencies/scripts/hgt.js +76 -0
  23. package/dependencies/scripts/scripts/hgt.js +76 -0
  24. package/dependencies/scripts/scripts/vendor/infinite.min.js +7 -0
  25. package/dependencies/scripts/scripts/vendor/jquery.waypoints.min.js +7 -0
  26. package/dependencies/scripts/scripts/vendor/sticky.min.js +7 -0
  27. package/dependencies/scripts/vendor/infinite.min.js +7 -0
  28. package/dependencies/scripts/vendor/jquery.waypoints.min.js +7 -0
  29. package/dependencies/scripts/vendor/sticky.min.js +7 -0
  30. package/dependencies/styles/hgt-syntax.css +86 -0
  31. package/dependencies/styles/hgt.css +428 -0
  32. package/dependencies/styles/styles/hgt-syntax.css +86 -0
  33. package/dependencies/styles/styles/hgt.css +412 -0
  34. package/dependencies/styles.html +985 -0
  35. package/hologram_config.yml +70 -0
  36. package/images/BottomRightPattern.png +0 -0
  37. package/images/BottomRightPatternSml.png +0 -0
  38. package/images/CSDSCertificateLogo.png +0 -0
  39. package/images/CSDSLogoBlack-Sml.png +0 -0
  40. package/images/CSDSLogoColour.png +0 -0
  41. package/images/CSDSLogoColourV2.png +0 -0
  42. package/images/CSDSLogoWhite-Sml.png +0 -0
  43. package/images/PCLogoPlaceHolder.png +0 -0
  44. package/images/PC_certificate-footer.png +0 -0
  45. package/images/PC_certificate-footer.svg +1 -0
  46. package/images/PC_certificate-header.png +0 -0
  47. package/images/PC_certificate-header.svg +1 -0
  48. package/images/QLD-gov-logo-white.png +0 -0
  49. package/images/QLD-gov-logo.png +0 -0
  50. package/images/QLDGovLogoGrey.png +0 -0
  51. package/images/TopLeftPattern.png +0 -0
  52. package/images/TopLeftPatternSml.png +0 -0
  53. package/images/a1.jpg +0 -0
  54. package/images/a10.jpg +0 -0
  55. package/images/a2.jpg +0 -0
  56. package/images/a3.jpg +0 -0
  57. package/images/a4.jpg +0 -0
  58. package/images/a5.jpg +0 -0
  59. package/images/a6.jpg +0 -0
  60. package/images/a7.jpg +0 -0
  61. package/images/a8.jpg +0 -0
  62. package/images/achievements.png +0 -0
  63. package/images/alert-header-elearning.png +0 -0
  64. package/images/alert-header-equipment.png +0 -0
  65. package/images/alert-header-groups.png +0 -0
  66. package/images/alert-header-payments.png +0 -0
  67. package/images/alert-icon-groups.png +0 -0
  68. package/images/angular_logo.png +0 -0
  69. package/images/axiom-pattern.png +0 -0
  70. package/images/background_lp_orange.jpg +0 -0
  71. package/images/background_pocket.jpg +0 -0
  72. package/images/bg_tick_wrapper.png +0 -0
  73. package/images/booking-calendar.png +0 -0
  74. package/images/booking-rooms.png +0 -0
  75. package/images/certificate-footer.png +0 -0
  76. package/images/certificate-footer.svg +1 -0
  77. package/images/certificate-header.png +0 -0
  78. package/images/choice-54e367cf104b0-default.png +0 -0
  79. package/images/courseCategory_alliedHealth.jpeg +0 -0
  80. package/images/csds-eLearning-showcase-1.png +0 -0
  81. package/images/csds-pc-network.jpg +0 -0
  82. package/images/dashbard4_1.jpg +0 -0
  83. package/images/dashbard4_2.jpg +0 -0
  84. package/images/diagmonds-light.png +0 -0
  85. package/images/duotone.jpg +0 -0
  86. package/images/email_1.jpg +0 -0
  87. package/images/email_2.jpg +0 -0
  88. package/images/email_3.jpg +0 -0
  89. package/images/empty-state-courses.png +0 -0
  90. package/images/empty-state-groups.png +0 -0
  91. package/images/empty-state-orders.png +0 -0
  92. package/images/empty-state-payments.png +0 -0
  93. package/images/empty-state-portfolio.png +0 -0
  94. package/images/equip/airsim-baby.jpg +0 -0
  95. package/images/equip/airway-management-trainer.jpg +0 -0
  96. package/images/equip/broncho-boy.jpg +0 -0
  97. package/images/equip/default-img.jpg +0 -0
  98. package/images/equip/little-junior.jpg +0 -0
  99. package/images/equip/resusi-anne-basic.jpg +0 -0
  100. package/images/equip/simman-3g.jpg +0 -0
  101. package/images/full_height.jpg +0 -0
  102. package/images/gallery/1.jpg +0 -0
  103. package/images/gallery/10.jpg +0 -0
  104. package/images/gallery/10s.jpg +0 -0
  105. package/images/gallery/11.jpg +0 -0
  106. package/images/gallery/11s.jpg +0 -0
  107. package/images/gallery/12.jpg +0 -0
  108. package/images/gallery/12s.jpg +0 -0
  109. package/images/gallery/1s.jpg +0 -0
  110. package/images/gallery/2.jpg +0 -0
  111. package/images/gallery/2s.jpg +0 -0
  112. package/images/gallery/3.jpg +0 -0
  113. package/images/gallery/3s.jpg +0 -0
  114. package/images/gallery/4.jpg +0 -0
  115. package/images/gallery/4s.jpg +0 -0
  116. package/images/gallery/5.jpg +0 -0
  117. package/images/gallery/5s.jpg +0 -0
  118. package/images/gallery/6.jpg +0 -0
  119. package/images/gallery/6s.jpg +0 -0
  120. package/images/gallery/7.jpg +0 -0
  121. package/images/gallery/7s.jpg +0 -0
  122. package/images/gallery/8.jpg +0 -0
  123. package/images/gallery/8s.jpg +0 -0
  124. package/images/gallery/9.jpg +0 -0
  125. package/images/gallery/9s.jpg +0 -0
  126. package/images/graphic-email.png +0 -0
  127. package/images/graphic-healthcare-employee.png +0 -0
  128. package/images/graphic-healthcare-neither.png +0 -0
  129. package/images/graphic-healthcare-student.png +0 -0
  130. package/images/graphic-signup.png +0 -0
  131. package/images/green.png +0 -0
  132. package/images/green@2x.png +0 -0
  133. package/images/header-profile-skin-2 (1).png +0 -0
  134. package/images/header-profile-skin-2.png +0 -0
  135. package/images/headphones.jpg +0 -0
  136. package/images/html_logo.png +0 -0
  137. package/images/img_course.png +0 -0
  138. package/images/inspinia/3.png +0 -0
  139. package/images/inspinia/4.png +0 -0
  140. package/images/inspinia/avatar_all.png +0 -0
  141. package/images/inspinia/header-profile-skin-1.png +0 -0
  142. package/images/inspinia/header-profile-skin-2.png +0 -0
  143. package/images/inspinia/header-profile-skin-3.png +0 -0
  144. package/images/inspinia/header-profile.png +0 -0
  145. package/images/inspinia/header_one.jpg +0 -0
  146. package/images/inspinia/header_two.jpg +0 -0
  147. package/images/inspinia/shattered.png +0 -0
  148. package/images/inspinia/word_map.png +0 -0
  149. package/images/landing/CSDS-doing-things-differently-white.png +0 -0
  150. package/images/landing/CSDSLogo.png +0 -0
  151. package/images/landing/avatar1.jpg +0 -0
  152. package/images/landing/avatar2.jpg +0 -0
  153. package/images/landing/avatar3.jpg +0 -0
  154. package/images/landing/avatar4.jpg +0 -0
  155. package/images/landing/avatar5.jpg +0 -0
  156. package/images/landing/avatar6.jpg +0 -0
  157. package/images/landing/avatar7.jpg +0 -0
  158. package/images/landing/avatar8.jpg +0 -0
  159. package/images/landing/avatar9.jpg +0 -0
  160. package/images/landing/avatar_all.png +0 -0
  161. package/images/landing/dashboard.png +0 -0
  162. package/images/landing/header_one.jpg +0 -0
  163. package/images/landing/header_two.jpg +0 -0
  164. package/images/landing/iphone.jpg +0 -0
  165. package/images/landing/laptop.png +0 -0
  166. package/images/landing/perspective.png +0 -0
  167. package/images/landing/qldGovLogo.png +0 -0
  168. package/images/landing/shattered.png +0 -0
  169. package/images/landing/word_map.png +0 -0
  170. package/images/logoPlaceHolder.png +0 -0
  171. package/images/logo_csds_WOD.png +0 -0
  172. package/images/lp-professionals.png +0 -0
  173. package/images/map-placeholder.jpg +0 -0
  174. package/images/meteor_logo.png +0 -0
  175. package/images/mvc_logo.png +0 -0
  176. package/images/off_canvas.jpg +0 -0
  177. package/images/p1.jpg +0 -0
  178. package/images/p2.jpg +0 -0
  179. package/images/p3.jpg +0 -0
  180. package/images/p4.jpg +0 -0
  181. package/images/p5.jpg +0 -0
  182. package/images/p6.jpg +0 -0
  183. package/images/p7.jpg +0 -0
  184. package/images/p8.jpg +0 -0
  185. package/images/p_big1.jpg +0 -0
  186. package/images/p_big2.jpg +0 -0
  187. package/images/p_big3.jpg +0 -0
  188. package/images/pattern_centres.png +0 -0
  189. package/images/pattern_darkPages.png +0 -0
  190. package/images/pattern_educ.png +0 -0
  191. package/images/pattern_educ_whiteBG.png +0 -0
  192. package/images/pattern_white.png +0 -0
  193. package/images/patterns-error1.png +0 -0
  194. package/images/patterns-error2.png +0 -0
  195. package/images/patterns-error3.png +0 -0
  196. package/images/pcn-learning-solutions.jpg +0 -0
  197. package/images/pocket-simulation-centre.jpg +0 -0
  198. package/images/profile.jpg +0 -0
  199. package/images/profile_big.jpg +0 -0
  200. package/images/profile_small.jpg +0 -0
  201. package/images/profile_small2.jpg +0 -0
  202. package/images/rails_logo.png +0 -0
  203. package/images/red.png +0 -0
  204. package/images/red@2x.png +0 -0
  205. package/images/shop-equipmentloans.jpg +0 -0
  206. package/images/shop-products.jpg +0 -0
  207. package/images/signature.png +0 -0
  208. package/images/signaturePlaceHolder.png +0 -0
  209. package/images/simshop-bg.jpg +0 -0
  210. package/images/simshop-head.png +0 -0
  211. package/images/simshop-head2.png +0 -0
  212. package/images/steelblue.png +0 -0
  213. package/images/steelblue@2x.png +0 -0
  214. package/images/steelbluesmall.png +0 -0
  215. package/images/temp-landing-hero.jpg +0 -0
  216. package/images/wallpaper1.jpg +0 -0
  217. package/images/wallpaper2.jpg +0 -0
  218. package/images/wallpaper3.jpg +0 -0
  219. package/images/wallpaper4.jpg +0 -0
  220. package/images/zender_logo.png +0 -0
  221. package/index.html +13 -0
  222. package/package.json +41 -10
  223. package/sass/base/_base.scss +931 -0
  224. package/sass/base/_typography.scss +236 -0
  225. package/sass/bourbon/_bourbon-deprecated-upcoming.scss +411 -0
  226. package/sass/bourbon/_bourbon.scss +87 -0
  227. package/sass/bourbon/addons/_border-color.scss +26 -0
  228. package/sass/bourbon/addons/_border-radius.scss +48 -0
  229. package/sass/bourbon/addons/_border-style.scss +25 -0
  230. package/sass/bourbon/addons/_border-width.scss +25 -0
  231. package/sass/bourbon/addons/_buttons.scss +64 -0
  232. package/sass/bourbon/addons/_clearfix.scss +25 -0
  233. package/sass/bourbon/addons/_ellipsis.scss +30 -0
  234. package/sass/bourbon/addons/_font-stacks.scss +31 -0
  235. package/sass/bourbon/addons/_hide-text.scss +27 -0
  236. package/sass/bourbon/addons/_margin.scss +26 -0
  237. package/sass/bourbon/addons/_padding.scss +26 -0
  238. package/sass/bourbon/addons/_position.scss +48 -0
  239. package/sass/bourbon/addons/_prefixer.scss +66 -0
  240. package/sass/bourbon/addons/_retina-image.scss +25 -0
  241. package/sass/bourbon/addons/_size.scss +51 -0
  242. package/sass/bourbon/addons/_text-inputs.scss +113 -0
  243. package/sass/bourbon/addons/_timing-functions.scss +34 -0
  244. package/sass/bourbon/addons/_triangle.scss +63 -0
  245. package/sass/bourbon/addons/_word-wrap.scss +29 -0
  246. package/sass/bourbon/css3/_animation.scss +43 -0
  247. package/sass/bourbon/css3/_appearance.scss +3 -0
  248. package/sass/bourbon/css3/_backface-visibility.scss +3 -0
  249. package/sass/bourbon/css3/_background-image.scss +42 -0
  250. package/sass/bourbon/css3/_background.scss +55 -0
  251. package/sass/bourbon/css3/_border-image.scss +59 -0
  252. package/sass/bourbon/css3/_calc.scss +4 -0
  253. package/sass/bourbon/css3/_columns.scss +47 -0
  254. package/sass/bourbon/css3/_filter.scss +4 -0
  255. package/sass/bourbon/css3/_flex-box.scss +287 -0
  256. package/sass/bourbon/css3/_font-face.scss +24 -0
  257. package/sass/bourbon/css3/_font-feature-settings.scss +4 -0
  258. package/sass/bourbon/css3/_hidpi-media-query.scss +10 -0
  259. package/sass/bourbon/css3/_hyphens.scss +4 -0
  260. package/sass/bourbon/css3/_image-rendering.scss +14 -0
  261. package/sass/bourbon/css3/_keyframes.scss +36 -0
  262. package/sass/bourbon/css3/_linear-gradient.scss +38 -0
  263. package/sass/bourbon/css3/_perspective.scss +8 -0
  264. package/sass/bourbon/css3/_placeholder.scss +8 -0
  265. package/sass/bourbon/css3/_radial-gradient.scss +39 -0
  266. package/sass/bourbon/css3/_selection.scss +42 -0
  267. package/sass/bourbon/css3/_text-decoration.scss +19 -0
  268. package/sass/bourbon/css3/_transform.scss +15 -0
  269. package/sass/bourbon/css3/_transition.scss +71 -0
  270. package/sass/bourbon/css3/_user-select.scss +3 -0
  271. package/sass/bourbon/functions/_assign-inputs.scss +11 -0
  272. package/sass/bourbon/functions/_contains-falsy.scss +20 -0
  273. package/sass/bourbon/functions/_contains.scss +26 -0
  274. package/sass/bourbon/functions/_is-length.scss +11 -0
  275. package/sass/bourbon/functions/_is-light.scss +21 -0
  276. package/sass/bourbon/functions/_is-number.scss +11 -0
  277. package/sass/bourbon/functions/_is-size.scss +13 -0
  278. package/sass/bourbon/functions/_modular-scale.scss +69 -0
  279. package/sass/bourbon/functions/_px-to-em.scss +13 -0
  280. package/sass/bourbon/functions/_px-to-rem.scss +15 -0
  281. package/sass/bourbon/functions/_shade.scss +24 -0
  282. package/sass/bourbon/functions/_strip-units.scss +17 -0
  283. package/sass/bourbon/functions/_tint.scss +24 -0
  284. package/sass/bourbon/functions/_transition-property-name.scss +22 -0
  285. package/sass/bourbon/functions/_unpack.scss +27 -0
  286. package/sass/bourbon/helpers/_convert-units.scss +21 -0
  287. package/sass/bourbon/helpers/_directional-values.scss +96 -0
  288. package/sass/bourbon/helpers/_font-source-declaration.scss +43 -0
  289. package/sass/bourbon/helpers/_gradient-positions-parser.scss +13 -0
  290. package/sass/bourbon/helpers/_linear-angle-parser.scss +25 -0
  291. package/sass/bourbon/helpers/_linear-gradient-parser.scss +41 -0
  292. package/sass/bourbon/helpers/_linear-positions-parser.scss +61 -0
  293. package/sass/bourbon/helpers/_linear-side-corner-parser.scss +31 -0
  294. package/sass/bourbon/helpers/_radial-arg-parser.scss +69 -0
  295. package/sass/bourbon/helpers/_radial-gradient-parser.scss +50 -0
  296. package/sass/bourbon/helpers/_radial-positions-parser.scss +18 -0
  297. package/sass/bourbon/helpers/_render-gradients.scss +26 -0
  298. package/sass/bourbon/helpers/_shape-size-stripper.scss +10 -0
  299. package/sass/bourbon/helpers/_str-to-num.scss +50 -0
  300. package/sass/bourbon/settings/_asset-pipeline.scss +7 -0
  301. package/sass/bourbon/settings/_prefixer.scss +9 -0
  302. package/sass/bourbon/settings/_px-to-em.scss +1 -0
  303. package/sass/components/_alerts.scss +300 -0
  304. package/sass/components/_badges_labels.scss +204 -0
  305. package/sass/components/_breadcrumbs.scss +65 -0
  306. package/sass/components/_buttons.scss +769 -0
  307. package/sass/components/_calendar.scss +301 -0
  308. package/sass/components/_cards.scss +218 -0
  309. package/sass/components/_chips.scss +23 -0
  310. package/sass/components/_comments.scss +129 -0
  311. package/sass/components/_ibox.scss +722 -0
  312. package/sass/components/_icons.scss +17 -0
  313. package/sass/components/_inputs.scss +3 -0
  314. package/sass/components/_lists.scss +489 -0
  315. package/sass/components/_modals.scss +260 -0
  316. package/sass/components/_navigation.scss +596 -0
  317. package/sass/components/_photo_upload.scss +39 -0
  318. package/sass/components/_progress_bars.scss +90 -0
  319. package/sass/components/_sidebar.scss +53 -0
  320. package/sass/components/_tables.scss +429 -0
  321. package/sass/components/_timeline.scss +84 -0
  322. package/sass/components/_widgets.scss +310 -0
  323. package/sass/components/_wizards.scss +48 -0
  324. package/sass/components/_wysiwyg.scss +3 -0
  325. package/sass/inspinia/_animate.scss +2848 -0
  326. package/sass/inspinia/_badges_labels.scss +67 -0
  327. package/sass/inspinia/_base.scss +1424 -0
  328. package/sass/inspinia/_buttons.scss +309 -0
  329. package/sass/inspinia/_chat.scss +125 -0
  330. package/sass/inspinia/_custom.scss +6 -0
  331. package/sass/inspinia/_elements.scss +2632 -0
  332. package/sass/inspinia/_landing.scss +659 -0
  333. package/sass/inspinia/_md-skin.scss +400 -0
  334. package/sass/inspinia/_media.scss +132 -0
  335. package/sass/inspinia/_metismenu.scss +82 -0
  336. package/sass/inspinia/_mixins.scss +0 -0
  337. package/sass/inspinia/_navigation.scss +590 -0
  338. package/sass/inspinia/_pages.scss +1366 -0
  339. package/sass/inspinia/_rtl.scss +280 -0
  340. package/sass/inspinia/_sidebar.scss +195 -0
  341. package/sass/inspinia/_skins.scss +480 -0
  342. package/sass/inspinia/_spinners.scss +1018 -0
  343. package/sass/inspinia/_theme-config.scss +114 -0
  344. package/sass/inspinia/_top_navigation.scss +132 -0
  345. package/sass/inspinia/_typography.scss +32 -0
  346. package/sass/inspinia/_variables.scss +39 -0
  347. package/sass/layout/_bootstrap.scss +496 -0
  348. package/sass/layout/_content.scss +31 -0
  349. package/sass/layout/_forms.scss +911 -0
  350. package/sass/layout/_media-max-1199.scss +7 -0
  351. package/sass/layout/_media-max-1200.scss +96 -0
  352. package/sass/layout/_media-max-1400.scss +7 -0
  353. package/sass/layout/_media-max-330.scss +5 -0
  354. package/sass/layout/_media-max-350.scss +38 -0
  355. package/sass/layout/_media-max-400.scss +51 -0
  356. package/sass/layout/_media-max-460.scss +81 -0
  357. package/sass/layout/_media-max-479.scss +32 -0
  358. package/sass/layout/_media-max-550.scss +47 -0
  359. package/sass/layout/_media-max-600.scss +64 -0
  360. package/sass/layout/_media-max-672.scss +6 -0
  361. package/sass/layout/_media-max-768.scss +81 -0
  362. package/sass/layout/_media-max-840.scss +11 -0
  363. package/sass/layout/_media-max-900.scss +5 -0
  364. package/sass/layout/_media-max-991.scss +18 -0
  365. package/sass/layout/_media-max-992.scss +48 -0
  366. package/sass/layout/_media-max-999.scss +35 -0
  367. package/sass/layout/_media-min-1200.scss +5 -0
  368. package/sass/layout/_media-min-1201.scss +112 -0
  369. package/sass/layout/_media-min-1401.scss +29 -0
  370. package/sass/layout/_media-min-1501.scss +8 -0
  371. package/sass/layout/_media-min-1601.scss +485 -0
  372. package/sass/layout/_media-min-480.scss +15 -0
  373. package/sass/layout/_media-min-672.scss +6 -0
  374. package/sass/layout/_media-min-768.scss +160 -0
  375. package/sass/layout/_media-min-820.scss +19 -0
  376. package/sass/layout/_media-min-880.scss +76 -0
  377. package/sass/layout/_media-min-993.scss +141 -0
  378. package/sass/layout/_media.scss +82 -0
  379. package/sass/layout/_sidebar.scss +29 -0
  380. package/sass/layout/_top_navigation.scss +37 -0
  381. package/sass/pages/_pages.scss +4429 -0
  382. package/sass/plugins/_charts.scss +65 -0
  383. package/sass/plugins/_dropzone.scss +15 -0
  384. package/sass/plugins/_icheck.scss +196 -0
  385. package/sass/plugins/_select2-bootstrap.scss +631 -0
  386. package/sass/plugins/_skspinner.scss +5 -0
  387. package/sass/plugins/_sortable.scss +43 -0
  388. package/sass/plugins/_timepicker.scss +14 -0
  389. package/sass/plugins/_toastr.scss +53 -0
  390. package/sass/style.scss +92 -0
  391. package/sass/styleguide/_components-1-buttons.scss +125 -0
  392. package/sass/styleguide/_components-badges.scss +62 -0
  393. package/sass/styleguide/_components-breadcrumbs.scss +30 -0
  394. package/sass/styleguide/_components-cards.scss +57 -0
  395. package/sass/styleguide/_components-forms.scss +176 -0
  396. package/sass/styleguide/_components-ibox.scss +107 -0
  397. package/sass/styleguide/_components-labels.scss +69 -0
  398. package/sass/styleguide/_components-lists.scss +274 -0
  399. package/sass/styleguide/_components-modals.scss +171 -0
  400. package/sass/styleguide/_components-pagination.scss +27 -0
  401. package/sass/styleguide/_components-progressBars.scss +82 -0
  402. package/sass/styleguide/_components-tables.scss +115 -0
  403. package/sass/styleguide/_components-widgets.scss +105 -0
  404. package/sass/styleguide/_layout-asana.scss +163 -0
  405. package/sass/styleguide/_layout-centered.scss +33 -0
  406. package/sass/styleguide/_layout-itemAction.scss +92 -0
  407. package/sass/styleguide/_layout-responsive.scss +77 -0
  408. package/sass/styleguide/_patterns-alerts.scss +62 -0
  409. package/sass/styleguide/_patterns-dataformats.scss +40 -0
  410. package/sass/styleguide/_patterns-emptystates.scss +46 -0
  411. package/sass/styleguide/_patterns-errors.scss +44 -0
  412. package/sass/styleguide/_section-components.scss +12 -0
  413. package/sass/styleguide/_section-layout.scss +40 -0
  414. package/sass/styleguide/_section-patterns.scss +11 -0
  415. package/sass/styleguide/_section-styles.scss +9 -0
  416. package/sass/styleguide/_style-1-colors.scss +126 -0
  417. package/sass/styleguide/_style-2-icons.scss +90 -0
  418. package/sass/styleguide/_style-3-typography.scss +139 -0
  419. package/sass/styleguide/_style-4-spacing.scss +85 -0
  420. package/sass/styleguide/_style-5-borders.scss +56 -0
  421. package/sass/styleguide/_style-6-helpers.scss +184 -0
  422. package/sass/styleguide/index.md +31 -0
  423. package/sass/utilities/_mixins.scss +607 -0
  424. package/sass/utilities/_variables.scss +118 -0
  425. package/styleguide-dep/code_example_templates/js_example_template.html.erb +7 -0
  426. package/styleguide-dep/code_example_templates/jsx_example_template.html.erb +7 -0
  427. package/styleguide-dep/code_example_templates/markup_example_template.html.erb +10 -0
  428. package/styleguide-dep/code_example_templates/markup_table_template.html.erb +23 -0
  429. package/styleguide-dep/css/custom-icheckbox.css +121 -0
  430. package/styleguide-dep/css/doc.css +165 -0
  431. package/styleguide-dep/css/steelblue.png +0 -0
  432. package/styleguide-dep/css/steelblue@2x.png +0 -0
  433. package/styleguide-dep/js/checkbox.js +6 -0
  434. package/styleguide-dep/js/custom.js +969 -0
  435. package/styleguide-dep/js/inspinia.js +297 -0
  436. package/css/style.css +0 -13
  437. /package/{css/images → images}/applicable_standards.png +0 -0
  438. /package/{css/images → images}/courses/aam.jpg +0 -0
  439. /package/{css/images → images}/courses/acls.jpg +0 -0
  440. /package/{css/images → images}/courses/acrm.jpg +0 -0
  441. /package/{css/images → images}/courses/als.jpg +0 -0
  442. /package/{css/images → images}/courses/apics.jpg +0 -0
  443. /package/{css/images → images}/courses/ason.jpg +0 -0
  444. /package/{css/images → images}/courses/basic-sim.jpg +0 -0
  445. /package/{css/images → images}/courses/bbs.jpg +0 -0
  446. /package/{css/images → images}/courses/bkc.jpg +0 -0
  447. /package/{css/images → images}/courses/bls.jpg +0 -0
  448. /package/{css/images → images}/courses/blt.jpg +0 -0
  449. /package/{css/images → images}/courses/capp.jpg +0 -0
  450. /package/{css/images → images}/courses/chest.jpg +0 -0
  451. /package/{css/images → images}/courses/cld.jpg +0 -0
  452. /package/{css/images → images}/courses/cpc.jpg +0 -0
  453. /package/{css/images → images}/courses/crop.jpg +0 -0
  454. /package/{css/images → images}/courses/crp-oqp.jpg +0 -0
  455. /package/{css/images → images}/courses/defib.jpg +0 -0
  456. /package/{css/images → images}/courses/diabetic-foot.jpg +0 -0
  457. /package/{css/images → images}/courses/ebus.jpg +0 -0
  458. /package/{css/images → images}/courses/emac.jpg +0 -0
  459. /package/{css/images → images}/courses/icr.jpg +0 -0
  460. /package/{css/images → images}/courses/paccman.jpg +0 -0
  461. /package/{css/images → images}/courses/rrcd-a.jpg +0 -0
  462. /package/{css/images → images}/courses/seed.jpg +0 -0
  463. /package/{css/images → images}/courses/spc.jpg +0 -0
  464. /package/{css/images → images}/courses/tasp.jpg +0 -0
  465. /package/{css/images → images}/courses/workshop.jpg +0 -0
  466. /package/{css/images → images}/steelblue-darkbg.png +0 -0
@@ -0,0 +1,969 @@
1
+ $(document).on('click', 'a.scroll-down', function(event){
2
+ event.preventDefault();
3
+
4
+ $('html, body').animate({
5
+ scrollTop: $( $.attr(this, 'href') ).offset().top
6
+ }, 500);
7
+ });
8
+
9
+
10
+ $(document).ready(function() {
11
+
12
+ var FF = !(window.mozInnerScreenX == null);
13
+
14
+ if(FF) {
15
+
16
+ if ($('body').width() > 992) {
17
+ $('.ellipsis').dotdotdot({
18
+ watch: "window"
19
+ });
20
+ };
21
+
22
+
23
+ }
24
+
25
+ $('.modal .detailed a').click(function () {
26
+ $(this).addClass('selected').siblings().removeClass('selected');
27
+ });
28
+
29
+ $('.dayFilter').click(function () {
30
+ $(this).addClass('selected');
31
+ $('.weekFilter').removeClass('selected');
32
+ $('#weekFilterView').addClass('collapse');
33
+ $('#weekFilterView').removeClass('in');
34
+ $('#filterWeekly').hide();
35
+ $('#filterDaily').show();
36
+
37
+ //Hide the rest of the days for the day view
38
+ $('#day2').hide();
39
+ $('#day3').hide();
40
+ $('#day4').hide();
41
+ $('#day5').hide();
42
+ $('#day6').hide();
43
+ $('#day7').hide();
44
+ });
45
+
46
+ //Clicking "Any time" in the modal should disable all options
47
+ $('#anyDate').click(function () {
48
+ $('.dateOption').removeClass('selected');
49
+ $(this).addClass('selected');
50
+ $('#customDateSection').hide();
51
+ });
52
+
53
+ //Clicking other options should disable "Any time" and "Custom"
54
+ $('.dateOption').click(function () {
55
+ $('#anyDate').removeClass('selected');
56
+ $('#customDate').removeClass('selected');
57
+ $(this).addClass('selected');
58
+ $('#customDateSection').hide();
59
+ });
60
+
61
+ //Clicking other options should disable "Any time" and "Custom"
62
+ $('#customDate').click(function () {
63
+ $('.dateOption').removeClass('selected');
64
+ $(this).addClass('selected');
65
+ $('#customDateSection').show();
66
+ });
67
+
68
+ $('.weekFilter').click(function () {
69
+ $(this).addClass('selected');
70
+
71
+ //
72
+ $('.dayFilter').removeClass('selected');
73
+ $('#dayFilterView').addClass('collapse');
74
+ $('#dayFilterView').removeClass('in');
75
+ $('#filterDaily').hide();
76
+ $('#filterWeekly').show();
77
+
78
+ //Show the rest of the days for the week view
79
+ $('#day2').show();
80
+ $('#day3').show();
81
+ $('#day4').show();
82
+ $('#day5').show();
83
+ $('#day6').show();
84
+ $('#day7').show();
85
+ });
86
+
87
+ /*
88
+ $('#bookingsSearch').click(function () {
89
+ $(this).attr('placeholder', 'Press ENTER to search');
90
+ $('#dashboardBookings').hide();
91
+ });
92
+ */
93
+
94
+ $('.datepicker').datepicker({
95
+ maxViewMode: 2,
96
+ todayBtn: "linked",
97
+ todayHighlight: true,
98
+ templates: {
99
+ leftArrow: '<i class="fa fa-fw fa-angle-left"></i>',
100
+ rightArrow: '<i class="fa fa-fw fa-angle-right"></i>'
101
+ },
102
+ title: " ",
103
+
104
+ });
105
+
106
+ /* Masking */
107
+ $('.mask_money').inputmask("currency");
108
+ $('.mask_quantity').inputmask("number");
109
+ $('.mask_email').inputmask("email");
110
+
111
+
112
+ /* Custom iChecks */
113
+ $('.i-checks').iCheck({
114
+ checkboxClass: 'icheckbox_square-steelblue',
115
+ radioClass: 'iradio_square-steelblue',
116
+ });
117
+
118
+ $('.i-checks2').iCheck({
119
+ checkboxClass: 'icheckbox_square-steelblue',
120
+ radioClass: 'iradio_square-steelblue',
121
+ });
122
+
123
+ /* Custom design hacks */
124
+ $('#invoice3256 > tbody > tr').hover(function() {
125
+ $(this).addClass('hover');
126
+ }, function() {
127
+ $(this).removeClass('hover');
128
+ });
129
+
130
+ $('#pocketCentreStatusSelect').change(function() {
131
+ if ($('#pocketCentreStatusSelect').val()==2)
132
+ $("#operationalPocketCentreOptions").collapse("show");
133
+ else
134
+ $("#operationalPocketCentreOptions").collapse("hide");
135
+ });
136
+
137
+ $('[class^=is]').hide();
138
+
139
+ var select = $('select option:selected').val();
140
+ var showDiv = $('.is' + select);
141
+ showDiv.show();
142
+
143
+ $('select').change(function() {
144
+
145
+ var value = $("option:selected", this).val();
146
+ var theDiv = $(".is" + value);
147
+
148
+ if (value!="") {
149
+ theDiv.siblings('[class^=is]').hide();
150
+ theDiv.show();
151
+ } else {
152
+ $('[class^=is]').hide();
153
+ }
154
+
155
+ });
156
+
157
+ $('.buttonNewCourse').click(function () {
158
+ var placeholderText = $(this).attr('data-placeholder');
159
+ $('.placeholder').html(placeholderText);
160
+ });
161
+
162
+
163
+ // Toggle checkbox
164
+ $('.onoffswitch-checkbox').click(function () {
165
+ modalref = $(this).attr('data-target');
166
+ $(modalref).slideToggle(200);
167
+
168
+ /*
169
+ var ibox = $(this).closest('div.ibox');
170
+ var button = $(this).find('i');
171
+ var content = ibox.find('div.ibox-content');
172
+ content.slideToggle(200);
173
+ button.toggleClass('fa-chevron-up').toggleClass('fa-chevron-down');
174
+ setTimeout(function () {
175
+ ibox.resize();
176
+ ibox.find('[id^=map-]').resize();
177
+ }, 50);
178
+ */
179
+ });
180
+
181
+ // Collapse ibox function
182
+ $('.nqhs-collapse-link').click(function () {
183
+ var ibox = $(this).closest('div.ibox');
184
+ var agileList = ibox.find('ul.agile-list-nsqhs');
185
+ agileList.toggle();
186
+
187
+ var ibox = $(this).closest('div.ibox');
188
+ var button = $(this).find('i');
189
+ var content = ibox.find('div.ibox-content');
190
+ content.slideToggle(0);
191
+ button.toggleClass('fa-chevron-up').toggleClass('fa-chevron-down');
192
+ //ibox.toggleClass('').toggleClass('border-bottom');
193
+ setTimeout(function () {
194
+ ibox.resize();
195
+ ibox.find('[id^=map-]').resize();
196
+ }, 50);
197
+ });
198
+
199
+ // Collapse function using the plus icon
200
+ $('.collapse-link-plus').click(function () {
201
+ var ibox = $(this).closest('div.ibox');
202
+ var button = $(this).find('i');
203
+ var content = ibox.find('div.ibox-content');
204
+ content.slideToggle(200);
205
+ button.toggleClass('fa-plus').toggleClass('fa-minus');
206
+ setTimeout(function () {
207
+ ibox.resize();
208
+ ibox.find('[id^=map-]').resize();
209
+ }, 50);
210
+ });
211
+
212
+
213
+
214
+ /*$('#toggleCancelledBookings').on('ifChecked', function(event){
215
+ $("div.cancelled").show();
216
+ });
217
+
218
+ $('#toggleCancelledBookings').on('ifUnchecked', function(event){
219
+ $("div.cancelled").hide();
220
+ });
221
+
222
+ $('#toggleApprovedBookings').on('ifChecked', function(event){
223
+ $("div.approved").show();
224
+ });
225
+
226
+ $('#toggleApprovedBookings').on('ifUnchecked', function(event){
227
+ $("div.approved").hide();
228
+ });
229
+
230
+ $('#toggleUnapprovedBookings').on('ifChecked', function(event){
231
+ $("div.unapproved").show();
232
+ });
233
+
234
+ $('#toggleUnapprovedBookings').on('ifUnchecked', function(event){
235
+ $("div.unapproved").hide();
236
+ }); */
237
+
238
+ $('.collapse-list-item').click(function () {
239
+ var ibox = $(this).next();
240
+ ibox.slideToggle(200);
241
+ });
242
+
243
+
244
+ $(".remove-button").click(function() {
245
+ $(this).closest('.remove-button-container').fadeOut();
246
+ });
247
+
248
+ /* i-checks */
249
+ $('.i-checks').on('ifChecked', function(event){
250
+ modalref = $(this).attr('data-target');
251
+ $(modalref).collapse("hide");
252
+ });
253
+
254
+ $('.i-checks').on('ifUnchecked', function(event){
255
+ modalref = $(this).attr('data-target');
256
+ $(modalref).collapse("show");
257
+ });
258
+
259
+ $('.i-checks.inverted').on('ifChecked', function(event){
260
+ modalref = $(this).attr('data-target');
261
+ $(modalref).collapse("show");
262
+ });
263
+
264
+ $('.i-checks.inverted').on('ifUnchecked', function(event){
265
+ modalref = $(this).attr('data-target');
266
+ $(modalref).collapse("hide");
267
+ });
268
+
269
+
270
+ function adjust_height () {
271
+ var navbarStaticTopHeight = $('.navbar.navbar-static-top').height();
272
+ var breadCrumbHeight = $('.row.page-heading').height();
273
+
274
+ var navBarPlusBreadCrumbHeight = navbarStaticTopHeight + breadCrumbHeight;
275
+
276
+ var maxHeight = Math.max.apply(null, $('.page-fh-row > .column').map(function ()
277
+ {
278
+ return $(this).height();
279
+ }).get());
280
+
281
+ if ($('#wrapper').width() > 992) {
282
+ $('.page-fh-row > .column').css("min-height", maxHeight + "px");
283
+ } else {
284
+ $('.page-fh-row > .column').css("min-height", "1px");
285
+ }
286
+ }
287
+
288
+ adjust_height();
289
+
290
+ $(window).bind("load resize scroll", function () {
291
+ adjust_height();
292
+ });
293
+
294
+ /* DELIVERY/POSTAL ADDRESS TOGGLES*/
295
+ $(".customDeliveryAddressCheckbox").click(function() {
296
+ $("#customDeliveryAddress").slideToggle();
297
+ });
298
+ $(".customPostalAddressCheckbox").click(function() {
299
+ $("#customPostalAddress").slideToggle();
300
+ });
301
+
302
+
303
+ //NESTED MODAL
304
+ var modalref;
305
+ var childmodalsize;
306
+ var triggerpos;
307
+ var triggerel;
308
+ //ADD CHILD-MODAL CLASS TO CHILD MODAL AND FIND POSITION OF TRIGGER ELEMENT
309
+ $(".modal [data-submodal]").click(function() {
310
+ triggerel = $(this);
311
+ modalref = $(this).attr('data-submodal');
312
+ $(modalref).addClass('child-modal');
313
+
314
+ //ADJUST POINTER POSITION
315
+ triggerpos = $(triggerel).offset().top;
316
+ //HIGHLIGHT TRIGGER
317
+ if ($(triggerel).hasClass("btn") && modalref) {
318
+ //IF BTN IS TRIGGER
319
+ $(triggerel).closest('.form-group, tr td').addClass('toggle-highlight');
320
+ triggerpos = triggerpos - 15;
321
+ }
322
+ if ($(triggerel).hasClass("btn-xs") && modalref) {
323
+ //IF SMLBTN IS TRIGGER
324
+ $(triggerel).closest('tr').find('td').addClass('toggle-highlight');
325
+ triggerpos = triggerpos - 20;
326
+ }
327
+ else {
328
+ //IF INPUT IS TRIGGER
329
+ $(triggerel).addClass('toggle-highlight');
330
+ triggerpos = triggerpos - 25;
331
+ }
332
+ $(modalref).find('.modal-arrow').css('top', + triggerpos + 'px');
333
+
334
+ //ON MODAL HIDE EVENT REMOVE CHILD-MODAL CLASS AND CLEAR CHILD-MODAL FORM FIELDS
335
+ $(modalref).on('hidden.bs.modal', function(){
336
+ $(this).removeClass('child-modal');
337
+ $(this).find("input[type=text], textarea").val("");
338
+ $(".toggle-highlight").removeClass('toggle-highlight');
339
+ $('.modal').not(modalref).css('opacity', '1');
340
+ })
341
+
342
+ //IF WINDOW IS SMALL HIDE PARENT MODAL
343
+ $(window).on('load resize', function () {
344
+ if ($('body').width() < 769) {
345
+ $('.modal').not(modalref).css('opacity', '0');
346
+ }
347
+ else {
348
+ $('.modal').not(modalref).css('opacity', '1');
349
+ }
350
+ });//RESIZE
351
+
352
+
353
+
354
+ //IF WINDOW IS SMALL HIDE PARENT MODAL
355
+ $(window).on('load resize', function () {
356
+ console.log(modalref);
357
+ if ($('body').width() < 769) {
358
+ $('.modal').not(modalref).css('opacity', '0');
359
+ }
360
+ else {
361
+ $('.modal').not(modalref).css('opacity', '1');
362
+ }
363
+ });//RESIZE
364
+ });
365
+
366
+ /* WIZARD NEXT/PREV STEPS*/
367
+ $(".wizard-step .next, .wizard-step .prev").each(function(index){
368
+ $(this).click(function(){
369
+ $(".wizard-step").stop().slideUp(200);
370
+ var href = $(this).attr('href');
371
+ $(href).stop().delay(200).slideDown();
372
+ });
373
+ });
374
+ /* MODAL WIZARD NEXT/PREV STEPS*/
375
+ $(".modal-wizard-step .next, .modal-wizard-step .prev").each(function(index){
376
+ $(this).click(function(){
377
+ $(".modal-wizard-step").stop().slideUp(200);
378
+ var href = $(this).attr('href');
379
+ $(href).stop().delay(200).slideDown();
380
+ });
381
+ });
382
+
383
+ /* SCROLLABLE COLUMNS*/
384
+ $(window).on('load resize', function () {
385
+ if ($('body').width() > 992) {
386
+ $(".scrollable").each(function( index ) {
387
+ var windowHeight = (window.innerHeight) - ($(this).offset().top);
388
+ $(".wrapper-content").css("paddingBottom", 0);
389
+ $(this).parent().css("paddingBottom", 0);
390
+ $(this).height(windowHeight);
391
+ });
392
+ };//IF
393
+ });
394
+
395
+ /* CLICKING ALERTS CHANGES TABS*/
396
+ $('.paymentalert').click(function(){
397
+ $('a[href="#payments"]').trigger("click");
398
+ });
399
+
400
+ //TRIGGER COLLAPSE ON TOGGLE (ON/OFF) SWITCH CLICK
401
+ $('.onoffswitch').on('click', function(e) {
402
+ if($(this).find('.onoffswitch-checkbox').is(':checked')){
403
+ var colTarget = $(this).attr("href");
404
+ $(colTarget).collapse('hide');
405
+ }
406
+ else {
407
+ var colTarget = $(this).attr("href");
408
+ $(colTarget).collapse('toggle');
409
+ }
410
+ });
411
+
412
+ //EVENT CHECK INPUT TOGGLES SECTION (settings/bookings.php)
413
+ $('#event-type-check label, #event-type-check ins').click(function(){
414
+ $('#eventbookingtype .onoffswitch').toggleClass('disabled');
415
+ $('#eventbookingtype p').toggleClass('text-muted');
416
+ });
417
+
418
+ //SHOW CONTACT ORGANISATION INPUT IF SOURCE IS EXTERNAL (bookings/edit-x-bookings.pphp)
419
+ $("#booking-source option:selected").each(function() {
420
+ var srcval = $(this).text();
421
+ if(srcval == 'External'){
422
+ $('#contact-organisation').slideDown();
423
+ }
424
+ else {
425
+ $('#contact-organisation').slideUp();
426
+ }
427
+ });
428
+ $("#booking-source").change(function() {
429
+ $("#booking-source option:selected").each(function() {
430
+ var srcval = $(this).text();
431
+ if(srcval == 'External'){
432
+ $('#contact-organisation').slideDown();
433
+ }
434
+ else {
435
+ $('#contact-organisation').slideUp();
436
+ }
437
+ });
438
+ });
439
+
440
+
441
+ //TRIGGER ADD COURSE MODAL WHEN COURSE IS SELECTED FROM DROP DOWN
442
+ $('.course-select').change(function () {
443
+ var selectstr = $(this).find('option:selected').text();
444
+ if(selectstr == 'Course'){
445
+ $('#addCourseModal').modal('show');
446
+ $('#courseGroup').slideDown();
447
+ }
448
+ else {
449
+ $('#courseGroup').slideUp();
450
+ }
451
+ });
452
+
453
+ //TRIGGER ORGANUISATION FIELD WHEN EXTERNAL IS SELECTED FROM BOOKING SOURCE DROP DOWN
454
+ $('.booking-source-select').change(function () {
455
+ var selectstr = $(this).find('option:selected').text();
456
+ if(selectstr == 'External'){
457
+ $('#booking-organisation').slideDown();
458
+ console.log("asdf");
459
+ }
460
+ else {
461
+ $('#booking-organisation').slideUp();
462
+ }
463
+ });
464
+
465
+ //SHOW HIDDEN FIELDS IN REPORT EMAIL MODAL
466
+ $('.otheremail').on('ifChecked', function(event){
467
+ $(".otheremailinput").slideDown();
468
+ });
469
+ $('.otheremail').on('ifUnchecked', function(event){
470
+ $(".otheremailinput").slideUp();
471
+ });
472
+ $('#recurringoption').on('ifChecked', function(event){
473
+ $("#emailfreqinput").slideDown();
474
+ });
475
+ $('#recurringoption').on('ifUnchecked', function(event){
476
+ $("#emailfreqinput").slideUp();
477
+ });
478
+
479
+ //CHANGE FILE EXTENSION IN DOWNLOAD REPORT MODAL
480
+ $('#filetype').change(function () {
481
+ var selectstr = $(this).find('option:selected').text();
482
+ $('#fileextension').html(selectstr);
483
+ });
484
+
485
+ //SHOW PREVIEW IN BOOKING REPEAT MODAL
486
+ $('#bookingRepeatPreview').click(function () {
487
+ $(this).hide();
488
+ $('#bookingRepeatSave').show();
489
+ $('#previewArea').slideDown();
490
+ });
491
+
492
+ //BOOKING STATUS CHANGES - These are for placeholders will be entirely replaced
493
+ // $('#approveBookingBtn').click(function () {
494
+ // $(this).parent().addClass('nodisplay');
495
+ // $('#confirmBookingBtn').parent().removeClass('nodisplay');
496
+ // $('.bookingstatus').addClass('nodisplay');
497
+ // $('#ApprovedStatus').removeClass('nodisplay');
498
+ // });
499
+ $('#cancelBookingBtn').click(function () {
500
+ $(this).parent().addClass('nodisplay');
501
+ $('#approveBookingBtn').parent().addClass('nodisplay');
502
+ $('#confirmBookingBtn').parent().addClass('nodisplay');
503
+ $('#reinstateBookingBtn').parent().removeClass('nodisplay');
504
+ $('.bookingstatus').addClass('nodisplay');
505
+ $('#CancelledStatus').removeClass('nodisplay');
506
+ //HIDE ROOMS SECTIONS
507
+ $('#bookingRooms').find('.ibox-content label, .ibox-content ul').hide();
508
+ $('#bookingRooms').find('.text-center').removeClass('m-t-md');
509
+ });
510
+ // $('#confirmBookingBtn').click(function () {
511
+ // $(this).parent().addClass('nodisplay');
512
+ // $('.bookingstatus').addClass('nodisplay');
513
+ // $('#ConfirmedStatus').removeClass('nodisplay');
514
+ // });
515
+ $('#reinstateBookingBtn').click(function () {
516
+ $(this).parent().addClass('nodisplay');
517
+ $('#cancelBookingBtn').parent().removeClass('nodisplay');
518
+ $('#approveBookingBtn').parent().removeClass('nodisplay');
519
+ $('.bookingstatus').addClass('nodisplay');
520
+ $('#ReinstatedStatus').removeClass('nodisplay');
521
+ $('#ApprovedRequiredStatus').removeClass('nodisplay');
522
+ });
523
+
524
+
525
+ ////SHOW/HIDE ROOMS SELECTOR IF ALL ROOMS OPTION IS CHECKED IN ADD ROOM MODAL
526
+ $('.allrooms').on('ifChecked', function(event){
527
+ $('.roomselector').prop('disabled', true);
528
+ });
529
+ $('.allrooms').on('ifUnchecked', function(event){
530
+ $('.roomselector').prop('disabled', false);
531
+ });
532
+
533
+
534
+ //PREVENT MODAL TRIGGER BUTTON WITHIN COLLAPSE BUTTON FROM TRIGGERING BOTH MODAL AND COLLAPSE
535
+ $("[data-toggle='collapse'] [data-toggle='modal']").click(function() {
536
+ event.stopPropagation();
537
+ var thisModal = $(this).attr('data-target');
538
+ $(thisModal).modal('show');
539
+ });
540
+
541
+ /*HEIGHT FOR CENTRES PAGE SIDE MAP*/
542
+ $(window).on('load resize', function () {
543
+ if ($('body').width() > 992) {
544
+ var windowHeight = (window.innerHeight) - ($('#centres-map-side').offset().top);
545
+ $("#centres-map-side").height(windowHeight);
546
+ //$("#centres-map-side").parent().css("paddingBottom", 0);
547
+
548
+
549
+ };//END IF
550
+ });
551
+
552
+ //TOGGLE CENTRES PAGE MAP TO DISPLAY
553
+ jQuery.fn.clickToggle = function(a,b) {
554
+ function cb(){ [b,a][this._tog^=1].call(this); }
555
+ return this.on("click", cb);
556
+ };
557
+ $("#centres-side-map-btn").clickToggle(function() {
558
+ $(".centre-item").removeClass("col-lg-4");
559
+ $(".centre-item").addClass("col-lg-6");
560
+ $("#centres-map-side").stop().animate({width: "41.66666667%"}, 500);
561
+ $("#centre-search-results").stop().animate({width: "58.33333333%"}, 500);
562
+ }, function() {
563
+ $(".centre-item").removeClass("col-md-6");
564
+ $(".centre-item").addClass("col-lg-4");
565
+ $("#centres-map-side").stop().animate({width: "0%"}, 500);
566
+ $("#centre-search-results").stop().animate({width: "100%"}, 500);
567
+ });
568
+
569
+ //SIGN UP PAGE
570
+
571
+ $('.list-item-with-tick').click(function () {
572
+ $(this).addClass('active');
573
+ $(this).children('.tick-wrapper').show();
574
+ });
575
+
576
+ $('#cps1').click(function () {
577
+
578
+ this.addClass('active');
579
+ $('#qld-health').slideDown();
580
+
581
+ $(this).addClass('active');
582
+ $(this).children('.tick-wrapper').show();
583
+
584
+ $('#cps2').removeClass('active');
585
+ $('#cps2').children('.tick-wrapper').hide();
586
+ });
587
+
588
+ $('.list-item-with-tick-wrapper').click(function () {
589
+ $('.list-item-with-tick-wrapper').not(this).children('.list-item-with-tick').removeClass('active');
590
+ $('.list-item-with-tick-wrapper').not(this).find('.tick-wrapper').hide();
591
+ });
592
+
593
+ $('#cps1').click(function () {
594
+ $('#qld-health').show();
595
+ $('#healthcare-student').hide();
596
+ $('button#activate-account').prop('disabled', true);
597
+ });
598
+
599
+ $('#cps2').click(function () {
600
+ $('#healthcare-student').show();
601
+ $('#qld-health').hide();
602
+ $('button#activate-account').prop('disabled', true);
603
+ });
604
+
605
+ $('#signup-university').keypress(function () {
606
+ $('button#activate-account').prop('disabled', false);
607
+ });
608
+
609
+ $('#signup-areyouworkingforqh').change(function () {
610
+ $('button#activate-account').prop('disabled', false);
611
+ });
612
+
613
+ $('#cps3').click(function () {
614
+ $('#qld-health').hide();
615
+ $('#healthcare-student').hide();
616
+ $('button#activate-account').prop('disabled', false);
617
+ });
618
+
619
+ $('#yesQH').click(function () {
620
+ $('#noQH').removeClass('active');
621
+ $('#cps1').children('.tick-wrapper').hide();
622
+ });
623
+ $('#noQH').click(function () {
624
+ $('#yesQH').removeClass('active');
625
+ });
626
+
627
+
628
+ //LANDING PAGE COURSES - MASONRY
629
+ $('#course-masonry-grid').masonry({
630
+ itemSelector: '.course-grid-item',
631
+ columnWidth: function( containerWidth ) {
632
+ return containerWidth /2;// NUMBER OF COLS
633
+ }(),
634
+ percentPosition: true
635
+ });
636
+
637
+
638
+ //RESOURCES LIST - ISOTOPE
639
+ var $isoContainer = $('#resource-isotope-grid');
640
+ $isoContainer.isotope({
641
+ itemSelector: '.card-resource',
642
+ percentPosition: true,
643
+ masonry: {
644
+ columnWidth: function(containerWidth) {
645
+ return containerWidth /4;// MAX NUMBER OF COLS
646
+ }(),
647
+ }
648
+ });
649
+ //ISOTOPE FILTERS
650
+ $('.isotope-filter').on('click', function() {
651
+ $isoContainer.isotope({ filter: $(this).attr('data-filter')});
652
+ $('#iso-all').fadeIn("fast").css("display","inline-block");;
653
+ });
654
+ $('#iso-all').on('click', function() {
655
+ $(this).fadeOut('fast');
656
+ });
657
+
658
+
659
+ //RESOURCES TAGS
660
+ $('#resource-filters .i-checks label').on('click', function(e) {
661
+ var tagName = $(this).text();
662
+ if($(this).find('input').is(':checked')){
663
+ $('#resource-filter-labels').append('<span class="label label-deep-blue outline m-r-xs">' + tagName + ' <i class="fa fa-times-circle"></i></span>');
664
+ }
665
+ else {
666
+ $('#resource-filter-labels span:contains(' + tagName + ')').remove();
667
+ }
668
+ });
669
+ //ADD TAGS FROM RESOURCE CARDS
670
+ $('.resource-tags .label').on('click', function(e) {
671
+ event.preventDefault();
672
+ var tagName = $(this).text();
673
+ var tagExists = $('#resource-filter-labels span:contains(' + tagName + ')').text();
674
+ if(tagExists === ''){
675
+ $('#resource-filter-labels').append('<span class="label label-deep-blue outline m-r-xs">' + tagName + ' <i class="fa fa-times-circle"></i></span>');
676
+ }
677
+ });
678
+ //REMOVE TAGS FROM FILTERS BAR
679
+ $('#resource-filter-labels, .tag-cloud').on('click', '.fa', function(){
680
+ $(this).parent().remove();
681
+ });
682
+ //CLEAR FILTERS AND CHECK BOXES
683
+ $('.list-filters .clear-filters').on('click', function(e) {
684
+ $('#resource-filter-labels span').remove();
685
+ $('#resource-filters .icheckbox_square-steelblue').removeClass("checked");
686
+ });
687
+
688
+ //RESOURCES TOGGLE STAR ICON AND CARD "STARRED" CLASS
689
+ $(".card-resource .ibox-title").find('.fa-star, .fa-star-o').click(function() {
690
+ event.preventDefault();
691
+ $(this).toggleClass("fa-star-o fa-star");
692
+ $(this).closest(".card-resource").toggleClass("starred");
693
+ });
694
+ $("#resource-star-btn").click(function() {
695
+ $(this).find('.fa-star, .fa-star-o').toggleClass("fa-star-o fa-star");
696
+ });
697
+
698
+
699
+ //SORTABLE.JS
700
+ $(".sortable").sortable();
701
+
702
+
703
+ $(window).resize(adjust_height);
704
+
705
+
706
+ /* Prevent mouse scroll on Google map until after clicked on */
707
+ $('.maps').click(function () {
708
+ $('.maps iframe').css("pointer-events", "auto");
709
+ });
710
+
711
+
712
+ //FIXES ISSUE WHERE TRIGGERING ONE MODAL FROM WITHIN ANOTHER ADDS UNWANTED PADDING TO BODY
713
+ $('.modal').on('hide.bs.modal', function() {
714
+ $("body").css("padding-right","");
715
+ });
716
+
717
+
718
+ // $("button").click(function() {
719
+ // var $this = $(this);
720
+ // $('html, body').animate({scrollTop: $($this).parent().next().offset().top}, 800);
721
+ // });
722
+
723
+ $('.carousel').slick({
724
+ infinite: true,
725
+ slidesToShow: 4,
726
+ slidesToScroll: 4,
727
+ responsive: [
728
+ {
729
+ breakpoint: 1201,
730
+ settings: {
731
+ slidesToShow: 4,
732
+ slidesToScroll: 4,
733
+ infinite: true,
734
+ }
735
+ },
736
+ {
737
+ breakpoint: 993,
738
+ settings: {
739
+ slidesToShow: 2,
740
+ slidesToScroll: 2,
741
+ infinite: true,
742
+ }
743
+ },
744
+ {
745
+ breakpoint: 480,
746
+ settings: {
747
+ slidesToShow: 1,
748
+ slidesToScroll: 1
749
+ }
750
+ }
751
+ // You can unslick at a given breakpoint now by adding:
752
+ // settings: "unslick"
753
+ // instead of a settings object
754
+ ]
755
+ });
756
+
757
+ $('input#search-equipment').keyup( function() {
758
+ if( this.value.length < 3 ) return;
759
+ $('.results').hide();
760
+ $('#airx').hide().delay(2100).fadeIn();
761
+ $("#spinner").show().delay(2000).fadeOut();
762
+ });
763
+
764
+ $("body").keypress(function( e ) {
765
+ if(e.keyCode == 49) {
766
+ if ($(".invi-UK").css('display')=='block') {
767
+ $(".invi-UK").css('display', 'none');
768
+ } else {
769
+ $(".invi-UK").css('display', 'block');
770
+ }
771
+ }
772
+ });
773
+
774
+
775
+ $("body").keypress(function( e ) {
776
+ if(e.keyCode == 49) {
777
+ $(".ladycilento").hide();
778
+ $(".bamaga").show();
779
+
780
+ $(".pocket-wrapper").removeAttr('id');
781
+ }
782
+ if(e.keyCode == 50) {
783
+ $(".bamaga").hide();
784
+ $(".ladycilento").show();
785
+
786
+ $(".pocket-wrapper").attr('id', "pocket1");
787
+ }
788
+
789
+ if(e.keyCode == 51) {
790
+ $(".not-empty").hide();
791
+ $(".empty").show();
792
+
793
+ }
794
+
795
+ if(e.keyCode == 52) {
796
+ $(".not-empty").show();
797
+ $(".empty").hide();
798
+ }
799
+ });
800
+
801
+
802
+ $('.select-equipment-checkbox').on('ifChecked', function(event){
803
+ $('#counterEquipmentSelected').val( function(i, oldval) {
804
+ return ++oldval;
805
+ });
806
+
807
+ $('#counterEquipmentText').text($('#counterEquipmentSelected').val());
808
+
809
+ $("#not-selected-equipment-alert").css('display', 'none');
810
+ $("#selected-equipment-alert").css('display', 'block');
811
+ $('#clearFilter').css('display', 'block');
812
+ $('#equipmentUsedList').css('display', 'block');
813
+ });
814
+
815
+ $('.select-equipment-checkbox').on('ifUnchecked', function(event){
816
+ $('#counterEquipmentSelected').val( function(i, oldval) {
817
+ return --oldval;
818
+ });
819
+
820
+ if ( $('#counterEquipmentSelected').val() < 1 ) {
821
+ $("#not-selected-equipment-alert").css('display', 'block');
822
+ $("#selected-equipment-alert").css('display', 'none');
823
+ }
824
+
825
+ if ( $('#counterEquipmentSelected').val() == 0 && $('#counterEquipmentTypeSelected').val() == 0 ) {
826
+ $('#clearFilter').css('display', 'none');
827
+ }
828
+
829
+ });
830
+
831
+
832
+
833
+
834
+ $('.select-equipment-type-checkbox').on('ifChecked', function(event){
835
+ $('#counterEquipmentTypeSelected').val( function(i, oldval) {
836
+ return ++oldval;
837
+ });
838
+
839
+ $('#equipmentTypeCtrText').text("(" + $('#counterEquipmentTypeSelected').val() + ")");
840
+ $('#clearFilter').css('display', 'block');
841
+ });
842
+
843
+ $('.select-equipment-type-checkbox').on('ifUnchecked', function(event){
844
+ $('#counterEquipmentTypeSelected').val( function(i, oldval) {
845
+ return --oldval;
846
+ });
847
+
848
+ if ( $('#counterEquipmentTypeSelected').val() > 0 )
849
+ $('#equipmentTypeCtrText').text("(" + $('#counterEquipmentTypeSelected').val() + ")");
850
+ else
851
+ $('#equipmentTypeCtrText').text("");
852
+
853
+
854
+ if ( $('#counterEquipmentSelected').val() == 0 && $('#counterEquipmentTypeSelected').val() == 0 ) {
855
+ $('#clearFilter').css('display', 'none');
856
+ }
857
+
858
+ });
859
+
860
+
861
+
862
+
863
+
864
+ $('.select-pocket-checkbox').on('ifChecked', function(event){
865
+ $('#counterPocketSelected').val( function(i, oldval) {
866
+ return ++oldval;
867
+ });
868
+
869
+ $('#pocketCtrText').text("(" + $('#counterPocketSelected').val() + ")");
870
+ $('#clearFilter').css('display', 'block');
871
+ });
872
+
873
+ $('.select-pocket-checkbox').on('ifUnchecked', function(event){
874
+ $('#counterPocketSelected').val( function(i, oldval) {
875
+ return --oldval;
876
+ });
877
+
878
+ if ( $('#counterPocketSelected').val() > 0 )
879
+ $('#pocketCtrText').text("(" + $('#counterPocketSelected').val() + ")");
880
+ else
881
+ $('#pocketCtrText').text("");
882
+
883
+
884
+ if ( $('#counterEquipmentSelected').val() == 0 && $('#counterPocketSelected').val() == 0 ) {
885
+ $('#clearFilter').css('display', 'none');
886
+ }
887
+
888
+ });
889
+
890
+
891
+
892
+ $('.modal-body').click(function (e) {
893
+
894
+ var senderElementName = event.target.tagName.toLowerCase();
895
+
896
+ if(senderElementName === 'div')
897
+ {
898
+ $('#pocketCentres').removeClass( "in");
899
+ $('#equipmentTypes').removeClass( "in");
900
+ }
901
+
902
+ });
903
+
904
+
905
+ $('#equipmentTypeButton').click(function(e) {
906
+ $('#pocketCentres').removeClass( "in");
907
+ });
908
+
909
+ $('#pocketCentreButton').click(function(e) {
910
+ $('#equipmentTypes').removeClass( "in");
911
+ });
912
+
913
+
914
+
915
+ /* see: http://jsfiddle.net/Freizeitler/fzJLZ/ */
916
+ /**
917
+ * Responsive HTML Table
918
+ *
919
+ * @desc RWD: HTML table turns into an accordion.
920
+ * @author [HZ]
921
+ * @dependency jQuery
922
+ */
923
+ $.fn.responsiveTable = function () {
924
+ $(this).find('table').each(function () {
925
+ var trAcc = $(this).find('tr').not('tr:first-child'),
926
+ thHead = [];
927
+
928
+ $(this).find('tr:first-child td, tr:first-child th').each(function () {
929
+ headLines = $(this).text();
930
+ thHead.push(headLines);
931
+ });
932
+
933
+ trAcc.each(function () {
934
+ for (i = 0, l = thHead.length; i < l; i++) {
935
+ $(this).find('td').eq(i + 1).prepend('<h3>' + thHead[i + 1] + '</h3>');
936
+ }
937
+ });
938
+
939
+ trAcc.append('<i class="icon-accordion">+</i>');
940
+ trAcc.click(function () {
941
+ if ($(this).hasClass('accordion-opened')) {
942
+ $(this).animate({
943
+ maxHeight: '60px'
944
+ }, 200).removeClass('accordion-opened').find('.icon-accordion').text('+');
945
+
946
+ } else {
947
+ $(this).animate({
948
+ maxHeight: '1000px'
949
+ }, 400).addClass('accordion-opened').find('.icon-accordion').text('-');
950
+ }
951
+ });
952
+ });
953
+ };
954
+
955
+ // Init
956
+ $(function () {
957
+ $('.js-responsive-table').responsiveTable();
958
+ });
959
+
960
+
961
+ $('.map').click(function () {
962
+ $('.map iframe').css("pointer-events", "auto");
963
+ });
964
+
965
+ $(".map" ).mouseleave(function() {
966
+ $('.map iframe').css("pointer-events", "none");
967
+ });
968
+
969
+ });