cg_app_base 1.0.51
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.rdoc +3 -0
- data/Rakefile +23 -0
- data/app/assets/fonts/flatty/FontAwesome.otf +0 -0
- data/app/assets/fonts/flatty/bootstrap/glyphicons-halflings-regular.eot +0 -0
- data/app/assets/fonts/flatty/bootstrap/glyphicons-halflings-regular.svg +228 -0
- data/app/assets/fonts/flatty/bootstrap/glyphicons-halflings-regular.ttf +0 -0
- data/app/assets/fonts/flatty/bootstrap/glyphicons-halflings-regular.woff +0 -0
- data/app/assets/fonts/flatty/fontawesome-webfont.eot +0 -0
- data/app/assets/fonts/flatty/fontawesome-webfont.svg +399 -0
- data/app/assets/fonts/flatty/fontawesome-webfont.ttf +0 -0
- data/app/assets/fonts/flatty/fontawesome-webfont.woff +0 -0
- data/app/assets/fonts/flatty/montserrat-bold-webfont.eot +0 -0
- data/app/assets/fonts/flatty/montserrat-bold-webfont.svg +244 -0
- data/app/assets/fonts/flatty/montserrat-bold-webfont.ttf +0 -0
- data/app/assets/fonts/flatty/montserrat-bold-webfont.woff +0 -0
- data/app/assets/fonts/flatty/montserrat-regular-webfont.eot +0 -0
- data/app/assets/fonts/flatty/montserrat-regular-webfont.svg +243 -0
- data/app/assets/fonts/flatty/montserrat-regular-webfont.ttf +0 -0
- data/app/assets/fonts/flatty/montserrat-regular-webfont.woff +0 -0
- data/app/assets/images/ajaxSpinner.gif +0 -0
- data/app/assets/images/flatty/ajax-loaders/1.gif +0 -0
- data/app/assets/images/flatty/ajax-loaders/10.gif +0 -0
- data/app/assets/images/flatty/ajax-loaders/11.gif +0 -0
- data/app/assets/images/flatty/ajax-loaders/12.gif +0 -0
- data/app/assets/images/flatty/ajax-loaders/13.gif +0 -0
- data/app/assets/images/flatty/ajax-loaders/14.gif +0 -0
- data/app/assets/images/flatty/ajax-loaders/15.gif +0 -0
- data/app/assets/images/flatty/ajax-loaders/16.gif +0 -0
- data/app/assets/images/flatty/ajax-loaders/17.gif +0 -0
- data/app/assets/images/flatty/ajax-loaders/18.gif +0 -0
- data/app/assets/images/flatty/ajax-loaders/2.gif +0 -0
- data/app/assets/images/flatty/ajax-loaders/3.gif +0 -0
- data/app/assets/images/flatty/ajax-loaders/4.gif +0 -0
- data/app/assets/images/flatty/ajax-loaders/5.gif +0 -0
- data/app/assets/images/flatty/ajax-loaders/6.gif +0 -0
- data/app/assets/images/flatty/ajax-loaders/7.gif +0 -0
- data/app/assets/images/flatty/ajax-loaders/8.gif +0 -0
- data/app/assets/images/flatty/ajax-loaders/9.gif +0 -0
- data/app/assets/images/flatty/avatar.jpg +0 -0
- data/app/assets/images/flatty/avatar@2x.jpg +0 -0
- data/app/assets/images/flatty/emails/logo.jpg +0 -0
- data/app/assets/images/flatty/emails/logo_blue.jpg +0 -0
- data/app/assets/images/flatty/emails/logo_green.jpg +0 -0
- data/app/assets/images/flatty/emails/logo_muted.jpg +0 -0
- data/app/assets/images/flatty/emails/logo_orange.jpg +0 -0
- data/app/assets/images/flatty/emails/logo_purple.jpg +0 -0
- data/app/assets/images/flatty/jquery_ui/animated-overlay.gif +0 -0
- data/app/assets/images/flatty/logo.png +0 -0
- data/app/assets/images/flatty/logo.svg +3443 -0
- data/app/assets/images/flatty/logo_lg.png +0 -0
- data/app/assets/images/flatty/logo_lg.svg +59 -0
- data/app/assets/images/flatty/logo_xs.png +0 -0
- data/app/assets/images/flatty/logo_xs.svg +3372 -0
- data/app/assets/images/flatty/meta_icons/apple-touch-icon-114x114.png +0 -0
- data/app/assets/images/flatty/meta_icons/apple-touch-icon-144x144.png +0 -0
- data/app/assets/images/flatty/meta_icons/apple-touch-icon-57x57.png +0 -0
- data/app/assets/images/flatty/meta_icons/apple-touch-icon-72x72.png +0 -0
- data/app/assets/images/flatty/meta_icons/apple-touch-icon.png +0 -0
- data/app/assets/images/flatty/meta_icons/favicon.ico +0 -0
- data/app/assets/images/flatty/plugins/bootstrap_colorpicker/alpha.png +0 -0
- data/app/assets/images/flatty/plugins/bootstrap_colorpicker/hue.png +0 -0
- data/app/assets/images/flatty/plugins/bootstrap_colorpicker/saturation.png +0 -0
- data/app/assets/images/flatty/plugins/dynatree/icons.gif +0 -0
- data/app/assets/images/flatty/plugins/dynatree/loading.gif +0 -0
- data/app/assets/images/flatty/plugins/flags/flags.png +0 -0
- data/app/assets/images/flatty/plugins/lightbox/close.png +0 -0
- data/app/assets/images/flatty/plugins/lightbox/loading.gif +0 -0
- data/app/assets/images/flatty/plugins/lightbox/next.png +0 -0
- data/app/assets/images/flatty/plugins/lightbox/prev.png +0 -0
- data/app/assets/images/flatty/plugins/naked_password/f0.png +0 -0
- data/app/assets/images/flatty/plugins/naked_password/f1.png +0 -0
- data/app/assets/images/flatty/plugins/naked_password/f2.png +0 -0
- data/app/assets/images/flatty/plugins/naked_password/f3.png +0 -0
- data/app/assets/images/flatty/plugins/naked_password/f4.png +0 -0
- data/app/assets/images/flatty/plugins/naked_password/f5.png +0 -0
- data/app/assets/images/flatty/plugins/naked_password/m0.png +0 -0
- data/app/assets/images/flatty/plugins/naked_password/m1.png +0 -0
- data/app/assets/images/flatty/plugins/naked_password/m2.png +0 -0
- data/app/assets/images/flatty/plugins/naked_password/m3.png +0 -0
- data/app/assets/images/flatty/plugins/naked_password/m4.png +0 -0
- data/app/assets/images/flatty/plugins/naked_password/m5.png +0 -0
- data/app/assets/images/flatty/plugins/select2/select2-spinner.gif +0 -0
- data/app/assets/images/flatty/plugins/select2/select2.png +0 -0
- data/app/assets/images/flatty/plugins/select2/select2x2.png +0 -0
- data/app/assets/images/loading.gif +0 -0
- data/app/assets/images/logo_caronetguay-3.jpg +0 -0
- data/app/assets/images/logo_caronetguay-nwsltr.jpg +0 -0
- data/app/assets/images/logo_caronetguay.jpg +0 -0
- data/app/assets/images/newicons/black0.png +0 -0
- data/app/assets/images/newicons/black1.png +0 -0
- data/app/assets/images/newicons/black10.png +0 -0
- data/app/assets/images/newicons/black100.png +0 -0
- data/app/assets/images/newicons/black11.png +0 -0
- data/app/assets/images/newicons/black12.png +0 -0
- data/app/assets/images/newicons/black13.png +0 -0
- data/app/assets/images/newicons/black14.png +0 -0
- data/app/assets/images/newicons/black15.png +0 -0
- data/app/assets/images/newicons/black16.png +0 -0
- data/app/assets/images/newicons/black17.png +0 -0
- data/app/assets/images/newicons/black18.png +0 -0
- data/app/assets/images/newicons/black19.png +0 -0
- data/app/assets/images/newicons/black2.png +0 -0
- data/app/assets/images/newicons/black20.png +0 -0
- data/app/assets/images/newicons/black21.png +0 -0
- data/app/assets/images/newicons/black22.png +0 -0
- data/app/assets/images/newicons/black23.png +0 -0
- data/app/assets/images/newicons/black24.png +0 -0
- data/app/assets/images/newicons/black25.png +0 -0
- data/app/assets/images/newicons/black26.png +0 -0
- data/app/assets/images/newicons/black27.png +0 -0
- data/app/assets/images/newicons/black28.png +0 -0
- data/app/assets/images/newicons/black29.png +0 -0
- data/app/assets/images/newicons/black3.png +0 -0
- data/app/assets/images/newicons/black30.png +0 -0
- data/app/assets/images/newicons/black31.png +0 -0
- data/app/assets/images/newicons/black32.png +0 -0
- data/app/assets/images/newicons/black33.png +0 -0
- data/app/assets/images/newicons/black34.png +0 -0
- data/app/assets/images/newicons/black35.png +0 -0
- data/app/assets/images/newicons/black36.png +0 -0
- data/app/assets/images/newicons/black37.png +0 -0
- data/app/assets/images/newicons/black38.png +0 -0
- data/app/assets/images/newicons/black39.png +0 -0
- data/app/assets/images/newicons/black4.png +0 -0
- data/app/assets/images/newicons/black40.png +0 -0
- data/app/assets/images/newicons/black41.png +0 -0
- data/app/assets/images/newicons/black42.png +0 -0
- data/app/assets/images/newicons/black43.png +0 -0
- data/app/assets/images/newicons/black44.png +0 -0
- data/app/assets/images/newicons/black45.png +0 -0
- data/app/assets/images/newicons/black46.png +0 -0
- data/app/assets/images/newicons/black47.png +0 -0
- data/app/assets/images/newicons/black48.png +0 -0
- data/app/assets/images/newicons/black49.png +0 -0
- data/app/assets/images/newicons/black5.png +0 -0
- data/app/assets/images/newicons/black50.png +0 -0
- data/app/assets/images/newicons/black51.png +0 -0
- data/app/assets/images/newicons/black52.png +0 -0
- data/app/assets/images/newicons/black53.png +0 -0
- data/app/assets/images/newicons/black54.png +0 -0
- data/app/assets/images/newicons/black55.png +0 -0
- data/app/assets/images/newicons/black56.png +0 -0
- data/app/assets/images/newicons/black57.png +0 -0
- data/app/assets/images/newicons/black58.png +0 -0
- data/app/assets/images/newicons/black59.png +0 -0
- data/app/assets/images/newicons/black6.png +0 -0
- data/app/assets/images/newicons/black60.png +0 -0
- data/app/assets/images/newicons/black61.png +0 -0
- data/app/assets/images/newicons/black62.png +0 -0
- data/app/assets/images/newicons/black63.png +0 -0
- data/app/assets/images/newicons/black64.png +0 -0
- data/app/assets/images/newicons/black65.png +0 -0
- data/app/assets/images/newicons/black66.png +0 -0
- data/app/assets/images/newicons/black67.png +0 -0
- data/app/assets/images/newicons/black68.png +0 -0
- data/app/assets/images/newicons/black69.png +0 -0
- data/app/assets/images/newicons/black7.png +0 -0
- data/app/assets/images/newicons/black70.png +0 -0
- data/app/assets/images/newicons/black71.png +0 -0
- data/app/assets/images/newicons/black72.png +0 -0
- data/app/assets/images/newicons/black73.png +0 -0
- data/app/assets/images/newicons/black74.png +0 -0
- data/app/assets/images/newicons/black75.png +0 -0
- data/app/assets/images/newicons/black76.png +0 -0
- data/app/assets/images/newicons/black77.png +0 -0
- data/app/assets/images/newicons/black78.png +0 -0
- data/app/assets/images/newicons/black79.png +0 -0
- data/app/assets/images/newicons/black8.png +0 -0
- data/app/assets/images/newicons/black80.png +0 -0
- data/app/assets/images/newicons/black81.png +0 -0
- data/app/assets/images/newicons/black82.png +0 -0
- data/app/assets/images/newicons/black83.png +0 -0
- data/app/assets/images/newicons/black84.png +0 -0
- data/app/assets/images/newicons/black85.png +0 -0
- data/app/assets/images/newicons/black86.png +0 -0
- data/app/assets/images/newicons/black87.png +0 -0
- data/app/assets/images/newicons/black88.png +0 -0
- data/app/assets/images/newicons/black89.png +0 -0
- data/app/assets/images/newicons/black9.png +0 -0
- data/app/assets/images/newicons/black90.png +0 -0
- data/app/assets/images/newicons/black91.png +0 -0
- data/app/assets/images/newicons/black92.png +0 -0
- data/app/assets/images/newicons/black93.png +0 -0
- data/app/assets/images/newicons/black94.png +0 -0
- data/app/assets/images/newicons/black95.png +0 -0
- data/app/assets/images/newicons/black96.png +0 -0
- data/app/assets/images/newicons/black97.png +0 -0
- data/app/assets/images/newicons/black98.png +0 -0
- data/app/assets/images/newicons/black99.png +0 -0
- data/app/assets/images/newicons/index.html +213 -0
- data/app/assets/images/newicons/red0.png +0 -0
- data/app/assets/images/newicons/red1.png +0 -0
- data/app/assets/images/newicons/red10.png +0 -0
- data/app/assets/images/newicons/red100.png +0 -0
- data/app/assets/images/newicons/red11.png +0 -0
- data/app/assets/images/newicons/red12.png +0 -0
- data/app/assets/images/newicons/red13.png +0 -0
- data/app/assets/images/newicons/red14.png +0 -0
- data/app/assets/images/newicons/red15.png +0 -0
- data/app/assets/images/newicons/red16.png +0 -0
- data/app/assets/images/newicons/red17.png +0 -0
- data/app/assets/images/newicons/red18.png +0 -0
- data/app/assets/images/newicons/red19.png +0 -0
- data/app/assets/images/newicons/red2.png +0 -0
- data/app/assets/images/newicons/red20.png +0 -0
- data/app/assets/images/newicons/red21.png +0 -0
- data/app/assets/images/newicons/red22.png +0 -0
- data/app/assets/images/newicons/red23.png +0 -0
- data/app/assets/images/newicons/red24.png +0 -0
- data/app/assets/images/newicons/red25.png +0 -0
- data/app/assets/images/newicons/red26.png +0 -0
- data/app/assets/images/newicons/red27.png +0 -0
- data/app/assets/images/newicons/red28.png +0 -0
- data/app/assets/images/newicons/red29.png +0 -0
- data/app/assets/images/newicons/red3.png +0 -0
- data/app/assets/images/newicons/red30.png +0 -0
- data/app/assets/images/newicons/red31.png +0 -0
- data/app/assets/images/newicons/red32.png +0 -0
- data/app/assets/images/newicons/red33.png +0 -0
- data/app/assets/images/newicons/red34.png +0 -0
- data/app/assets/images/newicons/red35.png +0 -0
- data/app/assets/images/newicons/red36.png +0 -0
- data/app/assets/images/newicons/red37.png +0 -0
- data/app/assets/images/newicons/red38.png +0 -0
- data/app/assets/images/newicons/red39.png +0 -0
- data/app/assets/images/newicons/red4.png +0 -0
- data/app/assets/images/newicons/red40.png +0 -0
- data/app/assets/images/newicons/red41.png +0 -0
- data/app/assets/images/newicons/red42.png +0 -0
- data/app/assets/images/newicons/red43.png +0 -0
- data/app/assets/images/newicons/red44.png +0 -0
- data/app/assets/images/newicons/red45.png +0 -0
- data/app/assets/images/newicons/red46.png +0 -0
- data/app/assets/images/newicons/red47.png +0 -0
- data/app/assets/images/newicons/red48.png +0 -0
- data/app/assets/images/newicons/red49.png +0 -0
- data/app/assets/images/newicons/red5.png +0 -0
- data/app/assets/images/newicons/red50.png +0 -0
- data/app/assets/images/newicons/red51.png +0 -0
- data/app/assets/images/newicons/red52.png +0 -0
- data/app/assets/images/newicons/red53.png +0 -0
- data/app/assets/images/newicons/red54.png +0 -0
- data/app/assets/images/newicons/red55.png +0 -0
- data/app/assets/images/newicons/red56.png +0 -0
- data/app/assets/images/newicons/red57.png +0 -0
- data/app/assets/images/newicons/red58.png +0 -0
- data/app/assets/images/newicons/red59.png +0 -0
- data/app/assets/images/newicons/red6.png +0 -0
- data/app/assets/images/newicons/red60.png +0 -0
- data/app/assets/images/newicons/red61.png +0 -0
- data/app/assets/images/newicons/red62.png +0 -0
- data/app/assets/images/newicons/red63.png +0 -0
- data/app/assets/images/newicons/red64.png +0 -0
- data/app/assets/images/newicons/red65.png +0 -0
- data/app/assets/images/newicons/red66.png +0 -0
- data/app/assets/images/newicons/red67.png +0 -0
- data/app/assets/images/newicons/red68.png +0 -0
- data/app/assets/images/newicons/red69.png +0 -0
- data/app/assets/images/newicons/red7.png +0 -0
- data/app/assets/images/newicons/red70.png +0 -0
- data/app/assets/images/newicons/red71.png +0 -0
- data/app/assets/images/newicons/red72.png +0 -0
- data/app/assets/images/newicons/red73.png +0 -0
- data/app/assets/images/newicons/red74.png +0 -0
- data/app/assets/images/newicons/red75.png +0 -0
- data/app/assets/images/newicons/red76.png +0 -0
- data/app/assets/images/newicons/red77.png +0 -0
- data/app/assets/images/newicons/red78.png +0 -0
- data/app/assets/images/newicons/red79.png +0 -0
- data/app/assets/images/newicons/red8.png +0 -0
- data/app/assets/images/newicons/red80.png +0 -0
- data/app/assets/images/newicons/red81.png +0 -0
- data/app/assets/images/newicons/red82.png +0 -0
- data/app/assets/images/newicons/red83.png +0 -0
- data/app/assets/images/newicons/red84.png +0 -0
- data/app/assets/images/newicons/red85.png +0 -0
- data/app/assets/images/newicons/red86.png +0 -0
- data/app/assets/images/newicons/red87.png +0 -0
- data/app/assets/images/newicons/red88.png +0 -0
- data/app/assets/images/newicons/red89.png +0 -0
- data/app/assets/images/newicons/red9.png +0 -0
- data/app/assets/images/newicons/red90.png +0 -0
- data/app/assets/images/newicons/red91.png +0 -0
- data/app/assets/images/newicons/red92.png +0 -0
- data/app/assets/images/newicons/red93.png +0 -0
- data/app/assets/images/newicons/red94.png +0 -0
- data/app/assets/images/newicons/red95.png +0 -0
- data/app/assets/images/newicons/red96.png +0 -0
- data/app/assets/images/newicons/red97.png +0 -0
- data/app/assets/images/newicons/red98.png +0 -0
- data/app/assets/images/newicons/red99.png +0 -0
- data/app/assets/images/spinner_squares_circle.gif +0 -0
- data/app/assets/images/sprite-skin-flat.png +0 -0
- data/app/assets/images/top-arrow.png +0 -0
- data/app/assets/javascripts/autocomplete-rails.js +143 -0
- data/app/assets/javascripts/base.js.coffee +56 -0
- data/app/assets/javascripts/flatty/bootstrap/bootstrap.js +1999 -0
- data/app/assets/javascripts/flatty/bootstrap/bootstrap.min.js +6 -0
- data/app/assets/javascripts/flatty/demo.js.coffee +19 -0
- data/app/assets/javascripts/flatty/ie/html5shiv.js +11 -0
- data/app/assets/javascripts/flatty/ie/respond.min.js +6 -0
- data/app/assets/javascripts/flatty/jquery/jquery-migrate.min.js +2 -0
- data/app/assets/javascripts/flatty/jquery/jquery-ui.min.js +12 -0
- data/app/assets/javascripts/flatty/jquery/jquery.min.js +4 -0
- data/app/assets/javascripts/flatty/jquery/jquery.mobile.custom.min.js +2 -0
- data/app/assets/javascripts/flatty/plugins/autosize/jquery.autosize-min.js +7 -0
- data/app/assets/javascripts/flatty/plugins/bootbox/bootbox.min.js +6 -0
- data/app/assets/javascripts/flatty/plugins/bootstrap_colorpicker/bootstrap-colorpicker.min.js +1 -0
- data/app/assets/javascripts/flatty/plugins/bootstrap_daterangepicker/bootstrap-daterangepicker.js +1026 -0
- data/app/assets/javascripts/flatty/plugins/bootstrap_daterangepicker/daterangepicker.js +1026 -0
- data/app/assets/javascripts/flatty/plugins/bootstrap_daterangepicker/moment.min.js +6 -0
- data/app/assets/javascripts/flatty/plugins/bootstrap_datetimepicker/bootstrap-datepicker.js +1671 -0
- data/app/assets/javascripts/flatty/plugins/bootstrap_datetimepicker/bootstrap-datetimepicker.js +26 -0
- data/app/assets/javascripts/flatty/plugins/bootstrap_datetimepicker/locales/bootstrap-datepicker.ar.js +15 -0
- data/app/assets/javascripts/flatty/plugins/bootstrap_datetimepicker/locales/bootstrap-datepicker.az.js +12 -0
- data/app/assets/javascripts/flatty/plugins/bootstrap_datetimepicker/locales/bootstrap-datepicker.bg.js +14 -0
- data/app/assets/javascripts/flatty/plugins/bootstrap_datetimepicker/locales/bootstrap-datepicker.ca.js +14 -0
- data/app/assets/javascripts/flatty/plugins/bootstrap_datetimepicker/locales/bootstrap-datepicker.cs.js +15 -0
- data/app/assets/javascripts/flatty/plugins/bootstrap_datetimepicker/locales/bootstrap-datepicker.cy.js +14 -0
- data/app/assets/javascripts/flatty/plugins/bootstrap_datetimepicker/locales/bootstrap-datepicker.da.js +15 -0
- data/app/assets/javascripts/flatty/plugins/bootstrap_datetimepicker/locales/bootstrap-datepicker.de.js +17 -0
- data/app/assets/javascripts/flatty/plugins/bootstrap_datetimepicker/locales/bootstrap-datepicker.el.js +13 -0
- data/app/assets/javascripts/flatty/plugins/bootstrap_datetimepicker/locales/bootstrap-datepicker.es.js +14 -0
- data/app/assets/javascripts/flatty/plugins/bootstrap_datetimepicker/locales/bootstrap-datepicker.et.js +18 -0
- data/app/assets/javascripts/flatty/plugins/bootstrap_datetimepicker/locales/bootstrap-datepicker.fa.js +17 -0
- data/app/assets/javascripts/flatty/plugins/bootstrap_datetimepicker/locales/bootstrap-datepicker.fi.js +16 -0
- data/app/assets/javascripts/flatty/plugins/bootstrap_datetimepicker/locales/bootstrap-datepicker.fr.js +17 -0
- data/app/assets/javascripts/flatty/plugins/bootstrap_datetimepicker/locales/bootstrap-datepicker.gl.js +11 -0
- data/app/assets/javascripts/flatty/plugins/bootstrap_datetimepicker/locales/bootstrap-datepicker.he.js +15 -0
- data/app/assets/javascripts/flatty/plugins/bootstrap_datetimepicker/locales/bootstrap-datepicker.hr.js +13 -0
- data/app/assets/javascripts/flatty/plugins/bootstrap_datetimepicker/locales/bootstrap-datepicker.hu.js +16 -0
- data/app/assets/javascripts/flatty/plugins/bootstrap_datetimepicker/locales/bootstrap-datepicker.id.js +15 -0
- data/app/assets/javascripts/flatty/plugins/bootstrap_datetimepicker/locales/bootstrap-datepicker.is.js +14 -0
- data/app/assets/javascripts/flatty/plugins/bootstrap_datetimepicker/locales/bootstrap-datepicker.it.js +17 -0
- data/app/assets/javascripts/flatty/plugins/bootstrap_datetimepicker/locales/bootstrap-datepicker.ja.js +15 -0
- data/app/assets/javascripts/flatty/plugins/bootstrap_datetimepicker/locales/bootstrap-datepicker.ka.js +17 -0
- data/app/assets/javascripts/flatty/plugins/bootstrap_datetimepicker/locales/bootstrap-datepicker.kk.js +15 -0
- data/app/assets/javascripts/flatty/plugins/bootstrap_datetimepicker/locales/bootstrap-datepicker.kr.js +13 -0
- data/app/assets/javascripts/flatty/plugins/bootstrap_datetimepicker/locales/bootstrap-datepicker.lt.js +16 -0
- data/app/assets/javascripts/flatty/plugins/bootstrap_datetimepicker/locales/bootstrap-datepicker.lv.js +16 -0
- data/app/assets/javascripts/flatty/plugins/bootstrap_datetimepicker/locales/bootstrap-datepicker.mk.js +15 -0
- data/app/assets/javascripts/flatty/plugins/bootstrap_datetimepicker/locales/bootstrap-datepicker.ms.js +14 -0
- data/app/assets/javascripts/flatty/plugins/bootstrap_datetimepicker/locales/bootstrap-datepicker.nb.js +14 -0
- data/app/assets/javascripts/flatty/plugins/bootstrap_datetimepicker/locales/bootstrap-datepicker.nl-BE.js +17 -0
- data/app/assets/javascripts/flatty/plugins/bootstrap_datetimepicker/locales/bootstrap-datepicker.nl.js +14 -0
- data/app/assets/javascripts/flatty/plugins/bootstrap_datetimepicker/locales/bootstrap-datepicker.no.js +16 -0
- data/app/assets/javascripts/flatty/plugins/bootstrap_datetimepicker/locales/bootstrap-datepicker.pl.js +15 -0
- data/app/assets/javascripts/flatty/plugins/bootstrap_datetimepicker/locales/bootstrap-datepicker.pt-BR.js +15 -0
- data/app/assets/javascripts/flatty/plugins/bootstrap_datetimepicker/locales/bootstrap-datepicker.pt.js +16 -0
- data/app/assets/javascripts/flatty/plugins/bootstrap_datetimepicker/locales/bootstrap-datepicker.ro.js +16 -0
- data/app/assets/javascripts/flatty/plugins/bootstrap_datetimepicker/locales/bootstrap-datepicker.rs-latin.js +14 -0
- data/app/assets/javascripts/flatty/plugins/bootstrap_datetimepicker/locales/bootstrap-datepicker.rs.js +14 -0
- data/app/assets/javascripts/flatty/plugins/bootstrap_datetimepicker/locales/bootstrap-datepicker.ru.js +15 -0
- data/app/assets/javascripts/flatty/plugins/bootstrap_datetimepicker/locales/bootstrap-datepicker.sk.js +15 -0
- data/app/assets/javascripts/flatty/plugins/bootstrap_datetimepicker/locales/bootstrap-datepicker.sl.js +14 -0
- data/app/assets/javascripts/flatty/plugins/bootstrap_datetimepicker/locales/bootstrap-datepicker.sq.js +15 -0
- data/app/assets/javascripts/flatty/plugins/bootstrap_datetimepicker/locales/bootstrap-datepicker.sv.js +16 -0
- data/app/assets/javascripts/flatty/plugins/bootstrap_datetimepicker/locales/bootstrap-datepicker.sw.js +15 -0
- data/app/assets/javascripts/flatty/plugins/bootstrap_datetimepicker/locales/bootstrap-datepicker.th.js +14 -0
- data/app/assets/javascripts/flatty/plugins/bootstrap_datetimepicker/locales/bootstrap-datepicker.tr.js +16 -0
- data/app/assets/javascripts/flatty/plugins/bootstrap_datetimepicker/locales/bootstrap-datepicker.ua.js +15 -0
- data/app/assets/javascripts/flatty/plugins/bootstrap_datetimepicker/locales/bootstrap-datepicker.vi.js +16 -0
- data/app/assets/javascripts/flatty/plugins/bootstrap_datetimepicker/locales/bootstrap-datepicker.zh-CN.js +16 -0
- data/app/assets/javascripts/flatty/plugins/bootstrap_datetimepicker/locales/bootstrap-datepicker.zh-TW.js +17 -0
- data/app/assets/javascripts/flatty/plugins/bootstrap_hover_dropdown/twitter-bootstrap-hover-dropdown.min.js +13 -0
- data/app/assets/javascripts/flatty/plugins/bootstrap_maxlength/bootstrap-maxlength.min.js +13 -0
- data/app/assets/javascripts/flatty/plugins/bootstrap_switch/bootstrapSwitch.min.js +14 -0
- data/app/assets/javascripts/flatty/plugins/charCount/charCount.js +58 -0
- data/app/assets/javascripts/flatty/plugins/ckeditor/build-config.js +162 -0
- data/app/assets/javascripts/flatty/plugins/ckeditor/ckeditor.js +919 -0
- data/app/assets/javascripts/flatty/plugins/ckeditor/config.js +10 -0
- data/app/assets/javascripts/flatty/plugins/ckeditor/contents.css +103 -0
- data/app/assets/javascripts/flatty/plugins/ckeditor/lang/af.js +5 -0
- data/app/assets/javascripts/flatty/plugins/ckeditor/lang/ar.js +5 -0
- data/app/assets/javascripts/flatty/plugins/ckeditor/lang/bg.js +5 -0
- data/app/assets/javascripts/flatty/plugins/ckeditor/lang/bn.js +5 -0
- data/app/assets/javascripts/flatty/plugins/ckeditor/lang/bs.js +5 -0
- data/app/assets/javascripts/flatty/plugins/ckeditor/lang/ca.js +5 -0
- data/app/assets/javascripts/flatty/plugins/ckeditor/lang/cs.js +5 -0
- data/app/assets/javascripts/flatty/plugins/ckeditor/lang/cy.js +5 -0
- data/app/assets/javascripts/flatty/plugins/ckeditor/lang/da.js +5 -0
- data/app/assets/javascripts/flatty/plugins/ckeditor/lang/de.js +5 -0
- data/app/assets/javascripts/flatty/plugins/ckeditor/lang/el.js +5 -0
- data/app/assets/javascripts/flatty/plugins/ckeditor/lang/en-au.js +5 -0
- data/app/assets/javascripts/flatty/plugins/ckeditor/lang/en-ca.js +5 -0
- data/app/assets/javascripts/flatty/plugins/ckeditor/lang/en-gb.js +5 -0
- data/app/assets/javascripts/flatty/plugins/ckeditor/lang/en.js +5 -0
- data/app/assets/javascripts/flatty/plugins/ckeditor/lang/eo.js +5 -0
- data/app/assets/javascripts/flatty/plugins/ckeditor/lang/es.js +5 -0
- data/app/assets/javascripts/flatty/plugins/ckeditor/lang/et.js +5 -0
- data/app/assets/javascripts/flatty/plugins/ckeditor/lang/eu.js +5 -0
- data/app/assets/javascripts/flatty/plugins/ckeditor/lang/fa.js +5 -0
- data/app/assets/javascripts/flatty/plugins/ckeditor/lang/fi.js +5 -0
- data/app/assets/javascripts/flatty/plugins/ckeditor/lang/fo.js +5 -0
- data/app/assets/javascripts/flatty/plugins/ckeditor/lang/fr-ca.js +5 -0
- data/app/assets/javascripts/flatty/plugins/ckeditor/lang/fr.js +5 -0
- data/app/assets/javascripts/flatty/plugins/ckeditor/lang/gl.js +5 -0
- data/app/assets/javascripts/flatty/plugins/ckeditor/lang/gu.js +5 -0
- data/app/assets/javascripts/flatty/plugins/ckeditor/lang/he.js +5 -0
- data/app/assets/javascripts/flatty/plugins/ckeditor/lang/hi.js +5 -0
- data/app/assets/javascripts/flatty/plugins/ckeditor/lang/hr.js +5 -0
- data/app/assets/javascripts/flatty/plugins/ckeditor/lang/hu.js +5 -0
- data/app/assets/javascripts/flatty/plugins/ckeditor/lang/is.js +5 -0
- data/app/assets/javascripts/flatty/plugins/ckeditor/lang/it.js +5 -0
- data/app/assets/javascripts/flatty/plugins/ckeditor/lang/ja.js +5 -0
- data/app/assets/javascripts/flatty/plugins/ckeditor/lang/ka.js +5 -0
- data/app/assets/javascripts/flatty/plugins/ckeditor/lang/km.js +5 -0
- data/app/assets/javascripts/flatty/plugins/ckeditor/lang/ko.js +5 -0
- data/app/assets/javascripts/flatty/plugins/ckeditor/lang/ku.js +5 -0
- data/app/assets/javascripts/flatty/plugins/ckeditor/lang/lt.js +5 -0
- data/app/assets/javascripts/flatty/plugins/ckeditor/lang/lv.js +5 -0
- data/app/assets/javascripts/flatty/plugins/ckeditor/lang/mk.js +5 -0
- data/app/assets/javascripts/flatty/plugins/ckeditor/lang/mn.js +5 -0
- data/app/assets/javascripts/flatty/plugins/ckeditor/lang/ms.js +5 -0
- data/app/assets/javascripts/flatty/plugins/ckeditor/lang/nb.js +5 -0
- data/app/assets/javascripts/flatty/plugins/ckeditor/lang/nl.js +5 -0
- data/app/assets/javascripts/flatty/plugins/ckeditor/lang/no.js +5 -0
- data/app/assets/javascripts/flatty/plugins/ckeditor/lang/pl.js +5 -0
- data/app/assets/javascripts/flatty/plugins/ckeditor/lang/pt-br.js +5 -0
- data/app/assets/javascripts/flatty/plugins/ckeditor/lang/pt.js +5 -0
- data/app/assets/javascripts/flatty/plugins/ckeditor/lang/ro.js +5 -0
- data/app/assets/javascripts/flatty/plugins/ckeditor/lang/ru.js +5 -0
- data/app/assets/javascripts/flatty/plugins/ckeditor/lang/sk.js +5 -0
- data/app/assets/javascripts/flatty/plugins/ckeditor/lang/sl.js +5 -0
- data/app/assets/javascripts/flatty/plugins/ckeditor/lang/sq.js +5 -0
- data/app/assets/javascripts/flatty/plugins/ckeditor/lang/sr-latn.js +5 -0
- data/app/assets/javascripts/flatty/plugins/ckeditor/lang/sr.js +5 -0
- data/app/assets/javascripts/flatty/plugins/ckeditor/lang/sv.js +5 -0
- data/app/assets/javascripts/flatty/plugins/ckeditor/lang/th.js +5 -0
- data/app/assets/javascripts/flatty/plugins/ckeditor/lang/tr.js +5 -0
- data/app/assets/javascripts/flatty/plugins/ckeditor/lang/ug.js +5 -0
- data/app/assets/javascripts/flatty/plugins/ckeditor/lang/uk.js +5 -0
- data/app/assets/javascripts/flatty/plugins/ckeditor/lang/vi.js +5 -0
- data/app/assets/javascripts/flatty/plugins/ckeditor/lang/zh-cn.js +5 -0
- data/app/assets/javascripts/flatty/plugins/ckeditor/lang/zh.js +5 -0
- data/app/assets/javascripts/flatty/plugins/ckeditor/plugins/a11yhelp/dialogs/a11yhelp.js +10 -0
- data/app/assets/javascripts/flatty/plugins/ckeditor/plugins/a11yhelp/dialogs/lang/_translationstatus.txt +25 -0
- data/app/assets/javascripts/flatty/plugins/ckeditor/plugins/a11yhelp/dialogs/lang/ar.js +9 -0
- data/app/assets/javascripts/flatty/plugins/ckeditor/plugins/a11yhelp/dialogs/lang/bg.js +9 -0
- data/app/assets/javascripts/flatty/plugins/ckeditor/plugins/a11yhelp/dialogs/lang/ca.js +10 -0
- data/app/assets/javascripts/flatty/plugins/ckeditor/plugins/a11yhelp/dialogs/lang/cs.js +10 -0
- data/app/assets/javascripts/flatty/plugins/ckeditor/plugins/a11yhelp/dialogs/lang/cy.js +9 -0
- data/app/assets/javascripts/flatty/plugins/ckeditor/plugins/a11yhelp/dialogs/lang/da.js +9 -0
- data/app/assets/javascripts/flatty/plugins/ckeditor/plugins/a11yhelp/dialogs/lang/de.js +10 -0
- data/app/assets/javascripts/flatty/plugins/ckeditor/plugins/a11yhelp/dialogs/lang/el.js +10 -0
- data/app/assets/javascripts/flatty/plugins/ckeditor/plugins/a11yhelp/dialogs/lang/en.js +9 -0
- data/app/assets/javascripts/flatty/plugins/ckeditor/plugins/a11yhelp/dialogs/lang/eo.js +10 -0
- data/app/assets/javascripts/flatty/plugins/ckeditor/plugins/a11yhelp/dialogs/lang/es.js +10 -0
- data/app/assets/javascripts/flatty/plugins/ckeditor/plugins/a11yhelp/dialogs/lang/et.js +9 -0
- data/app/assets/javascripts/flatty/plugins/ckeditor/plugins/a11yhelp/dialogs/lang/fa.js +9 -0
- data/app/assets/javascripts/flatty/plugins/ckeditor/plugins/a11yhelp/dialogs/lang/fi.js +10 -0
- data/app/assets/javascripts/flatty/plugins/ckeditor/plugins/a11yhelp/dialogs/lang/fr-ca.js +10 -0
- data/app/assets/javascripts/flatty/plugins/ckeditor/plugins/a11yhelp/dialogs/lang/fr.js +10 -0
- data/app/assets/javascripts/flatty/plugins/ckeditor/plugins/a11yhelp/dialogs/lang/gu.js +9 -0
- data/app/assets/javascripts/flatty/plugins/ckeditor/plugins/a11yhelp/dialogs/lang/he.js +9 -0
- data/app/assets/javascripts/flatty/plugins/ckeditor/plugins/a11yhelp/dialogs/lang/hi.js +9 -0
- data/app/assets/javascripts/flatty/plugins/ckeditor/plugins/a11yhelp/dialogs/lang/hr.js +9 -0
- data/app/assets/javascripts/flatty/plugins/ckeditor/plugins/a11yhelp/dialogs/lang/hu.js +9 -0
- data/app/assets/javascripts/flatty/plugins/ckeditor/plugins/a11yhelp/dialogs/lang/it.js +10 -0
- data/app/assets/javascripts/flatty/plugins/ckeditor/plugins/a11yhelp/dialogs/lang/ja.js +9 -0
- data/app/assets/javascripts/flatty/plugins/ckeditor/plugins/a11yhelp/dialogs/lang/km.js +9 -0
- data/app/assets/javascripts/flatty/plugins/ckeditor/plugins/a11yhelp/dialogs/lang/ku.js +10 -0
- data/app/assets/javascripts/flatty/plugins/ckeditor/plugins/a11yhelp/dialogs/lang/lt.js +9 -0
- data/app/assets/javascripts/flatty/plugins/ckeditor/plugins/a11yhelp/dialogs/lang/lv.js +11 -0
- data/app/assets/javascripts/flatty/plugins/ckeditor/plugins/a11yhelp/dialogs/lang/mk.js +9 -0
- data/app/assets/javascripts/flatty/plugins/ckeditor/plugins/a11yhelp/dialogs/lang/mn.js +9 -0
- data/app/assets/javascripts/flatty/plugins/ckeditor/plugins/a11yhelp/dialogs/lang/nb.js +9 -0
- data/app/assets/javascripts/flatty/plugins/ckeditor/plugins/a11yhelp/dialogs/lang/nl.js +10 -0
- data/app/assets/javascripts/flatty/plugins/ckeditor/plugins/a11yhelp/dialogs/lang/no.js +9 -0
- data/app/assets/javascripts/flatty/plugins/ckeditor/plugins/a11yhelp/dialogs/lang/pl.js +10 -0
- data/app/assets/javascripts/flatty/plugins/ckeditor/plugins/a11yhelp/dialogs/lang/pt-br.js +9 -0
- data/app/assets/javascripts/flatty/plugins/ckeditor/plugins/a11yhelp/dialogs/lang/pt.js +9 -0
- data/app/assets/javascripts/flatty/plugins/ckeditor/plugins/a11yhelp/dialogs/lang/ro.js +9 -0
- data/app/assets/javascripts/flatty/plugins/ckeditor/plugins/a11yhelp/dialogs/lang/ru.js +9 -0
- data/app/assets/javascripts/flatty/plugins/ckeditor/plugins/a11yhelp/dialogs/lang/sk.js +10 -0
- data/app/assets/javascripts/flatty/plugins/ckeditor/plugins/a11yhelp/dialogs/lang/sl.js +9 -0
- data/app/assets/javascripts/flatty/plugins/ckeditor/plugins/a11yhelp/dialogs/lang/sq.js +9 -0
- data/app/assets/javascripts/flatty/plugins/ckeditor/plugins/a11yhelp/dialogs/lang/sv.js +10 -0
- data/app/assets/javascripts/flatty/plugins/ckeditor/plugins/a11yhelp/dialogs/lang/th.js +9 -0
- data/app/assets/javascripts/flatty/plugins/ckeditor/plugins/a11yhelp/dialogs/lang/tr.js +10 -0
- data/app/assets/javascripts/flatty/plugins/ckeditor/plugins/a11yhelp/dialogs/lang/ug.js +9 -0
- data/app/assets/javascripts/flatty/plugins/ckeditor/plugins/a11yhelp/dialogs/lang/uk.js +9 -0
- data/app/assets/javascripts/flatty/plugins/ckeditor/plugins/a11yhelp/dialogs/lang/vi.js +9 -0
- data/app/assets/javascripts/flatty/plugins/ckeditor/plugins/a11yhelp/dialogs/lang/zh-cn.js +7 -0
- data/app/assets/javascripts/flatty/plugins/ckeditor/plugins/about/dialogs/about.js +6 -0
- data/app/assets/javascripts/flatty/plugins/ckeditor/plugins/about/dialogs/logo_ckeditor.png +0 -0
- data/app/assets/javascripts/flatty/plugins/ckeditor/plugins/clipboard/dialogs/paste.js +11 -0
- data/app/assets/javascripts/flatty/plugins/ckeditor/plugins/colordialog/dialogs/colordialog.js +13 -0
- data/app/assets/javascripts/flatty/plugins/ckeditor/plugins/dialog/dialogDefinition.js +4 -0
- data/app/assets/javascripts/flatty/plugins/ckeditor/plugins/div/dialogs/div.js +9 -0
- data/app/assets/javascripts/flatty/plugins/ckeditor/plugins/fakeobjects/images/spacer.gif +0 -0
- data/app/assets/javascripts/flatty/plugins/ckeditor/plugins/find/dialogs/find.js +24 -0
- data/app/assets/javascripts/flatty/plugins/ckeditor/plugins/flash/dialogs/flash.js +24 -0
- data/app/assets/javascripts/flatty/plugins/ckeditor/plugins/flash/images/placeholder.png +0 -0
- data/app/assets/javascripts/flatty/plugins/ckeditor/plugins/forms/dialogs/button.js +8 -0
- data/app/assets/javascripts/flatty/plugins/ckeditor/plugins/forms/dialogs/checkbox.js +8 -0
- data/app/assets/javascripts/flatty/plugins/ckeditor/plugins/forms/dialogs/form.js +8 -0
- data/app/assets/javascripts/flatty/plugins/ckeditor/plugins/forms/dialogs/hiddenfield.js +8 -0
- data/app/assets/javascripts/flatty/plugins/ckeditor/plugins/forms/dialogs/radio.js +8 -0
- data/app/assets/javascripts/flatty/plugins/ckeditor/plugins/forms/dialogs/select.js +20 -0
- data/app/assets/javascripts/flatty/plugins/ckeditor/plugins/forms/dialogs/textarea.js +8 -0
- data/app/assets/javascripts/flatty/plugins/ckeditor/plugins/forms/dialogs/textfield.js +10 -0
- data/app/assets/javascripts/flatty/plugins/ckeditor/plugins/forms/images/hiddenfield.gif +0 -0
- data/app/assets/javascripts/flatty/plugins/ckeditor/plugins/icons.png +0 -0
- data/app/assets/javascripts/flatty/plugins/ckeditor/plugins/iframe/dialogs/iframe.js +10 -0
- data/app/assets/javascripts/flatty/plugins/ckeditor/plugins/iframe/images/placeholder.png +0 -0
- data/app/assets/javascripts/flatty/plugins/ckeditor/plugins/image/dialogs/image.js +43 -0
- data/app/assets/javascripts/flatty/plugins/ckeditor/plugins/image/images/noimage.png +0 -0
- data/app/assets/javascripts/flatty/plugins/ckeditor/plugins/link/dialogs/anchor.js +8 -0
- data/app/assets/javascripts/flatty/plugins/ckeditor/plugins/link/dialogs/link.js +36 -0
- data/app/assets/javascripts/flatty/plugins/ckeditor/plugins/link/images/anchor.png +0 -0
- data/app/assets/javascripts/flatty/plugins/ckeditor/plugins/liststyle/dialogs/liststyle.js +10 -0
- data/app/assets/javascripts/flatty/plugins/ckeditor/plugins/magicline/images/icon.png +0 -0
- data/app/assets/javascripts/flatty/plugins/ckeditor/plugins/pagebreak/images/pagebreak.gif +0 -0
- data/app/assets/javascripts/flatty/plugins/ckeditor/plugins/pastefromword/filter/default.js +31 -0
- data/app/assets/javascripts/flatty/plugins/ckeditor/plugins/preview/preview.html +10 -0
- data/app/assets/javascripts/flatty/plugins/ckeditor/plugins/scayt/dialogs/options.js +20 -0
- data/app/assets/javascripts/flatty/plugins/ckeditor/plugins/scayt/dialogs/toolbar.css +71 -0
- data/app/assets/javascripts/flatty/plugins/ckeditor/plugins/showblocks/images/block_address.png +0 -0
- data/app/assets/javascripts/flatty/plugins/ckeditor/plugins/showblocks/images/block_blockquote.png +0 -0
- data/app/assets/javascripts/flatty/plugins/ckeditor/plugins/showblocks/images/block_div.png +0 -0
- data/app/assets/javascripts/flatty/plugins/ckeditor/plugins/showblocks/images/block_h1.png +0 -0
- data/app/assets/javascripts/flatty/plugins/ckeditor/plugins/showblocks/images/block_h2.png +0 -0
- data/app/assets/javascripts/flatty/plugins/ckeditor/plugins/showblocks/images/block_h3.png +0 -0
- data/app/assets/javascripts/flatty/plugins/ckeditor/plugins/showblocks/images/block_h4.png +0 -0
- data/app/assets/javascripts/flatty/plugins/ckeditor/plugins/showblocks/images/block_h5.png +0 -0
- data/app/assets/javascripts/flatty/plugins/ckeditor/plugins/showblocks/images/block_h6.png +0 -0
- data/app/assets/javascripts/flatty/plugins/ckeditor/plugins/showblocks/images/block_p.png +0 -0
- data/app/assets/javascripts/flatty/plugins/ckeditor/plugins/showblocks/images/block_pre.png +0 -0
- data/app/assets/javascripts/flatty/plugins/ckeditor/plugins/smiley/dialogs/smiley.js +10 -0
- data/app/assets/javascripts/flatty/plugins/ckeditor/plugins/smiley/images/angel_smile.gif +0 -0
- data/app/assets/javascripts/flatty/plugins/ckeditor/plugins/smiley/images/angry_smile.gif +0 -0
- data/app/assets/javascripts/flatty/plugins/ckeditor/plugins/smiley/images/broken_heart.gif +0 -0
- data/app/assets/javascripts/flatty/plugins/ckeditor/plugins/smiley/images/confused_smile.gif +0 -0
- data/app/assets/javascripts/flatty/plugins/ckeditor/plugins/smiley/images/cry_smile.gif +0 -0
- data/app/assets/javascripts/flatty/plugins/ckeditor/plugins/smiley/images/devil_smile.gif +0 -0
- data/app/assets/javascripts/flatty/plugins/ckeditor/plugins/smiley/images/embaressed_smile.gif +0 -0
- data/app/assets/javascripts/flatty/plugins/ckeditor/plugins/smiley/images/embarrassed_smile.gif +0 -0
- data/app/assets/javascripts/flatty/plugins/ckeditor/plugins/smiley/images/envelope.gif +0 -0
- data/app/assets/javascripts/flatty/plugins/ckeditor/plugins/smiley/images/heart.gif +0 -0
- data/app/assets/javascripts/flatty/plugins/ckeditor/plugins/smiley/images/kiss.gif +0 -0
- data/app/assets/javascripts/flatty/plugins/ckeditor/plugins/smiley/images/lightbulb.gif +0 -0
- data/app/assets/javascripts/flatty/plugins/ckeditor/plugins/smiley/images/omg_smile.gif +0 -0
- data/app/assets/javascripts/flatty/plugins/ckeditor/plugins/smiley/images/regular_smile.gif +0 -0
- data/app/assets/javascripts/flatty/plugins/ckeditor/plugins/smiley/images/sad_smile.gif +0 -0
- data/app/assets/javascripts/flatty/plugins/ckeditor/plugins/smiley/images/shades_smile.gif +0 -0
- data/app/assets/javascripts/flatty/plugins/ckeditor/plugins/smiley/images/teeth_smile.gif +0 -0
- data/app/assets/javascripts/flatty/plugins/ckeditor/plugins/smiley/images/thumbs_down.gif +0 -0
- data/app/assets/javascripts/flatty/plugins/ckeditor/plugins/smiley/images/thumbs_up.gif +0 -0
- data/app/assets/javascripts/flatty/plugins/ckeditor/plugins/smiley/images/tongue_smile.gif +0 -0
- data/app/assets/javascripts/flatty/plugins/ckeditor/plugins/smiley/images/tounge_smile.gif +0 -0
- data/app/assets/javascripts/flatty/plugins/ckeditor/plugins/smiley/images/whatchutalkingabout_smile.gif +0 -0
- data/app/assets/javascripts/flatty/plugins/ckeditor/plugins/smiley/images/wink_smile.gif +0 -0
- data/app/assets/javascripts/flatty/plugins/ckeditor/plugins/specialchar/dialogs/lang/_translationstatus.txt +20 -0
- data/app/assets/javascripts/flatty/plugins/ckeditor/plugins/specialchar/dialogs/lang/ca.js +14 -0
- data/app/assets/javascripts/flatty/plugins/ckeditor/plugins/specialchar/dialogs/lang/cs.js +13 -0
- data/app/assets/javascripts/flatty/plugins/ckeditor/plugins/specialchar/dialogs/lang/cy.js +14 -0
- data/app/assets/javascripts/flatty/plugins/ckeditor/plugins/specialchar/dialogs/lang/de.js +13 -0
- data/app/assets/javascripts/flatty/plugins/ckeditor/plugins/specialchar/dialogs/lang/el.js +13 -0
- data/app/assets/javascripts/flatty/plugins/ckeditor/plugins/specialchar/dialogs/lang/en.js +13 -0
- data/app/assets/javascripts/flatty/plugins/ckeditor/plugins/specialchar/dialogs/lang/eo.js +12 -0
- data/app/assets/javascripts/flatty/plugins/ckeditor/plugins/specialchar/dialogs/lang/es.js +13 -0
- data/app/assets/javascripts/flatty/plugins/ckeditor/plugins/specialchar/dialogs/lang/et.js +13 -0
- data/app/assets/javascripts/flatty/plugins/ckeditor/plugins/specialchar/dialogs/lang/fa.js +12 -0
- data/app/assets/javascripts/flatty/plugins/ckeditor/plugins/specialchar/dialogs/lang/fi.js +13 -0
- data/app/assets/javascripts/flatty/plugins/ckeditor/plugins/specialchar/dialogs/lang/fr-ca.js +10 -0
- data/app/assets/javascripts/flatty/plugins/ckeditor/plugins/specialchar/dialogs/lang/fr.js +11 -0
- data/app/assets/javascripts/flatty/plugins/ckeditor/plugins/specialchar/dialogs/lang/he.js +13 -0
- data/app/assets/javascripts/flatty/plugins/ckeditor/plugins/specialchar/dialogs/lang/hr.js +13 -0
- data/app/assets/javascripts/flatty/plugins/ckeditor/plugins/specialchar/dialogs/lang/it.js +14 -0
- data/app/assets/javascripts/flatty/plugins/ckeditor/plugins/specialchar/dialogs/lang/ku.js +13 -0
- data/app/assets/javascripts/flatty/plugins/ckeditor/plugins/specialchar/dialogs/lang/lv.js +13 -0
- data/app/assets/javascripts/flatty/plugins/ckeditor/plugins/specialchar/dialogs/lang/nb.js +11 -0
- data/app/assets/javascripts/flatty/plugins/ckeditor/plugins/specialchar/dialogs/lang/nl.js +13 -0
- data/app/assets/javascripts/flatty/plugins/ckeditor/plugins/specialchar/dialogs/lang/no.js +11 -0
- data/app/assets/javascripts/flatty/plugins/ckeditor/plugins/specialchar/dialogs/lang/pl.js +12 -0
- data/app/assets/javascripts/flatty/plugins/ckeditor/plugins/specialchar/dialogs/lang/pt-br.js +11 -0
- data/app/assets/javascripts/flatty/plugins/ckeditor/plugins/specialchar/dialogs/lang/sk.js +13 -0
- data/app/assets/javascripts/flatty/plugins/ckeditor/plugins/specialchar/dialogs/lang/sq.js +13 -0
- data/app/assets/javascripts/flatty/plugins/ckeditor/plugins/specialchar/dialogs/lang/sv.js +11 -0
- data/app/assets/javascripts/flatty/plugins/ckeditor/plugins/specialchar/dialogs/lang/th.js +13 -0
- data/app/assets/javascripts/flatty/plugins/ckeditor/plugins/specialchar/dialogs/lang/tr.js +12 -0
- data/app/assets/javascripts/flatty/plugins/ckeditor/plugins/specialchar/dialogs/lang/ug.js +13 -0
- data/app/assets/javascripts/flatty/plugins/ckeditor/plugins/specialchar/dialogs/lang/zh-cn.js +9 -0
- data/app/assets/javascripts/flatty/plugins/ckeditor/plugins/specialchar/dialogs/specialchar.js +14 -0
- data/app/assets/javascripts/flatty/plugins/ckeditor/plugins/table/dialogs/table.js +21 -0
- data/app/assets/javascripts/flatty/plugins/ckeditor/plugins/tabletools/dialogs/tableCell.js +16 -0
- data/app/assets/javascripts/flatty/plugins/ckeditor/plugins/templates/dialogs/templates.css +84 -0
- data/app/assets/javascripts/flatty/plugins/ckeditor/plugins/templates/dialogs/templates.js +10 -0
- data/app/assets/javascripts/flatty/plugins/ckeditor/plugins/templates/templates/default.js +6 -0
- data/app/assets/javascripts/flatty/plugins/ckeditor/plugins/templates/templates/images/template1.gif +0 -0
- data/app/assets/javascripts/flatty/plugins/ckeditor/plugins/templates/templates/images/template2.gif +0 -0
- data/app/assets/javascripts/flatty/plugins/ckeditor/plugins/templates/templates/images/template3.gif +0 -0
- data/app/assets/javascripts/flatty/plugins/ckeditor/plugins/wsc/dialogs/ciframe.html +49 -0
- data/app/assets/javascripts/flatty/plugins/ckeditor/plugins/wsc/dialogs/tmpFrameset.html +52 -0
- data/app/assets/javascripts/flatty/plugins/ckeditor/plugins/wsc/dialogs/wsc.css +82 -0
- data/app/assets/javascripts/flatty/plugins/ckeditor/plugins/wsc/dialogs/wsc.js +11 -0
- data/app/assets/javascripts/flatty/plugins/ckeditor/samples/ajax.html +82 -0
- data/app/assets/javascripts/flatty/plugins/ckeditor/samples/api.html +207 -0
- data/app/assets/javascripts/flatty/plugins/ckeditor/samples/appendto.html +57 -0
- data/app/assets/javascripts/flatty/plugins/ckeditor/samples/assets/inlineall/logo.png +0 -0
- data/app/assets/javascripts/flatty/plugins/ckeditor/samples/assets/outputxhtml/outputxhtml.css +204 -0
- data/app/assets/javascripts/flatty/plugins/ckeditor/samples/assets/posteddata.php +59 -0
- data/app/assets/javascripts/flatty/plugins/ckeditor/samples/assets/sample.css +3 -0
- data/app/assets/javascripts/flatty/plugins/ckeditor/samples/assets/sample.jpg +0 -0
- data/app/assets/javascripts/flatty/plugins/ckeditor/samples/assets/uilanguages/languages.js +7 -0
- data/app/assets/javascripts/flatty/plugins/ckeditor/samples/datafiltering.html +401 -0
- data/app/assets/javascripts/flatty/plugins/ckeditor/samples/divreplace.html +141 -0
- data/app/assets/javascripts/flatty/plugins/ckeditor/samples/index.html +122 -0
- data/app/assets/javascripts/flatty/plugins/ckeditor/samples/inlineall.html +311 -0
- data/app/assets/javascripts/flatty/plugins/ckeditor/samples/inlinebycode.html +122 -0
- data/app/assets/javascripts/flatty/plugins/ckeditor/samples/plugins/dialog/assets/my_dialog.js +48 -0
- data/app/assets/javascripts/flatty/plugins/ckeditor/samples/plugins/dialog/dialog.html +187 -0
- data/app/assets/javascripts/flatty/plugins/ckeditor/samples/plugins/enterkey/enterkey.html +103 -0
- data/app/assets/javascripts/flatty/plugins/ckeditor/samples/plugins/htmlwriter/assets/outputforflash/outputforflash.fla +0 -0
- data/app/assets/javascripts/flatty/plugins/ckeditor/samples/plugins/htmlwriter/assets/outputforflash/outputforflash.swf +0 -0
- data/app/assets/javascripts/flatty/plugins/ckeditor/samples/plugins/htmlwriter/assets/outputforflash/swfobject.js +18 -0
- data/app/assets/javascripts/flatty/plugins/ckeditor/samples/plugins/htmlwriter/outputforflash.html +280 -0
- data/app/assets/javascripts/flatty/plugins/ckeditor/samples/plugins/htmlwriter/outputhtml.html +221 -0
- data/app/assets/javascripts/flatty/plugins/ckeditor/samples/plugins/magicline/magicline.html +207 -0
- data/app/assets/javascripts/flatty/plugins/ckeditor/samples/plugins/toolbar/toolbar.html +232 -0
- data/app/assets/javascripts/flatty/plugins/ckeditor/samples/plugins/wysiwygarea/fullpage.html +77 -0
- data/app/assets/javascripts/flatty/plugins/ckeditor/samples/readonly.html +73 -0
- data/app/assets/javascripts/flatty/plugins/ckeditor/samples/replacebyclass.html +57 -0
- data/app/assets/javascripts/flatty/plugins/ckeditor/samples/replacebycode.html +56 -0
- data/app/assets/javascripts/flatty/plugins/ckeditor/samples/sample.css +339 -0
- data/app/assets/javascripts/flatty/plugins/ckeditor/samples/sample.js +33 -0
- data/app/assets/javascripts/flatty/plugins/ckeditor/samples/sample_posteddata.php +16 -0
- data/app/assets/javascripts/flatty/plugins/ckeditor/samples/tabindex.html +75 -0
- data/app/assets/javascripts/flatty/plugins/ckeditor/samples/uicolor.html +69 -0
- data/app/assets/javascripts/flatty/plugins/ckeditor/samples/uilanguages.html +119 -0
- data/app/assets/javascripts/flatty/plugins/ckeditor/samples/xhtmlstyle.html +231 -0
- data/app/assets/javascripts/flatty/plugins/ckeditor/skins/moono/dialog.css +5 -0
- data/app/assets/javascripts/flatty/plugins/ckeditor/skins/moono/dialog_ie.css +5 -0
- data/app/assets/javascripts/flatty/plugins/ckeditor/skins/moono/dialog_ie7.css +5 -0
- data/app/assets/javascripts/flatty/plugins/ckeditor/skins/moono/dialog_ie8.css +5 -0
- data/app/assets/javascripts/flatty/plugins/ckeditor/skins/moono/dialog_iequirks.css +5 -0
- data/app/assets/javascripts/flatty/plugins/ckeditor/skins/moono/dialog_opera.css +5 -0
- data/app/assets/javascripts/flatty/plugins/ckeditor/skins/moono/editor.css +5 -0
- data/app/assets/javascripts/flatty/plugins/ckeditor/skins/moono/editor_gecko.css +5 -0
- data/app/assets/javascripts/flatty/plugins/ckeditor/skins/moono/editor_ie.css +5 -0
- data/app/assets/javascripts/flatty/plugins/ckeditor/skins/moono/editor_ie7.css +5 -0
- data/app/assets/javascripts/flatty/plugins/ckeditor/skins/moono/editor_ie8.css +5 -0
- data/app/assets/javascripts/flatty/plugins/ckeditor/skins/moono/editor_iequirks.css +5 -0
- data/app/assets/javascripts/flatty/plugins/ckeditor/skins/moono/icons.png +0 -0
- data/app/assets/javascripts/flatty/plugins/ckeditor/skins/moono/images/arrow.png +0 -0
- data/app/assets/javascripts/flatty/plugins/ckeditor/skins/moono/images/close.png +0 -0
- data/app/assets/javascripts/flatty/plugins/ckeditor/skins/moono/images/mini.png +0 -0
- data/app/assets/javascripts/flatty/plugins/ckeditor/styles.js +111 -0
- data/app/assets/javascripts/flatty/plugins/common/bootstrap-wysihtml5.js +498 -0
- data/app/assets/javascripts/flatty/plugins/common/moment.min.js +6 -0
- data/app/assets/javascripts/flatty/plugins/common/wysihtml5.min.js +261 -0
- data/app/assets/javascripts/flatty/plugins/datatables/dataTables.overrides.js +131 -0
- data/app/assets/javascripts/flatty/plugins/datatables/jquery.dataTables.columnFilter.js +365 -0
- data/app/assets/javascripts/flatty/plugins/datatables/jquery.dataTables.min.js +155 -0
- data/app/assets/javascripts/flatty/plugins/dynatree/jquery.dynatree.min.js +4 -0
- data/app/assets/javascripts/flatty/plugins/fileinput/bootstrap-fileinput.js +122 -0
- data/app/assets/javascripts/flatty/plugins/fileupload/canvas-to-blob.min.js +1 -0
- data/app/assets/javascripts/flatty/plugins/fileupload/jquery.fileupload-fp.min.js +1 -0
- data/app/assets/javascripts/flatty/plugins/fileupload/jquery.fileupload-init.js +48 -0
- data/app/assets/javascripts/flatty/plugins/fileupload/jquery.fileupload-ui.min.js +1 -0
- data/app/assets/javascripts/flatty/plugins/fileupload/jquery.fileupload.min.js +1 -0
- data/app/assets/javascripts/flatty/plugins/fileupload/jquery.iframe-transport.min.js +1 -0
- data/app/assets/javascripts/flatty/plugins/fileupload/load-image.min.js +1 -0
- data/app/assets/javascripts/flatty/plugins/fileupload/tmpl.min.js +1 -0
- data/app/assets/javascripts/flatty/plugins/flot/excanvas.js +1 -0
- data/app/assets/javascripts/flatty/plugins/flot/flot.crosshair.js +167 -0
- data/app/assets/javascripts/flatty/plugins/flot/flot.fillbetween.js +183 -0
- data/app/assets/javascripts/flatty/plugins/flot/flot.image.js +238 -0
- data/app/assets/javascripts/flatty/plugins/flot/flot.min.js +33 -0
- data/app/assets/javascripts/flatty/plugins/flot/flot.navigate.js +33 -0
- data/app/assets/javascripts/flatty/plugins/flot/flot.pie.js +750 -0
- data/app/assets/javascripts/flatty/plugins/flot/flot.resize.js +60 -0
- data/app/assets/javascripts/flatty/plugins/flot/flot.selection.js +344 -0
- data/app/assets/javascripts/flatty/plugins/flot/flot.stack.js +184 -0
- data/app/assets/javascripts/flatty/plugins/flot/flot.symbol.js +70 -0
- data/app/assets/javascripts/flatty/plugins/flot/flot.threshold.js +103 -0
- data/app/assets/javascripts/flatty/plugins/fuelux/wizard.js +165 -0
- data/app/assets/javascripts/flatty/plugins/fullcalendar/fullcalendar.min.js +7 -0
- data/app/assets/javascripts/flatty/plugins/input_mask/bootstrap-inputmask.min.js +7 -0
- data/app/assets/javascripts/flatty/plugins/ion_range_slider/ion.rangeSlider.js +1966 -0
- data/app/assets/javascripts/flatty/plugins/ion_range_slider/ion.rangeSlider.min.js +69 -0
- data/app/assets/javascripts/flatty/plugins/jgrowl/jquery.jgrowl.min.js +1 -0
- data/app/assets/javascripts/flatty/plugins/jquery_ui_touch_punch/jquery.ui.touch-punch.min.js +11 -0
- data/app/assets/javascripts/flatty/plugins/lightbox/lightbox.min.js +1 -0
- data/app/assets/javascripts/flatty/plugins/mention/mention.min.js +166 -0
- data/app/assets/javascripts/flatty/plugins/modernizr/modernizr.min.js +4 -0
- data/app/assets/javascripts/flatty/plugins/naked_password/naked_password-0.2.4.min.js +9 -0
- data/app/assets/javascripts/flatty/plugins/nestable/jquery.nestable.js +485 -0
- data/app/assets/javascripts/flatty/plugins/plugins.js +50 -0
- data/app/assets/javascripts/flatty/plugins/pwstrength/pwstrength.js +320 -0
- data/app/assets/javascripts/flatty/plugins/retina/retina.js +3 -0
- data/app/assets/javascripts/flatty/plugins/select2/select2.js +22 -0
- data/app/assets/javascripts/flatty/plugins/slider_nav/slidernav-min.js +7 -0
- data/app/assets/javascripts/flatty/plugins/slimscroll/jquery.slimscroll.min.js +16 -0
- data/app/assets/javascripts/flatty/plugins/sparklines/jquery.sparkline.min.js +5 -0
- data/app/assets/javascripts/flatty/plugins/tabdrop/bootstrap-tabdrop.js +117 -0
- data/app/assets/javascripts/flatty/plugins/timeago/jquery.timeago.js +193 -0
- data/app/assets/javascripts/flatty/plugins/typeahead/typeahead.js +335 -0
- data/app/assets/javascripts/flatty/plugins/validate/additional-methods.js +617 -0
- data/app/assets/javascripts/flatty/plugins/validate/additional-methods.min.js +2 -0
- data/app/assets/javascripts/flatty/plugins/validate/jquery.validate.js +1231 -0
- data/app/assets/javascripts/flatty/plugins/validate/jquery.validate.min.js +2 -0
- data/app/assets/javascripts/flatty/plugins/validate/messages_fr.js +47 -0
- data/app/assets/javascripts/flatty/theme.js.coffee +314 -0
- data/app/assets/stylesheets/_timeline.scss +87 -0
- data/app/assets/stylesheets/application.scss +7 -0
- data/app/assets/stylesheets/application2.scss +1675 -0
- data/app/assets/stylesheets/bootstrap-generators.scss +22 -0
- data/app/assets/stylesheets/bootstrap-variables.scss +839 -0
- data/app/assets/stylesheets/cg_app_base/application.css +15 -0
- data/app/assets/stylesheets/flatty/bootstrap/bootstrap/_alerts.scss +73 -0
- data/app/assets/stylesheets/flatty/bootstrap/bootstrap/_badges.scss +51 -0
- data/app/assets/stylesheets/flatty/bootstrap/bootstrap/_bootstrap.scss +59 -0
- data/app/assets/stylesheets/flatty/bootstrap/bootstrap/_breadcrumbs.scss +23 -0
- data/app/assets/stylesheets/flatty/bootstrap/bootstrap/_button-groups.scss +250 -0
- data/app/assets/stylesheets/flatty/bootstrap/bootstrap/_buttons.scss +165 -0
- data/app/assets/stylesheets/flatty/bootstrap/bootstrap/_carousel.scss +209 -0
- data/app/assets/stylesheets/flatty/bootstrap/bootstrap/_close.scss +35 -0
- data/app/assets/stylesheets/flatty/bootstrap/bootstrap/_code.scss +56 -0
- data/app/assets/stylesheets/flatty/bootstrap/bootstrap/_component-animations.scss +29 -0
- data/app/assets/stylesheets/flatty/bootstrap/bootstrap/_dropdowns.scss +194 -0
- data/app/assets/stylesheets/flatty/bootstrap/bootstrap/_forms.scss +352 -0
- data/app/assets/stylesheets/flatty/bootstrap/bootstrap/_glyphicons.scss +232 -0
- data/app/assets/stylesheets/flatty/bootstrap/bootstrap/_grid.scss +296 -0
- data/app/assets/stylesheets/flatty/bootstrap/bootstrap/_input-groups.scss +127 -0
- data/app/assets/stylesheets/flatty/bootstrap/bootstrap/_jumbotron.scss +40 -0
- data/app/assets/stylesheets/flatty/bootstrap/bootstrap/_labels.scss +70 -0
- data/app/assets/stylesheets/flatty/bootstrap/bootstrap/_list-group.scss +90 -0
- data/app/assets/stylesheets/flatty/bootstrap/bootstrap/_media.scss +56 -0
- data/app/assets/stylesheets/flatty/bootstrap/bootstrap/_mixins.scss +730 -0
- data/app/assets/stylesheets/flatty/bootstrap/bootstrap/_modals.scss +146 -0
- data/app/assets/stylesheets/flatty/bootstrap/bootstrap/_navbar.scss +625 -0
- data/app/assets/stylesheets/flatty/bootstrap/bootstrap/_navs.scss +229 -0
- data/app/assets/stylesheets/flatty/bootstrap/bootstrap/_normalize.scss +396 -0
- data/app/assets/stylesheets/flatty/bootstrap/bootstrap/_pager.scss +55 -0
- data/app/assets/stylesheets/flatty/bootstrap/bootstrap/_pagination.scss +83 -0
- data/app/assets/stylesheets/flatty/bootstrap/bootstrap/_panels.scss +148 -0
- data/app/assets/stylesheets/flatty/bootstrap/bootstrap/_popovers.scss +133 -0
- data/app/assets/stylesheets/flatty/bootstrap/bootstrap/_print.scss +100 -0
- data/app/assets/stylesheets/flatty/bootstrap/bootstrap/_progress-bars.scss +95 -0
- data/app/assets/stylesheets/flatty/bootstrap/bootstrap/_responsive-utilities.scss +209 -0
- data/app/assets/stylesheets/flatty/bootstrap/bootstrap/_scaffolding.scss +130 -0
- data/app/assets/stylesheets/flatty/bootstrap/bootstrap/_tables.scss +236 -0
- data/app/assets/stylesheets/flatty/bootstrap/bootstrap/_theme.scss +234 -0
- data/app/assets/stylesheets/flatty/bootstrap/bootstrap/_thumbnails.scss +31 -0
- data/app/assets/stylesheets/flatty/bootstrap/bootstrap/_tooltip.scss +95 -0
- data/app/assets/stylesheets/flatty/bootstrap/bootstrap/_type.scss +238 -0
- data/app/assets/stylesheets/flatty/bootstrap/bootstrap/_utilities.scss +42 -0
- data/app/assets/stylesheets/flatty/bootstrap/bootstrap/_variables.scss +627 -0
- data/app/assets/stylesheets/flatty/bootstrap/bootstrap/_wells.scss +29 -0
- data/app/assets/stylesheets/flatty/bootstrap/bootstrap.scss +1 -0
- data/app/assets/stylesheets/flatty/dark-blue-theme.scss +142 -0
- data/app/assets/stylesheets/flatty/dark-theme.scss +142 -0
- data/app/assets/stylesheets/flatty/demo.scss +16 -0
- data/app/assets/stylesheets/flatty/jquery/jquery.ui.datepicker.scss +179 -0
- data/app/assets/stylesheets/flatty/jquery/jquery.ui.theme.scss +408 -0
- data/app/assets/stylesheets/flatty/jquery/jquery_ui.scss +6 -0
- data/app/assets/stylesheets/flatty/light-theme.scss +142 -0
- data/app/assets/stylesheets/flatty/plugins/_plugins.scss +19 -0
- data/app/assets/stylesheets/flatty/plugins/bootstrap_colorpicker/bootstrap-colorpicker.scss +7 -0
- data/app/assets/stylesheets/flatty/plugins/bootstrap_daterangepicker/bootstrap-daterangepicker.scss +267 -0
- data/app/assets/stylesheets/flatty/plugins/bootstrap_datetimepicker/bootstrap-datetimepicker.min.scss +249 -0
- data/app/assets/stylesheets/flatty/plugins/bootstrap_datetimepicker/datepicker3.scss +790 -0
- data/app/assets/stylesheets/flatty/plugins/bootstrap_switch/bootstrap-switch.scss +287 -0
- data/app/assets/stylesheets/flatty/plugins/common/bootstrap-wysihtml5.scss +102 -0
- data/app/assets/stylesheets/flatty/plugins/datatables/bootstrap-datatable.scss +152 -0
- data/app/assets/stylesheets/flatty/plugins/dynatree/ui.dynatree.scss +452 -0
- data/app/assets/stylesheets/flatty/plugins/flags/flags.scss +258 -0
- data/app/assets/stylesheets/flatty/plugins/fuelux/wizard.scss +164 -0
- data/app/assets/stylesheets/flatty/plugins/fullcalendar/fullcalendar.scss +564 -0
- data/app/assets/stylesheets/flatty/plugins/ion_range_slider/ion.rangeSlider.css +146 -0
- data/app/assets/stylesheets/flatty/plugins/ion_range_slider/ion.range_slider.skin_flat.css +107 -0
- data/app/assets/stylesheets/flatty/plugins/jgrowl/jquery.jgrowl.min.scss +136 -0
- data/app/assets/stylesheets/flatty/plugins/jquery_fileupload/jquery.fileupload-ui.scss +84 -0
- data/app/assets/stylesheets/flatty/plugins/lightbox/lightbox.scss +170 -0
- data/app/assets/stylesheets/flatty/plugins/mention/mention.scss +19 -0
- data/app/assets/stylesheets/flatty/plugins/select2/select2.scss +614 -0
- data/app/assets/stylesheets/flatty/plugins/slider_nav/slidernav.scss +26 -0
- data/app/assets/stylesheets/flatty/plugins/tabdrop/tabdrop.scss +12 -0
- data/app/assets/stylesheets/flatty/theme/_accordions.scss +39 -0
- data/app/assets/stylesheets/flatty/theme/_boxes-quick-links.scss +63 -0
- data/app/assets/stylesheets/flatty/theme/_boxes-statistics.scss +59 -0
- data/app/assets/stylesheets/flatty/theme/_boxes.scss +193 -0
- data/app/assets/stylesheets/flatty/theme/_calendar.scss +62 -0
- data/app/assets/stylesheets/flatty/theme/_chat.scss +114 -0
- data/app/assets/stylesheets/flatty/theme/_common.scss +55 -0
- data/app/assets/stylesheets/flatty/theme/_content.scss +117 -0
- data/app/assets/stylesheets/flatty/theme/_font-awesome.scss +1479 -0
- data/app/assets/stylesheets/flatty/theme/_forms.scss +144 -0
- data/app/assets/stylesheets/flatty/theme/_header.scss +336 -0
- data/app/assets/stylesheets/flatty/theme/_navigation.scss +484 -0
- data/app/assets/stylesheets/flatty/theme/_nestable-list.scss +99 -0
- data/app/assets/stylesheets/flatty/theme/_overrides-bootstrap.scss +86 -0
- data/app/assets/stylesheets/flatty/theme/_overrides-plugins.scss +223 -0
- data/app/assets/stylesheets/flatty/theme/_recent-activity.scss +124 -0
- data/app/assets/stylesheets/flatty/theme/_tables.scss +130 -0
- data/app/assets/stylesheets/flatty/theme/_tabs.scss +221 -0
- data/app/assets/stylesheets/flatty/theme/_tasks.scss +12 -0
- data/app/assets/stylesheets/flatty/theme/_todo-list.scss +152 -0
- data/app/assets/stylesheets/flatty/theme/_type.scss +170 -0
- data/app/assets/stylesheets/flatty/theme/_utilities.scss +122 -0
- data/app/assets/stylesheets/flatty/theme/_variables.scss +140 -0
- data/app/assets/stylesheets/flatty/theme/_wizard.scss +62 -0
- data/app/assets/stylesheets/flatty/theme/common/_buttons.scss +258 -0
- data/app/assets/stylesheets/flatty/theme/common/_dropdowns.scss +7 -0
- data/app/assets/stylesheets/flatty/theme/common/_elements.scss +17 -0
- data/app/assets/stylesheets/flatty/theme/common/_modals.scss +3 -0
- data/app/assets/stylesheets/flatty/theme/common/_paginations.scss +5 -0
- data/app/assets/stylesheets/flatty/theme/common/_progress.scss +55 -0
- data/app/assets/stylesheets/flatty/theme/pages/_errors.scss +84 -0
- data/app/assets/stylesheets/flatty/theme/pages/_faq.scss +25 -0
- data/app/assets/stylesheets/flatty/theme/pages/_gallery.scss +64 -0
- data/app/assets/stylesheets/flatty/theme/pages/_invoice.scss +77 -0
- data/app/assets/stylesheets/flatty/theme/pages/_login.scss +81 -0
- data/app/assets/stylesheets/flatty/theme/pages/_orders.scss +45 -0
- data/app/assets/stylesheets/flatty/theme/pages/_pricing_tables.scss +65 -0
- data/app/assets/stylesheets/flatty/theme/pages/_timeline.scss +87 -0
- data/app/assets/stylesheets/flatty/theme-colors.scss +329 -0
- data/app/assets/stylesheets/scaffolds.css.scss +69 -0
- data/app/assets/stylesheets/vehicles.css.scss +3 -0
- data/app/controllers/cg_app_base/application_controller.rb +13 -0
- data/app/controllers/cg_app_base/redirect_tool_controller.rb +10 -0
- data/app/controllers/concerns/cg_app_base/ip_authorization_concern.rb +19 -0
- data/app/helpers/cg_app_base/application_helper.rb +23 -0
- data/app/models/ability.rb +41 -0
- data/app/models/cg_app_base/address.rb +54 -0
- data/app/models/cg_app_base/contact.rb +33 -0
- data/app/models/cg_app_base/phone.rb +36 -0
- data/app/models/concerns/attributes_normalizer.rb +19 -0
- data/app/navigation_renderers/cg_navigation_renderer.rb +57 -0
- data/app/views/cg_app_base/redirect_tool/index.html.erb +86 -0
- data/app/views/layouts/application.html.erb +116 -0
- data/app/views/shared/_flash_message.html.erb +14 -0
- data/app/views/shared/_main_navigation.html.erb +17 -0
- data/app/views/shared/_navigation.html.erb +21 -0
- data/app/views/shared/_navigation_embedded.html.erb +10 -0
- data/config/cucumber.yml +8 -0
- data/config/initializers/simple_form.rb +145 -0
- data/config/initializers/simple_form_bootstrap.rb +86 -0
- data/config/initializers/simple_navigation.rb +2 -0
- data/config/navigation.rb +117 -0
- data/config/routes.rb +2 -0
- data/lib/cg_app_base/engine.rb +13 -0
- data/lib/cg_app_base/version.rb +3 -0
- data/lib/cg_app_base.rb +11 -0
- data/lib/controllers/concerns/layout_concern.rb +16 -0
- data/lib/tasks/cg_app_base_tasks.rake +4 -0
- data/lib/tasks/cucumber.rake +65 -0
- metadata +1104 -0
@@ -0,0 +1,48 @@
|
|
1
|
+
/*
|
2
|
+
* jQuery File Upload Plugin JS Example 7.0
|
3
|
+
* https://github.com/blueimp/jQuery-File-Upload
|
4
|
+
*
|
5
|
+
* Copyright 2010, Sebastian Tschan
|
6
|
+
* https://blueimp.net
|
7
|
+
*
|
8
|
+
* Licensed under the MIT license:
|
9
|
+
* http://www.opensource.org/licenses/MIT
|
10
|
+
*/
|
11
|
+
|
12
|
+
/*jslint nomen: true, unparam: true, regexp: true */
|
13
|
+
/*global $, window, document */
|
14
|
+
|
15
|
+
if($("#fileupload").length != 0) {
|
16
|
+
$(function () {
|
17
|
+
'use strict';
|
18
|
+
|
19
|
+
// Initialize the jQuery File Upload widget:
|
20
|
+
$('#fileupload').fileupload({
|
21
|
+
// Uncomment the following to send cross-domain cookies:
|
22
|
+
//xhrFields: {withCredentials: true},
|
23
|
+
// url: 'server/php/'
|
24
|
+
});
|
25
|
+
|
26
|
+
// Enable iframe cross-domain access via redirect option:
|
27
|
+
$('#fileupload').fileupload(
|
28
|
+
'option',
|
29
|
+
'redirect',
|
30
|
+
window.location.href.replace(
|
31
|
+
/\/[^\/]*$/,
|
32
|
+
'/cors/result.html?%s'
|
33
|
+
)
|
34
|
+
);
|
35
|
+
|
36
|
+
// Load existing files:
|
37
|
+
$.ajax({
|
38
|
+
// Uncomment the following to send cross-domain cookies:
|
39
|
+
//xhrFields: {withCredentials: true},
|
40
|
+
url: $('#fileupload').fileupload('option', 'url'),
|
41
|
+
dataType: 'json',
|
42
|
+
context: $('#fileupload')[0]
|
43
|
+
}).done(function (result) {
|
44
|
+
$(this).fileupload('option', 'done')
|
45
|
+
.call(this, null, {result: result});
|
46
|
+
});
|
47
|
+
});
|
48
|
+
}
|
@@ -0,0 +1 @@
|
|
1
|
+
(function(e){"use strict";if(typeof define==="function"&&define.amd){define(["jquery","tmpl","load-image","./jquery.fileupload-fp"],e)}else{e(window.jQuery,window.tmpl,window.loadImage)}})(function(e,t,n){"use strict";e.widget("blueimp.fileupload",e.blueimp.fileupload,{options:{autoUpload:false,maxNumberOfFiles:undefined,maxFileSize:undefined,minFileSize:undefined,acceptFileTypes:/.+$/i,previewSourceFileTypes:/^image\/(gif|jpeg|png)$/,previewSourceMaxFileSize:5e6,previewMaxWidth:80,previewMaxHeight:80,previewAsCanvas:true,uploadTemplateId:"template-upload",downloadTemplateId:"template-download",filesContainer:undefined,prependFiles:false,dataType:"json",add:function(t,n){var r=e(this).data("blueimp-fileupload")||e(this).data("fileupload"),i=r.options,s=n.files;e(this).fileupload("process",n).done(function(){r._adjustMaxNumberOfFiles(-s.length);n.maxNumberOfFilesAdjusted=true;n.files.valid=n.isValidated=r._validate(s);n.context=r._renderUpload(s).data("data",n);i.filesContainer[i.prependFiles?"prepend":"append"](n.context);r._renderPreviews(n);r._forceReflow(n.context);r._transition(n.context).done(function(){if(r._trigger("added",t,n)!==false&&(i.autoUpload||n.autoUpload)&&n.autoUpload!==false&&n.isValidated){n.submit()}})})},send:function(t,n){var r=e(this).data("blueimp-fileupload")||e(this).data("fileupload");if(!n.isValidated){if(!n.maxNumberOfFilesAdjusted){r._adjustMaxNumberOfFiles(-n.files.length);n.maxNumberOfFilesAdjusted=true}if(!r._validate(n.files)){return false}}if(n.context&&n.dataType&&n.dataType.substr(0,6)==="iframe"){n.context.find(".progress").addClass(!e.support.transition&&"progress-animated").attr("aria-valuenow",100).find(".bar").css("width","100%")}return r._trigger("sent",t,n)},done:function(t,n){var r=e(this).data("blueimp-fileupload")||e(this).data("fileupload"),i=r._getFilesFromResponse(n),s,o;if(n.context){n.context.each(function(o){var u=i[o]||{error:"Empty file upload result"},a=r._addFinishedDeferreds();if(u.error){r._adjustMaxNumberOfFiles(1)}r._transition(e(this)).done(function(){var i=e(this);s=r._renderDownload([u]).replaceAll(i);r._forceReflow(s);r._transition(s).done(function(){n.context=e(this);r._trigger("completed",t,n);r._trigger("finished",t,n);a.resolve()})})})}else{if(i.length){e.each(i,function(e,t){if(n.maxNumberOfFilesAdjusted&&t.error){r._adjustMaxNumberOfFiles(1)}else if(!n.maxNumberOfFilesAdjusted&&!t.error){r._adjustMaxNumberOfFiles(-1)}});n.maxNumberOfFilesAdjusted=true}s=r._renderDownload(i).appendTo(r.options.filesContainer);r._forceReflow(s);o=r._addFinishedDeferreds();r._transition(s).done(function(){n.context=e(this);r._trigger("completed",t,n);r._trigger("finished",t,n);o.resolve()})}},fail:function(t,n){var r=e(this).data("blueimp-fileupload")||e(this).data("fileupload"),i,s;if(n.maxNumberOfFilesAdjusted){r._adjustMaxNumberOfFiles(n.files.length)}if(n.context){n.context.each(function(o){if(n.errorThrown!=="abort"){var u=n.files[o];u.error=u.error||n.errorThrown||true;s=r._addFinishedDeferreds();r._transition(e(this)).done(function(){var o=e(this);i=r._renderDownload([u]).replaceAll(o);r._forceReflow(i);r._transition(i).done(function(){n.context=e(this);r._trigger("failed",t,n);r._trigger("finished",t,n);s.resolve()})})}else{s=r._addFinishedDeferreds();r._transition(e(this)).done(function(){e(this).remove();r._trigger("failed",t,n);r._trigger("finished",t,n);s.resolve()})}})}else if(n.errorThrown!=="abort"){n.context=r._renderUpload(n.files).appendTo(r.options.filesContainer).data("data",n);r._forceReflow(n.context);s=r._addFinishedDeferreds();r._transition(n.context).done(function(){n.context=e(this);r._trigger("failed",t,n);r._trigger("finished",t,n);s.resolve()})}else{r._trigger("failed",t,n);r._trigger("finished",t,n);r._addFinishedDeferreds().resolve()}},progress:function(e,t){if(t.context){var n=Math.floor(t.loaded/t.total*100);t.context.find(".progress").attr("aria-valuenow",n).find(".bar").css("width",n+"%")}},progressall:function(t,n){var r=e(this),i=Math.floor(n.loaded/n.total*100),s=r.find(".fileupload-progress"),o=s.find(".progress-extended");if(o.length){o.html((r.data("blueimp-fileupload")||r.data("fileupload"))._renderExtendedProgress(n))}s.find(".progress").attr("aria-valuenow",i).find(".bar").css("width",i+"%")},start:function(t){var n=e(this).data("blueimp-fileupload")||e(this).data("fileupload");n._resetFinishedDeferreds();n._transition(e(this).find(".fileupload-progress")).done(function(){n._trigger("started",t)})},stop:function(t){var n=e(this).data("blueimp-fileupload")||e(this).data("fileupload"),r=n._addFinishedDeferreds();e.when.apply(e,n._getFinishedDeferreds()).done(function(){n._trigger("stopped",t)});n._transition(e(this).find(".fileupload-progress")).done(function(){e(this).find(".progress").attr("aria-valuenow","0").find(".bar").css("width","0%");e(this).find(".progress-extended").html(" ");r.resolve()})},destroy:function(t,n){var r=e(this).data("blueimp-fileupload")||e(this).data("fileupload");if(n.url){e.ajax(n).done(function(){r._transition(n.context).done(function(){e(this).remove();r._trigger("destroyed",t,n)})});r._adjustMaxNumberOfFiles(1)}}},_resetFinishedDeferreds:function(){this._finishedUploads=[]},_addFinishedDeferreds:function(t){if(!t){t=e.Deferred()}this._finishedUploads.push(t);return t},_getFinishedDeferreds:function(){return this._finishedUploads},_getFilesFromResponse:function(t){if(t.result&&e.isArray(t.result.files)){return t.result.files}return[]},_enableDragToDesktop:function(){var t=e(this),n=t.prop("href"),r=t.prop("download"),i="application/octet-stream";t.bind("dragstart",function(e){try{e.originalEvent.dataTransfer.setData("DownloadURL",[i,r,n].join(":"))}catch(t){}})},_adjustMaxNumberOfFiles:function(e){if(typeof this.options.maxNumberOfFiles==="number"){this.options.maxNumberOfFiles+=e;if(this.options.maxNumberOfFiles<1){this._disableFileInputButton()}else{this._enableFileInputButton()}}},_formatFileSize:function(e){if(typeof e!=="number"){return""}if(e>=1e9){return(e/1e9).toFixed(2)+" GB"}if(e>=1e6){return(e/1e6).toFixed(2)+" MB"}return(e/1e3).toFixed(2)+" KB"},_formatBitrate:function(e){if(typeof e!=="number"){return""}if(e>=1e9){return(e/1e9).toFixed(2)+" Gbit/s"}if(e>=1e6){return(e/1e6).toFixed(2)+" Mbit/s"}if(e>=1e3){return(e/1e3).toFixed(2)+" kbit/s"}return e.toFixed(2)+" bit/s"},_formatTime:function(e){var t=new Date(e*1e3),n=Math.floor(e/86400);n=n?n+"d ":"";return n+("0"+t.getUTCHours()).slice(-2)+":"+("0"+t.getUTCMinutes()).slice(-2)+":"+("0"+t.getUTCSeconds()).slice(-2)},_formatPercentage:function(e){return(e*100).toFixed(2)+" %"},_renderExtendedProgress:function(e){return this._formatBitrate(e.bitrate)+" | "+this._formatTime((e.total-e.loaded)*8/e.bitrate)+" | "+this._formatPercentage(e.loaded/e.total)+" | "+this._formatFileSize(e.loaded)+" / "+this._formatFileSize(e.total)},_hasError:function(e){if(e.error){return e.error}if(this.options.maxNumberOfFiles<0){return"Maximum number of files exceeded"}if(!(this.options.acceptFileTypes.test(e.type)||this.options.acceptFileTypes.test(e.name))){return"Filetype not allowed"}if(this.options.maxFileSize&&e.size>this.options.maxFileSize){return"File is too big"}if(typeof e.size==="number"&&e.size<this.options.minFileSize){return"File is too small"}return null},_validate:function(t){var n=this,r=!!t.length;e.each(t,function(e,t){t.error=n._hasError(t);if(t.error){r=false}});return r},_renderTemplate:function(t,n){if(!t){return e()}var r=t({files:n,formatFileSize:this._formatFileSize,options:this.options});if(r instanceof e){return r}return e(this.options.templatesContainer).html(r).children()},_renderPreview:function(t,r){var i=this,s=this.options,o=e.Deferred();return(n&&n(t,function(t){r.append(t);i._forceReflow(r);i._transition(r).done(function(){o.resolveWith(r)});if(!e.contains(i.document[0].body,r[0])){o.resolveWith(r)}r.on("remove",function(){o.resolveWith(r)})},{maxWidth:s.previewMaxWidth,maxHeight:s.previewMaxHeight,canvas:s.previewAsCanvas})||o.resolveWith(r))&&o},_renderPreviews:function(t){var n=this,r=this.options;t.context.find(".preview span").each(function(i,s){var o=t.files[i];if(r.previewSourceFileTypes.test(o.type)&&(e.type(r.previewSourceMaxFileSize)!=="number"||o.size<r.previewSourceMaxFileSize)){n._processingQueue=n._processingQueue.pipe(function(){var r=e.Deferred(),i=e.Event("previewdone",{target:s});n._renderPreview(o,e(s)).done(function(){n._trigger(i.type,i,t);r.resolveWith(n)});return r.promise()})}});return this._processingQueue},_renderUpload:function(e){return this._renderTemplate(this.options.uploadTemplate,e)},_renderDownload:function(e){return this._renderTemplate(this.options.downloadTemplate,e).find("a[download]").each(this._enableDragToDesktop).end()},_startHandler:function(t){t.preventDefault();var n=e(t.currentTarget),r=n.closest(".template-upload"),i=r.data("data");if(i&&i.submit&&!i.jqXHR&&i.submit()){n.prop("disabled",true)}},_cancelHandler:function(t){t.preventDefault();var n=e(t.currentTarget).closest(".template-upload"),r=n.data("data")||{};if(!r.jqXHR){r.errorThrown="abort";this._trigger("fail",t,r)}else{r.jqXHR.abort()}},_deleteHandler:function(t){t.preventDefault();var n=e(t.currentTarget);this._trigger("destroy",t,e.extend({context:n.closest(".template-download"),type:"DELETE",dataType:this.options.dataType},n.data()))},_forceReflow:function(t){return e.support.transition&&t.length&&t[0].offsetWidth},_transition:function(t){var n=e.Deferred();if(e.support.transition&&t.hasClass("fade")&&t.is(":visible")){t.bind(e.support.transition.end,function(r){if(r.target===t[0]){t.unbind(e.support.transition.end);n.resolveWith(t)}}).toggleClass("in")}else{t.toggleClass("in");n.resolveWith(t)}return n},_initButtonBarEventHandlers:function(){var t=this.element.find(".fileupload-buttonbar"),n=this.options.filesContainer;this._on(t.find(".start"),{click:function(e){e.preventDefault();n.find(".start").click()}});this._on(t.find(".cancel"),{click:function(e){e.preventDefault();n.find(".cancel").click()}});this._on(t.find(".delete"),{click:function(e){e.preventDefault();n.find(".toggle:checked").closest(".template-download").find(".delete").click();t.find(".toggle").prop("checked",false)}});this._on(t.find(".toggle"),{change:function(t){n.find(".toggle").prop("checked",e(t.currentTarget).is(":checked"))}})},_destroyButtonBarEventHandlers:function(){this._off(this.element.find(".fileupload-buttonbar").find(".start, .cancel, .delete"),"click");this._off(this.element.find(".fileupload-buttonbar .toggle"),"change.")},_initEventHandlers:function(){this._super();this._on(this.options.filesContainer,{"click .start":this._startHandler,"click .cancel":this._cancelHandler,"click .delete":this._deleteHandler});this._initButtonBarEventHandlers()},_destroyEventHandlers:function(){this._destroyButtonBarEventHandlers();this._off(this.options.filesContainer,"click");this._super()},_enableFileInputButton:function(){this.element.find(".fileinput-button input").prop("disabled",false).parent().removeClass("disabled")},_disableFileInputButton:function(){this.element.find(".fileinput-button input").prop("disabled",true).parent().addClass("disabled")},_initTemplates:function(){var e=this.options;e.templatesContainer=this.document[0].createElement(e.filesContainer.prop("nodeName"));if(t){if(e.uploadTemplateId){e.uploadTemplate=t(e.uploadTemplateId)}if(e.downloadTemplateId){e.downloadTemplate=t(e.downloadTemplateId)}}},_initFilesContainer:function(){var t=this.options;if(t.filesContainer===undefined){t.filesContainer=this.element.find(".files")}else if(!(t.filesContainer instanceof e)){t.filesContainer=e(t.filesContainer)}},_stringToRegExp:function(e){var t=e.split("/"),n=t.pop();t.shift();return new RegExp(t.join("/"),n)},_initRegExpOptions:function(){var t=this.options;if(e.type(t.acceptFileTypes)==="string"){t.acceptFileTypes=this._stringToRegExp(t.acceptFileTypes)}if(e.type(t.previewSourceFileTypes)==="string"){t.previewSourceFileTypes=this._stringToRegExp(t.previewSourceFileTypes)}},_initSpecialOptions:function(){this._super();this._initFilesContainer();this._initTemplates();this._initRegExpOptions()},_setOption:function(e,t){this._super(e,t);if(e==="maxNumberOfFiles"){this._adjustMaxNumberOfFiles(0)}},_create:function(){this._super();this._refreshOptionsList.push("filesContainer","uploadTemplateId","downloadTemplateId");if(!this._processingQueue){this._processingQueue=e.Deferred().resolveWith(this).promise();this.process=function(){return this._processingQueue}}this._resetFinishedDeferreds()},enable:function(){var e=false;if(this.options.disabled){e=true}this._super();if(e){this.element.find("input, button").prop("disabled",false);this._enableFileInputButton()}},disable:function(){if(!this.options.disabled){this.element.find("input, button").prop("disabled",true);this._disableFileInputButton()}this._super()}})})
|
@@ -0,0 +1 @@
|
|
1
|
+
(function(e){"use strict";if(typeof define==="function"&&define.amd){define(["jquery","jquery.ui.widget"],e)}else{e(window.jQuery)}})(function(e){"use strict";e.support.xhrFileUpload=!!(window.XMLHttpRequestUpload&&window.FileReader);e.support.xhrFormDataFileUpload=!!window.FormData;e.widget("blueimp.fileupload",{options:{dropZone:e(document),pasteZone:e(document),fileInput:undefined,replaceFileInput:true,paramName:undefined,singleFileUploads:true,limitMultiFileUploads:undefined,sequentialUploads:false,limitConcurrentUploads:undefined,forceIframeTransport:false,redirect:undefined,redirectParamName:undefined,postMessage:undefined,multipart:true,maxChunkSize:undefined,uploadedBytes:undefined,recalculateProgress:true,progressInterval:100,bitrateInterval:500,autoUpload:true,formData:function(e){return e.serializeArray()},add:function(t,n){if(n.autoUpload||n.autoUpload!==false&&(e(this).data("blueimp-fileupload")||e(this).data("fileupload")).options.autoUpload){n.submit()}},processData:false,contentType:false,cache:false},_refreshOptionsList:["fileInput","dropZone","pasteZone","multipart","forceIframeTransport"],_BitrateTimer:function(){this.timestamp=Date.now?Date.now():(new Date).getTime();this.loaded=0;this.bitrate=0;this.getBitrate=function(e,t,n){var r=e-this.timestamp;if(!this.bitrate||!n||r>n){this.bitrate=(t-this.loaded)*(1e3/r)*8;this.loaded=t;this.timestamp=e}return this.bitrate}},_isXHRUpload:function(t){return!t.forceIframeTransport&&(!t.multipart&&e.support.xhrFileUpload||e.support.xhrFormDataFileUpload)},_getFormData:function(t){var n;if(typeof t.formData==="function"){return t.formData(t.form)}if(e.isArray(t.formData)){return t.formData}if(e.type(t.formData)==="object"){n=[];e.each(t.formData,function(e,t){n.push({name:e,value:t})});return n}return[]},_getTotal:function(t){var n=0;e.each(t,function(e,t){n+=t.size||1});return n},_initProgressObject:function(t){var n={loaded:0,total:0,bitrate:0};if(t._progress){e.extend(t._progress,n)}else{t._progress=n}},_initResponseObject:function(e){var t;if(e._response){for(t in e._response){if(e._response.hasOwnProperty(t)){delete e._response[t]}}}else{e._response={}}},_onProgress:function(e,t){if(e.lengthComputable){var n=Date.now?Date.now():(new Date).getTime(),r;if(t._time&&t.progressInterval&&n-t._time<t.progressInterval&&e.loaded!==e.total){return}t._time=n;r=Math.floor(e.loaded/e.total*(t.chunkSize||t._progress.total))+(t.uploadedBytes||0);this._progress.loaded+=r-t._progress.loaded;this._progress.bitrate=this._bitrateTimer.getBitrate(n,this._progress.loaded,t.bitrateInterval);t._progress.loaded=t.loaded=r;t._progress.bitrate=t.bitrate=t._bitrateTimer.getBitrate(n,r,t.bitrateInterval);this._trigger("progress",e,t);this._trigger("progressall",e,this._progress)}},_initProgressListener:function(t){var n=this,r=t.xhr?t.xhr():e.ajaxSettings.xhr();if(r.upload){e(r.upload).bind("progress",function(e){var r=e.originalEvent;e.lengthComputable=r.lengthComputable;e.loaded=r.loaded;e.total=r.total;n._onProgress(e,t)});t.xhr=function(){return r}}},_initXHRData:function(t){var n,r=t.files[0],i=t.multipart||!e.support.xhrFileUpload,s=t.paramName[0];t.headers=t.headers||{};if(t.contentRange){t.headers["Content-Range"]=t.contentRange}if(!i){t.headers["Content-Disposition"]='attachment; filename="'+encodeURI(r.name)+'"';t.contentType=r.type;t.data=t.blob||r}else if(e.support.xhrFormDataFileUpload){if(t.postMessage){n=this._getFormData(t);if(t.blob){n.push({name:s,value:t.blob})}else{e.each(t.files,function(e,r){n.push({name:t.paramName[e]||s,value:r})})}}else{if(t.formData instanceof FormData){n=t.formData}else{n=new FormData;e.each(this._getFormData(t),function(e,t){n.append(t.name,t.value)})}if(t.blob){t.headers["Content-Disposition"]='attachment; filename="'+encodeURI(r.name)+'"';n.append(s,t.blob,r.name)}else{e.each(t.files,function(e,r){if(window.Blob&&r instanceof Blob||window.File&&r instanceof File){n.append(t.paramName[e]||s,r,r.name)}})}}t.data=n}t.blob=null},_initIframeSettings:function(t){t.dataType="iframe "+(t.dataType||"");t.formData=this._getFormData(t);if(t.redirect&&e("<a></a>").prop("href",t.url).prop("host")!==location.host){t.formData.push({name:t.redirectParamName||"redirect",value:t.redirect})}},_initDataSettings:function(e){if(this._isXHRUpload(e)){if(!this._chunkedUpload(e,true)){if(!e.data){this._initXHRData(e)}this._initProgressListener(e)}if(e.postMessage){e.dataType="postmessage "+(e.dataType||"")}}else{this._initIframeSettings(e,"iframe")}},_getParamName:function(t){var n=e(t.fileInput),r=t.paramName;if(!r){r=[];n.each(function(){var t=e(this),n=t.prop("name")||"files[]",i=(t.prop("files")||[1]).length;while(i){r.push(n);i-=1}});if(!r.length){r=[n.prop("name")||"files[]"]}}else if(!e.isArray(r)){r=[r]}return r},_initFormSettings:function(t){if(!t.form||!t.form.length){t.form=e(t.fileInput.prop("form"));if(!t.form.length){t.form=e(this.options.fileInput.prop("form"))}}t.paramName=this._getParamName(t);if(!t.url){t.url=t.form.prop("action")||location.href}t.type=(t.type||t.form.prop("method")||"").toUpperCase();if(t.type!=="POST"&&t.type!=="PUT"&&t.type!=="PATCH"){t.type="POST"}if(!t.formAcceptCharset){t.formAcceptCharset=t.form.attr("accept-charset")}},_getAJAXSettings:function(t){var n=e.extend({},this.options,t);this._initFormSettings(n);this._initDataSettings(n);return n},_getDeferredState:function(e){if(e.state){return e.state()}if(e.isResolved()){return"resolved"}if(e.isRejected()){return"rejected"}return"pending"},_enhancePromise:function(e){e.success=e.done;e.error=e.fail;e.complete=e.always;return e},_getXHRPromise:function(t,n,r){var i=e.Deferred(),s=i.promise();n=n||this.options.context||s;if(t===true){i.resolveWith(n,r)}else if(t===false){i.rejectWith(n,r)}s.abort=i.promise;return this._enhancePromise(s)},_addConvenienceMethods:function(e,t){var n=this;t.submit=function(){if(this.state()!=="pending"){t.jqXHR=this.jqXHR=n._trigger("submit",e,this)!==false&&n._onSend(e,this)}return this.jqXHR||n._getXHRPromise()};t.abort=function(){if(this.jqXHR){return this.jqXHR.abort()}return n._getXHRPromise()};t.state=function(){if(this.jqXHR){return n._getDeferredState(this.jqXHR)}};t.progress=function(){return this._progress};t.response=function(){return this._response}},_getUploadedBytes:function(e){var t=e.getResponseHeader("Range"),n=t&&t.split("-"),r=n&&n.length>1&&parseInt(n[1],10);return r&&r+1},_chunkedUpload:function(t,n){var r=this,i=t.files[0],s=i.size,o=t.uploadedBytes=t.uploadedBytes||0,u=t.maxChunkSize||s,a=i.slice||i.webkitSlice||i.mozSlice,f=e.Deferred(),l=f.promise(),c,h;if(!(this._isXHRUpload(t)&&a&&(o||u<s))||t.data){return false}if(n){return true}if(o>=s){i.error="Uploaded bytes exceed file size";return this._getXHRPromise(false,t.context,[null,"error",i.error])}h=function(){var n=e.extend({},t),l=n._progress.loaded;n.blob=a.call(i,o,o+u,i.type);n.chunkSize=n.blob.size;n.contentRange="bytes "+o+"-"+(o+n.chunkSize-1)+"/"+s;r._initXHRData(n);r._initProgressListener(n);c=(r._trigger("chunksend",null,n)!==false&&e.ajax(n)||r._getXHRPromise(false,n.context)).done(function(i,u,a){o=r._getUploadedBytes(a)||o+n.chunkSize;if(n._progress.loaded===l){r._onProgress(e.Event("progress",{lengthComputable:true,loaded:o-n.uploadedBytes,total:o-n.uploadedBytes}),n)}t.uploadedBytes=n.uploadedBytes=o;n.result=i;n.textStatus=u;n.jqXHR=a;r._trigger("chunkdone",null,n);r._trigger("chunkalways",null,n);if(o<s){h()}else{f.resolveWith(n.context,[i,u,a])}}).fail(function(e,t,i){n.jqXHR=e;n.textStatus=t;n.errorThrown=i;r._trigger("chunkfail",null,n);r._trigger("chunkalways",null,n);f.rejectWith(n.context,[e,t,i])})};this._enhancePromise(l);l.abort=function(){return c.abort()};h();return l},_beforeSend:function(e,t){if(this._active===0){this._trigger("start");this._bitrateTimer=new this._BitrateTimer;this._progress.loaded=this._progress.total=0;this._progress.bitrate=0}this._initResponseObject(t);this._initProgressObject(t);t._progress.loaded=t.loaded=t.uploadedBytes||0;t._progress.total=t.total=this._getTotal(t.files)||1;t._progress.bitrate=t.bitrate=0;this._active+=1;this._progress.loaded+=t.loaded;this._progress.total+=t.total},_onDone:function(t,n,r,i){var s=i._progress.total,o=i._response;if(i._progress.loaded<s){this._onProgress(e.Event("progress",{lengthComputable:true,loaded:s,total:s}),i)}o.result=i.result=t;o.textStatus=i.textStatus=n;o.jqXHR=i.jqXHR=r;this._trigger("done",null,i)},_onFail:function(e,t,n,r){var i=r._response;if(r.recalculateProgress){this._progress.loaded-=r._progress.loaded;this._progress.total-=r._progress.total}i.jqXHR=r.jqXHR=e;i.textStatus=r.textStatus=t;i.errorThrown=r.errorThrown=n;this._trigger("fail",null,r)},_onAlways:function(e,t,n,r){this._trigger("always",null,r)},_onSend:function(t,n){if(!n.submit){this._addConvenienceMethods(t,n)}var r=this,i,s,o,u,a=r._getAJAXSettings(n),f=function(){r._sending+=1;a._bitrateTimer=new r._BitrateTimer;i=i||((s||r._trigger("send",t,a)===false)&&r._getXHRPromise(false,a.context,s)||r._chunkedUpload(a)||e.ajax(a)).done(function(e,t,n){r._onDone(e,t,n,a)}).fail(function(e,t,n){r._onFail(e,t,n,a)}).always(function(e,t,n){r._onAlways(e,t,n,a);r._sending-=1;r._active-=1;if(a.limitConcurrentUploads&&a.limitConcurrentUploads>r._sending){var i=r._slots.shift();while(i){if(r._getDeferredState(i)==="pending"){i.resolve();break}i=r._slots.shift()}}if(r._active===0){r._trigger("stop")}});return i};this._beforeSend(t,a);if(this.options.sequentialUploads||this.options.limitConcurrentUploads&&this.options.limitConcurrentUploads<=this._sending){if(this.options.limitConcurrentUploads>1){o=e.Deferred();this._slots.push(o);u=o.pipe(f)}else{u=this._sequence=this._sequence.pipe(f,f)}u.abort=function(){s=[undefined,"abort","abort"];if(!i){if(o){o.rejectWith(a.context,s)}return f()}return i.abort()};return this._enhancePromise(u)}return f()},_onAdd:function(t,n){var r=this,i=true,s=e.extend({},this.options,n),o=s.limitMultiFileUploads,u=this._getParamName(s),a,f,l,c;if(!(s.singleFileUploads||o)||!this._isXHRUpload(s)){l=[n.files];a=[u]}else if(!s.singleFileUploads&&o){l=[];a=[];for(c=0;c<n.files.length;c+=o){l.push(n.files.slice(c,c+o));f=u.slice(c,c+o);if(!f.length){f=u}a.push(f)}}else{a=u}n.originalFiles=n.files;e.each(l||n.files,function(s,o){var u=e.extend({},n);u.files=l?o:[o];u.paramName=a[s];r._initResponseObject(u);r._initProgressObject(u);r._addConvenienceMethods(t,u);i=r._trigger("add",t,u);return i});return i},_replaceFileInput:function(t){var n=t.clone(true);e("<form></form>").append(n)[0].reset();t.after(n).detach();e.cleanData(t.unbind("remove"));this.options.fileInput=this.options.fileInput.map(function(e,r){if(r===t[0]){return n[0]}return r});if(t[0]===this.element[0]){this.element=n}},_handleFileTreeEntry:function(t,n){var r=this,i=e.Deferred(),s=function(e){if(e&&!e.entry){e.entry=t}i.resolve([e])},o;n=n||"";if(t.isFile){if(t._file){t._file.relativePath=n;i.resolve(t._file)}else{t.file(function(e){e.relativePath=n;i.resolve(e)},s)}}else if(t.isDirectory){o=t.createReader();o.readEntries(function(e){r._handleFileTreeEntries(e,n+t.name+"/").done(function(e){i.resolve(e)}).fail(s)},s)}else{i.resolve([])}return i.promise()},_handleFileTreeEntries:function(t,n){var r=this;return e.when.apply(e,e.map(t,function(e){return r._handleFileTreeEntry(e,n)})).pipe(function(){return Array.prototype.concat.apply([],arguments)})},_getDroppedFiles:function(t){t=t||{};var n=t.items;if(n&&n.length&&(n[0].webkitGetAsEntry||n[0].getAsEntry)){return this._handleFileTreeEntries(e.map(n,function(e){var t;if(e.webkitGetAsEntry){t=e.webkitGetAsEntry();if(t){t._file=e.getAsFile()}return t}return e.getAsEntry()}))}return e.Deferred().resolve(e.makeArray(t.files)).promise()},_getSingleFileInputFiles:function(t){t=e(t);var n=t.prop("webkitEntries")||t.prop("entries"),r,i;if(n&&n.length){return this._handleFileTreeEntries(n)}r=e.makeArray(t.prop("files"));if(!r.length){i=t.prop("value");if(!i){return e.Deferred().resolve([]).promise()}r=[{name:i.replace(/^.*\\/,"")}]}else if(r[0].name===undefined&&r[0].fileName){e.each(r,function(e,t){t.name=t.fileName;t.size=t.fileSize})}return e.Deferred().resolve(r).promise()},_getFileInputFiles:function(t){if(!(t instanceof e)||t.length===1){return this._getSingleFileInputFiles(t)}return e.when.apply(e,e.map(t,this._getSingleFileInputFiles)).pipe(function(){return Array.prototype.concat.apply([],arguments)})},_onChange:function(t){var n=this,r={fileInput:e(t.target),form:e(t.target.form)};this._getFileInputFiles(r.fileInput).always(function(e){r.files=e;if(n.options.replaceFileInput){n._replaceFileInput(r.fileInput)}if(n._trigger("change",t,r)!==false){n._onAdd(t,r)}})},_onPaste:function(t){var n=t.originalEvent.clipboardData,r=n&&n.items||[],i={files:[]};e.each(r,function(e,t){var n=t.getAsFile&&t.getAsFile();if(n){i.files.push(n)}});if(this._trigger("paste",t,i)===false||this._onAdd(t,i)===false){return false}},_onDrop:function(e){var t=this,n=e.dataTransfer=e.originalEvent.dataTransfer,r={};if(n&&n.files&&n.files.length){e.preventDefault()}this._getDroppedFiles(n).always(function(n){r.files=n;if(t._trigger("drop",e,r)!==false){t._onAdd(e,r)}})},_onDragOver:function(t){var n=t.dataTransfer=t.originalEvent.dataTransfer;if(this._trigger("dragover",t)===false){return false}if(n&&e.inArray("Files",n.types)!==-1){n.dropEffect="copy";t.preventDefault()}},_initEventHandlers:function(){if(this._isXHRUpload(this.options)){this._on(this.options.dropZone,{dragover:this._onDragOver,drop:this._onDrop});this._on(this.options.pasteZone,{paste:this._onPaste})}this._on(this.options.fileInput,{change:this._onChange})},_destroyEventHandlers:function(){this._off(this.options.dropZone,"dragover drop");this._off(this.options.pasteZone,"paste");this._off(this.options.fileInput,"change")},_setOption:function(t,n){var r=e.inArray(t,this._refreshOptionsList)!==-1;if(r){this._destroyEventHandlers()}this._super(t,n);if(r){this._initSpecialOptions();this._initEventHandlers()}},_initSpecialOptions:function(){var t=this.options;if(t.fileInput===undefined){t.fileInput=this.element.is('input[type="file"]')?this.element:this.element.find('input[type="file"]')}else if(!(t.fileInput instanceof e)){t.fileInput=e(t.fileInput)}if(!(t.dropZone instanceof e)){t.dropZone=e(t.dropZone)}if(!(t.pasteZone instanceof e)){t.pasteZone=e(t.pasteZone)}},_create:function(){var t=this.options;e.extend(t,e(this.element[0].cloneNode(false)).data());this._initSpecialOptions();this._slots=[];this._sequence=this._getXHRPromise(true);this._sending=this._active=0;this._initProgressObject(this);this._initEventHandlers()},active:function(){return this._active},progress:function(){return this._progress},add:function(t){var n=this;if(!t||this.options.disabled){return}if(t.fileInput&&!t.files){this._getFileInputFiles(t.fileInput).always(function(e){t.files=e;n._onAdd(null,t)})}else{t.files=e.makeArray(t.files);this._onAdd(null,t)}},send:function(t){if(t&&!this.options.disabled){if(t.fileInput&&!t.files){var n=this,r=e.Deferred(),i=r.promise(),s,o;i.abort=function(){o=true;if(s){return s.abort()}r.reject(null,"abort","abort");return i};this._getFileInputFiles(t.fileInput).always(function(e){if(o){return}t.files=e;s=n._onSend(null,t).then(function(e,t,n){r.resolve(e,t,n)},function(e,t,n){r.reject(e,t,n)})});return this._enhancePromise(i)}t.files=e.makeArray(t.files);if(t.files.length){return this._onSend(null,t)}}return this._getXHRPromise(false,t&&t.context)}})})
|
@@ -0,0 +1 @@
|
|
1
|
+
(function(e){"use strict";if(typeof define==="function"&&define.amd){define(["jquery"],e)}else{e(window.jQuery)}})(function(e){"use strict";var t=0;e.ajaxTransport("iframe",function(n){if(n.async){var r,i,s;return{send:function(o,u){r=e('<form style="display:none;"></form>');r.attr("accept-charset",n.formAcceptCharset);s=/\?/.test(n.url)?"&":"?";if(n.type==="DELETE"){n.url=n.url+s+"_method=DELETE";n.type="POST"}else if(n.type==="PUT"){n.url=n.url+s+"_method=PUT";n.type="POST"}else if(n.type==="PATCH"){n.url=n.url+s+"_method=PATCH";n.type="POST"}i=e('<iframe src="javascript:false;" name="iframe-transport-'+(t+=1)+'"></iframe>').bind("load",function(){var t,s=e.isArray(n.paramName)?n.paramName:[n.paramName];i.unbind("load").bind("load",function(){var t;try{t=i.contents();if(!t.length||!t[0].firstChild){throw new Error}}catch(n){t=undefined}u(200,"success",{iframe:t});e('<iframe src="javascript:false;"></iframe>').appendTo(r);r.remove()});r.prop("target",i.prop("name")).prop("action",n.url).prop("method",n.type);if(n.formData){e.each(n.formData,function(t,n){e('<input type="hidden"/>').prop("name",n.name).val(n.value).appendTo(r)})}if(n.fileInput&&n.fileInput.length&&n.type==="POST"){t=n.fileInput.clone();n.fileInput.after(function(e){return t[e]});if(n.paramName){n.fileInput.each(function(t){e(this).prop("name",s[t]||n.paramName)})}r.append(n.fileInput).prop("enctype","multipart/form-data").prop("encoding","multipart/form-data")}r.submit();if(t&&t.length){n.fileInput.each(function(n,r){var i=e(t[n]);e(r).prop("name",i.prop("name"));i.replaceWith(r)})}});r.append(i).appendTo(document.body)},abort:function(){if(i){i.unbind("load").prop("src","javascript".concat(":false;"))}if(r){r.remove()}}}}});e.ajaxSetup({converters:{"iframe text":function(t){return t&&e(t[0].body).text()},"iframe json":function(t){return t&&e.parseJSON(e(t[0].body).text())},"iframe html":function(t){return t&&e(t[0].body).html()},"iframe script":function(t){return t&&e.globalEval(e(t[0].body).text())}}})})
|
@@ -0,0 +1 @@
|
|
1
|
+
(function($){"use strict";var loadImage=function(file,callback,options){var url,oUrl,img=document.createElement("img");return img.onerror=callback,img.onload=function(){!oUrl||options&&options.noRevoke||loadImage.revokeObjectURL(oUrl),callback(loadImage.scale(img,options))},window.Blob&&file instanceof Blob||window.File&&file instanceof File?(url=oUrl=loadImage.createObjectURL(file),img._type=file.type):"string"==typeof file&&(url=file),url?(img.src=url,img):loadImage.readFile(file,function(e){var target=e.target;target&&target.result?img.src=target.result:callback(e)})},urlAPI=window.createObjectURL&&window||window.URL&&URL.revokeObjectURL&&URL||window.webkitURL&&webkitURL;loadImage.detectSubsampling=function(img){var canvas,ctx,iw=img.width,ih=img.height;return iw*ih>1048576?(canvas=document.createElement("canvas"),canvas.width=canvas.height=1,ctx=canvas.getContext("2d"),ctx.drawImage(img,-iw+1,0),0===ctx.getImageData(0,0,1,1).data[3]):!1},loadImage.detectVerticalSquash=function(img,ih){var data,sy,ey,py,alpha,canvas=document.createElement("canvas"),ctx=canvas.getContext("2d");for(canvas.width=1,canvas.height=ih,ctx.drawImage(img,0,0),data=ctx.getImageData(0,0,1,ih).data,sy=0,ey=ih,py=ih;py>sy;)alpha=data[4*(py-1)+3],0===alpha?ey=py:sy=py,py=ey+sy>>1;return py/ih||1},loadImage.renderImageToCanvas=function(img,canvas,width,height){var vertSquashRatio,tmpCtx,dw,dh,dx,dy,sx,sy,iw=img.width,ih=img.height,ctx=canvas.getContext("2d"),d=1024,tmpCanvas=document.createElement("canvas");for(ctx.save(),loadImage.detectSubsampling(img)&&(iw/=2,ih/=2),vertSquashRatio=loadImage.detectVerticalSquash(img,ih),tmpCanvas.width=tmpCanvas.height=d,tmpCtx=tmpCanvas.getContext("2d"),dw=Math.ceil(d*width/iw),dh=Math.ceil(d*height/ih/vertSquashRatio),dy=0,sy=0;ih>sy;){for(dx=0,sx=0;iw>sx;)tmpCtx.clearRect(0,0,d,d),tmpCtx.drawImage(img,-sx,-sy),ctx.drawImage(tmpCanvas,0,0,d,d,dx,dy,dw,dh),sx+=d,dx+=dw;sy+=d,dy+=dh}ctx.restore(),tmpCanvas=tmpCtx=null},loadImage.scale=function(img,options){options=options||{};var canvas=document.createElement("canvas"),width=img.width,height=img.height,scale=Math.max((options.minWidth||width)/width,(options.minHeight||height)/height);return scale>1&&(width=Math.ceil(width*scale),height=Math.ceil(height*scale)),scale=Math.min((options.maxWidth||width)/width,(options.maxHeight||height)/height),1>scale&&(width=Math.ceil(width*scale),height=Math.ceil(height*scale)),img.getContext||options.canvas&&canvas.getContext?(canvas.width=width,canvas.height=height,"image/jpeg"===img._type?loadImage.renderImageToCanvas(img,canvas,width,height):canvas.getContext("2d").drawImage(img,0,0,width,height),canvas):(img.width=width,img.height=height,img)},loadImage.createObjectURL=function(file){return urlAPI?urlAPI.createObjectURL(file):!1},loadImage.revokeObjectURL=function(url){return urlAPI?urlAPI.revokeObjectURL(url):!1},loadImage.readFile=function(file,callback){if(window.FileReader&&FileReader.prototype.readAsDataURL){var fileReader=new FileReader;return fileReader.onload=fileReader.onerror=callback,fileReader.readAsDataURL(file),fileReader}return!1},"function"==typeof define&&define.amd?define(function(){return loadImage}):$.loadImage=loadImage})(this);
|
@@ -0,0 +1 @@
|
|
1
|
+
(function(a){"use strict";var b=function(a,c){var d=/[^\w\-\.:]/.test(a)?new Function(b.arg+",tmpl","var _e=tmpl.encode"+b.helper+",_s='"+a.replace(b.regexp,b.func)+"';return _s;"):b.cache[a]=b.cache[a]||b(b.load(a));return c?d(c,b):function(a){return d(a,b)}};b.cache={},b.load=function(a){return document.getElementById(a).innerHTML},b.regexp=/([\s'\\])(?![^%]*%\})|(?:\{%(=|#)([\s\S]+?)%\})|(\{%)|(%\})/g,b.func=function(a,b,c,d,e,f){if(b)return{"\n":"\\n","\r":"\\r","\t":"\\t"," ":" "}[a]||"\\"+a;if(c)return c==="="?"'+_e("+d+")+'":"'+("+d+"||'')+'";if(e)return"';";if(f)return"_s+='"},b.encReg=/[<>&"'\x00]/g,b.encMap={"<":"<",">":">","&":"&",'"':""","'":"'"},b.encode=function(a){return String(a||"").replace(b.encReg,function(a){return b.encMap[a]||""})},b.arg="o",b.helper=",print=function(s,e){_s+=e&&(s||'')||_e(s);},include=function(s,d){_s+=tmpl(s,d);}",typeof define=="function"&&define.amd?define(function(){return b}):a.tmpl=b})(this);
|
@@ -0,0 +1 @@
|
|
1
|
+
if(!document.createElement("canvas").getContext){(function(){var ab=Math;var n=ab.round;var l=ab.sin;var A=ab.cos;var H=ab.abs;var N=ab.sqrt;var d=10;var f=d/2;var z=+navigator.userAgent.match(/MSIE ([\d.]+)?/)[1];function y(){return this.context_||(this.context_=new D(this))}var t=Array.prototype.slice;function g(j,m,p){var i=t.call(arguments,2);return function(){return j.apply(m,i.concat(t.call(arguments)))}}function af(i){return String(i).replace(/&/g,"&").replace(/"/g,""")}function Y(m,j,i){if(!m.namespaces[j]){m.namespaces.add(j,i,"#default#VML")}}function R(j){Y(j,"g_vml_","urn:schemas-microsoft-com:vml");Y(j,"g_o_","urn:schemas-microsoft-com:office:office");if(!j.styleSheets.ex_canvas_){var i=j.createStyleSheet();i.owningElement.id="ex_canvas_";i.cssText="canvas{display:inline-block;overflow:hidden;text-align:left;width:300px;height:150px}"}}R(document);var e={init:function(i){var j=i||document;j.createElement("canvas");j.attachEvent("onreadystatechange",g(this.init_,this,j))},init_:function(p){var m=p.getElementsByTagName("canvas");for(var j=0;j<m.length;j++){this.initElement(m[j])}},initElement:function(j){if(!j.getContext){j.getContext=y;R(j.ownerDocument);j.innerHTML="";j.attachEvent("onpropertychange",x);j.attachEvent("onresize",W);var i=j.attributes;if(i.width&&i.width.specified){j.style.width=i.width.nodeValue+"px"}else{j.width=j.clientWidth}if(i.height&&i.height.specified){j.style.height=i.height.nodeValue+"px"}else{j.height=j.clientHeight}}return j}};function x(j){var i=j.srcElement;switch(j.propertyName){case"width":i.getContext().clearRect();i.style.width=i.attributes.width.nodeValue+"px";i.firstChild.style.width=i.clientWidth+"px";break;case"height":i.getContext().clearRect();i.style.height=i.attributes.height.nodeValue+"px";i.firstChild.style.height=i.clientHeight+"px";break}}function W(j){var i=j.srcElement;if(i.firstChild){i.firstChild.style.width=i.clientWidth+"px";i.firstChild.style.height=i.clientHeight+"px"}}e.init();var k=[];for(var ae=0;ae<16;ae++){for(var ad=0;ad<16;ad++){k[ae*16+ad]=ae.toString(16)+ad.toString(16)}}function B(){return[[1,0,0],[0,1,0],[0,0,1]]}function J(p,m){var j=B();for(var i=0;i<3;i++){for(var ah=0;ah<3;ah++){var Z=0;for(var ag=0;ag<3;ag++){Z+=p[i][ag]*m[ag][ah]}j[i][ah]=Z}}return j}function v(j,i){i.fillStyle=j.fillStyle;i.lineCap=j.lineCap;i.lineJoin=j.lineJoin;i.lineWidth=j.lineWidth;i.miterLimit=j.miterLimit;i.shadowBlur=j.shadowBlur;i.shadowColor=j.shadowColor;i.shadowOffsetX=j.shadowOffsetX;i.shadowOffsetY=j.shadowOffsetY;i.strokeStyle=j.strokeStyle;i.globalAlpha=j.globalAlpha;i.font=j.font;i.textAlign=j.textAlign;i.textBaseline=j.textBaseline;i.arcScaleX_=j.arcScaleX_;i.arcScaleY_=j.arcScaleY_;i.lineScale_=j.lineScale_}var b={aliceblue:"#F0F8FF",antiquewhite:"#FAEBD7",aquamarine:"#7FFFD4",azure:"#F0FFFF",beige:"#F5F5DC",bisque:"#FFE4C4",black:"#000000",blanchedalmond:"#FFEBCD",blueviolet:"#8A2BE2",brown:"#A52A2A",burlywood:"#DEB887",cadetblue:"#5F9EA0",chartreuse:"#7FFF00",chocolate:"#D2691E",coral:"#FF7F50",cornflowerblue:"#6495ED",cornsilk:"#FFF8DC",crimson:"#DC143C",cyan:"#00FFFF",darkblue:"#00008B",darkcyan:"#008B8B",darkgoldenrod:"#B8860B",darkgray:"#A9A9A9",darkgreen:"#006400",darkgrey:"#A9A9A9",darkkhaki:"#BDB76B",darkmagenta:"#8B008B",darkolivegreen:"#556B2F",darkorange:"#FF8C00",darkorchid:"#9932CC",darkred:"#8B0000",darksalmon:"#E9967A",darkseagreen:"#8FBC8F",darkslateblue:"#483D8B",darkslategray:"#2F4F4F",darkslategrey:"#2F4F4F",darkturquoise:"#00CED1",darkviolet:"#9400D3",deeppink:"#FF1493",deepskyblue:"#00BFFF",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1E90FF",firebrick:"#B22222",floralwhite:"#FFFAF0",forestgreen:"#228B22",gainsboro:"#DCDCDC",ghostwhite:"#F8F8FF",gold:"#FFD700",goldenrod:"#DAA520",grey:"#808080",greenyellow:"#ADFF2F",honeydew:"#F0FFF0",hotpink:"#FF69B4",indianred:"#CD5C5C",indigo:"#4B0082",ivory:"#FFFFF0",khaki:"#F0E68C",lavender:"#E6E6FA",lavenderblush:"#FFF0F5",lawngreen:"#7CFC00",lemonchiffon:"#FFFACD",lightblue:"#ADD8E6",lightcoral:"#F08080",lightcyan:"#E0FFFF",lightgoldenrodyellow:"#FAFAD2",lightgreen:"#90EE90",lightgrey:"#D3D3D3",lightpink:"#FFB6C1",lightsalmon:"#FFA07A",lightseagreen:"#20B2AA",lightskyblue:"#87CEFA",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#B0C4DE",lightyellow:"#FFFFE0",limegreen:"#32CD32",linen:"#FAF0E6",magenta:"#FF00FF",mediumaquamarine:"#66CDAA",mediumblue:"#0000CD",mediumorchid:"#BA55D3",mediumpurple:"#9370DB",mediumseagreen:"#3CB371",mediumslateblue:"#7B68EE",mediumspringgreen:"#00FA9A",mediumturquoise:"#48D1CC",mediumvioletred:"#C71585",midnightblue:"#191970",mintcream:"#F5FFFA",mistyrose:"#FFE4E1",moccasin:"#FFE4B5",navajowhite:"#FFDEAD",oldlace:"#FDF5E6",olivedrab:"#6B8E23",orange:"#FFA500",orangered:"#FF4500",orchid:"#DA70D6",palegoldenrod:"#EEE8AA",palegreen:"#98FB98",paleturquoise:"#AFEEEE",palevioletred:"#DB7093",papayawhip:"#FFEFD5",peachpuff:"#FFDAB9",peru:"#CD853F",pink:"#FFC0CB",plum:"#DDA0DD",powderblue:"#B0E0E6",rosybrown:"#BC8F8F",royalblue:"#4169E1",saddlebrown:"#8B4513",salmon:"#FA8072",sandybrown:"#F4A460",seagreen:"#2E8B57",seashell:"#FFF5EE",sienna:"#A0522D",skyblue:"#87CEEB",slateblue:"#6A5ACD",slategray:"#708090",slategrey:"#708090",snow:"#FFFAFA",springgreen:"#00FF7F",steelblue:"#4682B4",tan:"#D2B48C",thistle:"#D8BFD8",tomato:"#FF6347",turquoise:"#40E0D0",violet:"#EE82EE",wheat:"#F5DEB3",whitesmoke:"#F5F5F5",yellowgreen:"#9ACD32"};function M(j){var p=j.indexOf("(",3);var i=j.indexOf(")",p+1);var m=j.substring(p+1,i).split(",");if(m.length!=4||j.charAt(3)!="a"){m[3]=1}return m}function c(i){return parseFloat(i)/100}function r(j,m,i){return Math.min(i,Math.max(m,j))}function I(ag){var i,ai,aj,ah,ak,Z;ah=parseFloat(ag[0])/360%360;if(ah<0){ah++}ak=r(c(ag[1]),0,1);Z=r(c(ag[2]),0,1);if(ak==0){i=ai=aj=Z}else{var j=Z<0.5?Z*(1+ak):Z+ak-Z*ak;var m=2*Z-j;i=a(m,j,ah+1/3);ai=a(m,j,ah);aj=a(m,j,ah-1/3)}return"#"+k[Math.floor(i*255)]+k[Math.floor(ai*255)]+k[Math.floor(aj*255)]}function a(j,i,m){if(m<0){m++}if(m>1){m--}if(6*m<1){return j+(i-j)*6*m}else{if(2*m<1){return i}else{if(3*m<2){return j+(i-j)*(2/3-m)*6}else{return j}}}}var C={};function F(j){if(j in C){return C[j]}var ag,Z=1;j=String(j);if(j.charAt(0)=="#"){ag=j}else{if(/^rgb/.test(j)){var p=M(j);var ag="#",ah;for(var m=0;m<3;m++){if(p[m].indexOf("%")!=-1){ah=Math.floor(c(p[m])*255)}else{ah=+p[m]}ag+=k[r(ah,0,255)]}Z=+p[3]}else{if(/^hsl/.test(j)){var p=M(j);ag=I(p);Z=p[3]}else{ag=b[j]||j}}}return C[j]={color:ag,alpha:Z}}var o={style:"normal",variant:"normal",weight:"normal",size:10,family:"sans-serif"};var L={};function E(i){if(L[i]){return L[i]}var p=document.createElement("div");var m=p.style;try{m.font=i}catch(j){}return L[i]={style:m.fontStyle||o.style,variant:m.fontVariant||o.variant,weight:m.fontWeight||o.weight,size:m.fontSize||o.size,family:m.fontFamily||o.family}}function u(m,j){var i={};for(var ah in m){i[ah]=m[ah]}var ag=parseFloat(j.currentStyle.fontSize),Z=parseFloat(m.size);if(typeof m.size=="number"){i.size=m.size}else{if(m.size.indexOf("px")!=-1){i.size=Z}else{if(m.size.indexOf("em")!=-1){i.size=ag*Z}else{if(m.size.indexOf("%")!=-1){i.size=(ag/100)*Z}else{if(m.size.indexOf("pt")!=-1){i.size=Z/0.75}else{i.size=ag}}}}}i.size*=0.981;return i}function ac(i){return i.style+" "+i.variant+" "+i.weight+" "+i.size+"px "+i.family}var s={butt:"flat",round:"round"};function S(i){return s[i]||"square"}function D(i){this.m_=B();this.mStack_=[];this.aStack_=[];this.currentPath_=[];this.strokeStyle="#000";this.fillStyle="#000";this.lineWidth=1;this.lineJoin="miter";this.lineCap="butt";this.miterLimit=d*1;this.globalAlpha=1;this.font="10px sans-serif";this.textAlign="left";this.textBaseline="alphabetic";this.canvas=i;var m="width:"+i.clientWidth+"px;height:"+i.clientHeight+"px;overflow:hidden;position:absolute";var j=i.ownerDocument.createElement("div");j.style.cssText=m;i.appendChild(j);var p=j.cloneNode(false);p.style.backgroundColor="red";p.style.filter="alpha(opacity=0)";i.appendChild(p);this.element_=j;this.arcScaleX_=1;this.arcScaleY_=1;this.lineScale_=1}var q=D.prototype;q.clearRect=function(){if(this.textMeasureEl_){this.textMeasureEl_.removeNode(true);this.textMeasureEl_=null}this.element_.innerHTML=""};q.beginPath=function(){this.currentPath_=[]};q.moveTo=function(j,i){var m=V(this,j,i);this.currentPath_.push({type:"moveTo",x:m.x,y:m.y});this.currentX_=m.x;this.currentY_=m.y};q.lineTo=function(j,i){var m=V(this,j,i);this.currentPath_.push({type:"lineTo",x:m.x,y:m.y});this.currentX_=m.x;this.currentY_=m.y};q.bezierCurveTo=function(m,j,ak,aj,ai,ag){var i=V(this,ai,ag);var ah=V(this,m,j);var Z=V(this,ak,aj);K(this,ah,Z,i)};function K(i,Z,m,j){i.currentPath_.push({type:"bezierCurveTo",cp1x:Z.x,cp1y:Z.y,cp2x:m.x,cp2y:m.y,x:j.x,y:j.y});i.currentX_=j.x;i.currentY_=j.y}q.quadraticCurveTo=function(ai,m,j,i){var ah=V(this,ai,m);var ag=V(this,j,i);var aj={x:this.currentX_+2/3*(ah.x-this.currentX_),y:this.currentY_+2/3*(ah.y-this.currentY_)};var Z={x:aj.x+(ag.x-this.currentX_)/3,y:aj.y+(ag.y-this.currentY_)/3};K(this,aj,Z,ag)};q.arc=function(al,aj,ak,ag,j,m){ak*=d;var ap=m?"at":"wa";var am=al+A(ag)*ak-f;var ao=aj+l(ag)*ak-f;var i=al+A(j)*ak-f;var an=aj+l(j)*ak-f;if(am==i&&!m){am+=0.125}var Z=V(this,al,aj);var ai=V(this,am,ao);var ah=V(this,i,an);this.currentPath_.push({type:ap,x:Z.x,y:Z.y,radius:ak,xStart:ai.x,yStart:ai.y,xEnd:ah.x,yEnd:ah.y})};q.rect=function(m,j,i,p){this.moveTo(m,j);this.lineTo(m+i,j);this.lineTo(m+i,j+p);this.lineTo(m,j+p);this.closePath()};q.strokeRect=function(m,j,i,p){var Z=this.currentPath_;this.beginPath();this.moveTo(m,j);this.lineTo(m+i,j);this.lineTo(m+i,j+p);this.lineTo(m,j+p);this.closePath();this.stroke();this.currentPath_=Z};q.fillRect=function(m,j,i,p){var Z=this.currentPath_;this.beginPath();this.moveTo(m,j);this.lineTo(m+i,j);this.lineTo(m+i,j+p);this.lineTo(m,j+p);this.closePath();this.fill();this.currentPath_=Z};q.createLinearGradient=function(j,p,i,m){var Z=new U("gradient");Z.x0_=j;Z.y0_=p;Z.x1_=i;Z.y1_=m;return Z};q.createRadialGradient=function(p,ag,m,j,Z,i){var ah=new U("gradientradial");ah.x0_=p;ah.y0_=ag;ah.r0_=m;ah.x1_=j;ah.y1_=Z;ah.r1_=i;return ah};q.drawImage=function(aq,m){var aj,ah,al,ay,ao,am,at,aA;var ak=aq.runtimeStyle.width;var ap=aq.runtimeStyle.height;aq.runtimeStyle.width="auto";aq.runtimeStyle.height="auto";var ai=aq.width;var aw=aq.height;aq.runtimeStyle.width=ak;aq.runtimeStyle.height=ap;if(arguments.length==3){aj=arguments[1];ah=arguments[2];ao=am=0;at=al=ai;aA=ay=aw}else{if(arguments.length==5){aj=arguments[1];ah=arguments[2];al=arguments[3];ay=arguments[4];ao=am=0;at=ai;aA=aw}else{if(arguments.length==9){ao=arguments[1];am=arguments[2];at=arguments[3];aA=arguments[4];aj=arguments[5];ah=arguments[6];al=arguments[7];ay=arguments[8]}else{throw Error("Invalid number of arguments")}}}var az=V(this,aj,ah);var p=at/2;var j=aA/2;var ax=[];var i=10;var ag=10;ax.push(" <g_vml_:group",' coordsize="',d*i,",",d*ag,'"',' coordorigin="0,0"',' style="width:',i,"px;height:",ag,"px;position:absolute;");if(this.m_[0][0]!=1||this.m_[0][1]||this.m_[1][1]!=1||this.m_[1][0]){var Z=[];Z.push("M11=",this.m_[0][0],",","M12=",this.m_[1][0],",","M21=",this.m_[0][1],",","M22=",this.m_[1][1],",","Dx=",n(az.x/d),",","Dy=",n(az.y/d),"");var av=az;var au=V(this,aj+al,ah);var ar=V(this,aj,ah+ay);var an=V(this,aj+al,ah+ay);av.x=ab.max(av.x,au.x,ar.x,an.x);av.y=ab.max(av.y,au.y,ar.y,an.y);ax.push("padding:0 ",n(av.x/d),"px ",n(av.y/d),"px 0;filter:progid:DXImageTransform.Microsoft.Matrix(",Z.join(""),", sizingmethod='clip');")}else{ax.push("top:",n(az.y/d),"px;left:",n(az.x/d),"px;")}ax.push(' ">','<g_vml_:image src="',aq.src,'"',' style="width:',d*al,"px;"," height:",d*ay,'px"',' cropleft="',ao/ai,'"',' croptop="',am/aw,'"',' cropright="',(ai-ao-at)/ai,'"',' cropbottom="',(aw-am-aA)/aw,'"'," />","</g_vml_:group>");this.element_.insertAdjacentHTML("BeforeEnd",ax.join(""))};q.stroke=function(ao){var Z=10;var ap=10;var ag=5000;var ai={x:null,y:null};var an={x:null,y:null};for(var aj=0;aj<this.currentPath_.length;aj+=ag){var am=[];var ah=false;am.push("<g_vml_:shape",' filled="',!!ao,'"',' style="position:absolute;width:',Z,"px;height:",ap,'px;"',' coordorigin="0,0"',' coordsize="',d*Z,",",d*ap,'"',' stroked="',!ao,'"',' path="');var aq=false;for(var ak=aj;ak<Math.min(aj+ag,this.currentPath_.length);ak++){if(ak%ag==0&&ak>0){am.push(" m ",n(this.currentPath_[ak-1].x),",",n(this.currentPath_[ak-1].y))}var m=this.currentPath_[ak];var al;switch(m.type){case"moveTo":al=m;am.push(" m ",n(m.x),",",n(m.y));break;case"lineTo":am.push(" l ",n(m.x),",",n(m.y));break;case"close":am.push(" x ");m=null;break;case"bezierCurveTo":am.push(" c ",n(m.cp1x),",",n(m.cp1y),",",n(m.cp2x),",",n(m.cp2y),",",n(m.x),",",n(m.y));break;case"at":case"wa":am.push(" ",m.type," ",n(m.x-this.arcScaleX_*m.radius),",",n(m.y-this.arcScaleY_*m.radius)," ",n(m.x+this.arcScaleX_*m.radius),",",n(m.y+this.arcScaleY_*m.radius)," ",n(m.xStart),",",n(m.yStart)," ",n(m.xEnd),",",n(m.yEnd));break}if(m){if(ai.x==null||m.x<ai.x){ai.x=m.x}if(an.x==null||m.x>an.x){an.x=m.x}if(ai.y==null||m.y<ai.y){ai.y=m.y}if(an.y==null||m.y>an.y){an.y=m.y}}}am.push(' ">');if(!ao){w(this,am)}else{G(this,am,ai,an)}am.push("</g_vml_:shape>");this.element_.insertAdjacentHTML("beforeEnd",am.join(""))}};function w(m,ag){var j=F(m.strokeStyle);var p=j.color;var Z=j.alpha*m.globalAlpha;var i=m.lineScale_*m.lineWidth;if(i<1){Z*=i}ag.push("<g_vml_:stroke",' opacity="',Z,'"',' joinstyle="',m.lineJoin,'"',' miterlimit="',m.miterLimit,'"',' endcap="',S(m.lineCap),'"',' weight="',i,'px"',' color="',p,'" />')}function G(aq,ai,aK,ar){var aj=aq.fillStyle;var aB=aq.arcScaleX_;var aA=aq.arcScaleY_;var j=ar.x-aK.x;var p=ar.y-aK.y;if(aj instanceof U){var an=0;var aF={x:0,y:0};var ax=0;var am=1;if(aj.type_=="gradient"){var al=aj.x0_/aB;var m=aj.y0_/aA;var ak=aj.x1_/aB;var aM=aj.y1_/aA;var aJ=V(aq,al,m);var aI=V(aq,ak,aM);var ag=aI.x-aJ.x;var Z=aI.y-aJ.y;an=Math.atan2(ag,Z)*180/Math.PI;if(an<0){an+=360}if(an<0.000001){an=0}}else{var aJ=V(aq,aj.x0_,aj.y0_);aF={x:(aJ.x-aK.x)/j,y:(aJ.y-aK.y)/p};j/=aB*d;p/=aA*d;var aD=ab.max(j,p);ax=2*aj.r0_/aD;am=2*aj.r1_/aD-ax}var av=aj.colors_;av.sort(function(aN,i){return aN.offset-i.offset});var ap=av.length;var au=av[0].color;var at=av[ap-1].color;var az=av[0].alpha*aq.globalAlpha;var ay=av[ap-1].alpha*aq.globalAlpha;var aE=[];for(var aH=0;aH<ap;aH++){var ao=av[aH];aE.push(ao.offset*am+ax+" "+ao.color)}ai.push('<g_vml_:fill type="',aj.type_,'"',' method="none" focus="100%"',' color="',au,'"',' color2="',at,'"',' colors="',aE.join(","),'"',' opacity="',ay,'"',' g_o_:opacity2="',az,'"',' angle="',an,'"',' focusposition="',aF.x,",",aF.y,'" />')}else{if(aj instanceof T){if(j&&p){var ah=-aK.x;var aC=-aK.y;ai.push("<g_vml_:fill",' position="',ah/j*aB*aB,",",aC/p*aA*aA,'"',' type="tile"',' src="',aj.src_,'" />')}}else{var aL=F(aq.fillStyle);var aw=aL.color;var aG=aL.alpha*aq.globalAlpha;ai.push('<g_vml_:fill color="',aw,'" opacity="',aG,'" />')}}}q.fill=function(){this.stroke(true)};q.closePath=function(){this.currentPath_.push({type:"close"})};function V(j,Z,p){var i=j.m_;return{x:d*(Z*i[0][0]+p*i[1][0]+i[2][0])-f,y:d*(Z*i[0][1]+p*i[1][1]+i[2][1])-f}}q.save=function(){var i={};v(this,i);this.aStack_.push(i);this.mStack_.push(this.m_);this.m_=J(B(),this.m_)};q.restore=function(){if(this.aStack_.length){v(this.aStack_.pop(),this);this.m_=this.mStack_.pop()}};function h(i){return isFinite(i[0][0])&&isFinite(i[0][1])&&isFinite(i[1][0])&&isFinite(i[1][1])&&isFinite(i[2][0])&&isFinite(i[2][1])}function aa(j,i,p){if(!h(i)){return}j.m_=i;if(p){var Z=i[0][0]*i[1][1]-i[0][1]*i[1][0];j.lineScale_=N(H(Z))}}q.translate=function(m,j){var i=[[1,0,0],[0,1,0],[m,j,1]];aa(this,J(i,this.m_),false)};q.rotate=function(j){var p=A(j);var m=l(j);var i=[[p,m,0],[-m,p,0],[0,0,1]];aa(this,J(i,this.m_),false)};q.scale=function(m,j){this.arcScaleX_*=m;this.arcScaleY_*=j;var i=[[m,0,0],[0,j,0],[0,0,1]];aa(this,J(i,this.m_),true)};q.transform=function(Z,p,ah,ag,j,i){var m=[[Z,p,0],[ah,ag,0],[j,i,1]];aa(this,J(m,this.m_),true)};q.setTransform=function(ag,Z,ai,ah,p,j){var i=[[ag,Z,0],[ai,ah,0],[p,j,1]];aa(this,i,true)};q.drawText_=function(am,ak,aj,ap,ai){var ao=this.m_,at=1000,j=0,ar=at,ah={x:0,y:0},ag=[];var i=u(E(this.font),this.element_);var p=ac(i);var au=this.element_.currentStyle;var Z=this.textAlign.toLowerCase();switch(Z){case"left":case"center":case"right":break;case"end":Z=au.direction=="ltr"?"right":"left";break;case"start":Z=au.direction=="rtl"?"right":"left";break;default:Z="left"}switch(this.textBaseline){case"hanging":case"top":ah.y=i.size/1.75;break;case"middle":break;default:case null:case"alphabetic":case"ideographic":case"bottom":ah.y=-i.size/2.25;break}switch(Z){case"right":j=at;ar=0.05;break;case"center":j=ar=at/2;break}var aq=V(this,ak+ah.x,aj+ah.y);ag.push('<g_vml_:line from="',-j,' 0" to="',ar,' 0.05" ',' coordsize="100 100" coordorigin="0 0"',' filled="',!ai,'" stroked="',!!ai,'" style="position:absolute;width:1px;height:1px;">');if(ai){w(this,ag)}else{G(this,ag,{x:-j,y:0},{x:ar,y:i.size})}var an=ao[0][0].toFixed(3)+","+ao[1][0].toFixed(3)+","+ao[0][1].toFixed(3)+","+ao[1][1].toFixed(3)+",0,0";var al=n(aq.x/d)+","+n(aq.y/d);ag.push('<g_vml_:skew on="t" matrix="',an,'" ',' offset="',al,'" origin="',j,' 0" />','<g_vml_:path textpathok="true" />','<g_vml_:textpath on="true" string="',af(am),'" style="v-text-align:',Z,";font:",af(p),'" /></g_vml_:line>');this.element_.insertAdjacentHTML("beforeEnd",ag.join(""))};q.fillText=function(m,i,p,j){this.drawText_(m,i,p,j,false)};q.strokeText=function(m,i,p,j){this.drawText_(m,i,p,j,true)};q.measureText=function(m){if(!this.textMeasureEl_){var i='<span style="position:absolute;top:-20000px;left:0;padding:0;margin:0;border:none;white-space:pre;"></span>';this.element_.insertAdjacentHTML("beforeEnd",i);this.textMeasureEl_=this.element_.lastChild}var j=this.element_.ownerDocument;this.textMeasureEl_.innerHTML="";this.textMeasureEl_.style.font=this.font;this.textMeasureEl_.appendChild(j.createTextNode(m));return{width:this.textMeasureEl_.offsetWidth}};q.clip=function(){};q.arcTo=function(){};q.createPattern=function(j,i){return new T(j,i)};function U(i){this.type_=i;this.x0_=0;this.y0_=0;this.r0_=0;this.x1_=0;this.y1_=0;this.r1_=0;this.colors_=[]}U.prototype.addColorStop=function(j,i){i=F(i);this.colors_.push({offset:j,color:i.color,alpha:i.alpha})};function T(j,i){Q(j);switch(i){case"repeat":case null:case"":this.repetition_="repeat";break;case"repeat-x":case"repeat-y":case"no-repeat":this.repetition_=i;break;default:O("SYNTAX_ERR")}this.src_=j.src;this.width_=j.width;this.height_=j.height}function O(i){throw new P(i)}function Q(i){if(!i||i.nodeType!=1||i.tagName!="IMG"){O("TYPE_MISMATCH_ERR")}if(i.readyState!="complete"){O("INVALID_STATE_ERR")}}function P(i){this.code=this[i];this.message=i+": DOM Exception "+this.code}var X=P.prototype=new Error;X.INDEX_SIZE_ERR=1;X.DOMSTRING_SIZE_ERR=2;X.HIERARCHY_REQUEST_ERR=3;X.WRONG_DOCUMENT_ERR=4;X.INVALID_CHARACTER_ERR=5;X.NO_DATA_ALLOWED_ERR=6;X.NO_MODIFICATION_ALLOWED_ERR=7;X.NOT_FOUND_ERR=8;X.NOT_SUPPORTED_ERR=9;X.INUSE_ATTRIBUTE_ERR=10;X.INVALID_STATE_ERR=11;X.SYNTAX_ERR=12;X.INVALID_MODIFICATION_ERR=13;X.NAMESPACE_ERR=14;X.INVALID_ACCESS_ERR=15;X.VALIDATION_ERR=16;X.TYPE_MISMATCH_ERR=17;G_vmlCanvasManager=e;CanvasRenderingContext2D=D;CanvasGradient=U;CanvasPattern=T;DOMException=P})()};
|
@@ -0,0 +1,167 @@
|
|
1
|
+
/*
|
2
|
+
Flot plugin for showing crosshairs, thin lines, when the mouse hovers
|
3
|
+
over the plot.
|
4
|
+
|
5
|
+
crosshair: {
|
6
|
+
mode: null or "x" or "y" or "xy"
|
7
|
+
color: color
|
8
|
+
lineWidth: number
|
9
|
+
}
|
10
|
+
|
11
|
+
Set the mode to one of "x", "y" or "xy". The "x" mode enables a
|
12
|
+
vertical crosshair that lets you trace the values on the x axis, "y"
|
13
|
+
enables a horizontal crosshair and "xy" enables them both. "color" is
|
14
|
+
the color of the crosshair (default is "rgba(170, 0, 0, 0.80)"),
|
15
|
+
"lineWidth" is the width of the drawn lines (default is 1).
|
16
|
+
|
17
|
+
The plugin also adds four public methods:
|
18
|
+
|
19
|
+
- setCrosshair(pos)
|
20
|
+
|
21
|
+
Set the position of the crosshair. Note that this is cleared if
|
22
|
+
the user moves the mouse. "pos" is in coordinates of the plot and
|
23
|
+
should be on the form { x: xpos, y: ypos } (you can use x2/x3/...
|
24
|
+
if you're using multiple axes), which is coincidentally the same
|
25
|
+
format as what you get from a "plothover" event. If "pos" is null,
|
26
|
+
the crosshair is cleared.
|
27
|
+
|
28
|
+
- clearCrosshair()
|
29
|
+
|
30
|
+
Clear the crosshair.
|
31
|
+
|
32
|
+
- lockCrosshair(pos)
|
33
|
+
|
34
|
+
Cause the crosshair to lock to the current location, no longer
|
35
|
+
updating if the user moves the mouse. Optionally supply a position
|
36
|
+
(passed on to setCrosshair()) to move it to.
|
37
|
+
|
38
|
+
Example usage:
|
39
|
+
var myFlot = $.plot( $("#graph"), ..., { crosshair: { mode: "x" } } };
|
40
|
+
$("#graph").bind("plothover", function (evt, position, item) {
|
41
|
+
if (item) {
|
42
|
+
// Lock the crosshair to the data point being hovered
|
43
|
+
myFlot.lockCrosshair({ x: item.datapoint[0], y: item.datapoint[1] });
|
44
|
+
}
|
45
|
+
else {
|
46
|
+
// Return normal crosshair operation
|
47
|
+
myFlot.unlockCrosshair();
|
48
|
+
}
|
49
|
+
});
|
50
|
+
|
51
|
+
- unlockCrosshair()
|
52
|
+
|
53
|
+
Free the crosshair to move again after locking it.
|
54
|
+
*/
|
55
|
+
|
56
|
+
(function ($) {
|
57
|
+
var options = {
|
58
|
+
crosshair: {
|
59
|
+
mode: null, // one of null, "x", "y" or "xy",
|
60
|
+
color: "rgba(170, 0, 0, 0.80)",
|
61
|
+
lineWidth: 1
|
62
|
+
}
|
63
|
+
};
|
64
|
+
|
65
|
+
function init(plot) {
|
66
|
+
// position of crosshair in pixels
|
67
|
+
var crosshair = { x: -1, y: -1, locked: false };
|
68
|
+
|
69
|
+
plot.setCrosshair = function setCrosshair(pos) {
|
70
|
+
if (!pos)
|
71
|
+
crosshair.x = -1;
|
72
|
+
else {
|
73
|
+
var o = plot.p2c(pos);
|
74
|
+
crosshair.x = Math.max(0, Math.min(o.left, plot.width()));
|
75
|
+
crosshair.y = Math.max(0, Math.min(o.top, plot.height()));
|
76
|
+
}
|
77
|
+
|
78
|
+
plot.triggerRedrawOverlay();
|
79
|
+
};
|
80
|
+
|
81
|
+
plot.clearCrosshair = plot.setCrosshair; // passes null for pos
|
82
|
+
|
83
|
+
plot.lockCrosshair = function lockCrosshair(pos) {
|
84
|
+
if (pos)
|
85
|
+
plot.setCrosshair(pos);
|
86
|
+
crosshair.locked = true;
|
87
|
+
}
|
88
|
+
|
89
|
+
plot.unlockCrosshair = function unlockCrosshair() {
|
90
|
+
crosshair.locked = false;
|
91
|
+
}
|
92
|
+
|
93
|
+
function onMouseOut(e) {
|
94
|
+
if (crosshair.locked)
|
95
|
+
return;
|
96
|
+
|
97
|
+
if (crosshair.x != -1) {
|
98
|
+
crosshair.x = -1;
|
99
|
+
plot.triggerRedrawOverlay();
|
100
|
+
}
|
101
|
+
}
|
102
|
+
|
103
|
+
function onMouseMove(e) {
|
104
|
+
if (crosshair.locked)
|
105
|
+
return;
|
106
|
+
|
107
|
+
if (plot.getSelection && plot.getSelection()) {
|
108
|
+
crosshair.x = -1; // hide the crosshair while selecting
|
109
|
+
return;
|
110
|
+
}
|
111
|
+
|
112
|
+
var offset = plot.offset();
|
113
|
+
crosshair.x = Math.max(0, Math.min(e.pageX - offset.left, plot.width()));
|
114
|
+
crosshair.y = Math.max(0, Math.min(e.pageY - offset.top, plot.height()));
|
115
|
+
plot.triggerRedrawOverlay();
|
116
|
+
}
|
117
|
+
|
118
|
+
plot.hooks.bindEvents.push(function (plot, eventHolder) {
|
119
|
+
if (!plot.getOptions().crosshair.mode)
|
120
|
+
return;
|
121
|
+
|
122
|
+
eventHolder.mouseout(onMouseOut);
|
123
|
+
eventHolder.mousemove(onMouseMove);
|
124
|
+
});
|
125
|
+
|
126
|
+
plot.hooks.drawOverlay.push(function (plot, ctx) {
|
127
|
+
var c = plot.getOptions().crosshair;
|
128
|
+
if (!c.mode)
|
129
|
+
return;
|
130
|
+
|
131
|
+
var plotOffset = plot.getPlotOffset();
|
132
|
+
|
133
|
+
ctx.save();
|
134
|
+
ctx.translate(plotOffset.left, plotOffset.top);
|
135
|
+
|
136
|
+
if (crosshair.x != -1) {
|
137
|
+
ctx.strokeStyle = c.color;
|
138
|
+
ctx.lineWidth = c.lineWidth;
|
139
|
+
ctx.lineJoin = "round";
|
140
|
+
|
141
|
+
ctx.beginPath();
|
142
|
+
if (c.mode.indexOf("x") != -1) {
|
143
|
+
ctx.moveTo(crosshair.x, 0);
|
144
|
+
ctx.lineTo(crosshair.x, plot.height());
|
145
|
+
}
|
146
|
+
if (c.mode.indexOf("y") != -1) {
|
147
|
+
ctx.moveTo(0, crosshair.y);
|
148
|
+
ctx.lineTo(plot.width(), crosshair.y);
|
149
|
+
}
|
150
|
+
ctx.stroke();
|
151
|
+
}
|
152
|
+
ctx.restore();
|
153
|
+
});
|
154
|
+
|
155
|
+
plot.hooks.shutdown.push(function (plot, eventHolder) {
|
156
|
+
eventHolder.unbind("mouseout", onMouseOut);
|
157
|
+
eventHolder.unbind("mousemove", onMouseMove);
|
158
|
+
});
|
159
|
+
}
|
160
|
+
|
161
|
+
$.plot.plugins.push({
|
162
|
+
init: init,
|
163
|
+
options: options,
|
164
|
+
name: 'crosshair',
|
165
|
+
version: '1.0'
|
166
|
+
});
|
167
|
+
})(jQuery);
|
@@ -0,0 +1,183 @@
|
|
1
|
+
/*
|
2
|
+
Flot plugin for computing bottoms for filled line and bar charts.
|
3
|
+
|
4
|
+
The case: you've got two series that you want to fill the area
|
5
|
+
between. In Flot terms, you need to use one as the fill bottom of the
|
6
|
+
other. You can specify the bottom of each data point as the third
|
7
|
+
coordinate manually, or you can use this plugin to compute it for you.
|
8
|
+
|
9
|
+
In order to name the other series, you need to give it an id, like this
|
10
|
+
|
11
|
+
var dataset = [
|
12
|
+
{ data: [ ... ], id: "foo" } , // use default bottom
|
13
|
+
{ data: [ ... ], fillBetween: "foo" }, // use first dataset as bottom
|
14
|
+
];
|
15
|
+
|
16
|
+
$.plot($("#placeholder"), dataset, { line: { show: true, fill: true }});
|
17
|
+
|
18
|
+
As a convenience, if the id given is a number that doesn't appear as
|
19
|
+
an id in the series, it is interpreted as the index in the array
|
20
|
+
instead (so fillBetween: 0 can also mean the first series).
|
21
|
+
|
22
|
+
Internally, the plugin modifies the datapoints in each series. For
|
23
|
+
line series, extra data points might be inserted through
|
24
|
+
interpolation. Note that at points where the bottom line is not
|
25
|
+
defined (due to a null point or start/end of line), the current line
|
26
|
+
will show a gap too. The algorithm comes from the jquery.flot.stack.js
|
27
|
+
plugin, possibly some code could be shared.
|
28
|
+
*/
|
29
|
+
|
30
|
+
(function ($) {
|
31
|
+
var options = {
|
32
|
+
series: { fillBetween: null } // or number
|
33
|
+
};
|
34
|
+
|
35
|
+
function init(plot) {
|
36
|
+
function findBottomSeries(s, allseries) {
|
37
|
+
var i;
|
38
|
+
for (i = 0; i < allseries.length; ++i) {
|
39
|
+
if (allseries[i].id == s.fillBetween)
|
40
|
+
return allseries[i];
|
41
|
+
}
|
42
|
+
|
43
|
+
if (typeof s.fillBetween == "number") {
|
44
|
+
i = s.fillBetween;
|
45
|
+
|
46
|
+
if (i < 0 || i >= allseries.length)
|
47
|
+
return null;
|
48
|
+
|
49
|
+
return allseries[i];
|
50
|
+
}
|
51
|
+
|
52
|
+
return null;
|
53
|
+
}
|
54
|
+
|
55
|
+
function computeFillBottoms(plot, s, datapoints) {
|
56
|
+
if (s.fillBetween == null)
|
57
|
+
return;
|
58
|
+
|
59
|
+
var other = findBottomSeries(s, plot.getData());
|
60
|
+
if (!other)
|
61
|
+
return;
|
62
|
+
|
63
|
+
var ps = datapoints.pointsize,
|
64
|
+
points = datapoints.points,
|
65
|
+
otherps = other.datapoints.pointsize,
|
66
|
+
otherpoints = other.datapoints.points,
|
67
|
+
newpoints = [],
|
68
|
+
px, py, intery, qx, qy, bottom,
|
69
|
+
withlines = s.lines.show,
|
70
|
+
withbottom = ps > 2 && datapoints.format[2].y,
|
71
|
+
withsteps = withlines && s.lines.steps,
|
72
|
+
fromgap = true,
|
73
|
+
i = 0, j = 0, l;
|
74
|
+
|
75
|
+
while (true) {
|
76
|
+
if (i >= points.length)
|
77
|
+
break;
|
78
|
+
|
79
|
+
l = newpoints.length;
|
80
|
+
|
81
|
+
if (points[i] == null) {
|
82
|
+
// copy gaps
|
83
|
+
for (m = 0; m < ps; ++m)
|
84
|
+
newpoints.push(points[i + m]);
|
85
|
+
i += ps;
|
86
|
+
}
|
87
|
+
else if (j >= otherpoints.length) {
|
88
|
+
// for lines, we can't use the rest of the points
|
89
|
+
if (!withlines) {
|
90
|
+
for (m = 0; m < ps; ++m)
|
91
|
+
newpoints.push(points[i + m]);
|
92
|
+
}
|
93
|
+
i += ps;
|
94
|
+
}
|
95
|
+
else if (otherpoints[j] == null) {
|
96
|
+
// oops, got a gap
|
97
|
+
for (m = 0; m < ps; ++m)
|
98
|
+
newpoints.push(null);
|
99
|
+
fromgap = true;
|
100
|
+
j += otherps;
|
101
|
+
}
|
102
|
+
else {
|
103
|
+
// cases where we actually got two points
|
104
|
+
px = points[i];
|
105
|
+
py = points[i + 1];
|
106
|
+
qx = otherpoints[j];
|
107
|
+
qy = otherpoints[j + 1];
|
108
|
+
bottom = 0;
|
109
|
+
|
110
|
+
if (px == qx) {
|
111
|
+
for (m = 0; m < ps; ++m)
|
112
|
+
newpoints.push(points[i + m]);
|
113
|
+
|
114
|
+
//newpoints[l + 1] += qy;
|
115
|
+
bottom = qy;
|
116
|
+
|
117
|
+
i += ps;
|
118
|
+
j += otherps;
|
119
|
+
}
|
120
|
+
else if (px > qx) {
|
121
|
+
// we got past point below, might need to
|
122
|
+
// insert interpolated extra point
|
123
|
+
if (withlines && i > 0 && points[i - ps] != null) {
|
124
|
+
intery = py + (points[i - ps + 1] - py) * (qx - px) / (points[i - ps] - px);
|
125
|
+
newpoints.push(qx);
|
126
|
+
newpoints.push(intery)
|
127
|
+
for (m = 2; m < ps; ++m)
|
128
|
+
newpoints.push(points[i + m]);
|
129
|
+
bottom = qy;
|
130
|
+
}
|
131
|
+
|
132
|
+
j += otherps;
|
133
|
+
}
|
134
|
+
else { // px < qx
|
135
|
+
if (fromgap && withlines) {
|
136
|
+
// if we come from a gap, we just skip this point
|
137
|
+
i += ps;
|
138
|
+
continue;
|
139
|
+
}
|
140
|
+
|
141
|
+
for (m = 0; m < ps; ++m)
|
142
|
+
newpoints.push(points[i + m]);
|
143
|
+
|
144
|
+
// we might be able to interpolate a point below,
|
145
|
+
// this can give us a better y
|
146
|
+
if (withlines && j > 0 && otherpoints[j - otherps] != null)
|
147
|
+
bottom = qy + (otherpoints[j - otherps + 1] - qy) * (px - qx) / (otherpoints[j - otherps] - qx);
|
148
|
+
|
149
|
+
//newpoints[l + 1] += bottom;
|
150
|
+
|
151
|
+
i += ps;
|
152
|
+
}
|
153
|
+
|
154
|
+
fromgap = false;
|
155
|
+
|
156
|
+
if (l != newpoints.length && withbottom)
|
157
|
+
newpoints[l + 2] = bottom;
|
158
|
+
}
|
159
|
+
|
160
|
+
// maintain the line steps invariant
|
161
|
+
if (withsteps && l != newpoints.length && l > 0
|
162
|
+
&& newpoints[l] != null
|
163
|
+
&& newpoints[l] != newpoints[l - ps]
|
164
|
+
&& newpoints[l + 1] != newpoints[l - ps + 1]) {
|
165
|
+
for (m = 0; m < ps; ++m)
|
166
|
+
newpoints[l + ps + m] = newpoints[l + m];
|
167
|
+
newpoints[l + 1] = newpoints[l - ps + 1];
|
168
|
+
}
|
169
|
+
}
|
170
|
+
|
171
|
+
datapoints.points = newpoints;
|
172
|
+
}
|
173
|
+
|
174
|
+
plot.hooks.processDatapoints.push(computeFillBottoms);
|
175
|
+
}
|
176
|
+
|
177
|
+
$.plot.plugins.push({
|
178
|
+
init: init,
|
179
|
+
options: options,
|
180
|
+
name: 'fillbetween',
|
181
|
+
version: '1.0'
|
182
|
+
});
|
183
|
+
})(jQuery);
|