compass-jquery-plugin 0.3.2.8 → 0.3.3.0
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +24 -6
- data/VERSION.yml +3 -3
- data/lib/jquery/gridify/grid_column.rb +6 -6
- data/lib/jquery/gridify/grid_options.rb +4 -4
- data/lib/jquery/mark_it_up.rb +2 -0
- data/lib/jquery/mobile.rb +0 -1
- data/templates/dynatree/jquery.dynatree.js +2896 -2880
- data/templates/dynatree/jquery.dynatree.min.js +55 -54
- data/templates/dynatree/jquery/dynatree/aero.scss +4 -2
- data/templates/dynatree/jquery/dynatree/aqua.scss +4 -2
- data/templates/dynatree/jquery/dynatree/crystal.scss +4 -2
- data/templates/dynatree/jquery/dynatree/xp.scss +5 -3
- data/templates/emulators/emulators/bb.playbook.landscape.png +0 -0
- data/templates/emulators/emulators/bb.playbook.landscape.scss +18 -0
- data/templates/emulators/emulators/bb.playbook.portrait.png +0 -0
- data/templates/emulators/emulators/bb.playbook.portrait.scss +18 -0
- data/templates/emulators/emulators/{blackberry.torch.landscape.png → bb.torch.landscape.png} +0 -0
- data/templates/emulators/emulators/{blackberry.torch.landscape.scss → bb.torch.landscape.scss} +1 -3
- data/templates/emulators/emulators/{blackberry.torch.portrait.png → bb.torch.portrait.png} +0 -0
- data/templates/emulators/emulators/{blackberry.torch.portrait.scss → bb.torch.portrait.scss} +1 -3
- data/templates/emulators/emulators/galaxy.ace.landscape.png +0 -0
- data/templates/emulators/emulators/galaxy.ace.landscape.scss +18 -0
- data/templates/emulators/emulators/galaxy.ace.portrait.png +0 -0
- data/templates/emulators/emulators/galaxy.ace.portrait.scss +18 -0
- data/templates/emulators/emulators/galaxy.s.landscape.scss +0 -2
- data/templates/emulators/emulators/galaxy.s.portrait.scss +0 -2
- data/templates/emulators/emulators/galaxy.s2.landscape.scss +0 -2
- data/templates/emulators/emulators/galaxy.s2.portrait.scss +0 -2
- data/templates/emulators/emulators/galaxy.tab.10.1.landscape.scss +0 -2
- data/templates/emulators/emulators/galaxy.tab.10.1.portrait.scss +0 -2
- data/templates/emulators/emulators/galaxy.tab.7.landscape.scss +0 -2
- data/templates/emulators/emulators/galaxy.tab.7.portrait.scss +0 -2
- data/templates/emulators/emulators/galaxy.tab.8.9.landscape.scss +0 -2
- data/templates/emulators/emulators/galaxy.tab.8.9.portrait.scss +0 -2
- data/templates/emulators/emulators/htc.sensation.landscape.png +0 -0
- data/templates/emulators/emulators/htc.sensation.landscape.scss +18 -0
- data/templates/emulators/emulators/htc.sensation.portrait.png +0 -0
- data/templates/emulators/emulators/htc.sensation.portrait.scss +18 -0
- data/templates/emulators/emulators/ipad.landscape.scss +0 -2
- data/templates/emulators/emulators/ipad.portrait.scss +0 -2
- data/templates/emulators/emulators/iphone.3.landscape.scss +0 -2
- data/templates/emulators/emulators/iphone.3.portrait.scss +0 -2
- data/templates/emulators/emulators/{iphone.4.landscape .scss → iphone.4.landscape.scss} +0 -2
- data/templates/emulators/emulators/iphone.4.portrait.scss +0 -2
- data/templates/emulators/emulators/palm.pre.2.landscape.scss +0 -2
- data/templates/emulators/emulators/palm.pre.2.portrait.scss +0 -2
- data/templates/emulators/manifest.rb +17 -5
- data/templates/graphics/highcharts/dark-blue.js +159 -159
- data/templates/graphics/highcharts/dark-green.js +159 -159
- data/templates/graphics/highcharts/gray.js +154 -154
- data/templates/graphics/highcharts/grid.js +84 -84
- data/templates/graphics/highcharts/highslide-config.js +2 -2
- data/templates/graphics/highcharts/highslide-full.js +3310 -3310
- data/templates/graphics/highcharts/skies.js +72 -72
- data/templates/graphics/jquery.ganttView.js +1550 -1550
- data/templates/graphics/jquery.highcharts.js +11277 -11285
- data/templates/graphics/jquery.sparkline.js +1072 -1072
- data/templates/ical/jquery.ical.js +7637 -7637
- data/templates/ical/jquery/ical.print.scss +3 -3
- data/templates/jqgrid/i18n/jqgrid/locale-ar.js +127 -127
- data/templates/jqgrid/i18n/jqgrid/locale-bg.js +131 -131
- data/templates/jqgrid/i18n/jqgrid/locale-bg1251.js +131 -131
- data/templates/jqgrid/i18n/jqgrid/locale-cat.js +128 -128
- data/templates/jqgrid/i18n/jqgrid/locale-cn.js +132 -132
- data/templates/jqgrid/i18n/jqgrid/locale-cs.js +129 -129
- data/templates/jqgrid/i18n/jqgrid/locale-da.js +128 -128
- data/templates/jqgrid/i18n/jqgrid/locale-de.js +134 -134
- data/templates/jqgrid/i18n/jqgrid/locale-el.js +127 -127
- data/templates/jqgrid/i18n/jqgrid/locale-en.js +128 -128
- data/templates/jqgrid/i18n/jqgrid/locale-es.js +129 -129
- data/templates/jqgrid/i18n/jqgrid/locale-fa.js +141 -141
- data/templates/jqgrid/i18n/jqgrid/locale-fi.js +128 -128
- data/templates/jqgrid/i18n/jqgrid/locale-fr.js +127 -127
- data/templates/jqgrid/i18n/jqgrid/locale-gl.js +127 -127
- data/templates/jqgrid/i18n/jqgrid/locale-he.js +128 -128
- data/templates/jqgrid/i18n/jqgrid/locale-hu.js +128 -128
- data/templates/jqgrid/i18n/jqgrid/locale-is.js +127 -127
- data/templates/jqgrid/i18n/jqgrid/locale-it.js +6 -6
- data/templates/jqgrid/i18n/jqgrid/locale-ja.js +153 -153
- data/templates/jqgrid/i18n/jqgrid/locale-lt.js +128 -128
- data/templates/jqgrid/i18n/jqgrid/locale-mne.js +134 -0
- data/templates/jqgrid/i18n/jqgrid/locale-mne.min.js +7 -0
- data/templates/jqgrid/i18n/jqgrid/locale-nl.js +145 -145
- data/templates/jqgrid/i18n/jqgrid/locale-no.js +12 -12
- data/templates/jqgrid/i18n/jqgrid/locale-pl.js +128 -128
- data/templates/jqgrid/i18n/jqgrid/locale-pt-br.js +128 -128
- data/templates/jqgrid/i18n/jqgrid/locale-pt.js +126 -126
- data/templates/jqgrid/i18n/jqgrid/locale-ro.js +140 -140
- data/templates/jqgrid/i18n/jqgrid/locale-ru.js +128 -128
- data/templates/jqgrid/i18n/jqgrid/locale-sk.js +128 -128
- data/templates/jqgrid/i18n/jqgrid/locale-sr.js +128 -128
- data/templates/jqgrid/i18n/jqgrid/locale-sv.js +128 -128
- data/templates/jqgrid/i18n/jqgrid/locale-tr.js +127 -127
- data/templates/jqgrid/i18n/jqgrid/locale-ua.js +128 -128
- data/templates/jqgrid/jquery.jqGrid.js +13477 -13443
- data/templates/jqgrid/jquery.jqGrid.min.js +292 -287
- data/templates/jqgrid/jquery/jqGrid.scss +13 -12
- data/templates/jqgrid/manifest.rb +2 -0
- data/templates/jqtouch/jquery.jqtouch.js +9601 -9556
- data/templates/jqtouch/jquery.jqtouch.min.js +3 -3
- data/templates/jqtouch/jquery/touch/default.scss +2 -2
- data/templates/jqtouch/jquery/touch/jqt.scss +2 -2
- data/templates/jqtouch/jquery/touch/jqtouch.scss +26 -5
- data/templates/jquery/amplify.store.js +211 -211
- data/templates/jquery/config/initializers/jquery.rb +2 -0
- data/templates/jquery/history.adapter.jquery.js +42 -36
- data/templates/jquery/history.html4.js +563 -563
- data/templates/jquery/history.html4.min.js +5 -5
- data/templates/jquery/history.js +1721 -1694
- data/templates/jquery/history.min.js +28 -27
- data/templates/jquery/i18n/jquery.ui/datepicker-af.js +20 -20
- data/templates/jquery/i18n/jquery.ui/datepicker-ar-DZ.js +18 -18
- data/templates/jquery/i18n/jquery.ui/datepicker-ar.js +19 -19
- data/templates/jquery/i18n/jquery.ui/datepicker-az.js +20 -20
- data/templates/jquery/i18n/jquery.ui/datepicker-bg.js +21 -21
- data/templates/jquery/i18n/jquery.ui/datepicker-bs.js +20 -20
- data/templates/jquery/i18n/jquery.ui/datepicker-ca.js +19 -19
- data/templates/jquery/i18n/jquery.ui/datepicker-cs.js +20 -20
- data/templates/jquery/i18n/jquery.ui/datepicker-da.js +20 -20
- data/templates/jquery/i18n/jquery.ui/datepicker-de.js +20 -20
- data/templates/jquery/i18n/jquery.ui/datepicker-el.js +20 -20
- data/templates/jquery/i18n/jquery.ui/datepicker-en-AU.js +19 -19
- data/templates/jquery/i18n/jquery.ui/datepicker-en-GB.js +20 -20
- data/templates/jquery/i18n/jquery.ui/datepicker-en-NZ.js +19 -19
- data/templates/jquery/i18n/jquery.ui/datepicker-eo.js +20 -20
- data/templates/jquery/i18n/jquery.ui/datepicker-es.js +19 -19
- data/templates/jquery/i18n/jquery.ui/datepicker-et.js +20 -20
- data/templates/jquery/i18n/jquery.ui/datepicker-eu.js +20 -20
- data/templates/jquery/i18n/jquery.ui/datepicker-fa.js +19 -19
- data/templates/jquery/i18n/jquery.ui/datepicker-fi.js +19 -19
- data/templates/jquery/i18n/jquery.ui/datepicker-fo.js +20 -20
- data/templates/jquery/i18n/jquery.ui/datepicker-fr-CH.js +20 -20
- data/templates/jquery/i18n/jquery.ui/datepicker-fr.js +20 -20
- data/templates/jquery/i18n/jquery.ui/datepicker-gl.js +19 -19
- data/templates/jquery/i18n/jquery.ui/datepicker-he.js +20 -20
- data/templates/jquery/i18n/jquery.ui/datepicker-hr.js +20 -20
- data/templates/jquery/i18n/jquery.ui/datepicker-hu.js +19 -19
- data/templates/jquery/i18n/jquery.ui/datepicker-hy.js +19 -19
- data/templates/jquery/i18n/jquery.ui/datepicker-id.js +19 -19
- data/templates/jquery/i18n/jquery.ui/datepicker-is.js +19 -19
- data/templates/jquery/i18n/jquery.ui/datepicker-it.js +19 -19
- data/templates/jquery/i18n/jquery.ui/datepicker-ja.js +20 -20
- data/templates/jquery/i18n/jquery.ui/datepicker-ko.js +19 -19
- data/templates/jquery/i18n/jquery.ui/datepicker-kz.js +19 -19
- data/templates/jquery/i18n/jquery.ui/datepicker-lt.js +19 -19
- data/templates/jquery/i18n/jquery.ui/datepicker-lv.js +19 -19
- data/templates/jquery/i18n/jquery.ui/datepicker-ml.js +20 -20
- data/templates/jquery/i18n/jquery.ui/datepicker-ms.js +19 -19
- data/templates/jquery/i18n/jquery.ui/datepicker-nl.js +20 -20
- data/templates/jquery/i18n/jquery.ui/datepicker-nl.min.js +1 -1
- data/templates/jquery/i18n/jquery.ui/datepicker-no.js +18 -18
- data/templates/jquery/i18n/jquery.ui/datepicker-pl.js +19 -19
- data/templates/jquery/i18n/jquery.ui/datepicker-pt-BR.js +19 -19
- data/templates/jquery/i18n/jquery.ui/datepicker-pt.js +19 -19
- data/templates/jquery/i18n/jquery.ui/datepicker-rm.js +17 -17
- data/templates/jquery/i18n/jquery.ui/datepicker-ro.js +20 -20
- data/templates/jquery/i18n/jquery.ui/datepicker-ru.js +19 -19
- data/templates/jquery/i18n/jquery.ui/datepicker-sk.js +19 -19
- data/templates/jquery/i18n/jquery.ui/datepicker-sk.min.js +1 -1
- data/templates/jquery/i18n/jquery.ui/datepicker-sl.js +19 -19
- data/templates/jquery/i18n/jquery.ui/datepicker-sq.js +20 -20
- data/templates/jquery/i18n/jquery.ui/datepicker-sr-SR.js +20 -20
- data/templates/jquery/i18n/jquery.ui/datepicker-sr.js +20 -20
- data/templates/jquery/i18n/jquery.ui/datepicker-sv.js +20 -20
- data/templates/jquery/i18n/jquery.ui/datepicker-ta.js +20 -20
- data/templates/jquery/i18n/jquery.ui/datepicker-th.js +20 -20
- data/templates/jquery/i18n/jquery.ui/datepicker-tj.js +19 -19
- data/templates/jquery/i18n/jquery.ui/datepicker-tr.js +19 -19
- data/templates/jquery/i18n/jquery.ui/datepicker-uk.js +19 -19
- data/templates/jquery/i18n/jquery.ui/datepicker-vi.js +20 -20
- data/templates/jquery/i18n/jquery.ui/datepicker-zh-CN.js +19 -19
- data/templates/jquery/i18n/jquery.ui/datepicker-zh-HK.js +19 -19
- data/templates/jquery/i18n/jquery.ui/datepicker-zh-TW.js +20 -20
- data/templates/jquery/jquery-ui.js +11913 -11882
- data/templates/jquery/jquery-ui.min.js +340 -339
- data/templates/jquery/jquery.bgiframe.js +27 -27
- data/templates/jquery/jquery.contextMenu.js +202 -202
- data/templates/jquery/jquery.cookie.js +26 -26
- data/templates/jquery/jquery.dotimeout.js +227 -227
- data/templates/jquery/jquery.dst.js +89 -89
- data/templates/jquery/jquery.easing.js +226 -0
- data/templates/jquery/jquery.easing.min.js +8 -0
- data/templates/jquery/jquery.farbtastic.js +294 -294
- data/templates/jquery/jquery.flashMessages.js +14 -14
- data/templates/jquery/jquery.form.js +761 -761
- data/templates/jquery/jquery.haml.js +247 -247
- data/templates/jquery/jquery.hotkeys.js +79 -79
- data/templates/jquery/jquery.js +1490 -928
- data/templates/jquery/jquery.layout.js +2454 -2454
- data/templates/jquery/jquery.mediahelpers.js +216 -0
- data/templates/jquery/jquery.mediahelpers.min.js +3 -0
- data/templates/jquery/jquery.min.js +177 -166
- data/templates/jquery/jquery.mousewheel.js +57 -57
- data/templates/jquery/jquery.offline.js +171 -171
- data/templates/jquery/jquery.pngFix.js +72 -72
- data/templates/jquery/jquery.rails.js +145 -145
- data/templates/jquery/jquery.replacetext.js +80 -80
- data/templates/jquery/jquery.themeswitchertool.js +195 -195
- data/templates/jquery/jquery.tmpl.js +460 -460
- data/templates/jquery/jquery.tmplPlus.js +78 -78
- data/templates/jquery/jquery.tokeninput.js +480 -475
- data/templates/jquery/jquery/ui/_theme.scss +14 -14
- data/templates/jquery/jquery/ui/black-tie/ui-icons_4ca300_256x240.png +0 -0
- data/templates/jquery/jquery/ui/black-tie/ui-icons_bbbbbb_256x240.png +0 -0
- data/templates/jquery/jquery/ui/black-tie/ui-icons_ededed_256x240.png +0 -0
- data/templates/jquery/jquery/ui/black-tie/ui-icons_ffcf29_256x240.png +0 -0
- data/templates/jquery/jquery/ui/vader/ui-bg_glass_95_fef1ec_1x400.png +0 -0
- data/templates/jquery/jquery/ui/vader/ui-icons_bbbbbb_256x240.png +0 -0
- data/templates/jquery/jquery/ui/vader/ui-icons_c98000_256x240.png +0 -0
- data/templates/jquery/jquery/ui/vader/ui-icons_f29a00_256x240.png +0 -0
- data/templates/jquery/json.js +66 -66
- data/templates/jquery/json2.js +177 -177
- data/templates/jquery/manifest.rb +4 -0
- data/templates/jstree/jquery.jstree.js +5918 -5918
- data/templates/markitup/app/views/shared/_mark_it_up.parsed.preview.blue.html.haml +9 -0
- data/templates/markitup/app/views/shared/_mark_it_up.parsed.preview.html.haml +9 -0
- data/templates/markitup/app/views/shared/_mark_it_up.preview.blue.html.haml +8 -0
- data/templates/markitup/app/views/shared/_mark_it_up.preview.html.haml +8 -0
- data/templates/markitup/config/initializers/mark_it_up.rb +40 -0
- data/templates/markitup/jquery.markitup.js +586 -0
- data/templates/markitup/jquery.markitup.min.js +1 -0
- data/templates/markitup/jquery/markitup/preview/body.blue.png +0 -0
- data/templates/markitup/jquery/markitup/preview/bullet.blue.png +0 -0
- data/templates/markitup/jquery/markitup/preview/preview.blue.scss +58 -0
- data/templates/markitup/jquery/markitup/preview/preview.scss +7 -0
- data/templates/markitup/jquery/markitup/sets/bbcode.scss +34 -0
- data/templates/markitup/jquery/markitup/sets/bbcode/bold.png +0 -0
- data/templates/markitup/jquery/markitup/sets/bbcode/clean.png +0 -0
- data/templates/markitup/jquery/markitup/sets/bbcode/code.png +0 -0
- data/templates/markitup/jquery/markitup/sets/bbcode/fonts.png +0 -0
- data/templates/markitup/jquery/markitup/sets/bbcode/italic.png +0 -0
- data/templates/markitup/jquery/markitup/sets/bbcode/link.png +0 -0
- data/templates/markitup/jquery/markitup/sets/bbcode/list-bullet.png +0 -0
- data/templates/markitup/jquery/markitup/sets/bbcode/list-item.png +0 -0
- data/templates/markitup/jquery/markitup/sets/bbcode/list-numeric.png +0 -0
- data/templates/markitup/jquery/markitup/sets/bbcode/picture.png +0 -0
- data/templates/markitup/jquery/markitup/sets/bbcode/preview.png +0 -0
- data/templates/markitup/jquery/markitup/sets/bbcode/quotes.png +0 -0
- data/templates/markitup/jquery/markitup/sets/bbcode/stroke.png +0 -0
- data/templates/markitup/jquery/markitup/sets/bbcode/underline.png +0 -0
- data/templates/markitup/jquery/markitup/sets/css.scss +54 -0
- data/templates/markitup/jquery/markitup/sets/css/bold.png +0 -0
- data/templates/markitup/jquery/markitup/sets/css/css.png +0 -0
- data/templates/markitup/jquery/markitup/sets/css/italic.png +0 -0
- data/templates/markitup/jquery/markitup/sets/css/picture.png +0 -0
- data/templates/markitup/jquery/markitup/sets/css/stroke.png +0 -0
- data/templates/markitup/jquery/markitup/sets/css/tag.png +0 -0
- data/templates/markitup/jquery/markitup/sets/css/text_align_center.png +0 -0
- data/templates/markitup/jquery/markitup/sets/css/text_align_justify.png +0 -0
- data/templates/markitup/jquery/markitup/sets/css/text_align_left.png +0 -0
- data/templates/markitup/jquery/markitup/sets/css/text_align_right.png +0 -0
- data/templates/markitup/jquery/markitup/sets/css/text_indent.png +0 -0
- data/templates/markitup/jquery/markitup/sets/css/text_letterspacing.png +0 -0
- data/templates/markitup/jquery/markitup/sets/css/text_linespacing.png +0 -0
- data/templates/markitup/jquery/markitup/sets/css/text_lowercase.png +0 -0
- data/templates/markitup/jquery/markitup/sets/css/text_padding_bottom.png +0 -0
- data/templates/markitup/jquery/markitup/sets/css/text_padding_left.png +0 -0
- data/templates/markitup/jquery/markitup/sets/css/text_padding_right.png +0 -0
- data/templates/markitup/jquery/markitup/sets/css/text_padding_top.png +0 -0
- data/templates/markitup/jquery/markitup/sets/css/text_uppercase.png +0 -0
- data/templates/markitup/jquery/markitup/sets/default.scss +22 -0
- data/templates/markitup/jquery/markitup/sets/default/bold.png +0 -0
- data/templates/markitup/jquery/markitup/sets/default/clean.png +0 -0
- data/templates/markitup/jquery/markitup/sets/default/image.png +0 -0
- data/templates/markitup/jquery/markitup/sets/default/italic.png +0 -0
- data/templates/markitup/jquery/markitup/sets/default/link.png +0 -0
- data/templates/markitup/jquery/markitup/sets/default/picture.png +0 -0
- data/templates/markitup/jquery/markitup/sets/default/preview.png +0 -0
- data/templates/markitup/jquery/markitup/sets/default/stroke.png +0 -0
- data/templates/markitup/jquery/markitup/sets/dotclear.scss +38 -0
- data/templates/markitup/jquery/markitup/sets/dotclear/bold.png +0 -0
- data/templates/markitup/jquery/markitup/sets/dotclear/code.png +0 -0
- data/templates/markitup/jquery/markitup/sets/dotclear/h1.png +0 -0
- data/templates/markitup/jquery/markitup/sets/dotclear/h2.png +0 -0
- data/templates/markitup/jquery/markitup/sets/dotclear/h3.png +0 -0
- data/templates/markitup/jquery/markitup/sets/dotclear/h4.png +0 -0
- data/templates/markitup/jquery/markitup/sets/dotclear/h5.png +0 -0
- data/templates/markitup/jquery/markitup/sets/dotclear/h6.png +0 -0
- data/templates/markitup/jquery/markitup/sets/dotclear/italic.png +0 -0
- data/templates/markitup/jquery/markitup/sets/dotclear/link.png +0 -0
- data/templates/markitup/jquery/markitup/sets/dotclear/list-bullet.png +0 -0
- data/templates/markitup/jquery/markitup/sets/dotclear/list-numeric.png +0 -0
- data/templates/markitup/jquery/markitup/sets/dotclear/picture.png +0 -0
- data/templates/markitup/jquery/markitup/sets/dotclear/preview.png +0 -0
- data/templates/markitup/jquery/markitup/sets/dotclear/quotes.png +0 -0
- data/templates/markitup/jquery/markitup/sets/dotclear/stroke.png +0 -0
- data/templates/markitup/jquery/markitup/sets/dotclear/url.png +0 -0
- data/templates/markitup/jquery/markitup/sets/html.scss +42 -0
- data/templates/markitup/jquery/markitup/sets/html/bold.png +0 -0
- data/templates/markitup/jquery/markitup/sets/html/clean.png +0 -0
- data/templates/markitup/jquery/markitup/sets/html/h1.png +0 -0
- data/templates/markitup/jquery/markitup/sets/html/h2.png +0 -0
- data/templates/markitup/jquery/markitup/sets/html/h3.png +0 -0
- data/templates/markitup/jquery/markitup/sets/html/h4.png +0 -0
- data/templates/markitup/jquery/markitup/sets/html/h5.png +0 -0
- data/templates/markitup/jquery/markitup/sets/html/h6.png +0 -0
- data/templates/markitup/jquery/markitup/sets/html/image.png +0 -0
- data/templates/markitup/jquery/markitup/sets/html/italic.png +0 -0
- data/templates/markitup/jquery/markitup/sets/html/link.png +0 -0
- data/templates/markitup/jquery/markitup/sets/html/list-bullet.png +0 -0
- data/templates/markitup/jquery/markitup/sets/html/list-item.png +0 -0
- data/templates/markitup/jquery/markitup/sets/html/list-numeric.png +0 -0
- data/templates/markitup/jquery/markitup/sets/html/paragraph.png +0 -0
- data/templates/markitup/jquery/markitup/sets/html/picture.png +0 -0
- data/templates/markitup/jquery/markitup/sets/html/preview.png +0 -0
- data/templates/markitup/jquery/markitup/sets/html/stroke.png +0 -0
- data/templates/markitup/jquery/markitup/sets/markdown.scss +38 -0
- data/templates/markitup/jquery/markitup/sets/markdown/bold.png +0 -0
- data/templates/markitup/jquery/markitup/sets/markdown/code.png +0 -0
- data/templates/markitup/jquery/markitup/sets/markdown/h1.png +0 -0
- data/templates/markitup/jquery/markitup/sets/markdown/h2.png +0 -0
- data/templates/markitup/jquery/markitup/sets/markdown/h3.png +0 -0
- data/templates/markitup/jquery/markitup/sets/markdown/h4.png +0 -0
- data/templates/markitup/jquery/markitup/sets/markdown/h5.png +0 -0
- data/templates/markitup/jquery/markitup/sets/markdown/h6.png +0 -0
- data/templates/markitup/jquery/markitup/sets/markdown/italic.png +0 -0
- data/templates/markitup/jquery/markitup/sets/markdown/link.png +0 -0
- data/templates/markitup/jquery/markitup/sets/markdown/list-bullet.png +0 -0
- data/templates/markitup/jquery/markitup/sets/markdown/list-numeric.png +0 -0
- data/templates/markitup/jquery/markitup/sets/markdown/picture.png +0 -0
- data/templates/markitup/jquery/markitup/sets/markdown/preview.png +0 -0
- data/templates/markitup/jquery/markitup/sets/markdown/quotes.png +0 -0
- data/templates/markitup/jquery/markitup/sets/markmin.scss +38 -0
- data/templates/markitup/jquery/markitup/sets/markmin/bold.png +0 -0
- data/templates/markitup/jquery/markitup/sets/markmin/code.png +0 -0
- data/templates/markitup/jquery/markitup/sets/markmin/h1.png +0 -0
- data/templates/markitup/jquery/markitup/sets/markmin/h2.png +0 -0
- data/templates/markitup/jquery/markitup/sets/markmin/h3.png +0 -0
- data/templates/markitup/jquery/markitup/sets/markmin/h4.png +0 -0
- data/templates/markitup/jquery/markitup/sets/markmin/h5.png +0 -0
- data/templates/markitup/jquery/markitup/sets/markmin/h6.png +0 -0
- data/templates/markitup/jquery/markitup/sets/markmin/italic.png +0 -0
- data/templates/markitup/jquery/markitup/sets/markmin/link.png +0 -0
- data/templates/markitup/jquery/markitup/sets/markmin/list-bullet.png +0 -0
- data/templates/markitup/jquery/markitup/sets/markmin/list-numeric.png +0 -0
- data/templates/markitup/jquery/markitup/sets/markmin/picture.png +0 -0
- data/templates/markitup/jquery/markitup/sets/markmin/preview.png +0 -0
- data/templates/markitup/jquery/markitup/sets/markmin/quotes.png +0 -0
- data/templates/markitup/jquery/markitup/sets/rest.scss +38 -0
- data/templates/markitup/jquery/markitup/sets/rest/bold.png +0 -0
- data/templates/markitup/jquery/markitup/sets/rest/code.png +0 -0
- data/templates/markitup/jquery/markitup/sets/rest/h1.png +0 -0
- data/templates/markitup/jquery/markitup/sets/rest/h2.png +0 -0
- data/templates/markitup/jquery/markitup/sets/rest/h3.png +0 -0
- data/templates/markitup/jquery/markitup/sets/rest/h4.png +0 -0
- data/templates/markitup/jquery/markitup/sets/rest/h5.png +0 -0
- data/templates/markitup/jquery/markitup/sets/rest/italic.png +0 -0
- data/templates/markitup/jquery/markitup/sets/rest/link.png +0 -0
- data/templates/markitup/jquery/markitup/sets/rest/list-bullet.png +0 -0
- data/templates/markitup/jquery/markitup/sets/rest/list-numeric.png +0 -0
- data/templates/markitup/jquery/markitup/sets/rest/picture.png +0 -0
- data/templates/markitup/jquery/markitup/sets/rest/preview.png +0 -0
- data/templates/markitup/jquery/markitup/sets/rest/quotes.png +0 -0
- data/templates/markitup/jquery/markitup/sets/textile.scss +44 -0
- data/templates/markitup/jquery/markitup/sets/textile/bold.png +0 -0
- data/templates/markitup/jquery/markitup/sets/textile/code.png +0 -0
- data/templates/markitup/jquery/markitup/sets/textile/h1.png +0 -0
- data/templates/markitup/jquery/markitup/sets/textile/h2.png +0 -0
- data/templates/markitup/jquery/markitup/sets/textile/h3.png +0 -0
- data/templates/markitup/jquery/markitup/sets/textile/h4.png +0 -0
- data/templates/markitup/jquery/markitup/sets/textile/h5.png +0 -0
- data/templates/markitup/jquery/markitup/sets/textile/h6.png +0 -0
- data/templates/markitup/jquery/markitup/sets/textile/italic.png +0 -0
- data/templates/markitup/jquery/markitup/sets/textile/link.png +0 -0
- data/templates/markitup/jquery/markitup/sets/textile/list-bullet.png +0 -0
- data/templates/markitup/jquery/markitup/sets/textile/list-numeric.png +0 -0
- data/templates/markitup/jquery/markitup/sets/textile/paragraph.png +0 -0
- data/templates/markitup/jquery/markitup/sets/textile/picture.png +0 -0
- data/templates/markitup/jquery/markitup/sets/textile/preview.png +0 -0
- data/templates/markitup/jquery/markitup/sets/textile/quotes.png +0 -0
- data/templates/markitup/jquery/markitup/sets/textile/stroke.png +0 -0
- data/templates/markitup/jquery/markitup/sets/textile/table.png +0 -0
- data/templates/markitup/jquery/markitup/sets/texy.scss +40 -0
- data/templates/markitup/jquery/markitup/sets/texy/bold.png +0 -0
- data/templates/markitup/jquery/markitup/sets/texy/code.png +0 -0
- data/templates/markitup/jquery/markitup/sets/texy/disconnect.png +0 -0
- data/templates/markitup/jquery/markitup/sets/texy/h1.png +0 -0
- data/templates/markitup/jquery/markitup/sets/texy/h2.png +0 -0
- data/templates/markitup/jquery/markitup/sets/texy/h3.png +0 -0
- data/templates/markitup/jquery/markitup/sets/texy/h4.png +0 -0
- data/templates/markitup/jquery/markitup/sets/texy/h5.png +0 -0
- data/templates/markitup/jquery/markitup/sets/texy/h6.png +0 -0
- data/templates/markitup/jquery/markitup/sets/texy/italic.png +0 -0
- data/templates/markitup/jquery/markitup/sets/texy/link.png +0 -0
- data/templates/markitup/jquery/markitup/sets/texy/list-bullet.png +0 -0
- data/templates/markitup/jquery/markitup/sets/texy/list-numeric.png +0 -0
- data/templates/markitup/jquery/markitup/sets/texy/page_white_code.png +0 -0
- data/templates/markitup/jquery/markitup/sets/texy/picture.png +0 -0
- data/templates/markitup/jquery/markitup/sets/texy/preview.png +0 -0
- data/templates/markitup/jquery/markitup/sets/texy/quotes.png +0 -0
- data/templates/markitup/jquery/markitup/sets/texy/stroke.png +0 -0
- data/templates/markitup/jquery/markitup/sets/txt2tags.scss +44 -0
- data/templates/markitup/jquery/markitup/sets/txt2tags/bold.png +0 -0
- data/templates/markitup/jquery/markitup/sets/txt2tags/code.png +0 -0
- data/templates/markitup/jquery/markitup/sets/txt2tags/disconnect.png +0 -0
- data/templates/markitup/jquery/markitup/sets/txt2tags/h1.png +0 -0
- data/templates/markitup/jquery/markitup/sets/txt2tags/h2.png +0 -0
- data/templates/markitup/jquery/markitup/sets/txt2tags/h3.png +0 -0
- data/templates/markitup/jquery/markitup/sets/txt2tags/h4.png +0 -0
- data/templates/markitup/jquery/markitup/sets/txt2tags/h5.png +0 -0
- data/templates/markitup/jquery/markitup/sets/txt2tags/italic.png +0 -0
- data/templates/markitup/jquery/markitup/sets/txt2tags/link.png +0 -0
- data/templates/markitup/jquery/markitup/sets/txt2tags/list-bullet.png +0 -0
- data/templates/markitup/jquery/markitup/sets/txt2tags/list-numeric.png +0 -0
- data/templates/markitup/jquery/markitup/sets/txt2tags/picture.png +0 -0
- data/templates/markitup/jquery/markitup/sets/txt2tags/preview.png +0 -0
- data/templates/markitup/jquery/markitup/sets/txt2tags/quotes.png +0 -0
- data/templates/markitup/jquery/markitup/sets/txt2tags/stroke.png +0 -0
- data/templates/markitup/jquery/markitup/sets/txt2tags/underline.png +0 -0
- data/templates/markitup/jquery/markitup/sets/wiki.scss +42 -0
- data/templates/markitup/jquery/markitup/sets/wiki/bold.png +0 -0
- data/templates/markitup/jquery/markitup/sets/wiki/code.png +0 -0
- data/templates/markitup/jquery/markitup/sets/wiki/h1.png +0 -0
- data/templates/markitup/jquery/markitup/sets/wiki/h2.png +0 -0
- data/templates/markitup/jquery/markitup/sets/wiki/h3.png +0 -0
- data/templates/markitup/jquery/markitup/sets/wiki/h4.png +0 -0
- data/templates/markitup/jquery/markitup/sets/wiki/h5.png +0 -0
- data/templates/markitup/jquery/markitup/sets/wiki/h6.png +0 -0
- data/templates/markitup/jquery/markitup/sets/wiki/italic.png +0 -0
- data/templates/markitup/jquery/markitup/sets/wiki/link.png +0 -0
- data/templates/markitup/jquery/markitup/sets/wiki/list-bullet.png +0 -0
- data/templates/markitup/jquery/markitup/sets/wiki/list-numeric.png +0 -0
- data/templates/markitup/jquery/markitup/sets/wiki/picture.png +0 -0
- data/templates/markitup/jquery/markitup/sets/wiki/preview.png +0 -0
- data/templates/markitup/jquery/markitup/sets/wiki/quotes.png +0 -0
- data/templates/markitup/jquery/markitup/sets/wiki/stroke.png +0 -0
- data/templates/markitup/jquery/markitup/sets/wiki/table.png +0 -0
- data/templates/markitup/jquery/markitup/sets/wiki/url.png +0 -0
- data/templates/markitup/jquery/markitup/sets/xbbcode.scss +42 -0
- data/templates/markitup/jquery/markitup/sets/xbbcode/bold.png +0 -0
- data/templates/markitup/jquery/markitup/sets/xbbcode/clean.png +0 -0
- data/templates/markitup/jquery/markitup/sets/xbbcode/h1.png +0 -0
- data/templates/markitup/jquery/markitup/sets/xbbcode/h2.png +0 -0
- data/templates/markitup/jquery/markitup/sets/xbbcode/h3.png +0 -0
- data/templates/markitup/jquery/markitup/sets/xbbcode/h4.png +0 -0
- data/templates/markitup/jquery/markitup/sets/xbbcode/h5.png +0 -0
- data/templates/markitup/jquery/markitup/sets/xbbcode/h6.png +0 -0
- data/templates/markitup/jquery/markitup/sets/xbbcode/image.png +0 -0
- data/templates/markitup/jquery/markitup/sets/xbbcode/italic.png +0 -0
- data/templates/markitup/jquery/markitup/sets/xbbcode/link.png +0 -0
- data/templates/markitup/jquery/markitup/sets/xbbcode/list-bullet.png +0 -0
- data/templates/markitup/jquery/markitup/sets/xbbcode/list-item.png +0 -0
- data/templates/markitup/jquery/markitup/sets/xbbcode/list-numeric.png +0 -0
- data/templates/markitup/jquery/markitup/sets/xbbcode/paragraph.png +0 -0
- data/templates/markitup/jquery/markitup/sets/xbbcode/picture.png +0 -0
- data/templates/markitup/jquery/markitup/sets/xbbcode/preview.png +0 -0
- data/templates/markitup/jquery/markitup/sets/xbbcode/stroke.png +0 -0
- data/templates/markitup/jquery/markitup/skins/aqua.scss +136 -0
- data/templates/markitup/jquery/markitup/skins/aqua/bg-container-white.png +0 -0
- data/templates/markitup/jquery/markitup/skins/aqua/bg-container.png +0 -0
- data/templates/markitup/jquery/markitup/skins/aqua/bg-footer-white.png +0 -0
- data/templates/markitup/jquery/markitup/skins/aqua/bg-footer.png +0 -0
- data/templates/markitup/jquery/markitup/skins/aqua/bg-header-white.png +0 -0
- data/templates/markitup/jquery/markitup/skins/aqua/bg-header.png +0 -0
- data/templates/markitup/jquery/markitup/skins/aqua/handle.png +0 -0
- data/templates/markitup/jquery/markitup/skins/aqua/menu.png +0 -0
- data/templates/markitup/jquery/markitup/skins/aqua/spacer.gif +0 -0
- data/templates/markitup/jquery/markitup/skins/aqua/submenu.png +0 -0
- data/templates/markitup/jquery/markitup/skins/jtageditor.scss +141 -0
- data/templates/markitup/jquery/markitup/skins/jtageditor/bg-container.png +0 -0
- data/templates/markitup/jquery/markitup/skins/jtageditor/bg-editor-bbcode.png +0 -0
- data/templates/markitup/jquery/markitup/skins/jtageditor/bg-editor-dotclear.png +0 -0
- data/templates/markitup/jquery/markitup/skins/jtageditor/bg-editor-html.png +0 -0
- data/templates/markitup/jquery/markitup/skins/jtageditor/bg-editor-markdown.png +0 -0
- data/templates/markitup/jquery/markitup/skins/jtageditor/bg-editor-textile.png +0 -0
- data/templates/markitup/jquery/markitup/skins/jtageditor/bg-editor-wiki.png +0 -0
- data/templates/markitup/jquery/markitup/skins/jtageditor/bg-editor.png +0 -0
- data/templates/markitup/jquery/markitup/skins/jtageditor/handle.png +0 -0
- data/templates/markitup/jquery/markitup/skins/jtageditor/menu.png +0 -0
- data/templates/markitup/jquery/markitup/skins/jtageditor/submenu.png +0 -0
- data/templates/markitup/jquery/markitup/skins/live.scss +135 -0
- data/templates/markitup/jquery/markitup/skins/live/bg-container.png +0 -0
- data/templates/markitup/jquery/markitup/skins/live/bg-footer.png +0 -0
- data/templates/markitup/jquery/markitup/skins/live/bg-header.png +0 -0
- data/templates/markitup/jquery/markitup/skins/live/editor.png +0 -0
- data/templates/markitup/jquery/markitup/skins/live/handle.png +0 -0
- data/templates/markitup/jquery/markitup/skins/live/menu.png +0 -0
- data/templates/markitup/jquery/markitup/skins/live/submenu.png +0 -0
- data/templates/markitup/jquery/markitup/skins/markitup.scss +150 -0
- data/templates/markitup/jquery/markitup/skins/markitup/bg-container.png +0 -0
- data/templates/markitup/jquery/markitup/skins/markitup/bg-editor-bbcode.png +0 -0
- data/templates/markitup/jquery/markitup/skins/markitup/bg-editor-dotclear.png +0 -0
- data/templates/markitup/jquery/markitup/skins/markitup/bg-editor-html.png +0 -0
- data/templates/markitup/jquery/markitup/skins/markitup/bg-editor-json.png +0 -0
- data/templates/markitup/jquery/markitup/skins/markitup/bg-editor-markdown.png +0 -0
- data/templates/markitup/jquery/markitup/skins/markitup/bg-editor-textile.png +0 -0
- data/templates/markitup/jquery/markitup/skins/markitup/bg-editor-wiki.png +0 -0
- data/templates/markitup/jquery/markitup/skins/markitup/bg-editor-xml.png +0 -0
- data/templates/markitup/jquery/markitup/skins/markitup/bg-editor.png +0 -0
- data/templates/markitup/jquery/markitup/skins/markitup/handle.png +0 -0
- data/templates/markitup/jquery/markitup/skins/markitup/menu.png +0 -0
- data/templates/markitup/jquery/markitup/skins/markitup/submenu.png +0 -0
- data/templates/markitup/jquery/markitup/skins/simple.scss +117 -0
- data/templates/markitup/jquery/markitup/skins/simple/handle.png +0 -0
- data/templates/markitup/jquery/markitup/skins/simple/menu.png +0 -0
- data/templates/markitup/jquery/markitup/skins/simple/submenu.png +0 -0
- data/templates/markitup/manifest.rb +311 -0
- data/templates/markitup/markitup/jquery.markitup.set.bbcode.js +40 -0
- data/templates/markitup/markitup/jquery.markitup.set.bbcode.min.js +3 -0
- data/templates/markitup/markitup/jquery.markitup.set.css.js +53 -0
- data/templates/markitup/markitup/jquery.markitup.set.css.min.js +5 -0
- data/templates/markitup/markitup/jquery.markitup.set.default.js +30 -0
- data/templates/markitup/markitup/jquery.markitup.set.default.min.js +2 -0
- data/templates/markitup/markitup/jquery.markitup.set.dotclear.js +38 -0
- data/templates/markitup/markitup/jquery.markitup.set.dotclear.min.js +3 -0
- data/templates/markitup/markitup/jquery.markitup.set.html.js +40 -0
- data/templates/markitup/markitup/jquery.markitup.set.html.min.js +4 -0
- data/templates/markitup/markitup/jquery.markitup.set.markdown.js +53 -0
- data/templates/markitup/markitup/jquery.markitup.set.markdown.min.js +3 -0
- data/templates/markitup/markitup/jquery.markitup.set.markmin.js +50 -0
- data/templates/markitup/markitup/jquery.markitup.set.markmin.min.js +3 -0
- data/templates/markitup/markitup/jquery.markitup.set.rest.js +52 -0
- data/templates/markitup/markitup/jquery.markitup.set.rest.min.js +3 -0
- data/templates/markitup/markitup/jquery.markitup.set.textile.js +58 -0
- data/templates/markitup/markitup/jquery.markitup.set.textile.min.js +4 -0
- data/templates/markitup/markitup/jquery.markitup.set.texy.js +52 -0
- data/templates/markitup/markitup/jquery.markitup.set.texy.min.js +4 -0
- data/templates/markitup/markitup/jquery.markitup.set.txt2tags.js +42 -0
- data/templates/markitup/markitup/jquery.markitup.set.txt2tags.min.js +3 -0
- data/templates/markitup/markitup/jquery.markitup.set.wiki.js +61 -0
- data/templates/markitup/markitup/jquery.markitup.set.wiki.min.js +4 -0
- data/templates/markitup/markitup/jquery.markitup.set.xbbcode.js +36 -0
- data/templates/markitup/markitup/jquery.markitup.set.xbbcode.min.js +4 -0
- data/templates/mobile/config/initializers/mobile.rb +2 -0
- data/templates/mobile/jquery.mobile.js +4545 -4454
- data/templates/mobile/jquery.mobile.min.js +16 -7
- data/templates/mobile/jquery/mobile/960.fluid.scss +191 -0
- data/templates/mobile/jquery/mobile/960.scss +213 -0
- data/templates/mobile/jquery/mobile/_base.scss +37 -20
- data/templates/mobile/jquery/mobile/default.scss +48 -56
- data/templates/mobile/jquery/mobile/valencia.scss +43 -44
- data/templates/mobile/manifest.rb +2 -0
- data/templates/ribbon/jquery.ribbon.js +195 -195
- data/templates/ribbon/jquery.ribbon.min.js +1 -1
- data/templates/ribbon/jquery/ribbon/office.scss +12 -12
- data/templates/ribbon/jquery/ribbon/windows7.scss +12 -12
- data/templates/secret_sauce/secret_sauce.js +8 -8
- data/templates/tools/flowplayer.js +897 -897
- data/templates/tools/jquery.tools.js +3647 -3647
- data/templates/tools/jquery.tools.min.js +47 -47
- data/templates/tools/swfobject.js +760 -760
- metadata +350 -22
@@ -1,92 +1,92 @@
|
|
1
1
|
jQuery.DSt = (function() {
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
2
|
+
var a = {version:0.002005,get:function(b) {
|
3
|
+
var c = localStorage.getItem(b);
|
4
|
+
if (c === undefined || c === null) {
|
5
|
+
c = "null"
|
6
|
+
} else {
|
7
|
+
c = c.toString()
|
8
|
+
}
|
9
|
+
return JSON.parse(c)
|
10
|
+
},set:function(b, c) {
|
11
|
+
return localStorage.setItem(b, JSON.stringify(c))
|
12
|
+
},store:function(b) {
|
13
|
+
if (typeof(b) == "string") {
|
14
|
+
b = document.getElementById(b)
|
15
|
+
}
|
16
|
+
if (!b || b.name == "") {
|
17
|
+
return this
|
18
|
+
}
|
19
|
+
var c = a._form_elt_key(b);
|
20
|
+
if (b.type == "checkbox") {
|
21
|
+
a.set(c, b.checked ? 1 : 0)
|
22
|
+
} else {
|
23
|
+
if (b.type == "radio") {
|
24
|
+
a.set(c, a._radio_value(b))
|
25
|
+
} else {
|
26
|
+
a.set(c, b.value || "")
|
27
|
+
}
|
28
|
+
}
|
29
|
+
return this
|
30
|
+
},recall:function(b) {
|
31
|
+
if (typeof(b) == "string") {
|
32
|
+
b = document.getElementById(b)
|
33
|
+
}
|
34
|
+
if (!b || b.name == "") {
|
35
|
+
return this
|
36
|
+
}
|
37
|
+
var c = a._form_elt_key(b);
|
38
|
+
var d = a.get(c);
|
39
|
+
if (b.type == "checkbox") {
|
40
|
+
b.checked = !!d
|
41
|
+
} else {
|
42
|
+
if (b.type == "radio") {
|
43
|
+
if (b.value == d) {
|
44
|
+
b.checked = true
|
8
45
|
}
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
}
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
}
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
e = document.getElementById(e)
|
56
|
-
}
|
57
|
-
var f = e.form.elements[e.name];
|
58
|
-
var b = f.length;
|
59
|
-
var d = null;
|
60
|
-
for (var c = 0; c < b; c++) {
|
61
|
-
if (f[c].checked) {
|
62
|
-
d = f[c].value
|
63
|
-
}
|
64
|
-
}
|
65
|
-
return d
|
66
|
-
},recall_form:function(b) {
|
67
|
-
return a._apply_fn_to_form_inputs(b, a.recall)
|
68
|
-
},store_form:function(b) {
|
69
|
-
return a._apply_fn_to_form_inputs(b, a.store)
|
70
|
-
},_apply_fn_to_form_inputs:function(e, c) {
|
71
|
-
if (typeof(e) == "string") {
|
72
|
-
e = document.getElementById(e)
|
73
|
-
}
|
74
|
-
var f = e.elements.length;
|
75
|
-
for (var b = 0; b < f; b++) {
|
76
|
-
var d = e.elements[b];
|
77
|
-
if (d.tagName == "TEXTAREA" || d.tagName == "INPUT" && d.type != "file" && d.type != "button" && d.type != "image" && d.type != "password" && d.type != "submit" && d.type != "reset") {
|
78
|
-
c(d)
|
79
|
-
}
|
80
|
-
}
|
81
|
-
return this
|
82
|
-
},_storage_types:function() {
|
83
|
-
var b = "";
|
84
|
-
for (var c in window) {
|
85
|
-
if (c == "sessionStorage" || c == "globalStorage" || c == "localStorage" || c == "openDatabase") {
|
86
|
-
b += b ? (" " + c) : c
|
87
|
-
}
|
88
|
-
}
|
89
|
-
return b
|
90
|
-
},javascript_accepts_trailing_comma:false};
|
91
|
-
return a
|
46
|
+
} else {
|
47
|
+
b.value = d || ""
|
48
|
+
}
|
49
|
+
}
|
50
|
+
return this
|
51
|
+
},_form_elt_key:function(b) {
|
52
|
+
return"_form_" + b.form.name + "_field_" + b.name
|
53
|
+
},_radio_value:function(e) {
|
54
|
+
if (typeof(e) == "string") {
|
55
|
+
e = document.getElementById(e)
|
56
|
+
}
|
57
|
+
var f = e.form.elements[e.name];
|
58
|
+
var b = f.length;
|
59
|
+
var d = null;
|
60
|
+
for (var c = 0; c < b; c++) {
|
61
|
+
if (f[c].checked) {
|
62
|
+
d = f[c].value
|
63
|
+
}
|
64
|
+
}
|
65
|
+
return d
|
66
|
+
},recall_form:function(b) {
|
67
|
+
return a._apply_fn_to_form_inputs(b, a.recall)
|
68
|
+
},store_form:function(b) {
|
69
|
+
return a._apply_fn_to_form_inputs(b, a.store)
|
70
|
+
},_apply_fn_to_form_inputs:function(e, c) {
|
71
|
+
if (typeof(e) == "string") {
|
72
|
+
e = document.getElementById(e)
|
73
|
+
}
|
74
|
+
var f = e.elements.length;
|
75
|
+
for (var b = 0; b < f; b++) {
|
76
|
+
var d = e.elements[b];
|
77
|
+
if (d.tagName == "TEXTAREA" || d.tagName == "INPUT" && d.type != "file" && d.type != "button" && d.type != "image" && d.type != "password" && d.type != "submit" && d.type != "reset") {
|
78
|
+
c(d)
|
79
|
+
}
|
80
|
+
}
|
81
|
+
return this
|
82
|
+
},_storage_types:function() {
|
83
|
+
var b = "";
|
84
|
+
for (var c in window) {
|
85
|
+
if (c == "sessionStorage" || c == "globalStorage" || c == "localStorage" || c == "openDatabase") {
|
86
|
+
b += b ? (" " + c) : c
|
87
|
+
}
|
88
|
+
}
|
89
|
+
return b
|
90
|
+
},javascript_accepts_trailing_comma:false};
|
91
|
+
return a
|
92
92
|
})();
|
@@ -0,0 +1,226 @@
|
|
1
|
+
/*
|
2
|
+
* jQuery Easing v1.3 - http://gsgd.co.uk/sandbox/jquery/easing/
|
3
|
+
*
|
4
|
+
* Uses the built in easing capabilities added In jQuery 1.1
|
5
|
+
* to offer multiple easing options
|
6
|
+
*
|
7
|
+
* TERMS OF USE - jQuery Easing
|
8
|
+
*
|
9
|
+
* Open source under the BSD License.
|
10
|
+
*
|
11
|
+
* Copyright © 2008 George McGinley Smith
|
12
|
+
* All rights reserved.
|
13
|
+
*
|
14
|
+
* Redistribution and use in source and binary forms, with or without modification,
|
15
|
+
* are permitted provided that the following conditions are met:
|
16
|
+
*
|
17
|
+
* Redistributions of source code must retain the above copyright notice, this list of
|
18
|
+
* conditions and the following disclaimer.
|
19
|
+
* Redistributions in binary form must reproduce the above copyright notice, this list
|
20
|
+
* of conditions and the following disclaimer in the documentation and/or other materials
|
21
|
+
* provided with the distribution.
|
22
|
+
*
|
23
|
+
* Neither the name of the author nor the names of contributors may be used to endorse
|
24
|
+
* or promote products derived from this software without specific prior written permission.
|
25
|
+
*
|
26
|
+
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY
|
27
|
+
* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
28
|
+
* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
|
29
|
+
* COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
30
|
+
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
|
31
|
+
* GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
|
32
|
+
* AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
|
33
|
+
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
|
34
|
+
* OF THE POSSIBILITY OF SUCH DAMAGE.
|
35
|
+
*
|
36
|
+
*/
|
37
|
+
|
38
|
+
// t: current time, b: begInnIng value, c: change In value, d: duration
|
39
|
+
jQuery.easing['jswing'] = jQuery.easing['swing'];
|
40
|
+
|
41
|
+
jQuery.extend(jQuery.easing,
|
42
|
+
{
|
43
|
+
def: 'easeOutQuad',
|
44
|
+
swing: function (x, t, b, c, d) {
|
45
|
+
//alert(jQuery.easing.default);
|
46
|
+
return jQuery.easing[jQuery.easing.def](x, t, b, c, d);
|
47
|
+
},
|
48
|
+
easeInQuad: function (x, t, b, c, d) {
|
49
|
+
return c * (t /= d) * t + b;
|
50
|
+
},
|
51
|
+
easeOutQuad: function (x, t, b, c, d) {
|
52
|
+
return -c * (t /= d) * (t - 2) + b;
|
53
|
+
},
|
54
|
+
easeInOutQuad: function (x, t, b, c, d) {
|
55
|
+
if ((t /= d / 2) < 1) return c / 2 * t * t + b;
|
56
|
+
return -c / 2 * ((--t) * (t - 2) - 1) + b;
|
57
|
+
},
|
58
|
+
easeInCubic: function (x, t, b, c, d) {
|
59
|
+
return c * (t /= d) * t * t + b;
|
60
|
+
},
|
61
|
+
easeOutCubic: function (x, t, b, c, d) {
|
62
|
+
return c * ((t = t / d - 1) * t * t + 1) + b;
|
63
|
+
},
|
64
|
+
easeInOutCubic: function (x, t, b, c, d) {
|
65
|
+
if ((t /= d / 2) < 1) return c / 2 * t * t * t + b;
|
66
|
+
return c / 2 * ((t -= 2) * t * t + 2) + b;
|
67
|
+
},
|
68
|
+
easeInQuart: function (x, t, b, c, d) {
|
69
|
+
return c * (t /= d) * t * t * t + b;
|
70
|
+
},
|
71
|
+
easeOutQuart: function (x, t, b, c, d) {
|
72
|
+
return -c * ((t = t / d - 1) * t * t * t - 1) + b;
|
73
|
+
},
|
74
|
+
easeInOutQuart: function (x, t, b, c, d) {
|
75
|
+
if ((t /= d / 2) < 1) return c / 2 * t * t * t * t + b;
|
76
|
+
return -c / 2 * ((t -= 2) * t * t * t - 2) + b;
|
77
|
+
},
|
78
|
+
easeInQuint: function (x, t, b, c, d) {
|
79
|
+
return c * (t /= d) * t * t * t * t + b;
|
80
|
+
},
|
81
|
+
easeOutQuint: function (x, t, b, c, d) {
|
82
|
+
return c * ((t = t / d - 1) * t * t * t * t + 1) + b;
|
83
|
+
},
|
84
|
+
easeInOutQuint: function (x, t, b, c, d) {
|
85
|
+
if ((t /= d / 2) < 1) return c / 2 * t * t * t * t * t + b;
|
86
|
+
return c / 2 * ((t -= 2) * t * t * t * t + 2) + b;
|
87
|
+
},
|
88
|
+
easeInSine: function (x, t, b, c, d) {
|
89
|
+
return -c * Math.cos(t / d * (Math.PI / 2)) + c + b;
|
90
|
+
},
|
91
|
+
easeOutSine: function (x, t, b, c, d) {
|
92
|
+
return c * Math.sin(t / d * (Math.PI / 2)) + b;
|
93
|
+
},
|
94
|
+
easeInOutSine: function (x, t, b, c, d) {
|
95
|
+
return -c / 2 * (Math.cos(Math.PI * t / d) - 1) + b;
|
96
|
+
},
|
97
|
+
easeInExpo: function (x, t, b, c, d) {
|
98
|
+
return (t == 0) ? b : c * Math.pow(2, 10 * (t / d - 1)) + b;
|
99
|
+
},
|
100
|
+
easeOutExpo: function (x, t, b, c, d) {
|
101
|
+
return (t == d) ? b + c : c * (-Math.pow(2, -10 * t / d) + 1) + b;
|
102
|
+
},
|
103
|
+
easeInOutExpo: function (x, t, b, c, d) {
|
104
|
+
if (t == 0) return b;
|
105
|
+
if (t == d) return b + c;
|
106
|
+
if ((t /= d / 2) < 1) return c / 2 * Math.pow(2, 10 * (t - 1)) + b;
|
107
|
+
return c / 2 * (-Math.pow(2, -10 * --t) + 2) + b;
|
108
|
+
},
|
109
|
+
easeInCirc: function (x, t, b, c, d) {
|
110
|
+
return -c * (Math.sqrt(1 - (t /= d) * t) - 1) + b;
|
111
|
+
},
|
112
|
+
easeOutCirc: function (x, t, b, c, d) {
|
113
|
+
return c * Math.sqrt(1 - (t = t / d - 1) * t) + b;
|
114
|
+
},
|
115
|
+
easeInOutCirc: function (x, t, b, c, d) {
|
116
|
+
if ((t /= d / 2) < 1) return -c / 2 * (Math.sqrt(1 - t * t) - 1) + b;
|
117
|
+
return c / 2 * (Math.sqrt(1 - (t -= 2) * t) + 1) + b;
|
118
|
+
},
|
119
|
+
easeInElastic: function (x, t, b, c, d) {
|
120
|
+
var s = 1.70158;
|
121
|
+
var p = 0;
|
122
|
+
var a = c;
|
123
|
+
if (t == 0) return b;
|
124
|
+
if ((t /= d) == 1) return b + c;
|
125
|
+
if (!p) p = d * .3;
|
126
|
+
if (a < Math.abs(c)) {
|
127
|
+
a = c;
|
128
|
+
var s = p / 4;
|
129
|
+
}
|
130
|
+
else var s = p / (2 * Math.PI) * Math.asin(c / a);
|
131
|
+
return -(a * Math.pow(2, 10 * (t -= 1)) * Math.sin((t * d - s) * (2 * Math.PI) / p)) + b;
|
132
|
+
},
|
133
|
+
easeOutElastic: function (x, t, b, c, d) {
|
134
|
+
var s = 1.70158;
|
135
|
+
var p = 0;
|
136
|
+
var a = c;
|
137
|
+
if (t == 0) return b;
|
138
|
+
if ((t /= d) == 1) return b + c;
|
139
|
+
if (!p) p = d * .3;
|
140
|
+
if (a < Math.abs(c)) {
|
141
|
+
a = c;
|
142
|
+
var s = p / 4;
|
143
|
+
}
|
144
|
+
else var s = p / (2 * Math.PI) * Math.asin(c / a);
|
145
|
+
return a * Math.pow(2, -10 * t) * Math.sin((t * d - s) * (2 * Math.PI) / p) + c + b;
|
146
|
+
},
|
147
|
+
easeInOutElastic: function (x, t, b, c, d) {
|
148
|
+
var s = 1.70158;
|
149
|
+
var p = 0;
|
150
|
+
var a = c;
|
151
|
+
if (t == 0) return b;
|
152
|
+
if ((t /= d / 2) == 2) return b + c;
|
153
|
+
if (!p) p = d * (.3 * 1.5);
|
154
|
+
if (a < Math.abs(c)) {
|
155
|
+
a = c;
|
156
|
+
var s = p / 4;
|
157
|
+
}
|
158
|
+
else var s = p / (2 * Math.PI) * Math.asin(c / a);
|
159
|
+
if (t < 1) return -.5 * (a * Math.pow(2, 10 * (t -= 1)) * Math.sin((t * d - s) * (2 * Math.PI) / p)) + b;
|
160
|
+
return a * Math.pow(2, -10 * (t -= 1)) * Math.sin((t * d - s) * (2 * Math.PI) / p) * .5 + c + b;
|
161
|
+
},
|
162
|
+
easeInBack: function (x, t, b, c, d, s) {
|
163
|
+
if (s == undefined) s = 1.70158;
|
164
|
+
return c * (t /= d) * t * ((s + 1) * t - s) + b;
|
165
|
+
},
|
166
|
+
easeOutBack: function (x, t, b, c, d, s) {
|
167
|
+
if (s == undefined) s = 1.70158;
|
168
|
+
return c * ((t = t / d - 1) * t * ((s + 1) * t + s) + 1) + b;
|
169
|
+
},
|
170
|
+
easeInOutBack: function (x, t, b, c, d, s) {
|
171
|
+
if (s == undefined) s = 1.70158;
|
172
|
+
if ((t /= d / 2) < 1) return c / 2 * (t * t * (((s *= (1.525)) + 1) * t - s)) + b;
|
173
|
+
return c / 2 * ((t -= 2) * t * (((s *= (1.525)) + 1) * t + s) + 2) + b;
|
174
|
+
},
|
175
|
+
easeInBounce: function (x, t, b, c, d) {
|
176
|
+
return c - jQuery.easing.easeOutBounce(x, d - t, 0, c, d) + b;
|
177
|
+
},
|
178
|
+
easeOutBounce: function (x, t, b, c, d) {
|
179
|
+
if ((t /= d) < (1 / 2.75)) {
|
180
|
+
return c * (7.5625 * t * t) + b;
|
181
|
+
} else if (t < (2 / 2.75)) {
|
182
|
+
return c * (7.5625 * (t -= (1.5 / 2.75)) * t + .75) + b;
|
183
|
+
} else if (t < (2.5 / 2.75)) {
|
184
|
+
return c * (7.5625 * (t -= (2.25 / 2.75)) * t + .9375) + b;
|
185
|
+
} else {
|
186
|
+
return c * (7.5625 * (t -= (2.625 / 2.75)) * t + .984375) + b;
|
187
|
+
}
|
188
|
+
},
|
189
|
+
easeInOutBounce: function (x, t, b, c, d) {
|
190
|
+
if (t < d / 2) return jQuery.easing.easeInBounce(x, t * 2, 0, c, d) * .5 + b;
|
191
|
+
return jQuery.easing.easeOutBounce(x, t * 2 - d, 0, c, d) * .5 + c * .5 + b;
|
192
|
+
}
|
193
|
+
});
|
194
|
+
|
195
|
+
/*
|
196
|
+
*
|
197
|
+
* TERMS OF USE - EASING EQUATIONS
|
198
|
+
*
|
199
|
+
* Open source under the BSD License.
|
200
|
+
*
|
201
|
+
* Copyright © 2001 Robert Penner
|
202
|
+
* All rights reserved.
|
203
|
+
*
|
204
|
+
* Redistribution and use in source and binary forms, with or without modification,
|
205
|
+
* are permitted provided that the following conditions are met:
|
206
|
+
*
|
207
|
+
* Redistributions of source code must retain the above copyright notice, this list of
|
208
|
+
* conditions and the following disclaimer.
|
209
|
+
* Redistributions in binary form must reproduce the above copyright notice, this list
|
210
|
+
* of conditions and the following disclaimer in the documentation and/or other materials
|
211
|
+
* provided with the distribution.
|
212
|
+
*
|
213
|
+
* Neither the name of the author nor the names of contributors may be used to endorse
|
214
|
+
* or promote products derived from this software without specific prior written permission.
|
215
|
+
*
|
216
|
+
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY
|
217
|
+
* EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
218
|
+
* MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE
|
219
|
+
* COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
220
|
+
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
|
221
|
+
* GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED
|
222
|
+
* AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
|
223
|
+
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
|
224
|
+
* OF THE POSSIBILITY OF SUCH DAMAGE.
|
225
|
+
*
|
226
|
+
*/
|
@@ -0,0 +1,8 @@
|
|
1
|
+
jQuery.easing.jswing=jQuery.easing.swing;
|
2
|
+
jQuery.extend(jQuery.easing,{def:"easeOutQuad",swing:function(e,a,c,b,d){return jQuery.easing[jQuery.easing.def](e,a,c,b,d)},easeInQuad:function(e,a,c,b,d){return b*(a/=d)*a+c},easeOutQuad:function(e,a,c,b,d){return-b*(a/=d)*(a-2)+c},easeInOutQuad:function(e,a,c,b,d){if((a/=d/2)<1)return b/2*a*a+c;return-b/2*(--a*(a-2)-1)+c},easeInCubic:function(e,a,c,b,d){return b*(a/=d)*a*a+c},easeOutCubic:function(e,a,c,b,d){return b*((a=a/d-1)*a*a+1)+c},easeInOutCubic:function(e,a,c,b,d){if((a/=d/2)<1)return b/
|
3
|
+
2*a*a*a+c;return b/2*((a-=2)*a*a+2)+c},easeInQuart:function(e,a,c,b,d){return b*(a/=d)*a*a*a+c},easeOutQuart:function(e,a,c,b,d){return-b*((a=a/d-1)*a*a*a-1)+c},easeInOutQuart:function(e,a,c,b,d){if((a/=d/2)<1)return b/2*a*a*a*a+c;return-b/2*((a-=2)*a*a*a-2)+c},easeInQuint:function(e,a,c,b,d){return b*(a/=d)*a*a*a*a+c},easeOutQuint:function(e,a,c,b,d){return b*((a=a/d-1)*a*a*a*a+1)+c},easeInOutQuint:function(e,a,c,b,d){if((a/=d/2)<1)return b/2*a*a*a*a*a+c;return b/2*((a-=2)*a*a*a*a+2)+c},easeInSine:function(e,
|
4
|
+
a,c,b,d){return-b*Math.cos(a/d*(Math.PI/2))+b+c},easeOutSine:function(e,a,c,b,d){return b*Math.sin(a/d*(Math.PI/2))+c},easeInOutSine:function(e,a,c,b,d){return-b/2*(Math.cos(Math.PI*a/d)-1)+c},easeInExpo:function(e,a,c,b,d){return a==0?c:b*Math.pow(2,10*(a/d-1))+c},easeOutExpo:function(e,a,c,b,d){return a==d?c+b:b*(-Math.pow(2,-10*a/d)+1)+c},easeInOutExpo:function(e,a,c,b,d){if(a==0)return c;if(a==d)return c+b;if((a/=d/2)<1)return b/2*Math.pow(2,10*(a-1))+c;return b/2*(-Math.pow(2,-10*--a)+2)+c},
|
5
|
+
easeInCirc:function(e,a,c,b,d){return-b*(Math.sqrt(1-(a/=d)*a)-1)+c},easeOutCirc:function(e,a,c,b,d){return b*Math.sqrt(1-(a=a/d-1)*a)+c},easeInOutCirc:function(e,a,c,b,d){if((a/=d/2)<1)return-b/2*(Math.sqrt(1-a*a)-1)+c;return b/2*(Math.sqrt(1-(a-=2)*a)+1)+c},easeInElastic:function(e,a,c,b,d){var e=1.70158,f=0,g=b;if(a==0)return c;if((a/=d)==1)return c+b;f||(f=d*0.3);g<Math.abs(b)?(g=b,e=f/4):e=f/(2*Math.PI)*Math.asin(b/g);return-(g*Math.pow(2,10*(a-=1))*Math.sin((a*d-e)*2*Math.PI/f))+c},easeOutElastic:function(e,
|
6
|
+
a,c,b,d){var e=1.70158,f=0,g=b;if(a==0)return c;if((a/=d)==1)return c+b;f||(f=d*0.3);g<Math.abs(b)?(g=b,e=f/4):e=f/(2*Math.PI)*Math.asin(b/g);return g*Math.pow(2,-10*a)*Math.sin((a*d-e)*2*Math.PI/f)+b+c},easeInOutElastic:function(e,a,c,b,d){var e=1.70158,f=0,g=b;if(a==0)return c;if((a/=d/2)==2)return c+b;f||(f=d*0.3*1.5);g<Math.abs(b)?(g=b,e=f/4):e=f/(2*Math.PI)*Math.asin(b/g);if(a<1)return-0.5*g*Math.pow(2,10*(a-=1))*Math.sin((a*d-e)*2*Math.PI/f)+c;return g*Math.pow(2,-10*(a-=1))*Math.sin((a*d-e)*
|
7
|
+
2*Math.PI/f)*0.5+b+c},easeInBack:function(e,a,c,b,d,f){f==void 0&&(f=1.70158);return b*(a/=d)*a*((f+1)*a-f)+c},easeOutBack:function(e,a,c,b,d,f){f==void 0&&(f=1.70158);return b*((a=a/d-1)*a*((f+1)*a+f)+1)+c},easeInOutBack:function(e,a,c,b,d,f){f==void 0&&(f=1.70158);if((a/=d/2)<1)return b/2*a*a*(((f*=1.525)+1)*a-f)+c;return b/2*((a-=2)*a*(((f*=1.525)+1)*a+f)+2)+c},easeInBounce:function(e,a,c,b,d){return b-jQuery.easing.easeOutBounce(e,d-a,0,b,d)+c},easeOutBounce:function(e,a,c,b,d){return(a/=d)<1/
|
8
|
+
2.75?b*7.5625*a*a+c:a<2/2.75?b*(7.5625*(a-=1.5/2.75)*a+0.75)+c:a<2.5/2.75?b*(7.5625*(a-=2.25/2.75)*a+0.9375)+c:b*(7.5625*(a-=2.625/2.75)*a+0.984375)+c},easeInOutBounce:function(e,a,c,b,d){if(a<d/2)return jQuery.easing.easeInBounce(e,a*2,0,b,d)*0.5+c;return jQuery.easing.easeOutBounce(e,a*2-d,0,b,d)*0.5+b*0.5+c}});
|
@@ -18,328 +18,328 @@
|
|
18
18
|
*/
|
19
19
|
|
20
20
|
jQuery.fn.farbtastic = function (callback) {
|
21
|
-
|
22
|
-
|
21
|
+
$.farbtastic(this, callback);
|
22
|
+
return this;
|
23
23
|
};
|
24
24
|
|
25
25
|
jQuery.farbtastic = function (container, callback) {
|
26
|
-
|
27
|
-
|
26
|
+
var container = $(container).get(0);
|
27
|
+
return container.farbtastic || (container.farbtastic = new jQuery._farbtastic(container, callback));
|
28
28
|
}
|
29
29
|
|
30
30
|
jQuery._farbtastic = function (container, callback) {
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
});
|
53
|
-
}
|
31
|
+
// Store farbtastic object
|
32
|
+
var fb = this;
|
33
|
+
|
34
|
+
// Insert markup
|
35
|
+
$(container).html('<div class="farbtastic"><div class="color"></div><div class="wheel"></div><div class="overlay"></div><div class="h-marker marker"></div><div class="sl-marker marker"></div></div>');
|
36
|
+
var e = $('.farbtastic', container);
|
37
|
+
fb.wheel = $('.wheel', container).get(0);
|
38
|
+
// Dimensions
|
39
|
+
fb.radius = 84;
|
40
|
+
fb.square = 100;
|
41
|
+
fb.width = 194;
|
42
|
+
|
43
|
+
// Fix background PNGs in IE6
|
44
|
+
if (navigator.appVersion.match(/MSIE [0-6]\./)) {
|
45
|
+
$('*', e).each(function () {
|
46
|
+
if (this.currentStyle.backgroundImage != 'none') {
|
47
|
+
var image = this.currentStyle.backgroundImage;
|
48
|
+
image = this.currentStyle.backgroundImage.substring(5, image.length - 2);
|
49
|
+
$(this).css({
|
50
|
+
'backgroundImage': 'none',
|
51
|
+
'filter': "progid:DXImageTransform.Microsoft.AlphaImageLoader(enabled=true, sizingMethod=crop, src='" + image + "')"
|
54
52
|
});
|
53
|
+
}
|
54
|
+
});
|
55
|
+
}
|
56
|
+
|
57
|
+
/**
|
58
|
+
* Link to the given element(s) or callback.
|
59
|
+
*/
|
60
|
+
fb.linkTo = function (callback) {
|
61
|
+
// Unbind previous nodes
|
62
|
+
if (typeof fb.callback == 'object') {
|
63
|
+
$(fb.callback).unbind('keyup', fb.updateValue);
|
55
64
|
}
|
56
65
|
|
57
|
-
|
58
|
-
|
59
|
-
*/
|
60
|
-
fb.linkTo = function (callback) {
|
61
|
-
// Unbind previous nodes
|
62
|
-
if (typeof fb.callback == 'object') {
|
63
|
-
$(fb.callback).unbind('keyup', fb.updateValue);
|
64
|
-
}
|
65
|
-
|
66
|
-
// Reset color
|
67
|
-
fb.color = null;
|
66
|
+
// Reset color
|
67
|
+
fb.color = null;
|
68
68
|
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
}
|
73
|
-
else if (typeof callback == 'object' || typeof callback == 'string') {
|
74
|
-
fb.callback = $(callback);
|
75
|
-
fb.callback.bind('keyup', fb.updateValue);
|
76
|
-
if (fb.callback.get(0).value) {
|
77
|
-
fb.setColor(fb.callback.get(0).value);
|
78
|
-
}
|
79
|
-
}
|
80
|
-
return this;
|
69
|
+
// Bind callback or elements
|
70
|
+
if (typeof callback == 'function') {
|
71
|
+
fb.callback = callback;
|
81
72
|
}
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
73
|
+
else if (typeof callback == 'object' || typeof callback == 'string') {
|
74
|
+
fb.callback = $(callback);
|
75
|
+
fb.callback.bind('keyup', fb.updateValue);
|
76
|
+
if (fb.callback.get(0).value) {
|
77
|
+
fb.setColor(fb.callback.get(0).value);
|
78
|
+
}
|
86
79
|
}
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
var unpack = fb.unpack(color);
|
93
|
-
if (fb.color != color && unpack) {
|
94
|
-
fb.color = color;
|
95
|
-
fb.rgb = unpack;
|
96
|
-
fb.hsl = fb.RGBToHSL(fb.rgb);
|
97
|
-
fb.updateDisplay();
|
98
|
-
}
|
99
|
-
return this;
|
80
|
+
return this;
|
81
|
+
}
|
82
|
+
fb.updateValue = function (event) {
|
83
|
+
if (this.value && this.value != fb.color) {
|
84
|
+
fb.setColor(this.value);
|
100
85
|
}
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
86
|
+
}
|
87
|
+
|
88
|
+
/**
|
89
|
+
* Change color with HTML syntax #123456
|
90
|
+
*/
|
91
|
+
fb.setColor = function (color) {
|
92
|
+
var unpack = fb.unpack(color);
|
93
|
+
if (fb.color != color && unpack) {
|
94
|
+
fb.color = color;
|
95
|
+
fb.rgb = unpack;
|
96
|
+
fb.hsl = fb.RGBToHSL(fb.rgb);
|
97
|
+
fb.updateDisplay();
|
111
98
|
}
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
fb.
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
}
|
160
|
-
else {
|
161
|
-
// Use absolute coordinates
|
162
|
-
var pos = fb.absolutePosition(reference);
|
163
|
-
x = (event.pageX || 0 * (event.clientX + $('html').get(0).scrollLeft)) - pos.x;
|
164
|
-
y = (event.pageY || 0 * (event.clientY + $('html').get(0).scrollTop)) - pos.y;
|
99
|
+
return this;
|
100
|
+
}
|
101
|
+
|
102
|
+
/**
|
103
|
+
* Change color with HSL triplet [0..1, 0..1, 0..1]
|
104
|
+
*/
|
105
|
+
fb.setHSL = function (hsl) {
|
106
|
+
fb.hsl = hsl;
|
107
|
+
fb.rgb = fb.HSLToRGB(hsl);
|
108
|
+
fb.color = fb.pack(fb.rgb);
|
109
|
+
fb.updateDisplay();
|
110
|
+
return this;
|
111
|
+
}
|
112
|
+
|
113
|
+
/////////////////////////////////////////////////////
|
114
|
+
|
115
|
+
/**
|
116
|
+
* Retrieve the coordinates of the given event relative to the center
|
117
|
+
* of the widget.
|
118
|
+
*/
|
119
|
+
fb.widgetCoords = function (event) {
|
120
|
+
var x, y;
|
121
|
+
var el = event.target || event.srcElement;
|
122
|
+
var reference = fb.wheel;
|
123
|
+
|
124
|
+
if (typeof event.offsetX != 'undefined') {
|
125
|
+
// Use offset coordinates and find common offsetParent
|
126
|
+
var pos = { x: event.offsetX, y: event.offsetY };
|
127
|
+
|
128
|
+
// Send the coordinates upwards through the offsetParent chain.
|
129
|
+
var e = el;
|
130
|
+
while (e) {
|
131
|
+
e.mouseX = pos.x;
|
132
|
+
e.mouseY = pos.y;
|
133
|
+
pos.x += e.offsetLeft;
|
134
|
+
pos.y += e.offsetTop;
|
135
|
+
e = e.offsetParent;
|
136
|
+
}
|
137
|
+
|
138
|
+
// Look for the coordinates starting from the wheel widget.
|
139
|
+
var e = reference;
|
140
|
+
var offset = { x: 0, y: 0 }
|
141
|
+
while (e) {
|
142
|
+
if (typeof e.mouseX != 'undefined') {
|
143
|
+
x = e.mouseX - offset.x;
|
144
|
+
y = e.mouseY - offset.y;
|
145
|
+
break;
|
165
146
|
}
|
166
|
-
|
167
|
-
|
147
|
+
offset.x += e.offsetLeft;
|
148
|
+
offset.y += e.offsetTop;
|
149
|
+
e = e.offsetParent;
|
150
|
+
}
|
151
|
+
|
152
|
+
// Reset stored coordinates
|
153
|
+
e = el;
|
154
|
+
while (e) {
|
155
|
+
e.mouseX = undefined;
|
156
|
+
e.mouseY = undefined;
|
157
|
+
e = e.offsetParent;
|
158
|
+
}
|
168
159
|
}
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
// Capture mouse
|
175
|
-
if (!document.dragging) {
|
176
|
-
$(document).bind('mousemove', fb.mousemove).bind('mouseup', fb.mouseup);
|
177
|
-
document.dragging = true;
|
178
|
-
}
|
179
|
-
|
180
|
-
// Check which area is being dragged
|
181
|
-
var pos = fb.widgetCoords(event);
|
182
|
-
fb.circleDrag = Math.max(Math.abs(pos.x), Math.abs(pos.y)) * 2 > fb.square;
|
183
|
-
|
184
|
-
// Process
|
185
|
-
fb.mousemove(event);
|
186
|
-
return false;
|
160
|
+
else {
|
161
|
+
// Use absolute coordinates
|
162
|
+
var pos = fb.absolutePosition(reference);
|
163
|
+
x = (event.pageX || 0 * (event.clientX + $('html').get(0).scrollLeft)) - pos.x;
|
164
|
+
y = (event.pageY || 0 * (event.clientY + $('html').get(0).scrollTop)) - pos.y;
|
187
165
|
}
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
|
200
|
-
fb.setHSL([hue, fb.hsl[1], fb.hsl[2]]);
|
201
|
-
}
|
202
|
-
else {
|
203
|
-
var sat = Math.max(0, Math.min(1, -(pos.x / fb.square) + .5));
|
204
|
-
var lum = Math.max(0, Math.min(1, -(pos.y / fb.square) + .5));
|
205
|
-
fb.setHSL([fb.hsl[0], sat, lum]);
|
206
|
-
}
|
207
|
-
return false;
|
166
|
+
// Subtract distance to middle
|
167
|
+
return { x: x - fb.width / 2, y: y - fb.width / 2 };
|
168
|
+
}
|
169
|
+
|
170
|
+
/**
|
171
|
+
* Mousedown handler
|
172
|
+
*/
|
173
|
+
fb.mousedown = function (event) {
|
174
|
+
// Capture mouse
|
175
|
+
if (!document.dragging) {
|
176
|
+
$(document).bind('mousemove', fb.mousemove).bind('mouseup', fb.mouseup);
|
177
|
+
document.dragging = true;
|
208
178
|
}
|
209
179
|
|
210
|
-
|
211
|
-
|
212
|
-
|
213
|
-
|
214
|
-
|
215
|
-
|
216
|
-
|
217
|
-
|
180
|
+
// Check which area is being dragged
|
181
|
+
var pos = fb.widgetCoords(event);
|
182
|
+
fb.circleDrag = Math.max(Math.abs(pos.x), Math.abs(pos.y)) * 2 > fb.square;
|
183
|
+
|
184
|
+
// Process
|
185
|
+
fb.mousemove(event);
|
186
|
+
return false;
|
187
|
+
}
|
188
|
+
|
189
|
+
/**
|
190
|
+
* Mousemove handler
|
191
|
+
*/
|
192
|
+
fb.mousemove = function (event) {
|
193
|
+
// Get coordinates relative to color picker center
|
194
|
+
var pos = fb.widgetCoords(event);
|
195
|
+
|
196
|
+
// Set new HSL parameters
|
197
|
+
if (fb.circleDrag) {
|
198
|
+
var hue = Math.atan2(pos.x, -pos.y) / 6.28;
|
199
|
+
if (hue < 0) hue += 1;
|
200
|
+
fb.setHSL([hue, fb.hsl[1], fb.hsl[2]]);
|
218
201
|
}
|
219
|
-
|
220
|
-
|
221
|
-
|
222
|
-
|
223
|
-
fb.updateDisplay = function () {
|
224
|
-
// Markers
|
225
|
-
var angle = fb.hsl[0] * 6.28;
|
226
|
-
$('.h-marker', e).css({
|
227
|
-
left: Math.round(Math.sin(angle) * fb.radius + fb.width / 2) + 'px',
|
228
|
-
top: Math.round(-Math.cos(angle) * fb.radius + fb.width / 2) + 'px'
|
229
|
-
});
|
230
|
-
|
231
|
-
$('.sl-marker', e).css({
|
232
|
-
left: Math.round(fb.square * (.5 - fb.hsl[1]) + fb.width / 2) + 'px',
|
233
|
-
top: Math.round(fb.square * (.5 - fb.hsl[2]) + fb.width / 2) + 'px'
|
234
|
-
});
|
235
|
-
|
236
|
-
// Saturation/Luminance gradient
|
237
|
-
$('.color', e).css('backgroundColor', fb.pack(fb.HSLToRGB([fb.hsl[0], 1, 0.5])));
|
238
|
-
|
239
|
-
// Linked elements or callback
|
240
|
-
if (typeof fb.callback == 'object') {
|
241
|
-
// Set background/foreground color
|
242
|
-
$(fb.callback).css({
|
243
|
-
backgroundColor: fb.color,
|
244
|
-
color: fb.hsl[2] > 0.5 ? '#000' : '#fff'
|
245
|
-
});
|
246
|
-
|
247
|
-
// Change linked value
|
248
|
-
$(fb.callback).each(function() {
|
249
|
-
if (this.value && this.value != fb.color) {
|
250
|
-
this.value = fb.color;
|
251
|
-
}
|
252
|
-
});
|
253
|
-
}
|
254
|
-
else if (typeof fb.callback == 'function') {
|
255
|
-
fb.callback.call(fb, fb.color);
|
256
|
-
}
|
202
|
+
else {
|
203
|
+
var sat = Math.max(0, Math.min(1, -(pos.x / fb.square) + .5));
|
204
|
+
var lum = Math.max(0, Math.min(1, -(pos.y / fb.square) + .5));
|
205
|
+
fb.setHSL([fb.hsl[0], sat, lum]);
|
257
206
|
}
|
258
|
-
|
259
|
-
|
260
|
-
|
261
|
-
|
262
|
-
|
263
|
-
|
264
|
-
|
265
|
-
|
266
|
-
|
267
|
-
|
268
|
-
|
207
|
+
return false;
|
208
|
+
}
|
209
|
+
|
210
|
+
/**
|
211
|
+
* Mouseup handler
|
212
|
+
*/
|
213
|
+
fb.mouseup = function () {
|
214
|
+
// Uncapture mouse
|
215
|
+
$(document).unbind('mousemove', fb.mousemove);
|
216
|
+
$(document).unbind('mouseup', fb.mouseup);
|
217
|
+
document.dragging = false;
|
218
|
+
}
|
219
|
+
|
220
|
+
/**
|
221
|
+
* Update the markers and styles
|
222
|
+
*/
|
223
|
+
fb.updateDisplay = function () {
|
224
|
+
// Markers
|
225
|
+
var angle = fb.hsl[0] * 6.28;
|
226
|
+
$('.h-marker', e).css({
|
227
|
+
left: Math.round(Math.sin(angle) * fb.radius + fb.width / 2) + 'px',
|
228
|
+
top: Math.round(-Math.cos(angle) * fb.radius + fb.width / 2) + 'px'
|
229
|
+
});
|
230
|
+
|
231
|
+
$('.sl-marker', e).css({
|
232
|
+
left: Math.round(fb.square * (.5 - fb.hsl[1]) + fb.width / 2) + 'px',
|
233
|
+
top: Math.round(fb.square * (.5 - fb.hsl[2]) + fb.width / 2) + 'px'
|
234
|
+
});
|
235
|
+
|
236
|
+
// Saturation/Luminance gradient
|
237
|
+
$('.color', e).css('backgroundColor', fb.pack(fb.HSLToRGB([fb.hsl[0], 1, 0.5])));
|
238
|
+
|
239
|
+
// Linked elements or callback
|
240
|
+
if (typeof fb.callback == 'object') {
|
241
|
+
// Set background/foreground color
|
242
|
+
$(fb.callback).css({
|
243
|
+
backgroundColor: fb.color,
|
244
|
+
color: fb.hsl[2] > 0.5 ? '#000' : '#fff'
|
245
|
+
});
|
246
|
+
|
247
|
+
// Change linked value
|
248
|
+
$(fb.callback).each(function() {
|
249
|
+
if (this.value && this.value != fb.color) {
|
250
|
+
this.value = fb.color;
|
269
251
|
}
|
270
|
-
|
271
|
-
};
|
272
|
-
|
273
|
-
/* Various color utility functions */
|
274
|
-
fb.pack = function (rgb) {
|
275
|
-
var r = Math.round(rgb[0] * 255);
|
276
|
-
var g = Math.round(rgb[1] * 255);
|
277
|
-
var b = Math.round(rgb[2] * 255);
|
278
|
-
return '#' + (r < 16 ? '0' : '') + r.toString(16) +
|
279
|
-
(g < 16 ? '0' : '') + g.toString(16) +
|
280
|
-
(b < 16 ? '0' : '') + b.toString(16);
|
252
|
+
});
|
281
253
|
}
|
282
|
-
|
283
|
-
|
284
|
-
if (color.length == 7) {
|
285
|
-
return [parseInt('0x' + color.substring(1, 3)) / 255,
|
286
|
-
parseInt('0x' + color.substring(3, 5)) / 255,
|
287
|
-
parseInt('0x' + color.substring(5, 7)) / 255];
|
288
|
-
}
|
289
|
-
else if (color.length == 4) {
|
290
|
-
return [parseInt('0x' + color.substring(1, 2)) / 15,
|
291
|
-
parseInt('0x' + color.substring(2, 3)) / 15,
|
292
|
-
parseInt('0x' + color.substring(3, 4)) / 15];
|
293
|
-
}
|
254
|
+
else if (typeof fb.callback == 'function') {
|
255
|
+
fb.callback.call(fb, fb.color);
|
294
256
|
}
|
295
|
-
|
296
|
-
|
297
|
-
|
298
|
-
|
299
|
-
|
300
|
-
|
301
|
-
|
302
|
-
|
303
|
-
|
257
|
+
}
|
258
|
+
|
259
|
+
/**
|
260
|
+
* Get absolute position of element
|
261
|
+
*/
|
262
|
+
fb.absolutePosition = function (el) {
|
263
|
+
var r = { x: el.offsetLeft, y: el.offsetTop };
|
264
|
+
// Resolve relative to offsetParent
|
265
|
+
if (el.offsetParent) {
|
266
|
+
var tmp = fb.absolutePosition(el.offsetParent);
|
267
|
+
r.x += tmp.x;
|
268
|
+
r.y += tmp.y;
|
304
269
|
}
|
305
|
-
|
306
|
-
|
307
|
-
|
308
|
-
|
309
|
-
|
310
|
-
|
311
|
-
|
270
|
+
return r;
|
271
|
+
};
|
272
|
+
|
273
|
+
/* Various color utility functions */
|
274
|
+
fb.pack = function (rgb) {
|
275
|
+
var r = Math.round(rgb[0] * 255);
|
276
|
+
var g = Math.round(rgb[1] * 255);
|
277
|
+
var b = Math.round(rgb[2] * 255);
|
278
|
+
return '#' + (r < 16 ? '0' : '') + r.toString(16) +
|
279
|
+
(g < 16 ? '0' : '') + g.toString(16) +
|
280
|
+
(b < 16 ? '0' : '') + b.toString(16);
|
281
|
+
}
|
282
|
+
|
283
|
+
fb.unpack = function (color) {
|
284
|
+
if (color.length == 7) {
|
285
|
+
return [parseInt('0x' + color.substring(1, 3)) / 255,
|
286
|
+
parseInt('0x' + color.substring(3, 5)) / 255,
|
287
|
+
parseInt('0x' + color.substring(5, 7)) / 255];
|
312
288
|
}
|
313
|
-
|
314
|
-
|
315
|
-
|
316
|
-
|
317
|
-
|
318
|
-
|
319
|
-
|
320
|
-
|
321
|
-
|
322
|
-
|
323
|
-
|
324
|
-
|
325
|
-
|
326
|
-
|
327
|
-
|
328
|
-
|
329
|
-
|
330
|
-
|
331
|
-
|
332
|
-
|
289
|
+
else if (color.length == 4) {
|
290
|
+
return [parseInt('0x' + color.substring(1, 2)) / 15,
|
291
|
+
parseInt('0x' + color.substring(2, 3)) / 15,
|
292
|
+
parseInt('0x' + color.substring(3, 4)) / 15];
|
293
|
+
}
|
294
|
+
}
|
295
|
+
|
296
|
+
fb.HSLToRGB = function (hsl) {
|
297
|
+
var m1, m2, r, g, b;
|
298
|
+
var h = hsl[0], s = hsl[1], l = hsl[2];
|
299
|
+
m2 = (l <= 0.5) ? l * (s + 1) : l + s - l * s;
|
300
|
+
m1 = l * 2 - m2;
|
301
|
+
return [this.hueToRGB(m1, m2, h + 0.33333),
|
302
|
+
this.hueToRGB(m1, m2, h),
|
303
|
+
this.hueToRGB(m1, m2, h - 0.33333)];
|
304
|
+
}
|
305
|
+
|
306
|
+
fb.hueToRGB = function (m1, m2, h) {
|
307
|
+
h = (h < 0) ? h + 1 : ((h > 1) ? h - 1 : h);
|
308
|
+
if (h * 6 < 1) return m1 + (m2 - m1) * h * 6;
|
309
|
+
if (h * 2 < 1) return m2;
|
310
|
+
if (h * 3 < 2) return m1 + (m2 - m1) * (0.66666 - h) * 6;
|
311
|
+
return m1;
|
312
|
+
}
|
313
|
+
|
314
|
+
fb.RGBToHSL = function (rgb) {
|
315
|
+
var min, max, delta, h, s, l;
|
316
|
+
var r = rgb[0], g = rgb[1], b = rgb[2];
|
317
|
+
min = Math.min(r, Math.min(g, b));
|
318
|
+
max = Math.max(r, Math.max(g, b));
|
319
|
+
delta = max - min;
|
320
|
+
l = (min + max) / 2;
|
321
|
+
s = 0;
|
322
|
+
if (l > 0 && l < 1) {
|
323
|
+
s = delta / (l < 0.5 ? (2 * l) : (2 - 2 * l));
|
333
324
|
}
|
325
|
+
h = 0;
|
326
|
+
if (delta > 0) {
|
327
|
+
if (max == r && max != g) h += (g - b) / delta;
|
328
|
+
if (max == g && max != b) h += (2 + (b - r) / delta);
|
329
|
+
if (max == b && max != r) h += (4 + (r - g) / delta);
|
330
|
+
h /= 6;
|
331
|
+
}
|
332
|
+
return [h, s, l];
|
333
|
+
}
|
334
334
|
|
335
|
-
|
336
|
-
|
335
|
+
// Install mousedown handler (the others are set on the document on-demand)
|
336
|
+
$('*', e).mousedown(fb.mousedown);
|
337
337
|
|
338
|
-
|
339
|
-
|
338
|
+
// Init color
|
339
|
+
fb.setColor('#000000');
|
340
340
|
|
341
|
-
|
342
|
-
|
343
|
-
|
344
|
-
|
341
|
+
// Set linked elements/callback
|
342
|
+
if (callback) {
|
343
|
+
fb.linkTo(callback);
|
344
|
+
}
|
345
345
|
}
|