weaver 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +10 -0
- data/.rspec +2 -0
- data/.travis.yml +3 -0
- data/CODE_OF_CONDUCT.md +13 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +21 -0
- data/README.md +39 -0
- data/Rakefile +1 -0
- data/bin/console +14 -0
- data/bin/setup +7 -0
- data/bin/weaver +76 -0
- data/data/weaver/css/animate.css +2848 -0
- data/data/weaver/css/bootstrap.css +6358 -0
- data/data/weaver/css/bootstrap.min.css +5 -0
- data/data/weaver/css/patterns/congruent_pentagon.png +0 -0
- data/data/weaver/css/patterns/header-profile-skin-1.png +0 -0
- data/data/weaver/css/patterns/header-profile-skin-2.png +0 -0
- data/data/weaver/css/patterns/header-profile-skin-3.png +0 -0
- data/data/weaver/css/patterns/header-profile.png +0 -0
- data/data/weaver/css/patterns/otis_redding.png +0 -0
- data/data/weaver/css/patterns/shattered.png +0 -0
- data/data/weaver/css/patterns/triangular.png +0 -0
- data/data/weaver/css/plugins/blueimp/css/blueimp-gallery-indicator.css +71 -0
- data/data/weaver/css/plugins/blueimp/css/blueimp-gallery-video.css +87 -0
- data/data/weaver/css/plugins/blueimp/css/blueimp-gallery.css +226 -0
- data/data/weaver/css/plugins/blueimp/css/blueimp-gallery.min.css +1 -0
- data/data/weaver/css/plugins/blueimp/css/demo.css +51 -0
- data/data/weaver/css/plugins/blueimp/img/error.png +0 -0
- data/data/weaver/css/plugins/blueimp/img/error.svg +5 -0
- data/data/weaver/css/plugins/blueimp/img/loading.gif +0 -0
- data/data/weaver/css/plugins/blueimp/img/play-pause.png +0 -0
- data/data/weaver/css/plugins/blueimp/img/play-pause.svg +6 -0
- data/data/weaver/css/plugins/blueimp/img/video-play.png +0 -0
- data/data/weaver/css/plugins/blueimp/img/video-play.svg +5 -0
- data/data/weaver/css/plugins/bootstrap-rtl/bootstrap-rtl.css +1468 -0
- data/data/weaver/css/plugins/bootstrap-rtl/bootstrap-rtl.css.map +1 -0
- data/data/weaver/css/plugins/bootstrap-rtl/bootstrap-rtl.min.css +9 -0
- data/data/weaver/css/plugins/chosen/chosen-sprite.png +0 -0
- data/data/weaver/css/plugins/chosen/chosen-sprite@2x.png +0 -0
- data/data/weaver/css/plugins/chosen/chosen.css +429 -0
- data/data/weaver/css/plugins/codemirror/ambiance.css +77 -0
- data/data/weaver/css/plugins/codemirror/codemirror.css +309 -0
- data/data/weaver/css/plugins/colorpicker/bootstrap-colorpicker.min.css +9 -0
- data/data/weaver/css/plugins/cropper/cropper.min.css +9 -0
- data/data/weaver/css/plugins/dataTables/dataTables.bootstrap.css +233 -0
- data/data/weaver/css/plugins/dataTables/dataTables.responsive.css +93 -0
- data/data/weaver/css/plugins/dataTables/dataTables.tableTools.min.css +1 -0
- data/data/weaver/css/plugins/datapicker/datepicker3.css +789 -0
- data/data/weaver/css/plugins/dropzone/basic.css +155 -0
- data/data/weaver/css/plugins/dropzone/dropzone.css +410 -0
- data/data/weaver/css/plugins/fullcalendar/fullcalendar.css +977 -0
- data/data/weaver/css/plugins/fullcalendar/fullcalendar.print.css +202 -0
- data/data/weaver/css/plugins/iCheck/custom.css +59 -0
- data/data/weaver/css/plugins/iCheck/green.png +0 -0
- data/data/weaver/css/plugins/iCheck/green@2x.png +0 -0
- data/data/weaver/css/plugins/images/bootstrap-colorpicker/alpha-horizontal.png +0 -0
- data/data/weaver/css/plugins/images/bootstrap-colorpicker/alpha.png +0 -0
- data/data/weaver/css/plugins/images/bootstrap-colorpicker/hue-horizontal.png +0 -0
- data/data/weaver/css/plugins/images/bootstrap-colorpicker/hue.png +0 -0
- data/data/weaver/css/plugins/images/bootstrap-colorpicker/saturation.png +0 -0
- data/data/weaver/css/plugins/images/sort.png +0 -0
- data/data/weaver/css/plugins/images/sort_asc.png +0 -0
- data/data/weaver/css/plugins/images/sort_desc.png +0 -0
- data/data/weaver/css/plugins/images/sprite-skin-flat.png +0 -0
- data/data/weaver/css/plugins/images/sprite-skin-flat2.png +0 -0
- data/data/weaver/css/plugins/images/sprite-skin-nice.png +0 -0
- data/data/weaver/css/plugins/images/sprite-skin-simple.png +0 -0
- data/data/weaver/css/plugins/images/spritemap.png +0 -0
- data/data/weaver/css/plugins/images/spritemap@2x.png +0 -0
- data/data/weaver/css/plugins/ionRangeSlider/ion.rangeSlider.css +126 -0
- data/data/weaver/css/plugins/ionRangeSlider/ion.rangeSlider.skinFlat.css +89 -0
- data/data/weaver/css/plugins/ionRangeSlider/ion.rangeSlider.skinNice.css +85 -0
- data/data/weaver/css/plugins/ionRangeSlider/ion.rangeSlider.skinSimple.css +85 -0
- data/data/weaver/css/plugins/jQueryUI/images/animated-overlay.gif +0 -0
- data/data/weaver/css/plugins/jQueryUI/images/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
- data/data/weaver/css/plugins/jQueryUI/images/ui-bg_flat_75_ffffff_40x100.png +0 -0
- data/data/weaver/css/plugins/jQueryUI/images/ui-bg_glass_55_fbf9ee_1x400.png +0 -0
- data/data/weaver/css/plugins/jQueryUI/images/ui-bg_glass_65_ffffff_1x400.png +0 -0
- data/data/weaver/css/plugins/jQueryUI/images/ui-bg_glass_75_dadada_1x400.png +0 -0
- data/data/weaver/css/plugins/jQueryUI/images/ui-bg_glass_75_e6e6e6_1x400.png +0 -0
- data/data/weaver/css/plugins/jQueryUI/images/ui-bg_glass_95_fef1ec_1x400.png +0 -0
- data/data/weaver/css/plugins/jQueryUI/images/ui-bg_highlight-soft_75_cccccc_1x100.png +0 -0
- data/data/weaver/css/plugins/jQueryUI/images/ui-icons_222222_256x240.png +0 -0
- data/data/weaver/css/plugins/jQueryUI/images/ui-icons_2e83ff_256x240.png +0 -0
- data/data/weaver/css/plugins/jQueryUI/images/ui-icons_454545_256x240.png +0 -0
- data/data/weaver/css/plugins/jQueryUI/images/ui-icons_888888_256x240.png +0 -0
- data/data/weaver/css/plugins/jQueryUI/images/ui-icons_cd0a0a_256x240.png +0 -0
- data/data/weaver/css/plugins/jQueryUI/jquery-ui-1.10.4.custom.min.css +7 -0
- data/data/weaver/css/plugins/jasny/jasny-bootstrap.min.css +7 -0
- data/data/weaver/css/plugins/jqGrid/ui.jqgrid.css +171 -0
- data/data/weaver/css/plugins/jsTree/32px.png +0 -0
- data/data/weaver/css/plugins/jsTree/39px.png +0 -0
- data/data/weaver/css/plugins/jsTree/40px.png +0 -0
- data/data/weaver/css/plugins/jsTree/style.css +1050 -0
- data/data/weaver/css/plugins/jsTree/style.min.css +1 -0
- data/data/weaver/css/plugins/jsTree/throbber.gif +0 -0
- data/data/weaver/css/plugins/morris/morris-0.4.3.min.css +2 -0
- data/data/weaver/css/plugins/nouslider/jquery.nouislider.css +165 -0
- data/data/weaver/css/plugins/social-buttons/social-buttons.css +68 -0
- data/data/weaver/css/plugins/steps/jquery.steps.css +380 -0
- data/data/weaver/css/plugins/summernote/summernote-bs3.css +5970 -0
- data/data/weaver/css/plugins/summernote/summernote.css +446 -0
- data/data/weaver/css/plugins/switchery/switchery.css +32 -0
- data/data/weaver/css/plugins/toastr/toastr.min.css +222 -0
- data/data/weaver/css/style.css +5031 -0
- data/data/weaver/css/style.min.css +1 -0
- data/data/weaver/font-awesome/css/font-awesome.css +1801 -0
- data/data/weaver/font-awesome/css/font-awesome.min.css +4 -0
- data/data/weaver/font-awesome/fonts/FontAwesome.otf +0 -0
- data/data/weaver/font-awesome/fonts/fontawesome-webfont.eot +0 -0
- data/data/weaver/font-awesome/fonts/fontawesome-webfont.svg +565 -0
- data/data/weaver/font-awesome/fonts/fontawesome-webfont.ttf +0 -0
- data/data/weaver/font-awesome/fonts/fontawesome-webfont.woff +0 -0
- data/data/weaver/font-awesome/fonts/fontawesome-webfont.woff2 +0 -0
- data/data/weaver/font-awesome/less/animated.less +34 -0
- data/data/weaver/font-awesome/less/bordered-pulled.less +16 -0
- data/data/weaver/font-awesome/less/core.less +13 -0
- data/data/weaver/font-awesome/less/fixed-width.less +6 -0
- data/data/weaver/font-awesome/less/font-awesome.less +17 -0
- data/data/weaver/font-awesome/less/icons.less +596 -0
- data/data/weaver/font-awesome/less/larger.less +13 -0
- data/data/weaver/font-awesome/less/list.less +19 -0
- data/data/weaver/font-awesome/less/mixins.less +27 -0
- data/data/weaver/font-awesome/less/path.less +15 -0
- data/data/weaver/font-awesome/less/rotated-flipped.less +20 -0
- data/data/weaver/font-awesome/less/stacked.less +20 -0
- data/data/weaver/font-awesome/less/variables.less +606 -0
- data/data/weaver/font-awesome/scss/_animated.scss +34 -0
- data/data/weaver/font-awesome/scss/_bordered-pulled.scss +16 -0
- data/data/weaver/font-awesome/scss/_core.scss +13 -0
- data/data/weaver/font-awesome/scss/_fixed-width.scss +6 -0
- data/data/weaver/font-awesome/scss/_icons.scss +596 -0
- data/data/weaver/font-awesome/scss/_larger.scss +13 -0
- data/data/weaver/font-awesome/scss/_list.scss +19 -0
- data/data/weaver/font-awesome/scss/_mixins.scss +27 -0
- data/data/weaver/font-awesome/scss/_path.scss +15 -0
- data/data/weaver/font-awesome/scss/_rotated-flipped.scss +20 -0
- data/data/weaver/font-awesome/scss/_stacked.scss +20 -0
- data/data/weaver/font-awesome/scss/_variables.scss +606 -0
- data/data/weaver/font-awesome/scss/font-awesome.scss +17 -0
- data/data/weaver/fonts/OpenSans/OpenSans-Bold.ttf +0 -0
- data/data/weaver/fonts/OpenSans/OpenSans-BoldItalic.ttf +0 -0
- data/data/weaver/fonts/OpenSans/OpenSans-ExtraBold.ttf +0 -0
- data/data/weaver/fonts/OpenSans/OpenSans-ExtraBoldItalic.ttf +0 -0
- data/data/weaver/fonts/OpenSans/OpenSans-Italic.ttf +0 -0
- data/data/weaver/fonts/OpenSans/OpenSans-Light.ttf +0 -0
- data/data/weaver/fonts/OpenSans/OpenSans-LightItalic.ttf +0 -0
- data/data/weaver/fonts/OpenSans/OpenSans-Regular.ttf +0 -0
- data/data/weaver/fonts/OpenSans/OpenSans-Semibold.ttf +0 -0
- data/data/weaver/fonts/OpenSans/OpenSans-SemiboldItalic.ttf +0 -0
- data/data/weaver/fonts/glyphicons-halflings-regular.eot +0 -0
- data/data/weaver/fonts/glyphicons-halflings-regular.svg +229 -0
- data/data/weaver/fonts/glyphicons-halflings-regular.ttf +0 -0
- data/data/weaver/fonts/glyphicons-halflings-regular.woff +0 -0
- data/data/weaver/js/bootstrap.js +2276 -0
- data/data/weaver/js/bootstrap.min.js +7 -0
- data/data/weaver/js/demo/chartjs-demo.js +217 -0
- data/data/weaver/js/demo/dashboard-demo.js +117 -0
- data/data/weaver/js/demo/flot-demo.js +308 -0
- data/data/weaver/js/demo/flot-demo2.js +377 -0
- data/data/weaver/js/demo/morris-demo.js +89 -0
- data/data/weaver/js/demo/peity-demo.js +33 -0
- data/data/weaver/js/demo/rickshaw-demo.js +103 -0
- data/data/weaver/js/demo/sparkline-demo.js +51 -0
- data/data/weaver/js/inspinia.js +149 -0
- data/data/weaver/js/jquery-2.1.1.js +4 -0
- data/data/weaver/js/jquery-ui-1.10.4.min.js +7 -0
- data/data/weaver/js/jquery-ui.custom.min.js +16 -0
- data/data/weaver/js/plugins/blueimp/jquery.blueimp-gallery.min.js +1 -0
- data/data/weaver/js/plugins/chartJs/Chart.min.js +11 -0
- data/data/weaver/js/plugins/chosen/chosen.jquery.js +1211 -0
- data/data/weaver/js/plugins/codemirror/codemirror.js +7830 -0
- data/data/weaver/js/plugins/codemirror/mode/apl/apl.js +175 -0
- data/data/weaver/js/plugins/codemirror/mode/apl/index.html +72 -0
- data/data/weaver/js/plugins/codemirror/mode/asterisk/asterisk.js +198 -0
- data/data/weaver/js/plugins/codemirror/mode/asterisk/index.html +154 -0
- data/data/weaver/js/plugins/codemirror/mode/clike/clike.js +474 -0
- data/data/weaver/js/plugins/codemirror/mode/clike/index.html +225 -0
- data/data/weaver/js/plugins/codemirror/mode/clike/scala.html +767 -0
- data/data/weaver/js/plugins/codemirror/mode/clojure/clojure.js +243 -0
- data/data/weaver/js/plugins/codemirror/mode/clojure/index.html +88 -0
- data/data/weaver/js/plugins/codemirror/mode/cobol/cobol.js +255 -0
- data/data/weaver/js/plugins/codemirror/mode/cobol/index.html +210 -0
- data/data/weaver/js/plugins/codemirror/mode/coffeescript/coffeescript.js +369 -0
- data/data/weaver/js/plugins/codemirror/mode/coffeescript/index.html +740 -0
- data/data/weaver/js/plugins/codemirror/mode/commonlisp/commonlisp.js +120 -0
- data/data/weaver/js/plugins/codemirror/mode/commonlisp/index.html +177 -0
- data/data/weaver/js/plugins/codemirror/mode/css/css.js +717 -0
- data/data/weaver/js/plugins/codemirror/mode/css/index.html +70 -0
- data/data/weaver/js/plugins/codemirror/mode/css/less.html +152 -0
- data/data/weaver/js/plugins/codemirror/mode/css/less_test.js +51 -0
- data/data/weaver/js/plugins/codemirror/mode/css/scss.html +157 -0
- data/data/weaver/js/plugins/codemirror/mode/css/scss_test.js +110 -0
- data/data/weaver/js/plugins/codemirror/mode/css/test.js +135 -0
- data/data/weaver/js/plugins/codemirror/mode/cypher/cypher.js +146 -0
- data/data/weaver/js/plugins/codemirror/mode/cypher/index.html +63 -0
- data/data/weaver/js/plugins/codemirror/mode/d/d.js +218 -0
- data/data/weaver/js/plugins/codemirror/mode/d/index.html +273 -0
- data/data/weaver/js/plugins/codemirror/mode/diff/diff.js +47 -0
- data/data/weaver/js/plugins/codemirror/mode/diff/index.html +117 -0
- data/data/weaver/js/plugins/codemirror/mode/django/django.js +67 -0
- data/data/weaver/js/plugins/codemirror/mode/django/index.html +63 -0
- data/data/weaver/js/plugins/codemirror/mode/dtd/dtd.js +142 -0
- data/data/weaver/js/plugins/codemirror/mode/dtd/index.html +89 -0
- data/data/weaver/js/plugins/codemirror/mode/dylan/dylan.js +299 -0
- data/data/weaver/js/plugins/codemirror/mode/dylan/index.html +407 -0
- data/data/weaver/js/plugins/codemirror/mode/ecl/ecl.js +207 -0
- data/data/weaver/js/plugins/codemirror/mode/ecl/index.html +52 -0
- data/data/weaver/js/plugins/codemirror/mode/eiffel/eiffel.js +162 -0
- data/data/weaver/js/plugins/codemirror/mode/eiffel/index.html +429 -0
- data/data/weaver/js/plugins/codemirror/mode/erlang/erlang.js +622 -0
- data/data/weaver/js/plugins/codemirror/mode/erlang/index.html +76 -0
- data/data/weaver/js/plugins/codemirror/mode/fortran/fortran.js +188 -0
- data/data/weaver/js/plugins/codemirror/mode/fortran/index.html +81 -0
- data/data/weaver/js/plugins/codemirror/mode/gas/gas.js +345 -0
- data/data/weaver/js/plugins/codemirror/mode/gas/index.html +68 -0
- data/data/weaver/js/plugins/codemirror/mode/gfm/gfm.js +122 -0
- data/data/weaver/js/plugins/codemirror/mode/gfm/index.html +82 -0
- data/data/weaver/js/plugins/codemirror/mode/gfm/test.js +164 -0
- data/data/weaver/js/plugins/codemirror/mode/gherkin/gherkin.js +178 -0
- data/data/weaver/js/plugins/codemirror/mode/gherkin/index.html +48 -0
- data/data/weaver/js/plugins/codemirror/mode/go/go.js +184 -0
- data/data/weaver/js/plugins/codemirror/mode/go/index.html +85 -0
- data/data/weaver/js/plugins/codemirror/mode/groovy/groovy.js +226 -0
- data/data/weaver/js/plugins/codemirror/mode/groovy/index.html +84 -0
- data/data/weaver/js/plugins/codemirror/mode/haml/haml.js +159 -0
- data/data/weaver/js/plugins/codemirror/mode/haml/index.html +79 -0
- data/data/weaver/js/plugins/codemirror/mode/haml/test.js +97 -0
- data/data/weaver/js/plugins/codemirror/mode/haskell/haskell.js +267 -0
- data/data/weaver/js/plugins/codemirror/mode/haskell/index.html +73 -0
- data/data/weaver/js/plugins/codemirror/mode/haxe/haxe.js +518 -0
- data/data/weaver/js/plugins/codemirror/mode/haxe/index.html +124 -0
- data/data/weaver/js/plugins/codemirror/mode/htmlembedded/htmlembedded.js +86 -0
- data/data/weaver/js/plugins/codemirror/mode/htmlembedded/index.html +58 -0
- data/data/weaver/js/plugins/codemirror/mode/htmlmixed/htmlmixed.js +121 -0
- data/data/weaver/js/plugins/codemirror/mode/htmlmixed/index.html +85 -0
- data/data/weaver/js/plugins/codemirror/mode/http/http.js +113 -0
- data/data/weaver/js/plugins/codemirror/mode/http/index.html +45 -0
- data/data/weaver/js/plugins/codemirror/mode/index.html +125 -0
- data/data/weaver/js/plugins/codemirror/mode/jade/index.html +70 -0
- data/data/weaver/js/plugins/codemirror/mode/jade/jade.js +590 -0
- data/data/weaver/js/plugins/codemirror/mode/javascript/index.html +114 -0
- data/data/weaver/js/plugins/codemirror/mode/javascript/javascript.js +684 -0
- data/data/weaver/js/plugins/codemirror/mode/javascript/json-ld.html +72 -0
- data/data/weaver/js/plugins/codemirror/mode/javascript/test.js +194 -0
- data/data/weaver/js/plugins/codemirror/mode/javascript/typescript.html +61 -0
- data/data/weaver/js/plugins/codemirror/mode/jinja2/index.html +54 -0
- data/data/weaver/js/plugins/codemirror/mode/jinja2/jinja2.js +142 -0
- data/data/weaver/js/plugins/codemirror/mode/julia/index.html +195 -0
- data/data/weaver/js/plugins/codemirror/mode/julia/julia.js +301 -0
- data/data/weaver/js/plugins/codemirror/mode/kotlin/index.html +89 -0
- data/data/weaver/js/plugins/codemirror/mode/kotlin/kotlin.js +280 -0
- data/data/weaver/js/plugins/codemirror/mode/livescript/index.html +459 -0
- data/data/weaver/js/plugins/codemirror/mode/livescript/livescript.js +280 -0
- data/data/weaver/js/plugins/codemirror/mode/lua/index.html +85 -0
- data/data/weaver/js/plugins/codemirror/mode/lua/lua.js +159 -0
- data/data/weaver/js/plugins/codemirror/mode/markdown/index.html +359 -0
- data/data/weaver/js/plugins/codemirror/mode/markdown/markdown.js +758 -0
- data/data/weaver/js/plugins/codemirror/mode/markdown/test.js +754 -0
- data/data/weaver/js/plugins/codemirror/mode/meta.js +144 -0
- data/data/weaver/js/plugins/codemirror/mode/mirc/index.html +160 -0
- data/data/weaver/js/plugins/codemirror/mode/mirc/mirc.js +193 -0
- data/data/weaver/js/plugins/codemirror/mode/mllike/index.html +179 -0
- data/data/weaver/js/plugins/codemirror/mode/mllike/mllike.js +205 -0
- data/data/weaver/js/plugins/codemirror/mode/modelica/index.html +67 -0
- data/data/weaver/js/plugins/codemirror/mode/modelica/modelica.js +245 -0
- data/data/weaver/js/plugins/codemirror/mode/nginx/index.html +181 -0
- data/data/weaver/js/plugins/codemirror/mode/nginx/nginx.js +178 -0
- data/data/weaver/js/plugins/codemirror/mode/ntriples/index.html +45 -0
- data/data/weaver/js/plugins/codemirror/mode/ntriples/ntriples.js +186 -0
- data/data/weaver/js/plugins/codemirror/mode/octave/index.html +83 -0
- data/data/weaver/js/plugins/codemirror/mode/octave/octave.js +135 -0
- data/data/weaver/js/plugins/codemirror/mode/pascal/index.html +61 -0
- data/data/weaver/js/plugins/codemirror/mode/pascal/pascal.js +109 -0
- data/data/weaver/js/plugins/codemirror/mode/pegjs/index.html +66 -0
- data/data/weaver/js/plugins/codemirror/mode/pegjs/pegjs.js +114 -0
- data/data/weaver/js/plugins/codemirror/mode/perl/index.html +75 -0
- data/data/weaver/js/plugins/codemirror/mode/perl/perl.js +832 -0
- data/data/weaver/js/plugins/codemirror/mode/php/index.html +64 -0
- data/data/weaver/js/plugins/codemirror/mode/php/php.js +226 -0
- data/data/weaver/js/plugins/codemirror/mode/php/test.js +154 -0
- data/data/weaver/js/plugins/codemirror/mode/pig/index.html +55 -0
- data/data/weaver/js/plugins/codemirror/mode/pig/pig.js +188 -0
- data/data/weaver/js/plugins/codemirror/mode/properties/index.html +53 -0
- data/data/weaver/js/plugins/codemirror/mode/properties/properties.js +78 -0
- data/data/weaver/js/plugins/codemirror/mode/puppet/index.html +121 -0
- data/data/weaver/js/plugins/codemirror/mode/puppet/puppet.js +220 -0
- data/data/weaver/js/plugins/codemirror/mode/python/index.html +198 -0
- data/data/weaver/js/plugins/codemirror/mode/python/python.js +359 -0
- data/data/weaver/js/plugins/codemirror/mode/q/index.html +144 -0
- data/data/weaver/js/plugins/codemirror/mode/q/q.js +139 -0
- data/data/weaver/js/plugins/codemirror/mode/r/index.html +85 -0
- data/data/weaver/js/plugins/codemirror/mode/r/r.js +162 -0
- data/data/weaver/js/plugins/codemirror/mode/rpm/changes/index.html +66 -0
- data/data/weaver/js/plugins/codemirror/mode/rpm/index.html +149 -0
- data/data/weaver/js/plugins/codemirror/mode/rpm/rpm.js +101 -0
- data/data/weaver/js/plugins/codemirror/mode/rst/index.html +535 -0
- data/data/weaver/js/plugins/codemirror/mode/rst/rst.js +557 -0
- data/data/weaver/js/plugins/codemirror/mode/ruby/index.html +184 -0
- data/data/weaver/js/plugins/codemirror/mode/ruby/ruby.js +285 -0
- data/data/weaver/js/plugins/codemirror/mode/ruby/test.js +14 -0
- data/data/weaver/js/plugins/codemirror/mode/rust/index.html +60 -0
- data/data/weaver/js/plugins/codemirror/mode/rust/rust.js +451 -0
- data/data/weaver/js/plugins/codemirror/mode/sass/index.html +66 -0
- data/data/weaver/js/plugins/codemirror/mode/sass/sass.js +327 -0
- data/data/weaver/js/plugins/codemirror/mode/scheme/index.html +77 -0
- data/data/weaver/js/plugins/codemirror/mode/scheme/scheme.js +248 -0
- data/data/weaver/js/plugins/codemirror/mode/shell/index.html +66 -0
- data/data/weaver/js/plugins/codemirror/mode/shell/shell.js +138 -0
- data/data/weaver/js/plugins/codemirror/mode/shell/test.js +58 -0
- data/data/weaver/js/plugins/codemirror/mode/sieve/index.html +93 -0
- data/data/weaver/js/plugins/codemirror/mode/sieve/sieve.js +193 -0
- data/data/weaver/js/plugins/codemirror/mode/slim/index.html +96 -0
- data/data/weaver/js/plugins/codemirror/mode/slim/slim.js +575 -0
- data/data/weaver/js/plugins/codemirror/mode/slim/test.js +96 -0
- data/data/weaver/js/plugins/codemirror/mode/smalltalk/index.html +68 -0
- data/data/weaver/js/plugins/codemirror/mode/smalltalk/smalltalk.js +168 -0
- data/data/weaver/js/plugins/codemirror/mode/smarty/index.html +136 -0
- data/data/weaver/js/plugins/codemirror/mode/smarty/smarty.js +221 -0
- data/data/weaver/js/plugins/codemirror/mode/smartymixed/index.html +114 -0
- data/data/weaver/js/plugins/codemirror/mode/smartymixed/smartymixed.js +197 -0
- data/data/weaver/js/plugins/codemirror/mode/solr/index.html +57 -0
- data/data/weaver/js/plugins/codemirror/mode/solr/solr.js +104 -0
- data/data/weaver/js/plugins/codemirror/mode/sparql/index.html +53 -0
- data/data/weaver/js/plugins/codemirror/mode/sparql/sparql.js +160 -0
- data/data/weaver/js/plugins/codemirror/mode/sql/index.html +84 -0
- data/data/weaver/js/plugins/codemirror/mode/sql/sql.js +393 -0
- data/data/weaver/js/plugins/codemirror/mode/stex/index.html +110 -0
- data/data/weaver/js/plugins/codemirror/mode/stex/stex.js +262 -0
- data/data/weaver/js/plugins/codemirror/mode/stex/test.js +123 -0
- data/data/weaver/js/plugins/codemirror/mode/tcl/index.html +142 -0
- data/data/weaver/js/plugins/codemirror/mode/tcl/tcl.js +147 -0
- data/data/weaver/js/plugins/codemirror/mode/textile/index.html +191 -0
- data/data/weaver/js/plugins/codemirror/mode/textile/test.js +406 -0
- data/data/weaver/js/plugins/codemirror/mode/textile/textile.js +553 -0
- data/data/weaver/js/plugins/codemirror/mode/tiddlywiki/index.html +154 -0
- data/data/weaver/js/plugins/codemirror/mode/tiddlywiki/tiddlywiki.css +14 -0
- data/data/weaver/js/plugins/codemirror/mode/tiddlywiki/tiddlywiki.js +369 -0
- data/data/weaver/js/plugins/codemirror/mode/tiki/index.html +95 -0
- data/data/weaver/js/plugins/codemirror/mode/tiki/tiki.css +26 -0
- data/data/weaver/js/plugins/codemirror/mode/tiki/tiki.js +323 -0
- data/data/weaver/js/plugins/codemirror/mode/toml/index.html +73 -0
- data/data/weaver/js/plugins/codemirror/mode/toml/toml.js +88 -0
- data/data/weaver/js/plugins/codemirror/mode/tornado/index.html +63 -0
- data/data/weaver/js/plugins/codemirror/mode/tornado/tornado.js +68 -0
- data/data/weaver/js/plugins/codemirror/mode/turtle/index.html +50 -0
- data/data/weaver/js/plugins/codemirror/mode/turtle/turtle.js +160 -0
- data/data/weaver/js/plugins/codemirror/mode/vb/index.html +102 -0
- data/data/weaver/js/plugins/codemirror/mode/vb/vb.js +274 -0
- data/data/weaver/js/plugins/codemirror/mode/vbscript/index.html +55 -0
- data/data/weaver/js/plugins/codemirror/mode/vbscript/vbscript.js +350 -0
- data/data/weaver/js/plugins/codemirror/mode/velocity/index.html +118 -0
- data/data/weaver/js/plugins/codemirror/mode/velocity/velocity.js +201 -0
- data/data/weaver/js/plugins/codemirror/mode/verilog/index.html +120 -0
- data/data/weaver/js/plugins/codemirror/mode/verilog/test.js +273 -0
- data/data/weaver/js/plugins/codemirror/mode/verilog/verilog.js +364 -0
- data/data/weaver/js/plugins/codemirror/mode/xml/index.html +57 -0
- data/data/weaver/js/plugins/codemirror/mode/xml/test.js +51 -0
- data/data/weaver/js/plugins/codemirror/mode/xml/xml.js +384 -0
- data/data/weaver/js/plugins/codemirror/mode/xquery/index.html +210 -0
- data/data/weaver/js/plugins/codemirror/mode/xquery/test.js +67 -0
- data/data/weaver/js/plugins/codemirror/mode/xquery/xquery.js +447 -0
- data/data/weaver/js/plugins/codemirror/mode/yaml/index.html +80 -0
- data/data/weaver/js/plugins/codemirror/mode/yaml/yaml.js +112 -0
- data/data/weaver/js/plugins/codemirror/mode/z80/index.html +52 -0
- data/data/weaver/js/plugins/codemirror/mode/z80/z80.js +100 -0
- data/data/weaver/js/plugins/colorpicker/bootstrap-colorpicker.min.js +1 -0
- data/data/weaver/js/plugins/cropper/cropper.min.js +9 -0
- data/data/weaver/js/plugins/dataTables/dataTables.bootstrap.js +245 -0
- data/data/weaver/js/plugins/dataTables/dataTables.responsive.js +801 -0
- data/data/weaver/js/plugins/dataTables/dataTables.tableTools.min.js +69 -0
- data/data/weaver/js/plugins/dataTables/jquery.dataTables.js +14840 -0
- data/data/weaver/js/plugins/dataTables/swf/copy_csv_xls.swf +0 -0
- data/data/weaver/js/plugins/dataTables/swf/copy_csv_xls_pdf.swf +0 -0
- data/data/weaver/js/plugins/datapicker/bootstrap-datepicker.js +1671 -0
- data/data/weaver/js/plugins/dropzone/dropzone.js +1841 -0
- data/data/weaver/js/plugins/easypiechart/easypiechart.js +350 -0
- data/data/weaver/js/plugins/easypiechart/jquery.easypiechart.js +359 -0
- data/data/weaver/js/plugins/flot/curvedLines.js +315 -0
- data/data/weaver/js/plugins/flot/excanvas.min.js +1 -0
- data/data/weaver/js/plugins/flot/jquery.flot.js +3168 -0
- data/data/weaver/js/plugins/flot/jquery.flot.pie.js +820 -0
- data/data/weaver/js/plugins/flot/jquery.flot.resize.js +59 -0
- data/data/weaver/js/plugins/flot/jquery.flot.spline.js +212 -0
- data/data/weaver/js/plugins/flot/jquery.flot.symbol.js +71 -0
- data/data/weaver/js/plugins/flot/jquery.flot.time.js +432 -0
- data/data/weaver/js/plugins/flot/jquery.flot.tooltip.min.js +12 -0
- data/data/weaver/js/plugins/fullcalendar/fullcalendar.min.js +8 -0
- data/data/weaver/js/plugins/fullcalendar/moment.min.js +7 -0
- data/data/weaver/js/plugins/gritter/images/gritter-light.png +0 -0
- data/data/weaver/js/plugins/gritter/images/gritter-long.png +0 -0
- data/data/weaver/js/plugins/gritter/images/gritter.png +0 -0
- data/data/weaver/js/plugins/gritter/images/ie-spacer.gif +0 -0
- data/data/weaver/js/plugins/gritter/jquery.gritter.css +137 -0
- data/data/weaver/js/plugins/gritter/jquery.gritter.min.js +1 -0
- data/data/weaver/js/plugins/iCheck/icheck.min.js +11 -0
- data/data/weaver/js/plugins/ionRangeSlider/ion.rangeSlider.min.js +26 -0
- data/data/weaver/js/plugins/jasny/jasny-bootstrap.min.js +6 -0
- data/data/weaver/js/plugins/jeditable/jquery.jeditable.js +543 -0
- data/data/weaver/js/plugins/jqGrid/i18n/grid.locale-ar.js +128 -0
- data/data/weaver/js/plugins/jqGrid/i18n/grid.locale-bg.js +134 -0
- data/data/weaver/js/plugins/jqGrid/i18n/grid.locale-bg1251.js +132 -0
- data/data/weaver/js/plugins/jqGrid/i18n/grid.locale-cat.js +130 -0
- data/data/weaver/js/plugins/jqGrid/i18n/grid.locale-cn.js +169 -0
- data/data/weaver/js/plugins/jqGrid/i18n/grid.locale-cs.js +130 -0
- data/data/weaver/js/plugins/jqGrid/i18n/grid.locale-da.js +130 -0
- data/data/weaver/js/plugins/jqGrid/i18n/grid.locale-de.js +173 -0
- data/data/weaver/js/plugins/jqGrid/i18n/grid.locale-dk.js +129 -0
- data/data/weaver/js/plugins/jqGrid/i18n/grid.locale-el.js +128 -0
- data/data/weaver/js/plugins/jqGrid/i18n/grid.locale-en.js +170 -0
- data/data/weaver/js/plugins/jqGrid/i18n/grid.locale-es.js +130 -0
- data/data/weaver/js/plugins/jqGrid/i18n/grid.locale-fa.js +147 -0
- data/data/weaver/js/plugins/jqGrid/i18n/grid.locale-fi.js +131 -0
- data/data/weaver/js/plugins/jqGrid/i18n/grid.locale-fr.js +128 -0
- data/data/weaver/js/plugins/jqGrid/i18n/grid.locale-gl.js +128 -0
- data/data/weaver/js/plugins/jqGrid/i18n/grid.locale-he.js +129 -0
- data/data/weaver/js/plugins/jqGrid/i18n/grid.locale-hr.js +164 -0
- data/data/weaver/js/plugins/jqGrid/i18n/grid.locale-hr1250.js +164 -0
- data/data/weaver/js/plugins/jqGrid/i18n/grid.locale-hu.js +131 -0
- data/data/weaver/js/plugins/jqGrid/i18n/grid.locale-id.js +170 -0
- data/data/weaver/js/plugins/jqGrid/i18n/grid.locale-is.js +128 -0
- data/data/weaver/js/plugins/jqGrid/i18n/grid.locale-it.js +1 -0
- data/data/weaver/js/plugins/jqGrid/i18n/grid.locale-ja.js +158 -0
- data/data/weaver/js/plugins/jqGrid/i18n/grid.locale-kr.js +130 -0
- data/data/weaver/js/plugins/jqGrid/i18n/grid.locale-lt.js +130 -0
- data/data/weaver/js/plugins/jqGrid/i18n/grid.locale-mne.js +130 -0
- data/data/weaver/js/plugins/jqGrid/i18n/grid.locale-nl.js +150 -0
- data/data/weaver/js/plugins/jqGrid/i18n/grid.locale-no.js +1 -0
- data/data/weaver/js/plugins/jqGrid/i18n/grid.locale-pl.js +134 -0
- data/data/weaver/js/plugins/jqGrid/i18n/grid.locale-pt-br.js +137 -0
- data/data/weaver/js/plugins/jqGrid/i18n/grid.locale-pt.js +127 -0
- data/data/weaver/js/plugins/jqGrid/i18n/grid.locale-ro.js +141 -0
- data/data/weaver/js/plugins/jqGrid/i18n/grid.locale-ru.js +129 -0
- data/data/weaver/js/plugins/jqGrid/i18n/grid.locale-sk.js +129 -0
- data/data/weaver/js/plugins/jqGrid/i18n/grid.locale-sr-latin.js +130 -0
- data/data/weaver/js/plugins/jqGrid/i18n/grid.locale-sr.js +130 -0
- data/data/weaver/js/plugins/jqGrid/i18n/grid.locale-sv.js +129 -0
- data/data/weaver/js/plugins/jqGrid/i18n/grid.locale-th.js +130 -0
- data/data/weaver/js/plugins/jqGrid/i18n/grid.locale-tr.js +128 -0
- data/data/weaver/js/plugins/jqGrid/i18n/grid.locale-tw.js +131 -0
- data/data/weaver/js/plugins/jqGrid/i18n/grid.locale-ua.js +129 -0
- data/data/weaver/js/plugins/jqGrid/i18n/grid.locale-vi.js +170 -0
- data/data/weaver/js/plugins/jqGrid/jquery.jqGrid.min.js +545 -0
- data/data/weaver/js/plugins/jquery-ui/i18n/jquery-ui-i18n.min.js +6 -0
- data/data/weaver/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-af.min.js +4 -0
- data/data/weaver/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-ar-DZ.min.js +4 -0
- data/data/weaver/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-ar.min.js +4 -0
- data/data/weaver/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-az.min.js +4 -0
- data/data/weaver/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-be.min.js +4 -0
- data/data/weaver/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-bg.min.js +4 -0
- data/data/weaver/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-bs.min.js +4 -0
- data/data/weaver/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-ca.min.js +4 -0
- data/data/weaver/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-cs.min.js +4 -0
- data/data/weaver/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-cy-GB.min.js +4 -0
- data/data/weaver/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-da.min.js +4 -0
- data/data/weaver/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-de.min.js +4 -0
- data/data/weaver/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-el.min.js +4 -0
- data/data/weaver/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-en-AU.min.js +4 -0
- data/data/weaver/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-en-GB.min.js +4 -0
- data/data/weaver/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-en-NZ.min.js +4 -0
- data/data/weaver/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-eo.min.js +4 -0
- data/data/weaver/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-es.min.js +4 -0
- data/data/weaver/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-et.min.js +4 -0
- data/data/weaver/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-eu.min.js +4 -0
- data/data/weaver/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-fa.min.js +4 -0
- data/data/weaver/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-fi.min.js +4 -0
- data/data/weaver/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-fo.min.js +4 -0
- data/data/weaver/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-fr-CA.min.js +4 -0
- data/data/weaver/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-fr-CH.min.js +4 -0
- data/data/weaver/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-fr.min.js +4 -0
- data/data/weaver/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-gl.min.js +4 -0
- data/data/weaver/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-he.min.js +4 -0
- data/data/weaver/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-hi.min.js +4 -0
- data/data/weaver/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-hr.min.js +4 -0
- data/data/weaver/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-hu.min.js +4 -0
- data/data/weaver/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-hy.min.js +4 -0
- data/data/weaver/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-id.min.js +4 -0
- data/data/weaver/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-is.min.js +4 -0
- data/data/weaver/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-it.min.js +4 -0
- data/data/weaver/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-ja.min.js +4 -0
- data/data/weaver/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-ka.min.js +4 -0
- data/data/weaver/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-kk.min.js +4 -0
- data/data/weaver/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-km.min.js +4 -0
- data/data/weaver/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-ko.min.js +4 -0
- data/data/weaver/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-ky.min.js +4 -0
- data/data/weaver/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-lb.min.js +4 -0
- data/data/weaver/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-lt.min.js +4 -0
- data/data/weaver/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-lv.min.js +4 -0
- data/data/weaver/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-mk.min.js +4 -0
- data/data/weaver/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-ml.min.js +4 -0
- data/data/weaver/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-ms.min.js +4 -0
- data/data/weaver/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-nb.min.js +4 -0
- data/data/weaver/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-nl-BE.min.js +4 -0
- data/data/weaver/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-nl.min.js +4 -0
- data/data/weaver/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-nn.min.js +4 -0
- data/data/weaver/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-no.min.js +4 -0
- data/data/weaver/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-pl.min.js +4 -0
- data/data/weaver/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-pt-BR.min.js +4 -0
- data/data/weaver/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-pt.min.js +4 -0
- data/data/weaver/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-rm.min.js +4 -0
- data/data/weaver/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-ro.min.js +4 -0
- data/data/weaver/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-ru.min.js +4 -0
- data/data/weaver/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-sk.min.js +4 -0
- data/data/weaver/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-sl.min.js +4 -0
- data/data/weaver/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-sq.min.js +4 -0
- data/data/weaver/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-sr-SR.min.js +4 -0
- data/data/weaver/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-sr.min.js +4 -0
- data/data/weaver/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-sv.min.js +4 -0
- data/data/weaver/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-ta.min.js +4 -0
- data/data/weaver/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-th.min.js +4 -0
- data/data/weaver/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-tj.min.js +4 -0
- data/data/weaver/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-tr.min.js +4 -0
- data/data/weaver/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-uk.min.js +4 -0
- data/data/weaver/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-vi.min.js +4 -0
- data/data/weaver/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-zh-CN.min.js +4 -0
- data/data/weaver/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-zh-HK.min.js +4 -0
- data/data/weaver/js/plugins/jquery-ui/i18n/jquery.ui.datepicker-zh-TW.min.js +4 -0
- data/data/weaver/js/plugins/jquery-ui/images/animated-overlay.gif +0 -0
- data/data/weaver/js/plugins/jquery-ui/images/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
- data/data/weaver/js/plugins/jquery-ui/images/ui-bg_flat_75_ffffff_40x100.png +0 -0
- data/data/weaver/js/plugins/jquery-ui/images/ui-bg_glass_55_fbf9ee_1x400.png +0 -0
- data/data/weaver/js/plugins/jquery-ui/images/ui-bg_glass_65_ffffff_1x400.png +0 -0
- data/data/weaver/js/plugins/jquery-ui/images/ui-bg_glass_75_dadada_1x400.png +0 -0
- data/data/weaver/js/plugins/jquery-ui/images/ui-bg_glass_75_e6e6e6_1x400.png +0 -0
- data/data/weaver/js/plugins/jquery-ui/images/ui-bg_glass_95_fef1ec_1x400.png +0 -0
- data/data/weaver/js/plugins/jquery-ui/images/ui-bg_highlight-soft_75_cccccc_1x100.png +0 -0
- data/data/weaver/js/plugins/jquery-ui/images/ui-icons_222222_256x240.png +0 -0
- data/data/weaver/js/plugins/jquery-ui/images/ui-icons_2e83ff_256x240.png +0 -0
- data/data/weaver/js/plugins/jquery-ui/images/ui-icons_454545_256x240.png +0 -0
- data/data/weaver/js/plugins/jquery-ui/images/ui-icons_888888_256x240.png +0 -0
- data/data/weaver/js/plugins/jquery-ui/images/ui-icons_cd0a0a_256x240.png +0 -0
- data/data/weaver/js/plugins/jquery-ui/jquery-ui.css +1189 -0
- data/data/weaver/js/plugins/jquery-ui/jquery-ui.js +15040 -0
- data/data/weaver/js/plugins/jquery-ui/jquery-ui.min.css +4 -0
- data/data/weaver/js/plugins/jquery-ui/jquery-ui.min.js +12 -0
- data/data/weaver/js/plugins/jsKnob/jquery.knob.js +791 -0
- data/data/weaver/js/plugins/jsTree/jstree.min.js +5 -0
- data/data/weaver/js/plugins/justified-gallery/README.md +14 -0
- data/data/weaver/js/plugins/justified-gallery/jquery.justifiedgallery.css +73 -0
- data/data/weaver/js/plugins/justified-gallery/jquery.justifiedgallery.js +258 -0
- data/data/weaver/js/plugins/justified-gallery/jquery.justifiedgallery.min.css +17 -0
- data/data/weaver/js/plugins/justified-gallery/jquery.justifiedgallery.min.js +24 -0
- data/data/weaver/js/plugins/justified-gallery/loading.gif +0 -0
- data/data/weaver/js/plugins/jvectormap/jquery-jvectormap-1.2.2.min.js +8 -0
- data/data/weaver/js/plugins/jvectormap/jquery-jvectormap-world-mill-en.js +1 -0
- data/data/weaver/js/plugins/metisMenu/jquery.metisMenu.js +120 -0
- data/data/weaver/js/plugins/morris/morris.js +1888 -0
- data/data/weaver/js/plugins/morris/raphael-2.1.0.min.js +10 -0
- data/data/weaver/js/plugins/nestable/jquery.nestable.js +484 -0
- data/data/weaver/js/plugins/nouslider/jquery.nouislider.min.js +34 -0
- data/data/weaver/js/plugins/pace/pace.min.js +2 -0
- data/data/weaver/js/plugins/peity/jquery.peity.min.js +13 -0
- data/data/weaver/js/plugins/rickshaw/rickshaw.min.js +3 -0
- data/data/weaver/js/plugins/rickshaw/vendor/d3.v3.js +5 -0
- data/data/weaver/js/plugins/slimscroll/jquery.slimscroll.js +464 -0
- data/data/weaver/js/plugins/slimscroll/jquery.slimscroll.min.js +16 -0
- data/data/weaver/js/plugins/sparkline/jquery.sparkline.min.js +5 -0
- data/data/weaver/js/plugins/staps/jquery.steps.min.js +6 -0
- data/data/weaver/js/plugins/summernote/summernote.min.js +2 -0
- data/data/weaver/js/plugins/switchery/switchery.js +1 -0
- data/data/weaver/js/plugins/toastr/toastr.min.js +2 -0
- data/data/weaver/js/plugins/validate/jquery.validate.min.js +4 -0
- data/data/weaver/js/plugins/video/responsible-video.js +21 -0
- data/lib/weaver.rb +922 -0
- data/lib/weaver/version.rb +3 -0
- data/weaver.gemspec +34 -0
- metadata +656 -0
@@ -0,0 +1,80 @@
|
|
1
|
+
<!doctype html>
|
2
|
+
|
3
|
+
<title>CodeMirror: YAML mode</title>
|
4
|
+
<meta charset="utf-8"/>
|
5
|
+
<link rel=stylesheet href="../../doc/docs.css">
|
6
|
+
|
7
|
+
<link rel="stylesheet" href="../../lib/codemirror.css">
|
8
|
+
<script src="../../lib/codemirror.js"></script>
|
9
|
+
<script src="yaml.js"></script>
|
10
|
+
<style>.CodeMirror { border-top: 1px solid #ddd; border-bottom: 1px solid #ddd; }</style>
|
11
|
+
<div id=nav>
|
12
|
+
<a href="http://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a>
|
13
|
+
|
14
|
+
<ul>
|
15
|
+
<li><a href="../../index.html">Home</a>
|
16
|
+
<li><a href="../../doc/manual.html">Manual</a>
|
17
|
+
<li><a href="https://github.com/codemirror/codemirror">Code</a>
|
18
|
+
</ul>
|
19
|
+
<ul>
|
20
|
+
<li><a href="../index.html">Language modes</a>
|
21
|
+
<li><a class=active href="#">YAML</a>
|
22
|
+
</ul>
|
23
|
+
</div>
|
24
|
+
|
25
|
+
<article>
|
26
|
+
<h2>YAML mode</h2>
|
27
|
+
<form><textarea id="code" name="code">
|
28
|
+
--- # Favorite movies
|
29
|
+
- Casablanca
|
30
|
+
- North by Northwest
|
31
|
+
- The Man Who Wasn't There
|
32
|
+
--- # Shopping list
|
33
|
+
[milk, pumpkin pie, eggs, juice]
|
34
|
+
--- # Indented Blocks, common in YAML data files, use indentation and new lines to separate the key: value pairs
|
35
|
+
name: John Smith
|
36
|
+
age: 33
|
37
|
+
--- # Inline Blocks, common in YAML data streams, use commas to separate the key: value pairs between braces
|
38
|
+
{name: John Smith, age: 33}
|
39
|
+
---
|
40
|
+
receipt: Oz-Ware Purchase Invoice
|
41
|
+
date: 2007-08-06
|
42
|
+
customer:
|
43
|
+
given: Dorothy
|
44
|
+
family: Gale
|
45
|
+
|
46
|
+
items:
|
47
|
+
- part_no: A4786
|
48
|
+
descrip: Water Bucket (Filled)
|
49
|
+
price: 1.47
|
50
|
+
quantity: 4
|
51
|
+
|
52
|
+
- part_no: E1628
|
53
|
+
descrip: High Heeled "Ruby" Slippers
|
54
|
+
size: 8
|
55
|
+
price: 100.27
|
56
|
+
quantity: 1
|
57
|
+
|
58
|
+
bill-to: &id001
|
59
|
+
street: |
|
60
|
+
123 Tornado Alley
|
61
|
+
Suite 16
|
62
|
+
city: East Centerville
|
63
|
+
state: KS
|
64
|
+
|
65
|
+
ship-to: *id001
|
66
|
+
|
67
|
+
specialDelivery: >
|
68
|
+
Follow the Yellow Brick
|
69
|
+
Road to the Emerald City.
|
70
|
+
Pay no attention to the
|
71
|
+
man behind the curtain.
|
72
|
+
...
|
73
|
+
</textarea></form>
|
74
|
+
<script>
|
75
|
+
var editor = CodeMirror.fromTextArea(document.getElementById("code"), {});
|
76
|
+
</script>
|
77
|
+
|
78
|
+
<p><strong>MIME types defined:</strong> <code>text/x-yaml</code>.</p>
|
79
|
+
|
80
|
+
</article>
|
@@ -0,0 +1,112 @@
|
|
1
|
+
// CodeMirror, copyright (c) by Marijn Haverbeke and others
|
2
|
+
// Distributed under an MIT license: http://codemirror.net/LICENSE
|
3
|
+
|
4
|
+
(function(mod) {
|
5
|
+
if (typeof exports == "object" && typeof module == "object") // CommonJS
|
6
|
+
mod(require("../../lib/codemirror"));
|
7
|
+
else if (typeof define == "function" && define.amd) // AMD
|
8
|
+
define(["../../lib/codemirror"], mod);
|
9
|
+
else // Plain browser env
|
10
|
+
mod(CodeMirror);
|
11
|
+
})(function(CodeMirror) {
|
12
|
+
"use strict";
|
13
|
+
|
14
|
+
CodeMirror.defineMode("yaml", function() {
|
15
|
+
|
16
|
+
var cons = ['true', 'false', 'on', 'off', 'yes', 'no'];
|
17
|
+
var keywordRegex = new RegExp("\\b(("+cons.join(")|(")+"))$", 'i');
|
18
|
+
|
19
|
+
return {
|
20
|
+
token: function(stream, state) {
|
21
|
+
var ch = stream.peek();
|
22
|
+
var esc = state.escaped;
|
23
|
+
state.escaped = false;
|
24
|
+
/* comments */
|
25
|
+
if (ch == "#" && (stream.pos == 0 || /\s/.test(stream.string.charAt(stream.pos - 1)))) {
|
26
|
+
stream.skipToEnd(); return "comment";
|
27
|
+
}
|
28
|
+
if (state.literal && stream.indentation() > state.keyCol) {
|
29
|
+
stream.skipToEnd(); return "string";
|
30
|
+
} else if (state.literal) { state.literal = false; }
|
31
|
+
if (stream.sol()) {
|
32
|
+
state.keyCol = 0;
|
33
|
+
state.pair = false;
|
34
|
+
state.pairStart = false;
|
35
|
+
/* document start */
|
36
|
+
if(stream.match(/---/)) { return "def"; }
|
37
|
+
/* document end */
|
38
|
+
if (stream.match(/\.\.\./)) { return "def"; }
|
39
|
+
/* array list item */
|
40
|
+
if (stream.match(/\s*-\s+/)) { return 'meta'; }
|
41
|
+
}
|
42
|
+
/* inline pairs/lists */
|
43
|
+
if (stream.match(/^(\{|\}|\[|\])/)) {
|
44
|
+
if (ch == '{')
|
45
|
+
state.inlinePairs++;
|
46
|
+
else if (ch == '}')
|
47
|
+
state.inlinePairs--;
|
48
|
+
else if (ch == '[')
|
49
|
+
state.inlineList++;
|
50
|
+
else
|
51
|
+
state.inlineList--;
|
52
|
+
return 'meta';
|
53
|
+
}
|
54
|
+
|
55
|
+
/* list seperator */
|
56
|
+
if (state.inlineList > 0 && !esc && ch == ',') {
|
57
|
+
stream.next();
|
58
|
+
return 'meta';
|
59
|
+
}
|
60
|
+
/* pairs seperator */
|
61
|
+
if (state.inlinePairs > 0 && !esc && ch == ',') {
|
62
|
+
state.keyCol = 0;
|
63
|
+
state.pair = false;
|
64
|
+
state.pairStart = false;
|
65
|
+
stream.next();
|
66
|
+
return 'meta';
|
67
|
+
}
|
68
|
+
|
69
|
+
/* start of value of a pair */
|
70
|
+
if (state.pairStart) {
|
71
|
+
/* block literals */
|
72
|
+
if (stream.match(/^\s*(\||\>)\s*/)) { state.literal = true; return 'meta'; };
|
73
|
+
/* references */
|
74
|
+
if (stream.match(/^\s*(\&|\*)[a-z0-9\._-]+\b/i)) { return 'variable-2'; }
|
75
|
+
/* numbers */
|
76
|
+
if (state.inlinePairs == 0 && stream.match(/^\s*-?[0-9\.\,]+\s?$/)) { return 'number'; }
|
77
|
+
if (state.inlinePairs > 0 && stream.match(/^\s*-?[0-9\.\,]+\s?(?=(,|}))/)) { return 'number'; }
|
78
|
+
/* keywords */
|
79
|
+
if (stream.match(keywordRegex)) { return 'keyword'; }
|
80
|
+
}
|
81
|
+
|
82
|
+
/* pairs (associative arrays) -> key */
|
83
|
+
if (!state.pair && stream.match(/^\s*(?:[,\[\]{}&*!|>'"%@`][^\s'":]|[^,\[\]{}#&*!|>'"%@`])[^#]*?(?=\s*:($|\s))/)) {
|
84
|
+
state.pair = true;
|
85
|
+
state.keyCol = stream.indentation();
|
86
|
+
return "atom";
|
87
|
+
}
|
88
|
+
if (state.pair && stream.match(/^:\s*/)) { state.pairStart = true; return 'meta'; }
|
89
|
+
|
90
|
+
/* nothing found, continue */
|
91
|
+
state.pairStart = false;
|
92
|
+
state.escaped = (ch == '\\');
|
93
|
+
stream.next();
|
94
|
+
return null;
|
95
|
+
},
|
96
|
+
startState: function() {
|
97
|
+
return {
|
98
|
+
pair: false,
|
99
|
+
pairStart: false,
|
100
|
+
keyCol: 0,
|
101
|
+
inlinePairs: 0,
|
102
|
+
inlineList: 0,
|
103
|
+
literal: false,
|
104
|
+
escaped: false
|
105
|
+
};
|
106
|
+
}
|
107
|
+
};
|
108
|
+
});
|
109
|
+
|
110
|
+
CodeMirror.defineMIME("text/x-yaml", "yaml");
|
111
|
+
|
112
|
+
});
|
@@ -0,0 +1,52 @@
|
|
1
|
+
<!doctype html>
|
2
|
+
|
3
|
+
<title>CodeMirror: Z80 assembly mode</title>
|
4
|
+
<meta charset="utf-8"/>
|
5
|
+
<link rel=stylesheet href="../../doc/docs.css">
|
6
|
+
|
7
|
+
<link rel="stylesheet" href="../../lib/codemirror.css">
|
8
|
+
<script src="../../lib/codemirror.js"></script>
|
9
|
+
<script src="z80.js"></script>
|
10
|
+
<style type="text/css">.CodeMirror {border-top: 1px solid black; border-bottom: 1px solid black;}</style>
|
11
|
+
<div id=nav>
|
12
|
+
<a href="http://codemirror.net"><h1>CodeMirror</h1><img id=logo src="../../doc/logo.png"></a>
|
13
|
+
|
14
|
+
<ul>
|
15
|
+
<li><a href="../../index.html">Home</a>
|
16
|
+
<li><a href="../../doc/manual.html">Manual</a>
|
17
|
+
<li><a href="https://github.com/codemirror/codemirror">Code</a>
|
18
|
+
</ul>
|
19
|
+
<ul>
|
20
|
+
<li><a href="../index.html">Language modes</a>
|
21
|
+
<li><a class=active href="#">Z80 assembly</a>
|
22
|
+
</ul>
|
23
|
+
</div>
|
24
|
+
|
25
|
+
<article>
|
26
|
+
<h2>Z80 assembly mode</h2>
|
27
|
+
|
28
|
+
|
29
|
+
<div><textarea id="code" name="code">
|
30
|
+
#include "ti83plus.inc"
|
31
|
+
#define progStart $9D95
|
32
|
+
.org progStart-2
|
33
|
+
.db $BB,$6D
|
34
|
+
bcall(_ClrLCDFull)
|
35
|
+
ld HL, 0
|
36
|
+
ld (PenCol), HL
|
37
|
+
ld HL, Message
|
38
|
+
bcall(_PutS) ; Displays the string
|
39
|
+
bcall(_NewLine)
|
40
|
+
ret
|
41
|
+
Message:
|
42
|
+
.db "Hello world!",0
|
43
|
+
</textarea></div>
|
44
|
+
|
45
|
+
<script>
|
46
|
+
var editor = CodeMirror.fromTextArea(document.getElementById("code"), {
|
47
|
+
lineNumbers: true
|
48
|
+
});
|
49
|
+
</script>
|
50
|
+
|
51
|
+
<p><strong>MIME type defined:</strong> <code>text/x-z80</code>.</p>
|
52
|
+
</article>
|
@@ -0,0 +1,100 @@
|
|
1
|
+
// CodeMirror, copyright (c) by Marijn Haverbeke and others
|
2
|
+
// Distributed under an MIT license: http://codemirror.net/LICENSE
|
3
|
+
|
4
|
+
(function(mod) {
|
5
|
+
if (typeof exports == "object" && typeof module == "object") // CommonJS
|
6
|
+
mod(require("../../lib/codemirror"));
|
7
|
+
else if (typeof define == "function" && define.amd) // AMD
|
8
|
+
define(["../../lib/codemirror"], mod);
|
9
|
+
else // Plain browser env
|
10
|
+
mod(CodeMirror);
|
11
|
+
})(function(CodeMirror) {
|
12
|
+
"use strict";
|
13
|
+
|
14
|
+
CodeMirror.defineMode('z80', function() {
|
15
|
+
var keywords1 = /^(exx?|(ld|cp|in)([di]r?)?|pop|push|ad[cd]|cpl|daa|dec|inc|neg|sbc|sub|and|bit|[cs]cf|x?or|res|set|r[lr]c?a?|r[lr]d|s[lr]a|srl|djnz|nop|rst|[de]i|halt|im|ot[di]r|out[di]?)\b/i;
|
16
|
+
var keywords2 = /^(call|j[pr]|ret[in]?)\b/i;
|
17
|
+
var keywords3 = /^b_?(call|jump)\b/i;
|
18
|
+
var variables1 = /^(af?|bc?|c|de?|e|hl?|l|i[xy]?|r|sp)\b/i;
|
19
|
+
var variables2 = /^(n?[zc]|p[oe]?|m)\b/i;
|
20
|
+
var errors = /^([hl][xy]|i[xy][hl]|slia|sll)\b/i;
|
21
|
+
var numbers = /^([\da-f]+h|[0-7]+o|[01]+b|\d+)\b/i;
|
22
|
+
|
23
|
+
return {
|
24
|
+
startState: function() {
|
25
|
+
return {context: 0};
|
26
|
+
},
|
27
|
+
token: function(stream, state) {
|
28
|
+
if (!stream.column())
|
29
|
+
state.context = 0;
|
30
|
+
|
31
|
+
if (stream.eatSpace())
|
32
|
+
return null;
|
33
|
+
|
34
|
+
var w;
|
35
|
+
|
36
|
+
if (stream.eatWhile(/\w/)) {
|
37
|
+
w = stream.current();
|
38
|
+
|
39
|
+
if (stream.indentation()) {
|
40
|
+
if (state.context == 1 && variables1.test(w))
|
41
|
+
return 'variable-2';
|
42
|
+
|
43
|
+
if (state.context == 2 && variables2.test(w))
|
44
|
+
return 'variable-3';
|
45
|
+
|
46
|
+
if (keywords1.test(w)) {
|
47
|
+
state.context = 1;
|
48
|
+
return 'keyword';
|
49
|
+
} else if (keywords2.test(w)) {
|
50
|
+
state.context = 2;
|
51
|
+
return 'keyword';
|
52
|
+
} else if (keywords3.test(w)) {
|
53
|
+
state.context = 3;
|
54
|
+
return 'keyword';
|
55
|
+
}
|
56
|
+
|
57
|
+
if (errors.test(w))
|
58
|
+
return 'error';
|
59
|
+
} else if (numbers.test(w)) {
|
60
|
+
return 'number';
|
61
|
+
} else {
|
62
|
+
return null;
|
63
|
+
}
|
64
|
+
} else if (stream.eat(';')) {
|
65
|
+
stream.skipToEnd();
|
66
|
+
return 'comment';
|
67
|
+
} else if (stream.eat('"')) {
|
68
|
+
while (w = stream.next()) {
|
69
|
+
if (w == '"')
|
70
|
+
break;
|
71
|
+
|
72
|
+
if (w == '\\')
|
73
|
+
stream.next();
|
74
|
+
}
|
75
|
+
return 'string';
|
76
|
+
} else if (stream.eat('\'')) {
|
77
|
+
if (stream.match(/\\?.'/))
|
78
|
+
return 'number';
|
79
|
+
} else if (stream.eat('.') || stream.sol() && stream.eat('#')) {
|
80
|
+
state.context = 4;
|
81
|
+
|
82
|
+
if (stream.eatWhile(/\w/))
|
83
|
+
return 'def';
|
84
|
+
} else if (stream.eat('$')) {
|
85
|
+
if (stream.eatWhile(/[\da-f]/i))
|
86
|
+
return 'number';
|
87
|
+
} else if (stream.eat('%')) {
|
88
|
+
if (stream.eatWhile(/[01]/))
|
89
|
+
return 'number';
|
90
|
+
} else {
|
91
|
+
stream.next();
|
92
|
+
}
|
93
|
+
return null;
|
94
|
+
}
|
95
|
+
};
|
96
|
+
});
|
97
|
+
|
98
|
+
CodeMirror.defineMIME("text/x-z80", "z80");
|
99
|
+
|
100
|
+
});
|
@@ -0,0 +1 @@
|
|
1
|
+
!function(a){"use strict";"function"==typeof define&&define.amd?define(["jquery"],a):window.jQuery&&!window.jQuery.fn.colorpicker&&a(window.jQuery)}(function(a){"use strict";var b=function(a){this.value={h:0,s:0,b:0,a:1},this.origFormat=null,a&&(void 0!==a.toLowerCase?(a+="","#"===a.charAt(0)||3!==a.length&&6!==a.length||(a="#"+a),this.setColor(a)):void 0!==a.h&&(this.value=a))};b.prototype={constructor:b,colors:{aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",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",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",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",lightgrey:"#d3d3d3",lightgreen:"#90ee90",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370d8",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#d87093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",snow:"#fffafa",springgreen:"#00ff7f",steelblue:"#4682b4",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",tomato:"#ff6347",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},_sanitizeNumber:function(a){return"number"==typeof a?a:isNaN(a)||null===a||""===a||void 0===a?1:void 0!==a.toLowerCase?parseFloat(a):1},setColor:function(a){a=a.toLowerCase(),this.value=this.stringToHSB(a)||{h:0,s:0,b:0,a:1}},stringToHSB:function(b){b=b.toLowerCase();var c=this,d=!1;return a.each(this.stringParsers,function(a,e){var f=e.re.exec(b),g=f&&e.parse.apply(c,[f]),h=e.format||"rgba";return g?(d=h.match(/hsla?/)?c.RGBtoHSB.apply(c,c.HSLtoRGB.apply(c,g)):c.RGBtoHSB.apply(c,g),c.origFormat=h,!1):!0}),d},setHue:function(a){this.value.h=1-a},setSaturation:function(a){this.value.s=a},setBrightness:function(a){this.value.b=1-a},setAlpha:function(a){this.value.a=parseInt(100*(1-a),10)/100},toRGB:function(a,b,c,d){a||(a=this.value.h,b=this.value.s,c=this.value.b),a*=360;var e,f,g,h,i;return a=a%360/60,i=c*b,h=i*(1-Math.abs(a%2-1)),e=f=g=c-i,a=~~a,e+=[i,h,0,0,h,i][a],f+=[h,i,i,h,0,0][a],g+=[0,0,h,i,i,h][a],{r:Math.round(255*e),g:Math.round(255*f),b:Math.round(255*g),a:d||this.value.a}},toHex:function(a,b,c,d){var e=this.toRGB(a,b,c,d);return"#"+(1<<24|parseInt(e.r)<<16|parseInt(e.g)<<8|parseInt(e.b)).toString(16).substr(1)},toHSL:function(a,b,c,d){a=a||this.value.h,b=b||this.value.s,c=c||this.value.b,d=d||this.value.a;var e=a,f=(2-b)*c,g=b*c;return g/=f>0&&1>=f?f:2-f,f/=2,g>1&&(g=1),{h:isNaN(e)?0:e,s:isNaN(g)?0:g,l:isNaN(f)?0:f,a:isNaN(d)?0:d}},toAlias:function(a,b,c,d){var e=this.toHex(a,b,c,d);for(var f in this.colors)if(this.colors[f]==e)return f;return!1},RGBtoHSB:function(a,b,c,d){a/=255,b/=255,c/=255;var e,f,g,h;return g=Math.max(a,b,c),h=g-Math.min(a,b,c),e=0===h?null:g===a?(b-c)/h:g===b?(c-a)/h+2:(a-b)/h+4,e=(e+360)%6*60/360,f=0===h?0:h/g,{h:this._sanitizeNumber(e),s:f,b:g,a:this._sanitizeNumber(d)}},HueToRGB:function(a,b,c){return 0>c?c+=1:c>1&&(c-=1),1>6*c?a+(b-a)*c*6:1>2*c?b:2>3*c?a+(b-a)*(2/3-c)*6:a},HSLtoRGB:function(a,b,c,d){0>b&&(b=0);var e;e=.5>=c?c*(1+b):c+b-c*b;var f=2*c-e,g=a+1/3,h=a,i=a-1/3,j=Math.round(255*this.HueToRGB(f,e,g)),k=Math.round(255*this.HueToRGB(f,e,h)),l=Math.round(255*this.HueToRGB(f,e,i));return[j,k,l,this._sanitizeNumber(d)]},toString:function(a){switch(a=a||"rgba"){case"rgb":var b=this.toRGB();return"rgb("+b.r+","+b.g+","+b.b+")";case"rgba":var b=this.toRGB();return"rgba("+b.r+","+b.g+","+b.b+","+b.a+")";case"hsl":var c=this.toHSL();return"hsl("+Math.round(360*c.h)+","+Math.round(100*c.s)+"%,"+Math.round(100*c.l)+"%)";case"hsla":var c=this.toHSL();return"hsla("+Math.round(360*c.h)+","+Math.round(100*c.s)+"%,"+Math.round(100*c.l)+"%,"+c.a+")";case"hex":return this.toHex();case"alias":return this.toAlias()||this.toHex();default:return!1}},stringParsers:[{re:/#?([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/,format:"hex",parse:function(a){return[parseInt(a[1],16),parseInt(a[2],16),parseInt(a[3],16),1]}},{re:/#?([a-fA-F0-9])([a-fA-F0-9])([a-fA-F0-9])/,format:"hex",parse:function(a){return[parseInt(a[1]+a[1],16),parseInt(a[2]+a[2],16),parseInt(a[3]+a[3],16),1]}},{re:/rgb\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*?\)/,format:"rgb",parse:function(a){return[a[1],a[2],a[3],1]}},{re:/rgb\(\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*?\)/,format:"rgb",parse:function(a){return[2.55*a[1],2.55*a[2],2.55*a[3],1]}},{re:/rgba\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*(?:,\s*(\d+(?:\.\d+)?)\s*)?\)/,format:"rgba",parse:function(a){return[a[1],a[2],a[3],a[4]]}},{re:/rgba\(\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d+(?:\.\d+)?)\s*)?\)/,format:"rgba",parse:function(a){return[2.55*a[1],2.55*a[2],2.55*a[3],a[4]]}},{re:/hsl\(\s*(\d+(?:\.\d+)?)\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*?\)/,format:"hsl",parse:function(a){return[a[1]/360,a[2]/100,a[3]/100,a[4]]}},{re:/hsla\(\s*(\d+(?:\.\d+)?)\s*,\s*(\d+(?:\.\d+)?)\%\s*,\s*(\d+(?:\.\d+)?)\%\s*(?:,\s*(\d+(?:\.\d+)?)\s*)?\)/,format:"hsla",parse:function(a){return[a[1]/360,a[2]/100,a[3]/100,a[4]]}},{re:/^([a-z]{3,})$/,format:"alias",parse:function(a){var b=this.colorNameToHex(a[0])||"#000000",c=this.stringParsers[0].re.exec(b),d=c&&this.stringParsers[0].parse.apply(this,[c]);return d}}],colorNameToHex:function(a){return"undefined"!=typeof this.colors[a.toLowerCase()]?this.colors[a.toLowerCase()]:!1}};var c={horizontal:!1,inline:!1,color:!1,format:!1,input:"input",container:!1,component:".add-on, .input-group-addon",sliders:{saturation:{maxLeft:100,maxTop:100,callLeft:"setSaturation",callTop:"setBrightness"},hue:{maxLeft:0,maxTop:100,callLeft:!1,callTop:"setHue"},alpha:{maxLeft:0,maxTop:100,callLeft:!1,callTop:"setAlpha"}},slidersHorz:{saturation:{maxLeft:100,maxTop:100,callLeft:"setSaturation",callTop:"setBrightness"},hue:{maxLeft:100,maxTop:0,callLeft:"setHue",callTop:!1},alpha:{maxLeft:100,maxTop:0,callLeft:"setAlpha",callTop:!1}},template:'<div class="colorpicker dropdown-menu"><div class="colorpicker-saturation"><i><b></b></i></div><div class="colorpicker-hue"><i></i></div><div class="colorpicker-alpha"><i></i></div><div class="colorpicker-color"><div /></div></div>'},d=function(d,e){this.element=a(d).addClass("colorpicker-element"),this.options=a.extend({},c,this.element.data(),e),this.component=this.options.component,this.component=this.component!==!1?this.element.find(this.component):!1,this.component&&0===this.component.length&&(this.component=!1),this.container=this.options.container===!0?this.element:this.options.container,this.container=this.container!==!1?a(this.container):!1,this.input=this.element.is("input")?this.element:this.options.input?this.element.find(this.options.input):!1,this.input&&0===this.input.length&&(this.input=!1),this.color=new b(this.options.color!==!1?this.options.color:this.getValue()),this.format=this.options.format!==!1?this.options.format:this.color.origFormat,this.picker=a(this.options.template),this.picker.addClass(this.options.inline?"colorpicker-inline colorpicker-visible":"colorpicker-hidden"),this.options.horizontal&&this.picker.addClass("colorpicker-horizontal"),("rgba"===this.format||"hsla"===this.format)&&this.picker.addClass("colorpicker-with-alpha"),this.picker.on("mousedown.colorpicker touchstart.colorpicker",a.proxy(this.mousedown,this)),this.picker.appendTo(this.container?this.container:a("body")),this.input!==!1&&(this.input.on({"keyup.colorpicker":a.proxy(this.keyup,this)}),this.component===!1&&this.element.on({"focus.colorpicker":a.proxy(this.show,this)}),this.options.inline===!1&&this.element.on({"focusout.colorpicker":a.proxy(this.hide,this)})),this.component!==!1&&this.component.on({"click.colorpicker":a.proxy(this.show,this)}),this.input===!1&&this.component===!1&&this.element.on({"click.colorpicker":a.proxy(this.show,this)}),this.input!==!1&&this.component!==!1&&"color"===this.input.attr("type")&&this.input.on({"click.colorpicker":a.proxy(this.show,this),"focus.colorpicker":a.proxy(this.show,this)}),this.update(),a(a.proxy(function(){this.element.trigger("create")},this))};d.version="2.0.0-beta",d.Color=b,d.prototype={constructor:d,destroy:function(){this.picker.remove(),this.element.removeData("colorpicker").off(".colorpicker"),this.input!==!1&&this.input.off(".colorpicker"),this.component!==!1&&this.component.off(".colorpicker"),this.element.removeClass("colorpicker-element"),this.element.trigger({type:"destroy"})},reposition:function(){if(this.options.inline!==!1||this.options.container)return!1;var a=this.container&&this.container[0]!==document.body?"position":"offset",b=this.component?this.component[a]():this.element[a]();this.picker.css({top:b.top+(this.component?this.component.outerHeight():this.element.outerHeight()),left:b.left})},show:function(b){return this.isDisabled()?!1:(this.picker.addClass("colorpicker-visible").removeClass("colorpicker-hidden"),this.reposition(),a(window).on("resize.colorpicker",a.proxy(this.reposition,this)),!b||this.hasInput()&&"color"!==this.input.attr("type")||b.stopPropagation&&b.preventDefault&&(b.stopPropagation(),b.preventDefault()),this.options.inline===!1&&a(window.document).on({"mousedown.colorpicker":a.proxy(this.hide,this)}),void this.element.trigger({type:"showPicker",color:this.color}))},hide:function(){this.picker.addClass("colorpicker-hidden").removeClass("colorpicker-visible"),a(window).off("resize.colorpicker",this.reposition),a(document).off({"mousedown.colorpicker":this.hide}),this.update(),this.element.trigger({type:"hidePicker",color:this.color})},updateData:function(a){return a=a||this.color.toString(this.format),this.element.data("color",a),a},updateInput:function(a){return a=a||this.color.toString(this.format),this.input!==!1&&this.input.prop("value",a),a},updatePicker:function(a){void 0!==a&&(this.color=new b(a));var c=this.options.horizontal===!1?this.options.sliders:this.options.slidersHorz,d=this.picker.find("i");return 0!==d.length?(this.options.horizontal===!1?(c=this.options.sliders,d.eq(1).css("top",c.hue.maxTop*(1-this.color.value.h)).end().eq(2).css("top",c.alpha.maxTop*(1-this.color.value.a))):(c=this.options.slidersHorz,d.eq(1).css("left",c.hue.maxLeft*(1-this.color.value.h)).end().eq(2).css("left",c.alpha.maxLeft*(1-this.color.value.a))),d.eq(0).css({top:c.saturation.maxTop-this.color.value.b*c.saturation.maxTop,left:this.color.value.s*c.saturation.maxLeft}),this.picker.find(".colorpicker-saturation").css("backgroundColor",this.color.toHex(this.color.value.h,1,1,1)),this.picker.find(".colorpicker-alpha").css("backgroundColor",this.color.toHex()),this.picker.find(".colorpicker-color, .colorpicker-color div").css("backgroundColor",this.color.toString(this.format)),a):void 0},updateComponent:function(a){if(a=a||this.color.toString(this.format),this.component!==!1){var b=this.component.find("i").eq(0);b.length>0?b.css({backgroundColor:a}):this.component.css({backgroundColor:a})}return a},update:function(a){var b=this.updateComponent();return(this.getValue(!1)!==!1||a===!0)&&(this.updateInput(b),this.updateData(b)),this.updatePicker(),b},setValue:function(a){this.color=new b(a),this.update(),this.element.trigger({type:"changeColor",color:this.color,value:a})},getValue:function(a){a=void 0===a?"#000000":a;var b;return b=this.hasInput()?this.input.val():this.element.data("color"),(void 0===b||""===b||null===b)&&(b=a),b},hasInput:function(){return this.input!==!1},isDisabled:function(){return this.hasInput()?this.input.prop("disabled")===!0:!1},disable:function(){return this.hasInput()?(this.input.prop("disabled",!0),!0):!1},enable:function(){return this.hasInput()?(this.input.prop("disabled",!1),!0):!1},currentSlider:null,mousePointer:{left:0,top:0},mousedown:function(b){b.pageX||b.pageY||!b.originalEvent||(b.pageX=b.originalEvent.touches[0].pageX,b.pageY=b.originalEvent.touches[0].pageY),b.stopPropagation(),b.preventDefault();var c=a(b.target),d=c.closest("div"),e=this.options.horizontal?this.options.slidersHorz:this.options.sliders;if(!d.is(".colorpicker")){if(d.is(".colorpicker-saturation"))this.currentSlider=a.extend({},e.saturation);else if(d.is(".colorpicker-hue"))this.currentSlider=a.extend({},e.hue);else{if(!d.is(".colorpicker-alpha"))return!1;this.currentSlider=a.extend({},e.alpha)}var f=d.offset();this.currentSlider.guide=d.find("i")[0].style,this.currentSlider.left=b.pageX-f.left,this.currentSlider.top=b.pageY-f.top,this.mousePointer={left:b.pageX,top:b.pageY},a(document).on({"mousemove.colorpicker":a.proxy(this.mousemove,this),"touchmove.colorpicker":a.proxy(this.mousemove,this),"mouseup.colorpicker":a.proxy(this.mouseup,this),"touchend.colorpicker":a.proxy(this.mouseup,this)}).trigger("mousemove")}return!1},mousemove:function(a){a.pageX||a.pageY||!a.originalEvent||(a.pageX=a.originalEvent.touches[0].pageX,a.pageY=a.originalEvent.touches[0].pageY),a.stopPropagation(),a.preventDefault();var b=Math.max(0,Math.min(this.currentSlider.maxLeft,this.currentSlider.left+((a.pageX||this.mousePointer.left)-this.mousePointer.left))),c=Math.max(0,Math.min(this.currentSlider.maxTop,this.currentSlider.top+((a.pageY||this.mousePointer.top)-this.mousePointer.top)));return this.currentSlider.guide.left=b+"px",this.currentSlider.guide.top=c+"px",this.currentSlider.callLeft&&this.color[this.currentSlider.callLeft].call(this.color,b/this.currentSlider.maxLeft),this.currentSlider.callTop&&this.color[this.currentSlider.callTop].call(this.color,c/this.currentSlider.maxTop),this.update(!0),this.element.trigger({type:"changeColor",color:this.color}),!1},mouseup:function(b){return b.stopPropagation(),b.preventDefault(),a(document).off({"mousemove.colorpicker":this.mousemove,"touchmove.colorpicker":this.mousemove,"mouseup.colorpicker":this.mouseup,"touchend.colorpicker":this.mouseup}),!1},keyup:function(a){if(38===a.keyCode)this.color.value.a<1&&(this.color.value.a=Math.round(100*(this.color.value.a+.01))/100),this.update(!0);else if(40===a.keyCode)this.color.value.a>0&&(this.color.value.a=Math.round(100*(this.color.value.a-.01))/100),this.update(!0);else{var c=this.input.val();this.color=new b(c),this.getValue(!1)!==!1&&(this.updateData(),this.updateComponent(),this.updatePicker())}this.element.trigger({type:"changeColor",color:this.color,value:c})}},a.colorpicker=d,a.fn.colorpicker=function(b){var c=arguments;return this.each(function(){var e=a(this),f=e.data("colorpicker"),g="object"==typeof b?b:{};f||"string"==typeof b?"string"==typeof b&&f[b].apply(f,Array.prototype.slice.call(c,1)):e.data("colorpicker",new d(this,g))})},a.fn.colorpicker.constructor=d});
|
@@ -0,0 +1,9 @@
|
|
1
|
+
/*!
|
2
|
+
* Cropper v0.7.6-beta
|
3
|
+
* https://github.com/fengyuanchen/cropper
|
4
|
+
*
|
5
|
+
* Copyright 2014 Fengyuan Chen
|
6
|
+
* Released under the MIT license
|
7
|
+
*/
|
8
|
+
|
9
|
+
!function(a){"function"==typeof define&&define.amd?define(["jquery"],a):a("object"==typeof exports?require("jquery"):jQuery)}(function(a){"use strict";var b=a(window),c=a(document),d=window.location,e=!0,f=!1,g=null,h=0/0,i=1/0,j="undefined",k="directive",l=".cropper",m=/^(e|n|w|s|ne|nw|sw|se|all|crop|move|zoom)$/,n=/^(x|y|width|height)$/,o=/^(naturalWidth|naturalHeight|width|height|aspectRatio|ratio|rotate)$/,p="cropper-modal",q="cropper-hidden",r="cropper-invisible",s="cropper-move",t="cropper-crop",u="cropper-disabled",v="mousedown touchstart",w="mousemove touchmove",x="mouseup mouseleave touchend touchleave touchcancel",y="wheel mousewheel DOMMouseScroll",z="resize"+l,A="dblclick",B="build"+l,C="built"+l,D="dragstart"+l,E="dragmove"+l,F="dragend"+l,G=function(a){return"number"==typeof a},H=function(b,c){this.element=b,this.$element=a(b),this.defaults=a.extend({},H.DEFAULTS,a.isPlainObject(c)?c:{}),this.$original=g,this.ready=f,this.built=f,this.cropped=f,this.rotated=f,this.disabled=f,this.replaced=f,this.init()},I=Math.round,J=Math.sqrt,K=Math.min,L=Math.max,M=Math.abs,N=Math.sin,O=Math.cos,P=parseFloat;H.prototype={constructor:H,support:{canvas:a.isFunction(a("<canvas>")[0].getContext)},init:function(){var b=this.defaults;a.each(b,function(a,c){switch(a){case"aspectRatio":b[a]=M(P(c))||h;break;case"autoCropArea":b[a]=M(P(c))||.8;break;case"minWidth":case"minHeight":b[a]=M(P(c))||0;break;case"maxWidth":case"maxHeight":b[a]=M(P(c))||i}}),this.image={rotate:0},this.load()},load:function(){var b,c,d=this,f=this.$element,g=this.element,h=this.image,i="";f.is("img")?c=f.prop("src"):f.is("canvas")&&this.support.canvas&&(c=g.toDataURL()),c&&(this.replaced&&(h.rotate=0),this.defaults.checkImageOrigin&&(f.prop("crossOrigin")||this.isCrossOriginURL(c))&&(i=" crossOrigin"),this.$clone=b=a("<img"+i+' src="'+c+'">'),b.one("load",function(){h.naturalWidth=this.naturalWidth||b.width(),h.naturalHeight=this.naturalHeight||b.height(),h.aspectRatio=h.naturalWidth/h.naturalHeight,d.url=c,d.ready=e,d.build()}),b.addClass(r).prependTo("body"))},isCrossOriginURL:function(a){var b=a.match(/^(https?:)\/\/([^\:\/\?#]+):?(\d*)/i);return!b||b[1]===d.protocol&&b[2]===d.hostname&&b[3]===d.port?f:e},build:function(){var b,d,f=this.$element,g=this.defaults;this.ready&&(this.built&&this.unbuild(),f.one(B,g.build),b=a.Event(B),f.trigger(b),b.isDefaultPrevented()||(this.$cropper=d=a(H.TEMPLATE),f.addClass(q),this.$clone.removeClass(r).prependTo(d),this.rotated||(this.$original=this.$clone.clone(),this.$original.addClass(q).prependTo(this.$cropper),this.originalImage=a.extend({},this.image)),this.$container=f.parent(),this.$container.append(d),this.$canvas=d.find(".cropper-canvas"),this.$dragger=d.find(".cropper-dragger"),this.$viewer=d.find(".cropper-viewer"),g.autoCrop?this.cropped=e:this.$dragger.addClass(q),g.dragCrop&&this.setDragMode("crop"),g.modal&&this.$canvas.addClass(p),!g.dashed&&this.$dragger.find(".cropper-dashed").addClass(q),!g.movable&&this.$dragger.find(".cropper-face").data(k,"move"),!g.resizable&&this.$dragger.find(".cropper-line, .cropper-point").addClass(q),this.$scope=g.multiple?this.$cropper:c,this.addListeners(),this.initPreview(),this.built=e,this.update(),f.one(C,g.built),f.trigger(C)))},unbuild:function(){this.built&&(this.built=f,this.removeListeners(),this.$preview.empty(),this.$preview=g,this.$dragger=g,this.$canvas=g,this.$container=g,this.$cropper.remove(),this.$cropper=g)},update:function(a){this.initContainer(),this.initCropper(),this.initImage(),this.initDragger(),a?(this.setData(a,e),this.setDragMode("crop")):this.setData(this.defaults.data)},resize:function(){clearTimeout(this.resizing),this.resizing=setTimeout(a.proxy(this.update,this,this.getData()),200)},preview:function(){var b=this.image,c=this.dragger,d=b.width,e=b.height,f=c.left-b.left,g=c.top-b.top;this.$viewer.find("img").css({width:I(d),height:I(e),marginLeft:-I(f),marginTop:-I(g)}),this.$preview.each(function(){var b=a(this),h=b.width()/c.width;b.find("img").css({width:I(d*h),height:I(e*h),marginLeft:-I(f*h),marginTop:-I(g*h)})})},addListeners:function(){var c=this.defaults;this.$element.on(D,c.dragstart).on(E,c.dragmove).on(F,c.dragend),this.$cropper.on(v,this._dragstart=a.proxy(this.dragstart,this)).on(A,this._dblclick=a.proxy(this.dblclick,this)),c.zoomable&&this.$cropper.on(y,this._wheel=a.proxy(this.wheel,this)),this.$scope.on(w,this._dragmove=a.proxy(this.dragmove,this)).on(x,this._dragend=a.proxy(this.dragend,this)),b.on(z,this._resize=a.proxy(this.resize,this))},removeListeners:function(){var a=this.defaults;this.$element.off(D,a.dragstart).off(E,a.dragmove).off(F,a.dragend),this.$cropper.off(v,this._dragstart).off(A,this._dblclick),a.zoomable&&this.$cropper.off(y,this._wheel),this.$scope.off(w,this._dragmove).off(x,this._dragend),b.off(z,this._resize)},initPreview:function(){var b='<img src="'+this.url+'">';this.$preview=a(this.defaults.preview),this.$viewer.html(b),this.$preview.html(b).find("img").css("cssText","min-width:0!important;min-height:0!important;max-width:none!important;max-height:none!important;")},initContainer:function(){var a=this.$container;this.container={width:L(a.width(),300),height:L(a.height(),150)}},initCropper:function(){var a,b=this.container,c=this.image;c.naturalWidth*b.height/c.naturalHeight-b.width>=0?(a={width:b.width,height:b.width/c.aspectRatio,left:0},a.top=(b.height-a.height)/2):(a={width:b.height*c.aspectRatio,height:b.height,top:0},a.left=(b.width-a.width)/2),this.$cropper.css({width:I(a.width),height:I(a.height),left:I(a.left),top:I(a.top)}),this.cropper=a},initImage:function(){var b=this.image,c=this.cropper,d={_width:c.width,_height:c.height,width:c.width,height:c.height,left:0,top:0,ratio:c.width/b.naturalWidth};this.defaultImage=a.extend({},b,d),b._width!==c.width||b._height!==c.height?a.extend(b,d):(b=a.extend({},d,b),this.replaced&&(this.replaced=f,b.ratio=d.ratio)),this.image=b,this.renderImage()},renderImage:function(a){var b=this.image;"zoom"===a&&(b.left-=(b.width-b.oldWidth)/2,b.top-=(b.height-b.oldHeight)/2),b.left=K(L(b.left,b._width-b.width),0),b.top=K(L(b.top,b._height-b.height),0),this.$clone.css({width:I(b.width),height:I(b.height),marginLeft:I(b.left),marginTop:I(b.top)}),a&&(this.defaults.done(this.getData()),this.preview())},initDragger:function(){var b,c=this.defaults,d=this.cropper,e=c.aspectRatio||this.image.aspectRatio,f=this.image.ratio;b=d.height*e-d.width>=0?{height:d.width/e,width:d.width,left:0,top:(d.height-d.width/e)/2,maxWidth:d.width,maxHeight:d.width/e}:{height:d.height,width:d.height*e,left:(d.width-d.height*e)/2,top:0,maxWidth:d.height*e,maxHeight:d.height},b.minWidth=0,b.minHeight=0,c.aspectRatio?(isFinite(c.maxWidth)?(b.maxWidth=K(b.maxWidth,c.maxWidth*f),b.maxHeight=b.maxWidth/e):isFinite(c.maxHeight)&&(b.maxHeight=K(b.maxHeight,c.maxHeight*f),b.maxWidth=b.maxHeight*e),c.minWidth>0?(b.minWidth=L(0,c.minWidth*f),b.minHeight=b.minWidth/e):c.minHeight>0&&(b.minHeight=L(0,c.minHeight*f),b.minWidth=b.minHeight*e)):(b.maxWidth=K(b.maxWidth,c.maxWidth*f),b.maxHeight=K(b.maxHeight,c.maxHeight*f),b.minWidth=L(0,c.minWidth*f),b.minHeight=L(0,c.minHeight*f)),b.minWidth=K(b.maxWidth,b.minWidth),b.minHeight=K(b.maxHeight,b.minHeight),b.height*=c.autoCropArea,b.width*=c.autoCropArea,b.left=(d.width-b.width)/2,b.top=(d.height-b.height)/2,b.oldLeft=b.left,b.oldTop=b.top,this.defaultDragger=b,this.dragger=a.extend({},b)},renderDragger:function(){var a=this.dragger,b=this.cropper;a.width>a.maxWidth?(a.width=a.maxWidth,a.left=a.oldLeft):a.width<a.minWidth&&(a.width=a.minWidth,a.left=a.oldLeft),a.height>a.maxHeight?(a.height=a.maxHeight,a.top=a.oldTop):a.height<a.minHeight&&(a.height=a.minHeight,a.top=a.oldTop),a.left=K(L(a.left,0),b.width-a.width),a.top=K(L(a.top,0),b.height-a.height),a.oldLeft=a.left,a.oldTop=a.top,this.dragger=a,this.disabled||this.defaults.done(this.getData()),this.$dragger.css({width:I(a.width),height:I(a.height),left:I(a.left),top:I(a.top)}),this.preview()},reset:function(b){this.cropped&&(b&&(this.defaults.data={}),this.image=a.extend({},this.defaultImage),this.renderImage(),this.dragger=a.extend({},this.defaultDragger),this.setData(this.defaults.data))},clear:function(){this.cropped&&(this.cropped=f,this.setData({x:0,y:0,width:0,height:0}),this.$canvas.removeClass(p),this.$dragger.addClass(q))},destroy:function(){var a=this.$element;this.ready&&(this.unbuild(),a.removeClass(q).removeData("cropper"),this.rotated&&a.attr("src",this.$original.attr("src")))},replace:function(b,c){var d,g=this,h=this.$element,i=this.element;b&&b!==this.url&&b!==h.attr("src")&&(c||(this.rotated=f,this.replaced=e),h.is("img")?(h.attr("src",b),this.load()):h.is("canvas")&&this.support.canvas&&(d=i.getContext("2d"),a('<img src="'+b+'">').one("load",function(){i.width=this.width,i.height=this.height,d.clearRect(0,0,i.width,i.height),d.drawImage(this,0,0),g.load()})))},setData:function(b,c){var d=this.cropper,e=this.dragger,f=this.image,h=this.defaults.aspectRatio;this.built&&typeof b!==j&&((b===g||a.isEmptyObject(b))&&(e=a.extend({},this.defaultDragger)),a.isPlainObject(b)&&!a.isEmptyObject(b)&&(c||(this.defaults.data=b),b=this.transformData(b),G(b.x)&&b.x<=d.width-f.left&&(e.left=b.x+f.left),G(b.y)&&b.y<=d.height-f.top&&(e.top=b.y+f.top),h?G(b.width)&&b.width<=e.maxWidth&&b.width>=e.minWidth?(e.width=b.width,e.height=e.width/h):G(b.height)&&b.height<=e.maxHeight&&b.height>=e.minHeight&&(e.height=b.height,e.width=e.height*h):(G(b.width)&&b.width<=e.maxWidth&&b.width>=e.minWidth&&(e.width=b.width),G(b.height)&&b.height<=e.maxHeight&&b.height>=e.minHeight&&(e.height=b.height))),this.dragger=e,this.renderDragger())},getData:function(a){var b=this.dragger,c=this.image,d={};return this.built&&(d={x:b.left-c.left,y:b.top-c.top,width:b.width,height:b.height},d=this.transformData(d,e,a)),d},transformData:function(b,c,d){var e=this.image.ratio,f={};return a.each(b,function(a,b){b=P(b),n.test(a)&&!isNaN(b)&&(f[a]=c?d?I(b/e):b/e:b*e)}),f},setAspectRatio:function(a){var b="auto"===a;a=P(a),(b||!isNaN(a)&&a>0)&&(this.defaults.aspectRatio=b?h:a,this.built&&(this.initDragger(),this.renderDragger()))},getImageData:function(){var b={};return this.ready&&a.each(this.image,function(a,c){o.test(a)&&(b[a]=c)}),b},getDataURL:function(b,c,d){var e,f=a("<canvas>")[0],g=this.getData(),h="";return a.isPlainObject(b)||(d=c,c=b,b={}),b=a.extend({width:g.width,height:g.height},b),this.cropped&&this.support.canvas&&(f.width=b.width,f.height=b.height,e=f.getContext("2d"),"image/jpeg"===c&&(e.fillStyle="#fff",e.fillRect(0,0,b.width,b.height)),e.drawImage(this.$clone[0],g.x,g.y,g.width,g.height,0,0,b.width,b.height),h=f.toDataURL(c,d)),h},setDragMode:function(a){var b=this.$canvas,c=this.defaults,d=f,g=f;if(this.built&&!this.disabled){switch(a){case"crop":c.dragCrop&&(d=e,b.data(k,a));break;case"move":g=e,b.data(k,a);break;default:b.removeData(k)}b.toggleClass(t,d).toggleClass(s,g)}},enable:function(){this.built&&(this.disabled=f,this.$cropper.removeClass(u))},disable:function(){this.built&&(this.disabled=e,this.$cropper.addClass(u))},rotate:function(a){var b=this.image;a=P(a)||0,this.built&&0!==a&&!this.disabled&&this.defaults.rotatable&&this.support.canvas&&(this.rotated=e,a=b.rotate=(b.rotate+a)%360,this.replace(this.getRotatedDataURL(a),!0))},getRotatedDataURL:function(b){var c=a("<canvas>")[0],d=c.getContext("2d"),e=b*Math.PI/180,f=M(b)%180,g=f>90?180-f:f,h=g*Math.PI/180,i=this.originalImage,j=i.naturalWidth,k=i.naturalHeight,l=M(j*O(h)+k*N(h)),m=M(j*N(h)+k*O(h));return c.width=l,c.height=m,d.save(),d.translate(l/2,m/2),d.rotate(e),d.drawImage(this.$original[0],-j/2,-k/2,j,k),d.restore(),c.toDataURL()},zoom:function(a){var b,c,d,e=this.image;a=P(a),this.built&&a&&!this.disabled&&this.defaults.zoomable&&(b=e.width*(1+a),c=e.height*(1+a),d=b/e._width,d>10||(1>d&&(b=e._width,c=e._height),this.setDragMode(1>=d?"crop":"move"),e.oldWidth=e.width,e.oldHeight=e.height,e.width=b,e.height=c,e.ratio=e.width/e.naturalWidth,this.renderImage("zoom")))},dblclick:function(){this.disabled||this.setDragMode(this.$canvas.hasClass(t)?"move":"crop")},wheel:function(a){var b,c=a.originalEvent,d=117.25,e=5,f=166.66665649414062,g=.1;this.disabled||(a.preventDefault(),c.deltaY?(b=c.deltaY,b=b%e===0?b/e:b%d===0?b/d:b/f):b=c.wheelDelta?-c.wheelDelta/120:c.detail?c.detail/3:0,this.zoom(b*g))},dragstart:function(b){var c,d,g,h=b.originalEvent.touches,i=b;if(!this.disabled){if(h){if(g=h.length,g>1){if(!this.defaults.zoomable||2!==g)return;i=h[1],this.startX2=i.pageX,this.startY2=i.pageY,c="zoom"}i=h[0]}if(c=c||a(i.target).data(k),m.test(c)){if(b.preventDefault(),d=a.Event(D),this.$element.trigger(d),d.isDefaultPrevented())return;this.directive=c,this.cropping=f,this.startX=i.pageX,this.startY=i.pageY,"crop"===c&&(this.cropping=e,this.$canvas.addClass(p))}}},dragmove:function(b){var c,d,e=b.originalEvent.touches,f=b;if(!this.disabled){if(e){if(d=e.length,d>1){if(!this.defaults.zoomable||2!==d)return;f=e[1],this.endX2=f.pageX,this.endY2=f.pageY}f=e[0]}if(this.directive){if(b.preventDefault(),c=a.Event(E),this.$element.trigger(c),c.isDefaultPrevented())return;this.endX=f.pageX,this.endY=f.pageY,this.dragging()}}},dragend:function(b){var c;if(!this.disabled&&this.directive){if(b.preventDefault(),c=a.Event(F),this.$element.trigger(c),c.isDefaultPrevented())return;this.cropping&&(this.cropping=f,this.$canvas.toggleClass(p,this.cropped&&this.defaults.modal)),this.directive=""}},dragging:function(){var a,b=this.directive,c=this.image,d=this.cropper,g=d.width,h=d.height,i=this.dragger,j=i.width,k=i.height,l=i.left,m=i.top,n=l+j,o=m+k,p=e,r=this.defaults,s=r.aspectRatio,t={x:this.endX-this.startX,y:this.endY-this.startY};switch(s&&(t.X=t.y*s,t.Y=t.x/s),b){case"all":l+=t.x,m+=t.y;break;case"e":if(t.x>=0&&(n>=g||s&&(0>=m||o>=h))){p=f;break}j+=t.x,s&&(k=j/s,m-=t.Y/2),0>j&&(b="w",j=0);break;case"n":if(t.y<=0&&(0>=m||s&&(0>=l||n>=g))){p=f;break}k-=t.y,m+=t.y,s&&(j=k*s,l+=t.X/2),0>k&&(b="s",k=0);break;case"w":if(t.x<=0&&(0>=l||s&&(0>=m||o>=h))){p=f;break}j-=t.x,l+=t.x,s&&(k=j/s,m+=t.Y/2),0>j&&(b="e",j=0);break;case"s":if(t.y>=0&&(o>=h||s&&(0>=l||n>=g))){p=f;break}k+=t.y,s&&(j=k*s,l-=t.X/2),0>k&&(b="n",k=0);break;case"ne":if(s){if(t.y<=0&&(0>=m||n>=g)){p=f;break}k-=t.y,m+=t.y,j=k*s}else t.x>=0?g>n?j+=t.x:t.y<=0&&0>=m&&(p=f):j+=t.x,t.y<=0?m>0&&(k-=t.y,m+=t.y):(k-=t.y,m+=t.y);0>k&&(b="sw",k=0,j=0);break;case"nw":if(s){if(t.y<=0&&(0>=m||0>=l)){p=f;break}k-=t.y,m+=t.y,j=k*s,l+=t.X}else t.x<=0?l>0?(j-=t.x,l+=t.x):t.y<=0&&0>=m&&(p=f):(j-=t.x,l+=t.x),t.y<=0?m>0&&(k-=t.y,m+=t.y):(k-=t.y,m+=t.y);0>k&&(b="se",k=0,j=0);break;case"sw":if(s){if(t.x<=0&&(0>=l||o>=h)){p=f;break}j-=t.x,l+=t.x,k=j/s}else t.x<=0?l>0?(j-=t.x,l+=t.x):t.y>=0&&o>=h&&(p=f):(j-=t.x,l+=t.x),t.y>=0?h>o&&(k+=t.y):k+=t.y;0>j&&(b="ne",k=0,j=0);break;case"se":if(s){if(t.x>=0&&(n>=g||o>=h)){p=f;break}j+=t.x,k=j/s}else t.x>=0?g>n?j+=t.x:t.y>=0&&o>=h&&(p=f):j+=t.x,t.y>=0?h>o&&(k+=t.y):k+=t.y;0>j&&(b="nw",k=0,j=0);break;case"move":c.left+=t.x,c.top+=t.y,this.renderImage("move"),p=f;break;case"zoom":r.zoomable&&(this.zoom(function(a,b,c,d,e,f){return(J(e*e+f*f)-J(c*c+d*d))/J(a*a+b*b)}(c.width,c.height,M(this.startX-this.startX2),M(this.startY-this.startY2),M(this.endX-this.endX2),M(this.endY-this.endY2))),this.endX2=this.startX2,this.endY2=this.startY2);break;case"crop":t.x&&t.y&&(a=this.$cropper.offset(),l=this.startX-a.left,m=this.startY-a.top,j=i.minWidth,k=i.minHeight,t.x>0?t.y>0?b="se":(b="ne",m-=k):t.y>0?(b="sw",l-=j):(b="nw",l-=j,m-=k),this.cropped||(this.cropped=e,this.$dragger.removeClass(q)))}p&&(i.width=j,i.height=k,i.left=l,i.top=m,this.directive=b,this.renderDragger()),this.startX=this.endX,this.startY=this.endY}},H.TEMPLATE=function(a,b){return b=b.split(","),a.replace(/\d+/g,function(a){return b[a]})}('<0 6="5-container"><0 6="5-canvas"></0><0 6="5-dragger"><1 6="5-viewer"></1><1 6="5-8 8-h"></1><1 6="5-8 8-v"></1><1 6="5-face" 3-2="all"></1><1 6="5-7 7-e" 3-2="e"></1><1 6="5-7 7-n" 3-2="n"></1><1 6="5-7 7-w" 3-2="w"></1><1 6="5-7 7-s" 3-2="s"></1><1 6="5-4 4-e" 3-2="e"></1><1 6="5-4 4-n" 3-2="n"></1><1 6="5-4 4-w" 3-2="w"></1><1 6="5-4 4-s" 3-2="s"></1><1 6="5-4 4-ne" 3-2="ne"></1><1 6="5-4 4-nw" 3-2="nw"></1><1 6="5-4 4-sw" 3-2="sw"></1><1 6="5-4 4-se" 3-2="se"></1></0></0>',"div,span,directive,data,point,cropper,class,line,dashed"),H.DEFAULTS={aspectRatio:"auto",autoCropArea:.8,data:{},done:a.noop,preview:"",multiple:f,autoCrop:e,dragCrop:e,dashed:e,modal:e,movable:e,resizable:e,zoomable:e,rotatable:e,checkImageOrigin:e,minWidth:0,minHeight:0,maxWidth:i,maxHeight:i,build:g,built:g,dragstart:g,dragmove:g,dragend:g},H.setDefaults=function(b){a.extend(H.DEFAULTS,b)},H.other=a.fn.cropper,a.fn.cropper=function(b){var c,d=[].slice.call(arguments,1);return this.each(function(){var e,f=a(this),g=f.data("cropper");g||f.data("cropper",g=new H(this,b)),"string"==typeof b&&a.isFunction(e=g[b])&&(c=e.apply(g,d))}),typeof c!==j?c:this},a.fn.cropper.Constructor=H,a.fn.cropper.setDefaults=H.setDefaults,a.fn.cropper.noConflict=function(){return a.fn.cropper=H.other,this}});
|
@@ -0,0 +1,245 @@
|
|
1
|
+
/* Set the defaults for DataTables initialisation */
|
2
|
+
$.extend(true, $.fn.dataTable.defaults, {
|
3
|
+
"sDom": "<'row'<'col-sm-6'l><'col-sm-6'f>r>" + "t" + "<'row'<'col-sm-6'i><'col-sm-6'p>>",
|
4
|
+
"oLanguage": {
|
5
|
+
"sLengthMenu": "_MENU_ records per page"
|
6
|
+
}
|
7
|
+
});
|
8
|
+
|
9
|
+
|
10
|
+
/* Default class modification */
|
11
|
+
$.extend($.fn.dataTableExt.oStdClasses, {
|
12
|
+
"sWrapper": "dataTables_wrapper form-inline",
|
13
|
+
"sFilterInput": "form-control input-sm",
|
14
|
+
"sLengthSelect": "form-control input-sm"
|
15
|
+
});
|
16
|
+
|
17
|
+
// In 1.10 we use the pagination renderers to draw the Bootstrap paging,
|
18
|
+
// rather than custom plug-in
|
19
|
+
if ($.fn.dataTable.Api) {
|
20
|
+
$.fn.dataTable.defaults.renderer = 'bootstrap';
|
21
|
+
$.fn.dataTable.ext.renderer.pageButton.bootstrap = function(settings, host, idx, buttons, page, pages) {
|
22
|
+
var api = new $.fn.dataTable.Api(settings);
|
23
|
+
var classes = settings.oClasses;
|
24
|
+
var lang = settings.oLanguage.oPaginate;
|
25
|
+
var btnDisplay, btnClass;
|
26
|
+
|
27
|
+
var attach = function(container, buttons) {
|
28
|
+
var i, ien, node, button;
|
29
|
+
var clickHandler = function(e) {
|
30
|
+
e.preventDefault();
|
31
|
+
if (e.data.action !== 'ellipsis') {
|
32
|
+
api.page(e.data.action).draw(false);
|
33
|
+
}
|
34
|
+
};
|
35
|
+
|
36
|
+
for (i = 0, ien = buttons.length; i < ien; i++) {
|
37
|
+
button = buttons[i];
|
38
|
+
|
39
|
+
if ($.isArray(button)) {
|
40
|
+
attach(container, button);
|
41
|
+
} else {
|
42
|
+
btnDisplay = '';
|
43
|
+
btnClass = '';
|
44
|
+
|
45
|
+
switch (button) {
|
46
|
+
case 'ellipsis':
|
47
|
+
btnDisplay = '…';
|
48
|
+
btnClass = 'disabled';
|
49
|
+
break;
|
50
|
+
|
51
|
+
case 'first':
|
52
|
+
btnDisplay = lang.sFirst;
|
53
|
+
btnClass = button + (page > 0 ?
|
54
|
+
'' : ' disabled');
|
55
|
+
break;
|
56
|
+
|
57
|
+
case 'previous':
|
58
|
+
btnDisplay = lang.sPrevious;
|
59
|
+
btnClass = button + (page > 0 ?
|
60
|
+
'' : ' disabled');
|
61
|
+
break;
|
62
|
+
|
63
|
+
case 'next':
|
64
|
+
btnDisplay = lang.sNext;
|
65
|
+
btnClass = button + (page < pages - 1 ?
|
66
|
+
'' : ' disabled');
|
67
|
+
break;
|
68
|
+
|
69
|
+
case 'last':
|
70
|
+
btnDisplay = lang.sLast;
|
71
|
+
btnClass = button + (page < pages - 1 ?
|
72
|
+
'' : ' disabled');
|
73
|
+
break;
|
74
|
+
|
75
|
+
default:
|
76
|
+
btnDisplay = button + 1;
|
77
|
+
btnClass = page === button ?
|
78
|
+
'active' : '';
|
79
|
+
break;
|
80
|
+
}
|
81
|
+
|
82
|
+
if (btnDisplay) {
|
83
|
+
node = $('<li>', {
|
84
|
+
'class': classes.sPageButton + ' ' + btnClass,
|
85
|
+
'aria-controls': settings.sTableId,
|
86
|
+
'tabindex': settings.iTabIndex,
|
87
|
+
'id': idx === 0 && typeof button === 'string' ? settings.sTableId + '_' + button : null
|
88
|
+
})
|
89
|
+
.append($('<a>', {
|
90
|
+
'href': '#'
|
91
|
+
})
|
92
|
+
.html(btnDisplay)
|
93
|
+
)
|
94
|
+
.appendTo(container);
|
95
|
+
|
96
|
+
settings.oApi._fnBindAction(
|
97
|
+
node, {
|
98
|
+
action: button
|
99
|
+
}, clickHandler
|
100
|
+
);
|
101
|
+
}
|
102
|
+
}
|
103
|
+
}
|
104
|
+
};
|
105
|
+
|
106
|
+
attach(
|
107
|
+
$(host).empty().html('<ul class="pagination"/>').children('ul'),
|
108
|
+
buttons
|
109
|
+
);
|
110
|
+
}
|
111
|
+
} else {
|
112
|
+
// Integration for 1.9-
|
113
|
+
$.fn.dataTable.defaults.sPaginationType = 'bootstrap';
|
114
|
+
|
115
|
+
/* API method to get paging information */
|
116
|
+
$.fn.dataTableExt.oApi.fnPagingInfo = function(oSettings) {
|
117
|
+
return {
|
118
|
+
"iStart": oSettings._iDisplayStart,
|
119
|
+
"iEnd": oSettings.fnDisplayEnd(),
|
120
|
+
"iLength": oSettings._iDisplayLength,
|
121
|
+
"iTotal": oSettings.fnRecordsTotal(),
|
122
|
+
"iFilteredTotal": oSettings.fnRecordsDisplay(),
|
123
|
+
"iPage": oSettings._iDisplayLength === -1 ? 0 : Math.ceil(oSettings._iDisplayStart / oSettings._iDisplayLength),
|
124
|
+
"iTotalPages": oSettings._iDisplayLength === -1 ? 0 : Math.ceil(oSettings.fnRecordsDisplay() / oSettings._iDisplayLength)
|
125
|
+
};
|
126
|
+
};
|
127
|
+
|
128
|
+
/* Bootstrap style pagination control */
|
129
|
+
$.extend($.fn.dataTableExt.oPagination, {
|
130
|
+
"bootstrap": {
|
131
|
+
"fnInit": function(oSettings, nPaging, fnDraw) {
|
132
|
+
var oLang = oSettings.oLanguage.oPaginate;
|
133
|
+
var fnClickHandler = function(e) {
|
134
|
+
e.preventDefault();
|
135
|
+
if (oSettings.oApi._fnPageChange(oSettings, e.data.action)) {
|
136
|
+
fnDraw(oSettings);
|
137
|
+
}
|
138
|
+
};
|
139
|
+
|
140
|
+
$(nPaging).append(
|
141
|
+
'<ul class="pagination">' +
|
142
|
+
'<li class="prev disabled"><a href="#">← ' + oLang.sPrevious + '</a></li>' +
|
143
|
+
'<li class="next disabled"><a href="#">' + oLang.sNext + ' → </a></li>' +
|
144
|
+
'</ul>'
|
145
|
+
);
|
146
|
+
var els = $('a', nPaging);
|
147
|
+
$(els[0]).bind('click.DT', {
|
148
|
+
action: "previous"
|
149
|
+
}, fnClickHandler);
|
150
|
+
$(els[1]).bind('click.DT', {
|
151
|
+
action: "next"
|
152
|
+
}, fnClickHandler);
|
153
|
+
},
|
154
|
+
|
155
|
+
"fnUpdate": function(oSettings, fnDraw) {
|
156
|
+
var iListLength = 5;
|
157
|
+
var oPaging = oSettings.oInstance.fnPagingInfo();
|
158
|
+
var an = oSettings.aanFeatures.p;
|
159
|
+
var i, ien, j, sClass, iStart, iEnd, iHalf = Math.floor(iListLength / 2);
|
160
|
+
|
161
|
+
if (oPaging.iTotalPages < iListLength) {
|
162
|
+
iStart = 1;
|
163
|
+
iEnd = oPaging.iTotalPages;
|
164
|
+
} else if (oPaging.iPage <= iHalf) {
|
165
|
+
iStart = 1;
|
166
|
+
iEnd = iListLength;
|
167
|
+
} else if (oPaging.iPage >= (oPaging.iTotalPages - iHalf)) {
|
168
|
+
iStart = oPaging.iTotalPages - iListLength + 1;
|
169
|
+
iEnd = oPaging.iTotalPages;
|
170
|
+
} else {
|
171
|
+
iStart = oPaging.iPage - iHalf + 1;
|
172
|
+
iEnd = iStart + iListLength - 1;
|
173
|
+
}
|
174
|
+
|
175
|
+
for (i = 0, ien = an.length; i < ien; i++) {
|
176
|
+
// Remove the middle elements
|
177
|
+
$('li:gt(0)', an[i]).filter(':not(:last)').remove();
|
178
|
+
|
179
|
+
// Add the new list items and their event handlers
|
180
|
+
for (j = iStart; j <= iEnd; j++) {
|
181
|
+
sClass = (j == oPaging.iPage + 1) ? 'class="active"' : '';
|
182
|
+
$('<li ' + sClass + '><a href="#">' + j + '</a></li>')
|
183
|
+
.insertBefore($('li:last', an[i])[0])
|
184
|
+
.bind('click', function(e) {
|
185
|
+
e.preventDefault();
|
186
|
+
oSettings._iDisplayStart = (parseInt($('a', this).text(), 10) - 1) * oPaging.iLength;
|
187
|
+
fnDraw(oSettings);
|
188
|
+
});
|
189
|
+
}
|
190
|
+
|
191
|
+
// Add / remove disabled classes from the static elements
|
192
|
+
if (oPaging.iPage === 0) {
|
193
|
+
$('li:first', an[i]).addClass('disabled');
|
194
|
+
} else {
|
195
|
+
$('li:first', an[i]).removeClass('disabled');
|
196
|
+
}
|
197
|
+
|
198
|
+
if (oPaging.iPage === oPaging.iTotalPages - 1 || oPaging.iTotalPages === 0) {
|
199
|
+
$('li:last', an[i]).addClass('disabled');
|
200
|
+
} else {
|
201
|
+
$('li:last', an[i]).removeClass('disabled');
|
202
|
+
}
|
203
|
+
}
|
204
|
+
}
|
205
|
+
}
|
206
|
+
});
|
207
|
+
}
|
208
|
+
|
209
|
+
|
210
|
+
/*
|
211
|
+
* TableTools Bootstrap compatibility
|
212
|
+
* Required TableTools 2.1+
|
213
|
+
*/
|
214
|
+
if ($.fn.DataTable.TableTools) {
|
215
|
+
// Set the classes that TableTools uses to something suitable for Bootstrap
|
216
|
+
$.extend(true, $.fn.DataTable.TableTools.classes, {
|
217
|
+
"container": "DTTT btn-group",
|
218
|
+
"buttons": {
|
219
|
+
"normal": "btn btn-default",
|
220
|
+
"disabled": "disabled"
|
221
|
+
},
|
222
|
+
"collection": {
|
223
|
+
"container": "DTTT_dropdown dropdown-menu",
|
224
|
+
"buttons": {
|
225
|
+
"normal": "",
|
226
|
+
"disabled": "disabled"
|
227
|
+
}
|
228
|
+
},
|
229
|
+
"print": {
|
230
|
+
"info": "DTTT_print_info modal"
|
231
|
+
},
|
232
|
+
"select": {
|
233
|
+
"row": "active"
|
234
|
+
}
|
235
|
+
});
|
236
|
+
|
237
|
+
// Have the collection use a bootstrap compatible dropdown
|
238
|
+
$.extend(true, $.fn.DataTable.TableTools.DEFAULTS.oTags, {
|
239
|
+
"collection": {
|
240
|
+
"container": "ul",
|
241
|
+
"button": "li",
|
242
|
+
"liner": "a"
|
243
|
+
}
|
244
|
+
});
|
245
|
+
}
|