kuppayam 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/MIT-LICENSE +20 -0
- data/README.md +28 -0
- data/Rakefile +37 -0
- data/app/assets/config/kuppayam_manifest.js +0 -0
- data/app/assets/images/kuppayam/defaults/default-large.png +0 -0
- data/app/assets/images/kuppayam/defaults/default-small.png +0 -0
- data/app/assets/images/kuppayam/defaults/user-large.png +0 -0
- data/app/assets/images/kuppayam/defaults/user-small.png +0 -0
- data/app/assets/images/kuppayam/favicon.png +0 -0
- data/app/assets/images/kuppayam/logo.png +0 -0
- data/app/assets/javascripts/jquery_with_ujs.js +15 -0
- data/app/assets/javascripts/kuppayam.js +21 -0
- data/app/assets/javascripts/kuppayam/utilities.js +68 -0
- data/app/assets/stylesheets/kuppayam.css +23 -0
- data/app/assets/stylesheets/kuppayam/custom.css +8 -0
- data/app/assets/stylesheets/kuppayam/handycss.css +996 -0
- data/app/controllers/kuppayam/base_controller.rb +43 -0
- data/app/helpers/breadcrumbs_helper.rb +27 -0
- data/app/helpers/filter_helper.rb +370 -0
- data/app/helpers/flash_helper.rb +54 -0
- data/app/helpers/image_helper.rb +209 -0
- data/app/helpers/kuppayam_helper.rb +72 -0
- data/app/helpers/meta_tags_helper.rb +50 -0
- data/app/helpers/navigation_helper.rb +17 -0
- data/app/helpers/params_parser_helper.rb +48 -0
- data/app/helpers/render_helper.rb +28 -0
- data/app/helpers/resource_helper.rb +133 -0
- data/app/views/kaminari/_first_page.html.erb +11 -0
- data/app/views/kaminari/_gap.html.erb +8 -0
- data/app/views/kaminari/_last_page.html.erb +11 -0
- data/app/views/kaminari/_next_page.html.erb +11 -0
- data/app/views/kaminari/_page.html.erb +12 -0
- data/app/views/kaminari/_paginator.html.erb +25 -0
- data/app/views/kaminari/_prev_page.html.erb +11 -0
- data/app/views/layouts/kuppayam/_footer.html.erb +25 -0
- data/app/views/layouts/kuppayam/_head.html.erb +29 -0
- data/app/views/layouts/kuppayam/_header.html.erb +43 -0
- data/app/views/layouts/kuppayam/_heading.html.erb +9 -0
- data/app/views/layouts/kuppayam/_navbar.html.erb +321 -0
- data/app/views/layouts/kuppayam/_overlays.html.erb +40 -0
- data/app/views/layouts/kuppayam/_settings_pane.html.erb +107 -0
- data/app/views/layouts/kuppayam/_sidebar.html.erb +612 -0
- data/app/views/layouts/kuppayam/_sidebar_old.html.erb +54 -0
- data/app/views/layouts/kuppayam/admin.html.erb +59 -0
- data/app/views/layouts/kuppayam/blank.html.erb +37 -0
- data/config/initializers/config_center.rb +60 -0
- data/config/initializers/kuppayam_validators.rb +76 -0
- data/config/routes.rb +2 -0
- data/lib/kuppayam.rb +8 -0
- data/lib/kuppayam/action_view/form_helper.rb +254 -0
- data/lib/kuppayam/action_view/modal_helper.rb +7 -0
- data/lib/kuppayam/action_view/theme_helper.rb +226 -0
- data/lib/kuppayam/engine.rb +34 -0
- data/lib/kuppayam/version.rb +3 -0
- data/lib/tasks/kuppayam_tasks.rake +4 -0
- data/vendor/assets/fonts/elusive/css/animation.css +85 -0
- data/vendor/assets/fonts/elusive/css/elusive-codes.css +272 -0
- data/vendor/assets/fonts/elusive/css/elusive-embedded.css +325 -0
- data/vendor/assets/fonts/elusive/css/elusive-ie7-codes.css +272 -0
- data/vendor/assets/fonts/elusive/css/elusive-ie7.css +283 -0
- data/vendor/assets/fonts/elusive/css/elusive.css +323 -0
- data/vendor/assets/fonts/elusive/font/elusive.eot +0 -0
- data/vendor/assets/fonts/elusive/font/elusive.svg +282 -0
- data/vendor/assets/fonts/elusive/font/elusive.ttf +0 -0
- data/vendor/assets/fonts/elusive/font/elusive.woff +0 -0
- data/vendor/assets/fonts/elusive/index.html +0 -0
- data/vendor/assets/fonts/fontawesome/css/font-awesome.css +1681 -0
- data/vendor/assets/fonts/fontawesome/css/font-awesome.min.css +4 -0
- data/vendor/assets/fonts/fontawesome/fonts/FontAwesome.otf +0 -0
- data/vendor/assets/fonts/fontawesome/fonts/fontawesome-webfont.eot +0 -0
- data/vendor/assets/fonts/fontawesome/fonts/fontawesome-webfont.svg +520 -0
- data/vendor/assets/fonts/fontawesome/fonts/fontawesome-webfont.ttf +0 -0
- data/vendor/assets/fonts/fontawesome/fonts/fontawesome-webfont.woff +0 -0
- data/vendor/assets/fonts/fontawesome/index.html +0 -0
- data/vendor/assets/fonts/glyphicons/glyphicons-halflings-regular.eot +0 -0
- data/vendor/assets/fonts/glyphicons/glyphicons-halflings-regular.svg +229 -0
- data/vendor/assets/fonts/glyphicons/glyphicons-halflings-regular.ttf +0 -0
- data/vendor/assets/fonts/glyphicons/glyphicons-halflings-regular.woff +0 -0
- data/vendor/assets/fonts/glyphicons/index.html +0 -0
- data/vendor/assets/fonts/linecons/css/animation.css +85 -0
- data/vendor/assets/fonts/linecons/css/linecons-codes.css +49 -0
- data/vendor/assets/fonts/linecons/css/linecons-embedded.css +102 -0
- data/vendor/assets/fonts/linecons/css/linecons-ie7-codes.css +49 -0
- data/vendor/assets/fonts/linecons/css/linecons-ie7.css +60 -0
- data/vendor/assets/fonts/linecons/css/linecons.css +100 -0
- data/vendor/assets/fonts/linecons/font/linecons.eot +0 -0
- data/vendor/assets/fonts/linecons/font/linecons.svg +59 -0
- data/vendor/assets/fonts/linecons/font/linecons.ttf +0 -0
- data/vendor/assets/fonts/linecons/font/linecons.woff +0 -0
- data/vendor/assets/fonts/linecons/index.html +0 -0
- data/vendor/assets/fonts/meteocons/css/animation.css +85 -0
- data/vendor/assets/fonts/meteocons/css/meteocons-codes.css +48 -0
- data/vendor/assets/fonts/meteocons/css/meteocons-embedded.css +101 -0
- data/vendor/assets/fonts/meteocons/css/meteocons-ie7-codes.css +48 -0
- data/vendor/assets/fonts/meteocons/css/meteocons-ie7.css +59 -0
- data/vendor/assets/fonts/meteocons/css/meteocons.css +99 -0
- data/vendor/assets/fonts/meteocons/font/meteocons.eot +0 -0
- data/vendor/assets/fonts/meteocons/font/meteocons.svg +58 -0
- data/vendor/assets/fonts/meteocons/font/meteocons.ttf +0 -0
- data/vendor/assets/fonts/meteocons/font/meteocons.woff +0 -0
- data/vendor/assets/fonts/meteocons/index.html +0 -0
- data/vendor/assets/images/flags/flag-al.png +0 -0
- data/vendor/assets/images/flags/flag-br.png +0 -0
- data/vendor/assets/images/flags/flag-de.png +0 -0
- data/vendor/assets/images/flags/flag-es.png +0 -0
- data/vendor/assets/images/flags/flag-fr.png +0 -0
- data/vendor/assets/images/flags/flag-uk.png +0 -0
- data/vendor/assets/images/flags/index.html +0 -0
- data/vendor/assets/javascripts/TweenLite.min.js +12 -0
- data/vendor/assets/javascripts/TweenMax.min.js +17 -0
- data/vendor/assets/javascripts/bootstrap.min.js +7 -0
- data/vendor/assets/javascripts/ckeditor/CHANGES.md +643 -0
- data/vendor/assets/javascripts/ckeditor/LICENSE.md +1264 -0
- data/vendor/assets/javascripts/ckeditor/README.md +39 -0
- data/vendor/assets/javascripts/ckeditor/adapters/jquery.js +10 -0
- data/vendor/assets/javascripts/ckeditor/build-config.js +152 -0
- data/vendor/assets/javascripts/ckeditor/ckeditor.js +936 -0
- data/vendor/assets/javascripts/ckeditor/config.js +42 -0
- data/vendor/assets/javascripts/ckeditor/contents.css +134 -0
- data/vendor/assets/javascripts/ckeditor/index.html +0 -0
- data/vendor/assets/javascripts/ckeditor/lang/af.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/ar.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/bg.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/bn.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/bs.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/ca.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/cs.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/cy.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/da.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/de.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/el.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/en-au.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/en-ca.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/en-gb.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/en.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/eo.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/es.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/et.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/eu.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/fa.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/fi.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/fo.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/fr-ca.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/fr.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/gl.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/gu.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/he.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/hi.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/hr.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/hu.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/id.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/is.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/it.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/ja.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/ka.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/km.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/ko.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/ku.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/lt.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/lv.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/mk.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/mn.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/ms.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/nb.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/nl.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/no.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/pl.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/pt-br.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/pt.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/ro.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/ru.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/si.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/sk.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/sl.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/sq.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/sr-latn.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/sr.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/sv.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/th.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/tr.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/tt.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/ug.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/uk.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/vi.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/zh-cn.js +5 -0
- data/vendor/assets/javascripts/ckeditor/lang/zh.js +5 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/a11yhelp.js +10 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/_translationstatus.txt +25 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/ar.js +11 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/bg.js +11 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/ca.js +13 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/cs.js +13 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/cy.js +11 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/da.js +11 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/de.js +12 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/el.js +13 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/en-gb.js +11 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/en.js +11 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/eo.js +13 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/es.js +12 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/et.js +11 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/fa.js +11 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/fi.js +12 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/fr-ca.js +12 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/fr.js +13 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/gl.js +12 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/gu.js +11 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/he.js +11 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/hi.js +11 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/hr.js +11 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/hu.js +13 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/id.js +11 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/it.js +13 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/ja.js +9 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/km.js +11 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/ko.js +10 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/ku.js +12 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/lt.js +11 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/lv.js +13 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/mk.js +11 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/mn.js +11 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/nb.js +12 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/nl.js +12 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/no.js +11 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/pl.js +13 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/pt-br.js +12 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/pt.js +12 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/ro.js +12 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/ru.js +11 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/si.js +10 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/sk.js +12 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/sl.js +12 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/sq.js +11 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/sr-latn.js +11 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/sr.js +11 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/sv.js +12 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/th.js +11 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/tr.js +12 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/tt.js +11 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/ug.js +11 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/uk.js +12 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/vi.js +11 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/zh-cn.js +9 -0
- data/vendor/assets/javascripts/ckeditor/plugins/a11yhelp/dialogs/lang/zh.js +9 -0
- data/vendor/assets/javascripts/ckeditor/plugins/about/dialogs/about.js +7 -0
- data/vendor/assets/javascripts/ckeditor/plugins/about/dialogs/hidpi/logo_ckeditor.png +0 -0
- data/vendor/assets/javascripts/ckeditor/plugins/about/dialogs/logo_ckeditor.png +0 -0
- data/vendor/assets/javascripts/ckeditor/plugins/clipboard/dialogs/paste.js +11 -0
- data/vendor/assets/javascripts/ckeditor/plugins/dialog/dialogDefinition.js +4 -0
- data/vendor/assets/javascripts/ckeditor/plugins/icons.png +0 -0
- data/vendor/assets/javascripts/ckeditor/plugins/icons_hidpi.png +0 -0
- data/vendor/assets/javascripts/ckeditor/plugins/image/dialogs/image.js +43 -0
- data/vendor/assets/javascripts/ckeditor/plugins/image/images/noimage.png +0 -0
- data/vendor/assets/javascripts/ckeditor/plugins/link/dialogs/anchor.js +7 -0
- data/vendor/assets/javascripts/ckeditor/plugins/link/dialogs/link.js +26 -0
- data/vendor/assets/javascripts/ckeditor/plugins/link/images/anchor.png +0 -0
- data/vendor/assets/javascripts/ckeditor/plugins/link/images/hidpi/anchor.png +0 -0
- data/vendor/assets/javascripts/ckeditor/plugins/magicline/images/hidpi/icon-rtl.png +0 -0
- data/vendor/assets/javascripts/ckeditor/plugins/magicline/images/hidpi/icon.png +0 -0
- data/vendor/assets/javascripts/ckeditor/plugins/magicline/images/icon-rtl.png +0 -0
- data/vendor/assets/javascripts/ckeditor/plugins/magicline/images/icon.png +0 -0
- data/vendor/assets/javascripts/ckeditor/plugins/pastefromword/filter/default.js +31 -0
- data/vendor/assets/javascripts/ckeditor/plugins/scayt/LICENSE.md +28 -0
- data/vendor/assets/javascripts/ckeditor/plugins/scayt/README.md +25 -0
- data/vendor/assets/javascripts/ckeditor/plugins/scayt/dialogs/options.js +17 -0
- data/vendor/assets/javascripts/ckeditor/plugins/scayt/dialogs/toolbar.css +71 -0
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/_translationstatus.txt +20 -0
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/ar.js +13 -0
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/bg.js +13 -0
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/ca.js +14 -0
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/cs.js +13 -0
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/cy.js +14 -0
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/de.js +13 -0
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/el.js +13 -0
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/en-gb.js +13 -0
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/en.js +13 -0
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/eo.js +12 -0
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/es.js +13 -0
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/et.js +13 -0
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/fa.js +12 -0
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/fi.js +13 -0
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/fr-ca.js +10 -0
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/fr.js +11 -0
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/gl.js +13 -0
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/he.js +12 -0
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/hr.js +13 -0
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/hu.js +12 -0
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/id.js +13 -0
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/it.js +14 -0
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/ja.js +9 -0
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/km.js +13 -0
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/ku.js +13 -0
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/lv.js +13 -0
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/nb.js +11 -0
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/nl.js +13 -0
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/no.js +11 -0
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/pl.js +12 -0
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/pt-br.js +11 -0
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/pt.js +13 -0
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/ru.js +13 -0
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/si.js +13 -0
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/sk.js +13 -0
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/sl.js +12 -0
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/sq.js +13 -0
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/sv.js +11 -0
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/th.js +13 -0
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/tr.js +12 -0
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/tt.js +13 -0
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/ug.js +13 -0
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/uk.js +12 -0
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/vi.js +14 -0
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/zh-cn.js +9 -0
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/lang/zh.js +12 -0
- data/vendor/assets/javascripts/ckeditor/plugins/specialchar/dialogs/specialchar.js +14 -0
- data/vendor/assets/javascripts/ckeditor/plugins/table/dialogs/table.js +21 -0
- data/vendor/assets/javascripts/ckeditor/plugins/tabletools/dialogs/tableCell.js +17 -0
- data/vendor/assets/javascripts/ckeditor/plugins/wsc/LICENSE.md +28 -0
- data/vendor/assets/javascripts/ckeditor/plugins/wsc/README.md +25 -0
- data/vendor/assets/javascripts/ckeditor/plugins/wsc/dialogs/ciframe.html +66 -0
- data/vendor/assets/javascripts/ckeditor/plugins/wsc/dialogs/tmpFrameset.html +52 -0
- data/vendor/assets/javascripts/ckeditor/plugins/wsc/dialogs/wsc.css +82 -0
- data/vendor/assets/javascripts/ckeditor/plugins/wsc/dialogs/wsc.js +74 -0
- data/vendor/assets/javascripts/ckeditor/plugins/wsc/dialogs/wsc_ie.js +11 -0
- data/vendor/assets/javascripts/ckeditor/samples/ajax.html +82 -0
- data/vendor/assets/javascripts/ckeditor/samples/api.html +207 -0
- data/vendor/assets/javascripts/ckeditor/samples/appendto.html +56 -0
- data/vendor/assets/javascripts/ckeditor/samples/assets/inlineall/logo.png +0 -0
- data/vendor/assets/javascripts/ckeditor/samples/assets/outputxhtml/outputxhtml.css +204 -0
- data/vendor/assets/javascripts/ckeditor/samples/assets/posteddata.php +59 -0
- data/vendor/assets/javascripts/ckeditor/samples/assets/sample.jpg +0 -0
- data/vendor/assets/javascripts/ckeditor/samples/assets/uilanguages/languages.js +7 -0
- data/vendor/assets/javascripts/ckeditor/samples/datafiltering.html +401 -0
- data/vendor/assets/javascripts/ckeditor/samples/divreplace.html +141 -0
- data/vendor/assets/javascripts/ckeditor/samples/index.html +128 -0
- data/vendor/assets/javascripts/ckeditor/samples/inlineall.html +311 -0
- data/vendor/assets/javascripts/ckeditor/samples/inlinebycode.html +121 -0
- data/vendor/assets/javascripts/ckeditor/samples/inlinetextarea.html +110 -0
- data/vendor/assets/javascripts/ckeditor/samples/jquery.html +100 -0
- data/vendor/assets/javascripts/ckeditor/samples/plugins/dialog/assets/my_dialog.js +48 -0
- data/vendor/assets/javascripts/ckeditor/samples/plugins/dialog/dialog.html +187 -0
- data/vendor/assets/javascripts/ckeditor/samples/plugins/enterkey/enterkey.html +103 -0
- data/vendor/assets/javascripts/ckeditor/samples/plugins/htmlwriter/assets/outputforflash/outputforflash.fla +0 -0
- data/vendor/assets/javascripts/ckeditor/samples/plugins/htmlwriter/assets/outputforflash/outputforflash.swf +0 -0
- data/vendor/assets/javascripts/ckeditor/samples/plugins/htmlwriter/assets/outputforflash/swfobject.js +18 -0
- data/vendor/assets/javascripts/ckeditor/samples/plugins/htmlwriter/outputforflash.html +280 -0
- data/vendor/assets/javascripts/ckeditor/samples/plugins/htmlwriter/outputhtml.html +221 -0
- data/vendor/assets/javascripts/ckeditor/samples/plugins/magicline/magicline.html +206 -0
- data/vendor/assets/javascripts/ckeditor/samples/plugins/toolbar/toolbar.html +232 -0
- data/vendor/assets/javascripts/ckeditor/samples/plugins/wysiwygarea/fullpage.html +77 -0
- data/vendor/assets/javascripts/ckeditor/samples/readonly.html +73 -0
- data/vendor/assets/javascripts/ckeditor/samples/replacebyclass.html +57 -0
- data/vendor/assets/javascripts/ckeditor/samples/replacebycode.html +56 -0
- data/vendor/assets/javascripts/ckeditor/samples/sample.css +365 -0
- data/vendor/assets/javascripts/ckeditor/samples/sample.js +50 -0
- data/vendor/assets/javascripts/ckeditor/samples/sample_posteddata.php +16 -0
- data/vendor/assets/javascripts/ckeditor/samples/tabindex.html +75 -0
- data/vendor/assets/javascripts/ckeditor/samples/uicolor.html +69 -0
- data/vendor/assets/javascripts/ckeditor/samples/uilanguages.html +119 -0
- data/vendor/assets/javascripts/ckeditor/samples/xhtmlstyle.html +231 -0
- data/vendor/assets/javascripts/ckeditor/skins/bootstrapck/dev/icons16.svg +683 -0
- data/vendor/assets/javascripts/ckeditor/skins/bootstrapck/dev/icons32.svg +694 -0
- data/vendor/assets/javascripts/ckeditor/skins/bootstrapck/dev/locations.json +140 -0
- data/vendor/assets/javascripts/ckeditor/skins/bootstrapck/dialog.css +1 -0
- data/vendor/assets/javascripts/ckeditor/skins/bootstrapck/dialog_ie.css +1 -0
- data/vendor/assets/javascripts/ckeditor/skins/bootstrapck/dialog_ie7.css +1 -0
- data/vendor/assets/javascripts/ckeditor/skins/bootstrapck/dialog_ie8.css +1 -0
- data/vendor/assets/javascripts/ckeditor/skins/bootstrapck/dialog_iequirks.css +1 -0
- data/vendor/assets/javascripts/ckeditor/skins/bootstrapck/dialog_opera.css +1 -0
- data/vendor/assets/javascripts/ckeditor/skins/bootstrapck/editor.css +1 -0
- data/vendor/assets/javascripts/ckeditor/skins/bootstrapck/editor_gecko.css +1 -0
- data/vendor/assets/javascripts/ckeditor/skins/bootstrapck/editor_ie.css +1 -0
- data/vendor/assets/javascripts/ckeditor/skins/bootstrapck/editor_ie7.css +1 -0
- data/vendor/assets/javascripts/ckeditor/skins/bootstrapck/editor_ie8.css +1 -0
- data/vendor/assets/javascripts/ckeditor/skins/bootstrapck/editor_iequirks.css +1 -0
- data/vendor/assets/javascripts/ckeditor/skins/bootstrapck/icons.png +0 -0
- data/vendor/assets/javascripts/ckeditor/skins/bootstrapck/icons_hidpi.png +0 -0
- data/vendor/assets/javascripts/ckeditor/skins/bootstrapck/images/arrow.png +0 -0
- data/vendor/assets/javascripts/ckeditor/skins/bootstrapck/images/close.png +0 -0
- data/vendor/assets/javascripts/ckeditor/skins/bootstrapck/images/hidpi/close.png +0 -0
- data/vendor/assets/javascripts/ckeditor/skins/bootstrapck/images/hidpi/lock-open.png +0 -0
- data/vendor/assets/javascripts/ckeditor/skins/bootstrapck/images/hidpi/lock.png +0 -0
- data/vendor/assets/javascripts/ckeditor/skins/bootstrapck/images/hidpi/refresh.png +0 -0
- data/vendor/assets/javascripts/ckeditor/skins/bootstrapck/images/lock-open.png +0 -0
- data/vendor/assets/javascripts/ckeditor/skins/bootstrapck/images/lock.png +0 -0
- data/vendor/assets/javascripts/ckeditor/skins/bootstrapck/images/refresh.png +0 -0
- data/vendor/assets/javascripts/ckeditor/skins/bootstrapck/readme.md +35 -0
- data/vendor/assets/javascripts/ckeditor/skins/bootstrapck/sample/bootstrapck-sample.html +127 -0
- data/vendor/assets/javascripts/ckeditor/skins/bootstrapck/sample/css/bootstrapck-sample.css +1 -0
- data/vendor/assets/javascripts/ckeditor/skins/bootstrapck/sample/js/analytics.js +4 -0
- data/vendor/assets/javascripts/ckeditor/skins/bootstrapck/sample/js/jquery-1.11.0.min.js +189 -0
- data/vendor/assets/javascripts/ckeditor/skins/bootstrapck/scss/browser-specific/gecko/editor_gecko.scss +25 -0
- data/vendor/assets/javascripts/ckeditor/skins/bootstrapck/scss/browser-specific/ie/dialog_ie.scss +62 -0
- data/vendor/assets/javascripts/ckeditor/skins/bootstrapck/scss/browser-specific/ie/editor_ie.scss +71 -0
- data/vendor/assets/javascripts/ckeditor/skins/bootstrapck/scss/browser-specific/ie7/dialog_ie7.scss +68 -0
- data/vendor/assets/javascripts/ckeditor/skins/bootstrapck/scss/browser-specific/ie7/editor_ie7.scss +213 -0
- data/vendor/assets/javascripts/ckeditor/skins/bootstrapck/scss/browser-specific/ie8/dialog_ie8.scss +24 -0
- data/vendor/assets/javascripts/ckeditor/skins/bootstrapck/scss/browser-specific/ie8/editor_ie8.scss +27 -0
- data/vendor/assets/javascripts/ckeditor/skins/bootstrapck/scss/browser-specific/iequirks/dialog_iequirks.scss +21 -0
- data/vendor/assets/javascripts/ckeditor/skins/bootstrapck/scss/browser-specific/iequirks/editor_iequirks.scss +79 -0
- data/vendor/assets/javascripts/ckeditor/skins/bootstrapck/scss/browser-specific/opera/dialog_opera.scss +31 -0
- data/vendor/assets/javascripts/ckeditor/skins/bootstrapck/scss/components/_colorpanel.scss +119 -0
- data/vendor/assets/javascripts/ckeditor/skins/bootstrapck/scss/components/_elementspath.scss +66 -0
- data/vendor/assets/javascripts/ckeditor/skins/bootstrapck/scss/components/_mainui.scss +189 -0
- data/vendor/assets/javascripts/ckeditor/skins/bootstrapck/scss/components/_menu.scss +182 -0
- data/vendor/assets/javascripts/ckeditor/skins/bootstrapck/scss/components/_panel.scss +199 -0
- data/vendor/assets/javascripts/ckeditor/skins/bootstrapck/scss/components/_presets.scss +32 -0
- data/vendor/assets/javascripts/ckeditor/skins/bootstrapck/scss/components/_reset.scss +107 -0
- data/vendor/assets/javascripts/ckeditor/skins/bootstrapck/scss/components/_richcombo.scss +174 -0
- data/vendor/assets/javascripts/ckeditor/skins/bootstrapck/scss/components/_toolbar.scss +317 -0
- data/vendor/assets/javascripts/ckeditor/skins/bootstrapck/scss/components/editor.scss +66 -0
- data/vendor/assets/javascripts/ckeditor/skins/bootstrapck/scss/config/_colors.scss +61 -0
- data/vendor/assets/javascripts/ckeditor/skins/bootstrapck/scss/config/_config.scss +9 -0
- data/vendor/assets/javascripts/ckeditor/skins/bootstrapck/scss/config/_defaults.scss +37 -0
- data/vendor/assets/javascripts/ckeditor/skins/bootstrapck/scss/dialog/dialog.scss +822 -0
- data/vendor/assets/javascripts/ckeditor/skins/bootstrapck/skin.js +10 -0
- data/vendor/assets/javascripts/ckeditor/skins/moono/dialog.css +5 -0
- data/vendor/assets/javascripts/ckeditor/skins/moono/dialog_ie.css +5 -0
- data/vendor/assets/javascripts/ckeditor/skins/moono/dialog_ie7.css +5 -0
- data/vendor/assets/javascripts/ckeditor/skins/moono/dialog_ie8.css +5 -0
- data/vendor/assets/javascripts/ckeditor/skins/moono/dialog_iequirks.css +5 -0
- data/vendor/assets/javascripts/ckeditor/skins/moono/editor.css +5 -0
- data/vendor/assets/javascripts/ckeditor/skins/moono/editor_gecko.css +5 -0
- data/vendor/assets/javascripts/ckeditor/skins/moono/editor_ie.css +5 -0
- data/vendor/assets/javascripts/ckeditor/skins/moono/editor_ie7.css +5 -0
- data/vendor/assets/javascripts/ckeditor/skins/moono/editor_ie8.css +5 -0
- data/vendor/assets/javascripts/ckeditor/skins/moono/editor_iequirks.css +5 -0
- data/vendor/assets/javascripts/ckeditor/skins/moono/icons.png +0 -0
- data/vendor/assets/javascripts/ckeditor/skins/moono/icons_hidpi.png +0 -0
- data/vendor/assets/javascripts/ckeditor/skins/moono/images/arrow.png +0 -0
- data/vendor/assets/javascripts/ckeditor/skins/moono/images/close.png +0 -0
- data/vendor/assets/javascripts/ckeditor/skins/moono/images/hidpi/close.png +0 -0
- data/vendor/assets/javascripts/ckeditor/skins/moono/images/hidpi/lock-open.png +0 -0
- data/vendor/assets/javascripts/ckeditor/skins/moono/images/hidpi/lock.png +0 -0
- data/vendor/assets/javascripts/ckeditor/skins/moono/images/hidpi/refresh.png +0 -0
- data/vendor/assets/javascripts/ckeditor/skins/moono/images/lock-open.png +0 -0
- data/vendor/assets/javascripts/ckeditor/skins/moono/images/lock.png +0 -0
- data/vendor/assets/javascripts/ckeditor/skins/moono/images/refresh.png +0 -0
- data/vendor/assets/javascripts/ckeditor/skins/moono/readme.md +51 -0
- data/vendor/assets/javascripts/ckeditor/styles.js +111 -0
- data/vendor/assets/javascripts/colorpicker/bootstrap-colorpicker.min.js +1 -0
- data/vendor/assets/javascripts/colorpicker/images/alpha-horizontal.png +0 -0
- data/vendor/assets/javascripts/colorpicker/images/alpha.png +0 -0
- data/vendor/assets/javascripts/colorpicker/images/hue-horizontal.png +0 -0
- data/vendor/assets/javascripts/colorpicker/images/hue.png +0 -0
- data/vendor/assets/javascripts/colorpicker/images/saturation.png +0 -0
- data/vendor/assets/javascripts/colorpicker/index.html +0 -0
- data/vendor/assets/javascripts/cropper/cropper.css +266 -0
- data/vendor/assets/javascripts/cropper/cropper.js +1063 -0
- data/vendor/assets/javascripts/cropper/cropper.min.css +9 -0
- data/vendor/assets/javascripts/cropper/cropper.min.js +9 -0
- data/vendor/assets/javascripts/cropper/index.html +0 -0
- data/vendor/assets/javascripts/datatables/css/jquery.dataTables.css +476 -0
- data/vendor/assets/javascripts/datatables/css/jquery.dataTables.min.css +1 -0
- data/vendor/assets/javascripts/datatables/css/jquery.dataTables_themeroller.css +330 -0
- data/vendor/assets/javascripts/datatables/dataTables.bootstrap.css +281 -0
- data/vendor/assets/javascripts/datatables/dataTables.bootstrap.js +186 -0
- data/vendor/assets/javascripts/datatables/datatables-angular.js +2651 -0
- data/vendor/assets/javascripts/datatables/images/Sorting icons.psd +0 -0
- data/vendor/assets/javascripts/datatables/images/back_disabled.png +0 -0
- data/vendor/assets/javascripts/datatables/images/back_enabled.png +0 -0
- data/vendor/assets/javascripts/datatables/images/back_enabled_hover.png +0 -0
- data/vendor/assets/javascripts/datatables/images/favicon.ico +0 -0
- data/vendor/assets/javascripts/datatables/images/forward_disabled.png +0 -0
- data/vendor/assets/javascripts/datatables/images/forward_enabled.png +0 -0
- data/vendor/assets/javascripts/datatables/images/forward_enabled_hover.png +0 -0
- data/vendor/assets/javascripts/datatables/images/sort_asc.png +0 -0
- data/vendor/assets/javascripts/datatables/images/sort_asc_disabled.png +0 -0
- data/vendor/assets/javascripts/datatables/images/sort_both.png +0 -0
- data/vendor/assets/javascripts/datatables/images/sort_desc.png +0 -0
- data/vendor/assets/javascripts/datatables/images/sort_desc_disabled.png +0 -0
- data/vendor/assets/javascripts/datatables/index.html +0 -0
- data/vendor/assets/javascripts/datatables/js/jquery.dataTables.js +14624 -0
- data/vendor/assets/javascripts/datatables/js/jquery.dataTables.min.js +155 -0
- data/vendor/assets/javascripts/datatables/js/jquery.js +4 -0
- data/vendor/assets/javascripts/datatables/tabletools/copy_csv_xls.swf +0 -0
- data/vendor/assets/javascripts/datatables/tabletools/copy_csv_xls_pdf.swf +0 -0
- data/vendor/assets/javascripts/datatables/tabletools/dataTables.tableTools.css +361 -0
- data/vendor/assets/javascripts/datatables/tabletools/dataTables.tableTools.min.js +69 -0
- data/vendor/assets/javascripts/datatables/yadcf/jquery.dataTables.yadcf.css +116 -0
- data/vendor/assets/javascripts/datatables/yadcf/jquery.dataTables.yadcf.js +2235 -0
- data/vendor/assets/javascripts/datepicker/bootstrap-datepicker.js +1395 -0
- data/vendor/assets/javascripts/datepicker/index.html +0 -0
- data/vendor/assets/javascripts/daterangepicker/daterangepicker-bs2.css +256 -0
- data/vendor/assets/javascripts/daterangepicker/daterangepicker-bs3.css +288 -0
- data/vendor/assets/javascripts/daterangepicker/daterangepicker.js +1118 -0
- data/vendor/assets/javascripts/daterangepicker/index.html +0 -0
- data/vendor/assets/javascripts/devexpress-web-14.1/js/dx.chartjs.js +12 -0
- data/vendor/assets/javascripts/devexpress-web-14.1/js/globalize.min.js +12 -0
- data/vendor/assets/javascripts/devexpress-web-14.1/js/knockout-3.1.0.js +12 -0
- data/vendor/assets/javascripts/dropzone/css/basic.css +155 -0
- data/vendor/assets/javascripts/dropzone/css/dropzone.css +397 -0
- data/vendor/assets/javascripts/dropzone/css/stylus/basic.styl +165 -0
- data/vendor/assets/javascripts/dropzone/css/stylus/dropzone.styl +180 -0
- data/vendor/assets/javascripts/dropzone/dropzone-amd-module.min.js +1 -0
- data/vendor/assets/javascripts/dropzone/dropzone.min.js +1 -0
- data/vendor/assets/javascripts/dropzone/images/spritemap.png +0 -0
- data/vendor/assets/javascripts/dropzone/images/spritemap@2x.png +0 -0
- data/vendor/assets/javascripts/dropzone/index.html +0 -0
- data/vendor/assets/javascripts/formwizard/index.html +0 -0
- data/vendor/assets/javascripts/formwizard/jquery.bootstrap.wizard.js +331 -0
- data/vendor/assets/javascripts/formwizard/jquery.bootstrap.wizard.min.js +22 -0
- data/vendor/assets/javascripts/fullcalendar/fullcalendar.css +933 -0
- data/vendor/assets/javascripts/fullcalendar/fullcalendar.js +8391 -0
- data/vendor/assets/javascripts/fullcalendar/fullcalendar.min.css +5 -0
- data/vendor/assets/javascripts/fullcalendar/fullcalendar.min.js +8 -0
- data/vendor/assets/javascripts/fullcalendar/fullcalendar.print.css +201 -0
- data/vendor/assets/javascripts/fullcalendar/index.html +0 -0
- data/vendor/assets/javascripts/fullcalendar/moment.min.js +6 -0
- data/vendor/assets/javascripts/handlebars.min.js +28 -0
- data/vendor/assets/javascripts/icheck/icheck.min.js +11 -0
- data/vendor/assets/javascripts/icheck/index.html +0 -0
- data/vendor/assets/javascripts/icheck/skins/all.css +61 -0
- data/vendor/assets/javascripts/icheck/skins/flat/_all.css +530 -0
- data/vendor/assets/javascripts/icheck/skins/flat/aero.css +53 -0
- data/vendor/assets/javascripts/icheck/skins/flat/aero.png +0 -0
- data/vendor/assets/javascripts/icheck/skins/flat/aero@2x.png +0 -0
- data/vendor/assets/javascripts/icheck/skins/flat/blue.css +53 -0
- data/vendor/assets/javascripts/icheck/skins/flat/blue.png +0 -0
- data/vendor/assets/javascripts/icheck/skins/flat/blue@2x.png +0 -0
- data/vendor/assets/javascripts/icheck/skins/flat/flat.css +53 -0
- data/vendor/assets/javascripts/icheck/skins/flat/flat.png +0 -0
- data/vendor/assets/javascripts/icheck/skins/flat/flat@2x.png +0 -0
- data/vendor/assets/javascripts/icheck/skins/flat/green.css +53 -0
- data/vendor/assets/javascripts/icheck/skins/flat/green.png +0 -0
- data/vendor/assets/javascripts/icheck/skins/flat/green@2x.png +0 -0
- data/vendor/assets/javascripts/icheck/skins/flat/grey.css +53 -0
- data/vendor/assets/javascripts/icheck/skins/flat/grey.png +0 -0
- data/vendor/assets/javascripts/icheck/skins/flat/grey@2x.png +0 -0
- data/vendor/assets/javascripts/icheck/skins/flat/orange.css +53 -0
- data/vendor/assets/javascripts/icheck/skins/flat/orange.png +0 -0
- data/vendor/assets/javascripts/icheck/skins/flat/orange@2x.png +0 -0
- data/vendor/assets/javascripts/icheck/skins/flat/pink.css +53 -0
- data/vendor/assets/javascripts/icheck/skins/flat/pink.png +0 -0
- data/vendor/assets/javascripts/icheck/skins/flat/pink@2x.png +0 -0
- data/vendor/assets/javascripts/icheck/skins/flat/purple.css +53 -0
- data/vendor/assets/javascripts/icheck/skins/flat/purple.png +0 -0
- data/vendor/assets/javascripts/icheck/skins/flat/purple@2x.png +0 -0
- data/vendor/assets/javascripts/icheck/skins/flat/red.css +53 -0
- data/vendor/assets/javascripts/icheck/skins/flat/red.png +0 -0
- data/vendor/assets/javascripts/icheck/skins/flat/red@2x.png +0 -0
- data/vendor/assets/javascripts/icheck/skins/flat/yellow.css +53 -0
- data/vendor/assets/javascripts/icheck/skins/flat/yellow.png +0 -0
- data/vendor/assets/javascripts/icheck/skins/flat/yellow@2x.png +0 -0
- data/vendor/assets/javascripts/icheck/skins/futurico/futurico.css +53 -0
- data/vendor/assets/javascripts/icheck/skins/futurico/futurico.png +0 -0
- data/vendor/assets/javascripts/icheck/skins/futurico/futurico@2x.png +0 -0
- data/vendor/assets/javascripts/icheck/skins/line/_all.css +710 -0
- data/vendor/assets/javascripts/icheck/skins/line/aero.css +71 -0
- data/vendor/assets/javascripts/icheck/skins/line/blue.css +71 -0
- data/vendor/assets/javascripts/icheck/skins/line/green.css +71 -0
- data/vendor/assets/javascripts/icheck/skins/line/grey.css +71 -0
- data/vendor/assets/javascripts/icheck/skins/line/line.css +71 -0
- data/vendor/assets/javascripts/icheck/skins/line/line.png +0 -0
- data/vendor/assets/javascripts/icheck/skins/line/line@2x.png +0 -0
- data/vendor/assets/javascripts/icheck/skins/line/orange.css +71 -0
- data/vendor/assets/javascripts/icheck/skins/line/pink.css +71 -0
- data/vendor/assets/javascripts/icheck/skins/line/purple.css +71 -0
- data/vendor/assets/javascripts/icheck/skins/line/red.css +71 -0
- data/vendor/assets/javascripts/icheck/skins/line/yellow.css +71 -0
- data/vendor/assets/javascripts/icheck/skins/minimal/_all.css +590 -0
- data/vendor/assets/javascripts/icheck/skins/minimal/aero.css +59 -0
- data/vendor/assets/javascripts/icheck/skins/minimal/aero.png +0 -0
- data/vendor/assets/javascripts/icheck/skins/minimal/aero@2x.png +0 -0
- data/vendor/assets/javascripts/icheck/skins/minimal/blue.css +59 -0
- data/vendor/assets/javascripts/icheck/skins/minimal/blue.png +0 -0
- data/vendor/assets/javascripts/icheck/skins/minimal/blue@2x.png +0 -0
- data/vendor/assets/javascripts/icheck/skins/minimal/green.css +59 -0
- data/vendor/assets/javascripts/icheck/skins/minimal/green.png +0 -0
- data/vendor/assets/javascripts/icheck/skins/minimal/green@2x.png +0 -0
- data/vendor/assets/javascripts/icheck/skins/minimal/grey.css +59 -0
- data/vendor/assets/javascripts/icheck/skins/minimal/grey.png +0 -0
- data/vendor/assets/javascripts/icheck/skins/minimal/grey@2x.png +0 -0
- data/vendor/assets/javascripts/icheck/skins/minimal/minimal.css +59 -0
- data/vendor/assets/javascripts/icheck/skins/minimal/minimal.png +0 -0
- data/vendor/assets/javascripts/icheck/skins/minimal/minimal@2x.png +0 -0
- data/vendor/assets/javascripts/icheck/skins/minimal/orange.css +59 -0
- data/vendor/assets/javascripts/icheck/skins/minimal/orange.png +0 -0
- data/vendor/assets/javascripts/icheck/skins/minimal/orange@2x.png +0 -0
- data/vendor/assets/javascripts/icheck/skins/minimal/pink.css +59 -0
- data/vendor/assets/javascripts/icheck/skins/minimal/pink.png +0 -0
- data/vendor/assets/javascripts/icheck/skins/minimal/pink@2x.png +0 -0
- data/vendor/assets/javascripts/icheck/skins/minimal/purple.css +59 -0
- data/vendor/assets/javascripts/icheck/skins/minimal/purple.png +0 -0
- data/vendor/assets/javascripts/icheck/skins/minimal/purple@2x.png +0 -0
- data/vendor/assets/javascripts/icheck/skins/minimal/red.css +59 -0
- data/vendor/assets/javascripts/icheck/skins/minimal/red.png +0 -0
- data/vendor/assets/javascripts/icheck/skins/minimal/red@2x.png +0 -0
- data/vendor/assets/javascripts/icheck/skins/minimal/yellow.css +59 -0
- data/vendor/assets/javascripts/icheck/skins/minimal/yellow.png +0 -0
- data/vendor/assets/javascripts/icheck/skins/minimal/yellow@2x.png +0 -0
- data/vendor/assets/javascripts/icheck/skins/polaris/polaris.css +59 -0
- data/vendor/assets/javascripts/icheck/skins/polaris/polaris.png +0 -0
- data/vendor/assets/javascripts/icheck/skins/polaris/polaris@2x.png +0 -0
- data/vendor/assets/javascripts/icheck/skins/square/_all.css +590 -0
- data/vendor/assets/javascripts/icheck/skins/square/aero.css +59 -0
- data/vendor/assets/javascripts/icheck/skins/square/aero.png +0 -0
- data/vendor/assets/javascripts/icheck/skins/square/aero@2x.png +0 -0
- data/vendor/assets/javascripts/icheck/skins/square/blue.css +59 -0
- data/vendor/assets/javascripts/icheck/skins/square/blue.png +0 -0
- data/vendor/assets/javascripts/icheck/skins/square/blue@2x.png +0 -0
- data/vendor/assets/javascripts/icheck/skins/square/green.css +59 -0
- data/vendor/assets/javascripts/icheck/skins/square/green.png +0 -0
- data/vendor/assets/javascripts/icheck/skins/square/green@2x.png +0 -0
- data/vendor/assets/javascripts/icheck/skins/square/grey.css +59 -0
- data/vendor/assets/javascripts/icheck/skins/square/grey.png +0 -0
- data/vendor/assets/javascripts/icheck/skins/square/grey@2x.png +0 -0
- data/vendor/assets/javascripts/icheck/skins/square/orange.css +59 -0
- data/vendor/assets/javascripts/icheck/skins/square/orange.png +0 -0
- data/vendor/assets/javascripts/icheck/skins/square/orange@2x.png +0 -0
- data/vendor/assets/javascripts/icheck/skins/square/pink.css +59 -0
- data/vendor/assets/javascripts/icheck/skins/square/pink.png +0 -0
- data/vendor/assets/javascripts/icheck/skins/square/pink@2x.png +0 -0
- data/vendor/assets/javascripts/icheck/skins/square/purple.css +59 -0
- data/vendor/assets/javascripts/icheck/skins/square/purple.png +0 -0
- data/vendor/assets/javascripts/icheck/skins/square/purple@2x.png +0 -0
- data/vendor/assets/javascripts/icheck/skins/square/red.css +59 -0
- data/vendor/assets/javascripts/icheck/skins/square/red.png +0 -0
- data/vendor/assets/javascripts/icheck/skins/square/red@2x.png +0 -0
- data/vendor/assets/javascripts/icheck/skins/square/square.css +59 -0
- data/vendor/assets/javascripts/icheck/skins/square/square.png +0 -0
- data/vendor/assets/javascripts/icheck/skins/square/square@2x.png +0 -0
- data/vendor/assets/javascripts/icheck/skins/square/yellow.css +59 -0
- data/vendor/assets/javascripts/icheck/skins/square/yellow.png +0 -0
- data/vendor/assets/javascripts/icheck/skins/square/yellow@2x.png +0 -0
- data/vendor/assets/javascripts/inputmask/index.html +0 -0
- data/vendor/assets/javascripts/inputmask/inputmask/jquery.inputmask.date.extensions.js +8 -0
- data/vendor/assets/javascripts/inputmask/inputmask/jquery.inputmask.extensions.js +8 -0
- data/vendor/assets/javascripts/inputmask/inputmask/jquery.inputmask.js +9 -0
- data/vendor/assets/javascripts/inputmask/inputmask/jquery.inputmask.numeric.extensions.js +8 -0
- data/vendor/assets/javascripts/inputmask/inputmask/jquery.inputmask.phone.extensions.js +8 -0
- data/vendor/assets/javascripts/inputmask/inputmask/jquery.inputmask.regex.extensions.js +8 -0
- data/vendor/assets/javascripts/inputmask/jquery.inputmask.bundle.js +9 -0
- data/vendor/assets/javascripts/joinable.js +45 -0
- data/vendor/assets/javascripts/jquery-1.11.1.min.js +4 -0
- data/vendor/assets/javascripts/jquery-ui/external/jquery/jquery.js +9789 -0
- data/vendor/assets/javascripts/jquery-ui/index.html +317 -0
- data/vendor/assets/javascripts/jquery-ui/jquery-ui.css +239 -0
- data/vendor/assets/javascripts/jquery-ui/jquery-ui.js +6343 -0
- data/vendor/assets/javascripts/jquery-ui/jquery-ui.min.css +6 -0
- data/vendor/assets/javascripts/jquery-ui/jquery-ui.min.js +9 -0
- data/vendor/assets/javascripts/jquery-ui/jquery-ui.structure.css +245 -0
- data/vendor/assets/javascripts/jquery-ui/jquery-ui.structure.min.css +5 -0
- data/vendor/assets/javascripts/jquery-validate/additional-methods.js +928 -0
- data/vendor/assets/javascripts/jquery-validate/additional-methods.min.js +4 -0
- data/vendor/assets/javascripts/jquery-validate/index.html +0 -0
- data/vendor/assets/javascripts/jquery-validate/jquery.validate.js +1357 -0
- data/vendor/assets/javascripts/jquery-validate/jquery.validate.min.js +4 -0
- data/vendor/assets/javascripts/jquery-validate/localization/messages_ar.js +33 -0
- data/vendor/assets/javascripts/jquery-validate/localization/messages_ar.min.js +4 -0
- data/vendor/assets/javascripts/jquery-validate/localization/messages_bg.js +33 -0
- data/vendor/assets/javascripts/jquery-validate/localization/messages_bg.min.js +4 -0
- data/vendor/assets/javascripts/jquery-validate/localization/messages_ca.js +33 -0
- data/vendor/assets/javascripts/jquery-validate/localization/messages_ca.min.js +4 -0
- data/vendor/assets/javascripts/jquery-validate/localization/messages_cs.js +33 -0
- data/vendor/assets/javascripts/jquery-validate/localization/messages_cs.min.js +4 -0
- data/vendor/assets/javascripts/jquery-validate/localization/messages_da.js +30 -0
- data/vendor/assets/javascripts/jquery-validate/localization/messages_da.min.js +4 -0
- data/vendor/assets/javascripts/jquery-validate/localization/messages_de.js +30 -0
- data/vendor/assets/javascripts/jquery-validate/localization/messages_de.min.js +4 -0
- data/vendor/assets/javascripts/jquery-validate/localization/messages_el.js +33 -0
- data/vendor/assets/javascripts/jquery-validate/localization/messages_el.min.js +4 -0
- data/vendor/assets/javascripts/jquery-validate/localization/messages_es.js +36 -0
- data/vendor/assets/javascripts/jquery-validate/localization/messages_es.min.js +4 -0
- data/vendor/assets/javascripts/jquery-validate/localization/messages_es_AR.js +37 -0
- data/vendor/assets/javascripts/jquery-validate/localization/messages_es_AR.min.js +4 -0
- data/vendor/assets/javascripts/jquery-validate/localization/messages_et.js +31 -0
- data/vendor/assets/javascripts/jquery-validate/localization/messages_et.min.js +4 -0
- data/vendor/assets/javascripts/jquery-validate/localization/messages_eu.js +33 -0
- data/vendor/assets/javascripts/jquery-validate/localization/messages_eu.min.js +4 -0
- data/vendor/assets/javascripts/jquery-validate/localization/messages_fa.js +36 -0
- data/vendor/assets/javascripts/jquery-validate/localization/messages_fa.min.js +4 -0
- data/vendor/assets/javascripts/jquery-validate/localization/messages_fi.js +31 -0
- data/vendor/assets/javascripts/jquery-validate/localization/messages_fi.min.js +4 -0
- data/vendor/assets/javascripts/jquery-validate/localization/messages_fr.js +59 -0
- data/vendor/assets/javascripts/jquery-validate/localization/messages_fr.min.js +4 -0
- data/vendor/assets/javascripts/jquery-validate/localization/messages_gl.js +38 -0
- data/vendor/assets/javascripts/jquery-validate/localization/messages_gl.min.js +4 -0
- data/vendor/assets/javascripts/jquery-validate/localization/messages_he.js +33 -0
- data/vendor/assets/javascripts/jquery-validate/localization/messages_he.min.js +4 -0
- data/vendor/assets/javascripts/jquery-validate/localization/messages_hr.js +33 -0
- data/vendor/assets/javascripts/jquery-validate/localization/messages_hr.min.js +4 -0
- data/vendor/assets/javascripts/jquery-validate/localization/messages_hu.js +32 -0
- data/vendor/assets/javascripts/jquery-validate/localization/messages_hu.min.js +4 -0
- data/vendor/assets/javascripts/jquery-validate/localization/messages_id.js +32 -0
- data/vendor/assets/javascripts/jquery-validate/localization/messages_id.min.js +4 -0
- data/vendor/assets/javascripts/jquery-validate/localization/messages_is.js +31 -0
- data/vendor/assets/javascripts/jquery-validate/localization/messages_is.min.js +4 -0
- data/vendor/assets/javascripts/jquery-validate/localization/messages_it.js +36 -0
- data/vendor/assets/javascripts/jquery-validate/localization/messages_it.min.js +4 -0
- data/vendor/assets/javascripts/jquery-validate/localization/messages_ja.js +33 -0
- data/vendor/assets/javascripts/jquery-validate/localization/messages_ja.min.js +4 -0
- data/vendor/assets/javascripts/jquery-validate/localization/messages_ka.js +33 -0
- data/vendor/assets/javascripts/jquery-validate/localization/messages_ka.min.js +4 -0
- data/vendor/assets/javascripts/jquery-validate/localization/messages_kk.js +33 -0
- data/vendor/assets/javascripts/jquery-validate/localization/messages_kk.min.js +4 -0
- data/vendor/assets/javascripts/jquery-validate/localization/messages_ko.js +33 -0
- data/vendor/assets/javascripts/jquery-validate/localization/messages_ko.min.js +4 -0
- data/vendor/assets/javascripts/jquery-validate/localization/messages_lt.js +33 -0
- data/vendor/assets/javascripts/jquery-validate/localization/messages_lt.min.js +4 -0
- data/vendor/assets/javascripts/jquery-validate/localization/messages_lv.js +33 -0
- data/vendor/assets/javascripts/jquery-validate/localization/messages_lv.min.js +4 -0
- data/vendor/assets/javascripts/jquery-validate/localization/messages_my.js +33 -0
- data/vendor/assets/javascripts/jquery-validate/localization/messages_my.min.js +4 -0
- data/vendor/assets/javascripts/jquery-validate/localization/messages_nl.js +43 -0
- data/vendor/assets/javascripts/jquery-validate/localization/messages_nl.min.js +4 -0
- data/vendor/assets/javascripts/jquery-validate/localization/messages_no.js +33 -0
- data/vendor/assets/javascripts/jquery-validate/localization/messages_no.min.js +4 -0
- data/vendor/assets/javascripts/jquery-validate/localization/messages_pl.js +33 -0
- data/vendor/assets/javascripts/jquery-validate/localization/messages_pl.min.js +4 -0
- data/vendor/assets/javascripts/jquery-validate/localization/messages_pt_BR.js +37 -0
- data/vendor/assets/javascripts/jquery-validate/localization/messages_pt_BR.min.js +4 -0
- data/vendor/assets/javascripts/jquery-validate/localization/messages_pt_PT.js +37 -0
- data/vendor/assets/javascripts/jquery-validate/localization/messages_pt_PT.min.js +4 -0
- data/vendor/assets/javascripts/jquery-validate/localization/messages_ro.js +33 -0
- data/vendor/assets/javascripts/jquery-validate/localization/messages_ro.min.js +4 -0
- data/vendor/assets/javascripts/jquery-validate/localization/messages_ru.js +33 -0
- data/vendor/assets/javascripts/jquery-validate/localization/messages_ru.min.js +4 -0
- data/vendor/assets/javascripts/jquery-validate/localization/messages_si.js +33 -0
- data/vendor/assets/javascripts/jquery-validate/localization/messages_si.min.js +4 -0
- data/vendor/assets/javascripts/jquery-validate/localization/messages_sk.js +30 -0
- data/vendor/assets/javascripts/jquery-validate/localization/messages_sk.min.js +4 -0
- data/vendor/assets/javascripts/jquery-validate/localization/messages_sl.js +33 -0
- data/vendor/assets/javascripts/jquery-validate/localization/messages_sl.min.js +4 -0
- data/vendor/assets/javascripts/jquery-validate/localization/messages_sr.js +33 -0
- data/vendor/assets/javascripts/jquery-validate/localization/messages_sr.min.js +4 -0
- data/vendor/assets/javascripts/jquery-validate/localization/messages_sr_lat.js +33 -0
- data/vendor/assets/javascripts/jquery-validate/localization/messages_sr_lat.min.js +4 -0
- data/vendor/assets/javascripts/jquery-validate/localization/messages_sv.js +31 -0
- data/vendor/assets/javascripts/jquery-validate/localization/messages_sv.min.js +4 -0
- data/vendor/assets/javascripts/jquery-validate/localization/messages_th.js +33 -0
- data/vendor/assets/javascripts/jquery-validate/localization/messages_th.min.js +4 -0
- data/vendor/assets/javascripts/jquery-validate/localization/messages_tj.js +33 -0
- data/vendor/assets/javascripts/jquery-validate/localization/messages_tj.min.js +4 -0
- data/vendor/assets/javascripts/jquery-validate/localization/messages_tr.js +33 -0
- data/vendor/assets/javascripts/jquery-validate/localization/messages_tr.min.js +4 -0
- data/vendor/assets/javascripts/jquery-validate/localization/messages_uk.js +33 -0
- data/vendor/assets/javascripts/jquery-validate/localization/messages_uk.min.js +4 -0
- data/vendor/assets/javascripts/jquery-validate/localization/messages_vi.js +33 -0
- data/vendor/assets/javascripts/jquery-validate/localization/messages_vi.min.js +4 -0
- data/vendor/assets/javascripts/jquery-validate/localization/messages_zh.js +33 -0
- data/vendor/assets/javascripts/jquery-validate/localization/messages_zh.min.js +4 -0
- data/vendor/assets/javascripts/jquery-validate/localization/messages_zh_TW.js +34 -0
- data/vendor/assets/javascripts/jquery-validate/localization/messages_zh_TW.min.js +4 -0
- data/vendor/assets/javascripts/jquery-validate/localization/methods_de.js +22 -0
- data/vendor/assets/javascripts/jquery-validate/localization/methods_de.min.js +4 -0
- data/vendor/assets/javascripts/jquery-validate/localization/methods_es_CL.js +22 -0
- data/vendor/assets/javascripts/jquery-validate/localization/methods_es_CL.min.js +4 -0
- data/vendor/assets/javascripts/jquery-validate/localization/methods_fi.js +22 -0
- data/vendor/assets/javascripts/jquery-validate/localization/methods_fi.min.js +4 -0
- data/vendor/assets/javascripts/jquery-validate/localization/methods_nl.js +19 -0
- data/vendor/assets/javascripts/jquery-validate/localization/methods_nl.min.js +4 -0
- data/vendor/assets/javascripts/jquery-validate/localization/methods_pt.js +19 -0
- data/vendor/assets/javascripts/jquery-validate/localization/methods_pt.min.js +4 -0
- data/vendor/assets/javascripts/jquery.mousewheel.js +201 -0
- data/vendor/assets/javascripts/jvectormap/index.html +0 -0
- data/vendor/assets/javascripts/jvectormap/jquery-jvectormap-1.1.1.css +37 -0
- data/vendor/assets/javascripts/jvectormap/jquery-jvectormap-1.1.1.min.js +7 -0
- data/vendor/assets/javascripts/jvectormap/jquery-jvectormap-1.2.2.css +37 -0
- data/vendor/assets/javascripts/jvectormap/jquery-jvectormap-1.2.2.min.js +8 -0
- data/vendor/assets/javascripts/jvectormap/regions/index.html +0 -0
- data/vendor/assets/javascripts/jvectormap/regions/jquery-jvectormap-it-mill-en.js +1 -0
- data/vendor/assets/javascripts/jvectormap/regions/jquery-jvectormap-world-mill-en.js +1 -0
- data/vendor/assets/javascripts/knob/index.html +0 -0
- data/vendor/assets/javascripts/knob/jquery.knob.min.js +1 -0
- data/vendor/assets/javascripts/min/bootstrap.min-min.js +2 -0
- data/vendor/assets/javascripts/min/resizeable-min.js +1 -0
- data/vendor/assets/javascripts/min/xenon-notes-min.js +1 -0
- data/vendor/assets/javascripts/min/xenon-toggles-min.js +1 -0
- data/vendor/assets/javascripts/moment.min.js +6 -0
- data/vendor/assets/javascripts/multiselect/css/index.html +0 -0
- data/vendor/assets/javascripts/multiselect/css/multi-select.css +93 -0
- data/vendor/assets/javascripts/multiselect/img/index.html +0 -0
- data/vendor/assets/javascripts/multiselect/img/switch.png +0 -0
- data/vendor/assets/javascripts/multiselect/index.html +0 -0
- data/vendor/assets/javascripts/multiselect/js/index.html +0 -0
- data/vendor/assets/javascripts/multiselect/js/jquery.multi-select.js +532 -0
- data/vendor/assets/javascripts/resizeable.js +122 -0
- data/vendor/assets/javascripts/rwd-table/css/rwd-table.css +306 -0
- data/vendor/assets/javascripts/rwd-table/css/rwd-table.min.css +7 -0
- data/vendor/assets/javascripts/rwd-table/index.html +0 -0
- data/vendor/assets/javascripts/rwd-table/js/rwd-table.js +674 -0
- data/vendor/assets/javascripts/rwd-table/js/rwd-table.min.js +7 -0
- data/vendor/assets/javascripts/select2/LICENSE +18 -0
- data/vendor/assets/javascripts/select2/index.html +0 -0
- data/vendor/assets/javascripts/select2/select2-bootstrap.css +87 -0
- data/vendor/assets/javascripts/select2/select2-spinner.gif +0 -0
- data/vendor/assets/javascripts/select2/select2.css +704 -0
- data/vendor/assets/javascripts/select2/select2.jquery.json +36 -0
- data/vendor/assets/javascripts/select2/select2.js +3508 -0
- data/vendor/assets/javascripts/select2/select2.min.js +23 -0
- data/vendor/assets/javascripts/select2/select2.png +0 -0
- data/vendor/assets/javascripts/select2/select2_locale_ar.js +19 -0
- data/vendor/assets/javascripts/select2/select2_locale_az.js +20 -0
- data/vendor/assets/javascripts/select2/select2_locale_bg.js +20 -0
- data/vendor/assets/javascripts/select2/select2_locale_ca.js +19 -0
- data/vendor/assets/javascripts/select2/select2_locale_cs.js +51 -0
- data/vendor/assets/javascripts/select2/select2_locale_da.js +19 -0
- data/vendor/assets/javascripts/select2/select2_locale_de.js +18 -0
- data/vendor/assets/javascripts/select2/select2_locale_el.js +19 -0
- data/vendor/assets/javascripts/select2/select2_locale_en.js.template +20 -0
- data/vendor/assets/javascripts/select2/select2_locale_es.js +17 -0
- data/vendor/assets/javascripts/select2/select2_locale_et.js +19 -0
- data/vendor/assets/javascripts/select2/select2_locale_eu.js +45 -0
- data/vendor/assets/javascripts/select2/select2_locale_fa.js +21 -0
- data/vendor/assets/javascripts/select2/select2_locale_fi.js +30 -0
- data/vendor/assets/javascripts/select2/select2_locale_fr.js +18 -0
- data/vendor/assets/javascripts/select2/select2_locale_gl.js +45 -0
- data/vendor/assets/javascripts/select2/select2_locale_he.js +19 -0
- data/vendor/assets/javascripts/select2/select2_locale_hr.js +24 -0
- data/vendor/assets/javascripts/select2/select2_locale_hu.js +17 -0
- data/vendor/assets/javascripts/select2/select2_locale_id.js +19 -0
- data/vendor/assets/javascripts/select2/select2_locale_is.js +17 -0
- data/vendor/assets/javascripts/select2/select2_locale_it.js +17 -0
- data/vendor/assets/javascripts/select2/select2_locale_ja.js +17 -0
- data/vendor/assets/javascripts/select2/select2_locale_ka.js +19 -0
- data/vendor/assets/javascripts/select2/select2_locale_ko.js +19 -0
- data/vendor/assets/javascripts/select2/select2_locale_lt.js +26 -0
- data/vendor/assets/javascripts/select2/select2_locale_lv.js +19 -0
- data/vendor/assets/javascripts/select2/select2_locale_mk.js +19 -0
- data/vendor/assets/javascripts/select2/select2_locale_ms.js +19 -0
- data/vendor/assets/javascripts/select2/select2_locale_nl.js +17 -0
- data/vendor/assets/javascripts/select2/select2_locale_no.js +20 -0
- data/vendor/assets/javascripts/select2/select2_locale_pl.js +25 -0
- data/vendor/assets/javascripts/select2/select2_locale_pt-BR.js +17 -0
- data/vendor/assets/javascripts/select2/select2_locale_pt-PT.js +17 -0
- data/vendor/assets/javascripts/select2/select2_locale_ro.js +17 -0
- data/vendor/assets/javascripts/select2/select2_locale_rs.js +19 -0
- data/vendor/assets/javascripts/select2/select2_locale_ru.js +23 -0
- data/vendor/assets/javascripts/select2/select2_locale_sk.js +50 -0
- data/vendor/assets/javascripts/select2/select2_locale_sv.js +19 -0
- data/vendor/assets/javascripts/select2/select2_locale_th.js +19 -0
- data/vendor/assets/javascripts/select2/select2_locale_tr.js +19 -0
- data/vendor/assets/javascripts/select2/select2_locale_ug-CN.js +16 -0
- data/vendor/assets/javascripts/select2/select2_locale_uk.js +25 -0
- data/vendor/assets/javascripts/select2/select2_locale_vi.js +20 -0
- data/vendor/assets/javascripts/select2/select2_locale_zh-CN.js +16 -0
- data/vendor/assets/javascripts/select2/select2_locale_zh-TW.js +16 -0
- data/vendor/assets/javascripts/select2/select2x2.png +0 -0
- data/vendor/assets/javascripts/selectboxit/index.html +0 -0
- data/vendor/assets/javascripts/selectboxit/jquery.selectBoxIt.css +278 -0
- data/vendor/assets/javascripts/selectboxit/jquery.selectBoxIt.js +3259 -0
- data/vendor/assets/javascripts/selectboxit/jquery.selectBoxIt.min.js +4 -0
- data/vendor/assets/javascripts/tagsinput/bootstrap-tagsinput.css +46 -0
- data/vendor/assets/javascripts/tagsinput/bootstrap-tagsinput.js +617 -0
- data/vendor/assets/javascripts/tagsinput/bootstrap-tagsinput.less +50 -0
- data/vendor/assets/javascripts/tagsinput/bootstrap-tagsinput.min.js +7 -0
- data/vendor/assets/javascripts/tagsinput/bootstrap-tagsinput.min.js.map +1 -0
- data/vendor/assets/javascripts/tagsinput/index.html +0 -0
- data/vendor/assets/javascripts/tagsinput/min/bootstrap-tagsinput.min-min.js +8 -0
- data/vendor/assets/javascripts/timepicker/bootstrap-timepicker.min.js +5 -0
- data/vendor/assets/javascripts/timepicker/index.html +0 -0
- data/vendor/assets/javascripts/toastr/index.html +0 -0
- data/vendor/assets/javascripts/toastr/toastr-icon.png +0 -0
- data/vendor/assets/javascripts/toastr/toastr.css +180 -0
- data/vendor/assets/javascripts/toastr/toastr.js +350 -0
- data/vendor/assets/javascripts/toastr/toastr.less +232 -0
- data/vendor/assets/javascripts/toastr/toastr.min.css +1 -0
- data/vendor/assets/javascripts/toastr/toastr.min.js +1 -0
- data/vendor/assets/javascripts/toastr/toastr.min.js.map +8 -0
- data/vendor/assets/javascripts/toastr/toastr.scss +183 -0
- data/vendor/assets/javascripts/tocify/index.html +0 -0
- data/vendor/assets/javascripts/tocify/jquery.tocify.css +62 -0
- data/vendor/assets/javascripts/tocify/jquery.tocify.min.js +4 -0
- data/vendor/assets/javascripts/typeahead.bundle.js +1782 -0
- data/vendor/assets/javascripts/uikit/css/addons/uikit.addons.css +1253 -0
- data/vendor/assets/javascripts/uikit/css/addons/uikit.addons.min.css +3 -0
- data/vendor/assets/javascripts/uikit/css/addons/uikit.almost-flat.addons.css +1334 -0
- data/vendor/assets/javascripts/uikit/css/addons/uikit.almost-flat.addons.min.css +3 -0
- data/vendor/assets/javascripts/uikit/css/addons/uikit.gradient.addons.css +1355 -0
- data/vendor/assets/javascripts/uikit/css/addons/uikit.gradient.addons.min.css +3 -0
- data/vendor/assets/javascripts/uikit/css/index.html +0 -0
- data/vendor/assets/javascripts/uikit/css/uikit.almost-flat.css +7273 -0
- data/vendor/assets/javascripts/uikit/css/uikit.almost-flat.min.css +3 -0
- data/vendor/assets/javascripts/uikit/css/uikit.css +1 -0
- data/vendor/assets/javascripts/uikit/css/uikit.gradient.css +7341 -0
- data/vendor/assets/javascripts/uikit/css/uikit.gradient.min.css +3 -0
- data/vendor/assets/javascripts/uikit/css/uikit.min.css +3 -0
- data/vendor/assets/javascripts/uikit/fonts/FontAwesome.otf +0 -0
- data/vendor/assets/javascripts/uikit/fonts/fontawesome-webfont.eot +0 -0
- data/vendor/assets/javascripts/uikit/fonts/fontawesome-webfont.ttf +0 -0
- data/vendor/assets/javascripts/uikit/fonts/fontawesome-webfont.woff +0 -0
- data/vendor/assets/javascripts/uikit/fonts/index.html +0 -0
- data/vendor/assets/javascripts/uikit/index.html +0 -0
- data/vendor/assets/javascripts/uikit/js/addons/autocomplete.js +305 -0
- data/vendor/assets/javascripts/uikit/js/addons/autocomplete.min.js +3 -0
- data/vendor/assets/javascripts/uikit/js/addons/cover.js +90 -0
- data/vendor/assets/javascripts/uikit/js/addons/cover.min.js +3 -0
- data/vendor/assets/javascripts/uikit/js/addons/datepicker.js +379 -0
- data/vendor/assets/javascripts/uikit/js/addons/datepicker.min.js +3 -0
- data/vendor/assets/javascripts/uikit/js/addons/form-password.js +62 -0
- data/vendor/assets/javascripts/uikit/js/addons/form-password.min.js +3 -0
- data/vendor/assets/javascripts/uikit/js/addons/form-select.js +62 -0
- data/vendor/assets/javascripts/uikit/js/addons/form-select.min.js +3 -0
- data/vendor/assets/javascripts/uikit/js/addons/htmleditor.js +615 -0
- data/vendor/assets/javascripts/uikit/js/addons/htmleditor.min.js +3 -0
- data/vendor/assets/javascripts/uikit/js/addons/nestable.js +575 -0
- data/vendor/assets/javascripts/uikit/js/addons/nestable.min.js +3 -0
- data/vendor/assets/javascripts/uikit/js/addons/notify.js +180 -0
- data/vendor/assets/javascripts/uikit/js/addons/notify.min.js +3 -0
- data/vendor/assets/javascripts/uikit/js/addons/pagination.js +146 -0
- data/vendor/assets/javascripts/uikit/js/addons/pagination.min.js +3 -0
- data/vendor/assets/javascripts/uikit/js/addons/search.js +90 -0
- data/vendor/assets/javascripts/uikit/js/addons/search.min.js +3 -0
- data/vendor/assets/javascripts/uikit/js/addons/sortable.js +520 -0
- data/vendor/assets/javascripts/uikit/js/addons/sortable.min.js +3 -0
- data/vendor/assets/javascripts/uikit/js/addons/sticky.js +240 -0
- data/vendor/assets/javascripts/uikit/js/addons/sticky.min.js +3 -0
- data/vendor/assets/javascripts/uikit/js/addons/timepicker.js +165 -0
- data/vendor/assets/javascripts/uikit/js/addons/timepicker.min.js +3 -0
- data/vendor/assets/javascripts/uikit/js/addons/upload.js +256 -0
- data/vendor/assets/javascripts/uikit/js/addons/upload.min.js +3 -0
- data/vendor/assets/javascripts/uikit/js/index.html +0 -0
- data/vendor/assets/javascripts/uikit/js/uikit.js +2592 -0
- data/vendor/assets/javascripts/uikit/js/uikit.min.js +4 -0
- data/vendor/assets/javascripts/uikit/less/addons/autocomplete.less +102 -0
- data/vendor/assets/javascripts/uikit/less/addons/cover.less +70 -0
- data/vendor/assets/javascripts/uikit/less/addons/datepicker.less +193 -0
- data/vendor/assets/javascripts/uikit/less/addons/dotnav.less +141 -0
- data/vendor/assets/javascripts/uikit/less/addons/flex.less +62 -0
- data/vendor/assets/javascripts/uikit/less/addons/form-advanced.less +123 -0
- data/vendor/assets/javascripts/uikit/less/addons/form-file.less +63 -0
- data/vendor/assets/javascripts/uikit/less/addons/form-password.less +74 -0
- data/vendor/assets/javascripts/uikit/less/addons/form-select.less +66 -0
- data/vendor/assets/javascripts/uikit/less/addons/htmleditor.less +274 -0
- data/vendor/assets/javascripts/uikit/less/addons/nestable.less +204 -0
- data/vendor/assets/javascripts/uikit/less/addons/notify.less +191 -0
- data/vendor/assets/javascripts/uikit/less/addons/placeholder.less +66 -0
- data/vendor/assets/javascripts/uikit/less/addons/search.less +310 -0
- data/vendor/assets/javascripts/uikit/less/addons/slidenav.less +164 -0
- data/vendor/assets/javascripts/uikit/less/addons/sortable.less +110 -0
- data/vendor/assets/javascripts/uikit/less/addons/sticky.less +52 -0
- data/vendor/assets/javascripts/uikit/less/addons/upload.less +34 -0
- data/vendor/assets/javascripts/uikit/less/alert.less +141 -0
- data/vendor/assets/javascripts/uikit/less/animation.less +580 -0
- data/vendor/assets/javascripts/uikit/less/article.less +139 -0
- data/vendor/assets/javascripts/uikit/less/badge.less +111 -0
- data/vendor/assets/javascripts/uikit/less/base.less +521 -0
- data/vendor/assets/javascripts/uikit/less/breadcrumb.less +86 -0
- data/vendor/assets/javascripts/uikit/less/button.less +407 -0
- data/vendor/assets/javascripts/uikit/less/close.less +133 -0
- data/vendor/assets/javascripts/uikit/less/comment.less +172 -0
- data/vendor/assets/javascripts/uikit/less/description-list.less +70 -0
- data/vendor/assets/javascripts/uikit/less/dropdown.less +272 -0
- data/vendor/assets/javascripts/uikit/less/form.less +623 -0
- data/vendor/assets/javascripts/uikit/less/grid.less +593 -0
- data/vendor/assets/javascripts/uikit/less/icon.less +695 -0
- data/vendor/assets/javascripts/uikit/less/index.html +0 -0
- data/vendor/assets/javascripts/uikit/less/list.less +102 -0
- data/vendor/assets/javascripts/uikit/less/modal.less +226 -0
- data/vendor/assets/javascripts/uikit/less/nav.less +468 -0
- data/vendor/assets/javascripts/uikit/less/navbar.less +327 -0
- data/vendor/assets/javascripts/uikit/less/offcanvas.less +162 -0
- data/vendor/assets/javascripts/uikit/less/overlay.less +241 -0
- data/vendor/assets/javascripts/uikit/less/pagination.less +198 -0
- data/vendor/assets/javascripts/uikit/less/panel.less +244 -0
- data/vendor/assets/javascripts/uikit/less/print.less +52 -0
- data/vendor/assets/javascripts/uikit/less/progress.less +174 -0
- data/vendor/assets/javascripts/uikit/less/subnav.less +183 -0
- data/vendor/assets/javascripts/uikit/less/switcher.less +33 -0
- data/vendor/assets/javascripts/uikit/less/tab.less +368 -0
- data/vendor/assets/javascripts/uikit/less/table.less +120 -0
- data/vendor/assets/javascripts/uikit/less/text.less +124 -0
- data/vendor/assets/javascripts/uikit/less/thumbnail.less +123 -0
- data/vendor/assets/javascripts/uikit/less/tooltip.less +179 -0
- data/vendor/assets/javascripts/uikit/less/uikit-addons.less +26 -0
- data/vendor/assets/javascripts/uikit/less/uikit.css +4426 -0
- data/vendor/assets/javascripts/uikit/less/uikit.less +53 -0
- data/vendor/assets/javascripts/uikit/less/utility.less +526 -0
- data/vendor/assets/javascripts/uikit/less/variables.less +27 -0
- data/vendor/assets/javascripts/uikit/uikit.css +1 -0
- data/vendor/assets/javascripts/uikit/vendor/codemirror/codemirror.css +340 -0
- data/vendor/assets/javascripts/uikit/vendor/codemirror/codemirror.js +65 -0
- data/vendor/assets/javascripts/uikit/vendor/codemirror/show-hint.css +38 -0
- data/vendor/assets/javascripts/uikit/vendor/customizer.js +290 -0
- data/vendor/assets/javascripts/uikit/vendor/highlight/highlight.css +127 -0
- data/vendor/assets/javascripts/uikit/vendor/highlight/highlight.js +1 -0
- data/vendor/assets/javascripts/uikit/vendor/highlight/test.html +45 -0
- data/vendor/assets/javascripts/uikit/vendor/holder.js +648 -0
- data/vendor/assets/javascripts/uikit/vendor/index.html +0 -0
- data/vendor/assets/javascripts/uikit/vendor/jquery.js +4 -0
- data/vendor/assets/javascripts/uikit/vendor/jquery.less.js +274 -0
- data/vendor/assets/javascripts/uikit/vendor/jquery.mustache.js +16 -0
- data/vendor/assets/javascripts/uikit/vendor/jquery.rtl.js +271 -0
- data/vendor/assets/javascripts/uikit/vendor/less.js +16 -0
- data/vendor/assets/javascripts/uikit/vendor/marked.js +1272 -0
- data/vendor/assets/javascripts/uikit/vendor/spectrum/spectrum.css +480 -0
- data/vendor/assets/javascripts/uikit/vendor/spectrum/spectrum.js +1889 -0
- data/vendor/assets/javascripts/uikit/vendor/spectrum/test.html +343 -0
- data/vendor/assets/javascripts/wysihtml5/index.html +0 -0
- data/vendor/assets/javascripts/wysihtml5/lib/css/bootstrap-responsive.css +686 -0
- data/vendor/assets/javascripts/wysihtml5/lib/css/bootstrap-responsive.min.css +12 -0
- data/vendor/assets/javascripts/wysihtml5/lib/css/bootstrap.css +3990 -0
- data/vendor/assets/javascripts/wysihtml5/lib/css/bootstrap.min.css +689 -0
- data/vendor/assets/javascripts/wysihtml5/lib/css/index.html +0 -0
- data/vendor/assets/javascripts/wysihtml5/lib/css/prettify.css +30 -0
- data/vendor/assets/javascripts/wysihtml5/lib/css/wysiwyg-color.css +67 -0
- data/vendor/assets/javascripts/wysihtml5/lib/img/glyphicons-halflings-white.png +0 -0
- data/vendor/assets/javascripts/wysihtml5/lib/img/glyphicons-halflings.png +0 -0
- data/vendor/assets/javascripts/wysihtml5/lib/img/index.html +0 -0
- data/vendor/assets/javascripts/wysihtml5/lib/index.html +0 -0
- data/vendor/assets/javascripts/wysihtml5/lib/js/bootstrap-button.js +100 -0
- data/vendor/assets/javascripts/wysihtml5/lib/js/bootstrap.js +2025 -0
- data/vendor/assets/javascripts/wysihtml5/lib/js/bootstrap.min.js +6 -0
- data/vendor/assets/javascripts/wysihtml5/lib/js/index.html +0 -0
- data/vendor/assets/javascripts/wysihtml5/lib/js/jquery-1.7.2.min.js +4 -0
- data/vendor/assets/javascripts/wysihtml5/lib/js/prettify.js +28 -0
- data/vendor/assets/javascripts/wysihtml5/lib/js/wysihtml5-0.3.0.js +9523 -0
- data/vendor/assets/javascripts/wysihtml5/lib/js/wysihtml5-0.3.0.min.js +261 -0
- data/vendor/assets/javascripts/wysihtml5/src/bootstrap-wysihtml5.css +102 -0
- data/vendor/assets/javascripts/wysihtml5/src/bootstrap-wysihtml5.js +519 -0
- data/vendor/assets/javascripts/wysihtml5/src/index.html +0 -0
- data/vendor/assets/javascripts/wysihtml5/src/locales/bootstrap-wysihtml5.ar-AR.js +49 -0
- data/vendor/assets/javascripts/wysihtml5/src/locales/bootstrap-wysihtml5.bg-BG.js +49 -0
- data/vendor/assets/javascripts/wysihtml5/src/locales/bootstrap-wysihtml5.ca-CT.js +47 -0
- data/vendor/assets/javascripts/wysihtml5/src/locales/bootstrap-wysihtml5.cs-CZ.js +48 -0
- data/vendor/assets/javascripts/wysihtml5/src/locales/bootstrap-wysihtml5.da-DK.js +48 -0
- data/vendor/assets/javascripts/wysihtml5/src/locales/bootstrap-wysihtml5.de-DE.js +49 -0
- data/vendor/assets/javascripts/wysihtml5/src/locales/bootstrap-wysihtml5.el-GR.js +48 -0
- data/vendor/assets/javascripts/wysihtml5/src/locales/bootstrap-wysihtml5.es-AR.js +49 -0
- data/vendor/assets/javascripts/wysihtml5/src/locales/bootstrap-wysihtml5.es-ES.js +48 -0
- data/vendor/assets/javascripts/wysihtml5/src/locales/bootstrap-wysihtml5.fr-FR.js +49 -0
- data/vendor/assets/javascripts/wysihtml5/src/locales/bootstrap-wysihtml5.hr-HR.js +48 -0
- data/vendor/assets/javascripts/wysihtml5/src/locales/bootstrap-wysihtml5.it-IT.js +47 -0
- data/vendor/assets/javascripts/wysihtml5/src/locales/bootstrap-wysihtml5.ja-JP.js +49 -0
- data/vendor/assets/javascripts/wysihtml5/src/locales/bootstrap-wysihtml5.ko-KR.js +49 -0
- data/vendor/assets/javascripts/wysihtml5/src/locales/bootstrap-wysihtml5.lt-LT.js +48 -0
- data/vendor/assets/javascripts/wysihtml5/src/locales/bootstrap-wysihtml5.mo-MD.js +48 -0
- data/vendor/assets/javascripts/wysihtml5/src/locales/bootstrap-wysihtml5.nb-NB.js +49 -0
- data/vendor/assets/javascripts/wysihtml5/src/locales/bootstrap-wysihtml5.nl-NL.js +48 -0
- data/vendor/assets/javascripts/wysihtml5/src/locales/bootstrap-wysihtml5.pl-PL.js +48 -0
- data/vendor/assets/javascripts/wysihtml5/src/locales/bootstrap-wysihtml5.pt-BR.js +52 -0
- data/vendor/assets/javascripts/wysihtml5/src/locales/bootstrap-wysihtml5.ru-RU.js +49 -0
- data/vendor/assets/javascripts/wysihtml5/src/locales/bootstrap-wysihtml5.sk-SK.js +48 -0
- data/vendor/assets/javascripts/wysihtml5/src/locales/bootstrap-wysihtml5.sv-SE.js +48 -0
- data/vendor/assets/javascripts/wysihtml5/src/locales/bootstrap-wysihtml5.tr-TR.js +48 -0
- data/vendor/assets/javascripts/wysihtml5/src/locales/bootstrap-wysihtml5.ua-UA.js +49 -0
- data/vendor/assets/javascripts/wysihtml5/src/locales/bootstrap-wysihtml5.zh-CN.js +48 -0
- data/vendor/assets/javascripts/wysihtml5/src/locales/bootstrap-wysihtml5.zh-TW.js +48 -0
- data/vendor/assets/javascripts/wysihtml5/src/locales/index.html +0 -0
- data/vendor/assets/javascripts/wysihtml5/wysihtml5-angular.js +10042 -0
- data/vendor/assets/javascripts/xenon-api.js +91 -0
- data/vendor/assets/javascripts/xenon-custom.js +1950 -0
- data/vendor/assets/javascripts/xenon-notes.js +189 -0
- data/vendor/assets/javascripts/xenon-toggles.js +321 -0
- data/vendor/assets/javascripts/xenon-widgets.js +171 -0
- data/vendor/assets/stylesheets/bootstrap.css +1 -0
- data/vendor/assets/stylesheets/handycss.css +996 -0
- data/vendor/assets/stylesheets/other/wysihtml5-color.css +67 -0
- data/vendor/assets/stylesheets/xenon-components.css +1 -0
- data/vendor/assets/stylesheets/xenon-core.css +1 -0
- data/vendor/assets/stylesheets/xenon-forms.css +18 -0
- data/vendor/assets/stylesheets/xenon-skins.css +1 -0
- data/vendor/assets/stylesheets/xenon.css +18 -0
- metadata +1341 -0
@@ -0,0 +1,3 @@
|
|
1
|
+
/*! UIkit 2.10.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
|
2
|
+
|
3
|
+
!function(a){var b;jQuery&&jQuery.UIkit&&(b=a(jQuery,jQuery.UIkit)),"function"==typeof define&&define.amd&&define("uikit-upload",["uikit"],function(){return b||a(jQuery,jQuery.UIkit)})}(function(a,b){function c(e,f){function g(b,c){var d=new FormData,e=new XMLHttpRequest;if(c.before(c,b)!==!1){for(var f,g=0;f=b[g];g++)d.append(c.param,f);for(var h in c.params)d.append(h,c.params[h]);e.upload.addEventListener("progress",function(a){var b=a.loaded/a.total*100;c.progress(b,a)},!1),e.addEventListener("loadstart",function(a){c.loadstart(a)},!1),e.addEventListener("load",function(a){c.load(a)},!1),e.addEventListener("loadend",function(a){c.loadend(a)},!1),e.addEventListener("error",function(a){c.error(a)},!1),e.addEventListener("abort",function(a){c.abort(a)},!1),e.open(c.method,c.action,!0),e.onreadystatechange=function(){if(c.readystatechange(e),4==e.readyState){var b=e.responseText;if("json"==c.type)try{b=a.parseJSON(b)}catch(d){b=!1}c.complete(b,e)}},c.beforeSend(e),e.send(d)}}if(!b.support.ajaxupload)return this;if(f=a.extend({},c.defaults,f),e.length){if("*.*"!==f.allow)for(var h,i=0;h=e[i];i++)if(!d(f.allow,h.name))return void("string"==typeof f.notallowed?alert(f.notallowed):f.notallowed(h,f));var j=f.complete;if(f.single){var k=e.length,l=0,m=!0;f.beforeAll(e),f.complete=function(a,b){l+=1,j(a,b),f.filelimit&&l>=f.filelimit&&(m=!1),m&&k>l?g([e[l]],f):f.allcomplete(a,b)},g([e[0]],f)}else f.complete=function(a,b){j(a,b),f.allcomplete(a,b)},g(e,f)}}function d(a,b){var c="^"+a.replace(/\//g,"\\/").replace(/\*\*/g,"(\\/[^\\/]+)*").replace(/\*/g,"[^\\/]+").replace(/((?!\\))\?/g,"$1.")+"$";return c="^"+c+"$",null!==b.match(new RegExp(c,"i"))}return b.component("uploadSelect",{init:function(){var a=this;this.on("change",function(){c(a.element[0].files,a.options);var b=a.element.clone(!0).data("uploadSelect",a);a.element.replaceWith(b),a.element=b})}}),b.component("uploadDrop",{defaults:{dragoverClass:"uk-dragover"},init:function(){var a=this,b=!1;this.on("drop",function(b){b.dataTransfer&&b.dataTransfer.files&&(b.stopPropagation(),b.preventDefault(),a.element.removeClass(a.options.dragoverClass),a.element.trigger("uk.dropped",[b.dataTransfer.files]),c(b.dataTransfer.files,a.options))}).on("dragenter",function(a){a.stopPropagation(),a.preventDefault()}).on("dragover",function(c){c.stopPropagation(),c.preventDefault(),b||(a.element.addClass(a.options.dragoverClass),b=!0)}).on("dragleave",function(c){c.stopPropagation(),c.preventDefault(),a.element.removeClass(a.options.dragoverClass),b=!1})}}),b.support.ajaxupload=function(){function a(){var a=document.createElement("INPUT");return a.type="file","files"in a}function b(){var a=new XMLHttpRequest;return!!(a&&"upload"in a&&"onprogress"in a.upload)}function c(){return!!window.FormData}return a()&&b()&&c()}(),b.support.ajaxupload&&a.event.props.push("dataTransfer"),c.defaults={action:"",single:!0,method:"POST",param:"files[]",params:{},allow:"*.*",type:"text",filelimit:!1,before:function(){},beforeSend:function(){},beforeAll:function(){},loadstart:function(){},load:function(){},loadend:function(){},error:function(){},abort:function(){},progress:function(){},complete:function(){},allcomplete:function(){},readystatechange:function(){},notallowed:function(a,b){alert("Only the following file types are allowed: "+b.allow)}},b.Utils.xhrupload=c,c});
|
File without changes
|
@@ -0,0 +1,2592 @@
|
|
1
|
+
/*! UIkit 2.10.0 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
|
2
|
+
|
3
|
+
(function(core) {
|
4
|
+
|
5
|
+
if (typeof define == "function" && define.amd) { // AMD
|
6
|
+
define("uikit", function(){
|
7
|
+
|
8
|
+
var uikit = core(window, window.jQuery, window.document);
|
9
|
+
|
10
|
+
uikit.load = function(res, req, onload, config) {
|
11
|
+
|
12
|
+
var resources = res.split(','), load = [], i, base = (config.config && config.config.uikit && config.config.uikit.base ? config.config.uikit.base : "").replace(/\/+$/g, "");
|
13
|
+
|
14
|
+
if (!base) {
|
15
|
+
throw new Error( "Please define base path to UIkit in the requirejs config." );
|
16
|
+
}
|
17
|
+
|
18
|
+
for (i = 0; i < resources.length; i += 1) {
|
19
|
+
var resource = resources[i].replace(/\./g, '/');
|
20
|
+
load.push(base+'/js/addons/'+resource);
|
21
|
+
}
|
22
|
+
|
23
|
+
req(load, function() {
|
24
|
+
onload(uikit);
|
25
|
+
});
|
26
|
+
};
|
27
|
+
|
28
|
+
return uikit;
|
29
|
+
});
|
30
|
+
}
|
31
|
+
|
32
|
+
if (!window.jQuery) {
|
33
|
+
throw new Error( "UIkit requires jQuery" );
|
34
|
+
}
|
35
|
+
|
36
|
+
if (window && window.jQuery) {
|
37
|
+
core(window, window.jQuery, window.document);
|
38
|
+
}
|
39
|
+
|
40
|
+
|
41
|
+
})(function(global, $, doc) {
|
42
|
+
|
43
|
+
"use strict";
|
44
|
+
|
45
|
+
var UI = $.UIkit || {}, $html = $("html"), $win = $(window), $doc = $(document);
|
46
|
+
|
47
|
+
if (UI.fn) {
|
48
|
+
return UI;
|
49
|
+
}
|
50
|
+
|
51
|
+
UI.version = '2.10.0';
|
52
|
+
UI.$doc = $doc;
|
53
|
+
UI.$win = $win;
|
54
|
+
|
55
|
+
UI.fn = function(command, options) {
|
56
|
+
|
57
|
+
var args = arguments, cmd = command.match(/^([a-z\-]+)(?:\.([a-z]+))?/i), component = cmd[1], method = cmd[2];
|
58
|
+
|
59
|
+
if (!UI[component]) {
|
60
|
+
$.error("UIkit component [" + component + "] does not exist.");
|
61
|
+
return this;
|
62
|
+
}
|
63
|
+
|
64
|
+
return this.each(function() {
|
65
|
+
var $this = $(this), data = $this.data(component);
|
66
|
+
if (!data) $this.data(component, (data = UI[component](this, method ? undefined : options)));
|
67
|
+
if (method) data[method].apply(data, Array.prototype.slice.call(args, 1));
|
68
|
+
});
|
69
|
+
};
|
70
|
+
|
71
|
+
|
72
|
+
UI.support = {};
|
73
|
+
UI.support.transition = (function() {
|
74
|
+
|
75
|
+
var transitionEnd = (function() {
|
76
|
+
|
77
|
+
var element = doc.body || doc.documentElement,
|
78
|
+
transEndEventNames = {
|
79
|
+
WebkitTransition: 'webkitTransitionEnd',
|
80
|
+
MozTransition: 'transitionend',
|
81
|
+
OTransition: 'oTransitionEnd otransitionend',
|
82
|
+
transition: 'transitionend'
|
83
|
+
}, name;
|
84
|
+
|
85
|
+
for (name in transEndEventNames) {
|
86
|
+
if (element.style[name] !== undefined) return transEndEventNames[name];
|
87
|
+
}
|
88
|
+
}());
|
89
|
+
|
90
|
+
return transitionEnd && { end: transitionEnd };
|
91
|
+
})();
|
92
|
+
|
93
|
+
UI.support.animation = (function() {
|
94
|
+
|
95
|
+
var animationEnd = (function() {
|
96
|
+
|
97
|
+
var element = doc.body || doc.documentElement,
|
98
|
+
animEndEventNames = {
|
99
|
+
WebkitAnimation: 'webkitAnimationEnd',
|
100
|
+
MozAnimation: 'animationend',
|
101
|
+
OAnimation: 'oAnimationEnd oanimationend',
|
102
|
+
animation: 'animationend'
|
103
|
+
}, name;
|
104
|
+
|
105
|
+
for (name in animEndEventNames) {
|
106
|
+
if (element.style[name] !== undefined) return animEndEventNames[name];
|
107
|
+
}
|
108
|
+
}());
|
109
|
+
|
110
|
+
return animationEnd && { end: animationEnd };
|
111
|
+
})();
|
112
|
+
|
113
|
+
UI.support.requestAnimationFrame = window.requestAnimationFrame || window.webkitRequestAnimationFrame || window.mozRequestAnimationFrame || window.msRequestAnimationFrame || window.oRequestAnimationFrame || function(callback){ setTimeout(callback, 1000/60); };
|
114
|
+
UI.support.touch = (
|
115
|
+
('ontouchstart' in window && navigator.userAgent.toLowerCase().match(/mobile|tablet/)) ||
|
116
|
+
(global.DocumentTouch && document instanceof global.DocumentTouch) ||
|
117
|
+
(global.navigator['msPointerEnabled'] && global.navigator['msMaxTouchPoints'] > 0) || //IE 10
|
118
|
+
(global.navigator['pointerEnabled'] && global.navigator['maxTouchPoints'] > 0) || //IE >=11
|
119
|
+
false
|
120
|
+
);
|
121
|
+
UI.support.mutationobserver = (global.MutationObserver || global.WebKitMutationObserver || null);
|
122
|
+
|
123
|
+
UI.Utils = {};
|
124
|
+
|
125
|
+
UI.Utils.debounce = function(func, wait, immediate) {
|
126
|
+
var timeout;
|
127
|
+
return function() {
|
128
|
+
var context = this, args = arguments;
|
129
|
+
var later = function() {
|
130
|
+
timeout = null;
|
131
|
+
if (!immediate) func.apply(context, args);
|
132
|
+
};
|
133
|
+
var callNow = immediate && !timeout;
|
134
|
+
clearTimeout(timeout);
|
135
|
+
timeout = setTimeout(later, wait);
|
136
|
+
if (callNow) func.apply(context, args);
|
137
|
+
};
|
138
|
+
};
|
139
|
+
|
140
|
+
UI.Utils.removeCssRules = function(selectorRegEx) {
|
141
|
+
var idx, idxs, stylesheet, _i, _j, _k, _len, _len1, _len2, _ref;
|
142
|
+
|
143
|
+
if(!selectorRegEx) return;
|
144
|
+
|
145
|
+
setTimeout(function(){
|
146
|
+
try {
|
147
|
+
_ref = document.styleSheets;
|
148
|
+
for (_i = 0, _len = _ref.length; _i < _len; _i++) {
|
149
|
+
stylesheet = _ref[_i];
|
150
|
+
idxs = [];
|
151
|
+
stylesheet.cssRules = stylesheet.cssRules;
|
152
|
+
for (idx = _j = 0, _len1 = stylesheet.cssRules.length; _j < _len1; idx = ++_j) {
|
153
|
+
if (stylesheet.cssRules[idx].type === CSSRule.STYLE_RULE && selectorRegEx.test(stylesheet.cssRules[idx].selectorText)) {
|
154
|
+
idxs.unshift(idx);
|
155
|
+
}
|
156
|
+
}
|
157
|
+
for (_k = 0, _len2 = idxs.length; _k < _len2; _k++) {
|
158
|
+
stylesheet.deleteRule(idxs[_k]);
|
159
|
+
}
|
160
|
+
}
|
161
|
+
} catch (_error) {}
|
162
|
+
}, 0);
|
163
|
+
};
|
164
|
+
|
165
|
+
UI.Utils.isInView = function(element, options) {
|
166
|
+
|
167
|
+
var $element = $(element);
|
168
|
+
|
169
|
+
if (!$element.is(':visible')) {
|
170
|
+
return false;
|
171
|
+
}
|
172
|
+
|
173
|
+
var window_left = $win.scrollLeft(), window_top = $win.scrollTop(), offset = $element.offset(), left = offset.left, top = offset.top;
|
174
|
+
|
175
|
+
options = $.extend({topoffset:0, leftoffset:0}, options);
|
176
|
+
|
177
|
+
if (top + $element.height() >= window_top && top - options.topoffset <= window_top + $win.height() &&
|
178
|
+
left + $element.width() >= window_left && left - options.leftoffset <= window_left + $win.width()) {
|
179
|
+
return true;
|
180
|
+
} else {
|
181
|
+
return false;
|
182
|
+
}
|
183
|
+
};
|
184
|
+
|
185
|
+
UI.Utils.checkDisplay = function(context) {
|
186
|
+
$('[data-uk-margin], [data-uk-grid-match], [data-uk-grid-margin], [data-uk-check-display]', context || document).trigger('uk-check-display');
|
187
|
+
};
|
188
|
+
|
189
|
+
UI.Utils.options = function(string) {
|
190
|
+
|
191
|
+
if ($.isPlainObject(string)) return string;
|
192
|
+
|
193
|
+
var start = (string ? string.indexOf("{") : -1), options = {};
|
194
|
+
|
195
|
+
if (start != -1) {
|
196
|
+
try {
|
197
|
+
options = (new Function("", "var json = " + string.substr(start) + "; return JSON.parse(JSON.stringify(json));"))();
|
198
|
+
} catch (e) {}
|
199
|
+
}
|
200
|
+
|
201
|
+
return options;
|
202
|
+
};
|
203
|
+
|
204
|
+
UI.Utils.template = function(str, data) {
|
205
|
+
|
206
|
+
var tokens = str.replace(/\n/g, '\\n').replace(/\{\{\{\s*(.+?)\s*\}\}\}/g, "{{!$1}}").split(/(\{\{\s*(.+?)\s*\}\})/g),
|
207
|
+
i=0, toc, cmd, prop, val, fn, output = [], openblocks = 0;
|
208
|
+
|
209
|
+
while(i < tokens.length) {
|
210
|
+
|
211
|
+
toc = tokens[i];
|
212
|
+
|
213
|
+
if(toc.match(/\{\{\s*(.+?)\s*\}\}/)) {
|
214
|
+
i = i + 1;
|
215
|
+
toc = tokens[i];
|
216
|
+
cmd = toc[0];
|
217
|
+
prop = toc.substring(toc.match(/^(\^|\#|\!|\~|\:)/) ? 1:0);
|
218
|
+
|
219
|
+
switch(cmd) {
|
220
|
+
case '~':
|
221
|
+
output.push("for(var $i=0;$i<"+prop+".length;$i++) { var $item = "+prop+"[$i];");
|
222
|
+
openblocks++;
|
223
|
+
break;
|
224
|
+
case ':':
|
225
|
+
output.push("for(var $key in "+prop+") { var $val = "+prop+"[$key];");
|
226
|
+
openblocks++;
|
227
|
+
break;
|
228
|
+
case '#':
|
229
|
+
output.push("if("+prop+") {");
|
230
|
+
openblocks++;
|
231
|
+
break;
|
232
|
+
case '^':
|
233
|
+
output.push("if(!"+prop+") {");
|
234
|
+
openblocks++;
|
235
|
+
break;
|
236
|
+
case '/':
|
237
|
+
output.push("}");
|
238
|
+
openblocks--;
|
239
|
+
break;
|
240
|
+
case '!':
|
241
|
+
output.push("__ret.push("+prop+");");
|
242
|
+
break;
|
243
|
+
default:
|
244
|
+
output.push("__ret.push(escape("+prop+"));");
|
245
|
+
break;
|
246
|
+
}
|
247
|
+
} else {
|
248
|
+
output.push("__ret.push('"+toc.replace(/\'/g, "\\'")+"');");
|
249
|
+
}
|
250
|
+
i = i + 1;
|
251
|
+
}
|
252
|
+
|
253
|
+
fn = [
|
254
|
+
'var __ret = [];',
|
255
|
+
'try {',
|
256
|
+
'with($data){', (!openblocks ? output.join('') : '__ret = ["Not all blocks are closed correctly."]'), '};',
|
257
|
+
'}catch(e){__ret = [e.message];}',
|
258
|
+
'return __ret.join("").replace(/\\n\\n/g, "\\n");',
|
259
|
+
"function escape(html) { return String(html).replace(/&/g, '&').replace(/\"/g, '"').replace(/</g, '<').replace(/>/g, '>');}"
|
260
|
+
].join("\n");
|
261
|
+
|
262
|
+
var func = new Function('$data', fn);
|
263
|
+
return data ? func(data) : func;
|
264
|
+
};
|
265
|
+
|
266
|
+
UI.Utils.events = {};
|
267
|
+
UI.Utils.events.click = UI.support.touch ? 'tap' : 'click';
|
268
|
+
|
269
|
+
$.UIkit = UI;
|
270
|
+
$.fn.uk = UI.fn;
|
271
|
+
|
272
|
+
$.UIkit.langdirection = $html.attr("dir") == "rtl" ? "right" : "left";
|
273
|
+
|
274
|
+
|
275
|
+
// DOM mutation save ready helper function
|
276
|
+
|
277
|
+
UI.domObservers = [];
|
278
|
+
|
279
|
+
UI.domObserve = function(selector, fn) {
|
280
|
+
|
281
|
+
if(!UI.support.mutationobserver) return;
|
282
|
+
|
283
|
+
$(selector).each(function() {
|
284
|
+
|
285
|
+
var element = this;
|
286
|
+
|
287
|
+
try {
|
288
|
+
|
289
|
+
var observer = new UI.support.mutationobserver(UI.Utils.debounce(function(mutations) {
|
290
|
+
fn.apply(element, []);
|
291
|
+
$(element).trigger('uk.dom.changed');
|
292
|
+
}, 50));
|
293
|
+
|
294
|
+
// pass in the target node, as well as the observer options
|
295
|
+
observer.observe(element, { childList: true, subtree: true });
|
296
|
+
|
297
|
+
} catch(e) {}
|
298
|
+
});
|
299
|
+
};
|
300
|
+
|
301
|
+
UI.ready = function(fn) {
|
302
|
+
$(function() { fn(document); });
|
303
|
+
UI.domObservers.push(fn);
|
304
|
+
};
|
305
|
+
|
306
|
+
$doc.on('uk.domready', function(){
|
307
|
+
UI.domObservers.forEach(function(fn){
|
308
|
+
fn(document);
|
309
|
+
});
|
310
|
+
$doc.trigger('uk.dom.changed');
|
311
|
+
});
|
312
|
+
|
313
|
+
$(function(){
|
314
|
+
|
315
|
+
// custom scroll observer
|
316
|
+
setInterval((function(){
|
317
|
+
|
318
|
+
var memory = {x: window.pageXOffset, y:window.pageYOffset};
|
319
|
+
|
320
|
+
var fn = function(){
|
321
|
+
|
322
|
+
if (memory.x != window.pageXOffset || memory.y != window.pageYOffset) {
|
323
|
+
memory = {x: window.pageXOffset, y:window.pageYOffset};
|
324
|
+
$doc.trigger('uk-scroll', [memory]);
|
325
|
+
}
|
326
|
+
};
|
327
|
+
|
328
|
+
if ($.UIkit.support.touch) {
|
329
|
+
$doc.on('touchmove touchend MSPointerMove MSPointerUp', fn);
|
330
|
+
}
|
331
|
+
|
332
|
+
if(memory.x || memory.y) fn();
|
333
|
+
|
334
|
+
return fn;
|
335
|
+
|
336
|
+
})(), 15);
|
337
|
+
|
338
|
+
// Check for dom modifications
|
339
|
+
UI.domObserve('[data-uk-observe]', function() {
|
340
|
+
|
341
|
+
var ele = this;
|
342
|
+
|
343
|
+
UI.domObservers.forEach(function(fn){
|
344
|
+
fn(ele);
|
345
|
+
});
|
346
|
+
});
|
347
|
+
|
348
|
+
|
349
|
+
if (UI.support.touch) {
|
350
|
+
|
351
|
+
// remove css hover rules for touch devices
|
352
|
+
// UI.Utils.removeCssRules(/\.uk-(?!navbar).*:hover/);
|
353
|
+
|
354
|
+
// viewport unit fix for uk-height-viewport - should be fixed in iOS 8
|
355
|
+
if (navigator.userAgent.match(/(iPad|iPhone|iPod)/g)) {
|
356
|
+
|
357
|
+
UI.$win.on('load orientationchange resize', UI.Utils.debounce((function(){
|
358
|
+
|
359
|
+
var fn = function() {
|
360
|
+
$('.uk-height-viewport').css('height', window.innerHeight);
|
361
|
+
return fn;
|
362
|
+
};
|
363
|
+
|
364
|
+
return fn();
|
365
|
+
|
366
|
+
})(), 100));
|
367
|
+
}
|
368
|
+
}
|
369
|
+
});
|
370
|
+
|
371
|
+
// add touch identifier class
|
372
|
+
$html.addClass(UI.support.touch ? "uk-touch" : "uk-notouch");
|
373
|
+
|
374
|
+
// add uk-hover class on tap to support overlays on touch devices
|
375
|
+
if (UI.support.touch) {
|
376
|
+
|
377
|
+
var hoverset = false, selector = '.uk-overlay, .uk-overlay-toggle, .uk-has-hover', exclude;
|
378
|
+
|
379
|
+
$doc.on('touchstart MSPointerDown', selector, function() {
|
380
|
+
|
381
|
+
if(hoverset) $('.uk-hover').removeClass('uk-hover');
|
382
|
+
|
383
|
+
hoverset = $(this).addClass('uk-hover');
|
384
|
+
|
385
|
+
}).on('touchend MSPointerUp', function(e) {
|
386
|
+
|
387
|
+
exclude = $(e.target).parents(selector);
|
388
|
+
|
389
|
+
if (hoverset) hoverset.not(exclude).removeClass('uk-hover');
|
390
|
+
});
|
391
|
+
}
|
392
|
+
|
393
|
+
return UI;
|
394
|
+
});
|
395
|
+
|
396
|
+
(function($, UI) {
|
397
|
+
|
398
|
+
"use strict";
|
399
|
+
|
400
|
+
UI.components = {};
|
401
|
+
|
402
|
+
UI.component = function(name, def) {
|
403
|
+
|
404
|
+
var fn = function(element, options) {
|
405
|
+
|
406
|
+
var $this = this;
|
407
|
+
|
408
|
+
this.element = element ? $(element) : null;
|
409
|
+
this.options = $.extend(true, {}, this.defaults, options);
|
410
|
+
this.plugins = {};
|
411
|
+
|
412
|
+
if (this.element) {
|
413
|
+
this.element.data(name, this);
|
414
|
+
}
|
415
|
+
|
416
|
+
this.init();
|
417
|
+
|
418
|
+
(this.options.plugins.length ? this.options.plugins : Object.keys(fn.plugins)).forEach(function(plugin) {
|
419
|
+
|
420
|
+
if (fn.plugins[plugin].init) {
|
421
|
+
fn.plugins[plugin].init($this);
|
422
|
+
$this.plugins[plugin] = true;
|
423
|
+
}
|
424
|
+
|
425
|
+
});
|
426
|
+
|
427
|
+
this.trigger('init', [this]);
|
428
|
+
};
|
429
|
+
|
430
|
+
fn.plugins = {};
|
431
|
+
|
432
|
+
$.extend(true, fn.prototype, {
|
433
|
+
|
434
|
+
defaults : {plugins: []},
|
435
|
+
|
436
|
+
init: function(){},
|
437
|
+
|
438
|
+
on: function(){
|
439
|
+
return $(this.element || this).on.apply(this.element || this, arguments);
|
440
|
+
},
|
441
|
+
|
442
|
+
one: function(){
|
443
|
+
return $(this.element || this).one.apply(this.element || this, arguments);
|
444
|
+
},
|
445
|
+
|
446
|
+
off: function(evt){
|
447
|
+
return $(this.element || this).off(evt);
|
448
|
+
},
|
449
|
+
|
450
|
+
trigger: function(evt, params) {
|
451
|
+
return $(this.element || this).trigger(evt, params);
|
452
|
+
},
|
453
|
+
|
454
|
+
find: function(selector) {
|
455
|
+
return this.element ? this.element.find(selector) : $([]);
|
456
|
+
},
|
457
|
+
|
458
|
+
proxy: function(obj, methods) {
|
459
|
+
|
460
|
+
var $this = this;
|
461
|
+
|
462
|
+
methods.split(' ').forEach(function(method) {
|
463
|
+
if (!$this[method]) $this[method] = function() { return obj[method].apply(obj, arguments); };
|
464
|
+
});
|
465
|
+
},
|
466
|
+
|
467
|
+
mixin: function(obj, methods) {
|
468
|
+
|
469
|
+
var $this = this;
|
470
|
+
|
471
|
+
methods.split(' ').forEach(function(method) {
|
472
|
+
if (!$this[method]) $this[method] = obj[method].bind($this);
|
473
|
+
});
|
474
|
+
},
|
475
|
+
|
476
|
+
}, def);
|
477
|
+
|
478
|
+
this.components[name] = fn;
|
479
|
+
|
480
|
+
this[name] = function() {
|
481
|
+
|
482
|
+
var element, options;
|
483
|
+
|
484
|
+
if(arguments.length) {
|
485
|
+
switch(arguments.length) {
|
486
|
+
case 1:
|
487
|
+
|
488
|
+
if (typeof arguments[0] === "string" || arguments[0].nodeType || arguments[0] instanceof jQuery) {
|
489
|
+
element = $(arguments[0]);
|
490
|
+
} else {
|
491
|
+
options = arguments[0];
|
492
|
+
}
|
493
|
+
|
494
|
+
break;
|
495
|
+
case 2:
|
496
|
+
|
497
|
+
element = $(arguments[0]);
|
498
|
+
options = arguments[1];
|
499
|
+
break;
|
500
|
+
}
|
501
|
+
}
|
502
|
+
|
503
|
+
if (element && element.data(name)) {
|
504
|
+
return element.data(name);
|
505
|
+
}
|
506
|
+
|
507
|
+
return (new UI.components[name](element, options));
|
508
|
+
};
|
509
|
+
|
510
|
+
return fn;
|
511
|
+
};
|
512
|
+
|
513
|
+
UI.plugin = function(component, name, def) {
|
514
|
+
this.components[component].plugins[name] = def;
|
515
|
+
};
|
516
|
+
|
517
|
+
})(jQuery, jQuery.UIkit);
|
518
|
+
|
519
|
+
(function($, UI) {
|
520
|
+
|
521
|
+
"use strict";
|
522
|
+
|
523
|
+
var stacks = [];
|
524
|
+
|
525
|
+
UI.component('stackMargin', {
|
526
|
+
|
527
|
+
defaults: {
|
528
|
+
'cls': 'uk-margin-small-top'
|
529
|
+
},
|
530
|
+
|
531
|
+
init: function() {
|
532
|
+
|
533
|
+
var $this = this;
|
534
|
+
|
535
|
+
this.columns = this.element.children();
|
536
|
+
|
537
|
+
if (!this.columns.length) return;
|
538
|
+
|
539
|
+
UI.$win.on('resize orientationchange', (function() {
|
540
|
+
|
541
|
+
var fn = function() {
|
542
|
+
$this.process();
|
543
|
+
};
|
544
|
+
|
545
|
+
$(function() {
|
546
|
+
fn();
|
547
|
+
UI.$win.on("load", fn);
|
548
|
+
});
|
549
|
+
|
550
|
+
return UI.Utils.debounce(fn, 50);
|
551
|
+
})());
|
552
|
+
|
553
|
+
UI.$doc.on("uk.dom.changed", function(e) {
|
554
|
+
$this.columns = $this.element.children();
|
555
|
+
$this.process();
|
556
|
+
});
|
557
|
+
|
558
|
+
this.on("uk-check-display", function(e) {
|
559
|
+
if(this.element.is(":visible")) this.process();
|
560
|
+
}.bind(this));
|
561
|
+
|
562
|
+
stacks.push(this);
|
563
|
+
},
|
564
|
+
|
565
|
+
process: function() {
|
566
|
+
|
567
|
+
var $this = this;
|
568
|
+
|
569
|
+
this.revert();
|
570
|
+
|
571
|
+
var skip = false,
|
572
|
+
firstvisible = this.columns.filter(":visible:first"),
|
573
|
+
offset = firstvisible.length ? firstvisible.offset().top : false;
|
574
|
+
|
575
|
+
if (offset === false) return;
|
576
|
+
|
577
|
+
this.columns.each(function() {
|
578
|
+
|
579
|
+
var column = $(this);
|
580
|
+
|
581
|
+
if (column.is(":visible")) {
|
582
|
+
|
583
|
+
if (skip) {
|
584
|
+
column.addClass($this.options.cls);
|
585
|
+
} else {
|
586
|
+
if (column.offset().top != offset) {
|
587
|
+
column.addClass($this.options.cls);
|
588
|
+
skip = true;
|
589
|
+
}
|
590
|
+
}
|
591
|
+
}
|
592
|
+
});
|
593
|
+
|
594
|
+
return this;
|
595
|
+
},
|
596
|
+
|
597
|
+
revert: function() {
|
598
|
+
this.columns.removeClass(this.options.cls);
|
599
|
+
return this;
|
600
|
+
}
|
601
|
+
});
|
602
|
+
|
603
|
+
// init code
|
604
|
+
UI.ready(function(context) {
|
605
|
+
|
606
|
+
$("[data-uk-margin]", context).each(function() {
|
607
|
+
var ele = $(this), obj;
|
608
|
+
|
609
|
+
if (!ele.data("stackMargin")) {
|
610
|
+
obj = UI.stackMargin(ele, UI.Utils.options(ele.attr("data-uk-margin")));
|
611
|
+
}
|
612
|
+
});
|
613
|
+
});
|
614
|
+
|
615
|
+
})(jQuery, jQuery.UIkit);
|
616
|
+
|
617
|
+
// Based on Zeptos touch.js
|
618
|
+
// https://raw.github.com/madrobby/zepto/master/src/touch.js
|
619
|
+
// Zepto.js may be freely distributed under the MIT license.
|
620
|
+
|
621
|
+
;(function($){
|
622
|
+
var touch = {},
|
623
|
+
touchTimeout, tapTimeout, swipeTimeout, longTapTimeout,
|
624
|
+
longTapDelay = 750,
|
625
|
+
gesture;
|
626
|
+
|
627
|
+
function swipeDirection(x1, x2, y1, y2) {
|
628
|
+
return Math.abs(x1 - x2) >= Math.abs(y1 - y2) ? (x1 - x2 > 0 ? 'Left' : 'Right') : (y1 - y2 > 0 ? 'Up' : 'Down');
|
629
|
+
}
|
630
|
+
|
631
|
+
function longTap() {
|
632
|
+
longTapTimeout = null;
|
633
|
+
if (touch.last) {
|
634
|
+
touch.el.trigger('longTap');
|
635
|
+
touch = {};
|
636
|
+
}
|
637
|
+
}
|
638
|
+
|
639
|
+
function cancelLongTap() {
|
640
|
+
if (longTapTimeout) clearTimeout(longTapTimeout);
|
641
|
+
longTapTimeout = null;
|
642
|
+
}
|
643
|
+
|
644
|
+
function cancelAll() {
|
645
|
+
if (touchTimeout) clearTimeout(touchTimeout);
|
646
|
+
if (tapTimeout) clearTimeout(tapTimeout);
|
647
|
+
if (swipeTimeout) clearTimeout(swipeTimeout);
|
648
|
+
if (longTapTimeout) clearTimeout(longTapTimeout);
|
649
|
+
touchTimeout = tapTimeout = swipeTimeout = longTapTimeout = null;
|
650
|
+
touch = {};
|
651
|
+
}
|
652
|
+
|
653
|
+
function isPrimaryTouch(event){
|
654
|
+
return event.pointerType == event.MSPOINTER_TYPE_TOUCH && event.isPrimary;
|
655
|
+
}
|
656
|
+
|
657
|
+
$(function(){
|
658
|
+
var now, delta, deltaX = 0, deltaY = 0, firstTouch;
|
659
|
+
|
660
|
+
if ('MSGesture' in window) {
|
661
|
+
gesture = new MSGesture();
|
662
|
+
gesture.target = document.body;
|
663
|
+
}
|
664
|
+
|
665
|
+
$(document)
|
666
|
+
.bind('MSGestureEnd', function(e){
|
667
|
+
var swipeDirectionFromVelocity = e.originalEvent.velocityX > 1 ? 'Right' : e.originalEvent.velocityX < -1 ? 'Left' : e.originalEvent.velocityY > 1 ? 'Down' : e.originalEvent.velocityY < -1 ? 'Up' : null;
|
668
|
+
|
669
|
+
if (swipeDirectionFromVelocity) {
|
670
|
+
touch.el.trigger('swipe');
|
671
|
+
touch.el.trigger('swipe'+ swipeDirectionFromVelocity);
|
672
|
+
}
|
673
|
+
})
|
674
|
+
.on('touchstart MSPointerDown', function(e){
|
675
|
+
|
676
|
+
if(e.type == 'MSPointerDown' && !isPrimaryTouch(e.originalEvent)) return;
|
677
|
+
|
678
|
+
firstTouch = e.type == 'MSPointerDown' ? e : e.originalEvent.touches[0];
|
679
|
+
|
680
|
+
now = Date.now();
|
681
|
+
delta = now - (touch.last || now);
|
682
|
+
touch.el = $('tagName' in firstTouch.target ? firstTouch.target : firstTouch.target.parentNode);
|
683
|
+
|
684
|
+
if(touchTimeout) clearTimeout(touchTimeout);
|
685
|
+
|
686
|
+
touch.x1 = firstTouch.pageX;
|
687
|
+
touch.y1 = firstTouch.pageY;
|
688
|
+
|
689
|
+
if (delta > 0 && delta <= 250) touch.isDoubleTap = true;
|
690
|
+
|
691
|
+
touch.last = now;
|
692
|
+
longTapTimeout = setTimeout(longTap, longTapDelay);
|
693
|
+
|
694
|
+
// adds the current touch contact for IE gesture recognition
|
695
|
+
if (gesture && e.type == 'MSPointerDown') gesture.addPointer(e.originalEvent.pointerId);
|
696
|
+
})
|
697
|
+
.on('touchmove MSPointerMove', function(e){
|
698
|
+
|
699
|
+
if(e.type == 'MSPointerMove' && !isPrimaryTouch(e.originalEvent)) return;
|
700
|
+
|
701
|
+
firstTouch = e.type == 'MSPointerMove' ? e : e.originalEvent.touches[0];
|
702
|
+
|
703
|
+
cancelLongTap();
|
704
|
+
touch.x2 = firstTouch.pageX;
|
705
|
+
touch.y2 = firstTouch.pageY;
|
706
|
+
|
707
|
+
deltaX += Math.abs(touch.x1 - touch.x2);
|
708
|
+
deltaY += Math.abs(touch.y1 - touch.y2);
|
709
|
+
})
|
710
|
+
.on('touchend MSPointerUp', function(e){
|
711
|
+
|
712
|
+
if(e.type == 'MSPointerUp' && !isPrimaryTouch(e.originalEvent)) return;
|
713
|
+
|
714
|
+
cancelLongTap();
|
715
|
+
|
716
|
+
// swipe
|
717
|
+
if ((touch.x2 && Math.abs(touch.x1 - touch.x2) > 30) || (touch.y2 && Math.abs(touch.y1 - touch.y2) > 30)){
|
718
|
+
|
719
|
+
swipeTimeout = setTimeout(function() {
|
720
|
+
touch.el.trigger('swipe');
|
721
|
+
touch.el.trigger('swipe' + (swipeDirection(touch.x1, touch.x2, touch.y1, touch.y2)));
|
722
|
+
touch = {};
|
723
|
+
}, 0);
|
724
|
+
|
725
|
+
// normal tap
|
726
|
+
} else if ('last' in touch) {
|
727
|
+
|
728
|
+
// don't fire tap when delta position changed by more than 30 pixels,
|
729
|
+
// for instance when moving to a point and back to origin
|
730
|
+
if (isNaN(deltaX) || (deltaX < 30 && deltaY < 30)) {
|
731
|
+
// delay by one tick so we can cancel the 'tap' event if 'scroll' fires
|
732
|
+
// ('tap' fires before 'scroll')
|
733
|
+
tapTimeout = setTimeout(function() {
|
734
|
+
|
735
|
+
// trigger universal 'tap' with the option to cancelTouch()
|
736
|
+
// (cancelTouch cancels processing of single vs double taps for faster 'tap' response)
|
737
|
+
var event = $.Event('tap');
|
738
|
+
event.cancelTouch = cancelAll;
|
739
|
+
touch.el.trigger(event);
|
740
|
+
|
741
|
+
// trigger double tap immediately
|
742
|
+
if (touch.isDoubleTap) {
|
743
|
+
touch.el.trigger('doubleTap');
|
744
|
+
touch = {};
|
745
|
+
}
|
746
|
+
|
747
|
+
// trigger single tap after 250ms of inactivity
|
748
|
+
else {
|
749
|
+
touchTimeout = setTimeout(function(){
|
750
|
+
touchTimeout = null;
|
751
|
+
touch.el.trigger('singleTap');
|
752
|
+
touch = {};
|
753
|
+
}, 250);
|
754
|
+
}
|
755
|
+
}, 0);
|
756
|
+
} else {
|
757
|
+
touch = {};
|
758
|
+
}
|
759
|
+
deltaX = deltaY = 0;
|
760
|
+
}
|
761
|
+
})
|
762
|
+
// when the browser window loses focus,
|
763
|
+
// for example when a modal dialog is shown,
|
764
|
+
// cancel all ongoing events
|
765
|
+
.on('touchcancel MSPointerCancel', cancelAll);
|
766
|
+
|
767
|
+
// scrolling the window indicates intention of the user
|
768
|
+
// to scroll, not tap or swipe, so cancel all ongoing events
|
769
|
+
$(window).on('scroll', cancelAll);
|
770
|
+
});
|
771
|
+
|
772
|
+
['swipe', 'swipeLeft', 'swipeRight', 'swipeUp', 'swipeDown', 'doubleTap', 'tap', 'singleTap', 'longTap'].forEach(function(eventName){
|
773
|
+
$.fn[eventName] = function(callback){ return $(this).on(eventName, callback); };
|
774
|
+
});
|
775
|
+
})(jQuery);
|
776
|
+
|
777
|
+
(function($, UI) {
|
778
|
+
|
779
|
+
"use strict";
|
780
|
+
|
781
|
+
UI.component('alert', {
|
782
|
+
|
783
|
+
defaults: {
|
784
|
+
"fade": true,
|
785
|
+
"duration": 200,
|
786
|
+
"trigger": ".uk-alert-close"
|
787
|
+
},
|
788
|
+
|
789
|
+
init: function() {
|
790
|
+
|
791
|
+
var $this = this;
|
792
|
+
|
793
|
+
this.on("click", this.options.trigger, function(e) {
|
794
|
+
e.preventDefault();
|
795
|
+
$this.close();
|
796
|
+
});
|
797
|
+
},
|
798
|
+
|
799
|
+
close: function() {
|
800
|
+
|
801
|
+
var element = this.trigger("close");
|
802
|
+
|
803
|
+
if (this.options.fade) {
|
804
|
+
element.css("overflow", "hidden").css("max-height", element.height()).animate({
|
805
|
+
"height": 0,
|
806
|
+
"opacity": 0,
|
807
|
+
"padding-top": 0,
|
808
|
+
"padding-bottom": 0,
|
809
|
+
"margin-top": 0,
|
810
|
+
"margin-bottom": 0
|
811
|
+
}, this.options.duration, removeElement);
|
812
|
+
} else {
|
813
|
+
removeElement();
|
814
|
+
}
|
815
|
+
|
816
|
+
function removeElement() {
|
817
|
+
element.trigger("closed").remove();
|
818
|
+
}
|
819
|
+
}
|
820
|
+
|
821
|
+
});
|
822
|
+
|
823
|
+
// init code
|
824
|
+
UI.$doc.on("click.alert.uikit", "[data-uk-alert]", function(e) {
|
825
|
+
|
826
|
+
var ele = $(this);
|
827
|
+
|
828
|
+
if (!ele.data("alert")) {
|
829
|
+
|
830
|
+
var alert = UI.alert(ele, UI.Utils.options(ele.data("uk-alert")));
|
831
|
+
|
832
|
+
if ($(e.target).is(ele.data("alert").options.trigger)) {
|
833
|
+
e.preventDefault();
|
834
|
+
alert.close();
|
835
|
+
}
|
836
|
+
}
|
837
|
+
});
|
838
|
+
|
839
|
+
})(jQuery, jQuery.UIkit);
|
840
|
+
|
841
|
+
(function($, UI) {
|
842
|
+
|
843
|
+
"use strict";
|
844
|
+
|
845
|
+
UI.component('buttonRadio', {
|
846
|
+
|
847
|
+
defaults: {
|
848
|
+
"target": ".uk-button"
|
849
|
+
},
|
850
|
+
|
851
|
+
init: function() {
|
852
|
+
|
853
|
+
var $this = this;
|
854
|
+
|
855
|
+
this.on("click", this.options.target, function(e) {
|
856
|
+
|
857
|
+
if ($(this).is('a[href="#"]')) e.preventDefault();
|
858
|
+
|
859
|
+
$this.find($this.options.target).not(this).removeClass("uk-active").blur();
|
860
|
+
$this.trigger("change", [$(this).addClass("uk-active")]);
|
861
|
+
});
|
862
|
+
|
863
|
+
},
|
864
|
+
|
865
|
+
getSelected: function() {
|
866
|
+
return this.find(".uk-active");
|
867
|
+
}
|
868
|
+
});
|
869
|
+
|
870
|
+
UI.component('buttonCheckbox', {
|
871
|
+
|
872
|
+
defaults: {
|
873
|
+
"target": ".uk-button"
|
874
|
+
},
|
875
|
+
|
876
|
+
init: function() {
|
877
|
+
|
878
|
+
var $this = this;
|
879
|
+
|
880
|
+
this.on("click", this.options.target, function(e) {
|
881
|
+
|
882
|
+
if ($(this).is('a[href="#"]')) e.preventDefault();
|
883
|
+
|
884
|
+
$this.trigger("change", [$(this).toggleClass("uk-active").blur()]);
|
885
|
+
});
|
886
|
+
|
887
|
+
},
|
888
|
+
|
889
|
+
getSelected: function() {
|
890
|
+
return this.find(".uk-active");
|
891
|
+
}
|
892
|
+
});
|
893
|
+
|
894
|
+
|
895
|
+
UI.component('button', {
|
896
|
+
|
897
|
+
defaults: {},
|
898
|
+
|
899
|
+
init: function() {
|
900
|
+
|
901
|
+
var $this = this;
|
902
|
+
|
903
|
+
this.on("click", function(e) {
|
904
|
+
|
905
|
+
if ($this.element.is('a[href="#"]')) e.preventDefault();
|
906
|
+
|
907
|
+
$this.toggle();
|
908
|
+
$this.trigger("change", [$this.element.blur().hasClass("uk-active")]);
|
909
|
+
});
|
910
|
+
|
911
|
+
},
|
912
|
+
|
913
|
+
toggle: function() {
|
914
|
+
this.element.toggleClass("uk-active");
|
915
|
+
}
|
916
|
+
});
|
917
|
+
|
918
|
+
|
919
|
+
// init code
|
920
|
+
UI.$doc.on("click.buttonradio.uikit", "[data-uk-button-radio]", function(e) {
|
921
|
+
var ele = $(this);
|
922
|
+
|
923
|
+
if (!ele.data("buttonRadio")) {
|
924
|
+
var obj = UI.buttonRadio(ele, UI.Utils.options(ele.attr("data-uk-button-radio")));
|
925
|
+
|
926
|
+
if ($(e.target).is(obj.options.target)) {
|
927
|
+
$(e.target).trigger("click");
|
928
|
+
}
|
929
|
+
}
|
930
|
+
});
|
931
|
+
|
932
|
+
UI.$doc.on("click.buttoncheckbox.uikit", "[data-uk-button-checkbox]", function(e) {
|
933
|
+
var ele = $(this);
|
934
|
+
|
935
|
+
if (!ele.data("buttonCheckbox")) {
|
936
|
+
|
937
|
+
var obj = UI.buttonCheckbox(ele, UI.Utils.options(ele.attr("data-uk-button-checkbox"))), target=$(e.target);
|
938
|
+
|
939
|
+
if (target.is(obj.options.target)) {
|
940
|
+
ele.trigger("change", [target.toggleClass("uk-active").blur()]);
|
941
|
+
}
|
942
|
+
}
|
943
|
+
});
|
944
|
+
|
945
|
+
UI.$doc.on("click.button.uikit", "[data-uk-button]", function(e) {
|
946
|
+
var ele = $(this);
|
947
|
+
|
948
|
+
if (!ele.data("button")) {
|
949
|
+
|
950
|
+
var obj = UI.button(ele, UI.Utils.options(ele.attr("data-uk-button")));
|
951
|
+
ele.trigger("click");
|
952
|
+
}
|
953
|
+
});
|
954
|
+
|
955
|
+
})(jQuery, jQuery.UIkit);
|
956
|
+
|
957
|
+
|
958
|
+
(function($, UI) {
|
959
|
+
|
960
|
+
"use strict";
|
961
|
+
|
962
|
+
var active = false, hoverIdle;
|
963
|
+
|
964
|
+
UI.component('dropdown', {
|
965
|
+
|
966
|
+
defaults: {
|
967
|
+
'mode' : 'hover',
|
968
|
+
'remaintime' : 800,
|
969
|
+
'justify' : false,
|
970
|
+
'boundary' : UI.$win,
|
971
|
+
'delay' : 0
|
972
|
+
},
|
973
|
+
|
974
|
+
remainIdle: false,
|
975
|
+
|
976
|
+
init: function() {
|
977
|
+
|
978
|
+
var $this = this;
|
979
|
+
|
980
|
+
this.dropdown = this.find(".uk-dropdown");
|
981
|
+
|
982
|
+
this.centered = this.dropdown.hasClass("uk-dropdown-center");
|
983
|
+
this.justified = this.options.justify ? $(this.options.justify) : false;
|
984
|
+
|
985
|
+
this.boundary = $(this.options.boundary);
|
986
|
+
this.flipped = this.dropdown.hasClass('uk-dropdown-flip');
|
987
|
+
|
988
|
+
if(!this.boundary.length) {
|
989
|
+
this.boundary = UI.$win;
|
990
|
+
}
|
991
|
+
|
992
|
+
if (this.options.mode == "click" || UI.support.touch) {
|
993
|
+
|
994
|
+
this.on("click", function(e) {
|
995
|
+
|
996
|
+
var $target = $(e.target);
|
997
|
+
|
998
|
+
if (!$target.parents(".uk-dropdown").length) {
|
999
|
+
|
1000
|
+
if ($target.is("a[href='#']") || $target.parent().is("a[href='#']")){
|
1001
|
+
e.preventDefault();
|
1002
|
+
}
|
1003
|
+
|
1004
|
+
$target.blur();
|
1005
|
+
}
|
1006
|
+
|
1007
|
+
if (!$this.element.hasClass("uk-open")) {
|
1008
|
+
|
1009
|
+
$this.show();
|
1010
|
+
|
1011
|
+
} else {
|
1012
|
+
|
1013
|
+
if ($target.is("a:not(.js-uk-prevent)") || $target.is(".uk-dropdown-close") || !$this.dropdown.find(e.target).length) {
|
1014
|
+
$this.element.removeClass("uk-open");
|
1015
|
+
active = false;
|
1016
|
+
}
|
1017
|
+
}
|
1018
|
+
});
|
1019
|
+
|
1020
|
+
} else {
|
1021
|
+
|
1022
|
+
this.on("mouseenter", function(e) {
|
1023
|
+
|
1024
|
+
if ($this.remainIdle) {
|
1025
|
+
clearTimeout($this.remainIdle);
|
1026
|
+
}
|
1027
|
+
|
1028
|
+
if (hoverIdle) {
|
1029
|
+
clearTimeout(hoverIdle);
|
1030
|
+
}
|
1031
|
+
|
1032
|
+
hoverIdle = setTimeout($this.show.bind($this), $this.options.delay);
|
1033
|
+
|
1034
|
+
}).on("mouseleave", function() {
|
1035
|
+
|
1036
|
+
if (hoverIdle) {
|
1037
|
+
clearTimeout(hoverIdle);
|
1038
|
+
}
|
1039
|
+
|
1040
|
+
$this.remainIdle = setTimeout(function() {
|
1041
|
+
|
1042
|
+
$this.element.removeClass("uk-open");
|
1043
|
+
$this.remainIdle = false;
|
1044
|
+
|
1045
|
+
if (active && active[0] == $this.element[0]) active = false;
|
1046
|
+
|
1047
|
+
}, $this.options.remaintime);
|
1048
|
+
|
1049
|
+
}).on("click", function(e){
|
1050
|
+
|
1051
|
+
var $target = $(e.target);
|
1052
|
+
|
1053
|
+
if ($this.remainIdle) {
|
1054
|
+
clearTimeout($this.remainIdle);
|
1055
|
+
}
|
1056
|
+
|
1057
|
+
if ($target.is("a[href='#']") || $target.parent().is("a[href='#']")){
|
1058
|
+
e.preventDefault();
|
1059
|
+
}
|
1060
|
+
|
1061
|
+
$this.show();
|
1062
|
+
});
|
1063
|
+
}
|
1064
|
+
},
|
1065
|
+
|
1066
|
+
show: function(){
|
1067
|
+
|
1068
|
+
if (active && active[0] != this.element[0]) {
|
1069
|
+
active.removeClass("uk-open");
|
1070
|
+
}
|
1071
|
+
|
1072
|
+
if (hoverIdle) {
|
1073
|
+
clearTimeout(hoverIdle);
|
1074
|
+
}
|
1075
|
+
|
1076
|
+
this.checkDimensions();
|
1077
|
+
this.element.addClass("uk-open");
|
1078
|
+
this.trigger('uk.dropdown.show', [this]);
|
1079
|
+
|
1080
|
+
UI.Utils.checkDisplay(this.dropdown);
|
1081
|
+
active = this.element;
|
1082
|
+
|
1083
|
+
this.registerOuterClick();
|
1084
|
+
},
|
1085
|
+
|
1086
|
+
registerOuterClick: function(){
|
1087
|
+
|
1088
|
+
var $this = this;
|
1089
|
+
|
1090
|
+
UI.$doc.off("click.outer.dropdown");
|
1091
|
+
|
1092
|
+
setTimeout(function() {
|
1093
|
+
UI.$doc.on("click.outer.dropdown", function(e) {
|
1094
|
+
|
1095
|
+
if (hoverIdle) {
|
1096
|
+
clearTimeout(hoverIdle);
|
1097
|
+
}
|
1098
|
+
|
1099
|
+
var $target = $(e.target);
|
1100
|
+
|
1101
|
+
if (active && active[0] == $this.element[0] && ($target.is("a:not(.js-uk-prevent)") || $target.is(".uk-dropdown-close") || !$this.dropdown.find(e.target).length)) {
|
1102
|
+
active.removeClass("uk-open");
|
1103
|
+
UI.$doc.off("click.outer.dropdown");
|
1104
|
+
}
|
1105
|
+
});
|
1106
|
+
}, 10);
|
1107
|
+
},
|
1108
|
+
|
1109
|
+
checkDimensions: function() {
|
1110
|
+
|
1111
|
+
if(!this.dropdown.length) return;
|
1112
|
+
|
1113
|
+
if (this.justified && this.justified.length) {
|
1114
|
+
this.dropdown.css("min-width", "");
|
1115
|
+
}
|
1116
|
+
|
1117
|
+
var $this = this,
|
1118
|
+
dropdown = this.dropdown.css("margin-" + $.UIkit.langdirection, ""),
|
1119
|
+
offset = dropdown.show().offset(),
|
1120
|
+
width = dropdown.outerWidth(),
|
1121
|
+
boundarywidth = this.boundary.width(),
|
1122
|
+
boundaryoffset = this.boundary.offset() ? this.boundary.offset().left:0;
|
1123
|
+
|
1124
|
+
// centered dropdown
|
1125
|
+
if (this.centered) {
|
1126
|
+
dropdown.css("margin-" + $.UIkit.langdirection, (parseFloat(width) / 2 - dropdown.parent().width() / 2) * -1);
|
1127
|
+
offset = dropdown.offset();
|
1128
|
+
|
1129
|
+
// reset dropdown
|
1130
|
+
if ((width + offset.left) > boundarywidth || offset.left < 0) {
|
1131
|
+
dropdown.css("margin-" + $.UIkit.langdirection, "");
|
1132
|
+
offset = dropdown.offset();
|
1133
|
+
}
|
1134
|
+
}
|
1135
|
+
|
1136
|
+
// justify dropdown
|
1137
|
+
if (this.justified && this.justified.length) {
|
1138
|
+
|
1139
|
+
var jwidth = this.justified.outerWidth();
|
1140
|
+
|
1141
|
+
dropdown.css("min-width", jwidth);
|
1142
|
+
|
1143
|
+
if ($.UIkit.langdirection == 'right') {
|
1144
|
+
|
1145
|
+
var right1 = boundarywidth - (this.justified.offset().left + jwidth),
|
1146
|
+
right2 = boundarywidth - (dropdown.offset().left + dropdown.outerWidth());
|
1147
|
+
|
1148
|
+
dropdown.css("margin-right", right1 - right2);
|
1149
|
+
|
1150
|
+
} else {
|
1151
|
+
dropdown.css("margin-left", this.justified.offset().left - offset.left);
|
1152
|
+
}
|
1153
|
+
|
1154
|
+
offset = dropdown.offset();
|
1155
|
+
|
1156
|
+
}
|
1157
|
+
|
1158
|
+
if ((width + (offset.left-boundaryoffset)) > boundarywidth) {
|
1159
|
+
dropdown.addClass("uk-dropdown-flip");
|
1160
|
+
offset = dropdown.offset();
|
1161
|
+
}
|
1162
|
+
|
1163
|
+
if ((offset.left-boundaryoffset) < 0) {
|
1164
|
+
|
1165
|
+
dropdown.addClass("uk-dropdown-stack");
|
1166
|
+
|
1167
|
+
if (dropdown.hasClass("uk-dropdown-flip")) {
|
1168
|
+
|
1169
|
+
if (!this.flipped) {
|
1170
|
+
dropdown.removeClass("uk-dropdown-flip");
|
1171
|
+
offset = dropdown.offset();
|
1172
|
+
dropdown.addClass("uk-dropdown-flip");
|
1173
|
+
}
|
1174
|
+
|
1175
|
+
setTimeout(function(){
|
1176
|
+
|
1177
|
+
if ((dropdown.offset().left-boundaryoffset) < 0 || !$this.flipped && (dropdown.outerWidth() + (offset.left-boundaryoffset)) < boundarywidth) {
|
1178
|
+
dropdown.removeClass("uk-dropdown-flip");
|
1179
|
+
}
|
1180
|
+
}, 0);
|
1181
|
+
}
|
1182
|
+
|
1183
|
+
this.trigger('uk.dropdown.stack', [this]);
|
1184
|
+
}
|
1185
|
+
|
1186
|
+
dropdown.css("display", "");
|
1187
|
+
}
|
1188
|
+
|
1189
|
+
});
|
1190
|
+
|
1191
|
+
var triggerevent = UI.support.touch ? "click" : "mouseenter";
|
1192
|
+
|
1193
|
+
// init code
|
1194
|
+
UI.$doc.on(triggerevent+".dropdown.uikit", "[data-uk-dropdown]", function(e) {
|
1195
|
+
var ele = $(this);
|
1196
|
+
|
1197
|
+
if (!ele.data("dropdown")) {
|
1198
|
+
|
1199
|
+
var dropdown = UI.dropdown(ele, UI.Utils.options(ele.data("uk-dropdown")));
|
1200
|
+
|
1201
|
+
if (triggerevent=="click" || (triggerevent=="mouseenter" && dropdown.options.mode=="hover")) {
|
1202
|
+
dropdown.element.trigger(triggerevent);
|
1203
|
+
}
|
1204
|
+
|
1205
|
+
if(dropdown.element.find('.uk-dropdown').length) {
|
1206
|
+
e.preventDefault();
|
1207
|
+
}
|
1208
|
+
}
|
1209
|
+
});
|
1210
|
+
|
1211
|
+
})(jQuery, jQuery.UIkit);
|
1212
|
+
|
1213
|
+
(function($, UI) {
|
1214
|
+
|
1215
|
+
"use strict";
|
1216
|
+
|
1217
|
+
var grids = [];
|
1218
|
+
|
1219
|
+
UI.component('gridMatchHeight', {
|
1220
|
+
|
1221
|
+
defaults: {
|
1222
|
+
"target" : false,
|
1223
|
+
"row" : true
|
1224
|
+
},
|
1225
|
+
|
1226
|
+
init: function() {
|
1227
|
+
|
1228
|
+
var $this = this;
|
1229
|
+
|
1230
|
+
this.columns = this.element.children();
|
1231
|
+
this.elements = this.options.target ? this.find(this.options.target) : this.columns;
|
1232
|
+
|
1233
|
+
if (!this.columns.length) return;
|
1234
|
+
|
1235
|
+
UI.$win.on('resize orientationchange', (function() {
|
1236
|
+
|
1237
|
+
var fn = function() {
|
1238
|
+
$this.match();
|
1239
|
+
};
|
1240
|
+
|
1241
|
+
$(function() {
|
1242
|
+
fn();
|
1243
|
+
UI.$win.on("load", fn);
|
1244
|
+
});
|
1245
|
+
|
1246
|
+
return UI.Utils.debounce(fn, 50);
|
1247
|
+
})());
|
1248
|
+
|
1249
|
+
UI.$doc.on("uk.dom.changed", function(e) {
|
1250
|
+
$this.columns = $this.element.children();
|
1251
|
+
$this.elements = $this.options.target ? $this.find($this.options.target) : $this.columns;
|
1252
|
+
$this.match();
|
1253
|
+
});
|
1254
|
+
|
1255
|
+
this.on("uk-check-display", function(e) {
|
1256
|
+
if(this.element.is(":visible")) this.match();
|
1257
|
+
}.bind(this));
|
1258
|
+
|
1259
|
+
grids.push(this);
|
1260
|
+
},
|
1261
|
+
|
1262
|
+
match: function() {
|
1263
|
+
|
1264
|
+
this.revert();
|
1265
|
+
|
1266
|
+
var firstvisible = this.columns.filter(":visible:first");
|
1267
|
+
|
1268
|
+
if (!firstvisible.length) return;
|
1269
|
+
|
1270
|
+
var stacked = Math.ceil(100 * parseFloat(firstvisible.css('width')) / parseFloat(firstvisible.parent().css('width'))) >= 100 ? true : false,
|
1271
|
+
max = 0,
|
1272
|
+
$this = this;
|
1273
|
+
|
1274
|
+
if (stacked) return;
|
1275
|
+
|
1276
|
+
if(this.options.row) {
|
1277
|
+
|
1278
|
+
this.element.width(); // force redraw
|
1279
|
+
|
1280
|
+
setTimeout(function(){
|
1281
|
+
|
1282
|
+
var lastoffset = false, group = [];
|
1283
|
+
|
1284
|
+
$this.elements.each(function(i) {
|
1285
|
+
var ele = $(this), offset = ele.offset().top;
|
1286
|
+
|
1287
|
+
if(offset != lastoffset && group.length) {
|
1288
|
+
|
1289
|
+
$this.matchHeights($(group));
|
1290
|
+
group = [];
|
1291
|
+
offset = ele.offset().top;
|
1292
|
+
}
|
1293
|
+
|
1294
|
+
group.push(ele);
|
1295
|
+
lastoffset = offset;
|
1296
|
+
});
|
1297
|
+
|
1298
|
+
if(group.length) {
|
1299
|
+
$this.matchHeights($(group));
|
1300
|
+
}
|
1301
|
+
|
1302
|
+
}, 0);
|
1303
|
+
|
1304
|
+
} else {
|
1305
|
+
|
1306
|
+
this.matchHeights(this.elements);
|
1307
|
+
}
|
1308
|
+
|
1309
|
+
return this;
|
1310
|
+
},
|
1311
|
+
|
1312
|
+
revert: function() {
|
1313
|
+
this.elements.css('min-height', '');
|
1314
|
+
return this;
|
1315
|
+
},
|
1316
|
+
|
1317
|
+
matchHeights: function(elements){
|
1318
|
+
|
1319
|
+
if(elements.length < 2) return;
|
1320
|
+
|
1321
|
+
var max = 0;
|
1322
|
+
|
1323
|
+
elements.each(function() {
|
1324
|
+
max = Math.max(max, $(this).outerHeight());
|
1325
|
+
}).each(function(i) {
|
1326
|
+
|
1327
|
+
var element = $(this),
|
1328
|
+
height = max - (element.outerHeight() - element.height());
|
1329
|
+
|
1330
|
+
element.css('min-height', height + 'px');
|
1331
|
+
});
|
1332
|
+
}
|
1333
|
+
});
|
1334
|
+
|
1335
|
+
UI.component('gridMargin', {
|
1336
|
+
|
1337
|
+
defaults: {
|
1338
|
+
"cls": "uk-grid-margin"
|
1339
|
+
},
|
1340
|
+
|
1341
|
+
init: function() {
|
1342
|
+
|
1343
|
+
var $this = this;
|
1344
|
+
|
1345
|
+
var stackMargin = UI.stackMargin(this.element, this.options);
|
1346
|
+
}
|
1347
|
+
});
|
1348
|
+
|
1349
|
+
|
1350
|
+
// init code
|
1351
|
+
UI.ready(function(context) {
|
1352
|
+
|
1353
|
+
$("[data-uk-grid-match],[data-uk-grid-margin]", context).each(function() {
|
1354
|
+
var grid = $(this), obj;
|
1355
|
+
|
1356
|
+
if (grid.is("[data-uk-grid-match]") && !grid.data("gridMatchHeight")) {
|
1357
|
+
obj = UI.gridMatchHeight(grid, UI.Utils.options(grid.attr("data-uk-grid-match")));
|
1358
|
+
}
|
1359
|
+
|
1360
|
+
if (grid.is("[data-uk-grid-margin]") && !grid.data("gridMargin")) {
|
1361
|
+
obj = UI.gridMargin(grid, UI.Utils.options(grid.attr("data-uk-grid-margin")));
|
1362
|
+
}
|
1363
|
+
});
|
1364
|
+
});
|
1365
|
+
|
1366
|
+
})(jQuery, jQuery.UIkit);
|
1367
|
+
|
1368
|
+
(function($, UI) {
|
1369
|
+
|
1370
|
+
"use strict";
|
1371
|
+
|
1372
|
+
var active = false, $html = $('html'), body;
|
1373
|
+
|
1374
|
+
UI.component('modal', {
|
1375
|
+
|
1376
|
+
defaults: {
|
1377
|
+
keyboard: true,
|
1378
|
+
bgclose: true,
|
1379
|
+
minScrollHeight: 150
|
1380
|
+
},
|
1381
|
+
|
1382
|
+
scrollable: false,
|
1383
|
+
transition: false,
|
1384
|
+
|
1385
|
+
init: function() {
|
1386
|
+
|
1387
|
+
if (!body) body = $('body');
|
1388
|
+
|
1389
|
+
var $this = this;
|
1390
|
+
|
1391
|
+
this.transition = UI.support.transition;
|
1392
|
+
this.dialog = this.find(".uk-modal-dialog");
|
1393
|
+
|
1394
|
+
this.on("click", ".uk-modal-close", function(e) {
|
1395
|
+
e.preventDefault();
|
1396
|
+
$this.hide();
|
1397
|
+
|
1398
|
+
}).on("click", function(e) {
|
1399
|
+
|
1400
|
+
var target = $(e.target);
|
1401
|
+
|
1402
|
+
if (target[0] == $this.element[0] && $this.options.bgclose) {
|
1403
|
+
$this.hide();
|
1404
|
+
}
|
1405
|
+
});
|
1406
|
+
},
|
1407
|
+
|
1408
|
+
toggle: function() {
|
1409
|
+
return this[this.isActive() ? "hide" : "show"]();
|
1410
|
+
},
|
1411
|
+
|
1412
|
+
show: function() {
|
1413
|
+
|
1414
|
+
var $this = this;
|
1415
|
+
|
1416
|
+
if (this.isActive()) return;
|
1417
|
+
if (active) active.hide(true);
|
1418
|
+
|
1419
|
+
this.element.removeClass("uk-open").show();
|
1420
|
+
this.resize();
|
1421
|
+
|
1422
|
+
active = this;
|
1423
|
+
$html.addClass("uk-modal-page").height(); // force browser engine redraw
|
1424
|
+
|
1425
|
+
this.element.addClass("uk-open").trigger("uk.modal.show");
|
1426
|
+
|
1427
|
+
UI.Utils.checkDisplay(this.dialog);
|
1428
|
+
|
1429
|
+
return this;
|
1430
|
+
},
|
1431
|
+
|
1432
|
+
hide: function(force) {
|
1433
|
+
|
1434
|
+
if (!this.isActive()) return;
|
1435
|
+
|
1436
|
+
if (!force && UI.support.transition) {
|
1437
|
+
|
1438
|
+
var $this = this;
|
1439
|
+
|
1440
|
+
this.one(UI.support.transition.end, function() {
|
1441
|
+
$this._hide();
|
1442
|
+
}).removeClass("uk-open");
|
1443
|
+
|
1444
|
+
} else {
|
1445
|
+
|
1446
|
+
this._hide();
|
1447
|
+
}
|
1448
|
+
|
1449
|
+
return this;
|
1450
|
+
},
|
1451
|
+
|
1452
|
+
resize: function() {
|
1453
|
+
|
1454
|
+
var paddingdir = "padding-" + (UI.langdirection == 'left' ? "left":"right"),
|
1455
|
+
margindir = "margin-" + (UI.langdirection == 'left' ? "left":"right"),
|
1456
|
+
bodywidth = body.width();
|
1457
|
+
|
1458
|
+
this.scrollbarwidth = window.innerWidth - bodywidth;
|
1459
|
+
|
1460
|
+
$html.css(margindir, this.scrollbarwidth * -1);
|
1461
|
+
|
1462
|
+
this.element.css(paddingdir, "");
|
1463
|
+
|
1464
|
+
if (this.dialog.offset().left > this.scrollbarwidth) {
|
1465
|
+
this.element.css(paddingdir, this.scrollbarwidth - (this.element[0].scrollHeight==window.innerHeight ? 0:this.scrollbarwidth ));
|
1466
|
+
}
|
1467
|
+
|
1468
|
+
this.updateScrollable();
|
1469
|
+
|
1470
|
+
},
|
1471
|
+
|
1472
|
+
updateScrollable: function() {
|
1473
|
+
|
1474
|
+
// has scrollable?
|
1475
|
+
|
1476
|
+
var scrollable = this.dialog.find('.uk-overflow-container:visible:first');
|
1477
|
+
|
1478
|
+
if (scrollable) {
|
1479
|
+
|
1480
|
+
scrollable.css("height", 0);
|
1481
|
+
|
1482
|
+
var offset = Math.abs(parseInt(this.dialog.css("margin-top"), 10)),
|
1483
|
+
dh = this.dialog.outerHeight(),
|
1484
|
+
wh = window.innerHeight,
|
1485
|
+
h = wh - 2*(offset < 20 ? 20:offset) - dh;
|
1486
|
+
|
1487
|
+
scrollable.css("height", h < this.options.minScrollHeight ? "":h);
|
1488
|
+
}
|
1489
|
+
},
|
1490
|
+
|
1491
|
+
_hide: function() {
|
1492
|
+
|
1493
|
+
this.element.hide().removeClass("uk-open");
|
1494
|
+
|
1495
|
+
$html.removeClass("uk-modal-page").css("margin-" + (UI.langdirection == 'left' ? "left":"right"), "");
|
1496
|
+
|
1497
|
+
if(active===this) active = false;
|
1498
|
+
|
1499
|
+
this.trigger("uk.modal.hide");
|
1500
|
+
},
|
1501
|
+
|
1502
|
+
isActive: function() {
|
1503
|
+
return (active == this);
|
1504
|
+
}
|
1505
|
+
|
1506
|
+
});
|
1507
|
+
|
1508
|
+
UI.component('modalTrigger', {
|
1509
|
+
|
1510
|
+
init: function() {
|
1511
|
+
|
1512
|
+
var $this = this;
|
1513
|
+
|
1514
|
+
this.options = $.extend({
|
1515
|
+
"target": $this.element.is("a") ? $this.element.attr("href") : false
|
1516
|
+
}, this.options);
|
1517
|
+
|
1518
|
+
this.modal = UI.modal(this.options.target, this.options);
|
1519
|
+
|
1520
|
+
this.on("click", function(e) {
|
1521
|
+
e.preventDefault();
|
1522
|
+
$this.show();
|
1523
|
+
});
|
1524
|
+
|
1525
|
+
//methods
|
1526
|
+
this.proxy(this.modal, "show hide isActive");
|
1527
|
+
}
|
1528
|
+
});
|
1529
|
+
|
1530
|
+
UI.modal.dialog = function(content, options) {
|
1531
|
+
|
1532
|
+
var modal = UI.modal($(UI.modal.dialog.template).appendTo("body"), options);
|
1533
|
+
|
1534
|
+
modal.on("uk.modal.hide", function(){
|
1535
|
+
if (modal.persist) {
|
1536
|
+
modal.persist.appendTo(modal.persist.data("modalPersistParent"));
|
1537
|
+
modal.persist = false;
|
1538
|
+
}
|
1539
|
+
modal.element.remove();
|
1540
|
+
});
|
1541
|
+
|
1542
|
+
setContent(content, modal);
|
1543
|
+
|
1544
|
+
return modal;
|
1545
|
+
};
|
1546
|
+
|
1547
|
+
UI.modal.dialog.template = '<div class="uk-modal"><div class="uk-modal-dialog"></div></div>';
|
1548
|
+
|
1549
|
+
UI.modal.alert = function(content, options) {
|
1550
|
+
|
1551
|
+
UI.modal.dialog(([
|
1552
|
+
'<div class="uk-margin uk-modal-content">'+String(content)+'</div>',
|
1553
|
+
'<div class="uk-modal-buttons"><button class="uk-button uk-button-primary uk-modal-close">Ok</button></div>'
|
1554
|
+
]).join(""), $.extend({bgclose:false, keyboard:false}, options)).show();
|
1555
|
+
};
|
1556
|
+
|
1557
|
+
UI.modal.confirm = function(content, onconfirm, options) {
|
1558
|
+
|
1559
|
+
onconfirm = $.isFunction(onconfirm) ? onconfirm : function(){};
|
1560
|
+
|
1561
|
+
var modal = UI.modal.dialog(([
|
1562
|
+
'<div class="uk-margin uk-modal-content">'+String(content)+'</div>',
|
1563
|
+
'<div class="uk-modal-buttons"><button class="uk-button uk-button-primary js-modal-confirm">Ok</button> <button class="uk-button uk-modal-close">Cancel</button></div>'
|
1564
|
+
]).join(""), $.extend({bgclose:false, keyboard:false}, options));
|
1565
|
+
|
1566
|
+
modal.element.find(".js-modal-confirm").on("click", function(){
|
1567
|
+
onconfirm();
|
1568
|
+
modal.hide();
|
1569
|
+
});
|
1570
|
+
|
1571
|
+
modal.show();
|
1572
|
+
};
|
1573
|
+
|
1574
|
+
// init code
|
1575
|
+
UI.$doc.on("click.modal.uikit", "[data-uk-modal]", function(e) {
|
1576
|
+
|
1577
|
+
var ele = $(this);
|
1578
|
+
|
1579
|
+
if(ele.is("a")) {
|
1580
|
+
e.preventDefault();
|
1581
|
+
}
|
1582
|
+
|
1583
|
+
if (!ele.data("modalTrigger")) {
|
1584
|
+
var modal = UI.modalTrigger(ele, UI.Utils.options(ele.attr("data-uk-modal")));
|
1585
|
+
modal.show();
|
1586
|
+
}
|
1587
|
+
|
1588
|
+
});
|
1589
|
+
|
1590
|
+
// close modal on esc button
|
1591
|
+
UI.$doc.on('keydown.modal.uikit', function (e) {
|
1592
|
+
|
1593
|
+
if (active && e.keyCode === 27 && active.options.keyboard) { // ESC
|
1594
|
+
e.preventDefault();
|
1595
|
+
active.hide();
|
1596
|
+
}
|
1597
|
+
});
|
1598
|
+
|
1599
|
+
UI.$win.on("resize orientationchange", UI.Utils.debounce(function(){
|
1600
|
+
if(active) active.resize();
|
1601
|
+
}, 150));
|
1602
|
+
|
1603
|
+
|
1604
|
+
// helper functions
|
1605
|
+
function setContent(content, modal){
|
1606
|
+
|
1607
|
+
if(!modal) return;
|
1608
|
+
|
1609
|
+
if (typeof content === 'object') {
|
1610
|
+
|
1611
|
+
// convert DOM object to a jQuery object
|
1612
|
+
content = content instanceof jQuery ? content : $(content);
|
1613
|
+
|
1614
|
+
if(content.parent().length) {
|
1615
|
+
modal.persist = content;
|
1616
|
+
modal.persist.data("modalPersistParent", content.parent());
|
1617
|
+
}
|
1618
|
+
}else if (typeof content === 'string' || typeof content === 'number') {
|
1619
|
+
// just insert the data as innerHTML
|
1620
|
+
content = $('<div></div>').html(content);
|
1621
|
+
}else {
|
1622
|
+
// unsupported data type!
|
1623
|
+
content = $('<div></div>').html('$.UIkitt.modal Error: Unsupported data type: ' + typeof content);
|
1624
|
+
}
|
1625
|
+
|
1626
|
+
content.appendTo(modal.element.find('.uk-modal-dialog'));
|
1627
|
+
|
1628
|
+
return modal;
|
1629
|
+
}
|
1630
|
+
|
1631
|
+
})(jQuery, jQuery.UIkit);
|
1632
|
+
|
1633
|
+
(function($, UI) {
|
1634
|
+
|
1635
|
+
"use strict";
|
1636
|
+
|
1637
|
+
var scrollpos = {x: window.scrollX, y: window.scrollY},
|
1638
|
+
$win = UI.$win,
|
1639
|
+
$doc = UI.$doc,
|
1640
|
+
$html = $('html'),
|
1641
|
+
Offcanvas = {
|
1642
|
+
|
1643
|
+
show: function(element) {
|
1644
|
+
|
1645
|
+
element = $(element);
|
1646
|
+
|
1647
|
+
if (!element.length) return;
|
1648
|
+
|
1649
|
+
var $body = $('body'),
|
1650
|
+
winwidth = $win.width(),
|
1651
|
+
bar = element.find(".uk-offcanvas-bar:first"),
|
1652
|
+
rtl = ($.UIkit.langdirection == "right"),
|
1653
|
+
flip = bar.hasClass("uk-offcanvas-bar-flip") ? -1:1,
|
1654
|
+
dir = flip * (rtl ? -1 : 1);
|
1655
|
+
|
1656
|
+
scrollpos = {x: window.pageXOffset, y: window.pageYOffset};
|
1657
|
+
|
1658
|
+
element.addClass("uk-active");
|
1659
|
+
|
1660
|
+
$body.css({"width": window.innerWidth, "height": $win.height()}).addClass("uk-offcanvas-page");
|
1661
|
+
$body.css((rtl ? "margin-right" : "margin-left"), (rtl ? -1 : 1) * (bar.outerWidth() * dir)).width(); // .width() - force redraw
|
1662
|
+
|
1663
|
+
$html.css('margin-top', scrollpos.y * -1);
|
1664
|
+
|
1665
|
+
bar.addClass("uk-offcanvas-bar-show");
|
1666
|
+
|
1667
|
+
element.off(".ukoffcanvas").on("click.ukoffcanvas swipeRight.ukoffcanvas swipeLeft.ukoffcanvas", function(e) {
|
1668
|
+
|
1669
|
+
var target = $(e.target);
|
1670
|
+
|
1671
|
+
if (!e.type.match(/swipe/)) {
|
1672
|
+
|
1673
|
+
if (!target.hasClass("uk-offcanvas-close")) {
|
1674
|
+
if (target.hasClass("uk-offcanvas-bar")) return;
|
1675
|
+
if (target.parents(".uk-offcanvas-bar:first").length) return;
|
1676
|
+
}
|
1677
|
+
}
|
1678
|
+
|
1679
|
+
e.stopImmediatePropagation();
|
1680
|
+
Offcanvas.hide();
|
1681
|
+
});
|
1682
|
+
|
1683
|
+
$doc.on('keydown.ukoffcanvas', function(e) {
|
1684
|
+
if (e.keyCode === 27) { // ESC
|
1685
|
+
Offcanvas.hide();
|
1686
|
+
}
|
1687
|
+
});
|
1688
|
+
|
1689
|
+
$doc.trigger('uk.offcanvas.show', [element, bar]);
|
1690
|
+
},
|
1691
|
+
|
1692
|
+
hide: function(force) {
|
1693
|
+
|
1694
|
+
var $body = $('body'),
|
1695
|
+
panel = $(".uk-offcanvas.uk-active"),
|
1696
|
+
rtl = ($.UIkit.langdirection == "right"),
|
1697
|
+
bar = panel.find(".uk-offcanvas-bar:first"),
|
1698
|
+
finalize = function() {
|
1699
|
+
$body.removeClass("uk-offcanvas-page").css({"width": "", "height": "", "margin-left": "", "margin-right": ""});
|
1700
|
+
panel.removeClass("uk-active");
|
1701
|
+
bar.removeClass("uk-offcanvas-bar-show");
|
1702
|
+
$html.css('margin-top', '');
|
1703
|
+
window.scrollTo(scrollpos.x, scrollpos.y);
|
1704
|
+
$doc.trigger('uk.offcanvas.hide', [panel, bar]);
|
1705
|
+
};
|
1706
|
+
|
1707
|
+
if (!panel.length) return;
|
1708
|
+
|
1709
|
+
if ($.UIkit.support.transition && !force) {
|
1710
|
+
|
1711
|
+
$body.one($.UIkit.support.transition.end, function() {
|
1712
|
+
finalize();
|
1713
|
+
}).css((rtl ? "margin-right" : "margin-left"), "");
|
1714
|
+
|
1715
|
+
setTimeout(function(){
|
1716
|
+
bar.removeClass("uk-offcanvas-bar-show");
|
1717
|
+
}, 0);
|
1718
|
+
|
1719
|
+
} else {
|
1720
|
+
finalize();
|
1721
|
+
}
|
1722
|
+
|
1723
|
+
panel.off(".ukoffcanvas");
|
1724
|
+
$doc.off(".ukoffcanvas");
|
1725
|
+
}
|
1726
|
+
};
|
1727
|
+
|
1728
|
+
UI.component('offcanvasTrigger', {
|
1729
|
+
|
1730
|
+
init: function() {
|
1731
|
+
|
1732
|
+
var $this = this;
|
1733
|
+
|
1734
|
+
this.options = $.extend({
|
1735
|
+
"target": $this.element.is("a") ? $this.element.attr("href") : false
|
1736
|
+
}, this.options);
|
1737
|
+
|
1738
|
+
this.on("click", function(e) {
|
1739
|
+
e.preventDefault();
|
1740
|
+
Offcanvas.show($this.options.target);
|
1741
|
+
});
|
1742
|
+
}
|
1743
|
+
});
|
1744
|
+
|
1745
|
+
UI.offcanvas = Offcanvas;
|
1746
|
+
|
1747
|
+
// init code
|
1748
|
+
$doc.on("click.offcanvas.uikit", "[data-uk-offcanvas]", function(e) {
|
1749
|
+
|
1750
|
+
e.preventDefault();
|
1751
|
+
|
1752
|
+
var ele = $(this);
|
1753
|
+
|
1754
|
+
if (!ele.data("offcanvasTrigger")) {
|
1755
|
+
var obj = UI.offcanvasTrigger(ele, UI.Utils.options(ele.attr("data-uk-offcanvas")));
|
1756
|
+
ele.trigger("click");
|
1757
|
+
}
|
1758
|
+
});
|
1759
|
+
|
1760
|
+
})(jQuery, jQuery.UIkit);
|
1761
|
+
|
1762
|
+
(function($, UI) {
|
1763
|
+
|
1764
|
+
"use strict";
|
1765
|
+
|
1766
|
+
UI.component('nav', {
|
1767
|
+
|
1768
|
+
defaults: {
|
1769
|
+
"toggle": ">li.uk-parent > a[href='#']",
|
1770
|
+
"lists": ">li.uk-parent > ul",
|
1771
|
+
"multiple": false
|
1772
|
+
},
|
1773
|
+
|
1774
|
+
init: function() {
|
1775
|
+
|
1776
|
+
var $this = this;
|
1777
|
+
|
1778
|
+
this.on("click", this.options.toggle, function(e) {
|
1779
|
+
e.preventDefault();
|
1780
|
+
var ele = $(this);
|
1781
|
+
$this.open(ele.parent()[0] == $this.element[0] ? ele : ele.parent("li"));
|
1782
|
+
});
|
1783
|
+
|
1784
|
+
this.find(this.options.lists).each(function() {
|
1785
|
+
var $ele = $(this),
|
1786
|
+
parent = $ele.parent(),
|
1787
|
+
active = parent.hasClass("uk-active");
|
1788
|
+
|
1789
|
+
$ele.wrap('<div style="overflow:hidden;height:0;position:relative;"></div>');
|
1790
|
+
parent.data("list-container", $ele.parent());
|
1791
|
+
|
1792
|
+
if (active) $this.open(parent, true);
|
1793
|
+
});
|
1794
|
+
|
1795
|
+
},
|
1796
|
+
|
1797
|
+
open: function(li, noanimation) {
|
1798
|
+
|
1799
|
+
var element = this.element, $li = $(li);
|
1800
|
+
|
1801
|
+
if (!this.options.multiple) {
|
1802
|
+
|
1803
|
+
element.children(".uk-open").not(li).each(function() {
|
1804
|
+
if ($(this).data("list-container")) {
|
1805
|
+
$(this).data("list-container").stop().animate({height: 0}, function() {
|
1806
|
+
$(this).parent().removeClass("uk-open");
|
1807
|
+
});
|
1808
|
+
}
|
1809
|
+
});
|
1810
|
+
}
|
1811
|
+
|
1812
|
+
$li.toggleClass("uk-open");
|
1813
|
+
|
1814
|
+
if ($li.data("list-container")) {
|
1815
|
+
if (noanimation) {
|
1816
|
+
$li.data('list-container').stop().height($li.hasClass("uk-open") ? "auto" : 0);
|
1817
|
+
} else {
|
1818
|
+
$li.data('list-container').stop().animate({
|
1819
|
+
height: ($li.hasClass("uk-open") ? getHeight($li.data('list-container').find('ul:first')) : 0)
|
1820
|
+
});
|
1821
|
+
}
|
1822
|
+
}
|
1823
|
+
}
|
1824
|
+
});
|
1825
|
+
|
1826
|
+
|
1827
|
+
// helper
|
1828
|
+
|
1829
|
+
function getHeight(ele) {
|
1830
|
+
var $ele = $(ele), height = "auto";
|
1831
|
+
|
1832
|
+
if ($ele.is(":visible")) {
|
1833
|
+
height = $ele.outerHeight();
|
1834
|
+
} else {
|
1835
|
+
var tmp = {
|
1836
|
+
position: $ele.css("position"),
|
1837
|
+
visibility: $ele.css("visibility"),
|
1838
|
+
display: $ele.css("display")
|
1839
|
+
};
|
1840
|
+
|
1841
|
+
height = $ele.css({position: 'absolute', visibility: 'hidden', display: 'block'}).outerHeight();
|
1842
|
+
|
1843
|
+
$ele.css(tmp); // reset element
|
1844
|
+
}
|
1845
|
+
|
1846
|
+
return height;
|
1847
|
+
}
|
1848
|
+
|
1849
|
+
// init code
|
1850
|
+
UI.ready(function(context) {
|
1851
|
+
|
1852
|
+
$("[data-uk-nav]", context).each(function() {
|
1853
|
+
var nav = $(this);
|
1854
|
+
|
1855
|
+
if (!nav.data("nav")) {
|
1856
|
+
var obj = UI.nav(nav, UI.Utils.options(nav.attr("data-uk-nav")));
|
1857
|
+
}
|
1858
|
+
});
|
1859
|
+
});
|
1860
|
+
|
1861
|
+
})(jQuery, jQuery.UIkit);
|
1862
|
+
|
1863
|
+
(function($, UI, $win) {
|
1864
|
+
|
1865
|
+
"use strict";
|
1866
|
+
|
1867
|
+
var $tooltip, // tooltip container
|
1868
|
+
tooltipdelay, checkdelay;
|
1869
|
+
|
1870
|
+
UI.component('tooltip', {
|
1871
|
+
|
1872
|
+
defaults: {
|
1873
|
+
"offset": 5,
|
1874
|
+
"pos": "top",
|
1875
|
+
"animation": false,
|
1876
|
+
"delay": 0, // in miliseconds
|
1877
|
+
"cls": "",
|
1878
|
+
"src": function() { return this.attr("title"); }
|
1879
|
+
},
|
1880
|
+
|
1881
|
+
tip: "",
|
1882
|
+
|
1883
|
+
init: function() {
|
1884
|
+
|
1885
|
+
var $this = this;
|
1886
|
+
|
1887
|
+
if (!$tooltip) {
|
1888
|
+
$tooltip = $('<div class="uk-tooltip"></div>').appendTo("body");
|
1889
|
+
}
|
1890
|
+
|
1891
|
+
this.on({
|
1892
|
+
"focus" : function(e) { $this.show(); },
|
1893
|
+
"blur" : function(e) { $this.hide(); },
|
1894
|
+
"mouseenter": function(e) { $this.show(); },
|
1895
|
+
"mouseleave": function(e) { $this.hide(); }
|
1896
|
+
});
|
1897
|
+
|
1898
|
+
this.tip = typeof(this.options.src) === "function" ? this.options.src.call(this.element) : this.options.src;
|
1899
|
+
|
1900
|
+
// disable title attribute
|
1901
|
+
this.element.attr("data-cached-title", this.element.attr("title")).attr("title", "");
|
1902
|
+
},
|
1903
|
+
|
1904
|
+
show: function() {
|
1905
|
+
|
1906
|
+
if (tooltipdelay) clearTimeout(tooltipdelay);
|
1907
|
+
if (checkdelay) clearTimeout(checkdelay);
|
1908
|
+
if (!this.tip.length) return;
|
1909
|
+
|
1910
|
+
$tooltip.stop().css({"top": -2000, "visibility": "hidden"}).show();
|
1911
|
+
$tooltip.html('<div class="uk-tooltip-inner">' + this.tip + '</div>');
|
1912
|
+
|
1913
|
+
var $this = this,
|
1914
|
+
pos = $.extend({}, this.element.offset(), {width: this.element[0].offsetWidth, height: this.element[0].offsetHeight}),
|
1915
|
+
width = $tooltip[0].offsetWidth,
|
1916
|
+
height = $tooltip[0].offsetHeight,
|
1917
|
+
offset = typeof(this.options.offset) === "function" ? this.options.offset.call(this.element) : this.options.offset,
|
1918
|
+
position = typeof(this.options.pos) === "function" ? this.options.pos.call(this.element) : this.options.pos,
|
1919
|
+
tmppos = position.split("-"),
|
1920
|
+
tcss = {
|
1921
|
+
"display" : "none",
|
1922
|
+
"visibility" : "visible",
|
1923
|
+
"top" : (pos.top + pos.height + height),
|
1924
|
+
"left" : pos.left
|
1925
|
+
};
|
1926
|
+
|
1927
|
+
|
1928
|
+
// prevent strange position
|
1929
|
+
// when tooltip is in offcanvas etc.
|
1930
|
+
if ($('html').css('position')=='fixed' || $('body').css('position')=='fixed'){
|
1931
|
+
var bodyoffset = $('body').offset(),
|
1932
|
+
htmloffset = $('html').offset(),
|
1933
|
+
docoffset = {'top': (htmloffset.top + bodyoffset.top), 'left': (htmloffset.left + bodyoffset.left)};
|
1934
|
+
|
1935
|
+
pos.left -= docoffset.left;
|
1936
|
+
pos.top -= docoffset.top;
|
1937
|
+
}
|
1938
|
+
|
1939
|
+
|
1940
|
+
if ((tmppos[0] == "left" || tmppos[0] == "right") && $.UIkit.langdirection == 'right') {
|
1941
|
+
tmppos[0] = tmppos[0] == "left" ? "right" : "left";
|
1942
|
+
}
|
1943
|
+
|
1944
|
+
var variants = {
|
1945
|
+
"bottom" : {top: pos.top + pos.height + offset, left: pos.left + pos.width / 2 - width / 2},
|
1946
|
+
"top" : {top: pos.top - height - offset, left: pos.left + pos.width / 2 - width / 2},
|
1947
|
+
"left" : {top: pos.top + pos.height / 2 - height / 2, left: pos.left - width - offset},
|
1948
|
+
"right" : {top: pos.top + pos.height / 2 - height / 2, left: pos.left + pos.width + offset}
|
1949
|
+
};
|
1950
|
+
|
1951
|
+
$.extend(tcss, variants[tmppos[0]]);
|
1952
|
+
|
1953
|
+
if (tmppos.length == 2) tcss.left = (tmppos[1] == 'left') ? (pos.left) : ((pos.left + pos.width) - width);
|
1954
|
+
|
1955
|
+
var boundary = this.checkBoundary(tcss.left, tcss.top, width, height);
|
1956
|
+
|
1957
|
+
if(boundary) {
|
1958
|
+
|
1959
|
+
switch(boundary) {
|
1960
|
+
case "x":
|
1961
|
+
|
1962
|
+
if (tmppos.length == 2) {
|
1963
|
+
position = tmppos[0]+"-"+(tcss.left < 0 ? "left": "right");
|
1964
|
+
} else {
|
1965
|
+
position = tcss.left < 0 ? "right": "left";
|
1966
|
+
}
|
1967
|
+
|
1968
|
+
break;
|
1969
|
+
|
1970
|
+
case "y":
|
1971
|
+
if (tmppos.length == 2) {
|
1972
|
+
position = (tcss.top < 0 ? "bottom": "top")+"-"+tmppos[1];
|
1973
|
+
} else {
|
1974
|
+
position = (tcss.top < 0 ? "bottom": "top");
|
1975
|
+
}
|
1976
|
+
|
1977
|
+
break;
|
1978
|
+
|
1979
|
+
case "xy":
|
1980
|
+
if (tmppos.length == 2) {
|
1981
|
+
position = (tcss.top < 0 ? "bottom": "top")+"-"+(tcss.left < 0 ? "left": "right");
|
1982
|
+
} else {
|
1983
|
+
position = tcss.left < 0 ? "right": "left";
|
1984
|
+
}
|
1985
|
+
|
1986
|
+
break;
|
1987
|
+
|
1988
|
+
}
|
1989
|
+
|
1990
|
+
tmppos = position.split("-");
|
1991
|
+
|
1992
|
+
$.extend(tcss, variants[tmppos[0]]);
|
1993
|
+
|
1994
|
+
if (tmppos.length == 2) tcss.left = (tmppos[1] == 'left') ? (pos.left) : ((pos.left + pos.width) - width);
|
1995
|
+
}
|
1996
|
+
|
1997
|
+
|
1998
|
+
tcss.left -= $("body").position().left;
|
1999
|
+
|
2000
|
+
tooltipdelay = setTimeout(function(){
|
2001
|
+
|
2002
|
+
$tooltip.css(tcss).attr("class", ["uk-tooltip", "uk-tooltip-"+position, $this.options.cls].join(' '));
|
2003
|
+
|
2004
|
+
if ($this.options.animation) {
|
2005
|
+
$tooltip.css({opacity: 0, display: 'block'}).animate({opacity: 1}, parseInt($this.options.animation, 10) || 400);
|
2006
|
+
} else {
|
2007
|
+
$tooltip.show();
|
2008
|
+
}
|
2009
|
+
|
2010
|
+
tooltipdelay = false;
|
2011
|
+
|
2012
|
+
// close tooltip if element was removed or hidden
|
2013
|
+
checkdelay = setInterval(function(){
|
2014
|
+
if(!$this.element.is(':visible')) $this.hide();
|
2015
|
+
}, 150);
|
2016
|
+
|
2017
|
+
}, parseInt(this.options.delay, 10) || 0);
|
2018
|
+
},
|
2019
|
+
|
2020
|
+
hide: function() {
|
2021
|
+
if(this.element.is("input") && this.element[0]===document.activeElement) return;
|
2022
|
+
|
2023
|
+
if(tooltipdelay) clearTimeout(tooltipdelay);
|
2024
|
+
if (checkdelay) clearTimeout(checkdelay);
|
2025
|
+
|
2026
|
+
$tooltip.stop();
|
2027
|
+
|
2028
|
+
if (this.options.animation) {
|
2029
|
+
$tooltip.fadeOut(parseInt(this.options.animation, 10) || 400);
|
2030
|
+
} else {
|
2031
|
+
$tooltip.hide();
|
2032
|
+
}
|
2033
|
+
},
|
2034
|
+
|
2035
|
+
content: function() {
|
2036
|
+
return this.tip;
|
2037
|
+
},
|
2038
|
+
|
2039
|
+
checkBoundary: function(left, top, width, height) {
|
2040
|
+
|
2041
|
+
var axis = "";
|
2042
|
+
|
2043
|
+
if(left < 0 || ((left-$win.scrollLeft())+width) > window.innerWidth) {
|
2044
|
+
axis += "x";
|
2045
|
+
}
|
2046
|
+
|
2047
|
+
if(top < 0 || ((top-$win.scrollTop())+height) > window.innerHeight) {
|
2048
|
+
axis += "y";
|
2049
|
+
}
|
2050
|
+
|
2051
|
+
return axis;
|
2052
|
+
}
|
2053
|
+
});
|
2054
|
+
|
2055
|
+
|
2056
|
+
// init code
|
2057
|
+
UI.$doc.on("mouseenter.tooltip.uikit focus.tooltip.uikit", "[data-uk-tooltip]", function(e) {
|
2058
|
+
var ele = $(this);
|
2059
|
+
|
2060
|
+
if (!ele.data("tooltip")) {
|
2061
|
+
var obj = UI.tooltip(ele, UI.Utils.options(ele.attr("data-uk-tooltip")));
|
2062
|
+
ele.trigger("mouseenter");
|
2063
|
+
}
|
2064
|
+
});
|
2065
|
+
|
2066
|
+
})(jQuery, jQuery.UIkit, jQuery(window));
|
2067
|
+
|
2068
|
+
(function($, UI) {
|
2069
|
+
|
2070
|
+
"use strict";
|
2071
|
+
|
2072
|
+
UI.component('switcher', {
|
2073
|
+
|
2074
|
+
defaults: {
|
2075
|
+
connect : false,
|
2076
|
+
toggle : ">*",
|
2077
|
+
active : 0
|
2078
|
+
},
|
2079
|
+
|
2080
|
+
init: function() {
|
2081
|
+
|
2082
|
+
var $this = this;
|
2083
|
+
|
2084
|
+
this.on("click", this.options.toggle, function(e) {
|
2085
|
+
e.preventDefault();
|
2086
|
+
$this.show(this);
|
2087
|
+
});
|
2088
|
+
|
2089
|
+
if (this.options.connect) {
|
2090
|
+
|
2091
|
+
this.connect = $(this.options.connect).find(".uk-active").removeClass(".uk-active").end();
|
2092
|
+
|
2093
|
+
// delegate switch commands within container content
|
2094
|
+
if (this.connect.length) {
|
2095
|
+
|
2096
|
+
this.connect.on("click", '[data-uk-switcher-item]', function(e) {
|
2097
|
+
|
2098
|
+
e.preventDefault();
|
2099
|
+
|
2100
|
+
var item = $(this).data('ukSwitcherItem');
|
2101
|
+
|
2102
|
+
if ($this.index == item) return;
|
2103
|
+
|
2104
|
+
switch(item) {
|
2105
|
+
case 'next':
|
2106
|
+
case 'previous':
|
2107
|
+
$this.show($this.index + (item=='next' ? 1:-1));
|
2108
|
+
break;
|
2109
|
+
default:
|
2110
|
+
$this.show(item);
|
2111
|
+
}
|
2112
|
+
});
|
2113
|
+
}
|
2114
|
+
|
2115
|
+
var toggles = this.find(this.options.toggle),
|
2116
|
+
active = toggles.filter(".uk-active");
|
2117
|
+
|
2118
|
+
if (active.length) {
|
2119
|
+
this.show(active);
|
2120
|
+
} else {
|
2121
|
+
active = toggles.eq(this.options.active);
|
2122
|
+
this.show(active.length ? active : toggles.eq(0));
|
2123
|
+
}
|
2124
|
+
}
|
2125
|
+
|
2126
|
+
},
|
2127
|
+
|
2128
|
+
show: function(tab) {
|
2129
|
+
|
2130
|
+
tab = isNaN(tab) ? $(tab) : this.find(this.options.toggle).eq(tab);
|
2131
|
+
|
2132
|
+
var $this = this, active = tab;
|
2133
|
+
|
2134
|
+
if (active.hasClass("uk-disabled")) return;
|
2135
|
+
|
2136
|
+
this.find(this.options.toggle).filter(".uk-active").removeClass("uk-active");
|
2137
|
+
active.addClass("uk-active");
|
2138
|
+
|
2139
|
+
if (this.options.connect && this.connect.length) {
|
2140
|
+
|
2141
|
+
this.index = this.find(this.options.toggle).index(active);
|
2142
|
+
|
2143
|
+
if (this.index == -1 ) {
|
2144
|
+
this.index = 0;
|
2145
|
+
}
|
2146
|
+
|
2147
|
+
this.connect.each(function() {
|
2148
|
+
$(this).children().removeClass("uk-active").eq($this.index).addClass("uk-active");
|
2149
|
+
UI.Utils.checkDisplay(this);
|
2150
|
+
});
|
2151
|
+
}
|
2152
|
+
|
2153
|
+
this.trigger("uk.switcher.show", [active]);
|
2154
|
+
}
|
2155
|
+
});
|
2156
|
+
|
2157
|
+
|
2158
|
+
// init code
|
2159
|
+
UI.ready(function(context) {
|
2160
|
+
|
2161
|
+
$("[data-uk-switcher]", context).each(function() {
|
2162
|
+
var switcher = $(this);
|
2163
|
+
|
2164
|
+
if (!switcher.data("switcher")) {
|
2165
|
+
var obj = UI.switcher(switcher, UI.Utils.options(switcher.attr("data-uk-switcher")));
|
2166
|
+
}
|
2167
|
+
});
|
2168
|
+
});
|
2169
|
+
|
2170
|
+
})(jQuery, jQuery.UIkit);
|
2171
|
+
|
2172
|
+
(function($, UI) {
|
2173
|
+
|
2174
|
+
"use strict";
|
2175
|
+
|
2176
|
+
|
2177
|
+
UI.component('tab', {
|
2178
|
+
|
2179
|
+
defaults: {
|
2180
|
+
'target' : '>li:not(.uk-tab-responsive, .uk-disabled)',
|
2181
|
+
'connect' : false,
|
2182
|
+
'active' : 0
|
2183
|
+
},
|
2184
|
+
|
2185
|
+
init: function() {
|
2186
|
+
|
2187
|
+
var $this = this;
|
2188
|
+
|
2189
|
+
this.on("click", this.options.target, function(e) {
|
2190
|
+
e.preventDefault();
|
2191
|
+
$this.find($this.options.target).not(this).removeClass("uk-active").blur();
|
2192
|
+
$this.trigger("uk.tab.change", [$(this).addClass("uk-active")]);
|
2193
|
+
});
|
2194
|
+
|
2195
|
+
if (this.options.connect) {
|
2196
|
+
this.connect = $(this.options.connect);
|
2197
|
+
}
|
2198
|
+
|
2199
|
+
// init responsive tab
|
2200
|
+
this.responsivetab = $('<li class="uk-tab-responsive uk-active"><a></a></li>').append('<div class="uk-dropdown uk-dropdown-small"><ul class="uk-nav uk-nav-dropdown"></ul><div>');
|
2201
|
+
|
2202
|
+
this.responsivetab.dropdown = this.responsivetab.find('.uk-dropdown');
|
2203
|
+
this.responsivetab.lst = this.responsivetab.dropdown.find('ul');
|
2204
|
+
this.responsivetab.caption = this.responsivetab.find('a:first');
|
2205
|
+
|
2206
|
+
if (this.element.hasClass("uk-tab-bottom")) this.responsivetab.dropdown.addClass("uk-dropdown-up");
|
2207
|
+
|
2208
|
+
// handle click
|
2209
|
+
this.responsivetab.lst.on('click', 'a', function(e) {
|
2210
|
+
|
2211
|
+
e.preventDefault();
|
2212
|
+
e.stopPropagation();
|
2213
|
+
|
2214
|
+
var link = $(this);
|
2215
|
+
|
2216
|
+
$this.element.children(':not(.uk-tab-responsive)').eq(link.data('index')).trigger('click');
|
2217
|
+
});
|
2218
|
+
|
2219
|
+
this.on('uk.switcher.show uk.tab.change', function(e, tab) {
|
2220
|
+
$this.responsivetab.caption.html(tab.text());
|
2221
|
+
});
|
2222
|
+
|
2223
|
+
this.element.append(this.responsivetab);
|
2224
|
+
|
2225
|
+
// init UIkit components
|
2226
|
+
if (this.options.connect) {
|
2227
|
+
UI.switcher(this.element, {"toggle": ">li:not(.uk-tab-responsive)", "connect": this.options.connect, "active": this.options.active});
|
2228
|
+
}
|
2229
|
+
|
2230
|
+
UI.dropdown(this.responsivetab, {"mode": "click"});
|
2231
|
+
|
2232
|
+
// init
|
2233
|
+
$this.trigger("uk.tab.change", [this.element.find(this.options.target).filter('.uk-active')]);
|
2234
|
+
|
2235
|
+
this.check();
|
2236
|
+
|
2237
|
+
UI.$win.on('resize orientationchange', UI.Utils.debounce(function(){
|
2238
|
+
$this.check();
|
2239
|
+
}, 100));
|
2240
|
+
},
|
2241
|
+
|
2242
|
+
check: function() {
|
2243
|
+
|
2244
|
+
var children = this.element.children(':not(.uk-tab-responsive)').removeClass('uk-hidden');
|
2245
|
+
|
2246
|
+
if (children.length < 2) return;
|
2247
|
+
|
2248
|
+
var top = (children.eq(0).offset().top + Math.ceil(children.eq(0).height()/2)),
|
2249
|
+
doresponsive = false,
|
2250
|
+
item, link;
|
2251
|
+
|
2252
|
+
this.responsivetab.lst.empty();
|
2253
|
+
|
2254
|
+
children.each(function(){
|
2255
|
+
|
2256
|
+
if ($(this).offset().top > top) {
|
2257
|
+
doresponsive = true;
|
2258
|
+
}
|
2259
|
+
});
|
2260
|
+
|
2261
|
+
if (doresponsive) {
|
2262
|
+
|
2263
|
+
for (var i = 0; i < children.length; i++) {
|
2264
|
+
|
2265
|
+
item = children.eq(i);
|
2266
|
+
link = item.find('a');
|
2267
|
+
|
2268
|
+
if (item.css('float') != 'none' && !item.attr('uk-dropdown')) {
|
2269
|
+
|
2270
|
+
item.addClass('uk-hidden');
|
2271
|
+
|
2272
|
+
if (!item.hasClass('uk-disabled')) {
|
2273
|
+
this.responsivetab.lst.append('<li><a href="'+link.attr('href')+'" data-index="'+i+'">'+link.html()+'</a></li>');
|
2274
|
+
}
|
2275
|
+
}
|
2276
|
+
}
|
2277
|
+
}
|
2278
|
+
|
2279
|
+
this.responsivetab[this.responsivetab.lst.children().length ? 'removeClass':'addClass']('uk-hidden');
|
2280
|
+
}
|
2281
|
+
});
|
2282
|
+
|
2283
|
+
// init code
|
2284
|
+
UI.ready(function(context) {
|
2285
|
+
|
2286
|
+
$("[data-uk-tab]", context).each(function() {
|
2287
|
+
|
2288
|
+
var tab = $(this);
|
2289
|
+
|
2290
|
+
if (!tab.data("tab")) {
|
2291
|
+
var obj = UI.tab(tab, UI.Utils.options(tab.attr("data-uk-tab")));
|
2292
|
+
}
|
2293
|
+
});
|
2294
|
+
});
|
2295
|
+
|
2296
|
+
})(jQuery, jQuery.UIkit);
|
2297
|
+
|
2298
|
+
(function($, UI) {
|
2299
|
+
|
2300
|
+
"use strict";
|
2301
|
+
|
2302
|
+
var $win = UI.$win,
|
2303
|
+
$doc = UI.$doc,
|
2304
|
+
scrollspies = [],
|
2305
|
+
checkScrollSpy = function() {
|
2306
|
+
for(var i=0; i < scrollspies.length; i++) {
|
2307
|
+
UI.support.requestAnimationFrame.apply(window, [scrollspies[i].check]);
|
2308
|
+
}
|
2309
|
+
};
|
2310
|
+
|
2311
|
+
UI.component('scrollspy', {
|
2312
|
+
|
2313
|
+
defaults: {
|
2314
|
+
"cls" : "uk-scrollspy-inview",
|
2315
|
+
"initcls" : "uk-scrollspy-init-inview",
|
2316
|
+
"topoffset" : 0,
|
2317
|
+
"leftoffset" : 0,
|
2318
|
+
"repeat" : false,
|
2319
|
+
"delay" : 0
|
2320
|
+
},
|
2321
|
+
|
2322
|
+
init: function() {
|
2323
|
+
|
2324
|
+
var $this = this, idle, inviewstate, initinview,
|
2325
|
+
fn = function(){
|
2326
|
+
|
2327
|
+
var inview = UI.Utils.isInView($this.element, $this.options);
|
2328
|
+
|
2329
|
+
if(inview && !inviewstate) {
|
2330
|
+
|
2331
|
+
if(idle) clearTimeout(idle);
|
2332
|
+
|
2333
|
+
if(!initinview) {
|
2334
|
+
$this.element.addClass($this.options.initcls);
|
2335
|
+
$this.offset = $this.element.offset();
|
2336
|
+
initinview = true;
|
2337
|
+
|
2338
|
+
$this.trigger("uk.scrollspy.init");
|
2339
|
+
}
|
2340
|
+
|
2341
|
+
idle = setTimeout(function(){
|
2342
|
+
|
2343
|
+
if(inview) {
|
2344
|
+
$this.element.addClass("uk-scrollspy-inview").addClass($this.options.cls).width();
|
2345
|
+
}
|
2346
|
+
}, $this.options.delay);
|
2347
|
+
|
2348
|
+
inviewstate = true;
|
2349
|
+
$this.trigger("uk.scrollspy.inview");
|
2350
|
+
}
|
2351
|
+
|
2352
|
+
if (!inview && inviewstate && $this.options.repeat) {
|
2353
|
+
$this.element.removeClass("uk-scrollspy-inview").removeClass($this.options.cls);
|
2354
|
+
inviewstate = false;
|
2355
|
+
|
2356
|
+
$this.trigger("uk.scrollspy.outview");
|
2357
|
+
}
|
2358
|
+
};
|
2359
|
+
|
2360
|
+
fn();
|
2361
|
+
|
2362
|
+
this.check = fn;
|
2363
|
+
scrollspies.push(this);
|
2364
|
+
}
|
2365
|
+
});
|
2366
|
+
|
2367
|
+
|
2368
|
+
var scrollspynavs = [],
|
2369
|
+
checkScrollSpyNavs = function() {
|
2370
|
+
for(var i=0; i < scrollspynavs.length; i++) {
|
2371
|
+
UI.support.requestAnimationFrame.apply(window, [scrollspynavs[i].check]);
|
2372
|
+
}
|
2373
|
+
};
|
2374
|
+
|
2375
|
+
UI.component('scrollspynav', {
|
2376
|
+
|
2377
|
+
defaults: {
|
2378
|
+
"cls" : 'uk-active',
|
2379
|
+
"closest" : false,
|
2380
|
+
"topoffset" : 0,
|
2381
|
+
"leftoffset" : 0,
|
2382
|
+
"smoothscroll" : false
|
2383
|
+
},
|
2384
|
+
|
2385
|
+
init: function() {
|
2386
|
+
|
2387
|
+
var ids = [],
|
2388
|
+
links = this.find("a[href^='#']").each(function(){ ids.push($(this).attr("href")); }),
|
2389
|
+
targets = $(ids.join(","));
|
2390
|
+
|
2391
|
+
var $this = this, inviews, fn = function(){
|
2392
|
+
|
2393
|
+
inviews = [];
|
2394
|
+
|
2395
|
+
for(var i=0 ; i < targets.length ; i++) {
|
2396
|
+
if(UI.Utils.isInView(targets.eq(i), $this.options)) {
|
2397
|
+
inviews.push(targets.eq(i));
|
2398
|
+
}
|
2399
|
+
}
|
2400
|
+
|
2401
|
+
if(inviews.length) {
|
2402
|
+
|
2403
|
+
var scrollTop = $win.scrollTop(),
|
2404
|
+
target = (function(){
|
2405
|
+
for(var i=0; i< inviews.length;i++){
|
2406
|
+
if(inviews[i].offset().top >= scrollTop){
|
2407
|
+
return inviews[i];
|
2408
|
+
}
|
2409
|
+
}
|
2410
|
+
})();
|
2411
|
+
|
2412
|
+
if(!target) return;
|
2413
|
+
|
2414
|
+
if($this.options.closest) {
|
2415
|
+
links.closest($this.options.closest).removeClass($this.options.cls).end().filter("a[href='#"+target.attr("id")+"']").closest($this.options.closest).addClass($this.options.cls);
|
2416
|
+
} else {
|
2417
|
+
links.removeClass($this.options.cls).filter("a[href='#"+target.attr("id")+"']").addClass($this.options.cls);
|
2418
|
+
}
|
2419
|
+
}
|
2420
|
+
};
|
2421
|
+
|
2422
|
+
if(this.options.smoothscroll && UI["smoothScroll"]) {
|
2423
|
+
links.each(function(){
|
2424
|
+
UI.smoothScroll(this, $this.options.smoothscroll);
|
2425
|
+
});
|
2426
|
+
}
|
2427
|
+
|
2428
|
+
fn();
|
2429
|
+
|
2430
|
+
this.element.data("scrollspynav", this);
|
2431
|
+
|
2432
|
+
this.check = fn;
|
2433
|
+
scrollspynavs.push(this);
|
2434
|
+
|
2435
|
+
}
|
2436
|
+
});
|
2437
|
+
|
2438
|
+
|
2439
|
+
var fnCheck = function(){
|
2440
|
+
checkScrollSpy();
|
2441
|
+
checkScrollSpyNavs();
|
2442
|
+
};
|
2443
|
+
|
2444
|
+
// listen to scroll and resize
|
2445
|
+
$doc.on("uk-scroll", fnCheck);
|
2446
|
+
$win.on("resize orientationchange", UI.Utils.debounce(fnCheck, 50));
|
2447
|
+
|
2448
|
+
// init code
|
2449
|
+
UI.ready(function(context) {
|
2450
|
+
|
2451
|
+
$("[data-uk-scrollspy]", context).each(function() {
|
2452
|
+
|
2453
|
+
var element = $(this);
|
2454
|
+
|
2455
|
+
if (!element.data("scrollspy")) {
|
2456
|
+
var obj = UI.scrollspy(element, UI.Utils.options(element.attr("data-uk-scrollspy")));
|
2457
|
+
}
|
2458
|
+
});
|
2459
|
+
|
2460
|
+
$("[data-uk-scrollspy-nav]", context).each(function() {
|
2461
|
+
|
2462
|
+
var element = $(this);
|
2463
|
+
|
2464
|
+
if (!element.data("scrollspynav")) {
|
2465
|
+
var obj = UI.scrollspynav(element, UI.Utils.options(element.attr("data-uk-scrollspy-nav")));
|
2466
|
+
}
|
2467
|
+
});
|
2468
|
+
});
|
2469
|
+
|
2470
|
+
})(jQuery, jQuery.UIkit);
|
2471
|
+
|
2472
|
+
(function($, UI) {
|
2473
|
+
|
2474
|
+
"use strict";
|
2475
|
+
|
2476
|
+
UI.component('smoothScroll', {
|
2477
|
+
|
2478
|
+
defaults: {
|
2479
|
+
duration: 1000,
|
2480
|
+
transition: 'easeOutExpo',
|
2481
|
+
offset: 0,
|
2482
|
+
complete: function(){}
|
2483
|
+
},
|
2484
|
+
|
2485
|
+
init: function() {
|
2486
|
+
|
2487
|
+
var $this = this;
|
2488
|
+
|
2489
|
+
this.on("click", function(e) {
|
2490
|
+
|
2491
|
+
// get / set parameters
|
2492
|
+
var ele = ($(this.hash).length ? $(this.hash) : $("body")),
|
2493
|
+
target = ele.offset().top - $this.options.offset,
|
2494
|
+
docheight = UI.$doc.height(),
|
2495
|
+
winheight = UI.$win.height(),
|
2496
|
+
eleheight = ele.outerHeight();
|
2497
|
+
|
2498
|
+
if ((target + winheight) > docheight) {
|
2499
|
+
target = docheight - winheight;
|
2500
|
+
}
|
2501
|
+
|
2502
|
+
// animate to target, fire callback when done
|
2503
|
+
$("html,body").stop().animate({scrollTop: target}, $this.options.duration, $this.options.transition).promise().done($this.options.complete);
|
2504
|
+
|
2505
|
+
// cancel default click action
|
2506
|
+
return false;
|
2507
|
+
});
|
2508
|
+
|
2509
|
+
}
|
2510
|
+
});
|
2511
|
+
|
2512
|
+
if (!$.easing['easeOutExpo']) {
|
2513
|
+
$.easing['easeOutExpo'] = function(x, t, b, c, d) { return (t == d) ? b + c : c * (-Math.pow(2, -10 * t / d) + 1) + b; };
|
2514
|
+
}
|
2515
|
+
|
2516
|
+
// init code
|
2517
|
+
UI.$doc.on("click.smooth-scroll.uikit", "[data-uk-smooth-scroll]", function(e) {
|
2518
|
+
var ele = $(this);
|
2519
|
+
|
2520
|
+
if (!ele.data("smoothScroll")) {
|
2521
|
+
var obj = UI.smoothScroll(ele, UI.Utils.options(ele.attr("data-uk-smooth-scroll")));
|
2522
|
+
ele.trigger("click");
|
2523
|
+
}
|
2524
|
+
|
2525
|
+
return false;
|
2526
|
+
});
|
2527
|
+
|
2528
|
+
})(jQuery, jQuery.UIkit);
|
2529
|
+
|
2530
|
+
|
2531
|
+
(function(global, $, UI){
|
2532
|
+
|
2533
|
+
var togglers = [];
|
2534
|
+
|
2535
|
+
UI.component('toggle', {
|
2536
|
+
|
2537
|
+
defaults: {
|
2538
|
+
target: false,
|
2539
|
+
cls: 'uk-hidden'
|
2540
|
+
},
|
2541
|
+
|
2542
|
+
init: function() {
|
2543
|
+
|
2544
|
+
var $this = this;
|
2545
|
+
|
2546
|
+
this.getTogglers();
|
2547
|
+
|
2548
|
+
this.on("click", function(e) {
|
2549
|
+
if ($this.element.is('a[href="#"]')) e.preventDefault();
|
2550
|
+
$this.toggle();
|
2551
|
+
});
|
2552
|
+
|
2553
|
+
togglers.push(this);
|
2554
|
+
},
|
2555
|
+
|
2556
|
+
toggle: function() {
|
2557
|
+
|
2558
|
+
if(!this.totoggle.length) return;
|
2559
|
+
|
2560
|
+
this.totoggle.toggleClass(this.options.cls);
|
2561
|
+
|
2562
|
+
if (this.options.cls == 'uk-hidden') {
|
2563
|
+
UI.Utils.checkDisplay(this.totoggle);
|
2564
|
+
}
|
2565
|
+
},
|
2566
|
+
|
2567
|
+
getTogglers: function() {
|
2568
|
+
this.totoggle = this.options.target ? $(this.options.target):[];
|
2569
|
+
}
|
2570
|
+
});
|
2571
|
+
|
2572
|
+
// init code
|
2573
|
+
UI.ready(function(context) {
|
2574
|
+
|
2575
|
+
$("[data-uk-toggle]", context).each(function() {
|
2576
|
+
var ele = $(this);
|
2577
|
+
|
2578
|
+
if (!ele.data("toggle")) {
|
2579
|
+
var obj = UI.toggle(ele, UI.Utils.options(ele.attr("data-uk-toggle")));
|
2580
|
+
}
|
2581
|
+
});
|
2582
|
+
|
2583
|
+
setTimeout(function(){
|
2584
|
+
|
2585
|
+
togglers.forEach(function(toggler){
|
2586
|
+
toggler.getTogglers();
|
2587
|
+
});
|
2588
|
+
|
2589
|
+
}, 0);
|
2590
|
+
});
|
2591
|
+
|
2592
|
+
})(this, jQuery, jQuery.UIkit);
|