action_ui 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/README.md +36 -0
- data/lib/cre_pro-rails.rb +8 -0
- data/lib/cre_pro/rails.rb +7 -0
- data/lib/cre_pro/rails/version.rb +5 -0
- data/vendor/assets/javascripts/gp/gp.js +292 -0
- data/vendor/assets/javascripts/ld/bootstrap-checkbox-radio-switch-tags.js +869 -0
- data/vendor/assets/javascripts/ld/bootstrap-datetimepicker.js +2573 -0
- data/vendor/assets/javascripts/ld/bootstrap-notify.js +379 -0
- data/vendor/assets/javascripts/ld/bootstrap-selectpicker.js +1711 -0
- data/vendor/assets/javascripts/ld/bootstrap-table.js +2484 -0
- data/vendor/assets/javascripts/ld/chartist.min.js +8 -0
- data/vendor/assets/javascripts/ld/demo.js +731 -0
- data/vendor/assets/javascripts/ld/fullcalendar.min.js +9 -0
- data/vendor/assets/javascripts/ld/jquery-jvectormap.js +3381 -0
- data/vendor/assets/javascripts/ld/jquery-ui.min.js +24 -0
- data/vendor/assets/javascripts/ld/jquery.bootstrap.wizard.min.js +22 -0
- data/vendor/assets/javascripts/ld/jquery.datatables.js +15498 -0
- data/vendor/assets/javascripts/ld/jquery.min.js +5 -0
- data/vendor/assets/javascripts/ld/jquery.validate.min.js +4 -0
- data/vendor/assets/javascripts/ld/ld.js +422 -0
- data/vendor/assets/javascripts/ld/moment.min.js +7 -0
- data/vendor/assets/javascripts/ld/sweetalert2.js +877 -0
- data/vendor/assets/javascripts/mk/bootstrap-datepicker.js +474 -0
- data/vendor/assets/javascripts/mk/bootstrap.min.js +7 -0
- data/vendor/assets/javascripts/mk/jasny-bootstrap.min.js +6 -0
- data/vendor/assets/javascripts/mk/jquery.dropdown.js +378 -0
- data/vendor/assets/javascripts/mk/jquery.flexisel.js +342 -0
- data/vendor/assets/javascripts/mk/jquery.min.js +3 -0
- data/vendor/assets/javascripts/mk/jquery.tagsinput.js +355 -0
- data/vendor/assets/javascripts/mk/mk.js +191 -0
- data/vendor/assets/javascripts/mk/mk.min.js +1 -0
- data/vendor/assets/javascripts/mk/nouislider.min.js +31 -0
- data/vendor/assets/javascripts/pd/bootstrap-checkbox-radio-switch-tags.js +869 -0
- data/vendor/assets/javascripts/pd/bootstrap-datetimepicker.js +2576 -0
- data/vendor/assets/javascripts/pd/bootstrap-notify.js +379 -0
- data/vendor/assets/javascripts/pd/bootstrap-selectpicker.js +1711 -0
- data/vendor/assets/javascripts/pd/bootstrap-table.js +2484 -0
- data/vendor/assets/javascripts/pd/bootstrap.min.js +12 -0
- data/vendor/assets/javascripts/pd/chartist.min.js +9 -0
- data/vendor/assets/javascripts/pd/demo.js +911 -0
- data/vendor/assets/javascripts/pd/fullcalendar.min.js +9 -0
- data/vendor/assets/javascripts/pd/jquery-1.10.2.js +9789 -0
- data/vendor/assets/javascripts/pd/jquery-1.10.2.min.js +3 -0
- data/vendor/assets/javascripts/pd/jquery-jvectormap.js +3381 -0
- data/vendor/assets/javascripts/pd/jquery-ui.min.js +24 -0
- data/vendor/assets/javascripts/pd/jquery.bootstrap.wizard.min.js +22 -0
- data/vendor/assets/javascripts/pd/jquery.datatables.js +15498 -0
- data/vendor/assets/javascripts/pd/jquery.easypiechart.min.js +9 -0
- data/vendor/assets/javascripts/pd/jquery.min.js +5 -0
- data/vendor/assets/javascripts/pd/jquery.tagsinput.js +355 -0
- data/vendor/assets/javascripts/pd/jquery.validate.min.js +4 -0
- data/vendor/assets/javascripts/pd/moment.min.js +7 -0
- data/vendor/assets/javascripts/pd/pd.js +335 -0
- data/vendor/assets/javascripts/pd/sweetalert2.js +877 -0
- data/vendor/assets/javascripts/pk/bootstrap-datepicker.js +492 -0
- data/vendor/assets/javascripts/pk/bootstrap-select.js +1711 -0
- data/vendor/assets/javascripts/pk/chartist.min.js +8 -0
- data/vendor/assets/javascripts/pk/ct-pk-bootstrapswitch.js +249 -0
- data/vendor/assets/javascripts/pk/ct-pk-checkbox.js +109 -0
- data/vendor/assets/javascripts/pk/ct-pk-radio.js +140 -0
- data/vendor/assets/javascripts/pk/ct-pk.js +305 -0
- data/vendor/assets/javascripts/pk/demo.js +289 -0
- data/vendor/assets/javascripts/pk/jasny-bootstrap.min.js +6 -0
- data/vendor/assets/javascripts/pk/jquery-1.10.2.js +9789 -0
- data/vendor/assets/javascripts/pk/jquery-ui-1.10.4.custom.min.js +6 -0
- data/vendor/assets/javascripts/pk/jquery.tagsinput.js +355 -0
- data/vendor/assets/javascripts/pk/photo_swipe/init-gallery.js +205 -0
- data/vendor/assets/javascripts/pk/photo_swipe/photoswipe-ui-default.min.js +4 -0
- data/vendor/assets/javascripts/pk/photo_swipe/photoswipe.min.js +4 -0
- data/vendor/assets/javascripts/pk/presentation-page/atv-img-min.js +233 -0
- data/vendor/assets/javascripts/pk/presentation-page/jquery.sharrre.js +585 -0
- data/vendor/assets/javascripts/sd/bootstrap-datepicker.js +492 -0
- data/vendor/assets/javascripts/sd/bootstrap-select.js +1711 -0
- data/vendor/assets/javascripts/sd/chartist.min.js +8 -0
- data/vendor/assets/javascripts/sd/demo.js +227 -0
- data/vendor/assets/javascripts/sd/jquery-ui.custom.min.js +7 -0
- data/vendor/assets/javascripts/sd/jquery.flexisel.js +342 -0
- data/vendor/assets/javascripts/sd/jquery.js +9789 -0
- data/vendor/assets/javascripts/sd/jquery.tagsinput.js +355 -0
- data/vendor/assets/javascripts/sd/retina.min.js +10 -0
- data/vendor/assets/javascripts/sd/sd-bootstrapswitch.js +249 -0
- data/vendor/assets/javascripts/sd/sd-checkbox.js +109 -0
- data/vendor/assets/javascripts/sd/sd-morphing.js +89 -0
- data/vendor/assets/javascripts/sd/sd-radio.js +140 -0
- data/vendor/assets/javascripts/sd/sd.js +398 -0
- data/vendor/assets/stylesheets/gp/components/_buttons.scss +121 -0
- data/vendor/assets/stylesheets/gp/components/_cards.scss +271 -0
- data/vendor/assets/stylesheets/gp/components/_carousel.scss +15 -0
- data/vendor/assets/stylesheets/gp/components/_clients.scss +172 -0
- data/vendor/assets/stylesheets/gp/components/_closure.scss +19 -0
- data/vendor/assets/stylesheets/gp/components/_contact.scss +93 -0
- data/vendor/assets/stylesheets/gp/components/_dropdown.scss +173 -0
- data/vendor/assets/stylesheets/gp/components/_example-pages.scss +524 -0
- data/vendor/assets/stylesheets/gp/components/_footers.scss +191 -0
- data/vendor/assets/stylesheets/gp/components/_headers.scss +72 -0
- data/vendor/assets/stylesheets/gp/components/_inputs.scss +145 -0
- data/vendor/assets/stylesheets/gp/components/_labels.scss +15 -0
- data/vendor/assets/stylesheets/gp/components/_misc.scss +332 -0
- data/vendor/assets/stylesheets/gp/components/_mixins.scss +11 -0
- data/vendor/assets/stylesheets/gp/components/_navbars.scss +252 -0
- data/vendor/assets/stylesheets/gp/components/_numbers.scss +61 -0
- data/vendor/assets/stylesheets/gp/components/_projects.scss +279 -0
- data/vendor/assets/stylesheets/gp/components/_responsive.scss +950 -0
- data/vendor/assets/stylesheets/gp/components/_sections.scss +328 -0
- data/vendor/assets/stylesheets/gp/components/_social-buttons.scss +30 -0
- data/vendor/assets/stylesheets/gp/components/_team.scss +182 -0
- data/vendor/assets/stylesheets/gp/components/_theme.scss +22 -0
- data/vendor/assets/stylesheets/gp/components/_typography.scss +252 -0
- data/vendor/assets/stylesheets/gp/components/_variables.scss +267 -0
- data/vendor/assets/stylesheets/gp/components/mixins/_buttons.scss +61 -0
- data/vendor/assets/stylesheets/gp/components/mixins/_cards.scss +8 -0
- data/vendor/assets/stylesheets/gp/components/mixins/_inputs.scss +17 -0
- data/vendor/assets/stylesheets/gp/components/mixins/_navbars.scss +11 -0
- data/vendor/assets/stylesheets/gp/components/mixins/_transparency.scss +20 -0
- data/vendor/assets/stylesheets/gp/components/mixins/_vendor-prefixes.scss +284 -0
- data/vendor/assets/stylesheets/gp/gp.scss +30 -0
- data/vendor/assets/stylesheets/ld/ld.scss +53 -0
- data/vendor/assets/stylesheets/ld/ld/_alerts.scss +82 -0
- data/vendor/assets/stylesheets/ld/ld/_buttons.scss +123 -0
- data/vendor/assets/stylesheets/ld/ld/_cards.scss +315 -0
- data/vendor/assets/stylesheets/ld/ld/_carousel.scss +15 -0
- data/vendor/assets/stylesheets/ld/ld/_checkbox-radio-switch.scss +253 -0
- data/vendor/assets/stylesheets/ld/ld/_collapse.scss +49 -0
- data/vendor/assets/stylesheets/ld/ld/_dropdown.scss +176 -0
- data/vendor/assets/stylesheets/ld/ld/_footers.scss +155 -0
- data/vendor/assets/stylesheets/ld/ld/_forms.scss +41 -0
- data/vendor/assets/stylesheets/ld/ld/_inputs.scss +170 -0
- data/vendor/assets/stylesheets/ld/ld/_labels.scss +54 -0
- data/vendor/assets/stylesheets/ld/ld/_media.scss +80 -0
- data/vendor/assets/stylesheets/ld/ld/_misc.scss +87 -0
- data/vendor/assets/stylesheets/ld/ld/_mixins.scss +22 -0
- data/vendor/assets/stylesheets/ld/ld/_modal.scss +79 -0
- data/vendor/assets/stylesheets/ld/ld/_navbars.scss +362 -0
- data/vendor/assets/stylesheets/ld/ld/_pages.scss +215 -0
- data/vendor/assets/stylesheets/ld/ld/_progress-bars.scss +26 -0
- data/vendor/assets/stylesheets/ld/ld/_responsive.scss +647 -0
- data/vendor/assets/stylesheets/ld/ld/_sidebar-and-main-panel.scss +576 -0
- data/vendor/assets/stylesheets/ld/ld/_sliders.scss +219 -0
- data/vendor/assets/stylesheets/ld/ld/_social-buttons.scss +77 -0
- data/vendor/assets/stylesheets/ld/ld/_tables.scss +120 -0
- data/vendor/assets/stylesheets/ld/ld/_tabs-navs-pagination.scss +302 -0
- data/vendor/assets/stylesheets/ld/ld/_tags.scss +123 -0
- data/vendor/assets/stylesheets/ld/ld/_tooltips-and-popovers.scss +156 -0
- data/vendor/assets/stylesheets/ld/ld/_typography.scss +93 -0
- data/vendor/assets/stylesheets/ld/ld/_variables.scss +319 -0
- data/vendor/assets/stylesheets/ld/ld/mixins/_buttons.scss +74 -0
- data/vendor/assets/stylesheets/ld/ld/mixins/_cards.scss +8 -0
- data/vendor/assets/stylesheets/ld/ld/mixins/_chartist.scss +85 -0
- data/vendor/assets/stylesheets/ld/ld/mixins/_icons.scss +13 -0
- data/vendor/assets/stylesheets/ld/ld/mixins/_inputs.scss +17 -0
- data/vendor/assets/stylesheets/ld/ld/mixins/_labels.scss +21 -0
- data/vendor/assets/stylesheets/ld/ld/mixins/_morphing-buttons.scss +34 -0
- data/vendor/assets/stylesheets/ld/ld/mixins/_navbars.scss +11 -0
- data/vendor/assets/stylesheets/ld/ld/mixins/_social-buttons.scss +43 -0
- data/vendor/assets/stylesheets/ld/ld/mixins/_table-row.scss +22 -0
- data/vendor/assets/stylesheets/ld/ld/mixins/_tabs.scss +4 -0
- data/vendor/assets/stylesheets/ld/ld/mixins/_transparency.scss +20 -0
- data/vendor/assets/stylesheets/ld/ld/mixins/_vendor-prefixes.scss +197 -0
- data/vendor/assets/stylesheets/ld/ld/plugins/_animate.scss +188 -0
- data/vendor/assets/stylesheets/ld/ld/plugins/_bootstrap-select.scss +308 -0
- data/vendor/assets/stylesheets/ld/ld/plugins/_bootstrap-table.scss +328 -0
- data/vendor/assets/stylesheets/ld/ld/plugins/_chartist.scss +247 -0
- data/vendor/assets/stylesheets/ld/ld/plugins/_datatables.net.scss +513 -0
- data/vendor/assets/stylesheets/ld/ld/plugins/_datetime-picker.scss +440 -0
- data/vendor/assets/stylesheets/ld/ld/plugins/_fullcalendar.scss +1114 -0
- data/vendor/assets/stylesheets/ld/ld/plugins/_jquery.jvectormap.scss +135 -0
- data/vendor/assets/stylesheets/ld/ld/plugins/_perfect-scrollbar.scss +111 -0
- data/vendor/assets/stylesheets/ld/ld/plugins/_sweetalert2.scss +531 -0
- data/vendor/assets/stylesheets/mk/mk.scss +50 -0
- data/vendor/assets/stylesheets/mk/mk/_alerts.scss +41 -0
- data/vendor/assets/stylesheets/mk/mk/_buttons.scss +283 -0
- data/vendor/assets/stylesheets/mk/mk/_cards.scss +576 -0
- data/vendor/assets/stylesheets/mk/mk/_carousel.scss +86 -0
- data/vendor/assets/stylesheets/mk/mk/_checkboxes.scss +195 -0
- data/vendor/assets/stylesheets/mk/mk/_colors.scss +326 -0
- data/vendor/assets/stylesheets/mk/mk/_dialogs.scss +99 -0
- data/vendor/assets/stylesheets/mk/mk/_dividers.scss +73 -0
- data/vendor/assets/stylesheets/mk/mk/_dropdown.scss +86 -0
- data/vendor/assets/stylesheets/mk/mk/_example-pages.scss +775 -0
- data/vendor/assets/stylesheets/mk/mk/_fileupload.scss +115 -0
- data/vendor/assets/stylesheets/mk/mk/_flexisel.scss +54 -0
- data/vendor/assets/stylesheets/mk/mk/_form.scss +58 -0
- data/vendor/assets/stylesheets/mk/mk/_images.scss +6 -0
- data/vendor/assets/stylesheets/mk/mk/_import-bs-less.scss +4 -0
- data/vendor/assets/stylesheets/mk/mk/_import-bs-sass.scss +2 -0
- data/vendor/assets/stylesheets/mk/mk/_info-areas.scss +57 -0
- data/vendor/assets/stylesheets/mk/mk/_inputs-size.scss +223 -0
- data/vendor/assets/stylesheets/mk/mk/_inputs.scss +394 -0
- data/vendor/assets/stylesheets/mk/mk/_labels.scss +10 -0
- data/vendor/assets/stylesheets/mk/mk/_lists.scss +104 -0
- data/vendor/assets/stylesheets/mk/mk/_media.scss +47 -0
- data/vendor/assets/stylesheets/mk/mk/_misc.scss +94 -0
- data/vendor/assets/stylesheets/mk/mk/_mixins.scss +413 -0
- data/vendor/assets/stylesheets/mk/mk/_navbar.scss +311 -0
- data/vendor/assets/stylesheets/mk/mk/_pagination.scss +91 -0
- data/vendor/assets/stylesheets/mk/mk/_panels.scss +47 -0
- data/vendor/assets/stylesheets/mk/mk/_pills.scss +128 -0
- data/vendor/assets/stylesheets/mk/mk/_popups.scss +77 -0
- data/vendor/assets/stylesheets/mk/mk/_progress.scss +33 -0
- data/vendor/assets/stylesheets/mk/mk/_radios.scss +114 -0
- data/vendor/assets/stylesheets/mk/mk/_responsive.scss +115 -0
- data/vendor/assets/stylesheets/mk/mk/_ripples.scss +40 -0
- data/vendor/assets/stylesheets/mk/mk/_sections.scss +131 -0
- data/vendor/assets/stylesheets/mk/mk/_select.scss +108 -0
- data/vendor/assets/stylesheets/mk/mk/_shadows.scss +138 -0
- data/vendor/assets/stylesheets/mk/mk/_tables.scss +104 -0
- data/vendor/assets/stylesheets/mk/mk/_tabs.scss +53 -0
- data/vendor/assets/stylesheets/mk/mk/_tags.scss +97 -0
- data/vendor/assets/stylesheets/mk/mk/_togglebutton.scss +87 -0
- data/vendor/assets/stylesheets/mk/mk/_typography.scss +75 -0
- data/vendor/assets/stylesheets/mk/mk/_variables.scss +224 -0
- data/vendor/assets/stylesheets/mk/mk/_variables_bootstrap.scss +883 -0
- data/vendor/assets/stylesheets/mk/mk/_welljumbo.scss +28 -0
- data/vendor/assets/stylesheets/mk/mk/plugins/_plugin-datepicker.scss +204 -0
- data/vendor/assets/stylesheets/mk/mk/plugins/_plugin-nouislider.scss +161 -0
- data/vendor/assets/stylesheets/mk/mk/plugins/_plugin-selectize.scss +93 -0
- data/vendor/assets/stylesheets/mk/mk/plugins/_plugin-snackbarjs.scss +34 -0
- data/vendor/assets/stylesheets/mk/mk/sections/_blogs.scss +17 -0
- data/vendor/assets/stylesheets/mk/mk/sections/_contactus.scss +51 -0
- data/vendor/assets/stylesheets/mk/mk/sections/_features.scss +92 -0
- data/vendor/assets/stylesheets/mk/mk/sections/_footers.scss +163 -0
- data/vendor/assets/stylesheets/mk/mk/sections/_headers.scss +125 -0
- data/vendor/assets/stylesheets/mk/mk/sections/_pricing.scss +40 -0
- data/vendor/assets/stylesheets/mk/mk/sections/_projects.scss +75 -0
- data/vendor/assets/stylesheets/mk/mk/sections/_social-subscribe-lines.scss +71 -0
- data/vendor/assets/stylesheets/mk/mk/sections/_team.scss +53 -0
- data/vendor/assets/stylesheets/mk/mk/sections/_testimonials.scss +5 -0
- data/vendor/assets/stylesheets/pd/pd.scss +51 -0
- data/vendor/assets/stylesheets/pd/pd/_alerts.scss +60 -0
- data/vendor/assets/stylesheets/pd/pd/_animated-buttons.scss +61 -0
- data/vendor/assets/stylesheets/pd/pd/_buttons.scss +173 -0
- data/vendor/assets/stylesheets/pd/pd/_cards.scss +546 -0
- data/vendor/assets/stylesheets/pd/pd/_carousel.scss +15 -0
- data/vendor/assets/stylesheets/pd/pd/_chat-message.scss +206 -0
- data/vendor/assets/stylesheets/pd/pd/_checkbox-radio.scss +126 -0
- data/vendor/assets/stylesheets/pd/pd/_circlechart.scss +18 -0
- data/vendor/assets/stylesheets/pd/pd/_collapse.scss +40 -0
- data/vendor/assets/stylesheets/pd/pd/_dropdown.scss +413 -0
- data/vendor/assets/stylesheets/pd/pd/_footers.scss +87 -0
- data/vendor/assets/stylesheets/pd/pd/_forms.scss +43 -0
- data/vendor/assets/stylesheets/pd/pd/_inputs.scss +190 -0
- data/vendor/assets/stylesheets/pd/pd/_labels.scss +29 -0
- data/vendor/assets/stylesheets/pd/pd/_media.scss +80 -0
- data/vendor/assets/stylesheets/pd/pd/_misc.scss +104 -0
- data/vendor/assets/stylesheets/pd/pd/_mixins.scss +17 -0
- data/vendor/assets/stylesheets/pd/pd/_modal.scss +79 -0
- data/vendor/assets/stylesheets/pd/pd/_navbars.scss +289 -0
- data/vendor/assets/stylesheets/pd/pd/_pages.scss +196 -0
- data/vendor/assets/stylesheets/pd/pd/_progress-bars.scss +27 -0
- data/vendor/assets/stylesheets/pd/pd/_responsive.scss +666 -0
- data/vendor/assets/stylesheets/pd/pd/_sidebar-and-main-panel.scss +514 -0
- data/vendor/assets/stylesheets/pd/pd/_sliders.scss +222 -0
- data/vendor/assets/stylesheets/pd/pd/_social.scss +130 -0
- data/vendor/assets/stylesheets/pd/pd/_switch.scss +145 -0
- data/vendor/assets/stylesheets/pd/pd/_tables.scss +194 -0
- data/vendor/assets/stylesheets/pd/pd/_tabs-navs-pagination.scss +341 -0
- data/vendor/assets/stylesheets/pd/pd/_tags.scss +104 -0
- data/vendor/assets/stylesheets/pd/pd/_timeline.scss +178 -0
- data/vendor/assets/stylesheets/pd/pd/_tooltips-and-popovers.scss +156 -0
- data/vendor/assets/stylesheets/pd/pd/_typography.scss +117 -0
- data/vendor/assets/stylesheets/pd/pd/_variables.scss +367 -0
- data/vendor/assets/stylesheets/pd/pd/mixins/_alerts.scss +13 -0
- data/vendor/assets/stylesheets/pd/pd/mixins/_buttons.scss +89 -0
- data/vendor/assets/stylesheets/pd/pd/mixins/_cards.scss +7 -0
- data/vendor/assets/stylesheets/pd/pd/mixins/_chartist.scss +104 -0
- data/vendor/assets/stylesheets/pd/pd/mixins/_icons.scss +13 -0
- data/vendor/assets/stylesheets/pd/pd/mixins/_inputs.scss +17 -0
- data/vendor/assets/stylesheets/pd/pd/mixins/_labels.scss +10 -0
- data/vendor/assets/stylesheets/pd/pd/mixins/_navbars.scss +11 -0
- data/vendor/assets/stylesheets/pd/pd/mixins/_sidebar.scss +54 -0
- data/vendor/assets/stylesheets/pd/pd/mixins/_social.scss +68 -0
- data/vendor/assets/stylesheets/pd/pd/mixins/_table-row.scss +22 -0
- data/vendor/assets/stylesheets/pd/pd/mixins/_tabs.scss +4 -0
- data/vendor/assets/stylesheets/pd/pd/mixins/_transparency.scss +20 -0
- data/vendor/assets/stylesheets/pd/pd/mixins/_vendor-prefixes.scss +254 -0
- data/vendor/assets/stylesheets/pd/pd/plugins/_animate.scss +189 -0
- data/vendor/assets/stylesheets/pd/pd/plugins/_bootstrap-select.scss +313 -0
- data/vendor/assets/stylesheets/pd/pd/plugins/_bootstrap-table.scss +375 -0
- data/vendor/assets/stylesheets/pd/pd/plugins/_chartist.scss +246 -0
- data/vendor/assets/stylesheets/pd/pd/plugins/_datatables.net.scss +504 -0
- data/vendor/assets/stylesheets/pd/pd/plugins/_datetime-picker.scss +418 -0
- data/vendor/assets/stylesheets/pd/pd/plugins/_fullcalendar.scss +1124 -0
- data/vendor/assets/stylesheets/pd/pd/plugins/_jquery.jvectormap.scss +135 -0
- data/vendor/assets/stylesheets/pd/pd/plugins/_perfect-scrollbar.scss +112 -0
- data/vendor/assets/stylesheets/pd/pd/plugins/_sweetalert2.scss +531 -0
- data/vendor/assets/stylesheets/pk/ct-pk.scss +64 -0
- data/vendor/assets/stylesheets/pk/ct-pk/_alerts.scss +69 -0
- data/vendor/assets/stylesheets/pk/ct-pk/_animated-buttons.scss +63 -0
- data/vendor/assets/stylesheets/pk/ct-pk/_bootstrap-select.scss +320 -0
- data/vendor/assets/stylesheets/pk/ct-pk/_buttons.scss +161 -0
- data/vendor/assets/stylesheets/pk/ct-pk/_cards.scss +570 -0
- data/vendor/assets/stylesheets/pk/ct-pk/_carousel.scss +59 -0
- data/vendor/assets/stylesheets/pk/ct-pk/_chartist.scss +354 -0
- data/vendor/assets/stylesheets/pk/ct-pk/_checkbox-radio.scss +129 -0
- data/vendor/assets/stylesheets/pk/ct-pk/_collapse.scss +40 -0
- data/vendor/assets/stylesheets/pk/ct-pk/_datepicker.scss +198 -0
- data/vendor/assets/stylesheets/pk/ct-pk/_dropdown.scss +291 -0
- data/vendor/assets/stylesheets/pk/ct-pk/_fileupload.scss +112 -0
- data/vendor/assets/stylesheets/pk/ct-pk/_footers.scss +193 -0
- data/vendor/assets/stylesheets/pk/ct-pk/_headers.scss +85 -0
- data/vendor/assets/stylesheets/pk/ct-pk/_images.scss +28 -0
- data/vendor/assets/stylesheets/pk/ct-pk/_info-areas.scss +62 -0
- data/vendor/assets/stylesheets/pk/ct-pk/_inputs.scss +171 -0
- data/vendor/assets/stylesheets/pk/ct-pk/_labels.scss +29 -0
- data/vendor/assets/stylesheets/pk/ct-pk/_media.scss +82 -0
- data/vendor/assets/stylesheets/pk/ct-pk/_misc.scss +124 -0
- data/vendor/assets/stylesheets/pk/ct-pk/_mixins.scss +16 -0
- data/vendor/assets/stylesheets/pk/ct-pk/_modal.scss +91 -0
- data/vendor/assets/stylesheets/pk/ct-pk/_navbars.scss +285 -0
- data/vendor/assets/stylesheets/pk/ct-pk/_preloaders.scss +282 -0
- data/vendor/assets/stylesheets/pk/ct-pk/_progress-bars.scss +27 -0
- data/vendor/assets/stylesheets/pk/ct-pk/_responsive.scss +411 -0
- data/vendor/assets/stylesheets/pk/ct-pk/_sections.scss +45 -0
- data/vendor/assets/stylesheets/pk/ct-pk/_sidebar.scss +206 -0
- data/vendor/assets/stylesheets/pk/ct-pk/_sliders.scss +222 -0
- data/vendor/assets/stylesheets/pk/ct-pk/_social.scss +130 -0
- data/vendor/assets/stylesheets/pk/ct-pk/_switch.scss +145 -0
- data/vendor/assets/stylesheets/pk/ct-pk/_tables.scss +135 -0
- data/vendor/assets/stylesheets/pk/ct-pk/_tabs-navs-pagination.scss +311 -0
- data/vendor/assets/stylesheets/pk/ct-pk/_tags.scss +108 -0
- data/vendor/assets/stylesheets/pk/ct-pk/_tooltips-and-popovers.scss +188 -0
- data/vendor/assets/stylesheets/pk/ct-pk/_typography.scss +106 -0
- data/vendor/assets/stylesheets/pk/ct-pk/_variables.scss +301 -0
- data/vendor/assets/stylesheets/pk/ct-pk/mixins/_alerts.scss +11 -0
- data/vendor/assets/stylesheets/pk/ct-pk/mixins/_buttons.scss +104 -0
- data/vendor/assets/stylesheets/pk/ct-pk/mixins/_inputs.scss +17 -0
- data/vendor/assets/stylesheets/pk/ct-pk/mixins/_labels.scss +10 -0
- data/vendor/assets/stylesheets/pk/ct-pk/mixins/_navbars.scss +11 -0
- data/vendor/assets/stylesheets/pk/ct-pk/mixins/_popovers.scss +21 -0
- data/vendor/assets/stylesheets/pk/ct-pk/mixins/_social.scss +68 -0
- data/vendor/assets/stylesheets/pk/ct-pk/mixins/_tabs.scss +4 -0
- data/vendor/assets/stylesheets/pk/ct-pk/mixins/_transparency.scss +17 -0
- data/vendor/assets/stylesheets/pk/ct-pk/mixins/_vendor-prefixes.scss +233 -0
- data/vendor/assets/stylesheets/pk/ct-pk/plugins/photo-swipe/_default-skin.scss +592 -0
- data/vendor/assets/stylesheets/pk/ct-pk/plugins/photo-swipe/_gallery.scss +27 -0
- data/vendor/assets/stylesheets/pk/ct-pk/plugins/photo-swipe/_main-settings.scss +11 -0
- data/vendor/assets/stylesheets/pk/ct-pk/plugins/photo-swipe/_main.scss +213 -0
- data/vendor/assets/stylesheets/pk/examples.scss +1083 -0
- data/vendor/assets/stylesheets/sd/examples.scss +403 -0
- data/vendor/assets/stylesheets/sd/sd.scss +41 -0
- data/vendor/assets/stylesheets/sd/sd/_alerts.scss +37 -0
- data/vendor/assets/stylesheets/sd/sd/_bootstrap-select.scss +307 -0
- data/vendor/assets/stylesheets/sd/sd/_buttons.scss +108 -0
- data/vendor/assets/stylesheets/sd/sd/_cards.scss +462 -0
- data/vendor/assets/stylesheets/sd/sd/_carousel.scss +15 -0
- data/vendor/assets/stylesheets/sd/sd/_chartist.scss +335 -0
- data/vendor/assets/stylesheets/sd/sd/_checkbox-radio-switch.scss +246 -0
- data/vendor/assets/stylesheets/sd/sd/_collapse.scss +33 -0
- data/vendor/assets/stylesheets/sd/sd/_datepicker.scss +199 -0
- data/vendor/assets/stylesheets/sd/sd/_dropdown.scss +98 -0
- data/vendor/assets/stylesheets/sd/sd/_flexisel.scss +53 -0
- data/vendor/assets/stylesheets/sd/sd/_footers.scss +216 -0
- data/vendor/assets/stylesheets/sd/sd/_icons.scss +127 -0
- data/vendor/assets/stylesheets/sd/sd/_inputs.scss +141 -0
- data/vendor/assets/stylesheets/sd/sd/_labels.scss +54 -0
- data/vendor/assets/stylesheets/sd/sd/_media.scss +80 -0
- data/vendor/assets/stylesheets/sd/sd/_misc.scss +115 -0
- data/vendor/assets/stylesheets/sd/sd/_mixins.scss +20 -0
- data/vendor/assets/stylesheets/sd/sd/_modal.scss +79 -0
- data/vendor/assets/stylesheets/sd/sd/_morphing-buttons.scss +161 -0
- data/vendor/assets/stylesheets/sd/sd/_navbars.scss +293 -0
- data/vendor/assets/stylesheets/sd/sd/_progress-bars.scss +9 -0
- data/vendor/assets/stylesheets/sd/sd/_responsive.scss +302 -0
- data/vendor/assets/stylesheets/sd/sd/_sections.scss +12 -0
- data/vendor/assets/stylesheets/sd/sd/_sidebar-menu.scss +232 -0
- data/vendor/assets/stylesheets/sd/sd/_sliders.scss +218 -0
- data/vendor/assets/stylesheets/sd/sd/_social-buttons.scss +76 -0
- data/vendor/assets/stylesheets/sd/sd/_tables.scss +110 -0
- data/vendor/assets/stylesheets/sd/sd/_tabs-navs-pagination.scss +217 -0
- data/vendor/assets/stylesheets/sd/sd/_tags.scss +220 -0
- data/vendor/assets/stylesheets/sd/sd/_tooltips-and-popovers.scss +156 -0
- data/vendor/assets/stylesheets/sd/sd/_typography.scss +73 -0
- data/vendor/assets/stylesheets/sd/sd/_variables.scss +249 -0
- data/vendor/assets/stylesheets/sd/sd/mixins/_buttons.scss +76 -0
- data/vendor/assets/stylesheets/sd/sd/mixins/_cards.scss +8 -0
- data/vendor/assets/stylesheets/sd/sd/mixins/_icons.scss +13 -0
- data/vendor/assets/stylesheets/sd/sd/mixins/_inputs.scss +17 -0
- data/vendor/assets/stylesheets/sd/sd/mixins/_labels.scss +21 -0
- data/vendor/assets/stylesheets/sd/sd/mixins/_morphing-buttons.scss +34 -0
- data/vendor/assets/stylesheets/sd/sd/mixins/_navbars.scss +11 -0
- data/vendor/assets/stylesheets/sd/sd/mixins/_social-buttons.scss +43 -0
- data/vendor/assets/stylesheets/sd/sd/mixins/_tabs.scss +4 -0
- data/vendor/assets/stylesheets/sd/sd/mixins/_transparency.scss +20 -0
- data/vendor/assets/stylesheets/sd/sd/mixins/_vendor-prefixes.scss +177 -0
- metadata +484 -0
@@ -0,0 +1,8 @@
|
|
1
|
+
/* Chartist.js 0.9.4
|
2
|
+
* Copyright © 2015 Gion Kunz
|
3
|
+
* Free to use under the WTFPL license.
|
4
|
+
* http://www.wtfpl.net/
|
5
|
+
*/
|
6
|
+
|
7
|
+
!function(a,b){"function"==typeof define&&define.amd?define([],function(){return a.Chartist=b()}):"object"==typeof exports?module.exports=b():a.Chartist=b()}(this,function(){var a={version:"0.9.4"};return function(a,b,c){"use strict";c.noop=function(a){return a},c.alphaNumerate=function(a){return String.fromCharCode(97+a%26)},c.extend=function(a){a=a||{};var b=Array.prototype.slice.call(arguments,1);return b.forEach(function(b){for(var d in b)"object"!=typeof b[d]||null===b[d]||b[d]instanceof Array?a[d]=b[d]:a[d]=c.extend({},a[d],b[d])}),a},c.replaceAll=function(a,b,c){return a.replace(new RegExp(b,"g"),c)},c.stripUnit=function(a){return"string"==typeof a&&(a=a.replace(/[^0-9\+-\.]/g,"")),+a},c.ensureUnit=function(a,b){return"number"==typeof a&&(a+=b),a},c.querySelector=function(a){return a instanceof Node?a:b.querySelector(a)},c.times=function(a){return Array.apply(null,new Array(a))},c.sum=function(a,b){return a+(b?b:0)},c.mapMultiply=function(a){return function(b){return b*a}},c.mapAdd=function(a){return function(b){return b+a}},c.serialMap=function(a,b){var d=[],e=Math.max.apply(null,a.map(function(a){return a.length}));return c.times(e).forEach(function(c,e){var f=a.map(function(a){return a[e]});d[e]=b.apply(null,f)}),d},c.roundWithPrecision=function(a,b){var d=Math.pow(10,b||c.precision);return Math.round(a*d)/d},c.precision=8,c.escapingMap={"&":"&","<":"<",">":">",'"':""","'":"'"},c.serialize=function(a){return null===a||void 0===a?a:("number"==typeof a?a=""+a:"object"==typeof a&&(a=JSON.stringify({data:a})),Object.keys(c.escapingMap).reduce(function(a,b){return c.replaceAll(a,b,c.escapingMap[b])},a))},c.deserialize=function(a){if("string"!=typeof a)return a;a=Object.keys(c.escapingMap).reduce(function(a,b){return c.replaceAll(a,c.escapingMap[b],b)},a);try{a=JSON.parse(a),a=void 0!==a.data?a.data:a}catch(b){}return a},c.createSvg=function(a,b,d,e){var f;return b=b||"100%",d=d||"100%",Array.prototype.slice.call(a.querySelectorAll("svg")).filter(function(a){return a.getAttributeNS("http://www.w3.org/2000/xmlns/",c.xmlNs.prefix)}).forEach(function(b){a.removeChild(b)}),f=new c.Svg("svg").attr({width:b,height:d}).addClass(e).attr({style:"width: "+b+"; height: "+d+";"}),a.appendChild(f._node),f},c.reverseData=function(a){a.labels.reverse(),a.series.reverse();for(var b=0;b<a.series.length;b++)"object"==typeof a.series[b]&&void 0!==a.series[b].data?a.series[b].data.reverse():a.series[b]instanceof Array&&a.series[b].reverse()},c.getDataArray=function(a,b,d){function e(a){if(c.isFalseyButZero(a))return void 0;if((a.data||a)instanceof Array)return(a.data||a).map(e);if(a.hasOwnProperty("value"))return e(a.value);if(d){var b={};return"string"==typeof d?b[d]=c.getNumberOrUndefined(a):b.y=c.getNumberOrUndefined(a),b.x=a.hasOwnProperty("x")?c.getNumberOrUndefined(a.x):b.x,b.y=a.hasOwnProperty("y")?c.getNumberOrUndefined(a.y):b.y,b}return c.getNumberOrUndefined(a)}return(b&&!a.reversed||!b&&a.reversed)&&(c.reverseData(a),a.reversed=!a.reversed),a.series.map(e)},c.normalizePadding=function(a,b){return b=b||0,"number"==typeof a?{top:a,right:a,bottom:a,left:a}:{top:"number"==typeof a.top?a.top:b,right:"number"==typeof a.right?a.right:b,bottom:"number"==typeof a.bottom?a.bottom:b,left:"number"==typeof a.left?a.left:b}},c.getMetaData=function(a,b){var d=a.data?a.data[b]:a[b];return d?c.serialize(d.meta):void 0},c.orderOfMagnitude=function(a){return Math.floor(Math.log(Math.abs(a))/Math.LN10)},c.projectLength=function(a,b,c){return b/c.range*a},c.getAvailableHeight=function(a,b){return Math.max((c.stripUnit(b.height)||a.height())-(b.chartPadding.top+b.chartPadding.bottom)-b.axisX.offset,0)},c.getHighLow=function(a,b,d){function e(a){if(void 0===a)return void 0;if(a instanceof Array)for(var b=0;b<a.length;b++)e(a[b]);else{var c=d?+a[d]:+a;g&&c>f.high&&(f.high=c),h&&c<f.low&&(f.low=c)}}b=c.extend({},b,d?b["axis"+d.toUpperCase()]:{});var f={high:void 0===b.high?-Number.MAX_VALUE:+b.high,low:void 0===b.low?Number.MAX_VALUE:+b.low},g=void 0===b.high,h=void 0===b.low;return(g||h)&&e(a),(b.referenceValue||0===b.referenceValue)&&(f.high=Math.max(b.referenceValue,f.high),f.low=Math.min(b.referenceValue,f.low)),f.high<=f.low&&(0===f.low?f.high=1:f.low<0?f.high=0:f.low=0),f},c.isNum=function(a){return!isNaN(a)&&isFinite(a)},c.isFalseyButZero=function(a){return!a&&0!==a},c.getNumberOrUndefined=function(a){return isNaN(+a)?void 0:+a},c.getMultiValue=function(a,b){return c.isNum(a)?+a:a?a[b||"y"]||0:0},c.rho=function(a){function b(a,c){return a%c===0?c:b(c,a%c)}function c(a){return a*a+1}if(1===a)return a;var d,e=2,f=2;if(a%2===0)return 2;do e=c(e)%a,f=c(c(f))%a,d=b(Math.abs(e-f),a);while(1===d);return d},c.getBounds=function(a,b,d,e){var f,g,h,i=0,j={high:b.high,low:b.low};j.valueRange=j.high-j.low,j.oom=c.orderOfMagnitude(j.valueRange),j.step=Math.pow(10,j.oom),j.min=Math.floor(j.low/j.step)*j.step,j.max=Math.ceil(j.high/j.step)*j.step,j.range=j.max-j.min,j.numberOfSteps=Math.round(j.range/j.step);var k=c.projectLength(a,j.step,j),l=d>k,m=e?c.rho(j.range):0;if(e&&c.projectLength(a,1,j)>=d)j.step=1;else if(e&&m<j.step&&c.projectLength(a,m,j)>=d)j.step=m;else for(;;){if(l&&c.projectLength(a,j.step,j)<=d)j.step*=2;else{if(l||!(c.projectLength(a,j.step/2,j)>=d))break;if(j.step/=2,e&&j.step%1!==0){j.step*=2;break}}if(i++>1e3)throw new Error("Exceeded maximum number of iterations while optimizing scale step!")}for(g=j.min,h=j.max;g+j.step<=j.low;)g+=j.step;for(;h-j.step>=j.high;)h-=j.step;for(j.min=g,j.max=h,j.range=j.max-j.min,j.values=[],f=j.min;f<=j.max;f+=j.step)j.values.push(c.roundWithPrecision(f));return j},c.polarToCartesian=function(a,b,c,d){var e=(d-90)*Math.PI/180;return{x:a+c*Math.cos(e),y:b+c*Math.sin(e)}},c.createChartRect=function(a,b,d){var e=!(!b.axisX&&!b.axisY),f=e?b.axisY.offset:0,g=e?b.axisX.offset:0,h=a.width()||c.stripUnit(b.width)||0,i=a.height()||c.stripUnit(b.height)||0,j=c.normalizePadding(b.chartPadding,d);h=Math.max(h,f+j.left+j.right),i=Math.max(i,g+j.top+j.bottom);var k={padding:j,width:function(){return this.x2-this.x1},height:function(){return this.y1-this.y2}};return e?("start"===b.axisX.position?(k.y2=j.top+g,k.y1=Math.max(i-j.bottom,k.y2+1)):(k.y2=j.top,k.y1=Math.max(i-j.bottom-g,k.y2+1)),"start"===b.axisY.position?(k.x1=j.left+f,k.x2=Math.max(h-j.right,k.x1+1)):(k.x1=j.left,k.x2=Math.max(h-j.right-f,k.x1+1))):(k.x1=j.left,k.x2=Math.max(h-j.right,k.x1+1),k.y2=j.top,k.y1=Math.max(i-j.bottom,k.y2+1)),k},c.createGrid=function(a,b,d,e,f,g,h,i){var j={};j[d.units.pos+"1"]=a,j[d.units.pos+"2"]=a,j[d.counterUnits.pos+"1"]=e,j[d.counterUnits.pos+"2"]=e+f;var k=g.elem("line",j,h.join(" "));i.emit("draw",c.extend({type:"grid",axis:d,index:b,group:g,element:k},j))},c.createLabel=function(a,b,d,e,f,g,h,i,j,k,l){var m,n={};if(n[f.units.pos]=a+h[f.units.pos],n[f.counterUnits.pos]=h[f.counterUnits.pos],n[f.units.len]=b,n[f.counterUnits.len]=g-10,k){var o='<span class="'+j.join(" ")+'" style="'+f.units.len+": "+Math.round(n[f.units.len])+"px; "+f.counterUnits.len+": "+Math.round(n[f.counterUnits.len])+'px">'+e[d]+"</span>";m=i.foreignObject(o,c.extend({style:"overflow: visible;"},n))}else m=i.elem("text",n,j.join(" ")).text(e[d]);l.emit("draw",c.extend({type:"label",axis:f,index:d,group:i,element:m,text:e[d]},n))},c.getSeriesOption=function(a,b,c){if(a.name&&b.series&&b.series[a.name]){var d=b.series[a.name];return d.hasOwnProperty(c)?d[c]:b[c]}return b[c]},c.optionsProvider=function(b,d,e){function f(b){var f=h;if(h=c.extend({},j),d)for(i=0;i<d.length;i++){var g=a.matchMedia(d[i][0]);g.matches&&(h=c.extend(h,d[i][1]))}e&&!b&&e.emit("optionsChanged",{previousOptions:f,currentOptions:h})}function g(){k.forEach(function(a){a.removeListener(f)})}var h,i,j=c.extend({},b),k=[];if(!a.matchMedia)throw"window.matchMedia not found! Make sure you're using a polyfill.";if(d)for(i=0;i<d.length;i++){var l=a.matchMedia(d[i][0]);l.addListener(f),k.push(l)}return f(!0),{removeMediaQueryListeners:g,getCurrentOptions:function(){return c.extend({},h)}}}}(window,document,a),function(a,b,c){"use strict";c.Interpolation={},c.Interpolation.none=function(){return function(a,b){for(var d=new c.Svg.Path,e=!0,f=1;f<a.length;f+=2){var g=b[(f-1)/2];void 0===g.value?e=!0:e?(d.move(a[f-1],a[f],!1,g),e=!1):d.line(a[f-1],a[f],!1,g)}return d}},c.Interpolation.simple=function(a){var b={divisor:2};a=c.extend({},b,a);var d=1/Math.max(1,a.divisor);return function(a,b){for(var e=new c.Svg.Path,f=!0,g=2;g<a.length;g+=2){var h=a[g-2],i=a[g-1],j=a[g],k=a[g+1],l=(j-h)*d,m=b[g/2-1],n=b[g/2];void 0===m.value?f=!0:(f&&e.move(h,i,!1,m),void 0!==n.value&&(e.curve(h+l,i,j-l,k,j,k,!1,n),f=!1))}return e}},c.Interpolation.cardinal=function(a){function b(a,b){for(var c=[],d=!0,e=0;e<a.length;e+=2)void 0===b[e/2].value?d=!0:(d&&(c.push({pathCoordinates:[],valueData:[]}),d=!1),c[c.length-1].pathCoordinates.push(a[e],a[e+1]),c[c.length-1].valueData.push(b[e/2]));return c}var d={tension:1};a=c.extend({},d,a);var e=Math.min(1,Math.max(0,a.tension)),f=1-e;return function g(a,d){var h=b(a,d);if(h.length>1){var i=[];return h.forEach(function(a){i.push(g(a.pathCoordinates,a.valueData))}),c.Svg.Path.join(i)}if(a=h[0].pathCoordinates,d=h[0].valueData,a.length<=4)return c.Interpolation.none()(a,d);for(var j,k=(new c.Svg.Path).move(a[0],a[1],!1,d[0]),l=0,m=a.length;m-2*!j>l;l+=2){var n=[{x:+a[l-2],y:+a[l-1]},{x:+a[l],y:+a[l+1]},{x:+a[l+2],y:+a[l+3]},{x:+a[l+4],y:+a[l+5]}];j?l?m-4===l?n[3]={x:+a[0],y:+a[1]}:m-2===l&&(n[2]={x:+a[0],y:+a[1]},n[3]={x:+a[2],y:+a[3]}):n[0]={x:+a[m-2],y:+a[m-1]}:m-4===l?n[3]=n[2]:l||(n[0]={x:+a[l],y:+a[l+1]}),k.curve(e*(-n[0].x+6*n[1].x+n[2].x)/6+f*n[2].x,e*(-n[0].y+6*n[1].y+n[2].y)/6+f*n[2].y,e*(n[1].x+6*n[2].x-n[3].x)/6+f*n[2].x,e*(n[1].y+6*n[2].y-n[3].y)/6+f*n[2].y,n[2].x,n[2].y,!1,d[(l+2)/2])}return k}},c.Interpolation.step=function(a){var b={postpone:!0};return a=c.extend({},b,a),function(b,d){for(var e=new c.Svg.Path,f=!0,g=2;g<b.length;g+=2){var h=b[g-2],i=b[g-1],j=b[g],k=b[g+1],l=d[g/2-1],m=d[g/2];void 0===l.value?f=!0:(f&&e.move(h,i,!1,l),void 0!==m.value&&(a.postpone?e.line(j,i,!1,l):e.line(h,k,!1,m),e.line(j,k,!1,m),f=!1))}return e}}}(window,document,a),function(a,b,c){"use strict";c.EventEmitter=function(){function a(a,b){d[a]=d[a]||[],d[a].push(b)}function b(a,b){d[a]&&(b?(d[a].splice(d[a].indexOf(b),1),0===d[a].length&&delete d[a]):delete d[a])}function c(a,b){d[a]&&d[a].forEach(function(a){a(b)}),d["*"]&&d["*"].forEach(function(c){c(a,b)})}var d=[];return{addEventHandler:a,removeEventHandler:b,emit:c}}}(window,document,a),function(a,b,c){"use strict";function d(a){var b=[];if(a.length)for(var c=0;c<a.length;c++)b.push(a[c]);return b}function e(a,b){var d=b||this.prototype||c.Class,e=Object.create(d);c.Class.cloneDefinitions(e,a);var f=function(){var a,b=e.constructor||function(){};return a=this===c?Object.create(e):this,b.apply(a,Array.prototype.slice.call(arguments,0)),a};return f.prototype=e,f["super"]=d,f.extend=this.extend,f}function f(){var a=d(arguments),b=a[0];return a.splice(1,a.length-1).forEach(function(a){Object.getOwnPropertyNames(a).forEach(function(c){delete b[c],Object.defineProperty(b,c,Object.getOwnPropertyDescriptor(a,c))})}),b}c.Class={extend:e,cloneDefinitions:f}}(window,document,a),function(a,b,c){"use strict";function d(a,b,d){return a&&(this.data=a,this.eventEmitter.emit("data",{type:"update",data:this.data})),b&&(this.options=c.extend({},d?this.options:this.defaultOptions,b),this.initializeTimeoutId||(this.optionsProvider.removeMediaQueryListeners(),this.optionsProvider=c.optionsProvider(this.options,this.responsiveOptions,this.eventEmitter))),this.initializeTimeoutId||this.createChart(this.optionsProvider.getCurrentOptions()),this}function e(){return this.initializeTimeoutId?a.clearTimeout(this.initializeTimeoutId):(a.removeEventListener("resize",this.resizeListener),this.optionsProvider.removeMediaQueryListeners()),this}function f(a,b){return this.eventEmitter.addEventHandler(a,b),this}function g(a,b){return this.eventEmitter.removeEventHandler(a,b),this}function h(){a.addEventListener("resize",this.resizeListener),this.optionsProvider=c.optionsProvider(this.options,this.responsiveOptions,this.eventEmitter),this.eventEmitter.addEventHandler("optionsChanged",function(){this.update()}.bind(this)),this.options.plugins&&this.options.plugins.forEach(function(a){a instanceof Array?a[0](this,a[1]):a(this)}.bind(this)),this.eventEmitter.emit("data",{type:"initial",data:this.data}),this.createChart(this.optionsProvider.getCurrentOptions()),this.initializeTimeoutId=void 0}function i(a,b,d,e,f){this.container=c.querySelector(a),this.data=b,this.defaultOptions=d,this.options=e,this.responsiveOptions=f,this.eventEmitter=c.EventEmitter(),this.supportsForeignObject=c.Svg.isSupported("Extensibility"),this.supportsAnimations=c.Svg.isSupported("AnimationEventsAttribute"),this.resizeListener=function(){this.update()}.bind(this),this.container&&(this.container.__chartist__&&this.container.__chartist__.detach(),this.container.__chartist__=this),this.initializeTimeoutId=setTimeout(h.bind(this),0)}c.Base=c.Class.extend({constructor:i,optionsProvider:void 0,container:void 0,svg:void 0,eventEmitter:void 0,createChart:function(){throw new Error("Base chart type can't be instantiated!")},update:d,detach:e,on:f,off:g,version:c.version,supportsForeignObject:!1})}(window,document,a),function(a,b,c){"use strict";function d(a,d,e,f,g){a instanceof Element?this._node=a:(this._node=b.createElementNS(z,a),"svg"===a&&this._node.setAttributeNS(A,c.xmlNs.qualifiedName,c.xmlNs.uri)),d&&this.attr(d),e&&this.addClass(e),f&&(g&&f._node.firstChild?f._node.insertBefore(this._node,f._node.firstChild):f._node.appendChild(this._node))}function e(a,b){return"string"==typeof a?b?this._node.getAttributeNS(b,a):this._node.getAttribute(a):(Object.keys(a).forEach(function(d){void 0!==a[d]&&(b?this._node.setAttributeNS(b,[c.xmlNs.prefix,":",d].join(""),a[d]):this._node.setAttribute(d,a[d]))}.bind(this)),this)}function f(a,b,d,e){return new c.Svg(a,b,d,this,e)}function g(){return this._node.parentNode instanceof SVGElement?new c.Svg(this._node.parentNode):null}function h(){for(var a=this._node;"svg"!==a.nodeName;)a=a.parentNode;return new c.Svg(a)}function i(a){var b=this._node.querySelector(a);return b?new c.Svg(b):null}function j(a){var b=this._node.querySelectorAll(a);return b.length?new c.Svg.List(b):null}function k(a,c,d,e){if("string"==typeof a){var f=b.createElement("div");f.innerHTML=a,a=f.firstChild}a.setAttribute("xmlns",B);var g=this.elem("foreignObject",c,d,e);return g._node.appendChild(a),g}function l(a){return this._node.appendChild(b.createTextNode(a)),this}function m(){for(;this._node.firstChild;)this._node.removeChild(this._node.firstChild);return this}function n(){return this._node.parentNode.removeChild(this._node),this.parent()}function o(a){return this._node.parentNode.replaceChild(a._node,this._node),a}function p(a,b){return b&&this._node.firstChild?this._node.insertBefore(a._node,this._node.firstChild):this._node.appendChild(a._node),this}function q(){return this._node.getAttribute("class")?this._node.getAttribute("class").trim().split(/\s+/):[]}function r(a){return this._node.setAttribute("class",this.classes(this._node).concat(a.trim().split(/\s+/)).filter(function(a,b,c){return c.indexOf(a)===b}).join(" ")),this}function s(a){var b=a.trim().split(/\s+/);return this._node.setAttribute("class",this.classes(this._node).filter(function(a){return-1===b.indexOf(a)}).join(" ")),this}function t(){return this._node.setAttribute("class",""),this}function u(a,b){try{return a.getBBox()[b]}catch(c){}return 0}function v(){return this._node.clientHeight||Math.round(u(this._node,"height"))||this._node.parentNode.clientHeight}function w(){return this._node.clientWidth||Math.round(u(this._node,"width"))||this._node.parentNode.clientWidth}function x(a,b,d){return void 0===b&&(b=!0),Object.keys(a).forEach(function(e){function f(a,b){var f,g,h,i={};a.easing&&(h=a.easing instanceof Array?a.easing:c.Svg.Easing[a.easing],delete a.easing),a.begin=c.ensureUnit(a.begin,"ms"),a.dur=c.ensureUnit(a.dur,"ms"),h&&(a.calcMode="spline",a.keySplines=h.join(" "),a.keyTimes="0;1"),b&&(a.fill="freeze",i[e]=a.from,this.attr(i),g=c.stripUnit(a.begin||0),a.begin="indefinite"),f=this.elem("animate",c.extend({attributeName:e},a)),b&&setTimeout(function(){try{f._node.beginElement()}catch(b){i[e]=a.to,this.attr(i),f.remove()}}.bind(this),g),d&&f._node.addEventListener("beginEvent",function(){d.emit("animationBegin",{element:this,animate:f._node,params:a})}.bind(this)),f._node.addEventListener("endEvent",function(){d&&d.emit("animationEnd",{element:this,animate:f._node,params:a}),b&&(i[e]=a.to,this.attr(i),f.remove())}.bind(this))}a[e]instanceof Array?a[e].forEach(function(a){f.bind(this)(a,!1)}.bind(this)):f.bind(this)(a[e],b)}.bind(this)),this}function y(a){var b=this;this.svgElements=[];for(var d=0;d<a.length;d++)this.svgElements.push(new c.Svg(a[d]));Object.keys(c.Svg.prototype).filter(function(a){return-1===["constructor","parent","querySelector","querySelectorAll","replace","append","classes","height","width"].indexOf(a)}).forEach(function(a){b[a]=function(){var d=Array.prototype.slice.call(arguments,0);return b.svgElements.forEach(function(b){c.Svg.prototype[a].apply(b,d)}),b}})}var z="http://www.w3.org/2000/svg",A="http://www.w3.org/2000/xmlns/",B="http://www.w3.org/1999/xhtml";c.xmlNs={qualifiedName:"xmlns:ct",prefix:"ct",uri:"http://gionkunz.github.com/chartist-js/ct"},c.Svg=c.Class.extend({constructor:d,attr:e,elem:f,parent:g,root:h,querySelector:i,querySelectorAll:j,foreignObject:k,text:l,empty:m,remove:n,replace:o,append:p,classes:q,addClass:r,removeClass:s,removeAllClasses:t,height:v,width:w,animate:x}),c.Svg.isSupported=function(a){return b.implementation.hasFeature("http://www.w3.org/TR/SVG11/feature#"+a,"1.1")};var C={easeInSine:[.47,0,.745,.715],easeOutSine:[.39,.575,.565,1],easeInOutSine:[.445,.05,.55,.95],easeInQuad:[.55,.085,.68,.53],easeOutQuad:[.25,.46,.45,.94],easeInOutQuad:[.455,.03,.515,.955],easeInCubic:[.55,.055,.675,.19],easeOutCubic:[.215,.61,.355,1],easeInOutCubic:[.645,.045,.355,1],easeInQuart:[.895,.03,.685,.22],easeOutQuart:[.165,.84,.44,1],easeInOutQuart:[.77,0,.175,1],easeInQuint:[.755,.05,.855,.06],easeOutQuint:[.23,1,.32,1],easeInOutQuint:[.86,0,.07,1],easeInExpo:[.95,.05,.795,.035],easeOutExpo:[.19,1,.22,1],easeInOutExpo:[1,0,0,1],easeInCirc:[.6,.04,.98,.335],easeOutCirc:[.075,.82,.165,1],easeInOutCirc:[.785,.135,.15,.86],easeInBack:[.6,-.28,.735,.045],easeOutBack:[.175,.885,.32,1.275],easeInOutBack:[.68,-.55,.265,1.55]};c.Svg.Easing=C,c.Svg.List=c.Class.extend({constructor:y})}(window,document,a),function(a,b,c){"use strict";function d(a,b,d,e,f,g){var h=c.extend({command:f?a.toLowerCase():a.toUpperCase()},b,g?{data:g}:{});d.splice(e,0,h)}function e(a,b){a.forEach(function(c,d){u[c.command.toLowerCase()].forEach(function(e,f){b(c,e,d,f,a)})})}function f(a,b){this.pathElements=[],this.pos=0,this.close=a,this.options=c.extend({},v,b)}function g(a){return void 0!==a?(this.pos=Math.max(0,Math.min(this.pathElements.length,a)),this):this.pos}function h(a){return this.pathElements.splice(this.pos,a),this}function i(a,b,c,e){return d("M",{x:+a,y:+b},this.pathElements,this.pos++,c,e),this}function j(a,b,c,e){return d("L",{x:+a,y:+b},this.pathElements,this.pos++,c,e),this}function k(a,b,c,e,f,g,h,i){return d("C",{x1:+a,y1:+b,x2:+c,y2:+e,x:+f,y:+g},this.pathElements,this.pos++,h,i),this}function l(a,b,c,e,f,g,h,i,j){return d("A",{rx:+a,ry:+b,xAr:+c,lAf:+e,sf:+f,x:+g,y:+h},this.pathElements,this.pos++,i,j),this}function m(a){var b=a.replace(/([A-Za-z])([0-9])/g,"$1 $2").replace(/([0-9])([A-Za-z])/g,"$1 $2").split(/[\s,]+/).reduce(function(a,b){return b.match(/[A-Za-z]/)&&a.push([]),a[a.length-1].push(b),a},[]);"Z"===b[b.length-1][0].toUpperCase()&&b.pop();var d=b.map(function(a){var b=a.shift(),d=u[b.toLowerCase()];return c.extend({command:b},d.reduce(function(b,c,d){return b[c]=+a[d],b},{}))}),e=[this.pos,0];return Array.prototype.push.apply(e,d),Array.prototype.splice.apply(this.pathElements,e),this.pos+=d.length,this}function n(){var a=Math.pow(10,this.options.accuracy);return this.pathElements.reduce(function(b,c){var d=u[c.command.toLowerCase()].map(function(b){return this.options.accuracy?Math.round(c[b]*a)/a:c[b]}.bind(this));return b+c.command+d.join(",")}.bind(this),"")+(this.close?"Z":"")}function o(a,b){return e(this.pathElements,function(c,d){c[d]*="x"===d[0]?a:b}),this}function p(a,b){return e(this.pathElements,function(c,d){c[d]+="x"===d[0]?a:b}),this}function q(a){return e(this.pathElements,function(b,c,d,e,f){var g=a(b,c,d,e,f);(g||0===g)&&(b[c]=g)}),this}function r(a){var b=new c.Svg.Path(a||this.close);return b.pos=this.pos,b.pathElements=this.pathElements.slice().map(function(a){return c.extend({},a)}),b.options=c.extend({},this.options),b}function s(a){var b=[new c.Svg.Path];return this.pathElements.forEach(function(d){d.command===a.toUpperCase()&&0!==b[b.length-1].pathElements.length&&b.push(new c.Svg.Path),b[b.length-1].pathElements.push(d)}),b}function t(a,b,d){for(var e=new c.Svg.Path(b,d),f=0;f<a.length;f++)for(var g=a[f],h=0;h<g.pathElements.length;h++)e.pathElements.push(g.pathElements[h]);return e}var u={m:["x","y"],l:["x","y"],c:["x1","y1","x2","y2","x","y"],a:["rx","ry","xAr","lAf","sf","x","y"]},v={accuracy:3};c.Svg.Path=c.Class.extend({constructor:f,position:g,remove:h,move:i,line:j,curve:k,arc:l,scale:o,translate:p,transform:q,parse:m,stringify:n,clone:r,splitByCommand:s}),c.Svg.Path.elementDescriptions=u,c.Svg.Path.join=t}(window,document,a),function(a,b,c){"use strict";function d(a,b,c,d){this.units=a,this.counterUnits=a===f.x?f.y:f.x,this.chartRect=b,this.axisLength=b[a.rectEnd]-b[a.rectStart],this.gridOffset=b[a.rectOffset],this.ticks=c,this.options=d}function e(a,b,d,e,f){var g=e["axis"+this.units.pos.toUpperCase()],h=this.ticks.map(this.projectValue.bind(this)),i=this.ticks.map(g.labelInterpolationFnc);h.forEach(function(j,k){var l,m={x:0,y:0};l=h[k+1]?h[k+1]-j:Math.max(this.axisLength-j,30),(i[k]||0===i[k])&&("x"===this.units.pos?(j=this.chartRect.x1+j,m.x=e.axisX.labelOffset.x,"start"===e.axisX.position?m.y=this.chartRect.padding.top+e.axisX.labelOffset.y+(d?5:20):m.y=this.chartRect.y1+e.axisX.labelOffset.y+(d?5:20)):(j=this.chartRect.y1-j,m.y=e.axisY.labelOffset.y-(d?l:0),"start"===e.axisY.position?m.x=d?this.chartRect.padding.left+e.axisY.labelOffset.x:this.chartRect.x1-10:m.x=this.chartRect.x2+e.axisY.labelOffset.x+10),g.showGrid&&c.createGrid(j,k,this,this.gridOffset,this.chartRect[this.counterUnits.len](),a,[e.classNames.grid,e.classNames[this.units.dir]],f),g.showLabel&&c.createLabel(j,l,k,i,this,g.offset,m,b,[e.classNames.label,e.classNames[this.units.dir],e.classNames[g.position]],d,f))}.bind(this))}var f={x:{pos:"x",len:"width",dir:"horizontal",rectStart:"x1",rectEnd:"x2",rectOffset:"y2"},y:{pos:"y",len:"height",dir:"vertical",rectStart:"y2",rectEnd:"y1",rectOffset:"x1"}};c.Axis=c.Class.extend({constructor:d,createGridAndLabels:e,projectValue:function(a,b,c){throw new Error("Base axis can't be instantiated!")}}),c.Axis.units=f}(window,document,a),function(a,b,c){"use strict";function d(a,b,d,e){var f=e.highLow||c.getHighLow(b.normalized,e,a.pos);this.bounds=c.getBounds(d[a.rectEnd]-d[a.rectStart],f,e.scaleMinSpace||20,e.onlyInteger),this.range={min:this.bounds.min,max:this.bounds.max},c.AutoScaleAxis["super"].constructor.call(this,a,d,this.bounds.values,e)}function e(a){return this.axisLength*(+c.getMultiValue(a,this.units.pos)-this.bounds.min)/this.bounds.range}c.AutoScaleAxis=c.Axis.extend({constructor:d,projectValue:e})}(window,document,a),function(a,b,c){"use strict";function d(a,b,d,e){var f=e.highLow||c.getHighLow(b.normalized,e,a.pos);this.divisor=e.divisor||1,this.ticks=e.ticks||c.times(this.divisor).map(function(a,b){return f.low+(f.high-f.low)/this.divisor*b}.bind(this)),this.range={min:f.low,max:f.high},c.FixedScaleAxis["super"].constructor.call(this,a,d,this.ticks,e),this.stepLength=this.axisLength/this.divisor}function e(a){return this.axisLength*(+c.getMultiValue(a,this.units.pos)-this.range.min)/(this.range.max-this.range.min)}c.FixedScaleAxis=c.Axis.extend({constructor:d,projectValue:e})}(window,document,a),function(a,b,c){"use strict";function d(a,b,d,e){c.StepAxis["super"].constructor.call(this,a,d,e.ticks,e),this.stepLength=this.axisLength/(e.ticks.length-(e.stretch?1:0))}function e(a,b){return this.stepLength*b}c.StepAxis=c.Axis.extend({constructor:d,projectValue:e})}(window,document,a),function(a,b,c){"use strict";function d(a){var b={raw:this.data,normalized:c.getDataArray(this.data,a.reverseData,!0)};this.svg=c.createSvg(this.container,a.width,a.height,a.classNames.chart);var d,e,g=this.svg.elem("g").addClass(a.classNames.gridGroup),h=this.svg.elem("g"),i=this.svg.elem("g").addClass(a.classNames.labelGroup),j=c.createChartRect(this.svg,a,f.padding);d=void 0===a.axisX.type?new c.StepAxis(c.Axis.units.x,b,j,c.extend({},a.axisX,{ticks:b.raw.labels,stretch:a.fullWidth})):a.axisX.type.call(c,c.Axis.units.x,b,j,a.axisX),e=void 0===a.axisY.type?new c.AutoScaleAxis(c.Axis.units.y,b,j,c.extend({},a.axisY,{high:c.isNum(a.high)?a.high:a.axisY.high,low:c.isNum(a.low)?a.low:a.axisY.low})):a.axisY.type.call(c,c.Axis.units.y,b,j,a.axisY),d.createGridAndLabels(g,i,this.supportsForeignObject,a,this.eventEmitter),e.createGridAndLabels(g,i,this.supportsForeignObject,a,this.eventEmitter),b.raw.series.forEach(function(f,g){var i=h.elem("g");i.attr({"series-name":f.name,meta:c.serialize(f.meta)},c.xmlNs.uri),i.addClass([a.classNames.series,f.className||a.classNames.series+"-"+c.alphaNumerate(g)].join(" "));var k=[],l=[];b.normalized[g].forEach(function(a,h){var i={x:j.x1+d.projectValue(a,h,b.normalized[g]),y:j.y1-e.projectValue(a,h,b.normalized[g])};k.push(i.x,i.y),l.push({value:a,valueIndex:h,meta:c.getMetaData(f,h)})}.bind(this));var m={lineSmooth:c.getSeriesOption(f,a,"lineSmooth"),showPoint:c.getSeriesOption(f,a,"showPoint"),showLine:c.getSeriesOption(f,a,"showLine"),showArea:c.getSeriesOption(f,a,"showArea"),areaBase:c.getSeriesOption(f,a,"areaBase")},n="function"==typeof m.lineSmooth?m.lineSmooth:m.lineSmooth?c.Interpolation.cardinal():c.Interpolation.none(),o=n(k,l);if(m.showPoint&&o.pathElements.forEach(function(b){var h=i.elem("line",{x1:b.x,y1:b.y,x2:b.x+.01,y2:b.y},a.classNames.point).attr({value:[b.data.value.x,b.data.value.y].filter(function(a){return a}).join(","),meta:b.data.meta},c.xmlNs.uri);this.eventEmitter.emit("draw",{type:"point",value:b.data.value,index:b.data.valueIndex,meta:b.data.meta,series:f,seriesIndex:g,axisX:d,axisY:e,group:i,element:h,x:b.x,y:b.y})}.bind(this)),m.showLine){var p=i.elem("path",{d:o.stringify()},a.classNames.line,!0);this.eventEmitter.emit("draw",{type:"line",values:b.normalized[g],path:o.clone(),chartRect:j,index:g,series:f,seriesIndex:g,axisX:d,axisY:e,group:i,element:p})}if(m.showArea&&e.range){var q=Math.max(Math.min(m.areaBase,e.range.max),e.range.min),r=j.y1-e.projectValue(q);o.splitByCommand("M").filter(function(a){return a.pathElements.length>1}).map(function(a){var b=a.pathElements[0],c=a.pathElements[a.pathElements.length-1];return a.clone(!0).position(0).remove(1).move(b.x,r).line(b.x,b.y).position(a.pathElements.length+1).line(c.x,r)}).forEach(function(h){var k=i.elem("path",{d:h.stringify()},a.classNames.area,!0).attr({values:b.normalized[g]},c.xmlNs.uri);this.eventEmitter.emit("draw",{type:"area",values:b.normalized[g],path:h.clone(),series:f,seriesIndex:g,axisX:d,axisY:e,chartRect:j,index:g,group:i,element:k})}.bind(this))}}.bind(this)),this.eventEmitter.emit("created",{bounds:e.bounds,chartRect:j,axisX:d,axisY:e,svg:this.svg,options:a})}function e(a,b,d,e){c.Line["super"].constructor.call(this,a,b,f,c.extend({},f,d),e)}var f={axisX:{offset:30,position:"end",labelOffset:{x:0,y:0},showLabel:!0,showGrid:!0,labelInterpolationFnc:c.noop,type:void 0},axisY:{offset:40,position:"start",labelOffset:{x:0,y:0},showLabel:!0,showGrid:!0,labelInterpolationFnc:c.noop,type:void 0,scaleMinSpace:20,onlyInteger:!1},width:void 0,height:void 0,showLine:!0,showPoint:!0,showArea:!1,areaBase:0,lineSmooth:!0,low:void 0,high:void 0,chartPadding:{top:15,right:15,bottom:5,left:10},fullWidth:!1,reverseData:!1,classNames:{chart:"ct-chart-line",label:"ct-label",labelGroup:"ct-labels",series:"ct-series",line:"ct-line",point:"ct-point",area:"ct-area",grid:"ct-grid",gridGroup:"ct-grids",vertical:"ct-vertical",horizontal:"ct-horizontal",start:"ct-start",end:"ct-end"}};c.Line=c.Base.extend({constructor:e,createChart:d})}(window,document,a),function(a,b,c){"use strict";function d(a){var b,d={raw:this.data,normalized:a.distributeSeries?c.getDataArray(this.data,a.reverseData,a.horizontalBars?"x":"y").map(function(a){return[a]}):c.getDataArray(this.data,a.reverseData,a.horizontalBars?"x":"y")};this.svg=c.createSvg(this.container,a.width,a.height,a.classNames.chart+(a.horizontalBars?" "+a.classNames.horizontalBars:""));var e=this.svg.elem("g").addClass(a.classNames.gridGroup),g=this.svg.elem("g"),h=this.svg.elem("g").addClass(a.classNames.labelGroup);if(a.stackBars){var i=c.serialMap(d.normalized,function(){return Array.prototype.slice.call(arguments).map(function(a){return a}).reduce(function(a,b){return{x:a.x+b.x||0,y:a.y+b.y||0}},{x:0,y:0})});b=c.getHighLow([i],c.extend({},a,{referenceValue:0}),a.horizontalBars?"x":"y")}else b=c.getHighLow(d.normalized,c.extend({},a,{referenceValue:0}),a.horizontalBars?"x":"y");b.high=+a.high||(0===a.high?0:b.high),b.low=+a.low||(0===a.low?0:b.low);var j,k,l,m,n,o=c.createChartRect(this.svg,a,f.padding);k=a.distributeSeries&&a.stackBars?d.raw.labels.slice(0,1):d.raw.labels,a.horizontalBars?(j=m=void 0===a.axisX.type?new c.AutoScaleAxis(c.Axis.units.x,d,o,c.extend({},a.axisX,{highLow:b,referenceValue:0})):a.axisX.type.call(c,c.Axis.units.x,d,o,c.extend({},a.axisX,{highLow:b,referenceValue:0})),l=n=void 0===a.axisY.type?new c.StepAxis(c.Axis.units.y,d,o,{ticks:k}):a.axisY.type.call(c,c.Axis.units.y,d,o,a.axisY)):(l=m=void 0===a.axisX.type?new c.StepAxis(c.Axis.units.x,d,o,{ticks:k}):a.axisX.type.call(c,c.Axis.units.x,d,o,a.axisX),j=n=void 0===a.axisY.type?new c.AutoScaleAxis(c.Axis.units.y,d,o,c.extend({},a.axisY,{highLow:b,referenceValue:0})):a.axisY.type.call(c,c.Axis.units.y,d,o,c.extend({},a.axisY,{highLow:b,referenceValue:0})));var p=a.horizontalBars?o.x1+j.projectValue(0):o.y1-j.projectValue(0),q=[];l.createGridAndLabels(e,h,this.supportsForeignObject,a,this.eventEmitter),j.createGridAndLabels(e,h,this.supportsForeignObject,a,this.eventEmitter),d.raw.series.forEach(function(b,e){var f,h,i=e-(d.raw.series.length-1)/2;f=a.distributeSeries&&!a.stackBars?l.axisLength/d.normalized.length/2:a.distributeSeries&&a.stackBars?l.axisLength/2:l.axisLength/d.normalized[e].length/2,h=g.elem("g"),h.attr({"series-name":b.name,meta:c.serialize(b.meta)},c.xmlNs.uri),h.addClass([a.classNames.series,b.className||a.classNames.series+"-"+c.alphaNumerate(e)].join(" ")),d.normalized[e].forEach(function(g,k){var r,s,t,u;if(u=a.distributeSeries&&!a.stackBars?e:a.distributeSeries&&a.stackBars?0:k,r=a.horizontalBars?{x:o.x1+j.projectValue(g&&g.x?g.x:0,k,d.normalized[e]),y:o.y1-l.projectValue(g&&g.y?g.y:0,u,d.normalized[e])}:{x:o.x1+l.projectValue(g&&g.x?g.x:0,u,d.normalized[e]),y:o.y1-j.projectValue(g&&g.y?g.y:0,k,d.normalized[e])},l instanceof c.StepAxis&&(l.options.stretch||(r[l.units.pos]+=f*(a.horizontalBars?-1:1)),r[l.units.pos]+=a.stackBars||a.distributeSeries?0:i*a.seriesBarDistance*(a.horizontalBars?-1:1)),t=q[k]||p,q[k]=t-(p-r[l.counterUnits.pos]),void 0!==g){var v={};v[l.units.pos+"1"]=r[l.units.pos],v[l.units.pos+"2"]=r[l.units.pos],v[l.counterUnits.pos+"1"]=a.stackBars?t:p,v[l.counterUnits.pos+"2"]=a.stackBars?q[k]:r[l.counterUnits.pos],v.x1=Math.min(Math.max(v.x1,o.x1),o.x2),v.x2=Math.min(Math.max(v.x2,o.x1),o.x2),v.y1=Math.min(Math.max(v.y1,o.y2),o.y1),v.y2=Math.min(Math.max(v.y2,o.y2),o.y1),s=h.elem("line",v,a.classNames.bar).attr({value:[g.x,g.y].filter(function(a){return a}).join(","),meta:c.getMetaData(b,k)},c.xmlNs.uri),
|
8
|
+
this.eventEmitter.emit("draw",c.extend({type:"bar",value:g,index:k,meta:c.getMetaData(b,k),series:b,seriesIndex:e,axisX:m,axisY:n,chartRect:o,group:h,element:s},v))}}.bind(this))}.bind(this)),this.eventEmitter.emit("created",{bounds:j.bounds,chartRect:o,axisX:m,axisY:n,svg:this.svg,options:a})}function e(a,b,d,e){c.Bar["super"].constructor.call(this,a,b,f,c.extend({},f,d),e)}var f={axisX:{offset:30,position:"end",labelOffset:{x:0,y:0},showLabel:!0,showGrid:!0,labelInterpolationFnc:c.noop,scaleMinSpace:30,onlyInteger:!1},axisY:{offset:40,position:"start",labelOffset:{x:0,y:0},showLabel:!0,showGrid:!0,labelInterpolationFnc:c.noop,scaleMinSpace:20,onlyInteger:!1},width:void 0,height:void 0,high:void 0,low:void 0,onlyInteger:!1,chartPadding:{top:15,right:15,bottom:5,left:10},seriesBarDistance:15,stackBars:!1,horizontalBars:!1,distributeSeries:!1,reverseData:!1,classNames:{chart:"ct-chart-bar",horizontalBars:"ct-horizontal-bars",label:"ct-label",labelGroup:"ct-labels",series:"ct-series",bar:"ct-bar",grid:"ct-grid",gridGroup:"ct-grids",vertical:"ct-vertical",horizontal:"ct-horizontal",start:"ct-start",end:"ct-end"}};c.Bar=c.Base.extend({constructor:e,createChart:d})}(window,document,a),function(a,b,c){"use strict";function d(a,b,c){var d=b.x>a.x;return d&&"explode"===c||!d&&"implode"===c?"start":d&&"implode"===c||!d&&"explode"===c?"end":"middle"}function e(a){var b,e,f,h,i,j=[],k=a.startAngle,l=c.getDataArray(this.data,a.reverseData);this.svg=c.createSvg(this.container,a.width,a.height,a.donut?a.classNames.chartDonut:a.classNames.chartPie),e=c.createChartRect(this.svg,a,g.padding),f=Math.min(e.width()/2,e.height()/2),i=a.total||l.reduce(function(a,b){return a+b},0),f-=a.donut?a.donutWidth/2:0,h="outside"===a.labelPosition||a.donut?f:"center"===a.labelPosition?0:f/2,h+=a.labelOffset;var m={x:e.x1+e.width()/2,y:e.y2+e.height()/2},n=1===this.data.series.filter(function(a){return a.hasOwnProperty("value")?0!==a.value:0!==a}).length;a.showLabel&&(b=this.svg.elem("g",null,null,!0));for(var o=0;o<this.data.series.length;o++){var p=this.data.series[o];j[o]=this.svg.elem("g",null,null,!0),j[o].attr({"series-name":p.name},c.xmlNs.uri),j[o].addClass([a.classNames.series,p.className||a.classNames.series+"-"+c.alphaNumerate(o)].join(" "));var q=k+l[o]/i*360;q-k===360&&(q-=.01);var r=c.polarToCartesian(m.x,m.y,f,k-(0===o||n?0:.2)),s=c.polarToCartesian(m.x,m.y,f,q),t=new c.Svg.Path(!a.donut).move(s.x,s.y).arc(f,f,0,q-k>180,0,r.x,r.y);a.donut||t.line(m.x,m.y);var u=j[o].elem("path",{d:t.stringify()},a.donut?a.classNames.sliceDonut:a.classNames.slicePie);if(u.attr({value:l[o],meta:c.serialize(p.meta)},c.xmlNs.uri),a.donut&&u.attr({style:"stroke-width: "+ +a.donutWidth+"px"}),this.eventEmitter.emit("draw",{type:"slice",value:l[o],totalDataSum:i,index:o,meta:p.meta,series:p,group:j[o],element:u,path:t.clone(),center:m,radius:f,startAngle:k,endAngle:q}),a.showLabel){var v=c.polarToCartesian(m.x,m.y,h,k+(q-k)/2),w=a.labelInterpolationFnc(this.data.labels?this.data.labels[o]:l[o],o);if(w||0===w){var x=b.elem("text",{dx:v.x,dy:v.y,"text-anchor":d(m,v,a.labelDirection)},a.classNames.label).text(""+w);this.eventEmitter.emit("draw",{type:"label",index:o,group:b,element:x,text:""+w,x:v.x,y:v.y})}}k=q}this.eventEmitter.emit("created",{chartRect:e,svg:this.svg,options:a})}function f(a,b,d,e){c.Pie["super"].constructor.call(this,a,b,g,c.extend({},g,d),e)}var g={width:void 0,height:void 0,chartPadding:5,classNames:{chartPie:"ct-chart-pie",chartDonut:"ct-chart-donut",series:"ct-series",slicePie:"ct-slice-pie",sliceDonut:"ct-slice-donut",label:"ct-label"},startAngle:0,total:void 0,donut:!1,donutWidth:60,showLabel:!0,labelOffset:0,labelPosition:"inside",labelInterpolationFnc:c.noop,labelDirection:"neutral",reverseData:!1};c.Pie=c.Base.extend({constructor:f,createChart:e,determineAnchorPosition:d})}(window,document,a),a});
|
@@ -0,0 +1,731 @@
|
|
1
|
+
type = ['','info','success','warning','danger'];
|
2
|
+
|
3
|
+
|
4
|
+
demo = {
|
5
|
+
initPickColor: function(){
|
6
|
+
$('.pick-class-label').click(function(){
|
7
|
+
var new_class = $(this).attr('new-class');
|
8
|
+
var old_class = $('#display-buttons').attr('data-class');
|
9
|
+
var display_div = $('#display-buttons');
|
10
|
+
if(display_div.length) {
|
11
|
+
var display_buttons = display_div.find('.btn');
|
12
|
+
display_buttons.removeClass(old_class);
|
13
|
+
display_buttons.addClass(new_class);
|
14
|
+
display_div.attr('data-class', new_class);
|
15
|
+
}
|
16
|
+
});
|
17
|
+
},
|
18
|
+
|
19
|
+
initFullScreenGoogleMap: function(){
|
20
|
+
var myLatlng = new google.maps.LatLng(40.748817, -73.985428);
|
21
|
+
var mapOptions = {
|
22
|
+
zoom: 13,
|
23
|
+
center: myLatlng,
|
24
|
+
scrollwheel: false, //we disable de scroll over the map, it is a really annoing when you scroll through page
|
25
|
+
styles: [{"featureType":"water","stylers":[{"saturation":43},{"lightness":-11},{"hue":"#0088ff"}]},{"featureType":"road","elementType":"geometry.fill","stylers":[{"hue":"#ff0000"},{"saturation":-100},{"lightness":99}]},{"featureType":"road","elementType":"geometry.stroke","stylers":[{"color":"#808080"},{"lightness":54}]},{"featureType":"landscape.man_made","elementType":"geometry.fill","stylers":[{"color":"#ece2d9"}]},{"featureType":"poi.park","elementType":"geometry.fill","stylers":[{"color":"#ccdca1"}]},{"featureType":"road","elementType":"labels.text.fill","stylers":[{"color":"#767676"}]},{"featureType":"road","elementType":"labels.text.stroke","stylers":[{"color":"#ffffff"}]},{"featureType":"poi","stylers":[{"visibility":"off"}]},{"featureType":"landscape.natural","elementType":"geometry.fill","stylers":[{"visibility":"on"},{"color":"#b8cb93"}]},{"featureType":"poi.park","stylers":[{"visibility":"on"}]},{"featureType":"poi.sports_complex","stylers":[{"visibility":"on"}]},{"featureType":"poi.medical","stylers":[{"visibility":"on"}]},{"featureType":"poi.business","stylers":[{"visibility":"simplified"}]}]
|
26
|
+
|
27
|
+
}
|
28
|
+
var map = new google.maps.Map(document.getElementById("map"), mapOptions);
|
29
|
+
|
30
|
+
var marker = new google.maps.Marker({
|
31
|
+
position: myLatlng,
|
32
|
+
title:"Hello World!"
|
33
|
+
});
|
34
|
+
|
35
|
+
// To add the marker to the map, call setMap();
|
36
|
+
marker.setMap(map);
|
37
|
+
},
|
38
|
+
|
39
|
+
initCharts: function(){
|
40
|
+
|
41
|
+
/* **************** 24 Hours Performance - single line ******************** */
|
42
|
+
|
43
|
+
var dataPerformance = {
|
44
|
+
labels: ['6pm','9pm','11pm', '2am', '4am', '8am', '2pm', '5pm', '8pm', '11pm', '4am'],
|
45
|
+
series: [
|
46
|
+
[1, 6, 8, 7, 4, 7, 8, 12, 16, 17, 14, 13]
|
47
|
+
]
|
48
|
+
};
|
49
|
+
|
50
|
+
var optionsPerformance = {
|
51
|
+
showPoint: false,
|
52
|
+
lineSmooth: true,
|
53
|
+
height: "260px",
|
54
|
+
axisX: {
|
55
|
+
showGrid: false,
|
56
|
+
showLabel: true
|
57
|
+
},
|
58
|
+
axisY: {
|
59
|
+
offset: 40,
|
60
|
+
},
|
61
|
+
low: 0,
|
62
|
+
high: 16
|
63
|
+
};
|
64
|
+
|
65
|
+
Chartist.Line('#chartPerformance', dataPerformance, optionsPerformance);
|
66
|
+
|
67
|
+
|
68
|
+
|
69
|
+
/* **************** NASDAQ: AAPL - single line with points ******************** */
|
70
|
+
|
71
|
+
var dataStock = {
|
72
|
+
labels: ['\'07','\'08','\'09', '\'10', '\'11', '\'12', '\'13', '\'14', '\'15'],
|
73
|
+
series: [
|
74
|
+
[22.20, 34.90, 42.28, 51.93, 62.21, 80.23, 62.21, 82.12, 102.50, 107.23]
|
75
|
+
]
|
76
|
+
};
|
77
|
+
|
78
|
+
var optionsStock = {
|
79
|
+
lineSmooth: false,
|
80
|
+
height: "260px",
|
81
|
+
axisY: {
|
82
|
+
offset: 40,
|
83
|
+
labelInterpolationFnc: function(value) {
|
84
|
+
return '$' + value;
|
85
|
+
}
|
86
|
+
|
87
|
+
},
|
88
|
+
low: 10,
|
89
|
+
high: 110,
|
90
|
+
classNames: {
|
91
|
+
point: 'ct-point ct-green',
|
92
|
+
line: 'ct-line ct-green'
|
93
|
+
}
|
94
|
+
};
|
95
|
+
|
96
|
+
Chartist.Line('#chartStock', dataStock, optionsStock);
|
97
|
+
|
98
|
+
|
99
|
+
|
100
|
+
/* **************** Users Behaviour - Multiple Lines ******************** */
|
101
|
+
|
102
|
+
|
103
|
+
var dataSales = {
|
104
|
+
labels: ['\'06','\'07','\'08','\'09', '\'10', '\'11', '\'12', '\'13', '\'14','\'15'],
|
105
|
+
series: [
|
106
|
+
[287, 385, 490, 554, 586, 698, 695, 752, 788, 846, 944],
|
107
|
+
[67, 152, 143, 287, 335, 435, 437, 539, 542, 544, 647],
|
108
|
+
[23, 113, 67, 190, 239, 307, 308, 439, 410, 410, 509]
|
109
|
+
]
|
110
|
+
};
|
111
|
+
|
112
|
+
var optionsSales = {
|
113
|
+
lineSmooth: false,
|
114
|
+
axisY: {
|
115
|
+
offset: 40
|
116
|
+
},
|
117
|
+
low: 0,
|
118
|
+
high: 1000
|
119
|
+
};
|
120
|
+
|
121
|
+
|
122
|
+
Chartist.Line('#chartBehaviour', dataSales, optionsSales);
|
123
|
+
|
124
|
+
|
125
|
+
|
126
|
+
/* **************** Public Preferences - Pie Chart ******************** */
|
127
|
+
|
128
|
+
var dataPreferences = {
|
129
|
+
series: [
|
130
|
+
[25, 30, 20, 25]
|
131
|
+
]
|
132
|
+
};
|
133
|
+
|
134
|
+
var optionsPreferences = {
|
135
|
+
donut: true,
|
136
|
+
donutWidth: 40,
|
137
|
+
startAngle: 0,
|
138
|
+
height: "245px",
|
139
|
+
total: 100,
|
140
|
+
showLabel: false,
|
141
|
+
axisX: {
|
142
|
+
showGrid: false
|
143
|
+
}
|
144
|
+
};
|
145
|
+
|
146
|
+
Chartist.Pie('#chartPreferences', dataPreferences, optionsPreferences);
|
147
|
+
|
148
|
+
Chartist.Pie('#chartPreferences', {
|
149
|
+
labels: ['62%','32%','6%'],
|
150
|
+
series: [62, 32, 6]
|
151
|
+
});
|
152
|
+
|
153
|
+
|
154
|
+
/* **************** Views - barchart ******************** */
|
155
|
+
|
156
|
+
var dataViews = {
|
157
|
+
labels: ['Jan', 'Feb', 'Mar', 'Apr', 'Mai', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'],
|
158
|
+
series: [
|
159
|
+
[542, 443, 320, 780, 553, 453, 326, 434, 568, 610, 756, 895]
|
160
|
+
]
|
161
|
+
};
|
162
|
+
|
163
|
+
var optionsViews = {
|
164
|
+
seriesBarDistance: 10,
|
165
|
+
classNames: {
|
166
|
+
bar: 'ct-bar ct-azure'
|
167
|
+
},
|
168
|
+
axisX: {
|
169
|
+
showGrid: false
|
170
|
+
}
|
171
|
+
};
|
172
|
+
|
173
|
+
var responsiveOptionsViews = [
|
174
|
+
['screen and (max-width: 640px)', {
|
175
|
+
seriesBarDistance: 5,
|
176
|
+
axisX: {
|
177
|
+
labelInterpolationFnc: function (value) {
|
178
|
+
return value[0];
|
179
|
+
}
|
180
|
+
}
|
181
|
+
}]
|
182
|
+
];
|
183
|
+
|
184
|
+
Chartist.Bar('#chartViews', dataViews, optionsViews, responsiveOptionsViews);
|
185
|
+
|
186
|
+
|
187
|
+
|
188
|
+
var data = {
|
189
|
+
labels: ['Jan', 'Feb', 'Mar', 'Apr', 'Mai', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'],
|
190
|
+
series: [
|
191
|
+
[542, 443, 320, 780, 553, 453, 326, 434, 568, 610, 756, 895],
|
192
|
+
[412, 243, 280, 580, 453, 353, 300, 364, 368, 410, 636, 695]
|
193
|
+
]
|
194
|
+
};
|
195
|
+
|
196
|
+
var options = {
|
197
|
+
seriesBarDistance: 10,
|
198
|
+
axisX: {
|
199
|
+
showGrid: false
|
200
|
+
},
|
201
|
+
height: "245px"
|
202
|
+
};
|
203
|
+
|
204
|
+
var responsiveOptions = [
|
205
|
+
['screen and (max-width: 640px)', {
|
206
|
+
seriesBarDistance: 5,
|
207
|
+
axisX: {
|
208
|
+
labelInterpolationFnc: function (value) {
|
209
|
+
return value[0];
|
210
|
+
}
|
211
|
+
}
|
212
|
+
}]
|
213
|
+
];
|
214
|
+
|
215
|
+
Chartist.Bar('#chartActivity', data, options, responsiveOptions);
|
216
|
+
|
217
|
+
},
|
218
|
+
|
219
|
+
initDashboardPageCharts: function(){
|
220
|
+
|
221
|
+
|
222
|
+
/* **************** Email Statistics - Pie Chart ******************** */
|
223
|
+
|
224
|
+
var dataPreferences = {
|
225
|
+
series: [
|
226
|
+
[25, 30, 20, 25]
|
227
|
+
]
|
228
|
+
};
|
229
|
+
var optionsPreferences = {
|
230
|
+
donut: true,
|
231
|
+
donutWidth: 40,
|
232
|
+
startAngle: 0,
|
233
|
+
height: "350px",
|
234
|
+
total: 100,
|
235
|
+
showLabel: false,
|
236
|
+
axisX: {
|
237
|
+
showGrid: false
|
238
|
+
}
|
239
|
+
};
|
240
|
+
|
241
|
+
Chartist.Pie('#chartEmail', dataPreferences, optionsPreferences);
|
242
|
+
|
243
|
+
Chartist.Pie('#chartEmail', {
|
244
|
+
labels: ['62%','32%','6%'],
|
245
|
+
series: [62, 32, 6]
|
246
|
+
});
|
247
|
+
|
248
|
+
|
249
|
+
|
250
|
+
/* **************** 2014 Sales - Bar Chart ******************** */
|
251
|
+
|
252
|
+
var data = {
|
253
|
+
labels: ['Jan', 'Feb', 'Mar', 'Apr', 'Mai', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'],
|
254
|
+
series: [
|
255
|
+
[542, 443, 320, 780, 553, 453, 326, 434, 568, 610, 756, 895],
|
256
|
+
[412, 243, 280, 580, 453, 353, 300, 364, 368, 410, 636, 695]
|
257
|
+
]
|
258
|
+
};
|
259
|
+
|
260
|
+
var options = {
|
261
|
+
seriesBarDistance: 10,
|
262
|
+
axisX: {
|
263
|
+
showGrid: false
|
264
|
+
},
|
265
|
+
height: "245px"
|
266
|
+
};
|
267
|
+
|
268
|
+
var responsiveOptions = [
|
269
|
+
['screen and (max-width: 640px)', {
|
270
|
+
seriesBarDistance: 5,
|
271
|
+
axisX: {
|
272
|
+
labelInterpolationFnc: function (value) {
|
273
|
+
return value[0];
|
274
|
+
}
|
275
|
+
}
|
276
|
+
}]
|
277
|
+
];
|
278
|
+
|
279
|
+
Chartist.Bar('#chartActivity', data, options, responsiveOptions);
|
280
|
+
|
281
|
+
|
282
|
+
|
283
|
+
/* **************** Users Behaviour - Line Chart ******************** */
|
284
|
+
|
285
|
+
var dataSales = {
|
286
|
+
labels: ['9:00AM', '12:00AM', '3:00PM', '6:00PM', '9:00PM', '12:00PM', '3:00AM', '6:00AM'],
|
287
|
+
series: [
|
288
|
+
[287, 385, 490, 492, 554, 586, 698, 695, 752, 788, 846, 944],
|
289
|
+
[67, 152, 143, 240, 287, 335, 435, 437, 539, 542, 544, 647],
|
290
|
+
[23, 113, 67, 108, 190, 239, 307, 308, 439, 410, 410, 509]
|
291
|
+
]
|
292
|
+
};
|
293
|
+
|
294
|
+
var optionsSales = {
|
295
|
+
lineSmooth: false,
|
296
|
+
low: 0,
|
297
|
+
high: 800,
|
298
|
+
height: "245px",
|
299
|
+
axisX: {
|
300
|
+
showGrid: false,
|
301
|
+
},
|
302
|
+
|
303
|
+
|
304
|
+
};
|
305
|
+
|
306
|
+
var responsiveSales = [
|
307
|
+
['screen and (max-width: 640px)', {
|
308
|
+
axisX: {
|
309
|
+
labelInterpolationFnc: function (value) {
|
310
|
+
return value[0];
|
311
|
+
}
|
312
|
+
}
|
313
|
+
}]
|
314
|
+
];
|
315
|
+
|
316
|
+
Chartist.Line('#chartHours', dataSales, optionsSales, responsiveSales);
|
317
|
+
|
318
|
+
},
|
319
|
+
|
320
|
+
initSmallGoogleMaps: function(){
|
321
|
+
|
322
|
+
// Regular Map
|
323
|
+
var myLatlng = new google.maps.LatLng(40.748817, -73.985428);
|
324
|
+
var mapOptions = {
|
325
|
+
zoom: 8,
|
326
|
+
center: myLatlng,
|
327
|
+
scrollwheel: false, //we disable de scroll over the map, it is a really annoing when you scroll through page
|
328
|
+
}
|
329
|
+
|
330
|
+
var map = new google.maps.Map(document.getElementById("regularMap"), mapOptions);
|
331
|
+
|
332
|
+
var marker = new google.maps.Marker({
|
333
|
+
position: myLatlng,
|
334
|
+
title:"Regular Map!"
|
335
|
+
});
|
336
|
+
|
337
|
+
marker.setMap(map);
|
338
|
+
|
339
|
+
|
340
|
+
// Custom Skin & Settings Map
|
341
|
+
var myLatlng = new google.maps.LatLng(40.748817, -73.985428);
|
342
|
+
var mapOptions = {
|
343
|
+
zoom: 13,
|
344
|
+
center: myLatlng,
|
345
|
+
scrollwheel: false, //we disable de scroll over the map, it is a really annoing when you scroll through page
|
346
|
+
disableDefaultUI: true, // a way to quickly hide all controls
|
347
|
+
zoomControl: true,
|
348
|
+
styles: [{"featureType":"water","stylers":[{"saturation":43},{"lightness":-11},{"hue":"#0088ff"}]},{"featureType":"road","elementType":"geometry.fill","stylers":[{"hue":"#ff0000"},{"saturation":-100},{"lightness":99}]},{"featureType":"road","elementType":"geometry.stroke","stylers":[{"color":"#808080"},{"lightness":54}]},{"featureType":"landscape.man_made","elementType":"geometry.fill","stylers":[{"color":"#ece2d9"}]},{"featureType":"poi.park","elementType":"geometry.fill","stylers":[{"color":"#ccdca1"}]},{"featureType":"road","elementType":"labels.text.fill","stylers":[{"color":"#767676"}]},{"featureType":"road","elementType":"labels.text.stroke","stylers":[{"color":"#ffffff"}]},{"featureType":"poi","stylers":[{"visibility":"off"}]},{"featureType":"landscape.natural","elementType":"geometry.fill","stylers":[{"visibility":"on"},{"color":"#b8cb93"}]},{"featureType":"poi.park","stylers":[{"visibility":"on"}]},{"featureType":"poi.sports_complex","stylers":[{"visibility":"on"}]},{"featureType":"poi.medical","stylers":[{"visibility":"on"}]},{"featureType":"poi.business","stylers":[{"visibility":"simplified"}]}]
|
349
|
+
|
350
|
+
}
|
351
|
+
|
352
|
+
var map = new google.maps.Map(document.getElementById("customSkinMap"), mapOptions);
|
353
|
+
|
354
|
+
var marker = new google.maps.Marker({
|
355
|
+
position: myLatlng,
|
356
|
+
title:"Custom Skin & Settings Map!"
|
357
|
+
});
|
358
|
+
|
359
|
+
marker.setMap(map);
|
360
|
+
|
361
|
+
|
362
|
+
|
363
|
+
// Satellite Map
|
364
|
+
var myLatlng = new google.maps.LatLng(40.748817, -73.985428);
|
365
|
+
var mapOptions = {
|
366
|
+
zoom: 3,
|
367
|
+
scrollwheel: false, //we disable de scroll over the map, it is a really annoing when you scroll through page
|
368
|
+
center: myLatlng,
|
369
|
+
mapTypeId: google.maps.MapTypeId.SATELLITE
|
370
|
+
}
|
371
|
+
|
372
|
+
var map = new google.maps.Map(document.getElementById("satelliteMap"), mapOptions);
|
373
|
+
|
374
|
+
var marker = new google.maps.Marker({
|
375
|
+
position: myLatlng,
|
376
|
+
title:"Satellite Map!"
|
377
|
+
});
|
378
|
+
|
379
|
+
marker.setMap(map);
|
380
|
+
|
381
|
+
|
382
|
+
},
|
383
|
+
|
384
|
+
showNotification: function(from, align){
|
385
|
+
color = Math.floor((Math.random() * 4) + 1);
|
386
|
+
|
387
|
+
$.notify({
|
388
|
+
icon: "pe-7s-gift",
|
389
|
+
message: "<b>Light Bootstrap Dashboard PRO</b> - forget about boring dashboards."
|
390
|
+
|
391
|
+
},{
|
392
|
+
type: type[color],
|
393
|
+
timer: 4000,
|
394
|
+
placement: {
|
395
|
+
from: from,
|
396
|
+
align: align
|
397
|
+
}
|
398
|
+
});
|
399
|
+
},
|
400
|
+
|
401
|
+
initVectorMap: function(){
|
402
|
+
var mapData = {
|
403
|
+
"AU": 760,
|
404
|
+
"BR": 550,
|
405
|
+
"CA": 120,
|
406
|
+
"DE": 1300,
|
407
|
+
"FR": 540,
|
408
|
+
"GB": 690,
|
409
|
+
"GE": 200,
|
410
|
+
"IN": 200,
|
411
|
+
"RO": 600,
|
412
|
+
"RU": 300,
|
413
|
+
"US": 2920,
|
414
|
+
};
|
415
|
+
|
416
|
+
$('#worldMap').vectorMap({
|
417
|
+
map: 'world_mill_en',
|
418
|
+
backgroundColor: "transparent",
|
419
|
+
zoomOnScroll: false,
|
420
|
+
regionStyle: {
|
421
|
+
initial: {
|
422
|
+
fill: '#e4e4e4',
|
423
|
+
"fill-opacity": 0.9,
|
424
|
+
stroke: 'none',
|
425
|
+
"stroke-width": 0,
|
426
|
+
"stroke-opacity": 0
|
427
|
+
}
|
428
|
+
},
|
429
|
+
|
430
|
+
series: {
|
431
|
+
regions: [{
|
432
|
+
values: mapData,
|
433
|
+
scale: ["#AAAAAA","#444444"],
|
434
|
+
normalizeFunction: 'polynomial'
|
435
|
+
}]
|
436
|
+
},
|
437
|
+
});
|
438
|
+
},
|
439
|
+
|
440
|
+
initAnimationsArea: function(){
|
441
|
+
$('.animationsArea .btn').click(function(){
|
442
|
+
animation_class = $(this).data('animation-class');
|
443
|
+
|
444
|
+
$parent = $(this).closest('.animationsArea');
|
445
|
+
|
446
|
+
$parent.find('.btn').removeClass('btn-fill');
|
447
|
+
|
448
|
+
$(this).addClass('btn-fill');
|
449
|
+
|
450
|
+
$parent.find('.animated')
|
451
|
+
.removeAttr('class')
|
452
|
+
.addClass('animated')
|
453
|
+
.addClass(animation_class);
|
454
|
+
|
455
|
+
$parent.siblings('.header').find('.title small').html('class: <code>animated ' + animation_class + '</code>');
|
456
|
+
});
|
457
|
+
},
|
458
|
+
|
459
|
+
showSwal: function(type){
|
460
|
+
if(type == 'basic'){
|
461
|
+
swal("Here's a message!");
|
462
|
+
|
463
|
+
}else if(type == 'title-and-text'){
|
464
|
+
swal("Here's a message!", "It's pretty, isn't it?")
|
465
|
+
|
466
|
+
}else if(type == 'success-message'){
|
467
|
+
swal("Good job!", "You clicked the button!", "success")
|
468
|
+
|
469
|
+
}else if(type == 'warning-message-and-confirmation'){
|
470
|
+
swal({ title: "Are you sure?",
|
471
|
+
text: "You will not be able to recover this imaginary file!",
|
472
|
+
type: "warning",
|
473
|
+
showCancelButton: true,
|
474
|
+
confirmButtonClass: "btn btn-info btn-fill",
|
475
|
+
confirmButtonText: "Yes, delete it!",
|
476
|
+
cancelButtonClass: "btn btn-danger btn-fill",
|
477
|
+
closeOnConfirm: false,
|
478
|
+
},function(){
|
479
|
+
swal("Deleted!", "Your imaginary file has been deleted.", "success");
|
480
|
+
});
|
481
|
+
|
482
|
+
}else if(type == 'warning-message-and-cancel'){
|
483
|
+
swal({ title: "Are you sure?",
|
484
|
+
text: "You will not be able to recover this imaginary file!",
|
485
|
+
type: "warning",
|
486
|
+
showCancelButton: true,
|
487
|
+
confirmButtonText: "Yes, delete it!",
|
488
|
+
cancelButtonText: "No, cancel plx!",
|
489
|
+
closeOnConfirm: false,
|
490
|
+
closeOnCancel: false
|
491
|
+
},function(isConfirm){
|
492
|
+
if (isConfirm){
|
493
|
+
swal("Deleted!", "Your imaginary file has been deleted.", "success");
|
494
|
+
}else{
|
495
|
+
swal("Cancelled", "Your imaginary file is safe :)", "error");
|
496
|
+
}
|
497
|
+
});
|
498
|
+
|
499
|
+
}else if(type == 'custom-html'){
|
500
|
+
swal({ title: 'HTML example',
|
501
|
+
html:
|
502
|
+
'You can use <b>bold text</b>, ' +
|
503
|
+
'<a href="http://github.com">links</a> ' +
|
504
|
+
'and other HTML tags'
|
505
|
+
});
|
506
|
+
|
507
|
+
}else if(type == 'auto-close'){
|
508
|
+
swal({ title: "Auto close alert!",
|
509
|
+
text: "I will close in 2 seconds.",
|
510
|
+
timer: 2000,
|
511
|
+
showConfirmButton: false
|
512
|
+
});
|
513
|
+
} else if(type == 'input-field'){
|
514
|
+
swal({
|
515
|
+
title: 'Input something',
|
516
|
+
html: '<p><input id="input-field" class="form-control">',
|
517
|
+
showCancelButton: true,
|
518
|
+
closeOnConfirm: false,
|
519
|
+
allowOutsideClick: false
|
520
|
+
},
|
521
|
+
function() {
|
522
|
+
swal({
|
523
|
+
html:
|
524
|
+
'You entered: <strong>' +
|
525
|
+
$('#input-field').val() +
|
526
|
+
'</strong>'
|
527
|
+
});
|
528
|
+
})
|
529
|
+
}
|
530
|
+
},
|
531
|
+
|
532
|
+
initFormExtendedSliders: function(){
|
533
|
+
|
534
|
+
// Sliders for demo purpose in refine cards section
|
535
|
+
if($('#slider-range').length != 0){
|
536
|
+
$( "#slider-range" ).slider({
|
537
|
+
range: true,
|
538
|
+
min: 0,
|
539
|
+
max: 500,
|
540
|
+
values: [ 75, 300 ],
|
541
|
+
});
|
542
|
+
}
|
543
|
+
if($('#refine-price-range').length != 0){
|
544
|
+
$( "#refine-price-range" ).slider({
|
545
|
+
range: true,
|
546
|
+
min: 0,
|
547
|
+
max: 999,
|
548
|
+
values: [ 100, 850 ],
|
549
|
+
slide: function( event, ui ) {
|
550
|
+
min_price = ui.values[0];
|
551
|
+
max_price = ui.values[1];
|
552
|
+
$(this).siblings('.price-left').html('€ ' + min_price);
|
553
|
+
$(this).siblings('.price-right').html('€ ' + max_price)
|
554
|
+
}
|
555
|
+
});
|
556
|
+
}
|
557
|
+
|
558
|
+
if($('#slider-default').length != 0 || $('#slider-default2').length != 0){
|
559
|
+
$( "#slider-default, #slider-default2" ).slider({
|
560
|
+
value: 70,
|
561
|
+
orientation: "horizontal",
|
562
|
+
range: "min",
|
563
|
+
animate: true
|
564
|
+
});
|
565
|
+
}
|
566
|
+
},
|
567
|
+
|
568
|
+
initFormExtendedDatetimepickers: function(){
|
569
|
+
$('.datetimepicker').datetimepicker({
|
570
|
+
icons: {
|
571
|
+
time: "fa fa-clock-o",
|
572
|
+
date: "fa fa-calendar",
|
573
|
+
up: "fa fa-chevron-up",
|
574
|
+
down: "fa fa-chevron-down",
|
575
|
+
previous: 'fa fa-chevron-left',
|
576
|
+
next: 'fa fa-chevron-right',
|
577
|
+
today: 'fa fa-screenshot',
|
578
|
+
clear: 'fa fa-trash',
|
579
|
+
close: 'fa fa-remove'
|
580
|
+
}
|
581
|
+
});
|
582
|
+
|
583
|
+
$('.datepicker').datetimepicker({
|
584
|
+
format: 'MM/DD/YYYY',
|
585
|
+
icons: {
|
586
|
+
time: "fa fa-clock-o",
|
587
|
+
date: "fa fa-calendar",
|
588
|
+
up: "fa fa-chevron-up",
|
589
|
+
down: "fa fa-chevron-down",
|
590
|
+
previous: 'fa fa-chevron-left',
|
591
|
+
next: 'fa fa-chevron-right',
|
592
|
+
today: 'fa fa-screenshot',
|
593
|
+
clear: 'fa fa-trash',
|
594
|
+
close: 'fa fa-remove'
|
595
|
+
}
|
596
|
+
});
|
597
|
+
|
598
|
+
$('.timepicker').datetimepicker({
|
599
|
+
// format: 'H:mm', // use this format if you want the 24hours timepicker
|
600
|
+
format: 'h:mm A', //use this format if you want the 12hours timpiecker with AM/PM toggle
|
601
|
+
icons: {
|
602
|
+
time: "fa fa-clock-o",
|
603
|
+
date: "fa fa-calendar",
|
604
|
+
up: "fa fa-chevron-up",
|
605
|
+
down: "fa fa-chevron-down",
|
606
|
+
previous: 'fa fa-chevron-left',
|
607
|
+
next: 'fa fa-chevron-right',
|
608
|
+
today: 'fa fa-screenshot',
|
609
|
+
clear: 'fa fa-trash',
|
610
|
+
close: 'fa fa-remove'
|
611
|
+
}
|
612
|
+
});
|
613
|
+
},
|
614
|
+
|
615
|
+
initFullCalendar: function(){
|
616
|
+
$calendar = $('#fullCalendar');
|
617
|
+
|
618
|
+
today = new Date();
|
619
|
+
y = today.getFullYear();
|
620
|
+
m = today.getMonth();
|
621
|
+
d = today.getDate();
|
622
|
+
|
623
|
+
$calendar.fullCalendar({
|
624
|
+
header: {
|
625
|
+
left: 'title',
|
626
|
+
center: 'month,agendaWeek,agendaDay',
|
627
|
+
right: 'prev,next today'
|
628
|
+
},
|
629
|
+
defaultDate: today,
|
630
|
+
selectable: true,
|
631
|
+
selectHelper: true,
|
632
|
+
titleFormat: {
|
633
|
+
month: 'MMMM YYYY', // September 2015
|
634
|
+
week: "MMMM D YYYY", // September 2015
|
635
|
+
day: 'D MMM, YYYY' // Tuesday, Sep 8, 2015
|
636
|
+
},
|
637
|
+
select: function(start, end) {
|
638
|
+
|
639
|
+
// on select we show the Sweet Alert modal with an input
|
640
|
+
swal({
|
641
|
+
title: 'Create an Event',
|
642
|
+
html: '<br><input class="form-control" placeholder="Event Title" id="input-field">',
|
643
|
+
showCancelButton: true,
|
644
|
+
closeOnConfirm: true
|
645
|
+
}, function() {
|
646
|
+
|
647
|
+
var eventData;
|
648
|
+
event_title = $('#input-field').val();
|
649
|
+
|
650
|
+
if (event_title) {
|
651
|
+
eventData = {
|
652
|
+
title: event_title,
|
653
|
+
start: start,
|
654
|
+
end: end
|
655
|
+
};
|
656
|
+
$calendar.fullCalendar('renderEvent', eventData, true); // stick? = true
|
657
|
+
}
|
658
|
+
|
659
|
+
$calendar.fullCalendar('unselect');
|
660
|
+
|
661
|
+
});
|
662
|
+
},
|
663
|
+
editable: true,
|
664
|
+
eventLimit: true, // allow "more" link when too many events
|
665
|
+
|
666
|
+
|
667
|
+
// color classes: [ event-blue | event-azure | event-green | event-orange | event-red ]
|
668
|
+
events: [
|
669
|
+
{
|
670
|
+
title: 'All Day Event',
|
671
|
+
start: new Date(y, m, 1)
|
672
|
+
},
|
673
|
+
{
|
674
|
+
id: 999,
|
675
|
+
title: 'Repeating Event',
|
676
|
+
start: new Date(y, m, d-4, 6, 0),
|
677
|
+
allDay: false,
|
678
|
+
className: 'event-blue'
|
679
|
+
},
|
680
|
+
{
|
681
|
+
id: 999,
|
682
|
+
title: 'Repeating Event',
|
683
|
+
start: new Date(y, m, d+3, 6, 0),
|
684
|
+
allDay: false,
|
685
|
+
className: 'event-blue'
|
686
|
+
},
|
687
|
+
{
|
688
|
+
title: 'Meeting',
|
689
|
+
start: new Date(y, m, d-1, 10, 30),
|
690
|
+
allDay: false,
|
691
|
+
className: 'event-green'
|
692
|
+
},
|
693
|
+
{
|
694
|
+
title: 'Lunch',
|
695
|
+
start: new Date(y, m, d+7, 12, 0),
|
696
|
+
end: new Date(y, m, d+7, 14, 0),
|
697
|
+
allDay: false,
|
698
|
+
className: 'event-red'
|
699
|
+
},
|
700
|
+
{
|
701
|
+
title: 'LBD Launch',
|
702
|
+
start: new Date(y, m, d-2, 12, 0),
|
703
|
+
allDay: true,
|
704
|
+
className: 'event-azure'
|
705
|
+
},
|
706
|
+
{
|
707
|
+
title: 'Birthday Party',
|
708
|
+
start: new Date(y, m, d+1, 19, 0),
|
709
|
+
end: new Date(y, m, d+1, 22, 30),
|
710
|
+
allDay: false,
|
711
|
+
},
|
712
|
+
{
|
713
|
+
title: 'Click for X',
|
714
|
+
start: new Date(y, m, 21),
|
715
|
+
end: new Date(y, m, 22),
|
716
|
+
url: 'http://www.zzz.com/',
|
717
|
+
className: 'event-orange'
|
718
|
+
},
|
719
|
+
{
|
720
|
+
title: 'Click for Google',
|
721
|
+
start: new Date(y, m, 23),
|
722
|
+
end: new Date(y, m, 23),
|
723
|
+
url: 'http://www.zus.com/',
|
724
|
+
className: 'event-orange'
|
725
|
+
}
|
726
|
+
]
|
727
|
+
});
|
728
|
+
}
|
729
|
+
|
730
|
+
|
731
|
+
}
|