diff --git a/resources/library/applications/Calculator.wgt/Calculator.wgt/.gitignore b/resources/library/applications/Calculator.wgt/.gitignore similarity index 100% rename from resources/library/applications/Calculator.wgt/Calculator.wgt/.gitignore rename to resources/library/applications/Calculator.wgt/.gitignore diff --git a/resources/library/applications/Calculator.wgt/Calculator.wgt/config.xml b/resources/library/applications/Calculator.wgt/Calculator.wgt/config.xml deleted file mode 100644 index 53510bd4..00000000 --- a/resources/library/applications/Calculator.wgt/Calculator.wgt/config.xml +++ /dev/null @@ -1,14 +0,0 @@ - - - Calculator - - diff --git a/resources/library/applications/Calculator.wgt/Calculator.wgt/icon.png b/resources/library/applications/Calculator.wgt/Calculator.wgt/icon.png deleted file mode 100644 index ad760367..00000000 Binary files a/resources/library/applications/Calculator.wgt/Calculator.wgt/icon.png and /dev/null differ diff --git a/resources/library/applications/Calculator.wgt/Calculator.wgt/index.html b/resources/library/applications/Calculator.wgt/Calculator.wgt/index.html deleted file mode 100644 index df9e83cf..00000000 --- a/resources/library/applications/Calculator.wgt/Calculator.wgt/index.html +++ /dev/null @@ -1,55 +0,0 @@ - - - - - - Unpredictable Calculator - - - - - - - -
- - - - - diff --git a/resources/library/applications/Calculator.wgt/Calculator.wgt/Gruntfile.js b/resources/library/applications/Calculator.wgt/Gruntfile.js similarity index 100% rename from resources/library/applications/Calculator.wgt/Calculator.wgt/Gruntfile.js rename to resources/library/applications/Calculator.wgt/Gruntfile.js diff --git a/resources/library/applications/Calculator.wgt/__MACOSX/._Calculator.wgt b/resources/library/applications/Calculator.wgt/__MACOSX/._Calculator.wgt deleted file mode 100644 index 69f214be..00000000 Binary files a/resources/library/applications/Calculator.wgt/__MACOSX/._Calculator.wgt and /dev/null differ diff --git a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/._.gitignore b/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/._.gitignore deleted file mode 100644 index 69f214be..00000000 Binary files a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/._.gitignore and /dev/null differ diff --git a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/._Gruntfile.js b/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/._Gruntfile.js deleted file mode 100644 index 69f214be..00000000 Binary files a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/._Gruntfile.js and /dev/null differ diff --git a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/._config.xml b/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/._config.xml deleted file mode 100644 index 69f214be..00000000 Binary files a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/._config.xml and /dev/null differ diff --git a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/._css b/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/._css deleted file mode 100644 index 69f214be..00000000 Binary files a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/._css and /dev/null differ diff --git a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/._dist b/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/._dist deleted file mode 100644 index 69f214be..00000000 Binary files a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/._dist and /dev/null differ diff --git a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/._icon.png b/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/._icon.png deleted file mode 100644 index 69f214be..00000000 Binary files a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/._icon.png and /dev/null differ diff --git a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/._index.html b/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/._index.html deleted file mode 100644 index 69f214be..00000000 Binary files a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/._index.html and /dev/null differ diff --git a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/._js b/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/._js deleted file mode 100644 index 69f214be..00000000 Binary files a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/._js and /dev/null differ diff --git a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/._legacy b/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/._legacy deleted file mode 100644 index 69f214be..00000000 Binary files a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/._legacy and /dev/null differ diff --git a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/._package.json b/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/._package.json deleted file mode 100644 index 69f214be..00000000 Binary files a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/._package.json and /dev/null differ diff --git a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/css/._calculator.css b/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/css/._calculator.css deleted file mode 100644 index 69f214be..00000000 Binary files a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/css/._calculator.css and /dev/null differ diff --git a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/dist/._calculator.js b/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/dist/._calculator.js deleted file mode 100644 index 69f214be..00000000 Binary files a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/dist/._calculator.js and /dev/null differ diff --git a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/js/._sankore.js b/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/js/._sankore.js deleted file mode 100644 index 69f214be..00000000 Binary files a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/js/._sankore.js and /dev/null differ diff --git a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/js/._src b/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/js/._src deleted file mode 100644 index 69f214be..00000000 Binary files a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/js/._src and /dev/null differ diff --git a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/js/src/._Sankore b/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/js/src/._Sankore deleted file mode 100644 index 69f214be..00000000 Binary files a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/js/src/._Sankore and /dev/null differ diff --git a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/js/src/Sankore/._Button.js b/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/js/src/Sankore/._Button.js deleted file mode 100644 index 69f214be..00000000 Binary files a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/js/src/Sankore/._Button.js and /dev/null differ diff --git a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/js/src/Sankore/._Calculator.js b/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/js/src/Sankore/._Calculator.js deleted file mode 100644 index 69f214be..00000000 Binary files a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/js/src/Sankore/._Calculator.js and /dev/null differ diff --git a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/js/src/Sankore/._Calculus b/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/js/src/Sankore/._Calculus deleted file mode 100644 index 69f214be..00000000 Binary files a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/js/src/Sankore/._Calculus and /dev/null differ diff --git a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/js/src/Sankore/._Command.js b/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/js/src/Sankore/._Command.js deleted file mode 100644 index 69f214be..00000000 Binary files a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/js/src/Sankore/._Command.js and /dev/null differ diff --git a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/js/src/Sankore/._Editor b/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/js/src/Sankore/._Editor deleted file mode 100644 index 69f214be..00000000 Binary files a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/js/src/Sankore/._Editor and /dev/null differ diff --git a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/js/src/Sankore/._KeystrokeLine.js b/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/js/src/Sankore/._KeystrokeLine.js deleted file mode 100644 index 69f214be..00000000 Binary files a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/js/src/Sankore/._KeystrokeLine.js and /dev/null differ diff --git a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/js/src/Sankore/._Text.js b/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/js/src/Sankore/._Text.js deleted file mode 100644 index 69f214be..00000000 Binary files a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/js/src/Sankore/._Text.js and /dev/null differ diff --git a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/js/src/Sankore/._UI b/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/js/src/Sankore/._UI deleted file mode 100644 index 69f214be..00000000 Binary files a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/js/src/Sankore/._UI and /dev/null differ diff --git a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/js/src/Sankore/._Util b/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/js/src/Sankore/._Util deleted file mode 100644 index 69f214be..00000000 Binary files a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/js/src/Sankore/._Util and /dev/null differ diff --git a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/js/src/Sankore/._klass.js b/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/js/src/Sankore/._klass.js deleted file mode 100644 index 69f214be..00000000 Binary files a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/js/src/Sankore/._klass.js and /dev/null differ diff --git a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/js/src/Sankore/Calculus/._Engine.js b/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/js/src/Sankore/Calculus/._Engine.js deleted file mode 100644 index 69f214be..00000000 Binary files a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/js/src/Sankore/Calculus/._Engine.js and /dev/null differ diff --git a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/js/src/Sankore/Calculus/._Expression.js b/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/js/src/Sankore/Calculus/._Expression.js deleted file mode 100644 index 69f214be..00000000 Binary files a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/js/src/Sankore/Calculus/._Expression.js and /dev/null differ diff --git a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/js/src/Sankore/Editor/._Editor.js b/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/js/src/Sankore/Editor/._Editor.js deleted file mode 100644 index 69f214be..00000000 Binary files a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/js/src/Sankore/Editor/._Editor.js and /dev/null differ diff --git a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/js/src/Sankore/Editor/._Layout.js b/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/js/src/Sankore/Editor/._Layout.js deleted file mode 100644 index 69f214be..00000000 Binary files a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/js/src/Sankore/Editor/._Layout.js and /dev/null differ diff --git a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/js/src/Sankore/UI/._EditorInterface.js b/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/js/src/Sankore/UI/._EditorInterface.js deleted file mode 100644 index 69f214be..00000000 Binary files a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/js/src/Sankore/UI/._EditorInterface.js and /dev/null differ diff --git a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/js/src/Sankore/UI/._MainInterface.js b/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/js/src/Sankore/UI/._MainInterface.js deleted file mode 100644 index 69f214be..00000000 Binary files a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/js/src/Sankore/UI/._MainInterface.js and /dev/null differ diff --git a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/js/src/Sankore/Util/._Error.js b/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/js/src/Sankore/Util/._Error.js deleted file mode 100644 index 69f214be..00000000 Binary files a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/js/src/Sankore/Util/._Error.js and /dev/null differ diff --git a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/js/src/Sankore/Util/._EventDispatcher.js b/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/js/src/Sankore/Util/._EventDispatcher.js deleted file mode 100644 index 69f214be..00000000 Binary files a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/js/src/Sankore/Util/._EventDispatcher.js and /dev/null differ diff --git a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/js/src/Sankore/Util/._Hash.js b/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/js/src/Sankore/Util/._Hash.js deleted file mode 100644 index 69f214be..00000000 Binary files a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/js/src/Sankore/Util/._Hash.js and /dev/null differ diff --git a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/js/src/Sankore/Util/._I18N.js b/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/js/src/Sankore/Util/._I18N.js deleted file mode 100644 index 69f214be..00000000 Binary files a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/js/src/Sankore/Util/._I18N.js and /dev/null differ diff --git a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/js/src/Sankore/Util/._i18n b/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/js/src/Sankore/Util/._i18n deleted file mode 100644 index 69f214be..00000000 Binary files a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/js/src/Sankore/Util/._i18n and /dev/null differ diff --git a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/js/src/Sankore/Util/i18n/._messages.en.js b/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/js/src/Sankore/Util/i18n/._messages.en.js deleted file mode 100644 index 69f214be..00000000 Binary files a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/js/src/Sankore/Util/i18n/._messages.en.js and /dev/null differ diff --git a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/js/src/Sankore/Util/i18n/._messages.fr.js b/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/js/src/Sankore/Util/i18n/._messages.fr.js deleted file mode 100644 index 69f214be..00000000 Binary files a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/js/src/Sankore/Util/i18n/._messages.fr.js and /dev/null differ diff --git a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/._css b/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/._css deleted file mode 100644 index 69f214be..00000000 Binary files a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/._css and /dev/null differ diff --git a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/._images b/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/._images deleted file mode 100644 index 69f214be..00000000 Binary files a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/._images and /dev/null differ diff --git a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/._js b/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/._js deleted file mode 100644 index 69f214be..00000000 Binary files a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/._js and /dev/null differ diff --git a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/css/._ubwidget.css b/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/css/._ubwidget.css deleted file mode 100644 index 69f214be..00000000 Binary files a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/css/._ubwidget.css and /dev/null differ diff --git a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/._arrows_out b/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/._arrows_out deleted file mode 100644 index 69f214be..00000000 Binary files a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/._arrows_out and /dev/null differ diff --git a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/._arrows_over b/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/._arrows_over deleted file mode 100644 index 69f214be..00000000 Binary files a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/._arrows_over and /dev/null differ diff --git a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/._back.png b/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/._back.png deleted file mode 100644 index 69f214be..00000000 Binary files a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/._back.png and /dev/null differ diff --git a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/._back_small.png b/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/._back_small.png deleted file mode 100644 index 69f214be..00000000 Binary files a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/._back_small.png and /dev/null differ diff --git a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/._button_out-copie.png b/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/._button_out-copie.png deleted file mode 100644 index 69f214be..00000000 Binary files a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/._button_out-copie.png and /dev/null differ diff --git a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/._button_out.gif b/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/._button_out.gif deleted file mode 100644 index 69f214be..00000000 Binary files a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/._button_out.gif and /dev/null differ diff --git a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/._button_out.png b/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/._button_out.png deleted file mode 100644 index 69f214be..00000000 Binary files a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/._button_out.png and /dev/null differ diff --git a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/._button_out_dark.gif b/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/._button_out_dark.gif deleted file mode 100644 index 69f214be..00000000 Binary files a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/._button_out_dark.gif and /dev/null differ diff --git a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/._button_out_dark.png b/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/._button_out_dark.png deleted file mode 100644 index 69f214be..00000000 Binary files a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/._button_out_dark.png and /dev/null differ diff --git a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/._button_over.gif b/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/._button_over.gif deleted file mode 100644 index 69f214be..00000000 Binary files a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/._button_over.gif and /dev/null differ diff --git a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/._button_toggle.png b/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/._button_toggle.png deleted file mode 100644 index 69f214be..00000000 Binary files a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/._button_toggle.png and /dev/null differ diff --git a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/._button_toggle_invert.png b/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/._button_toggle_invert.png deleted file mode 100644 index 69f214be..00000000 Binary files a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/._button_toggle_invert.png and /dev/null differ diff --git a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/._buttons_shadow b/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/._buttons_shadow deleted file mode 100644 index 69f214be..00000000 Binary files a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/._buttons_shadow and /dev/null differ diff --git a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/._calculator b/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/._calculator deleted file mode 100644 index 69f214be..00000000 Binary files a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/._calculator and /dev/null differ diff --git a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/._display copy.png b/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/._display copy.png deleted file mode 100644 index 69f214be..00000000 Binary files a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/._display copy.png and /dev/null differ diff --git a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/._display.png b/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/._display.png deleted file mode 100644 index 69f214be..00000000 Binary files a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/._display.png and /dev/null differ diff --git a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/._historyback.png b/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/._historyback.png deleted file mode 100644 index 69f214be..00000000 Binary files a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/._historyback.png and /dev/null differ diff --git a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/._historytab.png b/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/._historytab.png deleted file mode 100644 index 69f214be..00000000 Binary files a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/._historytab.png and /dev/null differ diff --git a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/._historytabOver.png b/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/._historytabOver.png deleted file mode 100644 index 69f214be..00000000 Binary files a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/._historytabOver.png and /dev/null differ diff --git a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/._inspector.png b/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/._inspector.png deleted file mode 100644 index 69f214be..00000000 Binary files a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/._inspector.png and /dev/null differ diff --git a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/._touche0.png b/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/._touche0.png deleted file mode 100644 index 69f214be..00000000 Binary files a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/._touche0.png and /dev/null differ diff --git a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/._touche0_over.png b/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/._touche0_over.png deleted file mode 100644 index 69f214be..00000000 Binary files a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/._touche0_over.png and /dev/null differ diff --git a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/._touche0_over_down.png b/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/._touche0_over_down.png deleted file mode 100644 index 69f214be..00000000 Binary files a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/._touche0_over_down.png and /dev/null differ diff --git a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/._touche1.png b/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/._touche1.png deleted file mode 100644 index 69f214be..00000000 Binary files a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/._touche1.png and /dev/null differ diff --git a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/._touche1_over.png b/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/._touche1_over.png deleted file mode 100644 index 69f214be..00000000 Binary files a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/._touche1_over.png and /dev/null differ diff --git a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/._touche1_over_down.png b/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/._touche1_over_down.png deleted file mode 100644 index 69f214be..00000000 Binary files a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/._touche1_over_down.png and /dev/null differ diff --git a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/._touche2.png b/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/._touche2.png deleted file mode 100644 index 69f214be..00000000 Binary files a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/._touche2.png and /dev/null differ diff --git a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/._touche2_over.png b/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/._touche2_over.png deleted file mode 100644 index 69f214be..00000000 Binary files a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/._touche2_over.png and /dev/null differ diff --git a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/._touche2_over_down.png b/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/._touche2_over_down.png deleted file mode 100644 index 69f214be..00000000 Binary files a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/._touche2_over_down.png and /dev/null differ diff --git a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/._touche3.png b/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/._touche3.png deleted file mode 100644 index 69f214be..00000000 Binary files a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/._touche3.png and /dev/null differ diff --git a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/._touche3_over.png b/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/._touche3_over.png deleted file mode 100644 index 69f214be..00000000 Binary files a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/._touche3_over.png and /dev/null differ diff --git a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/._touche3_over_down.png b/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/._touche3_over_down.png deleted file mode 100644 index 69f214be..00000000 Binary files a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/._touche3_over_down.png and /dev/null differ diff --git a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/._touche4.png b/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/._touche4.png deleted file mode 100644 index 69f214be..00000000 Binary files a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/._touche4.png and /dev/null differ diff --git a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/._touche4_over.png b/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/._touche4_over.png deleted file mode 100644 index 69f214be..00000000 Binary files a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/._touche4_over.png and /dev/null differ diff --git a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/._touche4_over_down.png b/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/._touche4_over_down.png deleted file mode 100644 index 69f214be..00000000 Binary files a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/._touche4_over_down.png and /dev/null differ diff --git a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/._touche5.png b/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/._touche5.png deleted file mode 100644 index 69f214be..00000000 Binary files a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/._touche5.png and /dev/null differ diff --git a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/._touche5_over.png b/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/._touche5_over.png deleted file mode 100644 index 69f214be..00000000 Binary files a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/._touche5_over.png and /dev/null differ diff --git a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/._touche5_over_down.png b/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/._touche5_over_down.png deleted file mode 100644 index 69f214be..00000000 Binary files a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/._touche5_over_down.png and /dev/null differ diff --git a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/._touche6.png b/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/._touche6.png deleted file mode 100644 index 69f214be..00000000 Binary files a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/._touche6.png and /dev/null differ diff --git a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/._touche6_over.png b/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/._touche6_over.png deleted file mode 100644 index 69f214be..00000000 Binary files a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/._touche6_over.png and /dev/null differ diff --git a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/._touche6_over_down.png b/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/._touche6_over_down.png deleted file mode 100644 index 69f214be..00000000 Binary files a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/._touche6_over_down.png and /dev/null differ diff --git a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/._touche7.png b/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/._touche7.png deleted file mode 100644 index 69f214be..00000000 Binary files a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/._touche7.png and /dev/null differ diff --git a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/._touche7_over.png b/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/._touche7_over.png deleted file mode 100644 index 69f214be..00000000 Binary files a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/._touche7_over.png and /dev/null differ diff --git a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/._touche7_over_down.png b/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/._touche7_over_down.png deleted file mode 100644 index 69f214be..00000000 Binary files a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/._touche7_over_down.png and /dev/null differ diff --git a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/._touche8.png b/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/._touche8.png deleted file mode 100644 index 69f214be..00000000 Binary files a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/._touche8.png and /dev/null differ diff --git a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/._touche8_over.png b/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/._touche8_over.png deleted file mode 100644 index 69f214be..00000000 Binary files a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/._touche8_over.png and /dev/null differ diff --git a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/._touche8_over_down.png b/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/._touche8_over_down.png deleted file mode 100644 index 69f214be..00000000 Binary files a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/._touche8_over_down.png and /dev/null differ diff --git a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/._touche9.png b/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/._touche9.png deleted file mode 100644 index 69f214be..00000000 Binary files a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/._touche9.png and /dev/null differ diff --git a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/._touche9_over.png b/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/._touche9_over.png deleted file mode 100644 index 69f214be..00000000 Binary files a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/._touche9_over.png and /dev/null differ diff --git a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/._touche9_over_down.png b/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/._touche9_over_down.png deleted file mode 100644 index 69f214be..00000000 Binary files a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/._touche9_over_down.png and /dev/null differ diff --git a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/._touchec.png b/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/._touchec.png deleted file mode 100644 index 69f214be..00000000 Binary files a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/._touchec.png and /dev/null differ diff --git a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/._touchec_over.png b/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/._touchec_over.png deleted file mode 100644 index 69f214be..00000000 Binary files a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/._touchec_over.png and /dev/null differ diff --git a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/._touchec_over_down.png b/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/._touchec_over_down.png deleted file mode 100644 index 69f214be..00000000 Binary files a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/._touchec_over_down.png and /dev/null differ diff --git a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/._touchediv.png b/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/._touchediv.png deleted file mode 100644 index 69f214be..00000000 Binary files a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/._touchediv.png and /dev/null differ diff --git a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/._touchediv_over.png b/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/._touchediv_over.png deleted file mode 100644 index 69f214be..00000000 Binary files a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/._touchediv_over.png and /dev/null differ diff --git a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/._touchediv_over_down.png b/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/._touchediv_over_down.png deleted file mode 100644 index 69f214be..00000000 Binary files a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/._touchediv_over_down.png and /dev/null differ diff --git a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/._touchedot.png b/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/._touchedot.png deleted file mode 100644 index 69f214be..00000000 Binary files a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/._touchedot.png and /dev/null differ diff --git a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/._touchedot_over.png b/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/._touchedot_over.png deleted file mode 100644 index 69f214be..00000000 Binary files a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/._touchedot_over.png and /dev/null differ diff --git a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/._touchedot_over_down.png b/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/._touchedot_over_down.png deleted file mode 100644 index 69f214be..00000000 Binary files a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/._touchedot_over_down.png and /dev/null differ diff --git a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/._toucheeq.png b/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/._toucheeq.png deleted file mode 100644 index 69f214be..00000000 Binary files a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/._toucheeq.png and /dev/null differ diff --git a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/._toucheeq_over.png b/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/._toucheeq_over.png deleted file mode 100644 index 69f214be..00000000 Binary files a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/._toucheeq_over.png and /dev/null differ diff --git a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/._toucheeq_over_down.png b/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/._toucheeq_over_down.png deleted file mode 100644 index 69f214be..00000000 Binary files a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/._toucheeq_over_down.png and /dev/null differ diff --git a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/._touchef.png b/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/._touchef.png deleted file mode 100644 index 69f214be..00000000 Binary files a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/._touchef.png and /dev/null differ diff --git a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/._touchef_over.png b/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/._touchef_over.png deleted file mode 100644 index 69f214be..00000000 Binary files a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/._touchef_over.png and /dev/null differ diff --git a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/._touchef_over_down.png b/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/._touchef_over_down.png deleted file mode 100644 index 69f214be..00000000 Binary files a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/._touchef_over_down.png and /dev/null differ diff --git a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/._touchem.png b/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/._touchem.png deleted file mode 100644 index 69f214be..00000000 Binary files a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/._touchem.png and /dev/null differ diff --git a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/._touchem_over.png b/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/._touchem_over.png deleted file mode 100644 index 69f214be..00000000 Binary files a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/._touchem_over.png and /dev/null differ diff --git a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/._touchem_over_down.png b/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/._touchem_over_down.png deleted file mode 100644 index 69f214be..00000000 Binary files a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/._touchem_over_down.png and /dev/null differ diff --git a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/._touchep.png b/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/._touchep.png deleted file mode 100644 index 69f214be..00000000 Binary files a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/._touchep.png and /dev/null differ diff --git a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/._touchep_over.png b/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/._touchep_over.png deleted file mode 100644 index 69f214be..00000000 Binary files a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/._touchep_over.png and /dev/null differ diff --git a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/._touchep_over_down.png b/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/._touchep_over_down.png deleted file mode 100644 index 69f214be..00000000 Binary files a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/._touchep_over_down.png and /dev/null differ diff --git a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/._touchepd.png b/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/._touchepd.png deleted file mode 100644 index 69f214be..00000000 Binary files a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/._touchepd.png and /dev/null differ diff --git a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/._touchepd_over.png b/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/._touchepd_over.png deleted file mode 100644 index 69f214be..00000000 Binary files a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/._touchepd_over.png and /dev/null differ diff --git a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/._touchepd_over_down.png b/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/._touchepd_over_down.png deleted file mode 100644 index 69f214be..00000000 Binary files a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/._touchepd_over_down.png and /dev/null differ diff --git a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/._touchepg.png b/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/._touchepg.png deleted file mode 100644 index 69f214be..00000000 Binary files a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/._touchepg.png and /dev/null differ diff --git a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/._touchepg_over.png b/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/._touchepg_over.png deleted file mode 100644 index 69f214be..00000000 Binary files a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/._touchepg_over.png and /dev/null differ diff --git a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/._touchepg_over_down.png b/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/._touchepg_over_down.png deleted file mode 100644 index 69f214be..00000000 Binary files a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/._touchepg_over_down.png and /dev/null differ diff --git a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/arrows_out/._bottom.png b/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/arrows_out/._bottom.png deleted file mode 100644 index 69f214be..00000000 Binary files a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/arrows_out/._bottom.png and /dev/null differ diff --git a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/arrows_out/._left.png b/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/arrows_out/._left.png deleted file mode 100644 index 69f214be..00000000 Binary files a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/arrows_out/._left.png and /dev/null differ diff --git a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/arrows_out/._right.png b/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/arrows_out/._right.png deleted file mode 100644 index 69f214be..00000000 Binary files a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/arrows_out/._right.png and /dev/null differ diff --git a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/arrows_out/._top.png b/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/arrows_out/._top.png deleted file mode 100644 index 69f214be..00000000 Binary files a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/arrows_out/._top.png and /dev/null differ diff --git a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/arrows_over/._button_arrow_bottom.png b/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/arrows_over/._button_arrow_bottom.png deleted file mode 100644 index 69f214be..00000000 Binary files a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/arrows_over/._button_arrow_bottom.png and /dev/null differ diff --git a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/arrows_over/._button_arrow_left.png b/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/arrows_over/._button_arrow_left.png deleted file mode 100644 index 69f214be..00000000 Binary files a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/arrows_over/._button_arrow_left.png and /dev/null differ diff --git a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/arrows_over/._button_arrow_right.png b/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/arrows_over/._button_arrow_right.png deleted file mode 100644 index 69f214be..00000000 Binary files a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/arrows_over/._button_arrow_right.png and /dev/null differ diff --git a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/arrows_over/._button_arrow_top.png b/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/arrows_over/._button_arrow_top.png deleted file mode 100644 index 69f214be..00000000 Binary files a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/arrows_over/._button_arrow_top.png and /dev/null differ diff --git a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/buttons_shadow/._back.png b/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/buttons_shadow/._back.png deleted file mode 100644 index 69f214be..00000000 Binary files a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/buttons_shadow/._back.png and /dev/null differ diff --git a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/buttons_shadow/._bottom.png b/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/buttons_shadow/._bottom.png deleted file mode 100644 index 69f214be..00000000 Binary files a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/buttons_shadow/._bottom.png and /dev/null differ diff --git a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/buttons_shadow/._cbottomleft.png b/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/buttons_shadow/._cbottomleft.png deleted file mode 100644 index 69f214be..00000000 Binary files a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/buttons_shadow/._cbottomleft.png and /dev/null differ diff --git a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/buttons_shadow/._cbottomright.png b/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/buttons_shadow/._cbottomright.png deleted file mode 100644 index 69f214be..00000000 Binary files a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/buttons_shadow/._cbottomright.png and /dev/null differ diff --git a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/buttons_shadow/._ctopleft.png b/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/buttons_shadow/._ctopleft.png deleted file mode 100644 index 69f214be..00000000 Binary files a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/buttons_shadow/._ctopleft.png and /dev/null differ diff --git a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/buttons_shadow/._ctopright.png b/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/buttons_shadow/._ctopright.png deleted file mode 100644 index 69f214be..00000000 Binary files a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/buttons_shadow/._ctopright.png and /dev/null differ diff --git a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/buttons_shadow/._left.png b/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/buttons_shadow/._left.png deleted file mode 100644 index 69f214be..00000000 Binary files a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/buttons_shadow/._left.png and /dev/null differ diff --git a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/buttons_shadow/._right.png b/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/buttons_shadow/._right.png deleted file mode 100644 index 69f214be..00000000 Binary files a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/buttons_shadow/._right.png and /dev/null differ diff --git a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/buttons_shadow/._top.png b/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/buttons_shadow/._top.png deleted file mode 100644 index 69f214be..00000000 Binary files a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/buttons_shadow/._top.png and /dev/null differ diff --git a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/calculator/._pi.png b/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/calculator/._pi.png deleted file mode 100644 index 69f214be..00000000 Binary files a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/calculator/._pi.png and /dev/null differ diff --git a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/calculator/._pi.psd b/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/calculator/._pi.psd deleted file mode 100644 index 69f214be..00000000 Binary files a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/calculator/._pi.psd and /dev/null differ diff --git a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/calculator/._pi_click.png b/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/calculator/._pi_click.png deleted file mode 100644 index 69f214be..00000000 Binary files a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/calculator/._pi_click.png and /dev/null differ diff --git a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/calculator/._pi_over.png b/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/calculator/._pi_over.png deleted file mode 100644 index 69f214be..00000000 Binary files a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/calculator/._pi_over.png and /dev/null differ diff --git a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/calculator/._pow.png b/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/calculator/._pow.png deleted file mode 100644 index 69f214be..00000000 Binary files a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/calculator/._pow.png and /dev/null differ diff --git a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/calculator/._pow.psd b/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/calculator/._pow.psd deleted file mode 100644 index 69f214be..00000000 Binary files a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/calculator/._pow.psd and /dev/null differ diff --git a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/calculator/._sq.png b/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/calculator/._sq.png deleted file mode 100644 index 69f214be..00000000 Binary files a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/calculator/._sq.png and /dev/null differ diff --git a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/calculator/._sq.psd b/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/calculator/._sq.psd deleted file mode 100644 index 69f214be..00000000 Binary files a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/calculator/._sq.psd and /dev/null differ diff --git a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/calculator/._sq_click.png b/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/calculator/._sq_click.png deleted file mode 100644 index 69f214be..00000000 Binary files a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/calculator/._sq_click.png and /dev/null differ diff --git a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/calculator/._sq_over.png b/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/calculator/._sq_over.png deleted file mode 100644 index 69f214be..00000000 Binary files a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/images/calculator/._sq_over.png and /dev/null differ diff --git a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/js/._src b/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/js/._src deleted file mode 100644 index 69f214be..00000000 Binary files a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/js/._src and /dev/null differ diff --git a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/js/._vendor b/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/js/._vendor deleted file mode 100644 index 69f214be..00000000 Binary files a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/js/._vendor and /dev/null differ diff --git a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/js/src/._calculate.js b/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/js/src/._calculate.js deleted file mode 100644 index 69f214be..00000000 Binary files a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/js/src/._calculate.js and /dev/null differ diff --git a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/js/src/._jquery.ubwidget.js b/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/js/src/._jquery.ubwidget.js deleted file mode 100644 index 69f214be..00000000 Binary files a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/js/src/._jquery.ubwidget.js and /dev/null differ diff --git a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/js/src/._ubw-main.js b/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/js/src/._ubw-main.js deleted file mode 100644 index 69f214be..00000000 Binary files a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/js/src/._ubw-main.js and /dev/null differ diff --git a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/js/vendor/._jquery-1.3.2.min.js b/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/js/vendor/._jquery-1.3.2.min.js deleted file mode 100644 index 69f214be..00000000 Binary files a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/js/vendor/._jquery-1.3.2.min.js and /dev/null differ diff --git a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/js/vendor/._jquery-ui-1.7.2.custom.min.js b/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/js/vendor/._jquery-ui-1.7.2.custom.min.js deleted file mode 100644 index 69f214be..00000000 Binary files a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/js/vendor/._jquery-ui-1.7.2.custom.min.js and /dev/null differ diff --git a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/js/vendor/._jquery.disable.text.select.js b/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/js/vendor/._jquery.disable.text.select.js deleted file mode 100644 index 69f214be..00000000 Binary files a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/js/vendor/._jquery.disable.text.select.js and /dev/null differ diff --git a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/js/vendor/._jquery.easing.1.2.js b/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/js/vendor/._jquery.easing.1.2.js deleted file mode 100644 index 69f214be..00000000 Binary files a/resources/library/applications/Calculator.wgt/__MACOSX/Calculator.wgt/legacy/js/vendor/._jquery.easing.1.2.js and /dev/null differ diff --git a/resources/library/applications/Calculator.wgt/config.xml b/resources/library/applications/Calculator.wgt/config.xml index c186e7e3..53510bd4 100644 --- a/resources/library/applications/Calculator.wgt/config.xml +++ b/resources/library/applications/Calculator.wgt/config.xml @@ -3,9 +3,12 @@ xmlns:ub="http://uniboard.mnemis.com/widgets" id="http://uniboard.mnemis.com/widgets/calculator" version="1.1" - width="200" - height="300" - ub:resizable="false"> + width="460" + height="418" + minimum_width="460" + minimum_height="418" + ub:resizable="true" + ub:transparent="true"> Calculator diff --git a/resources/library/applications/Calculator.wgt/Calculator.wgt/css/calculator.css b/resources/library/applications/Calculator.wgt/css/calculator.css similarity index 100% rename from resources/library/applications/Calculator.wgt/Calculator.wgt/css/calculator.css rename to resources/library/applications/Calculator.wgt/css/calculator.css diff --git a/resources/library/applications/Calculator.wgt/css/ubwidget.css b/resources/library/applications/Calculator.wgt/css/ubwidget.css deleted file mode 100644 index f18d9ef5..00000000 --- a/resources/library/applications/Calculator.wgt/css/ubwidget.css +++ /dev/null @@ -1,102 +0,0 @@ -* { - margin: 0; - padding: 0; -} - -body{ - margin:0px; -} - -.ubw-container{ - float:left; - margin:3px; - margin-right:0px; - margin-top: 2px; - background-image:url(../images/back_small.png); - overflow: hidden; -} - -.ubw-body{ - margin:5px; - margin-left: 9px; - margin-right: 0px; -} - -.ubw-inspector{ - position:absolute; - background-color:rgb(252, 252, 252); - border:1px solid #cccccc; - line-height:20px; - font-family:Arial, Helvetica, sans-serif; - font-weight:normal; - font-size:20px; - color:#333333; -} - -.ubw-inpubox{ - min-width:28px; - min-height:37px; - color:#333333; - background-image: url(../images/button_out.png); - border-left:1px solid rgb(231, 231, 231); - border-right:1px solid rgb(231, 231, 231); - border-bottom:1px solid rgb(221, 221, 221); - border-top:1px solid rgb(241, 241, 241); -} - -/*BUTTONS*/ - -.ubw-button-wrapper{ - float:left; - position:relative; - /*border:solid 1px yellow;*/ - margin-right:-7px; - z-index:0; - font-family:Arial, Helvetica, sans-serif; - font-weight:normal; - font-size:30px; - overflow:visible; -} - -.ubw-button-canvas{ - width:auto; - float:left; - position:relative; - overflow:visible; -} - -table{ - line-height:90%; -} - -.ubw-button-body{ - position:relative; - float:left; - - width:auto; - height:auto; - overflow:visible - - text-align:center; - vertical-align:middle; - - cursor:pointer; -} - -.ubw-button-content{ - height:auto; - width:auto; - text-align:center; - overflow:visible; -} - - -.ubw-button-over{ -} - -.ubw-button-out{ -} - -span.colored{ - color: #0080ff; -} \ No newline at end of file diff --git a/resources/library/applications/Calculator.wgt/Calculator.wgt/dist/calculator.js b/resources/library/applications/Calculator.wgt/dist/calculator.js similarity index 100% rename from resources/library/applications/Calculator.wgt/Calculator.wgt/dist/calculator.js rename to resources/library/applications/Calculator.wgt/dist/calculator.js diff --git a/resources/library/applications/Calculator.wgt/images/arrows_out/bottom.png b/resources/library/applications/Calculator.wgt/images/arrows_out/bottom.png deleted file mode 100644 index 0298af41..00000000 Binary files a/resources/library/applications/Calculator.wgt/images/arrows_out/bottom.png and /dev/null differ diff --git a/resources/library/applications/Calculator.wgt/images/arrows_out/left.png b/resources/library/applications/Calculator.wgt/images/arrows_out/left.png deleted file mode 100644 index cbc75bd1..00000000 Binary files a/resources/library/applications/Calculator.wgt/images/arrows_out/left.png and /dev/null differ diff --git a/resources/library/applications/Calculator.wgt/images/arrows_out/right.png b/resources/library/applications/Calculator.wgt/images/arrows_out/right.png deleted file mode 100644 index 342d529b..00000000 Binary files a/resources/library/applications/Calculator.wgt/images/arrows_out/right.png and /dev/null differ diff --git a/resources/library/applications/Calculator.wgt/images/arrows_out/top.png b/resources/library/applications/Calculator.wgt/images/arrows_out/top.png deleted file mode 100644 index da79ff3f..00000000 Binary files a/resources/library/applications/Calculator.wgt/images/arrows_out/top.png and /dev/null differ diff --git a/resources/library/applications/Calculator.wgt/images/arrows_over/button_arrow_bottom.png b/resources/library/applications/Calculator.wgt/images/arrows_over/button_arrow_bottom.png deleted file mode 100644 index fbdbdf6e..00000000 Binary files a/resources/library/applications/Calculator.wgt/images/arrows_over/button_arrow_bottom.png and /dev/null differ diff --git a/resources/library/applications/Calculator.wgt/images/arrows_over/button_arrow_left.png b/resources/library/applications/Calculator.wgt/images/arrows_over/button_arrow_left.png deleted file mode 100644 index 91f95e00..00000000 Binary files a/resources/library/applications/Calculator.wgt/images/arrows_over/button_arrow_left.png and /dev/null differ diff --git a/resources/library/applications/Calculator.wgt/images/arrows_over/button_arrow_right.png b/resources/library/applications/Calculator.wgt/images/arrows_over/button_arrow_right.png deleted file mode 100644 index 18a87c2e..00000000 Binary files a/resources/library/applications/Calculator.wgt/images/arrows_over/button_arrow_right.png and /dev/null differ diff --git a/resources/library/applications/Calculator.wgt/images/arrows_over/button_arrow_top.png b/resources/library/applications/Calculator.wgt/images/arrows_over/button_arrow_top.png deleted file mode 100644 index 331cc814..00000000 Binary files a/resources/library/applications/Calculator.wgt/images/arrows_over/button_arrow_top.png and /dev/null differ diff --git a/resources/library/applications/Calculator.wgt/images/back.png b/resources/library/applications/Calculator.wgt/images/back.png deleted file mode 100644 index 1be0a07d..00000000 Binary files a/resources/library/applications/Calculator.wgt/images/back.png and /dev/null differ diff --git a/resources/library/applications/Calculator.wgt/images/back_small.png b/resources/library/applications/Calculator.wgt/images/back_small.png deleted file mode 100644 index cc12a91b..00000000 Binary files a/resources/library/applications/Calculator.wgt/images/back_small.png and /dev/null differ diff --git a/resources/library/applications/Calculator.wgt/images/button_out-copie.png b/resources/library/applications/Calculator.wgt/images/button_out-copie.png deleted file mode 100644 index 693fdb29..00000000 Binary files a/resources/library/applications/Calculator.wgt/images/button_out-copie.png and /dev/null differ diff --git a/resources/library/applications/Calculator.wgt/images/button_out.gif b/resources/library/applications/Calculator.wgt/images/button_out.gif deleted file mode 100644 index 0667fd90..00000000 Binary files a/resources/library/applications/Calculator.wgt/images/button_out.gif and /dev/null differ diff --git a/resources/library/applications/Calculator.wgt/images/button_out.png b/resources/library/applications/Calculator.wgt/images/button_out.png deleted file mode 100644 index 97f0ba7f..00000000 Binary files a/resources/library/applications/Calculator.wgt/images/button_out.png and /dev/null differ diff --git a/resources/library/applications/Calculator.wgt/images/button_out_dark.gif b/resources/library/applications/Calculator.wgt/images/button_out_dark.gif deleted file mode 100644 index 5076069a..00000000 Binary files a/resources/library/applications/Calculator.wgt/images/button_out_dark.gif and /dev/null differ diff --git a/resources/library/applications/Calculator.wgt/images/button_out_dark.png b/resources/library/applications/Calculator.wgt/images/button_out_dark.png deleted file mode 100644 index 897aca5b..00000000 Binary files a/resources/library/applications/Calculator.wgt/images/button_out_dark.png and /dev/null differ diff --git a/resources/library/applications/Calculator.wgt/images/button_over.gif b/resources/library/applications/Calculator.wgt/images/button_over.gif deleted file mode 100644 index 5d6b25d9..00000000 Binary files a/resources/library/applications/Calculator.wgt/images/button_over.gif and /dev/null differ diff --git a/resources/library/applications/Calculator.wgt/images/button_toggle.png b/resources/library/applications/Calculator.wgt/images/button_toggle.png deleted file mode 100644 index b5260aa5..00000000 Binary files a/resources/library/applications/Calculator.wgt/images/button_toggle.png and /dev/null differ diff --git a/resources/library/applications/Calculator.wgt/images/button_toggle_invert.png b/resources/library/applications/Calculator.wgt/images/button_toggle_invert.png deleted file mode 100644 index e7b238a6..00000000 Binary files a/resources/library/applications/Calculator.wgt/images/button_toggle_invert.png and /dev/null differ diff --git a/resources/library/applications/Calculator.wgt/images/buttons_shadow/back.png b/resources/library/applications/Calculator.wgt/images/buttons_shadow/back.png deleted file mode 100644 index 693aee55..00000000 Binary files a/resources/library/applications/Calculator.wgt/images/buttons_shadow/back.png and /dev/null differ diff --git a/resources/library/applications/Calculator.wgt/images/buttons_shadow/bottom.png b/resources/library/applications/Calculator.wgt/images/buttons_shadow/bottom.png deleted file mode 100644 index 58b61419..00000000 Binary files a/resources/library/applications/Calculator.wgt/images/buttons_shadow/bottom.png and /dev/null differ diff --git a/resources/library/applications/Calculator.wgt/images/buttons_shadow/cbottomleft.png b/resources/library/applications/Calculator.wgt/images/buttons_shadow/cbottomleft.png deleted file mode 100644 index c88ce0ba..00000000 Binary files a/resources/library/applications/Calculator.wgt/images/buttons_shadow/cbottomleft.png and /dev/null differ diff --git a/resources/library/applications/Calculator.wgt/images/buttons_shadow/cbottomright.png b/resources/library/applications/Calculator.wgt/images/buttons_shadow/cbottomright.png deleted file mode 100644 index d9d84a93..00000000 Binary files a/resources/library/applications/Calculator.wgt/images/buttons_shadow/cbottomright.png and /dev/null differ diff --git a/resources/library/applications/Calculator.wgt/images/buttons_shadow/ctopleft.png b/resources/library/applications/Calculator.wgt/images/buttons_shadow/ctopleft.png deleted file mode 100644 index 47e0e467..00000000 Binary files a/resources/library/applications/Calculator.wgt/images/buttons_shadow/ctopleft.png and /dev/null differ diff --git a/resources/library/applications/Calculator.wgt/images/buttons_shadow/ctopright.png b/resources/library/applications/Calculator.wgt/images/buttons_shadow/ctopright.png deleted file mode 100644 index c2eef3af..00000000 Binary files a/resources/library/applications/Calculator.wgt/images/buttons_shadow/ctopright.png and /dev/null differ diff --git a/resources/library/applications/Calculator.wgt/images/buttons_shadow/left.png b/resources/library/applications/Calculator.wgt/images/buttons_shadow/left.png deleted file mode 100644 index 953cd503..00000000 Binary files a/resources/library/applications/Calculator.wgt/images/buttons_shadow/left.png and /dev/null differ diff --git a/resources/library/applications/Calculator.wgt/images/buttons_shadow/right.png b/resources/library/applications/Calculator.wgt/images/buttons_shadow/right.png deleted file mode 100644 index 9f4ec365..00000000 Binary files a/resources/library/applications/Calculator.wgt/images/buttons_shadow/right.png and /dev/null differ diff --git a/resources/library/applications/Calculator.wgt/images/buttons_shadow/top.png b/resources/library/applications/Calculator.wgt/images/buttons_shadow/top.png deleted file mode 100644 index e51b93bd..00000000 Binary files a/resources/library/applications/Calculator.wgt/images/buttons_shadow/top.png and /dev/null differ diff --git a/resources/library/applications/Calculator.wgt/images/calculator/pi.png b/resources/library/applications/Calculator.wgt/images/calculator/pi.png deleted file mode 100644 index 2d38a03b..00000000 Binary files a/resources/library/applications/Calculator.wgt/images/calculator/pi.png and /dev/null differ diff --git a/resources/library/applications/Calculator.wgt/images/calculator/pi.psd b/resources/library/applications/Calculator.wgt/images/calculator/pi.psd deleted file mode 100644 index 3eafab60..00000000 Binary files a/resources/library/applications/Calculator.wgt/images/calculator/pi.psd and /dev/null differ diff --git a/resources/library/applications/Calculator.wgt/images/calculator/pi_click.png b/resources/library/applications/Calculator.wgt/images/calculator/pi_click.png deleted file mode 100644 index 1781c44c..00000000 Binary files a/resources/library/applications/Calculator.wgt/images/calculator/pi_click.png and /dev/null differ diff --git a/resources/library/applications/Calculator.wgt/images/calculator/pi_over.png b/resources/library/applications/Calculator.wgt/images/calculator/pi_over.png deleted file mode 100644 index d2ada45d..00000000 Binary files a/resources/library/applications/Calculator.wgt/images/calculator/pi_over.png and /dev/null differ diff --git a/resources/library/applications/Calculator.wgt/images/calculator/pow.png b/resources/library/applications/Calculator.wgt/images/calculator/pow.png deleted file mode 100644 index c572dc71..00000000 Binary files a/resources/library/applications/Calculator.wgt/images/calculator/pow.png and /dev/null differ diff --git a/resources/library/applications/Calculator.wgt/images/calculator/pow.psd b/resources/library/applications/Calculator.wgt/images/calculator/pow.psd deleted file mode 100644 index 0f669e95..00000000 Binary files a/resources/library/applications/Calculator.wgt/images/calculator/pow.psd and /dev/null differ diff --git a/resources/library/applications/Calculator.wgt/images/calculator/sq.png b/resources/library/applications/Calculator.wgt/images/calculator/sq.png deleted file mode 100644 index 9f5ae3af..00000000 Binary files a/resources/library/applications/Calculator.wgt/images/calculator/sq.png and /dev/null differ diff --git a/resources/library/applications/Calculator.wgt/images/calculator/sq.psd b/resources/library/applications/Calculator.wgt/images/calculator/sq.psd deleted file mode 100644 index 3348d2e0..00000000 Binary files a/resources/library/applications/Calculator.wgt/images/calculator/sq.psd and /dev/null differ diff --git a/resources/library/applications/Calculator.wgt/images/calculator/sq_click.png b/resources/library/applications/Calculator.wgt/images/calculator/sq_click.png deleted file mode 100644 index cd6c9abe..00000000 Binary files a/resources/library/applications/Calculator.wgt/images/calculator/sq_click.png and /dev/null differ diff --git a/resources/library/applications/Calculator.wgt/images/calculator/sq_over.png b/resources/library/applications/Calculator.wgt/images/calculator/sq_over.png deleted file mode 100644 index e04defd9..00000000 Binary files a/resources/library/applications/Calculator.wgt/images/calculator/sq_over.png and /dev/null differ diff --git a/resources/library/applications/Calculator.wgt/images/display copy.png b/resources/library/applications/Calculator.wgt/images/display copy.png deleted file mode 100644 index 3147ca21..00000000 Binary files a/resources/library/applications/Calculator.wgt/images/display copy.png and /dev/null differ diff --git a/resources/library/applications/Calculator.wgt/images/display.png b/resources/library/applications/Calculator.wgt/images/display.png deleted file mode 100644 index f85717ac..00000000 Binary files a/resources/library/applications/Calculator.wgt/images/display.png and /dev/null differ diff --git a/resources/library/applications/Calculator.wgt/images/historyback.png b/resources/library/applications/Calculator.wgt/images/historyback.png deleted file mode 100644 index 990438b4..00000000 Binary files a/resources/library/applications/Calculator.wgt/images/historyback.png and /dev/null differ diff --git a/resources/library/applications/Calculator.wgt/images/historytab.png b/resources/library/applications/Calculator.wgt/images/historytab.png deleted file mode 100644 index 5495a496..00000000 Binary files a/resources/library/applications/Calculator.wgt/images/historytab.png and /dev/null differ diff --git a/resources/library/applications/Calculator.wgt/images/historytabOver.png b/resources/library/applications/Calculator.wgt/images/historytabOver.png deleted file mode 100644 index 20aa3e32..00000000 Binary files a/resources/library/applications/Calculator.wgt/images/historytabOver.png and /dev/null differ diff --git a/resources/library/applications/Calculator.wgt/images/inspector.png b/resources/library/applications/Calculator.wgt/images/inspector.png deleted file mode 100644 index ac92bb3c..00000000 Binary files a/resources/library/applications/Calculator.wgt/images/inspector.png and /dev/null differ diff --git a/resources/library/applications/Calculator.wgt/images/touche0.png b/resources/library/applications/Calculator.wgt/images/touche0.png deleted file mode 100644 index d7bd4a10..00000000 Binary files a/resources/library/applications/Calculator.wgt/images/touche0.png and /dev/null differ diff --git a/resources/library/applications/Calculator.wgt/images/touche0_over.png b/resources/library/applications/Calculator.wgt/images/touche0_over.png deleted file mode 100644 index f109695e..00000000 Binary files a/resources/library/applications/Calculator.wgt/images/touche0_over.png and /dev/null differ diff --git a/resources/library/applications/Calculator.wgt/images/touche0_over_down.png b/resources/library/applications/Calculator.wgt/images/touche0_over_down.png deleted file mode 100644 index 0b535f84..00000000 Binary files a/resources/library/applications/Calculator.wgt/images/touche0_over_down.png and /dev/null differ diff --git a/resources/library/applications/Calculator.wgt/images/touche1.png b/resources/library/applications/Calculator.wgt/images/touche1.png deleted file mode 100644 index 1c516543..00000000 Binary files a/resources/library/applications/Calculator.wgt/images/touche1.png and /dev/null differ diff --git a/resources/library/applications/Calculator.wgt/images/touche1_over.png b/resources/library/applications/Calculator.wgt/images/touche1_over.png deleted file mode 100644 index 4d743b0a..00000000 Binary files a/resources/library/applications/Calculator.wgt/images/touche1_over.png and /dev/null differ diff --git a/resources/library/applications/Calculator.wgt/images/touche1_over_down.png b/resources/library/applications/Calculator.wgt/images/touche1_over_down.png deleted file mode 100644 index 51b4f6f2..00000000 Binary files a/resources/library/applications/Calculator.wgt/images/touche1_over_down.png and /dev/null differ diff --git a/resources/library/applications/Calculator.wgt/images/touche2.png b/resources/library/applications/Calculator.wgt/images/touche2.png deleted file mode 100644 index 6f163a3c..00000000 Binary files a/resources/library/applications/Calculator.wgt/images/touche2.png and /dev/null differ diff --git a/resources/library/applications/Calculator.wgt/images/touche2_over.png b/resources/library/applications/Calculator.wgt/images/touche2_over.png deleted file mode 100644 index 0172ae00..00000000 Binary files a/resources/library/applications/Calculator.wgt/images/touche2_over.png and /dev/null differ diff --git a/resources/library/applications/Calculator.wgt/images/touche2_over_down.png b/resources/library/applications/Calculator.wgt/images/touche2_over_down.png deleted file mode 100644 index a91c6904..00000000 Binary files a/resources/library/applications/Calculator.wgt/images/touche2_over_down.png and /dev/null differ diff --git a/resources/library/applications/Calculator.wgt/images/touche3.png b/resources/library/applications/Calculator.wgt/images/touche3.png deleted file mode 100644 index f9a185a0..00000000 Binary files a/resources/library/applications/Calculator.wgt/images/touche3.png and /dev/null differ diff --git a/resources/library/applications/Calculator.wgt/images/touche3_over.png b/resources/library/applications/Calculator.wgt/images/touche3_over.png deleted file mode 100644 index 346a16bc..00000000 Binary files a/resources/library/applications/Calculator.wgt/images/touche3_over.png and /dev/null differ diff --git a/resources/library/applications/Calculator.wgt/images/touche3_over_down.png b/resources/library/applications/Calculator.wgt/images/touche3_over_down.png deleted file mode 100644 index deda1682..00000000 Binary files a/resources/library/applications/Calculator.wgt/images/touche3_over_down.png and /dev/null differ diff --git a/resources/library/applications/Calculator.wgt/images/touche4.png b/resources/library/applications/Calculator.wgt/images/touche4.png deleted file mode 100644 index afab40f8..00000000 Binary files a/resources/library/applications/Calculator.wgt/images/touche4.png and /dev/null differ diff --git a/resources/library/applications/Calculator.wgt/images/touche4_over.png b/resources/library/applications/Calculator.wgt/images/touche4_over.png deleted file mode 100644 index 34d4b871..00000000 Binary files a/resources/library/applications/Calculator.wgt/images/touche4_over.png and /dev/null differ diff --git a/resources/library/applications/Calculator.wgt/images/touche4_over_down.png b/resources/library/applications/Calculator.wgt/images/touche4_over_down.png deleted file mode 100644 index 4db5f1d2..00000000 Binary files a/resources/library/applications/Calculator.wgt/images/touche4_over_down.png and /dev/null differ diff --git a/resources/library/applications/Calculator.wgt/images/touche5.png b/resources/library/applications/Calculator.wgt/images/touche5.png deleted file mode 100644 index dd034da1..00000000 Binary files a/resources/library/applications/Calculator.wgt/images/touche5.png and /dev/null differ diff --git a/resources/library/applications/Calculator.wgt/images/touche5_over.png b/resources/library/applications/Calculator.wgt/images/touche5_over.png deleted file mode 100644 index d3fd966e..00000000 Binary files a/resources/library/applications/Calculator.wgt/images/touche5_over.png and /dev/null differ diff --git a/resources/library/applications/Calculator.wgt/images/touche5_over_down.png b/resources/library/applications/Calculator.wgt/images/touche5_over_down.png deleted file mode 100644 index 9273be47..00000000 Binary files a/resources/library/applications/Calculator.wgt/images/touche5_over_down.png and /dev/null differ diff --git a/resources/library/applications/Calculator.wgt/images/touche6.png b/resources/library/applications/Calculator.wgt/images/touche6.png deleted file mode 100644 index 8335e6da..00000000 Binary files a/resources/library/applications/Calculator.wgt/images/touche6.png and /dev/null differ diff --git a/resources/library/applications/Calculator.wgt/images/touche6_over.png b/resources/library/applications/Calculator.wgt/images/touche6_over.png deleted file mode 100644 index 9acc3cf0..00000000 Binary files a/resources/library/applications/Calculator.wgt/images/touche6_over.png and /dev/null differ diff --git a/resources/library/applications/Calculator.wgt/images/touche6_over_down.png b/resources/library/applications/Calculator.wgt/images/touche6_over_down.png deleted file mode 100644 index 3de03bdc..00000000 Binary files a/resources/library/applications/Calculator.wgt/images/touche6_over_down.png and /dev/null differ diff --git a/resources/library/applications/Calculator.wgt/images/touche7.png b/resources/library/applications/Calculator.wgt/images/touche7.png deleted file mode 100644 index cebe3359..00000000 Binary files a/resources/library/applications/Calculator.wgt/images/touche7.png and /dev/null differ diff --git a/resources/library/applications/Calculator.wgt/images/touche7_over.png b/resources/library/applications/Calculator.wgt/images/touche7_over.png deleted file mode 100644 index 45c0a194..00000000 Binary files a/resources/library/applications/Calculator.wgt/images/touche7_over.png and /dev/null differ diff --git a/resources/library/applications/Calculator.wgt/images/touche7_over_down.png b/resources/library/applications/Calculator.wgt/images/touche7_over_down.png deleted file mode 100644 index 424cc762..00000000 Binary files a/resources/library/applications/Calculator.wgt/images/touche7_over_down.png and /dev/null differ diff --git a/resources/library/applications/Calculator.wgt/images/touche8.png b/resources/library/applications/Calculator.wgt/images/touche8.png deleted file mode 100644 index 7f34839f..00000000 Binary files a/resources/library/applications/Calculator.wgt/images/touche8.png and /dev/null differ diff --git a/resources/library/applications/Calculator.wgt/images/touche8_over.png b/resources/library/applications/Calculator.wgt/images/touche8_over.png deleted file mode 100644 index dd3d0f18..00000000 Binary files a/resources/library/applications/Calculator.wgt/images/touche8_over.png and /dev/null differ diff --git a/resources/library/applications/Calculator.wgt/images/touche8_over_down.png b/resources/library/applications/Calculator.wgt/images/touche8_over_down.png deleted file mode 100644 index aa0cf26a..00000000 Binary files a/resources/library/applications/Calculator.wgt/images/touche8_over_down.png and /dev/null differ diff --git a/resources/library/applications/Calculator.wgt/images/touche9.png b/resources/library/applications/Calculator.wgt/images/touche9.png deleted file mode 100644 index a888813a..00000000 Binary files a/resources/library/applications/Calculator.wgt/images/touche9.png and /dev/null differ diff --git a/resources/library/applications/Calculator.wgt/images/touche9_over.png b/resources/library/applications/Calculator.wgt/images/touche9_over.png deleted file mode 100644 index f70b6ad4..00000000 Binary files a/resources/library/applications/Calculator.wgt/images/touche9_over.png and /dev/null differ diff --git a/resources/library/applications/Calculator.wgt/images/touche9_over_down.png b/resources/library/applications/Calculator.wgt/images/touche9_over_down.png deleted file mode 100644 index 6f8aee22..00000000 Binary files a/resources/library/applications/Calculator.wgt/images/touche9_over_down.png and /dev/null differ diff --git a/resources/library/applications/Calculator.wgt/images/touchec.png b/resources/library/applications/Calculator.wgt/images/touchec.png deleted file mode 100644 index ab6e2d1b..00000000 Binary files a/resources/library/applications/Calculator.wgt/images/touchec.png and /dev/null differ diff --git a/resources/library/applications/Calculator.wgt/images/touchec_over.png b/resources/library/applications/Calculator.wgt/images/touchec_over.png deleted file mode 100644 index 3b5b6543..00000000 Binary files a/resources/library/applications/Calculator.wgt/images/touchec_over.png and /dev/null differ diff --git a/resources/library/applications/Calculator.wgt/images/touchec_over_down.png b/resources/library/applications/Calculator.wgt/images/touchec_over_down.png deleted file mode 100644 index 55b929f0..00000000 Binary files a/resources/library/applications/Calculator.wgt/images/touchec_over_down.png and /dev/null differ diff --git a/resources/library/applications/Calculator.wgt/images/touchediv.png b/resources/library/applications/Calculator.wgt/images/touchediv.png deleted file mode 100644 index f27311e2..00000000 Binary files a/resources/library/applications/Calculator.wgt/images/touchediv.png and /dev/null differ diff --git a/resources/library/applications/Calculator.wgt/images/touchediv_over.png b/resources/library/applications/Calculator.wgt/images/touchediv_over.png deleted file mode 100644 index 355ee3b9..00000000 Binary files a/resources/library/applications/Calculator.wgt/images/touchediv_over.png and /dev/null differ diff --git a/resources/library/applications/Calculator.wgt/images/touchediv_over_down.png b/resources/library/applications/Calculator.wgt/images/touchediv_over_down.png deleted file mode 100644 index d9a5adf2..00000000 Binary files a/resources/library/applications/Calculator.wgt/images/touchediv_over_down.png and /dev/null differ diff --git a/resources/library/applications/Calculator.wgt/images/touchedot.png b/resources/library/applications/Calculator.wgt/images/touchedot.png deleted file mode 100644 index fdb9fc78..00000000 Binary files a/resources/library/applications/Calculator.wgt/images/touchedot.png and /dev/null differ diff --git a/resources/library/applications/Calculator.wgt/images/touchedot_over.png b/resources/library/applications/Calculator.wgt/images/touchedot_over.png deleted file mode 100644 index 200ed22c..00000000 Binary files a/resources/library/applications/Calculator.wgt/images/touchedot_over.png and /dev/null differ diff --git a/resources/library/applications/Calculator.wgt/images/touchedot_over_down.png b/resources/library/applications/Calculator.wgt/images/touchedot_over_down.png deleted file mode 100644 index f823927d..00000000 Binary files a/resources/library/applications/Calculator.wgt/images/touchedot_over_down.png and /dev/null differ diff --git a/resources/library/applications/Calculator.wgt/images/toucheeq.png b/resources/library/applications/Calculator.wgt/images/toucheeq.png deleted file mode 100644 index 1ee66a10..00000000 Binary files a/resources/library/applications/Calculator.wgt/images/toucheeq.png and /dev/null differ diff --git a/resources/library/applications/Calculator.wgt/images/toucheeq_over.png b/resources/library/applications/Calculator.wgt/images/toucheeq_over.png deleted file mode 100644 index bb096c0f..00000000 Binary files a/resources/library/applications/Calculator.wgt/images/toucheeq_over.png and /dev/null differ diff --git a/resources/library/applications/Calculator.wgt/images/toucheeq_over_down.png b/resources/library/applications/Calculator.wgt/images/toucheeq_over_down.png deleted file mode 100644 index b2da17ad..00000000 Binary files a/resources/library/applications/Calculator.wgt/images/toucheeq_over_down.png and /dev/null differ diff --git a/resources/library/applications/Calculator.wgt/images/touchef.png b/resources/library/applications/Calculator.wgt/images/touchef.png deleted file mode 100644 index ccfbdff2..00000000 Binary files a/resources/library/applications/Calculator.wgt/images/touchef.png and /dev/null differ diff --git a/resources/library/applications/Calculator.wgt/images/touchef_over.png b/resources/library/applications/Calculator.wgt/images/touchef_over.png deleted file mode 100644 index a7d5fc24..00000000 Binary files a/resources/library/applications/Calculator.wgt/images/touchef_over.png and /dev/null differ diff --git a/resources/library/applications/Calculator.wgt/images/touchef_over_down.png b/resources/library/applications/Calculator.wgt/images/touchef_over_down.png deleted file mode 100644 index d08cd888..00000000 Binary files a/resources/library/applications/Calculator.wgt/images/touchef_over_down.png and /dev/null differ diff --git a/resources/library/applications/Calculator.wgt/images/touchem.png b/resources/library/applications/Calculator.wgt/images/touchem.png deleted file mode 100644 index 58f61ab9..00000000 Binary files a/resources/library/applications/Calculator.wgt/images/touchem.png and /dev/null differ diff --git a/resources/library/applications/Calculator.wgt/images/touchem_over.png b/resources/library/applications/Calculator.wgt/images/touchem_over.png deleted file mode 100644 index d548b55b..00000000 Binary files a/resources/library/applications/Calculator.wgt/images/touchem_over.png and /dev/null differ diff --git a/resources/library/applications/Calculator.wgt/images/touchem_over_down.png b/resources/library/applications/Calculator.wgt/images/touchem_over_down.png deleted file mode 100644 index 9f5f76e6..00000000 Binary files a/resources/library/applications/Calculator.wgt/images/touchem_over_down.png and /dev/null differ diff --git a/resources/library/applications/Calculator.wgt/images/touchep.png b/resources/library/applications/Calculator.wgt/images/touchep.png deleted file mode 100644 index 30107880..00000000 Binary files a/resources/library/applications/Calculator.wgt/images/touchep.png and /dev/null differ diff --git a/resources/library/applications/Calculator.wgt/images/touchep_over.png b/resources/library/applications/Calculator.wgt/images/touchep_over.png deleted file mode 100644 index 3a0842b9..00000000 Binary files a/resources/library/applications/Calculator.wgt/images/touchep_over.png and /dev/null differ diff --git a/resources/library/applications/Calculator.wgt/images/touchep_over_down.png b/resources/library/applications/Calculator.wgt/images/touchep_over_down.png deleted file mode 100644 index ae1395ed..00000000 Binary files a/resources/library/applications/Calculator.wgt/images/touchep_over_down.png and /dev/null differ diff --git a/resources/library/applications/Calculator.wgt/images/touchepd.png b/resources/library/applications/Calculator.wgt/images/touchepd.png deleted file mode 100644 index e7ee0061..00000000 Binary files a/resources/library/applications/Calculator.wgt/images/touchepd.png and /dev/null differ diff --git a/resources/library/applications/Calculator.wgt/images/touchepd_over.png b/resources/library/applications/Calculator.wgt/images/touchepd_over.png deleted file mode 100644 index 7ff3729e..00000000 Binary files a/resources/library/applications/Calculator.wgt/images/touchepd_over.png and /dev/null differ diff --git a/resources/library/applications/Calculator.wgt/images/touchepd_over_down.png b/resources/library/applications/Calculator.wgt/images/touchepd_over_down.png deleted file mode 100644 index ee4a28e8..00000000 Binary files a/resources/library/applications/Calculator.wgt/images/touchepd_over_down.png and /dev/null differ diff --git a/resources/library/applications/Calculator.wgt/images/touchepg.png b/resources/library/applications/Calculator.wgt/images/touchepg.png deleted file mode 100644 index 7bfb1fd6..00000000 Binary files a/resources/library/applications/Calculator.wgt/images/touchepg.png and /dev/null differ diff --git a/resources/library/applications/Calculator.wgt/images/touchepg_over.png b/resources/library/applications/Calculator.wgt/images/touchepg_over.png deleted file mode 100644 index 2846d467..00000000 Binary files a/resources/library/applications/Calculator.wgt/images/touchepg_over.png and /dev/null differ diff --git a/resources/library/applications/Calculator.wgt/images/touchepg_over_down.png b/resources/library/applications/Calculator.wgt/images/touchepg_over_down.png deleted file mode 100644 index 360f99cd..00000000 Binary files a/resources/library/applications/Calculator.wgt/images/touchepg_over_down.png and /dev/null differ diff --git a/resources/library/applications/Calculator.wgt/index.html b/resources/library/applications/Calculator.wgt/index.html index 970e8b12..df9e83cf 100644 --- a/resources/library/applications/Calculator.wgt/index.html +++ b/resources/library/applications/Calculator.wgt/index.html @@ -1,33 +1,55 @@ - - - - - - ubwidget - - - - - - - - - - - - - - - - - - -
- - - - \ No newline at end of file + + + + + + Unpredictable Calculator + + + + + + + +
+ + + + + diff --git a/resources/library/applications/Calculator.wgt/js/DD_roundies_0.0.2a.js b/resources/library/applications/Calculator.wgt/js/DD_roundies_0.0.2a.js deleted file mode 100644 index c50f125d..00000000 --- a/resources/library/applications/Calculator.wgt/js/DD_roundies_0.0.2a.js +++ /dev/null @@ -1,472 +0,0 @@ -/** -* DD_roundies, this adds rounded-corner CSS in standard browsers and VML sublayers in IE that accomplish a similar appearance when comparing said browsers. -* Author: Drew Diller -* Email: drew.diller@gmail.com -* URL: http://www.dillerdesign.com/experiment/DD_roundies/ -* Version: 0.0.2a -* Licensed under the MIT License: http://dillerdesign.com/experiment/DD_roundies/#license -* -* Usage: -* DD_roundies.addRule('#doc .container', '10px 5px'); // selector and multiple radii -* DD_roundies.addRule('.box', 5, true); // selector, radius, and optional addition of border-radius code for standard browsers. -* -* Just want the PNG fixing effect for IE6, and don't want to also use the DD_belatedPNG library? Don't give any additional arguments after the CSS selector. -* DD_roundies.addRule('.your .example img'); -**/ - -var DD_roundies = { - - ns: 'DD_roundies', - - IE6: false, - IE7: false, - IE8: false, - IEversion: function() { - if (document.documentMode != 8 && document.namespaces && !document.namespaces[this.ns]) { - this.IE6 = true; - this.IE7 = true; - } - else if (document.documentMode == 8) { - this.IE8 = true; - } - }, - querySelector: document.querySelectorAll, - selectorsToProcess: [], - imgSize: {}, - - createVmlNameSpace: function() { /* enable VML */ - if (this.IE6 || this.IE7) { - document.namespaces.add(this.ns, 'urn:schemas-microsoft-com:vml'); - } - if (this.IE8) { - document.writeln(''); - } - }, - - createVmlStyleSheet: function() { /* style VML, enable behaviors */ - /* - Just in case lots of other developers have added - lots of other stylesheets using document.createStyleSheet - and hit the 31-limit mark, let's not use that method! - further reading: http://msdn.microsoft.com/en-us/library/ms531194(VS.85).aspx - */ - var style = document.createElement('style'); - document.documentElement.firstChild.insertBefore(style, document.documentElement.firstChild.firstChild); - if (style.styleSheet) { /* IE */ - try { - var styleSheet = style.styleSheet; - styleSheet.addRule(this.ns + '\\:*', '{behavior:url(#default#VML)}'); - this.styleSheet = styleSheet; - } catch(err) {} - } - else { - this.styleSheet = style; - } - }, - - /** - * Method to use from afar - refer to it whenever. - * Example for IE only: DD_roundies.addRule('div.boxy_box', '10px 5px'); - * Example for IE, Firefox, and WebKit: DD_roundies.addRule('div.boxy_box', '10px 5px', true); - * @param {String} selector - REQUIRED - a CSS selector, such as '#doc .container' - * @param {Integer} radius - REQUIRED - the desired radius for the box corners - * @param {Boolean} standards - OPTIONAL - true if you also wish to output -moz-border-radius/-webkit-border-radius/border-radius declarations - **/ - addRule: function(selector, rad, standards) { - if (typeof rad == 'undefined' || rad === null) { - rad = 0; - } - if (rad.constructor.toString().search('Array') == -1) { - rad = rad.toString().replace(/[^0-9 ]/g, '').split(' '); - } - for (var i=0; i<4; i++) { - rad[i] = (!rad[i] && rad[i] !== 0) ? rad[Math.max((i-2), 0)] : rad[i]; - } - if (this.styleSheet) { - if (this.styleSheet.addRule) { /* IE */ - var selectors = selector.split(','); /* multiple selectors supported, no need for multiple calls to this anymore */ - for (var i=0; i el.dim.Height) { - c.B = el.dim.Height+1; - } - } - el.vml.image.style.clip = 'rect('+c.T+'px '+c.R+'px '+c.B+'px '+c.L+'px)'; - }, - - pseudoClass: function(el) { - var self = this; - setTimeout(function() { /* would not work as intended without setTimeout */ - self.applyVML(el); - }, 1); - }, - - reposition: function(el) { - this.vmlOffsets(el); - this.vmlPath(el); - }, - - roundify: function(rad) { - this.style.behavior = 'none'; - if (!this.currentStyle) { - return; - } - else { - var thisStyle = this.currentStyle; - } - var allowed = {BODY: false, TABLE: false, TR: false, TD: false, SELECT: false, OPTION: false, TEXTAREA: false}; - if (allowed[this.nodeName] === false) { /* elements not supported yet */ - return; - } - var self = this; /* who knows when you might need a setTimeout */ - var lib = DD_roundies; - this.DD_radii = rad; - this.dim = {}; - - /* attach handlers */ - var handlers = {resize: 'reposition', move: 'reposition'}; - if (this.nodeName == 'A') { - var moreForAs = {mouseleave: 'pseudoClass', mouseenter: 'pseudoClass', focus: 'pseudoClass', blur: 'pseudoClass'}; - for (var a in moreForAs) { - handlers[a] = moreForAs[a]; - } - } - for (var h in handlers) { - this.attachEvent('on' + h, function() { - lib[handlers[h]](self); - }); - } - this.attachEvent('onpropertychange', function() { - lib.readPropertyChanges(self); - }); - - /* ensure that this elent and its parent is given hasLayout (needed for accurate positioning) */ - var giveLayout = function(el) { - el.style.zoom = 1; - if (el.currentStyle.position == 'static') { - el.style.position = 'relative'; - } - }; - giveLayout(this.offsetParent); - giveLayout(this); - - /* create vml elements */ - this.vmlBox = document.createElement('ignore'); /* IE8 really wants to be encased in a wrapper element for the VML to work, and I don't want to disturb getElementsByTagName('div') - open to suggestion on how to do this differently */ - this.vmlBox.runtimeStyle.cssText = 'behavior:none; position:absolute; margin:0; padding:0; border:0; background:none;'; /* super important - if something accidentally matches this (you yourseld did this once, Drew), you'll get infinitely-created elements and a frozen browser! */ - this.vmlBox.style.zIndex = thisStyle.zIndex; - this.vml = {'color':true, 'image':true, 'stroke':true}; - for (var v in this.vml) { - this.vml[v] = document.createElement(lib.ns + ':shape'); - this.vml[v].filler = document.createElement(lib.ns + ':fill'); - this.vml[v].appendChild(this.vml[v].filler); - this.vml[v].stroked = false; - this.vml[v].style.position = 'absolute'; - this.vml[v].style.zIndex = thisStyle.zIndex; - this.vml[v].coordorigin = '1,1'; - this.vmlBox.appendChild(this.vml[v]); - } - this.vml.image.fillcolor = 'none'; - this.vml.image.filler.type = 'tile'; - this.parentNode.insertBefore(this.vmlBox, this); - - this.isImg = false; - if (this.nodeName == 'IMG') { - this.isImg = true; - this.style.visibility = 'hidden'; - } - - setTimeout(function() { - lib.applyVML(self); - }, 1); - } - -}; - -try { - document.execCommand("BackgroundImageCache", false, true); -} catch(err) {} -DD_roundies.IEversion(); -DD_roundies.createVmlNameSpace(); -DD_roundies.createVmlStyleSheet(); - -if (DD_roundies.IE8 && document.attachEvent && DD_roundies.querySelector) { - document.attachEvent('onreadystatechange', function() { - if (document.readyState == 'complete') { - var selectors = DD_roundies.selectorsToProcess; - var length = selectors.length; - var delayedCall = function(node, radii, index) { - setTimeout(function() { - DD_roundies.roundify.call(node, radii); - }, index*100); - }; - for (var i=0; i. -*/ - -function addChar(input, character) { - if(input.value == null || input.value == "0") - input.value = character - else - input.value += character -} - -function cos(form) { - form.display.value = Math.cos(form.display.value); -} - -function sin(form) { - form.display.value = Math.sin(form.display.value); -} - -function tan(form) { - form.display.value = Math.tan(form.display.value); -} - -function sqrt(form) { - form.display.value = Math.sqrt(form.display.value); -} - -function ln(form) { - form.display.value = Math.log(form.display.value); -} - -function exp(form) { - form.display.value = Math.exp(form.display.value); -} - -function deleteChar(input) { - input.value = input.value.substring(0, input.value.length - 1) -} - -function changeSign(input) { - if(input.value.substring(0, 1) == "-") - input.value = input.value.substring(1, input.value.length) - else - input.value = "-" + input.value -} - -function square(form) { - form.display.value = eval(form.display.value) * eval(form.display.value) -} - -function checkNum(str) { - for (var i = 0; i < str.length; i++) { - var ch = str.substring(i, i+1) - if (ch < "0" || ch > "9") { - if (ch != "/" && ch != "*" && ch != "+" && ch != "-" && ch != "." - && ch != "(" && ch!= ")") { - $("#display").text("ERROR"); - return false - } - } - } - return true -} \ No newline at end of file diff --git a/resources/library/applications/Calculator.wgt/js/jquery-1.3.2.min.js b/resources/library/applications/Calculator.wgt/js/jquery-1.3.2.min.js deleted file mode 100644 index b1ae21d8..00000000 --- a/resources/library/applications/Calculator.wgt/js/jquery-1.3.2.min.js +++ /dev/null @@ -1,19 +0,0 @@ -/* - * jQuery JavaScript Library v1.3.2 - * http://jquery.com/ - * - * Copyright (c) 2009 John Resig - * Dual licensed under the MIT and GPL licenses. - * http://docs.jquery.com/License - * - * Date: 2009-02-19 17:34:21 -0500 (Thu, 19 Feb 2009) - * Revision: 6246 - */ -(function(){var l=this,g,y=l.jQuery,p=l.$,o=l.jQuery=l.$=function(E,F){return new o.fn.init(E,F)},D=/^[^<]*(<(.|\s)+>)[^>]*$|^#([\w-]+)$/,f=/^.[^:#\[\.,]*$/;o.fn=o.prototype={init:function(E,H){E=E||document;if(E.nodeType){this[0]=E;this.length=1;this.context=E;return this}if(typeof E==="string"){var G=D.exec(E);if(G&&(G[1]||!H)){if(G[1]){E=o.clean([G[1]],H)}else{var I=document.getElementById(G[3]);if(I&&I.id!=G[3]){return o().find(E)}var F=o(I||[]);F.context=document;F.selector=E;return F}}else{return o(H).find(E)}}else{if(o.isFunction(E)){return o(document).ready(E)}}if(E.selector&&E.context){this.selector=E.selector;this.context=E.context}return this.setArray(o.isArray(E)?E:o.makeArray(E))},selector:"",jquery:"1.3.2",size:function(){return this.length},get:function(E){return E===g?Array.prototype.slice.call(this):this[E]},pushStack:function(F,H,E){var G=o(F);G.prevObject=this;G.context=this.context;if(H==="find"){G.selector=this.selector+(this.selector?" ":"")+E}else{if(H){G.selector=this.selector+"."+H+"("+E+")"}}return G},setArray:function(E){this.length=0;Array.prototype.push.apply(this,E);return this},each:function(F,E){return o.each(this,F,E)},index:function(E){return o.inArray(E&&E.jquery?E[0]:E,this)},attr:function(F,H,G){var E=F;if(typeof F==="string"){if(H===g){return this[0]&&o[G||"attr"](this[0],F)}else{E={};E[F]=H}}return this.each(function(I){for(F in E){o.attr(G?this.style:this,F,o.prop(this,E[F],G,I,F))}})},css:function(E,F){if((E=="width"||E=="height")&&parseFloat(F)<0){F=g}return this.attr(E,F,"curCSS")},text:function(F){if(typeof F!=="object"&&F!=null){return this.empty().append((this[0]&&this[0].ownerDocument||document).createTextNode(F))}var E="";o.each(F||this,function(){o.each(this.childNodes,function(){if(this.nodeType!=8){E+=this.nodeType!=1?this.nodeValue:o.fn.text([this])}})});return E},wrapAll:function(E){if(this[0]){var F=o(E,this[0].ownerDocument).clone();if(this[0].parentNode){F.insertBefore(this[0])}F.map(function(){var G=this;while(G.firstChild){G=G.firstChild}return G}).append(this)}return this},wrapInner:function(E){return this.each(function(){o(this).contents().wrapAll(E)})},wrap:function(E){return this.each(function(){o(this).wrapAll(E)})},append:function(){return this.domManip(arguments,true,function(E){if(this.nodeType==1){this.appendChild(E)}})},prepend:function(){return this.domManip(arguments,true,function(E){if(this.nodeType==1){this.insertBefore(E,this.firstChild)}})},before:function(){return this.domManip(arguments,false,function(E){this.parentNode.insertBefore(E,this)})},after:function(){return this.domManip(arguments,false,function(E){this.parentNode.insertBefore(E,this.nextSibling)})},end:function(){return this.prevObject||o([])},push:[].push,sort:[].sort,splice:[].splice,find:function(E){if(this.length===1){var F=this.pushStack([],"find",E);F.length=0;o.find(E,this[0],F);return F}else{return this.pushStack(o.unique(o.map(this,function(G){return o.find(E,G)})),"find",E)}},clone:function(G){var E=this.map(function(){if(!o.support.noCloneEvent&&!o.isXMLDoc(this)){var I=this.outerHTML;if(!I){var J=this.ownerDocument.createElement("div");J.appendChild(this.cloneNode(true));I=J.innerHTML}return o.clean([I.replace(/ jQuery\d+="(?:\d+|null)"/g,"").replace(/^\s*/,"")])[0]}else{return this.cloneNode(true)}});if(G===true){var H=this.find("*").andSelf(),F=0;E.find("*").andSelf().each(function(){if(this.nodeName!==H[F].nodeName){return}var I=o.data(H[F],"events");for(var K in I){for(var J in I[K]){o.event.add(this,K,I[K][J],I[K][J].data)}}F++})}return E},filter:function(E){return this.pushStack(o.isFunction(E)&&o.grep(this,function(G,F){return E.call(G,F)})||o.multiFilter(E,o.grep(this,function(F){return F.nodeType===1})),"filter",E)},closest:function(E){var G=o.expr.match.POS.test(E)?o(E):null,F=0;return this.map(function(){var H=this;while(H&&H.ownerDocument){if(G?G.index(H)>-1:o(H).is(E)){o.data(H,"closest",F);return H}H=H.parentNode;F++}})},not:function(E){if(typeof E==="string"){if(f.test(E)){return this.pushStack(o.multiFilter(E,this,true),"not",E)}else{E=o.multiFilter(E,this)}}var F=E.length&&E[E.length-1]!==g&&!E.nodeType;return this.filter(function(){return F?o.inArray(this,E)<0:this!=E})},add:function(E){return this.pushStack(o.unique(o.merge(this.get(),typeof E==="string"?o(E):o.makeArray(E))))},is:function(E){return !!E&&o.multiFilter(E,this).length>0},hasClass:function(E){return !!E&&this.is("."+E)},val:function(K){if(K===g){var E=this[0];if(E){if(o.nodeName(E,"option")){return(E.attributes.value||{}).specified?E.value:E.text}if(o.nodeName(E,"select")){var I=E.selectedIndex,L=[],M=E.options,H=E.type=="select-one";if(I<0){return null}for(var F=H?I:0,J=H?I+1:M.length;F=0||o.inArray(this.name,K)>=0)}else{if(o.nodeName(this,"select")){var N=o.makeArray(K);o("option",this).each(function(){this.selected=(o.inArray(this.value,N)>=0||o.inArray(this.text,N)>=0)});if(!N.length){this.selectedIndex=-1}}else{this.value=K}}})},html:function(E){return E===g?(this[0]?this[0].innerHTML.replace(/ jQuery\d+="(?:\d+|null)"/g,""):null):this.empty().append(E)},replaceWith:function(E){return this.after(E).remove()},eq:function(E){return this.slice(E,+E+1)},slice:function(){return this.pushStack(Array.prototype.slice.apply(this,arguments),"slice",Array.prototype.slice.call(arguments).join(","))},map:function(E){return this.pushStack(o.map(this,function(G,F){return E.call(G,F,G)}))},andSelf:function(){return this.add(this.prevObject)},domManip:function(J,M,L){if(this[0]){var I=(this[0].ownerDocument||this[0]).createDocumentFragment(),F=o.clean(J,(this[0].ownerDocument||this[0]),I),H=I.firstChild;if(H){for(var G=0,E=this.length;G1||G>0?I.cloneNode(true):I)}}if(F){o.each(F,z)}}return this;function K(N,O){return M&&o.nodeName(N,"table")&&o.nodeName(O,"tr")?(N.getElementsByTagName("tbody")[0]||N.appendChild(N.ownerDocument.createElement("tbody"))):N}}};o.fn.init.prototype=o.fn;function z(E,F){if(F.src){o.ajax({url:F.src,async:false,dataType:"script"})}else{o.globalEval(F.text||F.textContent||F.innerHTML||"")}if(F.parentNode){F.parentNode.removeChild(F)}}function e(){return +new Date}o.extend=o.fn.extend=function(){var J=arguments[0]||{},H=1,I=arguments.length,E=false,G;if(typeof J==="boolean"){E=J;J=arguments[1]||{};H=2}if(typeof J!=="object"&&!o.isFunction(J)){J={}}if(I==H){J=this;--H}for(;H-1}},swap:function(H,G,I){var E={};for(var F in G){E[F]=H.style[F];H.style[F]=G[F]}I.call(H);for(var F in G){H.style[F]=E[F]}},css:function(H,F,J,E){if(F=="width"||F=="height"){var L,G={position:"absolute",visibility:"hidden",display:"block"},K=F=="width"?["Left","Right"]:["Top","Bottom"];function I(){L=F=="width"?H.offsetWidth:H.offsetHeight;if(E==="border"){return}o.each(K,function(){if(!E){L-=parseFloat(o.curCSS(H,"padding"+this,true))||0}if(E==="margin"){L+=parseFloat(o.curCSS(H,"margin"+this,true))||0}else{L-=parseFloat(o.curCSS(H,"border"+this+"Width",true))||0}})}if(H.offsetWidth!==0){I()}else{o.swap(H,G,I)}return Math.max(0,Math.round(L))}return o.curCSS(H,F,J)},curCSS:function(I,F,G){var L,E=I.style;if(F=="opacity"&&!o.support.opacity){L=o.attr(E,"opacity");return L==""?"1":L}if(F.match(/float/i)){F=w}if(!G&&E&&E[F]){L=E[F]}else{if(q.getComputedStyle){if(F.match(/float/i)){F="float"}F=F.replace(/([A-Z])/g,"-$1").toLowerCase();var M=q.getComputedStyle(I,null);if(M){L=M.getPropertyValue(F)}if(F=="opacity"&&L==""){L="1"}}else{if(I.currentStyle){var J=F.replace(/\-(\w)/g,function(N,O){return O.toUpperCase()});L=I.currentStyle[F]||I.currentStyle[J];if(!/^\d+(px)?$/i.test(L)&&/^\d/.test(L)){var H=E.left,K=I.runtimeStyle.left;I.runtimeStyle.left=I.currentStyle.left;E.left=L||0;L=E.pixelLeft+"px";E.left=H;I.runtimeStyle.left=K}}}}return L},clean:function(F,K,I){K=K||document;if(typeof K.createElement==="undefined"){K=K.ownerDocument||K[0]&&K[0].ownerDocument||document}if(!I&&F.length===1&&typeof F[0]==="string"){var H=/^<(\w+)\s*\/?>$/.exec(F[0]);if(H){return[K.createElement(H[1])]}}var G=[],E=[],L=K.createElement("div");o.each(F,function(P,S){if(typeof S==="number"){S+=""}if(!S){return}if(typeof S==="string"){S=S.replace(/(<(\w+)[^>]*?)\/>/g,function(U,V,T){return T.match(/^(abbr|br|col|img|input|link|meta|param|hr|area|embed)$/i)?U:V+">"});var O=S.replace(/^\s+/,"").substring(0,10).toLowerCase();var Q=!O.indexOf("",""]||!O.indexOf("",""]||O.match(/^<(thead|tbody|tfoot|colg|cap)/)&&[1,"","
"]||!O.indexOf("",""]||(!O.indexOf("",""]||!O.indexOf("",""]||!o.support.htmlSerialize&&[1,"div
","
"]||[0,"",""];L.innerHTML=Q[1]+S+Q[2];while(Q[0]--){L=L.lastChild}if(!o.support.tbody){var R=/"&&!R?L.childNodes:[];for(var M=N.length-1;M>=0;--M){if(o.nodeName(N[M],"tbody")&&!N[M].childNodes.length){N[M].parentNode.removeChild(N[M])}}}if(!o.support.leadingWhitespace&&/^\s/.test(S)){L.insertBefore(K.createTextNode(S.match(/^\s*/)[0]),L.firstChild)}S=o.makeArray(L.childNodes)}if(S.nodeType){G.push(S)}else{G=o.merge(G,S)}});if(I){for(var J=0;G[J];J++){if(o.nodeName(G[J],"script")&&(!G[J].type||G[J].type.toLowerCase()==="text/javascript")){E.push(G[J].parentNode?G[J].parentNode.removeChild(G[J]):G[J])}else{if(G[J].nodeType===1){G.splice.apply(G,[J+1,0].concat(o.makeArray(G[J].getElementsByTagName("script"))))}I.appendChild(G[J])}}return E}return G},attr:function(J,G,K){if(!J||J.nodeType==3||J.nodeType==8){return g}var H=!o.isXMLDoc(J),L=K!==g;G=H&&o.props[G]||G;if(J.tagName){var F=/href|src|style/.test(G);if(G=="selected"&&J.parentNode){J.parentNode.selectedIndex}if(G in J&&H&&!F){if(L){if(G=="type"&&o.nodeName(J,"input")&&J.parentNode){throw"type property can't be changed"}J[G]=K}if(o.nodeName(J,"form")&&J.getAttributeNode(G)){return J.getAttributeNode(G).nodeValue}if(G=="tabIndex"){var I=J.getAttributeNode("tabIndex");return I&&I.specified?I.value:J.nodeName.match(/(button|input|object|select|textarea)/i)?0:J.nodeName.match(/^(a|area)$/i)&&J.href?0:g}return J[G]}if(!o.support.style&&H&&G=="style"){return o.attr(J.style,"cssText",K)}if(L){J.setAttribute(G,""+K)}var E=!o.support.hrefNormalized&&H&&F?J.getAttribute(G,2):J.getAttribute(G);return E===null?g:E}if(!o.support.opacity&&G=="opacity"){if(L){J.zoom=1;J.filter=(J.filter||"").replace(/alpha\([^)]*\)/,"")+(parseInt(K)+""=="NaN"?"":"alpha(opacity="+K*100+")")}return J.filter&&J.filter.indexOf("opacity=")>=0?(parseFloat(J.filter.match(/opacity=([^)]*)/)[1])/100)+"":""}G=G.replace(/-([a-z])/ig,function(M,N){return N.toUpperCase()});if(L){J[G]=K}return J[G]},trim:function(E){return(E||"").replace(/^\s+|\s+$/g,"")},makeArray:function(G){var E=[];if(G!=null){var F=G.length;if(F==null||typeof G==="string"||o.isFunction(G)||G.setInterval){E[0]=G}else{while(F){E[--F]=G[F]}}}return E},inArray:function(G,H){for(var E=0,F=H.length;E0?this.clone(true):this).get();o.fn[F].apply(o(L[K]),I);J=J.concat(I)}return this.pushStack(J,E,G)}});o.each({removeAttr:function(E){o.attr(this,E,"");if(this.nodeType==1){this.removeAttribute(E)}},addClass:function(E){o.className.add(this,E)},removeClass:function(E){o.className.remove(this,E)},toggleClass:function(F,E){if(typeof E!=="boolean"){E=!o.className.has(this,F)}o.className[E?"add":"remove"](this,F)},remove:function(E){if(!E||o.filter(E,[this]).length){o("*",this).add([this]).each(function(){o.event.remove(this);o.removeData(this)});if(this.parentNode){this.parentNode.removeChild(this)}}},empty:function(){o(this).children().remove();while(this.firstChild){this.removeChild(this.firstChild)}}},function(E,F){o.fn[E]=function(){return this.each(F,arguments)}});function j(E,F){return E[0]&&parseInt(o.curCSS(E[0],F,true),10)||0}var h="jQuery"+e(),v=0,A={};o.extend({cache:{},data:function(F,E,G){F=F==l?A:F;var H=F[h];if(!H){H=F[h]=++v}if(E&&!o.cache[H]){o.cache[H]={}}if(G!==g){o.cache[H][E]=G}return E?o.cache[H][E]:H},removeData:function(F,E){F=F==l?A:F;var H=F[h];if(E){if(o.cache[H]){delete o.cache[H][E];E="";for(E in o.cache[H]){break}if(!E){o.removeData(F)}}}else{try{delete F[h]}catch(G){if(F.removeAttribute){F.removeAttribute(h)}}delete o.cache[H]}},queue:function(F,E,H){if(F){E=(E||"fx")+"queue";var G=o.data(F,E);if(!G||o.isArray(H)){G=o.data(F,E,o.makeArray(H))}else{if(H){G.push(H)}}}return G},dequeue:function(H,G){var E=o.queue(H,G),F=E.shift();if(!G||G==="fx"){F=E[0]}if(F!==g){F.call(H)}}});o.fn.extend({data:function(E,G){var H=E.split(".");H[1]=H[1]?"."+H[1]:"";if(G===g){var F=this.triggerHandler("getData"+H[1]+"!",[H[0]]);if(F===g&&this.length){F=o.data(this[0],E)}return F===g&&H[1]?this.data(H[0]):F}else{return this.trigger("setData"+H[1]+"!",[H[0],G]).each(function(){o.data(this,E,G)})}},removeData:function(E){return this.each(function(){o.removeData(this,E)})},queue:function(E,F){if(typeof E!=="string"){F=E;E="fx"}if(F===g){return o.queue(this[0],E)}return this.each(function(){var G=o.queue(this,E,F);if(E=="fx"&&G.length==1){G[0].call(this)}})},dequeue:function(E){return this.each(function(){o.dequeue(this,E)})}}); -/* - * Sizzle CSS Selector Engine - v0.9.3 - * Copyright 2009, The Dojo Foundation - * Released under the MIT, BSD, and GPL Licenses. - * More information: http://sizzlejs.com/ - */ -(function(){var R=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]*['"]|[^[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?/g,L=0,H=Object.prototype.toString;var F=function(Y,U,ab,ac){ab=ab||[];U=U||document;if(U.nodeType!==1&&U.nodeType!==9){return[]}if(!Y||typeof Y!=="string"){return ab}var Z=[],W,af,ai,T,ad,V,X=true;R.lastIndex=0;while((W=R.exec(Y))!==null){Z.push(W[1]);if(W[2]){V=RegExp.rightContext;break}}if(Z.length>1&&M.exec(Y)){if(Z.length===2&&I.relative[Z[0]]){af=J(Z[0]+Z[1],U)}else{af=I.relative[Z[0]]?[U]:F(Z.shift(),U);while(Z.length){Y=Z.shift();if(I.relative[Y]){Y+=Z.shift()}af=J(Y,af)}}}else{var ae=ac?{expr:Z.pop(),set:E(ac)}:F.find(Z.pop(),Z.length===1&&U.parentNode?U.parentNode:U,Q(U));af=F.filter(ae.expr,ae.set);if(Z.length>0){ai=E(af)}else{X=false}while(Z.length){var ah=Z.pop(),ag=ah;if(!I.relative[ah]){ah=""}else{ag=Z.pop()}if(ag==null){ag=U}I.relative[ah](ai,ag,Q(U))}}if(!ai){ai=af}if(!ai){throw"Syntax error, unrecognized expression: "+(ah||Y)}if(H.call(ai)==="[object Array]"){if(!X){ab.push.apply(ab,ai)}else{if(U.nodeType===1){for(var aa=0;ai[aa]!=null;aa++){if(ai[aa]&&(ai[aa]===true||ai[aa].nodeType===1&&K(U,ai[aa]))){ab.push(af[aa])}}}else{for(var aa=0;ai[aa]!=null;aa++){if(ai[aa]&&ai[aa].nodeType===1){ab.push(af[aa])}}}}}else{E(ai,ab)}if(V){F(V,U,ab,ac);if(G){hasDuplicate=false;ab.sort(G);if(hasDuplicate){for(var aa=1;aa":function(Z,U,aa){var X=typeof U==="string";if(X&&!/\W/.test(U)){U=aa?U:U.toUpperCase();for(var V=0,T=Z.length;V=0)){if(!V){T.push(Y)}}else{if(V){U[X]=false}}}}return false},ID:function(T){return T[1].replace(/\\/g,"")},TAG:function(U,T){for(var V=0;T[V]===false;V++){}return T[V]&&Q(T[V])?U[1]:U[1].toUpperCase()},CHILD:function(T){if(T[1]=="nth"){var U=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(T[2]=="even"&&"2n"||T[2]=="odd"&&"2n+1"||!/\D/.test(T[2])&&"0n+"+T[2]||T[2]);T[2]=(U[1]+(U[2]||1))-0;T[3]=U[3]-0}T[0]=L++;return T},ATTR:function(X,U,V,T,Y,Z){var W=X[1].replace(/\\/g,"");if(!Z&&I.attrMap[W]){X[1]=I.attrMap[W]}if(X[2]==="~="){X[4]=" "+X[4]+" "}return X},PSEUDO:function(X,U,V,T,Y){if(X[1]==="not"){if(X[3].match(R).length>1||/^\w/.test(X[3])){X[3]=F(X[3],null,null,U)}else{var W=F.filter(X[3],U,V,true^Y);if(!V){T.push.apply(T,W)}return false}}else{if(I.match.POS.test(X[0])||I.match.CHILD.test(X[0])){return true}}return X},POS:function(T){T.unshift(true);return T}},filters:{enabled:function(T){return T.disabled===false&&T.type!=="hidden"},disabled:function(T){return T.disabled===true},checked:function(T){return T.checked===true},selected:function(T){T.parentNode.selectedIndex;return T.selected===true},parent:function(T){return !!T.firstChild},empty:function(T){return !T.firstChild},has:function(V,U,T){return !!F(T[3],V).length},header:function(T){return/h\d/i.test(T.nodeName)},text:function(T){return"text"===T.type},radio:function(T){return"radio"===T.type},checkbox:function(T){return"checkbox"===T.type},file:function(T){return"file"===T.type},password:function(T){return"password"===T.type},submit:function(T){return"submit"===T.type},image:function(T){return"image"===T.type},reset:function(T){return"reset"===T.type},button:function(T){return"button"===T.type||T.nodeName.toUpperCase()==="BUTTON"},input:function(T){return/input|select|textarea|button/i.test(T.nodeName)}},setFilters:{first:function(U,T){return T===0},last:function(V,U,T,W){return U===W.length-1},even:function(U,T){return T%2===0},odd:function(U,T){return T%2===1},lt:function(V,U,T){return UT[3]-0},nth:function(V,U,T){return T[3]-0==U},eq:function(V,U,T){return T[3]-0==U}},filter:{PSEUDO:function(Z,V,W,aa){var U=V[1],X=I.filters[U];if(X){return X(Z,W,V,aa)}else{if(U==="contains"){return(Z.textContent||Z.innerText||"").indexOf(V[3])>=0}else{if(U==="not"){var Y=V[3];for(var W=0,T=Y.length;W=0)}}},ID:function(U,T){return U.nodeType===1&&U.getAttribute("id")===T},TAG:function(U,T){return(T==="*"&&U.nodeType===1)||U.nodeName===T},CLASS:function(U,T){return(" "+(U.className||U.getAttribute("class"))+" ").indexOf(T)>-1},ATTR:function(Y,W){var V=W[1],T=I.attrHandle[V]?I.attrHandle[V](Y):Y[V]!=null?Y[V]:Y.getAttribute(V),Z=T+"",X=W[2],U=W[4];return T==null?X==="!=":X==="="?Z===U:X==="*="?Z.indexOf(U)>=0:X==="~="?(" "+Z+" ").indexOf(U)>=0:!U?Z&&T!==false:X==="!="?Z!=U:X==="^="?Z.indexOf(U)===0:X==="$="?Z.substr(Z.length-U.length)===U:X==="|="?Z===U||Z.substr(0,U.length+1)===U+"-":false},POS:function(X,U,V,Y){var T=U[2],W=I.setFilters[T];if(W){return W(X,V,U,Y)}}}};var M=I.match.POS;for(var O in I.match){I.match[O]=RegExp(I.match[O].source+/(?![^\[]*\])(?![^\(]*\))/.source)}var E=function(U,T){U=Array.prototype.slice.call(U);if(T){T.push.apply(T,U);return T}return U};try{Array.prototype.slice.call(document.documentElement.childNodes)}catch(N){E=function(X,W){var U=W||[];if(H.call(X)==="[object Array]"){Array.prototype.push.apply(U,X)}else{if(typeof X.length==="number"){for(var V=0,T=X.length;V";var T=document.documentElement;T.insertBefore(U,T.firstChild);if(!!document.getElementById(V)){I.find.ID=function(X,Y,Z){if(typeof Y.getElementById!=="undefined"&&!Z){var W=Y.getElementById(X[1]);return W?W.id===X[1]||typeof W.getAttributeNode!=="undefined"&&W.getAttributeNode("id").nodeValue===X[1]?[W]:g:[]}};I.filter.ID=function(Y,W){var X=typeof Y.getAttributeNode!=="undefined"&&Y.getAttributeNode("id");return Y.nodeType===1&&X&&X.nodeValue===W}}T.removeChild(U)})();(function(){var T=document.createElement("div");T.appendChild(document.createComment(""));if(T.getElementsByTagName("*").length>0){I.find.TAG=function(U,Y){var X=Y.getElementsByTagName(U[1]);if(U[1]==="*"){var W=[];for(var V=0;X[V];V++){if(X[V].nodeType===1){W.push(X[V])}}X=W}return X}}T.innerHTML="";if(T.firstChild&&typeof T.firstChild.getAttribute!=="undefined"&&T.firstChild.getAttribute("href")!=="#"){I.attrHandle.href=function(U){return U.getAttribute("href",2)}}})();if(document.querySelectorAll){(function(){var T=F,U=document.createElement("div");U.innerHTML="

";if(U.querySelectorAll&&U.querySelectorAll(".TEST").length===0){return}F=function(Y,X,V,W){X=X||document;if(!W&&X.nodeType===9&&!Q(X)){try{return E(X.querySelectorAll(Y),V)}catch(Z){}}return T(Y,X,V,W)};F.find=T.find;F.filter=T.filter;F.selectors=T.selectors;F.matches=T.matches})()}if(document.getElementsByClassName&&document.documentElement.getElementsByClassName){(function(){var T=document.createElement("div");T.innerHTML="
";if(T.getElementsByClassName("e").length===0){return}T.lastChild.className="e";if(T.getElementsByClassName("e").length===1){return}I.order.splice(1,0,"CLASS");I.find.CLASS=function(U,V,W){if(typeof V.getElementsByClassName!=="undefined"&&!W){return V.getElementsByClassName(U[1])}}})()}function P(U,Z,Y,ad,aa,ac){var ab=U=="previousSibling"&&!ac;for(var W=0,V=ad.length;W0){X=T;break}}}T=T[U]}ad[W]=X}}}var K=document.compareDocumentPosition?function(U,T){return U.compareDocumentPosition(T)&16}:function(U,T){return U!==T&&(U.contains?U.contains(T):true)};var Q=function(T){return T.nodeType===9&&T.documentElement.nodeName!=="HTML"||!!T.ownerDocument&&Q(T.ownerDocument)};var J=function(T,aa){var W=[],X="",Y,V=aa.nodeType?[aa]:aa;while((Y=I.match.PSEUDO.exec(T))){X+=Y[0];T=T.replace(I.match.PSEUDO,"")}T=I.relative[T]?T+"*":T;for(var Z=0,U=V.length;Z0||T.offsetHeight>0};F.selectors.filters.animated=function(T){return o.grep(o.timers,function(U){return T===U.elem}).length};o.multiFilter=function(V,T,U){if(U){V=":not("+V+")"}return F.matches(V,T)};o.dir=function(V,U){var T=[],W=V[U];while(W&&W!=document){if(W.nodeType==1){T.push(W)}W=W[U]}return T};o.nth=function(X,T,V,W){T=T||1;var U=0;for(;X;X=X[V]){if(X.nodeType==1&&++U==T){break}}return X};o.sibling=function(V,U){var T=[];for(;V;V=V.nextSibling){if(V.nodeType==1&&V!=U){T.push(V)}}return T};return;l.Sizzle=F})();o.event={add:function(I,F,H,K){if(I.nodeType==3||I.nodeType==8){return}if(I.setInterval&&I!=l){I=l}if(!H.guid){H.guid=this.guid++}if(K!==g){var G=H;H=this.proxy(G);H.data=K}var E=o.data(I,"events")||o.data(I,"events",{}),J=o.data(I,"handle")||o.data(I,"handle",function(){return typeof o!=="undefined"&&!o.event.triggered?o.event.handle.apply(arguments.callee.elem,arguments):g});J.elem=I;o.each(F.split(/\s+/),function(M,N){var O=N.split(".");N=O.shift();H.type=O.slice().sort().join(".");var L=E[N];if(o.event.specialAll[N]){o.event.specialAll[N].setup.call(I,K,O)}if(!L){L=E[N]={};if(!o.event.special[N]||o.event.special[N].setup.call(I,K,O)===false){if(I.addEventListener){I.addEventListener(N,J,false)}else{if(I.attachEvent){I.attachEvent("on"+N,J)}}}}L[H.guid]=H;o.event.global[N]=true});I=null},guid:1,global:{},remove:function(K,H,J){if(K.nodeType==3||K.nodeType==8){return}var G=o.data(K,"events"),F,E;if(G){if(H===g||(typeof H==="string"&&H.charAt(0)==".")){for(var I in G){this.remove(K,I+(H||""))}}else{if(H.type){J=H.handler;H=H.type}o.each(H.split(/\s+/),function(M,O){var Q=O.split(".");O=Q.shift();var N=RegExp("(^|\\.)"+Q.slice().sort().join(".*\\.")+"(\\.|$)");if(G[O]){if(J){delete G[O][J.guid]}else{for(var P in G[O]){if(N.test(G[O][P].type)){delete G[O][P]}}}if(o.event.specialAll[O]){o.event.specialAll[O].teardown.call(K,Q)}for(F in G[O]){break}if(!F){if(!o.event.special[O]||o.event.special[O].teardown.call(K,Q)===false){if(K.removeEventListener){K.removeEventListener(O,o.data(K,"handle"),false)}else{if(K.detachEvent){K.detachEvent("on"+O,o.data(K,"handle"))}}}F=null;delete G[O]}}})}for(F in G){break}if(!F){var L=o.data(K,"handle");if(L){L.elem=null}o.removeData(K,"events");o.removeData(K,"handle")}}},trigger:function(I,K,H,E){var G=I.type||I;if(!E){I=typeof I==="object"?I[h]?I:o.extend(o.Event(G),I):o.Event(G);if(G.indexOf("!")>=0){I.type=G=G.slice(0,-1);I.exclusive=true}if(!H){I.stopPropagation();if(this.global[G]){o.each(o.cache,function(){if(this.events&&this.events[G]){o.event.trigger(I,K,this.handle.elem)}})}}if(!H||H.nodeType==3||H.nodeType==8){return g}I.result=g;I.target=H;K=o.makeArray(K);K.unshift(I)}I.currentTarget=H;var J=o.data(H,"handle");if(J){J.apply(H,K)}if((!H[G]||(o.nodeName(H,"a")&&G=="click"))&&H["on"+G]&&H["on"+G].apply(H,K)===false){I.result=false}if(!E&&H[G]&&!I.isDefaultPrevented()&&!(o.nodeName(H,"a")&&G=="click")){this.triggered=true;try{H[G]()}catch(L){}}this.triggered=false;if(!I.isPropagationStopped()){var F=H.parentNode||H.ownerDocument;if(F){o.event.trigger(I,K,F,true)}}},handle:function(K){var J,E;K=arguments[0]=o.event.fix(K||l.event);K.currentTarget=this;var L=K.type.split(".");K.type=L.shift();J=!L.length&&!K.exclusive;var I=RegExp("(^|\\.)"+L.slice().sort().join(".*\\.")+"(\\.|$)");E=(o.data(this,"events")||{})[K.type];for(var G in E){var H=E[G];if(J||I.test(H.type)){K.handler=H;K.data=H.data;var F=H.apply(this,arguments);if(F!==g){K.result=F;if(F===false){K.preventDefault();K.stopPropagation()}}if(K.isImmediatePropagationStopped()){break}}}},props:"altKey attrChange attrName bubbles button cancelable charCode clientX clientY ctrlKey currentTarget data detail eventPhase fromElement handler keyCode metaKey newValue originalTarget pageX pageY prevValue relatedNode relatedTarget screenX screenY shiftKey srcElement target toElement view wheelDelta which".split(" "),fix:function(H){if(H[h]){return H}var F=H;H=o.Event(F);for(var G=this.props.length,J;G;){J=this.props[--G];H[J]=F[J]}if(!H.target){H.target=H.srcElement||document}if(H.target.nodeType==3){H.target=H.target.parentNode}if(!H.relatedTarget&&H.fromElement){H.relatedTarget=H.fromElement==H.target?H.toElement:H.fromElement}if(H.pageX==null&&H.clientX!=null){var I=document.documentElement,E=document.body;H.pageX=H.clientX+(I&&I.scrollLeft||E&&E.scrollLeft||0)-(I.clientLeft||0);H.pageY=H.clientY+(I&&I.scrollTop||E&&E.scrollTop||0)-(I.clientTop||0)}if(!H.which&&((H.charCode||H.charCode===0)?H.charCode:H.keyCode)){H.which=H.charCode||H.keyCode}if(!H.metaKey&&H.ctrlKey){H.metaKey=H.ctrlKey}if(!H.which&&H.button){H.which=(H.button&1?1:(H.button&2?3:(H.button&4?2:0)))}return H},proxy:function(F,E){E=E||function(){return F.apply(this,arguments)};E.guid=F.guid=F.guid||E.guid||this.guid++;return E},special:{ready:{setup:B,teardown:function(){}}},specialAll:{live:{setup:function(E,F){o.event.add(this,F[0],c)},teardown:function(G){if(G.length){var E=0,F=RegExp("(^|\\.)"+G[0]+"(\\.|$)");o.each((o.data(this,"events").live||{}),function(){if(F.test(this.type)){E++}});if(E<1){o.event.remove(this,G[0],c)}}}}}};o.Event=function(E){if(!this.preventDefault){return new o.Event(E)}if(E&&E.type){this.originalEvent=E;this.type=E.type}else{this.type=E}this.timeStamp=e();this[h]=true};function k(){return false}function u(){return true}o.Event.prototype={preventDefault:function(){this.isDefaultPrevented=u;var E=this.originalEvent;if(!E){return}if(E.preventDefault){E.preventDefault()}E.returnValue=false},stopPropagation:function(){this.isPropagationStopped=u;var E=this.originalEvent;if(!E){return}if(E.stopPropagation){E.stopPropagation()}E.cancelBubble=true},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=u;this.stopPropagation()},isDefaultPrevented:k,isPropagationStopped:k,isImmediatePropagationStopped:k};var a=function(F){var E=F.relatedTarget;while(E&&E!=this){try{E=E.parentNode}catch(G){E=this}}if(E!=this){F.type=F.data;o.event.handle.apply(this,arguments)}};o.each({mouseover:"mouseenter",mouseout:"mouseleave"},function(F,E){o.event.special[E]={setup:function(){o.event.add(this,F,a,E)},teardown:function(){o.event.remove(this,F,a)}}});o.fn.extend({bind:function(F,G,E){return F=="unload"?this.one(F,G,E):this.each(function(){o.event.add(this,F,E||G,E&&G)})},one:function(G,H,F){var E=o.event.proxy(F||H,function(I){o(this).unbind(I,E);return(F||H).apply(this,arguments)});return this.each(function(){o.event.add(this,G,E,F&&H)})},unbind:function(F,E){return this.each(function(){o.event.remove(this,F,E)})},trigger:function(E,F){return this.each(function(){o.event.trigger(E,F,this)})},triggerHandler:function(E,G){if(this[0]){var F=o.Event(E);F.preventDefault();F.stopPropagation();o.event.trigger(F,G,this[0]);return F.result}},toggle:function(G){var E=arguments,F=1;while(F=0){var E=G.slice(I,G.length);G=G.slice(0,I)}var H="GET";if(J){if(o.isFunction(J)){K=J;J=null}else{if(typeof J==="object"){J=o.param(J);H="POST"}}}var F=this;o.ajax({url:G,type:H,dataType:"html",data:J,complete:function(M,L){if(L=="success"||L=="notmodified"){F.html(E?o("
").append(M.responseText.replace(//g,"")).find(E):M.responseText)}if(K){F.each(K,[M.responseText,L,M])}}});return this},serialize:function(){return o.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?o.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||/select|textarea/i.test(this.nodeName)||/text|hidden|password|search/i.test(this.type))}).map(function(E,F){var G=o(this).val();return G==null?null:o.isArray(G)?o.map(G,function(I,H){return{name:F.name,value:I}}):{name:F.name,value:G}}).get()}});o.each("ajaxStart,ajaxStop,ajaxComplete,ajaxError,ajaxSuccess,ajaxSend".split(","),function(E,F){o.fn[F]=function(G){return this.bind(F,G)}});var r=e();o.extend({get:function(E,G,H,F){if(o.isFunction(G)){H=G;G=null}return o.ajax({type:"GET",url:E,data:G,success:H,dataType:F})},getScript:function(E,F){return o.get(E,null,F,"script")},getJSON:function(E,F,G){return o.get(E,F,G,"json")},post:function(E,G,H,F){if(o.isFunction(G)){H=G;G={}}return o.ajax({type:"POST",url:E,data:G,success:H,dataType:F})},ajaxSetup:function(E){o.extend(o.ajaxSettings,E)},ajaxSettings:{url:location.href,global:true,type:"GET",contentType:"application/x-www-form-urlencoded",processData:true,async:true,xhr:function(){return l.ActiveXObject?new ActiveXObject("Microsoft.XMLHTTP"):new XMLHttpRequest()},accepts:{xml:"application/xml, text/xml",html:"text/html",script:"text/javascript, application/javascript",json:"application/json, text/javascript",text:"text/plain",_default:"*/*"}},lastModified:{},ajax:function(M){M=o.extend(true,M,o.extend(true,{},o.ajaxSettings,M));var W,F=/=\?(&|$)/g,R,V,G=M.type.toUpperCase();if(M.data&&M.processData&&typeof M.data!=="string"){M.data=o.param(M.data)}if(M.dataType=="jsonp"){if(G=="GET"){if(!M.url.match(F)){M.url+=(M.url.match(/\?/)?"&":"?")+(M.jsonp||"callback")+"=?"}}else{if(!M.data||!M.data.match(F)){M.data=(M.data?M.data+"&":"")+(M.jsonp||"callback")+"=?"}}M.dataType="json"}if(M.dataType=="json"&&(M.data&&M.data.match(F)||M.url.match(F))){W="jsonp"+r++;if(M.data){M.data=(M.data+"").replace(F,"="+W+"$1")}M.url=M.url.replace(F,"="+W+"$1");M.dataType="script";l[W]=function(X){V=X;I();L();l[W]=g;try{delete l[W]}catch(Y){}if(H){H.removeChild(T)}}}if(M.dataType=="script"&&M.cache==null){M.cache=false}if(M.cache===false&&G=="GET"){var E=e();var U=M.url.replace(/(\?|&)_=.*?(&|$)/,"$1_="+E+"$2");M.url=U+((U==M.url)?(M.url.match(/\?/)?"&":"?")+"_="+E:"")}if(M.data&&G=="GET"){M.url+=(M.url.match(/\?/)?"&":"?")+M.data;M.data=null}if(M.global&&!o.active++){o.event.trigger("ajaxStart")}var Q=/^(\w+:)?\/\/([^\/?#]+)/.exec(M.url);if(M.dataType=="script"&&G=="GET"&&Q&&(Q[1]&&Q[1]!=location.protocol||Q[2]!=location.host)){var H=document.getElementsByTagName("head")[0];var T=document.createElement("script");T.src=M.url;if(M.scriptCharset){T.charset=M.scriptCharset}if(!W){var O=false;T.onload=T.onreadystatechange=function(){if(!O&&(!this.readyState||this.readyState=="loaded"||this.readyState=="complete")){O=true;I();L();T.onload=T.onreadystatechange=null;H.removeChild(T)}}}H.appendChild(T);return g}var K=false;var J=M.xhr();if(M.username){J.open(G,M.url,M.async,M.username,M.password)}else{J.open(G,M.url,M.async)}try{if(M.data){J.setRequestHeader("Content-Type",M.contentType)}if(M.ifModified){J.setRequestHeader("If-Modified-Since",o.lastModified[M.url]||"Thu, 01 Jan 1970 00:00:00 GMT")}J.setRequestHeader("X-Requested-With","XMLHttpRequest");J.setRequestHeader("Accept",M.dataType&&M.accepts[M.dataType]?M.accepts[M.dataType]+", */*":M.accepts._default)}catch(S){}if(M.beforeSend&&M.beforeSend(J,M)===false){if(M.global&&!--o.active){o.event.trigger("ajaxStop")}J.abort();return false}if(M.global){o.event.trigger("ajaxSend",[J,M])}var N=function(X){if(J.readyState==0){if(P){clearInterval(P);P=null;if(M.global&&!--o.active){o.event.trigger("ajaxStop")}}}else{if(!K&&J&&(J.readyState==4||X=="timeout")){K=true;if(P){clearInterval(P);P=null}R=X=="timeout"?"timeout":!o.httpSuccess(J)?"error":M.ifModified&&o.httpNotModified(J,M.url)?"notmodified":"success";if(R=="success"){try{V=o.httpData(J,M.dataType,M)}catch(Z){R="parsererror"}}if(R=="success"){var Y;try{Y=J.getResponseHeader("Last-Modified")}catch(Z){}if(M.ifModified&&Y){o.lastModified[M.url]=Y}if(!W){I()}}else{o.handleError(M,J,R)}L();if(X){J.abort()}if(M.async){J=null}}}};if(M.async){var P=setInterval(N,13);if(M.timeout>0){setTimeout(function(){if(J&&!K){N("timeout")}},M.timeout)}}try{J.send(M.data)}catch(S){o.handleError(M,J,null,S)}if(!M.async){N()}function I(){if(M.success){M.success(V,R)}if(M.global){o.event.trigger("ajaxSuccess",[J,M])}}function L(){if(M.complete){M.complete(J,R)}if(M.global){o.event.trigger("ajaxComplete",[J,M])}if(M.global&&!--o.active){o.event.trigger("ajaxStop")}}return J},handleError:function(F,H,E,G){if(F.error){F.error(H,E,G)}if(F.global){o.event.trigger("ajaxError",[H,F,G])}},active:0,httpSuccess:function(F){try{return !F.status&&location.protocol=="file:"||(F.status>=200&&F.status<300)||F.status==304||F.status==1223}catch(E){}return false},httpNotModified:function(G,E){try{var H=G.getResponseHeader("Last-Modified");return G.status==304||H==o.lastModified[E]}catch(F){}return false},httpData:function(J,H,G){var F=J.getResponseHeader("content-type"),E=H=="xml"||!H&&F&&F.indexOf("xml")>=0,I=E?J.responseXML:J.responseText;if(E&&I.documentElement.tagName=="parsererror"){throw"parsererror"}if(G&&G.dataFilter){I=G.dataFilter(I,H)}if(typeof I==="string"){if(H=="script"){o.globalEval(I)}if(H=="json"){I=l["eval"]("("+I+")")}}return I},param:function(E){var G=[];function H(I,J){G[G.length]=encodeURIComponent(I)+"="+encodeURIComponent(J)}if(o.isArray(E)||E.jquery){o.each(E,function(){H(this.name,this.value)})}else{for(var F in E){if(o.isArray(E[F])){o.each(E[F],function(){H(F,this)})}else{H(F,o.isFunction(E[F])?E[F]():E[F])}}}return G.join("&").replace(/%20/g,"+")}});var m={},n,d=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]];function t(F,E){var G={};o.each(d.concat.apply([],d.slice(0,E)),function(){G[this]=F});return G}o.fn.extend({show:function(J,L){if(J){return this.animate(t("show",3),J,L)}else{for(var H=0,F=this.length;H").appendTo("body");K=I.css("display");if(K==="none"){K="block"}I.remove();m[G]=K}o.data(this[H],"olddisplay",K)}}for(var H=0,F=this.length;H=0;H--){if(G[H].elem==this){if(E){G[H](true)}G.splice(H,1)}}});if(!E){this.dequeue()}return this}});o.each({slideDown:t("show",1),slideUp:t("hide",1),slideToggle:t("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"}},function(E,F){o.fn[E]=function(G,H){return this.animate(F,G,H)}});o.extend({speed:function(G,H,F){var E=typeof G==="object"?G:{complete:F||!F&&H||o.isFunction(G)&&G,duration:G,easing:F&&H||H&&!o.isFunction(H)&&H};E.duration=o.fx.off?0:typeof E.duration==="number"?E.duration:o.fx.speeds[E.duration]||o.fx.speeds._default;E.old=E.complete;E.complete=function(){if(E.queue!==false){o(this).dequeue()}if(o.isFunction(E.old)){E.old.call(this)}};return E},easing:{linear:function(G,H,E,F){return E+F*G},swing:function(G,H,E,F){return((-Math.cos(G*Math.PI)/2)+0.5)*F+E}},timers:[],fx:function(F,E,G){this.options=E;this.elem=F;this.prop=G;if(!E.orig){E.orig={}}}});o.fx.prototype={update:function(){if(this.options.step){this.options.step.call(this.elem,this.now,this)}(o.fx.step[this.prop]||o.fx.step._default)(this);if((this.prop=="height"||this.prop=="width")&&this.elem.style){this.elem.style.display="block"}},cur:function(F){if(this.elem[this.prop]!=null&&(!this.elem.style||this.elem.style[this.prop]==null)){return this.elem[this.prop]}var E=parseFloat(o.css(this.elem,this.prop,F));return E&&E>-10000?E:parseFloat(o.curCSS(this.elem,this.prop))||0},custom:function(I,H,G){this.startTime=e();this.start=I;this.end=H;this.unit=G||this.unit||"px";this.now=this.start;this.pos=this.state=0;var E=this;function F(J){return E.step(J)}F.elem=this.elem;if(F()&&o.timers.push(F)&&!n){n=setInterval(function(){var K=o.timers;for(var J=0;J=this.options.duration+this.startTime){this.now=this.end;this.pos=this.state=1;this.update();this.options.curAnim[this.prop]=true;var E=true;for(var F in this.options.curAnim){if(this.options.curAnim[F]!==true){E=false}}if(E){if(this.options.display!=null){this.elem.style.overflow=this.options.overflow;this.elem.style.display=this.options.display;if(o.css(this.elem,"display")=="none"){this.elem.style.display="block"}}if(this.options.hide){o(this.elem).hide()}if(this.options.hide||this.options.show){for(var I in this.options.curAnim){o.attr(this.elem.style,I,this.options.orig[I])}}this.options.complete.call(this.elem)}return false}else{var J=G-this.startTime;this.state=J/this.options.duration;this.pos=o.easing[this.options.easing||(o.easing.swing?"swing":"linear")](this.state,J,0,1,this.options.duration);this.now=this.start+((this.end-this.start)*this.pos);this.update()}return true}};o.extend(o.fx,{speeds:{slow:600,fast:200,_default:400},step:{opacity:function(E){o.attr(E.elem.style,"opacity",E.now)},_default:function(E){if(E.elem.style&&E.elem.style[E.prop]!=null){E.elem.style[E.prop]=E.now+E.unit}else{E.elem[E.prop]=E.now}}}});if(document.documentElement.getBoundingClientRect){o.fn.offset=function(){if(!this[0]){return{top:0,left:0}}if(this[0]===this[0].ownerDocument.body){return o.offset.bodyOffset(this[0])}var G=this[0].getBoundingClientRect(),J=this[0].ownerDocument,F=J.body,E=J.documentElement,L=E.clientTop||F.clientTop||0,K=E.clientLeft||F.clientLeft||0,I=G.top+(self.pageYOffset||o.boxModel&&E.scrollTop||F.scrollTop)-L,H=G.left+(self.pageXOffset||o.boxModel&&E.scrollLeft||F.scrollLeft)-K;return{top:I,left:H}}}else{o.fn.offset=function(){if(!this[0]){return{top:0,left:0}}if(this[0]===this[0].ownerDocument.body){return o.offset.bodyOffset(this[0])}o.offset.initialized||o.offset.initialize();var J=this[0],G=J.offsetParent,F=J,O=J.ownerDocument,M,H=O.documentElement,K=O.body,L=O.defaultView,E=L.getComputedStyle(J,null),N=J.offsetTop,I=J.offsetLeft;while((J=J.parentNode)&&J!==K&&J!==H){M=L.getComputedStyle(J,null);N-=J.scrollTop,I-=J.scrollLeft;if(J===G){N+=J.offsetTop,I+=J.offsetLeft;if(o.offset.doesNotAddBorder&&!(o.offset.doesAddBorderForTableAndCells&&/^t(able|d|h)$/i.test(J.tagName))){N+=parseInt(M.borderTopWidth,10)||0,I+=parseInt(M.borderLeftWidth,10)||0}F=G,G=J.offsetParent}if(o.offset.subtractsBorderForOverflowNotVisible&&M.overflow!=="visible"){N+=parseInt(M.borderTopWidth,10)||0,I+=parseInt(M.borderLeftWidth,10)||0}E=M}if(E.position==="relative"||E.position==="static"){N+=K.offsetTop,I+=K.offsetLeft}if(E.position==="fixed"){N+=Math.max(H.scrollTop,K.scrollTop),I+=Math.max(H.scrollLeft,K.scrollLeft)}return{top:N,left:I}}}o.offset={initialize:function(){if(this.initialized){return}var L=document.body,F=document.createElement("div"),H,G,N,I,M,E,J=L.style.marginTop,K='
';M={position:"absolute",top:0,left:0,margin:0,border:0,width:"1px",height:"1px",visibility:"hidden"};for(E in M){F.style[E]=M[E]}F.innerHTML=K;L.insertBefore(F,L.firstChild);H=F.firstChild,G=H.firstChild,I=H.nextSibling.firstChild.firstChild;this.doesNotAddBorder=(G.offsetTop!==5);this.doesAddBorderForTableAndCells=(I.offsetTop===5);H.style.overflow="hidden",H.style.position="relative";this.subtractsBorderForOverflowNotVisible=(G.offsetTop===-5);L.style.marginTop="1px";this.doesNotIncludeMarginInBodyOffset=(L.offsetTop===0);L.style.marginTop=J;L.removeChild(F);this.initialized=true},bodyOffset:function(E){o.offset.initialized||o.offset.initialize();var G=E.offsetTop,F=E.offsetLeft;if(o.offset.doesNotIncludeMarginInBodyOffset){G+=parseInt(o.curCSS(E,"marginTop",true),10)||0,F+=parseInt(o.curCSS(E,"marginLeft",true),10)||0}return{top:G,left:F}}};o.fn.extend({position:function(){var I=0,H=0,F;if(this[0]){var G=this.offsetParent(),J=this.offset(),E=/^body|html$/i.test(G[0].tagName)?{top:0,left:0}:G.offset();J.top-=j(this,"marginTop");J.left-=j(this,"marginLeft");E.top+=j(G,"borderTopWidth");E.left+=j(G,"borderLeftWidth");F={top:J.top-E.top,left:J.left-E.left}}return F},offsetParent:function(){var E=this[0].offsetParent||document.body;while(E&&(!/^body|html$/i.test(E.tagName)&&o.css(E,"position")=="static")){E=E.offsetParent}return o(E)}});o.each(["Left","Top"],function(F,E){var G="scroll"+E;o.fn[G]=function(H){if(!this[0]){return null}return H!==g?this.each(function(){this==l||this==document?l.scrollTo(!F?H:o(l).scrollLeft(),F?H:o(l).scrollTop()):this[G]=H}):this[0]==l||this[0]==document?self[F?"pageYOffset":"pageXOffset"]||o.boxModel&&document.documentElement[G]||document.body[G]:this[0][G]}});o.each(["Height","Width"],function(I,G){var E=I?"Left":"Top",H=I?"Right":"Bottom",F=G.toLowerCase();o.fn["inner"+G]=function(){return this[0]?o.css(this[0],F,false,"padding"):null};o.fn["outer"+G]=function(K){return this[0]?o.css(this[0],F,false,K?"margin":"border"):null};var J=G.toLowerCase();o.fn[J]=function(K){return this[0]==l?document.compatMode=="CSS1Compat"&&document.documentElement["client"+G]||document.body["client"+G]:this[0]==document?Math.max(document.documentElement["client"+G],document.body["scroll"+G],document.documentElement["scroll"+G],document.body["offset"+G],document.documentElement["offset"+G]):K===g?(this.length?o.css(this[0],J):null):this.css(J,typeof K==="string"?K:K+"px")}})})(); \ No newline at end of file diff --git a/resources/library/applications/Calculator.wgt/js/jquery-ui-1.7.2.custom.min.js b/resources/library/applications/Calculator.wgt/js/jquery-ui-1.7.2.custom.min.js deleted file mode 100644 index cf19f30a..00000000 --- a/resources/library/applications/Calculator.wgt/js/jquery-ui-1.7.2.custom.min.js +++ /dev/null @@ -1,298 +0,0 @@ -/* - * jQuery UI 1.7.2 - * - * Copyright (c) 2009 AUTHORS.txt (http://jqueryui.com/about) - * Dual licensed under the MIT (MIT-LICENSE.txt) - * and GPL (GPL-LICENSE.txt) licenses. - * - * http://docs.jquery.com/UI - */ -jQuery.ui||(function(c){var i=c.fn.remove,d=c.browser.mozilla&&(parseFloat(c.browser.version)<1.9);c.ui={version:"1.7.2",plugin:{add:function(k,l,n){var m=c.ui[k].prototype;for(var j in n){m.plugins[j]=m.plugins[j]||[];m.plugins[j].push([l,n[j]])}},call:function(j,l,k){var n=j.plugins[l];if(!n||!j.element[0].parentNode){return}for(var m=0;m0){return true}m[j]=1;l=(m[j]>0);m[j]=0;return l},isOverAxis:function(k,j,l){return(k>j)&&(k<(j+l))},isOver:function(o,k,n,m,j,l){return c.ui.isOverAxis(o,n,j)&&c.ui.isOverAxis(k,m,l)},keyCode:{BACKSPACE:8,CAPS_LOCK:20,COMMA:188,CONTROL:17,DELETE:46,DOWN:40,END:35,ENTER:13,ESCAPE:27,HOME:36,INSERT:45,LEFT:37,NUMPAD_ADD:107,NUMPAD_DECIMAL:110,NUMPAD_DIVIDE:111,NUMPAD_ENTER:108,NUMPAD_MULTIPLY:106,NUMPAD_SUBTRACT:109,PAGE_DOWN:34,PAGE_UP:33,PERIOD:190,RIGHT:39,SHIFT:16,SPACE:32,TAB:9,UP:38}};if(d){var f=c.attr,e=c.fn.removeAttr,h="http://www.w3.org/2005/07/aaa",a=/^aria-/,b=/^wairole:/;c.attr=function(k,j,l){var m=l!==undefined;return(j=="role"?(m?f.call(this,k,j,"wairole:"+l):(f.apply(this,arguments)||"").replace(b,"")):(a.test(j)?(m?k.setAttributeNS(h,j.replace(a,"aaa:"),l):f.call(this,k,j.replace(a,"aaa:"))):f.apply(this,arguments)))};c.fn.removeAttr=function(j){return(a.test(j)?this.each(function(){this.removeAttributeNS(h,j.replace(a,""))}):e.call(this,j))}}c.fn.extend({remove:function(){c("*",this).add(this).each(function(){c(this).triggerHandler("remove")});return i.apply(this,arguments)},enableSelection:function(){return this.attr("unselectable","off").css("MozUserSelect","").unbind("selectstart.ui")},disableSelection:function(){return this.attr("unselectable","on").css("MozUserSelect","none").bind("selectstart.ui",function(){return false})},scrollParent:function(){var j;if((c.browser.msie&&(/(static|relative)/).test(this.css("position")))||(/absolute/).test(this.css("position"))){j=this.parents().filter(function(){return(/(relative|absolute|fixed)/).test(c.curCSS(this,"position",1))&&(/(auto|scroll)/).test(c.curCSS(this,"overflow",1)+c.curCSS(this,"overflow-y",1)+c.curCSS(this,"overflow-x",1))}).eq(0)}else{j=this.parents().filter(function(){return(/(auto|scroll)/).test(c.curCSS(this,"overflow",1)+c.curCSS(this,"overflow-y",1)+c.curCSS(this,"overflow-x",1))}).eq(0)}return(/fixed/).test(this.css("position"))||!j.length?c(document):j}});c.extend(c.expr[":"],{data:function(l,k,j){return !!c.data(l,j[3])},focusable:function(k){var l=k.nodeName.toLowerCase(),j=c.attr(k,"tabindex");return(/input|select|textarea|button|object/.test(l)?!k.disabled:"a"==l||"area"==l?k.href||!isNaN(j):!isNaN(j))&&!c(k)["area"==l?"parents":"closest"](":hidden").length},tabbable:function(k){var j=c.attr(k,"tabindex");return(isNaN(j)||j>=0)&&c(k).is(":focusable")}});function g(m,n,o,l){function k(q){var p=c[m][n][q]||[];return(typeof p=="string"?p.split(/,?\s+/):p)}var j=k("getter");if(l.length==1&&typeof l[0]=="string"){j=j.concat(k("getterSetter"))}return(c.inArray(o,j)!=-1)}c.widget=function(k,j){var l=k.split(".")[0];k=k.split(".")[1];c.fn[k]=function(p){var n=(typeof p=="string"),o=Array.prototype.slice.call(arguments,1);if(n&&p.substring(0,1)=="_"){return this}if(n&&g(l,k,p,o)){var m=c.data(this[0],k);return(m?m[p].apply(m,o):undefined)}return this.each(function(){var q=c.data(this,k);(!q&&!n&&c.data(this,k,new c[l][k](this,p))._init());(q&&n&&c.isFunction(q[p])&&q[p].apply(q,o))})};c[l]=c[l]||{};c[l][k]=function(o,n){var m=this;this.namespace=l;this.widgetName=k;this.widgetEventPrefix=c[l][k].eventPrefix||k;this.widgetBaseClass=l+"-"+k;this.options=c.extend({},c.widget.defaults,c[l][k].defaults,c.metadata&&c.metadata.get(o)[k],n);this.element=c(o).bind("setData."+k,function(q,p,r){if(q.target==o){return m._setData(p,r)}}).bind("getData."+k,function(q,p){if(q.target==o){return m._getData(p)}}).bind("remove",function(){return m.destroy()})};c[l][k].prototype=c.extend({},c.widget.prototype,j);c[l][k].getterSetter="option"};c.widget.prototype={_init:function(){},destroy:function(){this.element.removeData(this.widgetName).removeClass(this.widgetBaseClass+"-disabled "+this.namespace+"-state-disabled").removeAttr("aria-disabled")},option:function(l,m){var k=l,j=this;if(typeof l=="string"){if(m===undefined){return this._getData(l)}k={};k[l]=m}c.each(k,function(n,o){j._setData(n,o)})},_getData:function(j){return this.options[j]},_setData:function(j,k){this.options[j]=k;if(j=="disabled"){this.element[k?"addClass":"removeClass"](this.widgetBaseClass+"-disabled "+this.namespace+"-state-disabled").attr("aria-disabled",k)}},enable:function(){this._setData("disabled",false)},disable:function(){this._setData("disabled",true)},_trigger:function(l,m,n){var p=this.options[l],j=(l==this.widgetEventPrefix?l:this.widgetEventPrefix+l);m=c.Event(m);m.type=j;if(m.originalEvent){for(var k=c.event.props.length,o;k;){o=c.event.props[--k];m[o]=m.originalEvent[o]}}this.element.trigger(m,n);return !(c.isFunction(p)&&p.call(this.element[0],m,n)===false||m.isDefaultPrevented())}};c.widget.defaults={disabled:false};c.ui.mouse={_mouseInit:function(){var j=this;this.element.bind("mousedown."+this.widgetName,function(k){return j._mouseDown(k)}).bind("click."+this.widgetName,function(k){if(j._preventClickEvent){j._preventClickEvent=false;k.stopImmediatePropagation();return false}});if(c.browser.msie){this._mouseUnselectable=this.element.attr("unselectable");this.element.attr("unselectable","on")}this.started=false},_mouseDestroy:function(){this.element.unbind("."+this.widgetName);(c.browser.msie&&this.element.attr("unselectable",this._mouseUnselectable))},_mouseDown:function(l){l.originalEvent=l.originalEvent||{};if(l.originalEvent.mouseHandled){return}(this._mouseStarted&&this._mouseUp(l));this._mouseDownEvent=l;var k=this,m=(l.which==1),j=(typeof this.options.cancel=="string"?c(l.target).parents().add(l.target).filter(this.options.cancel).length:false);if(!m||j||!this._mouseCapture(l)){return true}this.mouseDelayMet=!this.options.delay;if(!this.mouseDelayMet){this._mouseDelayTimer=setTimeout(function(){k.mouseDelayMet=true},this.options.delay)}if(this._mouseDistanceMet(l)&&this._mouseDelayMet(l)){this._mouseStarted=(this._mouseStart(l)!==false);if(!this._mouseStarted){l.preventDefault();return true}}this._mouseMoveDelegate=function(n){return k._mouseMove(n)};this._mouseUpDelegate=function(n){return k._mouseUp(n)};c(document).bind("mousemove."+this.widgetName,this._mouseMoveDelegate).bind("mouseup."+this.widgetName,this._mouseUpDelegate);(c.browser.safari||l.preventDefault());l.originalEvent.mouseHandled=true;return true},_mouseMove:function(j){if(c.browser.msie&&!j.button){return this._mouseUp(j)}if(this._mouseStarted){this._mouseDrag(j);return j.preventDefault()}if(this._mouseDistanceMet(j)&&this._mouseDelayMet(j)){this._mouseStarted=(this._mouseStart(this._mouseDownEvent,j)!==false);(this._mouseStarted?this._mouseDrag(j):this._mouseUp(j))}return !this._mouseStarted},_mouseUp:function(j){c(document).unbind("mousemove."+this.widgetName,this._mouseMoveDelegate).unbind("mouseup."+this.widgetName,this._mouseUpDelegate);if(this._mouseStarted){this._mouseStarted=false;this._preventClickEvent=(j.target==this._mouseDownEvent.target);this._mouseStop(j)}return false},_mouseDistanceMet:function(j){return(Math.max(Math.abs(this._mouseDownEvent.pageX-j.pageX),Math.abs(this._mouseDownEvent.pageY-j.pageY))>=this.options.distance)},_mouseDelayMet:function(j){return this.mouseDelayMet},_mouseStart:function(j){},_mouseDrag:function(j){},_mouseStop:function(j){},_mouseCapture:function(j){return true}};c.ui.mouse.defaults={cancel:null,distance:1,delay:0}})(jQuery);;/* - * jQuery UI Draggable 1.7.2 - * - * Copyright (c) 2009 AUTHORS.txt (http://jqueryui.com/about) - * Dual licensed under the MIT (MIT-LICENSE.txt) - * and GPL (GPL-LICENSE.txt) licenses. - * - * http://docs.jquery.com/UI/Draggables - * - * Depends: - * ui.core.js - */ -(function(a){a.widget("ui.draggable",a.extend({},a.ui.mouse,{_init:function(){if(this.options.helper=="original"&&!(/^(?:r|a|f)/).test(this.element.css("position"))){this.element[0].style.position="relative"}(this.options.addClasses&&this.element.addClass("ui-draggable"));(this.options.disabled&&this.element.addClass("ui-draggable-disabled"));this._mouseInit()},destroy:function(){if(!this.element.data("draggable")){return}this.element.removeData("draggable").unbind(".draggable").removeClass("ui-draggable ui-draggable-dragging ui-draggable-disabled");this._mouseDestroy()},_mouseCapture:function(b){var c=this.options;if(this.helper||c.disabled||a(b.target).is(".ui-resizable-handle")){return false}this.handle=this._getHandle(b);if(!this.handle){return false}return true},_mouseStart:function(b){var c=this.options;this.helper=this._createHelper(b);this._cacheHelperProportions();if(a.ui.ddmanager){a.ui.ddmanager.current=this}this._cacheMargins();this.cssPosition=this.helper.css("position");this.scrollParent=this.helper.scrollParent();this.offset=this.element.offset();this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left};a.extend(this.offset,{click:{left:b.pageX-this.offset.left,top:b.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()});this.originalPosition=this._generatePosition(b);this.originalPageX=b.pageX;this.originalPageY=b.pageY;if(c.cursorAt){this._adjustOffsetFromHelper(c.cursorAt)}if(c.containment){this._setContainment()}this._trigger("start",b);this._cacheHelperProportions();if(a.ui.ddmanager&&!c.dropBehaviour){a.ui.ddmanager.prepareOffsets(this,b)}this.helper.addClass("ui-draggable-dragging");this._mouseDrag(b,true);return true},_mouseDrag:function(b,d){this.position=this._generatePosition(b);this.positionAbs=this._convertPositionTo("absolute");if(!d){var c=this._uiHash();this._trigger("drag",b,c);this.position=c.position}if(!this.options.axis||this.options.axis!="y"){this.helper[0].style.left=this.position.left+"px"}if(!this.options.axis||this.options.axis!="x"){this.helper[0].style.top=this.position.top+"px"}if(a.ui.ddmanager){a.ui.ddmanager.drag(this,b)}return false},_mouseStop:function(c){var d=false;if(a.ui.ddmanager&&!this.options.dropBehaviour){d=a.ui.ddmanager.drop(this,c)}if(this.dropped){d=this.dropped;this.dropped=false}if((this.options.revert=="invalid"&&!d)||(this.options.revert=="valid"&&d)||this.options.revert===true||(a.isFunction(this.options.revert)&&this.options.revert.call(this.element,d))){var b=this;a(this.helper).animate(this.originalPosition,parseInt(this.options.revertDuration,10),function(){b._trigger("stop",c);b._clear()})}else{this._trigger("stop",c);this._clear()}return false},_getHandle:function(b){var c=!this.options.handle||!a(this.options.handle,this.element).length?true:false;a(this.options.handle,this.element).find("*").andSelf().each(function(){if(this==b.target){c=true}});return c},_createHelper:function(c){var d=this.options;var b=a.isFunction(d.helper)?a(d.helper.apply(this.element[0],[c])):(d.helper=="clone"?this.element.clone():this.element);if(!b.parents("body").length){b.appendTo((d.appendTo=="parent"?this.element[0].parentNode:d.appendTo))}if(b[0]!=this.element[0]&&!(/(fixed|absolute)/).test(b.css("position"))){b.css("position","absolute")}return b},_adjustOffsetFromHelper:function(b){if(b.left!=undefined){this.offset.click.left=b.left+this.margins.left}if(b.right!=undefined){this.offset.click.left=this.helperProportions.width-b.right+this.margins.left}if(b.top!=undefined){this.offset.click.top=b.top+this.margins.top}if(b.bottom!=undefined){this.offset.click.top=this.helperProportions.height-b.bottom+this.margins.top}},_getParentOffset:function(){this.offsetParent=this.helper.offsetParent();var b=this.offsetParent.offset();if(this.cssPosition=="absolute"&&this.scrollParent[0]!=document&&a.ui.contains(this.scrollParent[0],this.offsetParent[0])){b.left+=this.scrollParent.scrollLeft();b.top+=this.scrollParent.scrollTop()}if((this.offsetParent[0]==document.body)||(this.offsetParent[0].tagName&&this.offsetParent[0].tagName.toLowerCase()=="html"&&a.browser.msie)){b={top:0,left:0}}return{top:b.top+(parseInt(this.offsetParent.css("borderTopWidth"),10)||0),left:b.left+(parseInt(this.offsetParent.css("borderLeftWidth"),10)||0)}},_getRelativeOffset:function(){if(this.cssPosition=="relative"){var b=this.element.position();return{top:b.top-(parseInt(this.helper.css("top"),10)||0)+this.scrollParent.scrollTop(),left:b.left-(parseInt(this.helper.css("left"),10)||0)+this.scrollParent.scrollLeft()}}else{return{top:0,left:0}}},_cacheMargins:function(){this.margins={left:(parseInt(this.element.css("marginLeft"),10)||0),top:(parseInt(this.element.css("marginTop"),10)||0)}},_cacheHelperProportions:function(){this.helperProportions={width:this.helper.outerWidth(),height:this.helper.outerHeight()}},_setContainment:function(){var e=this.options;if(e.containment=="parent"){e.containment=this.helper[0].parentNode}if(e.containment=="document"||e.containment=="window"){this.containment=[0-this.offset.relative.left-this.offset.parent.left,0-this.offset.relative.top-this.offset.parent.top,a(e.containment=="document"?document:window).width()-this.helperProportions.width-this.margins.left,(a(e.containment=="document"?document:window).height()||document.body.parentNode.scrollHeight)-this.helperProportions.height-this.margins.top]}if(!(/^(document|window|parent)$/).test(e.containment)&&e.containment.constructor!=Array){var c=a(e.containment)[0];if(!c){return}var d=a(e.containment).offset();var b=(a(c).css("overflow")!="hidden");this.containment=[d.left+(parseInt(a(c).css("borderLeftWidth"),10)||0)+(parseInt(a(c).css("paddingLeft"),10)||0)-this.margins.left,d.top+(parseInt(a(c).css("borderTopWidth"),10)||0)+(parseInt(a(c).css("paddingTop"),10)||0)-this.margins.top,d.left+(b?Math.max(c.scrollWidth,c.offsetWidth):c.offsetWidth)-(parseInt(a(c).css("borderLeftWidth"),10)||0)-(parseInt(a(c).css("paddingRight"),10)||0)-this.helperProportions.width-this.margins.left,d.top+(b?Math.max(c.scrollHeight,c.offsetHeight):c.offsetHeight)-(parseInt(a(c).css("borderTopWidth"),10)||0)-(parseInt(a(c).css("paddingBottom"),10)||0)-this.helperProportions.height-this.margins.top]}else{if(e.containment.constructor==Array){this.containment=e.containment}}},_convertPositionTo:function(f,h){if(!h){h=this.position}var c=f=="absolute"?1:-1;var e=this.options,b=this.cssPosition=="absolute"&&!(this.scrollParent[0]!=document&&a.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,g=(/(html|body)/i).test(b[0].tagName);return{top:(h.top+this.offset.relative.top*c+this.offset.parent.top*c-(a.browser.safari&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollTop():(g?0:b.scrollTop()))*c)),left:(h.left+this.offset.relative.left*c+this.offset.parent.left*c-(a.browser.safari&&this.cssPosition=="fixed"?0:(this.cssPosition=="fixed"?-this.scrollParent.scrollLeft():g?0:b.scrollLeft())*c))}},_generatePosition:function(e){var h=this.options,b=this.cssPosition=="absolute"&&!(this.scrollParent[0]!=document&&a.ui.contains(this.scrollParent[0],this.offsetParent[0]))?this.offsetParent:this.scrollParent,i=(/(html|body)/i).test(b[0].tagName);if(this.cssPosition=="relative"&&!(this.scrollParent[0]!=document&&this.scrollParent[0]!=this.offsetParent[0])){this.offset.relative=this._getRelativeOffset()}var d=e.pageX;var c=e.pageY;if(this.originalPosition){if(this.containment){if(e.pageX-this.offset.click.leftthis.containment[2]){d=this.containment[2]+this.offset.click.left}if(e.pageY-this.offset.click.top>this.containment[3]){c=this.containment[3]+this.offset.click.top}}if(h.grid){var g=this.originalPageY+Math.round((c-this.originalPageY)/h.grid[1])*h.grid[1];c=this.containment?(!(g-this.offset.click.topthis.containment[3])?g:(!(g-this.offset.click.topthis.containment[2])?f:(!(f-this.offset.click.left
').css({width:this.offsetWidth+"px",height:this.offsetHeight+"px",position:"absolute",opacity:"0.001",zIndex:1000}).css(a(this).offset()).appendTo("body")})},stop:function(b,c){a("div.ui-draggable-iframeFix").each(function(){this.parentNode.removeChild(this)})}});a.ui.plugin.add("draggable","opacity",{start:function(c,d){var b=a(d.helper),e=a(this).data("draggable").options;if(b.css("opacity")){e._opacity=b.css("opacity")}b.css("opacity",e.opacity)},stop:function(b,c){var d=a(this).data("draggable").options;if(d._opacity){a(c.helper).css("opacity",d._opacity)}}});a.ui.plugin.add("draggable","scroll",{start:function(c,d){var b=a(this).data("draggable");if(b.scrollParent[0]!=document&&b.scrollParent[0].tagName!="HTML"){b.overflowOffset=b.scrollParent.offset()}},drag:function(d,e){var c=a(this).data("draggable"),f=c.options,b=false;if(c.scrollParent[0]!=document&&c.scrollParent[0].tagName!="HTML"){if(!f.axis||f.axis!="x"){if((c.overflowOffset.top+c.scrollParent[0].offsetHeight)-d.pageY=0;v--){var s=g.snapElements[v].left,n=s+g.snapElements[v].width,m=g.snapElements[v].top,A=m+g.snapElements[v].height;if(!((s-y=p&&n<=k)||(m>=p&&m<=k)||(nk))&&((e>=g&&e<=c)||(d>=g&&d<=c)||(ec));break;default:return false;break}};a.ui.ddmanager={current:null,droppables:{"default":[]},prepareOffsets:function(e,g){var b=a.ui.ddmanager.droppables[e.options.scope];var f=g?g.type:null;var h=(e.currentItem||e.element).find(":data(droppable)").andSelf();droppablesLoop:for(var d=0;d').css({position:this.element.css("position"),width:this.element.outerWidth(),height:this.element.outerHeight(),top:this.element.css("top"),left:this.element.css("left")}));this.element=this.element.parent().data("resizable",this.element.data("resizable"));this.elementIsWrapper=true;this.element.css({marginLeft:this.originalElement.css("marginLeft"),marginTop:this.originalElement.css("marginTop"),marginRight:this.originalElement.css("marginRight"),marginBottom:this.originalElement.css("marginBottom")});this.originalElement.css({marginLeft:0,marginTop:0,marginRight:0,marginBottom:0});this.originalResizeStyle=this.originalElement.css("resize");this.originalElement.css("resize","none");this._proportionallyResizeElements.push(this.originalElement.css({position:"static",zoom:1,display:"block"}));this.originalElement.css({margin:this.originalElement.css("margin")});this._proportionallyResize()}this.handles=j.handles||(!c(".ui-resizable-handle",this.element).length?"e,s,se":{n:".ui-resizable-n",e:".ui-resizable-e",s:".ui-resizable-s",w:".ui-resizable-w",se:".ui-resizable-se",sw:".ui-resizable-sw",ne:".ui-resizable-ne",nw:".ui-resizable-nw"});if(this.handles.constructor==String){if(this.handles=="all"){this.handles="n,e,s,w,se,sw,ne,nw"}var k=this.handles.split(",");this.handles={};for(var f=0;f');if(/sw|se|ne|nw/.test(h)){g.css({zIndex:++j.zIndex})}if("se"==h){g.addClass("ui-icon ui-icon-gripsmall-diagonal-se")}this.handles[h]=".ui-resizable-"+h;this.element.append(g)}}this._renderAxis=function(p){p=p||this.element;for(var m in this.handles){if(this.handles[m].constructor==String){this.handles[m]=c(this.handles[m],this.element).show()}if(this.elementIsWrapper&&this.originalElement[0].nodeName.match(/textarea|input|select|button/i)){var n=c(this.handles[m],this.element),o=0;o=/sw|ne|nw|se|n|s/.test(m)?n.outerHeight():n.outerWidth();var l=["padding",/ne|nw|n/.test(m)?"Top":/se|sw|s/.test(m)?"Bottom":/^e$/.test(m)?"Right":"Left"].join("");p.css(l,o);this._proportionallyResize()}if(!c(this.handles[m]).length){continue}}};this._renderAxis(this.element);this._handles=c(".ui-resizable-handle",this.element).disableSelection();this._handles.mouseover(function(){if(!e.resizing){if(this.className){var i=this.className.match(/ui-resizable-(se|sw|ne|nw|n|e|s|w)/i)}e.axis=i&&i[1]?i[1]:"se"}});if(j.autoHide){this._handles.hide();c(this.element).addClass("ui-resizable-autohide").hover(function(){c(this).removeClass("ui-resizable-autohide");e._handles.show()},function(){if(!e.resizing){c(this).addClass("ui-resizable-autohide");e._handles.hide()}})}this._mouseInit()},destroy:function(){this._mouseDestroy();var d=function(f){c(f).removeClass("ui-resizable ui-resizable-disabled ui-resizable-resizing").removeData("resizable").unbind(".resizable").find(".ui-resizable-handle").remove()};if(this.elementIsWrapper){d(this.element);var e=this.element;e.parent().append(this.originalElement.css({position:e.css("position"),width:e.outerWidth(),height:e.outerHeight(),top:e.css("top"),left:e.css("left")})).end().remove()}this.originalElement.css("resize",this.originalResizeStyle);d(this.originalElement)},_mouseCapture:function(e){var f=false;for(var d in this.handles){if(c(this.handles[d])[0]==e.target){f=true}}return this.options.disabled||!!f},_mouseStart:function(f){var i=this.options,e=this.element.position(),d=this.element;this.resizing=true;this.documentScroll={top:c(document).scrollTop(),left:c(document).scrollLeft()};if(d.is(".ui-draggable")||(/absolute/).test(d.css("position"))){d.css({position:"absolute",top:e.top,left:e.left})}if(c.browser.opera&&(/relative/).test(d.css("position"))){d.css({position:"relative",top:"auto",left:"auto"})}this._renderProxy();var j=b(this.helper.css("left")),g=b(this.helper.css("top"));if(i.containment){j+=c(i.containment).scrollLeft()||0;g+=c(i.containment).scrollTop()||0}this.offset=this.helper.offset();this.position={left:j,top:g};this.size=this._helper?{width:d.outerWidth(),height:d.outerHeight()}:{width:d.width(),height:d.height()};this.originalSize=this._helper?{width:d.outerWidth(),height:d.outerHeight()}:{width:d.width(),height:d.height()};this.originalPosition={left:j,top:g};this.sizeDiff={width:d.outerWidth()-d.width(),height:d.outerHeight()-d.height()};this.originalMousePosition={left:f.pageX,top:f.pageY};this.aspectRatio=(typeof i.aspectRatio=="number")?i.aspectRatio:((this.originalSize.width/this.originalSize.height)||1);var h=c(".ui-resizable-"+this.axis).css("cursor");c("body").css("cursor",h=="auto"?this.axis+"-resize":h);d.addClass("ui-resizable-resizing");this._propagate("start",f);return true},_mouseDrag:function(d){var g=this.helper,f=this.options,l={},p=this,i=this.originalMousePosition,m=this.axis;var q=(d.pageX-i.left)||0,n=(d.pageY-i.top)||0;var h=this._change[m];if(!h){return false}var k=h.apply(this,[d,q,n]),j=c.browser.msie&&c.browser.version<7,e=this.sizeDiff;if(this._aspectRatio||d.shiftKey){k=this._updateRatio(k,d)}k=this._respectSize(k,d);this._propagate("resize",d);g.css({top:this.position.top+"px",left:this.position.left+"px",width:this.size.width+"px",height:this.size.height+"px"});if(!this._helper&&this._proportionallyResizeElements.length){this._proportionallyResize()}this._updateCache(k);this._trigger("resize",d,this.ui());return false},_mouseStop:function(g){this.resizing=false;var h=this.options,l=this;if(this._helper){var f=this._proportionallyResizeElements,d=f.length&&(/textarea/i).test(f[0].nodeName),e=d&&c.ui.hasScroll(f[0],"left")?0:l.sizeDiff.height,j=d?0:l.sizeDiff.width;var m={width:(l.size.width-j),height:(l.size.height-e)},i=(parseInt(l.element.css("left"),10)+(l.position.left-l.originalPosition.left))||null,k=(parseInt(l.element.css("top"),10)+(l.position.top-l.originalPosition.top))||null;if(!h.animate){this.element.css(c.extend(m,{top:k,left:i}))}l.helper.height(l.size.height);l.helper.width(l.size.width);if(this._helper&&!h.animate){this._proportionallyResize()}}c("body").css("cursor","auto");this.element.removeClass("ui-resizable-resizing");this._propagate("stop",g);if(this._helper){this.helper.remove()}return false},_updateCache:function(d){var e=this.options;this.offset=this.helper.offset();if(a(d.left)){this.position.left=d.left}if(a(d.top)){this.position.top=d.top}if(a(d.height)){this.size.height=d.height}if(a(d.width)){this.size.width=d.width}},_updateRatio:function(g,f){var h=this.options,i=this.position,e=this.size,d=this.axis;if(g.height){g.width=(e.height*this.aspectRatio)}else{if(g.width){g.height=(e.width/this.aspectRatio)}}if(d=="sw"){g.left=i.left+(e.width-g.width);g.top=null}if(d=="nw"){g.top=i.top+(e.height-g.height);g.left=i.left+(e.width-g.width)}return g},_respectSize:function(k,f){var i=this.helper,h=this.options,q=this._aspectRatio||f.shiftKey,p=this.axis,s=a(k.width)&&h.maxWidth&&(h.maxWidthk.width),r=a(k.height)&&h.minHeight&&(h.minHeight>k.height);if(g){k.width=h.minWidth}if(r){k.height=h.minHeight}if(s){k.width=h.maxWidth}if(l){k.height=h.maxHeight}var e=this.originalPosition.left+this.originalSize.width,n=this.position.top+this.size.height;var j=/sw|nw|w/.test(p),d=/nw|ne|n/.test(p);if(g&&j){k.left=e-h.minWidth}if(s&&j){k.left=e-h.maxWidth}if(r&&d){k.top=n-h.minHeight}if(l&&d){k.top=n-h.maxHeight}var m=!k.width&&!k.height;if(m&&!k.left&&k.top){k.top=null}else{if(m&&!k.top&&k.left){k.left=null}}return k},_proportionallyResize:function(){var j=this.options;if(!this._proportionallyResizeElements.length){return}var f=this.helper||this.element;for(var e=0;e');var d=c.browser.msie&&c.browser.version<7,f=(d?1:0),g=(d?2:-1);this.helper.addClass(this._helper).css({width:this.element.outerWidth()+g,height:this.element.outerHeight()+g,position:"absolute",left:this.elementOffset.left-f+"px",top:this.elementOffset.top-f+"px",zIndex:++h.zIndex});this.helper.appendTo("body").disableSelection()}else{this.helper=this.element}},_change:{e:function(f,e,d){return{width:this.originalSize.width+e}},w:function(g,e,d){var i=this.options,f=this.originalSize,h=this.originalPosition;return{left:h.left+e,width:f.width-e}},n:function(g,e,d){var i=this.options,f=this.originalSize,h=this.originalPosition;return{top:h.top+d,height:f.height-d}},s:function(f,e,d){return{height:this.originalSize.height+d}},se:function(f,e,d){return c.extend(this._change.s.apply(this,arguments),this._change.e.apply(this,[f,e,d]))},sw:function(f,e,d){return c.extend(this._change.s.apply(this,arguments),this._change.w.apply(this,[f,e,d]))},ne:function(f,e,d){return c.extend(this._change.n.apply(this,arguments),this._change.e.apply(this,[f,e,d]))},nw:function(f,e,d){return c.extend(this._change.n.apply(this,arguments),this._change.w.apply(this,[f,e,d]))}},_propagate:function(e,d){c.ui.plugin.call(this,e,[d,this.ui()]);(e!="resize"&&this._trigger(e,d,this.ui()))},plugins:{},ui:function(){return{originalElement:this.originalElement,element:this.element,helper:this.helper,position:this.position,size:this.size,originalSize:this.originalSize,originalPosition:this.originalPosition}}}));c.extend(c.ui.resizable,{version:"1.7.2",eventPrefix:"resize",defaults:{alsoResize:false,animate:false,animateDuration:"slow",animateEasing:"swing",aspectRatio:false,autoHide:false,cancel:":input,option",containment:false,delay:0,distance:1,ghost:false,grid:false,handles:"e,s,se",helper:false,maxHeight:null,maxWidth:null,minHeight:10,minWidth:10,zIndex:1000}});c.ui.plugin.add("resizable","alsoResize",{start:function(e,f){var d=c(this).data("resizable"),g=d.options;_store=function(h){c(h).each(function(){c(this).data("resizable-alsoresize",{width:parseInt(c(this).width(),10),height:parseInt(c(this).height(),10),left:parseInt(c(this).css("left"),10),top:parseInt(c(this).css("top"),10)})})};if(typeof(g.alsoResize)=="object"&&!g.alsoResize.parentNode){if(g.alsoResize.length){g.alsoResize=g.alsoResize[0];_store(g.alsoResize)}else{c.each(g.alsoResize,function(h,i){_store(h)})}}else{_store(g.alsoResize)}},resize:function(f,h){var e=c(this).data("resizable"),i=e.options,g=e.originalSize,k=e.originalPosition;var j={height:(e.size.height-g.height)||0,width:(e.size.width-g.width)||0,top:(e.position.top-k.top)||0,left:(e.position.left-k.left)||0},d=function(l,m){c(l).each(function(){var p=c(this),q=c(this).data("resizable-alsoresize"),o={},n=m&&m.length?m:["width","height","top","left"];c.each(n||["width","height","top","left"],function(r,t){var s=(q[t]||0)+(j[t]||0);if(s&&s>=0){o[t]=s||null}});if(/relative/.test(p.css("position"))&&c.browser.opera){e._revertToRelativePosition=true;p.css({position:"absolute",top:"auto",left:"auto"})}p.css(o)})};if(typeof(i.alsoResize)=="object"&&!i.alsoResize.nodeType){c.each(i.alsoResize,function(l,m){d(l,m)})}else{d(i.alsoResize)}},stop:function(e,f){var d=c(this).data("resizable");if(d._revertToRelativePosition&&c.browser.opera){d._revertToRelativePosition=false;el.css({position:"relative"})}c(this).removeData("resizable-alsoresize-start")}});c.ui.plugin.add("resizable","animate",{stop:function(h,m){var n=c(this).data("resizable"),i=n.options;var g=n._proportionallyResizeElements,d=g.length&&(/textarea/i).test(g[0].nodeName),e=d&&c.ui.hasScroll(g[0],"left")?0:n.sizeDiff.height,k=d?0:n.sizeDiff.width;var f={width:(n.size.width-k),height:(n.size.height-e)},j=(parseInt(n.element.css("left"),10)+(n.position.left-n.originalPosition.left))||null,l=(parseInt(n.element.css("top"),10)+(n.position.top-n.originalPosition.top))||null;n.element.animate(c.extend(f,l&&j?{top:l,left:j}:{}),{duration:i.animateDuration,easing:i.animateEasing,step:function(){var o={width:parseInt(n.element.css("width"),10),height:parseInt(n.element.css("height"),10),top:parseInt(n.element.css("top"),10),left:parseInt(n.element.css("left"),10)};if(g&&g.length){c(g[0]).css({width:o.width,height:o.height})}n._updateCache(o);n._propagate("resize",h)}})}});c.ui.plugin.add("resizable","containment",{start:function(e,q){var s=c(this).data("resizable"),i=s.options,k=s.element;var f=i.containment,j=(f instanceof c)?f.get(0):(/parent/.test(f))?k.parent().get(0):f;if(!j){return}s.containerElement=c(j);if(/document/.test(f)||f==document){s.containerOffset={left:0,top:0};s.containerPosition={left:0,top:0};s.parentData={element:c(document),left:0,top:0,width:c(document).width(),height:c(document).height()||document.body.parentNode.scrollHeight}}else{var m=c(j),h=[];c(["Top","Right","Left","Bottom"]).each(function(p,o){h[p]=b(m.css("padding"+o))});s.containerOffset=m.offset();s.containerPosition=m.position();s.containerSize={height:(m.innerHeight()-h[3]),width:(m.innerWidth()-h[1])};var n=s.containerOffset,d=s.containerSize.height,l=s.containerSize.width,g=(c.ui.hasScroll(j,"left")?j.scrollWidth:l),r=(c.ui.hasScroll(j)?j.scrollHeight:d);s.parentData={element:j,left:n.left,top:n.top,width:g,height:r}}},resize:function(f,p){var s=c(this).data("resizable"),h=s.options,e=s.containerSize,n=s.containerOffset,l=s.size,m=s.position,q=s._aspectRatio||f.shiftKey,d={top:0,left:0},g=s.containerElement;if(g[0]!=document&&(/static/).test(g.css("position"))){d=n}if(m.left<(s._helper?n.left:0)){s.size.width=s.size.width+(s._helper?(s.position.left-n.left):(s.position.left-d.left));if(q){s.size.height=s.size.width/h.aspectRatio}s.position.left=h.helper?n.left:0}if(m.top<(s._helper?n.top:0)){s.size.height=s.size.height+(s._helper?(s.position.top-n.top):s.position.top);if(q){s.size.width=s.size.height*h.aspectRatio}s.position.top=s._helper?n.top:0}s.offset.left=s.parentData.left+s.position.left;s.offset.top=s.parentData.top+s.position.top;var k=Math.abs((s._helper?s.offset.left-d.left:(s.offset.left-d.left))+s.sizeDiff.width),r=Math.abs((s._helper?s.offset.top-d.top:(s.offset.top-n.top))+s.sizeDiff.height);var j=s.containerElement.get(0)==s.element.parent().get(0),i=/relative|absolute/.test(s.containerElement.css("position"));if(j&&i){k-=s.parentData.left}if(k+s.size.width>=s.parentData.width){s.size.width=s.parentData.width-k;if(q){s.size.height=s.size.width/s.aspectRatio}}if(r+s.size.height>=s.parentData.height){s.size.height=s.parentData.height-r;if(q){s.size.width=s.size.height*s.aspectRatio}}},stop:function(e,m){var p=c(this).data("resizable"),f=p.options,k=p.position,l=p.containerOffset,d=p.containerPosition,g=p.containerElement;var i=c(p.helper),q=i.offset(),n=i.outerWidth()-p.sizeDiff.width,j=i.outerHeight()-p.sizeDiff.height;if(p._helper&&!f.animate&&(/relative/).test(g.css("position"))){c(this).css({left:q.left-d.left-l.left,width:n,height:j})}if(p._helper&&!f.animate&&(/static/).test(g.css("position"))){c(this).css({left:q.left-d.left-l.left,width:n,height:j})}}});c.ui.plugin.add("resizable","ghost",{start:function(f,g){var d=c(this).data("resizable"),h=d.options,e=d.size;d.ghost=d.originalElement.clone();d.ghost.css({opacity:0.25,display:"block",position:"relative",height:e.height,width:e.width,margin:0,left:0,top:0}).addClass("ui-resizable-ghost").addClass(typeof h.ghost=="string"?h.ghost:"");d.ghost.appendTo(d.helper)},resize:function(e,f){var d=c(this).data("resizable"),g=d.options;if(d.ghost){d.ghost.css({position:"relative",height:d.size.height,width:d.size.width})}},stop:function(e,f){var d=c(this).data("resizable"),g=d.options;if(d.ghost&&d.helper){d.helper.get(0).removeChild(d.ghost.get(0))}}});c.ui.plugin.add("resizable","grid",{resize:function(d,l){var n=c(this).data("resizable"),g=n.options,j=n.size,h=n.originalSize,i=n.originalPosition,m=n.axis,k=g._aspectRatio||d.shiftKey;g.grid=typeof g.grid=="number"?[g.grid,g.grid]:g.grid;var f=Math.round((j.width-h.width)/(g.grid[0]||1))*(g.grid[0]||1),e=Math.round((j.height-h.height)/(g.grid[1]||1))*(g.grid[1]||1);if(/^(se|s|e)$/.test(m)){n.size.width=h.width+f;n.size.height=h.height+e}else{if(/^(ne)$/.test(m)){n.size.width=h.width+f;n.size.height=h.height+e;n.position.top=i.top-e}else{if(/^(sw)$/.test(m)){n.size.width=h.width+f;n.size.height=h.height+e;n.position.left=i.left-f}else{n.size.width=h.width+f;n.size.height=h.height+e;n.position.top=i.top-e;n.position.left=i.left-f}}}}});var b=function(d){return parseInt(d,10)||0};var a=function(d){return !isNaN(parseInt(d,10))}})(jQuery);;/* - * jQuery UI Selectable 1.7.2 - * - * Copyright (c) 2009 AUTHORS.txt (http://jqueryui.com/about) - * Dual licensed under the MIT (MIT-LICENSE.txt) - * and GPL (GPL-LICENSE.txt) licenses. - * - * http://docs.jquery.com/UI/Selectables - * - * Depends: - * ui.core.js - */ -(function(a){a.widget("ui.selectable",a.extend({},a.ui.mouse,{_init:function(){var b=this;this.element.addClass("ui-selectable");this.dragged=false;var c;this.refresh=function(){c=a(b.options.filter,b.element[0]);c.each(function(){var d=a(this);var e=d.offset();a.data(this,"selectable-item",{element:this,$element:d,left:e.left,top:e.top,right:e.left+d.outerWidth(),bottom:e.top+d.outerHeight(),startselected:false,selected:d.hasClass("ui-selected"),selecting:d.hasClass("ui-selecting"),unselecting:d.hasClass("ui-unselecting")})})};this.refresh();this.selectees=c.addClass("ui-selectee");this._mouseInit();this.helper=a(document.createElement("div")).css({border:"1px dotted black"}).addClass("ui-selectable-helper")},destroy:function(){this.element.removeClass("ui-selectable ui-selectable-disabled").removeData("selectable").unbind(".selectable");this._mouseDestroy()},_mouseStart:function(d){var b=this;this.opos=[d.pageX,d.pageY];if(this.options.disabled){return}var c=this.options;this.selectees=a(c.filter,this.element[0]);this._trigger("start",d);a(c.appendTo).append(this.helper);this.helper.css({"z-index":100,position:"absolute",left:d.clientX,top:d.clientY,width:0,height:0});if(c.autoRefresh){this.refresh()}this.selectees.filter(".ui-selected").each(function(){var e=a.data(this,"selectable-item");e.startselected=true;if(!d.metaKey){e.$element.removeClass("ui-selected");e.selected=false;e.$element.addClass("ui-unselecting");e.unselecting=true;b._trigger("unselecting",d,{unselecting:e.element})}});a(d.target).parents().andSelf().each(function(){var e=a.data(this,"selectable-item");if(e){e.$element.removeClass("ui-unselecting").addClass("ui-selecting");e.unselecting=false;e.selecting=true;e.selected=true;b._trigger("selecting",d,{selecting:e.element});return false}})},_mouseDrag:function(i){var c=this;this.dragged=true;if(this.options.disabled){return}var e=this.options;var d=this.opos[0],h=this.opos[1],b=i.pageX,g=i.pageY;if(d>b){var f=b;b=d;d=f}if(h>g){var f=g;g=h;h=f}this.helper.css({left:d,top:h,width:b-d,height:g-h});this.selectees.each(function(){var j=a.data(this,"selectable-item");if(!j||j.element==c.element[0]){return}var k=false;if(e.tolerance=="touch"){k=(!(j.left>b||j.rightg||j.bottomd&&j.righth&&j.bottom=0;b--){this.items[b].item.removeData("sortable-item")}},_mouseCapture:function(e,f){if(this.reverting){return false}if(this.options.disabled||this.options.type=="static"){return false}this._refreshItems(e);var d=null,c=this,b=a(e.target).parents().each(function(){if(a.data(this,"sortable-item")==c){d=a(this);return false}});if(a.data(e.target,"sortable-item")==c){d=a(e.target)}if(!d){return false}if(this.options.handle&&!f){var g=false;a(this.options.handle,d).find("*").andSelf().each(function(){if(this==e.target){g=true}});if(!g){return false}}this.currentItem=d;this._removeCurrentsFromItems();return true},_mouseStart:function(e,f,b){var g=this.options,c=this;this.currentContainer=this;this.refreshPositions();this.helper=this._createHelper(e);this._cacheHelperProportions();this._cacheMargins();this.scrollParent=this.helper.scrollParent();this.offset=this.currentItem.offset();this.offset={top:this.offset.top-this.margins.top,left:this.offset.left-this.margins.left};this.helper.css("position","absolute");this.cssPosition=this.helper.css("position");a.extend(this.offset,{click:{left:e.pageX-this.offset.left,top:e.pageY-this.offset.top},parent:this._getParentOffset(),relative:this._getRelativeOffset()});this.originalPosition=this._generatePosition(e);this.originalPageX=e.pageX;this.originalPageY=e.pageY;if(g.cursorAt){this._adjustOffsetFromHelper(g.cursorAt)}this.domPosition={prev:this.currentItem.prev()[0],parent:this.currentItem.parent()[0]};if(this.helper[0]!=this.currentItem[0]){this.currentItem.hide()}this._createPlaceholder();if(g.containment){this._setContainment()}if(g.cursor){if(a("body").css("cursor")){this._storedCursor=a("body").css("cursor")}a("body").css("cursor",g.cursor)}if(g.opacity){if(this.helper.css("opacity")){this._storedOpacity=this.helper.css("opacity")}this.helper.css("opacity",g.opacity)}if(g.zIndex){if(this.helper.css("zIndex")){this._storedZIndex=this.helper.css("zIndex")}this.helper.css("zIndex",g.zIndex)}if(this.scrollParent[0]!=document&&this.scrollParent[0].tagName!="HTML"){this.overflowOffset=this.scrollParent.offset()}this._trigger("start",e,this._uiHash());if(!this._preserveHelperProportions){this._cacheHelperProportions()}if(!b){for(var d=this.containers.length-1;d>=0;d--){this.containers[d]._trigger("activate",e,c._uiHash(this))}}if(a.ui.ddmanager){a.ui.ddmanager.current=this}if(a.ui.ddmanager&&!g.dropBehaviour){a.ui.ddmanager.prepareOffsets(this,e)}this.dragging=true;this.helper.addClass("ui-sortable-helper");this._mouseDrag(e);return true},_mouseDrag:function(f){this.position=this._generatePosition(f);this.positionAbs=this._convertPositionTo("absolute");if(!this.lastPositionAbs){this.lastPositionAbs=this.positionAbs}if(this.options.scroll){var g=this.options,b=false;if(this.scrollParent[0]!=document&&this.scrollParent[0].tagName!="HTML"){if((this.overflowOffset.top+this.scrollParent[0].offsetHeight)-f.pageY=0;d--){var e=this.items[d],c=e.item[0],h=this._intersectsWithPointer(e);if(!h){continue}if(c!=this.currentItem[0]&&this.placeholder[h==1?"next":"prev"]()[0]!=c&&!a.ui.contains(this.placeholder[0],c)&&(this.options.type=="semi-dynamic"?!a.ui.contains(this.element[0],c):true)){this.direction=h==1?"down":"up";if(this.options.tolerance=="pointer"||this._intersectsWithSides(e)){this._rearrange(f,e)}else{break}this._trigger("change",f,this._uiHash());break}}this._contactContainers(f);if(a.ui.ddmanager){a.ui.ddmanager.drag(this,f)}this._trigger("sort",f,this._uiHash());this.lastPositionAbs=this.positionAbs;return false},_mouseStop:function(c,d){if(!c){return}if(a.ui.ddmanager&&!this.options.dropBehaviour){a.ui.ddmanager.drop(this,c)}if(this.options.revert){var b=this;var e=b.placeholder.offset();b.reverting=true;a(this.helper).animate({left:e.left-this.offset.parent.left-b.margins.left+(this.offsetParent[0]==document.body?0:this.offsetParent[0].scrollLeft),top:e.top-this.offset.parent.top-b.margins.top+(this.offsetParent[0]==document.body?0:this.offsetParent[0].scrollTop)},parseInt(this.options.revert,10)||500,function(){b._clear(c)})}else{this._clear(c,d)}return false},cancel:function(){var b=this;if(this.dragging){this._mouseUp();if(this.options.helper=="original"){this.currentItem.css(this._storedCSS).removeClass("ui-sortable-helper")}else{this.currentItem.show()}for(var c=this.containers.length-1;c>=0;c--){this.containers[c]._trigger("deactivate",null,b._uiHash(this));if(this.containers[c].containerCache.over){this.containers[c]._trigger("out",null,b._uiHash(this));this.containers[c].containerCache.over=0}}}if(this.placeholder[0].parentNode){this.placeholder[0].parentNode.removeChild(this.placeholder[0])}if(this.options.helper!="original"&&this.helper&&this.helper[0].parentNode){this.helper.remove()}a.extend(this,{helper:null,dragging:false,reverting:false,_noFinalSort:null});if(this.domPosition.prev){a(this.domPosition.prev).after(this.currentItem)}else{a(this.domPosition.parent).prepend(this.currentItem)}return true},serialize:function(d){var b=this._getItemsAsjQuery(d&&d.connected);var c=[];d=d||{};a(b).each(function(){var e=(a(d.item||this).attr(d.attribute||"id")||"").match(d.expression||(/(.+)[-=_](.+)/));if(e){c.push((d.key||e[1]+"[]")+"="+(d.key&&d.expression?e[1]:e[2]))}});return c.join("&")},toArray:function(d){var b=this._getItemsAsjQuery(d&&d.connected);var c=[];d=d||{};b.each(function(){c.push(a(d.item||this).attr(d.attribute||"id")||"")});return c},_intersectsWith:function(m){var e=this.positionAbs.left,d=e+this.helperProportions.width,k=this.positionAbs.top,j=k+this.helperProportions.height;var f=m.left,c=f+m.width,n=m.top,i=n+m.height;var o=this.offset.click.top,h=this.offset.click.left;var g=(k+o)>n&&(k+o)f&&(e+h)m[this.floating?"width":"height"])){return g}else{return(f0?"down":"up")},_getDragHorizontalDirection:function(){var b=this.positionAbs.left-this.lastPositionAbs.left;return b!=0&&(b>0?"right":"left")},refresh:function(b){this._refreshItems(b);this.refreshPositions()},_connectWith:function(){var b=this.options;return b.connectWith.constructor==String?[b.connectWith]:b.connectWith},_getItemsAsjQuery:function(b){var l=this;var g=[];var e=[];var h=this._connectWith();if(h&&b){for(var d=h.length-1;d>=0;d--){var k=a(h[d]);for(var c=k.length-1;c>=0;c--){var f=a.data(k[c],"sortable");if(f&&f!=this&&!f.options.disabled){e.push([a.isFunction(f.options.items)?f.options.items.call(f.element):a(f.options.items,f.element).not(".ui-sortable-helper"),f])}}}}e.push([a.isFunction(this.options.items)?this.options.items.call(this.element,null,{options:this.options,item:this.currentItem}):a(this.options.items,this.element).not(".ui-sortable-helper"),this]);for(var d=e.length-1;d>=0;d--){e[d][0].each(function(){g.push(this)})}return a(g)},_removeCurrentsFromItems:function(){var d=this.currentItem.find(":data(sortable-item)");for(var c=0;c=0;e--){var m=a(l[e]);for(var d=m.length-1;d>=0;d--){var g=a.data(m[d],"sortable");if(g&&g!=this&&!g.options.disabled){f.push([a.isFunction(g.options.items)?g.options.items.call(g.element[0],b,{item:this.currentItem}):a(g.options.items,g.element),g]);this.containers.push(g)}}}}for(var e=f.length-1;e>=0;e--){var k=f[e][1];var c=f[e][0];for(var d=0,n=c.length;d=0;d--){var e=this.items[d];if(e.instance!=this.currentContainer&&this.currentContainer&&e.item[0]!=this.currentItem[0]){continue}var c=this.options.toleranceElement?a(this.options.toleranceElement,e.item):e.item;if(!b){e.width=c.outerWidth();e.height=c.outerHeight()}var f=c.offset();e.left=f.left;e.top=f.top}if(this.options.custom&&this.options.custom.refreshContainers){this.options.custom.refreshContainers.call(this)}else{for(var d=this.containers.length-1;d>=0;d--){var f=this.containers[d].element.offset();this.containers[d].containerCache.left=f.left;this.containers[d].containerCache.top=f.top;this.containers[d].containerCache.width=this.containers[d].element.outerWidth();this.containers[d].containerCache.height=this.containers[d].element.outerHeight()}}},_createPlaceholder:function(d){var b=d||this,e=b.options;if(!e.placeholder||e.placeholder.constructor==String){var c=e.placeholder;e.placeholder={element:function(){var f=a(document.createElement(b.currentItem[0].nodeName)).addClass(c||b.currentItem[0].className+" ui-sortable-placeholder").removeClass("ui-sortable-helper")[0];if(!c){f.style.visibility="hidden"}return f},update:function(f,g){if(c&&!e.forcePlaceholderSize){return}if(!g.height()){g.height(b.currentItem.innerHeight()-parseInt(b.currentItem.css("paddingTop")||0,10)-parseInt(b.currentItem.css("paddingBottom")||0,10))}if(!g.width()){g.width(b.currentItem.innerWidth()-parseInt(b.currentItem.css("paddingLeft")||0,10)-parseInt(b.currentItem.css("paddingRight")||0,10))}}}}b.placeholder=a(e.placeholder.element.call(b.element,b.currentItem));b.currentItem.after(b.placeholder);e.placeholder.update(b,b.placeholder)},_contactContainers:function(d){for(var c=this.containers.length-1;c>=0;c--){if(this._intersectsWith(this.containers[c].containerCache)){if(!this.containers[c].containerCache.over){if(this.currentContainer!=this.containers[c]){var h=10000;var g=null;var e=this.positionAbs[this.containers[c].floating?"left":"top"];for(var b=this.items.length-1;b>=0;b--){if(!a.ui.contains(this.containers[c].element[0],this.items[b].item[0])){continue}var f=this.items[b][this.containers[c].floating?"left":"top"];if(Math.abs(f-e)this.containment[2]){d=this.containment[2]+this.offset.click.left}if(e.pageY-this.offset.click.top>this.containment[3]){c=this.containment[3]+this.offset.click.top}}if(h.grid){var g=this.originalPageY+Math.round((c-this.originalPageY)/h.grid[1])*h.grid[1];c=this.containment?(!(g-this.offset.click.topthis.containment[3])?g:(!(g-this.offset.click.topthis.containment[2])?f:(!(f-this.offset.click.left=0;c--){if(a.ui.contains(this.containers[c].element[0],this.currentItem[0])&&!e){f.push((function(g){return function(h){g._trigger("receive",h,this._uiHash(this))}}).call(this,this.containers[c]));f.push((function(g){return function(h){g._trigger("update",h,this._uiHash(this))}}).call(this,this.containers[c]))}}}for(var c=this.containers.length-1;c>=0;c--){if(!e){f.push((function(g){return function(h){g._trigger("deactivate",h,this._uiHash(this))}}).call(this,this.containers[c]))}if(this.containers[c].containerCache.over){f.push((function(g){return function(h){g._trigger("out",h,this._uiHash(this))}}).call(this,this.containers[c]));this.containers[c].containerCache.over=0}}if(this._storedCursor){a("body").css("cursor",this._storedCursor)}if(this._storedOpacity){this.helper.css("opacity",this._storedOpacity)}if(this._storedZIndex){this.helper.css("zIndex",this._storedZIndex=="auto"?"":this._storedZIndex)}this.dragging=false;if(this.cancelHelperRemoval){if(!e){this._trigger("beforeStop",d,this._uiHash());for(var c=0;c *",opacity:false,placeholder:false,revert:false,scroll:true,scrollSensitivity:20,scrollSpeed:20,scope:"default",tolerance:"intersect",zIndex:1000}})})(jQuery);;/* - * jQuery UI Accordion 1.7.2 - * - * Copyright (c) 2009 AUTHORS.txt (http://jqueryui.com/about) - * Dual licensed under the MIT (MIT-LICENSE.txt) - * and GPL (GPL-LICENSE.txt) licenses. - * - * http://docs.jquery.com/UI/Accordion - * - * Depends: - * ui.core.js - */ -(function(a){a.widget("ui.accordion",{_init:function(){var d=this.options,b=this;this.running=0;if(d.collapsible==a.ui.accordion.defaults.collapsible&&d.alwaysOpen!=a.ui.accordion.defaults.alwaysOpen){d.collapsible=!d.alwaysOpen}if(d.navigation){var c=this.element.find("a").filter(d.navigationFilter);if(c.length){if(c.filter(d.header).length){this.active=c}else{this.active=c.parent().parent().prev();c.addClass("ui-accordion-content-active")}}}this.element.addClass("ui-accordion ui-widget ui-helper-reset");if(this.element[0].nodeName=="UL"){this.element.children("li").addClass("ui-accordion-li-fix")}this.headers=this.element.find(d.header).addClass("ui-accordion-header ui-helper-reset ui-state-default ui-corner-all").bind("mouseenter.accordion",function(){a(this).addClass("ui-state-hover")}).bind("mouseleave.accordion",function(){a(this).removeClass("ui-state-hover")}).bind("focus.accordion",function(){a(this).addClass("ui-state-focus")}).bind("blur.accordion",function(){a(this).removeClass("ui-state-focus")});this.headers.next().addClass("ui-accordion-content ui-helper-reset ui-widget-content ui-corner-bottom");this.active=this._findActive(this.active||d.active).toggleClass("ui-state-default").toggleClass("ui-state-active").toggleClass("ui-corner-all").toggleClass("ui-corner-top");this.active.next().addClass("ui-accordion-content-active");a("").addClass("ui-icon "+d.icons.header).prependTo(this.headers);this.active.find(".ui-icon").toggleClass(d.icons.header).toggleClass(d.icons.headerSelected);if(a.browser.msie){this.element.find("a").css("zoom","1")}this.resize();this.element.attr("role","tablist");this.headers.attr("role","tab").bind("keydown",function(e){return b._keydown(e)}).next().attr("role","tabpanel");this.headers.not(this.active||"").attr("aria-expanded","false").attr("tabIndex","-1").next().hide();if(!this.active.length){this.headers.eq(0).attr("tabIndex","0")}else{this.active.attr("aria-expanded","true").attr("tabIndex","0")}if(!a.browser.safari){this.headers.find("a").attr("tabIndex","-1")}if(d.event){this.headers.bind((d.event)+".accordion",function(e){return b._clickHandler.call(b,e,this)})}},destroy:function(){var c=this.options;this.element.removeClass("ui-accordion ui-widget ui-helper-reset").removeAttr("role").unbind(".accordion").removeData("accordion");this.headers.unbind(".accordion").removeClass("ui-accordion-header ui-helper-reset ui-state-default ui-corner-all ui-state-active ui-corner-top").removeAttr("role").removeAttr("aria-expanded").removeAttr("tabindex");this.headers.find("a").removeAttr("tabindex");this.headers.children(".ui-icon").remove();var b=this.headers.next().css("display","").removeAttr("role").removeClass("ui-helper-reset ui-widget-content ui-corner-bottom ui-accordion-content ui-accordion-content-active");if(c.autoHeight||c.fillHeight){b.css("height","")}},_setData:function(b,c){if(b=="alwaysOpen"){b="collapsible";c=!c}a.widget.prototype._setData.apply(this,arguments)},_keydown:function(e){var g=this.options,f=a.ui.keyCode;if(g.disabled||e.altKey||e.ctrlKey){return}var d=this.headers.length;var b=this.headers.index(e.target);var c=false;switch(e.keyCode){case f.RIGHT:case f.DOWN:c=this.headers[(b+1)%d];break;case f.LEFT:case f.UP:c=this.headers[(b-1+d)%d];break;case f.SPACE:case f.ENTER:return this._clickHandler({target:e.target},e.target)}if(c){a(e.target).attr("tabIndex","-1");a(c).attr("tabIndex","0");c.focus();return false}return true},resize:function(){var e=this.options,d;if(e.fillSpace){if(a.browser.msie){var b=this.element.parent().css("overflow");this.element.parent().css("overflow","hidden")}d=this.element.parent().height();if(a.browser.msie){this.element.parent().css("overflow",b)}this.headers.each(function(){d-=a(this).outerHeight()});var c=0;this.headers.next().each(function(){c=Math.max(c,a(this).innerHeight()-a(this).height())}).height(Math.max(0,d-c)).css("overflow","auto")}else{if(e.autoHeight){d=0;this.headers.next().each(function(){d=Math.max(d,a(this).outerHeight())}).height(d)}}},activate:function(b){var c=this._findActive(b)[0];this._clickHandler({target:c},c)},_findActive:function(b){return b?typeof b=="number"?this.headers.filter(":eq("+b+")"):this.headers.not(this.headers.not(b)):b===false?a([]):this.headers.filter(":eq(0)")},_clickHandler:function(b,f){var d=this.options;if(d.disabled){return false}if(!b.target&&d.collapsible){this.active.removeClass("ui-state-active ui-corner-top").addClass("ui-state-default ui-corner-all").find(".ui-icon").removeClass(d.icons.headerSelected).addClass(d.icons.header);this.active.next().addClass("ui-accordion-content-active");var h=this.active.next(),e={options:d,newHeader:a([]),oldHeader:d.active,newContent:a([]),oldContent:h},c=(this.active=a([]));this._toggle(c,h,e);return false}var g=a(b.currentTarget||f);var i=g[0]==this.active[0];if(this.running||(!d.collapsible&&i)){return false}this.active.removeClass("ui-state-active ui-corner-top").addClass("ui-state-default ui-corner-all").find(".ui-icon").removeClass(d.icons.headerSelected).addClass(d.icons.header);this.active.next().addClass("ui-accordion-content-active");if(!i){g.removeClass("ui-state-default ui-corner-all").addClass("ui-state-active ui-corner-top").find(".ui-icon").removeClass(d.icons.header).addClass(d.icons.headerSelected);g.next().addClass("ui-accordion-content-active")}var c=g.next(),h=this.active.next(),e={options:d,newHeader:i&&d.collapsible?a([]):g,oldHeader:this.active,newContent:i&&d.collapsible?a([]):c.find("> *"),oldContent:h.find("> *")},j=this.headers.index(this.active[0])>this.headers.index(g[0]);this.active=i?a([]):g;this._toggle(c,h,e,i,j);return false},_toggle:function(b,i,g,j,k){var d=this.options,m=this;this.toShow=b;this.toHide=i;this.data=g;var c=function(){if(!m){return}return m._completed.apply(m,arguments)};this._trigger("changestart",null,this.data);this.running=i.size()===0?b.size():i.size();if(d.animated){var f={};if(d.collapsible&&j){f={toShow:a([]),toHide:i,complete:c,down:k,autoHeight:d.autoHeight||d.fillSpace}}else{f={toShow:b,toHide:i,complete:c,down:k,autoHeight:d.autoHeight||d.fillSpace}}if(!d.proxied){d.proxied=d.animated}if(!d.proxiedDuration){d.proxiedDuration=d.duration}d.animated=a.isFunction(d.proxied)?d.proxied(f):d.proxied;d.duration=a.isFunction(d.proxiedDuration)?d.proxiedDuration(f):d.proxiedDuration;var l=a.ui.accordion.animations,e=d.duration,h=d.animated;if(!l[h]){l[h]=function(n){this.slide(n,{easing:h,duration:e||700})}}l[h](f)}else{if(d.collapsible&&j){b.toggle()}else{i.hide();b.show()}c(true)}i.prev().attr("aria-expanded","false").attr("tabIndex","-1").blur();b.prev().attr("aria-expanded","true").attr("tabIndex","0").focus()},_completed:function(b){var c=this.options;this.running=b?0:--this.running;if(this.running){return}if(c.clearStyle){this.toShow.add(this.toHide).css({height:"",overflow:""})}this._trigger("change",null,this.data)}});a.extend(a.ui.accordion,{version:"1.7.2",defaults:{active:null,alwaysOpen:true,animated:"slide",autoHeight:true,clearStyle:false,collapsible:false,event:"click",fillSpace:false,header:"> li > :first-child,> :not(li):even",icons:{header:"ui-icon-triangle-1-e",headerSelected:"ui-icon-triangle-1-s"},navigation:false,navigationFilter:function(){return this.href.toLowerCase()==location.href.toLowerCase()}},animations:{slide:function(j,h){j=a.extend({easing:"swing",duration:300},j,h);if(!j.toHide.size()){j.toShow.animate({height:"show"},j);return}if(!j.toShow.size()){j.toHide.animate({height:"hide"},j);return}var c=j.toShow.css("overflow"),g,d={},f={},e=["height","paddingTop","paddingBottom"],b;var i=j.toShow;b=i[0].style.width;i.width(parseInt(i.parent().width(),10)-parseInt(i.css("paddingLeft"),10)-parseInt(i.css("paddingRight"),10)-(parseInt(i.css("borderLeftWidth"),10)||0)-(parseInt(i.css("borderRightWidth"),10)||0));a.each(e,function(k,m){f[m]="hide";var l=(""+a.css(j.toShow[0],m)).match(/^([\d+-.]+)(.*)$/);d[m]={value:l[1],unit:l[2]||"px"}});j.toShow.css({height:0,overflow:"hidden"}).show();j.toHide.filter(":hidden").each(j.complete).end().filter(":visible").animate(f,{step:function(k,l){if(l.prop=="height"){g=(l.now-l.start)/(l.end-l.start)}j.toShow[0].style[l.prop]=(g*d[l.prop].value)+d[l.prop].unit},duration:j.duration,easing:j.easing,complete:function(){if(!j.autoHeight){j.toShow.css("height","")}j.toShow.css("width",b);j.toShow.css({overflow:c});j.complete()}})},bounceslide:function(b){this.slide(b,{easing:b.down?"easeOutBounce":"swing",duration:b.down?1000:200})},easeslide:function(b){this.slide(b,{easing:"easeinout",duration:700})}}})})(jQuery);;/* - * jQuery UI Dialog 1.7.2 - * - * Copyright (c) 2009 AUTHORS.txt (http://jqueryui.com/about) - * Dual licensed under the MIT (MIT-LICENSE.txt) - * and GPL (GPL-LICENSE.txt) licenses. - * - * http://docs.jquery.com/UI/Dialog - * - * Depends: - * ui.core.js - * ui.draggable.js - * ui.resizable.js - */ -(function(c){var b={dragStart:"start.draggable",drag:"drag.draggable",dragStop:"stop.draggable",maxHeight:"maxHeight.resizable",minHeight:"minHeight.resizable",maxWidth:"maxWidth.resizable",minWidth:"minWidth.resizable",resizeStart:"start.resizable",resize:"drag.resizable",resizeStop:"stop.resizable"},a="ui-dialog ui-widget ui-widget-content ui-corner-all ";c.widget("ui.dialog",{_init:function(){this.originalTitle=this.element.attr("title");var l=this,m=this.options,j=m.title||this.originalTitle||" ",e=c.ui.dialog.getTitleId(this.element),k=(this.uiDialog=c("
")).appendTo(document.body).hide().addClass(a+m.dialogClass).css({position:"absolute",overflow:"hidden",zIndex:m.zIndex}).attr("tabIndex",-1).css("outline",0).keydown(function(n){(m.closeOnEscape&&n.keyCode&&n.keyCode==c.ui.keyCode.ESCAPE&&l.close(n))}).attr({role:"dialog","aria-labelledby":e}).mousedown(function(n){l.moveToTop(false,n)}),g=this.element.show().removeAttr("title").addClass("ui-dialog-content ui-widget-content").appendTo(k),f=(this.uiDialogTitlebar=c("
")).addClass("ui-dialog-titlebar ui-widget-header ui-corner-all ui-helper-clearfix").prependTo(k),i=c('').addClass("ui-dialog-titlebar-close ui-corner-all").attr("role","button").hover(function(){i.addClass("ui-state-hover")},function(){i.removeClass("ui-state-hover")}).focus(function(){i.addClass("ui-state-focus")}).blur(function(){i.removeClass("ui-state-focus")}).mousedown(function(n){n.stopPropagation()}).click(function(n){l.close(n);return false}).appendTo(f),h=(this.uiDialogTitlebarCloseText=c("")).addClass("ui-icon ui-icon-closethick").text(m.closeText).appendTo(i),d=c("").addClass("ui-dialog-title").attr("id",e).html(j).prependTo(f);f.find("*").add(f).disableSelection();(m.draggable&&c.fn.draggable&&this._makeDraggable());(m.resizable&&c.fn.resizable&&this._makeResizable());this._createButtons(m.buttons);this._isOpen=false;(m.bgiframe&&c.fn.bgiframe&&k.bgiframe());(m.autoOpen&&this.open())},destroy:function(){(this.overlay&&this.overlay.destroy());this.uiDialog.hide();this.element.unbind(".dialog").removeData("dialog").removeClass("ui-dialog-content ui-widget-content").hide().appendTo("body");this.uiDialog.remove();(this.originalTitle&&this.element.attr("title",this.originalTitle))},close:function(f){var d=this;if(false===d._trigger("beforeclose",f)){return}(d.overlay&&d.overlay.destroy());d.uiDialog.unbind("keypress.ui-dialog");(d.options.hide?d.uiDialog.hide(d.options.hide,function(){d._trigger("close",f)}):d.uiDialog.hide()&&d._trigger("close",f));c.ui.dialog.overlay.resize();d._isOpen=false;if(d.options.modal){var e=0;c(".ui-dialog").each(function(){if(this!=d.uiDialog[0]){e=Math.max(e,c(this).css("z-index"))}});c.ui.dialog.maxZ=e}},isOpen:function(){return this._isOpen},moveToTop:function(f,e){if((this.options.modal&&!f)||(!this.options.stack&&!this.options.modal)){return this._trigger("focus",e)}if(this.options.zIndex>c.ui.dialog.maxZ){c.ui.dialog.maxZ=this.options.zIndex}(this.overlay&&this.overlay.$el.css("z-index",c.ui.dialog.overlay.maxZ=++c.ui.dialog.maxZ));var d={scrollTop:this.element.attr("scrollTop"),scrollLeft:this.element.attr("scrollLeft")};this.uiDialog.css("z-index",++c.ui.dialog.maxZ);this.element.attr(d);this._trigger("focus",e)},open:function(){if(this._isOpen){return}var e=this.options,d=this.uiDialog;this.overlay=e.modal?new c.ui.dialog.overlay(this):null;(d.next().length&&d.appendTo("body"));this._size();this._position(e.position);d.show(e.show);this.moveToTop(true);(e.modal&&d.bind("keypress.ui-dialog",function(h){if(h.keyCode!=c.ui.keyCode.TAB){return}var g=c(":tabbable",this),i=g.filter(":first")[0],f=g.filter(":last")[0];if(h.target==f&&!h.shiftKey){setTimeout(function(){i.focus()},1)}else{if(h.target==i&&h.shiftKey){setTimeout(function(){f.focus()},1)}}}));c([]).add(d.find(".ui-dialog-content :tabbable:first")).add(d.find(".ui-dialog-buttonpane :tabbable:first")).add(d).filter(":first").focus();this._trigger("open");this._isOpen=true},_createButtons:function(g){var f=this,d=false,e=c("
").addClass("ui-dialog-buttonpane ui-widget-content ui-helper-clearfix");this.uiDialog.find(".ui-dialog-buttonpane").remove();(typeof g=="object"&&g!==null&&c.each(g,function(){return !(d=true)}));if(d){c.each(g,function(h,i){c('').addClass("ui-state-default ui-corner-all").text(h).click(function(){i.apply(f.element[0],arguments)}).hover(function(){c(this).addClass("ui-state-hover")},function(){c(this).removeClass("ui-state-hover")}).focus(function(){c(this).addClass("ui-state-focus")}).blur(function(){c(this).removeClass("ui-state-focus")}).appendTo(e)});e.appendTo(this.uiDialog)}},_makeDraggable:function(){var d=this,f=this.options,e;this.uiDialog.draggable({cancel:".ui-dialog-content",handle:".ui-dialog-titlebar",containment:"document",start:function(){e=f.height;c(this).height(c(this).height()).addClass("ui-dialog-dragging");(f.dragStart&&f.dragStart.apply(d.element[0],arguments))},drag:function(){(f.drag&&f.drag.apply(d.element[0],arguments))},stop:function(){c(this).removeClass("ui-dialog-dragging").height(e);(f.dragStop&&f.dragStop.apply(d.element[0],arguments));c.ui.dialog.overlay.resize()}})},_makeResizable:function(g){g=(g===undefined?this.options.resizable:g);var d=this,f=this.options,e=typeof g=="string"?g:"n,e,s,w,se,sw,ne,nw";this.uiDialog.resizable({cancel:".ui-dialog-content",alsoResize:this.element,maxWidth:f.maxWidth,maxHeight:f.maxHeight,minWidth:f.minWidth,minHeight:f.minHeight,start:function(){c(this).addClass("ui-dialog-resizing");(f.resizeStart&&f.resizeStart.apply(d.element[0],arguments))},resize:function(){(f.resize&&f.resize.apply(d.element[0],arguments))},handles:e,stop:function(){c(this).removeClass("ui-dialog-resizing");f.height=c(this).height();f.width=c(this).width();(f.resizeStop&&f.resizeStop.apply(d.element[0],arguments));c.ui.dialog.overlay.resize()}}).find(".ui-resizable-se").addClass("ui-icon ui-icon-grip-diagonal-se")},_position:function(i){var e=c(window),f=c(document),g=f.scrollTop(),d=f.scrollLeft(),h=g;if(c.inArray(i,["center","top","right","bottom","left"])>=0){i=[i=="right"||i=="left"?i:"center",i=="top"||i=="bottom"?i:"middle"]}if(i.constructor!=Array){i=["center","middle"]}if(i[0].constructor==Number){d+=i[0]}else{switch(i[0]){case"left":d+=0;break;case"right":d+=e.width()-this.uiDialog.outerWidth();break;default:case"center":d+=(e.width()-this.uiDialog.outerWidth())/2}}if(i[1].constructor==Number){g+=i[1]}else{switch(i[1]){case"top":g+=0;break;case"bottom":g+=e.height()-this.uiDialog.outerHeight();break;default:case"middle":g+=(e.height()-this.uiDialog.outerHeight())/2}}g=Math.max(g,h);this.uiDialog.css({top:g,left:d})},_setData:function(e,f){(b[e]&&this.uiDialog.data(b[e],f));switch(e){case"buttons":this._createButtons(f);break;case"closeText":this.uiDialogTitlebarCloseText.text(f);break;case"dialogClass":this.uiDialog.removeClass(this.options.dialogClass).addClass(a+f);break;case"draggable":(f?this._makeDraggable():this.uiDialog.draggable("destroy"));break;case"height":this.uiDialog.height(f);break;case"position":this._position(f);break;case"resizable":var d=this.uiDialog,g=this.uiDialog.is(":data(resizable)");(g&&!f&&d.resizable("destroy"));(g&&typeof f=="string"&&d.resizable("option","handles",f));(g||this._makeResizable(f));break;case"title":c(".ui-dialog-title",this.uiDialogTitlebar).html(f||" ");break;case"width":this.uiDialog.width(f);break}c.widget.prototype._setData.apply(this,arguments)},_size:function(){var e=this.options;this.element.css({height:0,minHeight:0,width:"auto"});var d=this.uiDialog.css({height:"auto",width:e.width}).height();this.element.css({minHeight:Math.max(e.minHeight-d,0),height:e.height=="auto"?"auto":Math.max(e.height-d,0)})}});c.extend(c.ui.dialog,{version:"1.7.2",defaults:{autoOpen:true,bgiframe:false,buttons:{},closeOnEscape:true,closeText:"close",dialogClass:"",draggable:true,hide:null,height:"auto",maxHeight:false,maxWidth:false,minHeight:150,minWidth:150,modal:false,position:"center",resizable:true,show:null,stack:true,title:"",width:300,zIndex:1000},getter:"isOpen",uuid:0,maxZ:0,getTitleId:function(d){return"ui-dialog-title-"+(d.attr("id")||++this.uuid)},overlay:function(d){this.$el=c.ui.dialog.overlay.create(d)}});c.extend(c.ui.dialog.overlay,{instances:[],maxZ:0,events:c.map("focus,mousedown,mouseup,keydown,keypress,click".split(","),function(d){return d+".dialog-overlay"}).join(" "),create:function(e){if(this.instances.length===0){setTimeout(function(){if(c.ui.dialog.overlay.instances.length){c(document).bind(c.ui.dialog.overlay.events,function(f){var g=c(f.target).parents(".ui-dialog").css("zIndex")||0;return(g>c.ui.dialog.overlay.maxZ)})}},1);c(document).bind("keydown.dialog-overlay",function(f){(e.options.closeOnEscape&&f.keyCode&&f.keyCode==c.ui.keyCode.ESCAPE&&e.close(f))});c(window).bind("resize.dialog-overlay",c.ui.dialog.overlay.resize)}var d=c("
").appendTo(document.body).addClass("ui-widget-overlay").css({width:this.width(),height:this.height()});(e.options.bgiframe&&c.fn.bgiframe&&d.bgiframe());this.instances.push(d);return d},destroy:function(d){this.instances.splice(c.inArray(this.instances,d),1);if(this.instances.length===0){c([document,window]).unbind(".dialog-overlay")}d.remove();var e=0;c.each(this.instances,function(){e=Math.max(e,this.css("z-index"))});this.maxZ=e},height:function(){if(c.browser.msie&&c.browser.version<7){var e=Math.max(document.documentElement.scrollHeight,document.body.scrollHeight);var d=Math.max(document.documentElement.offsetHeight,document.body.offsetHeight);if(e
");if(!c.values){c.values=[this._valueMin(),this._valueMin()]}if(c.values.length&&c.values.length!=2){c.values=[c.values[0],c.values[0]]}}else{this.range=a("
")}this.range.appendTo(this.element).addClass("ui-slider-range");if(c.range=="min"||c.range=="max"){this.range.addClass("ui-slider-range-"+c.range)}this.range.addClass("ui-widget-header")}if(a(".ui-slider-handle",this.element).length==0){a('
').appendTo(this.element).addClass("ui-slider-handle")}if(c.values&&c.values.length){while(a(".ui-slider-handle",this.element).length').appendTo(this.element).addClass("ui-slider-handle")}}this.handles=a(".ui-slider-handle",this.element).addClass("ui-state-default ui-corner-all");this.handle=this.handles.eq(0);this.handles.add(this.range).filter("a").click(function(d){d.preventDefault()}).hover(function(){if(!c.disabled){a(this).addClass("ui-state-hover")}},function(){a(this).removeClass("ui-state-hover")}).focus(function(){if(!c.disabled){a(".ui-slider .ui-state-focus").removeClass("ui-state-focus");a(this).addClass("ui-state-focus")}else{a(this).blur()}}).blur(function(){a(this).removeClass("ui-state-focus")});this.handles.each(function(d){a(this).data("index.ui-slider-handle",d)});this.handles.keydown(function(i){var f=true;var e=a(this).data("index.ui-slider-handle");if(b.options.disabled){return}switch(i.keyCode){case a.ui.keyCode.HOME:case a.ui.keyCode.END:case a.ui.keyCode.UP:case a.ui.keyCode.RIGHT:case a.ui.keyCode.DOWN:case a.ui.keyCode.LEFT:f=false;if(!b._keySliding){b._keySliding=true;a(this).addClass("ui-state-active");b._start(i,e)}break}var g,d,h=b._step();if(b.options.values&&b.options.values.length){g=d=b.values(e)}else{g=d=b.value()}switch(i.keyCode){case a.ui.keyCode.HOME:d=b._valueMin();break;case a.ui.keyCode.END:d=b._valueMax();break;case a.ui.keyCode.UP:case a.ui.keyCode.RIGHT:if(g==b._valueMax()){return}d=g+h;break;case a.ui.keyCode.DOWN:case a.ui.keyCode.LEFT:if(g==b._valueMin()){return}d=g-h;break}b._slide(i,e,d);return f}).keyup(function(e){var d=a(this).data("index.ui-slider-handle");if(b._keySliding){b._stop(e,d);b._change(e,d);b._keySliding=false;a(this).removeClass("ui-state-active")}});this._refreshValue()},destroy:function(){this.handles.remove();this.range.remove();this.element.removeClass("ui-slider ui-slider-horizontal ui-slider-vertical ui-slider-disabled ui-widget ui-widget-content ui-corner-all").removeData("slider").unbind(".slider");this._mouseDestroy()},_mouseCapture:function(d){var e=this.options;if(e.disabled){return false}this.elementSize={width:this.element.outerWidth(),height:this.element.outerHeight()};this.elementOffset=this.element.offset();var h={x:d.pageX,y:d.pageY};var j=this._normValueFromMouse(h);var c=this._valueMax()-this._valueMin()+1,f;var k=this,i;this.handles.each(function(l){var m=Math.abs(j-k.values(l));if(c>m){c=m;f=a(this);i=l}});if(e.range==true&&this.values(1)==e.min){f=a(this.handles[++i])}this._start(d,i);k._handleIndex=i;f.addClass("ui-state-active").focus();var g=f.offset();var b=!a(d.target).parents().andSelf().is(".ui-slider-handle");this._clickOffset=b?{left:0,top:0}:{left:d.pageX-g.left-(f.width()/2),top:d.pageY-g.top-(f.height()/2)-(parseInt(f.css("borderTopWidth"),10)||0)-(parseInt(f.css("borderBottomWidth"),10)||0)+(parseInt(f.css("marginTop"),10)||0)};j=this._normValueFromMouse(h);this._slide(d,i,j);return true},_mouseStart:function(b){return true},_mouseDrag:function(d){var b={x:d.pageX,y:d.pageY};var c=this._normValueFromMouse(b);this._slide(d,this._handleIndex,c);return false},_mouseStop:function(b){this.handles.removeClass("ui-state-active");this._stop(b,this._handleIndex);this._change(b,this._handleIndex);this._handleIndex=null;this._clickOffset=null;return false},_detectOrientation:function(){this.orientation=this.options.orientation=="vertical"?"vertical":"horizontal"},_normValueFromMouse:function(d){var c,h;if("horizontal"==this.orientation){c=this.elementSize.width;h=d.x-this.elementOffset.left-(this._clickOffset?this._clickOffset.left:0)}else{c=this.elementSize.height;h=d.y-this.elementOffset.top-(this._clickOffset?this._clickOffset.top:0)}var f=(h/c);if(f>1){f=1}if(f<0){f=0}if("vertical"==this.orientation){f=1-f}var e=this._valueMax()-this._valueMin(),i=f*e,b=i%this.options.step,g=this._valueMin()+i-b;if(b>(this.options.step/2)){g+=this.options.step}return parseFloat(g.toFixed(5))},_start:function(d,c){var b={handle:this.handles[c],value:this.value()};if(this.options.values&&this.options.values.length){b.value=this.values(c);b.values=this.values()}this._trigger("start",d,b)},_slide:function(f,e,d){var g=this.handles[e];if(this.options.values&&this.options.values.length){var b=this.values(e?0:1);if((this.options.values.length==2&&this.options.range===true)&&((e==0&&d>b)||(e==1&&d1){this.options.values[b]=e;this._refreshValue(c);if(!d){this._change(null,b)}}if(arguments.length){if(this.options.values&&this.options.values.length){return this._values(b)}else{return this.value()}}else{return this._values()}},_setData:function(b,d,c){a.widget.prototype._setData.apply(this,arguments);switch(b){case"disabled":if(d){this.handles.filter(".ui-state-focus").blur();this.handles.removeClass("ui-state-hover");this.handles.attr("disabled","disabled")}else{this.handles.removeAttr("disabled")}case"orientation":this._detectOrientation();this.element.removeClass("ui-slider-horizontal ui-slider-vertical").addClass("ui-slider-"+this.orientation);this._refreshValue(c);break;case"value":this._refreshValue(c);break}},_step:function(){var b=this.options.step;return b},_value:function(){var b=this.options.value;if(bthis._valueMax()){b=this._valueMax()}return b},_values:function(b){if(arguments.length){var c=this.options.values[b];if(cthis._valueMax()){c=this._valueMax()}return c}else{return this.options.values}},_valueMin:function(){var b=this.options.min;return b},_valueMax:function(){var b=this.options.max;return b},_refreshValue:function(c){var f=this.options.range,d=this.options,l=this;if(this.options.values&&this.options.values.length){var i,h;this.handles.each(function(p,n){var o=(l.values(p)-l._valueMin())/(l._valueMax()-l._valueMin())*100;var m={};m[l.orientation=="horizontal"?"left":"bottom"]=o+"%";a(this).stop(1,1)[c?"animate":"css"](m,d.animate);if(l.options.range===true){if(l.orientation=="horizontal"){(p==0)&&l.range.stop(1,1)[c?"animate":"css"]({left:o+"%"},d.animate);(p==1)&&l.range[c?"animate":"css"]({width:(o-lastValPercent)+"%"},{queue:false,duration:d.animate})}else{(p==0)&&l.range.stop(1,1)[c?"animate":"css"]({bottom:(o)+"%"},d.animate);(p==1)&&l.range[c?"animate":"css"]({height:(o-lastValPercent)+"%"},{queue:false,duration:d.animate})}}lastValPercent=o})}else{var j=this.value(),g=this._valueMin(),k=this._valueMax(),e=k!=g?(j-g)/(k-g)*100:0;var b={};b[l.orientation=="horizontal"?"left":"bottom"]=e+"%";this.handle.stop(1,1)[c?"animate":"css"](b,d.animate);(f=="min")&&(this.orientation=="horizontal")&&this.range.stop(1,1)[c?"animate":"css"]({width:e+"%"},d.animate);(f=="max")&&(this.orientation=="horizontal")&&this.range[c?"animate":"css"]({width:(100-e)+"%"},{queue:false,duration:d.animate});(f=="min")&&(this.orientation=="vertical")&&this.range.stop(1,1)[c?"animate":"css"]({height:e+"%"},d.animate);(f=="max")&&(this.orientation=="vertical")&&this.range[c?"animate":"css"]({height:(100-e)+"%"},{queue:false,duration:d.animate})}}}));a.extend(a.ui.slider,{getter:"value values",version:"1.7.2",eventPrefix:"slide",defaults:{animate:false,delay:0,distance:0,max:100,min:0,orientation:"horizontal",range:false,step:1,value:0,values:null}})})(jQuery);;/* - * jQuery UI Tabs 1.7.2 - * - * Copyright (c) 2009 AUTHORS.txt (http://jqueryui.com/about) - * Dual licensed under the MIT (MIT-LICENSE.txt) - * and GPL (GPL-LICENSE.txt) licenses. - * - * http://docs.jquery.com/UI/Tabs - * - * Depends: - * ui.core.js - */ -(function(a){a.widget("ui.tabs",{_init:function(){if(this.options.deselectable!==undefined){this.options.collapsible=this.options.deselectable}this._tabify(true)},_setData:function(b,c){if(b=="selected"){if(this.options.collapsible&&c==this.options.selected){return}this.select(c)}else{this.options[b]=c;if(b=="deselectable"){this.options.collapsible=c}this._tabify()}},_tabId:function(b){return b.title&&b.title.replace(/\s/g,"_").replace(/[^A-Za-z0-9\-_:\.]/g,"")||this.options.idPrefix+a.data(b)},_sanitizeSelector:function(b){return b.replace(/:/g,"\\:")},_cookie:function(){var b=this.cookie||(this.cookie=this.options.cookie.name||"ui-tabs-"+a.data(this.list[0]));return a.cookie.apply(null,[b].concat(a.makeArray(arguments)))},_ui:function(c,b){return{tab:c,panel:b,index:this.anchors.index(c)}},_cleanup:function(){this.lis.filter(".ui-state-processing").removeClass("ui-state-processing").find("span:data(label.tabs)").each(function(){var b=a(this);b.html(b.data("label.tabs")).removeData("label.tabs")})},_tabify:function(n){this.list=this.element.children("ul:first");this.lis=a("li:has(a[href])",this.list);this.anchors=this.lis.map(function(){return a("a",this)[0]});this.panels=a([]);var p=this,d=this.options;var c=/^#.+/;this.anchors.each(function(r,o){var q=a(o).attr("href");var s=q.split("#")[0],u;if(s&&(s===location.toString().split("#")[0]||(u=a("base")[0])&&s===u.href)){q=o.hash;o.href=q}if(c.test(q)){p.panels=p.panels.add(p._sanitizeSelector(q))}else{if(q!="#"){a.data(o,"href.tabs",q);a.data(o,"load.tabs",q.replace(/#.*$/,""));var w=p._tabId(o);o.href="#"+w;var v=a("#"+w);if(!v.length){v=a(d.panelTemplate).attr("id",w).addClass("ui-tabs-panel ui-widget-content ui-corner-bottom").insertAfter(p.panels[r-1]||p.list);v.data("destroy.tabs",true)}p.panels=p.panels.add(v)}else{d.disabled.push(r)}}});if(n){this.element.addClass("ui-tabs ui-widget ui-widget-content ui-corner-all");this.list.addClass("ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all");this.lis.addClass("ui-state-default ui-corner-top");this.panels.addClass("ui-tabs-panel ui-widget-content ui-corner-bottom");if(d.selected===undefined){if(location.hash){this.anchors.each(function(q,o){if(o.hash==location.hash){d.selected=q;return false}})}if(typeof d.selected!="number"&&d.cookie){d.selected=parseInt(p._cookie(),10)}if(typeof d.selected!="number"&&this.lis.filter(".ui-tabs-selected").length){d.selected=this.lis.index(this.lis.filter(".ui-tabs-selected"))}d.selected=d.selected||0}else{if(d.selected===null){d.selected=-1}}d.selected=((d.selected>=0&&this.anchors[d.selected])||d.selected<0)?d.selected:0;d.disabled=a.unique(d.disabled.concat(a.map(this.lis.filter(".ui-state-disabled"),function(q,o){return p.lis.index(q)}))).sort();if(a.inArray(d.selected,d.disabled)!=-1){d.disabled.splice(a.inArray(d.selected,d.disabled),1)}this.panels.addClass("ui-tabs-hide");this.lis.removeClass("ui-tabs-selected ui-state-active");if(d.selected>=0&&this.anchors.length){this.panels.eq(d.selected).removeClass("ui-tabs-hide");this.lis.eq(d.selected).addClass("ui-tabs-selected ui-state-active");p.element.queue("tabs",function(){p._trigger("show",null,p._ui(p.anchors[d.selected],p.panels[d.selected]))});this.load(d.selected)}a(window).bind("unload",function(){p.lis.add(p.anchors).unbind(".tabs");p.lis=p.anchors=p.panels=null})}else{d.selected=this.lis.index(this.lis.filter(".ui-tabs-selected"))}this.element[d.collapsible?"addClass":"removeClass"]("ui-tabs-collapsible");if(d.cookie){this._cookie(d.selected,d.cookie)}for(var g=0,m;(m=this.lis[g]);g++){a(m)[a.inArray(g,d.disabled)!=-1&&!a(m).hasClass("ui-tabs-selected")?"addClass":"removeClass"]("ui-state-disabled")}if(d.cache===false){this.anchors.removeData("cache.tabs")}this.lis.add(this.anchors).unbind(".tabs");if(d.event!="mouseover"){var f=function(o,i){if(i.is(":not(.ui-state-disabled)")){i.addClass("ui-state-"+o)}};var j=function(o,i){i.removeClass("ui-state-"+o)};this.lis.bind("mouseover.tabs",function(){f("hover",a(this))});this.lis.bind("mouseout.tabs",function(){j("hover",a(this))});this.anchors.bind("focus.tabs",function(){f("focus",a(this).closest("li"))});this.anchors.bind("blur.tabs",function(){j("focus",a(this).closest("li"))})}var b,h;if(d.fx){if(a.isArray(d.fx)){b=d.fx[0];h=d.fx[1]}else{b=h=d.fx}}function e(i,o){i.css({display:""});if(a.browser.msie&&o.opacity){i[0].style.removeAttribute("filter")}}var k=h?function(i,o){a(i).closest("li").removeClass("ui-state-default").addClass("ui-tabs-selected ui-state-active");o.hide().removeClass("ui-tabs-hide").animate(h,h.duration||"normal",function(){e(o,h);p._trigger("show",null,p._ui(i,o[0]))})}:function(i,o){a(i).closest("li").removeClass("ui-state-default").addClass("ui-tabs-selected ui-state-active");o.removeClass("ui-tabs-hide");p._trigger("show",null,p._ui(i,o[0]))};var l=b?function(o,i){i.animate(b,b.duration||"normal",function(){p.lis.removeClass("ui-tabs-selected ui-state-active").addClass("ui-state-default");i.addClass("ui-tabs-hide");e(i,b);p.element.dequeue("tabs")})}:function(o,i,q){p.lis.removeClass("ui-tabs-selected ui-state-active").addClass("ui-state-default");i.addClass("ui-tabs-hide");p.element.dequeue("tabs")};this.anchors.bind(d.event+".tabs",function(){var o=this,r=a(this).closest("li"),i=p.panels.filter(":not(.ui-tabs-hide)"),q=a(p._sanitizeSelector(this.hash));if((r.hasClass("ui-tabs-selected")&&!d.collapsible)||r.hasClass("ui-state-disabled")||r.hasClass("ui-state-processing")||p._trigger("select",null,p._ui(this,q[0]))===false){this.blur();return false}d.selected=p.anchors.index(this);p.abort();if(d.collapsible){if(r.hasClass("ui-tabs-selected")){d.selected=-1;if(d.cookie){p._cookie(d.selected,d.cookie)}p.element.queue("tabs",function(){l(o,i)}).dequeue("tabs");this.blur();return false}else{if(!i.length){if(d.cookie){p._cookie(d.selected,d.cookie)}p.element.queue("tabs",function(){k(o,q)});p.load(p.anchors.index(this));this.blur();return false}}}if(d.cookie){p._cookie(d.selected,d.cookie)}if(q.length){if(i.length){p.element.queue("tabs",function(){l(o,i)})}p.element.queue("tabs",function(){k(o,q)});p.load(p.anchors.index(this))}else{throw"jQuery UI Tabs: Mismatching fragment identifier."}if(a.browser.msie){this.blur()}});this.anchors.bind("click.tabs",function(){return false})},destroy:function(){var b=this.options;this.abort();this.element.unbind(".tabs").removeClass("ui-tabs ui-widget ui-widget-content ui-corner-all ui-tabs-collapsible").removeData("tabs");this.list.removeClass("ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all");this.anchors.each(function(){var c=a.data(this,"href.tabs");if(c){this.href=c}var d=a(this).unbind(".tabs");a.each(["href","load","cache"],function(e,f){d.removeData(f+".tabs")})});this.lis.unbind(".tabs").add(this.panels).each(function(){if(a.data(this,"destroy.tabs")){a(this).remove()}else{a(this).removeClass(["ui-state-default","ui-corner-top","ui-tabs-selected","ui-state-active","ui-state-hover","ui-state-focus","ui-state-disabled","ui-tabs-panel","ui-widget-content","ui-corner-bottom","ui-tabs-hide"].join(" "))}});if(b.cookie){this._cookie(null,b.cookie)}},add:function(e,d,c){if(c===undefined){c=this.anchors.length}var b=this,g=this.options,i=a(g.tabTemplate.replace(/#\{href\}/g,e).replace(/#\{label\}/g,d)),h=!e.indexOf("#")?e.replace("#",""):this._tabId(a("a",i)[0]);i.addClass("ui-state-default ui-corner-top").data("destroy.tabs",true);var f=a("#"+h);if(!f.length){f=a(g.panelTemplate).attr("id",h).data("destroy.tabs",true)}f.addClass("ui-tabs-panel ui-widget-content ui-corner-bottom ui-tabs-hide");if(c>=this.lis.length){i.appendTo(this.list);f.appendTo(this.list[0].parentNode)}else{i.insertBefore(this.lis[c]);f.insertBefore(this.panels[c])}g.disabled=a.map(g.disabled,function(k,j){return k>=c?++k:k});this._tabify();if(this.anchors.length==1){i.addClass("ui-tabs-selected ui-state-active");f.removeClass("ui-tabs-hide");this.element.queue("tabs",function(){b._trigger("show",null,b._ui(b.anchors[0],b.panels[0]))});this.load(0)}this._trigger("add",null,this._ui(this.anchors[c],this.panels[c]))},remove:function(b){var d=this.options,e=this.lis.eq(b).remove(),c=this.panels.eq(b).remove();if(e.hasClass("ui-tabs-selected")&&this.anchors.length>1){this.select(b+(b+1=b?--g:g});this._tabify();this._trigger("remove",null,this._ui(e.find("a")[0],c[0]))},enable:function(b){var c=this.options;if(a.inArray(b,c.disabled)==-1){return}this.lis.eq(b).removeClass("ui-state-disabled");c.disabled=a.grep(c.disabled,function(e,d){return e!=b});this._trigger("enable",null,this._ui(this.anchors[b],this.panels[b]))},disable:function(c){var b=this,d=this.options;if(c!=d.selected){this.lis.eq(c).addClass("ui-state-disabled");d.disabled.push(c);d.disabled.sort();this._trigger("disable",null,this._ui(this.anchors[c],this.panels[c]))}},select:function(b){if(typeof b=="string"){b=this.anchors.index(this.anchors.filter("[href$="+b+"]"))}else{if(b===null){b=-1}}if(b==-1&&this.options.collapsible){b=this.options.selected}this.anchors.eq(b).trigger(this.options.event+".tabs")},load:function(e){var c=this,g=this.options,b=this.anchors.eq(e)[0],d=a.data(b,"load.tabs");this.abort();if(!d||this.element.queue("tabs").length!==0&&a.data(b,"cache.tabs")){this.element.dequeue("tabs");return}this.lis.eq(e).addClass("ui-state-processing");if(g.spinner){var f=a("span",b);f.data("label.tabs",f.html()).html(g.spinner)}this.xhr=a.ajax(a.extend({},g.ajaxOptions,{url:d,success:function(i,h){a(c._sanitizeSelector(b.hash)).html(i);c._cleanup();if(g.cache){a.data(b,"cache.tabs",true)}c._trigger("load",null,c._ui(c.anchors[e],c.panels[e]));try{g.ajaxOptions.success(i,h)}catch(j){}c.element.dequeue("tabs")}}))},abort:function(){this.element.queue([]);this.panels.stop(false,true);if(this.xhr){this.xhr.abort();delete this.xhr}this._cleanup()},url:function(c,b){this.anchors.eq(c).removeData("cache.tabs").data("load.tabs",b)},length:function(){return this.anchors.length}});a.extend(a.ui.tabs,{version:"1.7.2",getter:"length",defaults:{ajaxOptions:null,cache:false,cookie:null,collapsible:false,disabled:[],event:"click",fx:null,idPrefix:"ui-tabs-",panelTemplate:"
",spinner:"Loading…",tabTemplate:'
  • #{label}
  • '}});a.extend(a.ui.tabs.prototype,{rotation:null,rotate:function(d,f){var b=this,g=this.options;var c=b._rotate||(b._rotate=function(h){clearTimeout(b.rotation);b.rotation=setTimeout(function(){var i=g.selected;b.select(++i')}$.extend(Datepicker.prototype,{markerClassName:"hasDatepicker",log:function(){if(this.debug){console.log.apply("",arguments)}},setDefaults:function(settings){extendRemove(this._defaults,settings||{});return this},_attachDatepicker:function(target,settings){var inlineSettings=null;for(var attrName in this._defaults){var attrValue=target.getAttribute("date:"+attrName);if(attrValue){inlineSettings=inlineSettings||{};try{inlineSettings[attrName]=eval(attrValue)}catch(err){inlineSettings[attrName]=attrValue}}}var nodeName=target.nodeName.toLowerCase();var inline=(nodeName=="div"||nodeName=="span");if(!target.id){target.id="dp"+(++this.uuid)}var inst=this._newInst($(target),inline);inst.settings=$.extend({},settings||{},inlineSettings||{});if(nodeName=="input"){this._connectDatepicker(target,inst)}else{if(inline){this._inlineDatepicker(target,inst)}}},_newInst:function(target,inline){var id=target[0].id.replace(/([:\[\]\.])/g,"\\\\$1");return{id:id,input:target,selectedDay:0,selectedMonth:0,selectedYear:0,drawMonth:0,drawYear:0,inline:inline,dpDiv:(!inline?this.dpDiv:$('
    '))}},_connectDatepicker:function(target,inst){var input=$(target);inst.append=$([]);inst.trigger=$([]);if(input.hasClass(this.markerClassName)){return}var appendText=this._get(inst,"appendText");var isRTL=this._get(inst,"isRTL");if(appendText){inst.append=$(''+appendText+"");input[isRTL?"before":"after"](inst.append)}var showOn=this._get(inst,"showOn");if(showOn=="focus"||showOn=="both"){input.focus(this._showDatepicker)}if(showOn=="button"||showOn=="both"){var buttonText=this._get(inst,"buttonText");var buttonImage=this._get(inst,"buttonImage");inst.trigger=$(this._get(inst,"buttonImageOnly")?$("").addClass(this._triggerClass).attr({src:buttonImage,alt:buttonText,title:buttonText}):$('').addClass(this._triggerClass).html(buttonImage==""?buttonText:$("").attr({src:buttonImage,alt:buttonText,title:buttonText})));input[isRTL?"before":"after"](inst.trigger);inst.trigger.click(function(){if($.datepicker._datepickerShowing&&$.datepicker._lastInput==target){$.datepicker._hideDatepicker()}else{$.datepicker._showDatepicker(target)}return false})}input.addClass(this.markerClassName).keydown(this._doKeyDown).keypress(this._doKeyPress).bind("setData.datepicker",function(event,key,value){inst.settings[key]=value}).bind("getData.datepicker",function(event,key){return this._get(inst,key)});$.data(target,PROP_NAME,inst)},_inlineDatepicker:function(target,inst){var divSpan=$(target);if(divSpan.hasClass(this.markerClassName)){return}divSpan.addClass(this.markerClassName).append(inst.dpDiv).bind("setData.datepicker",function(event,key,value){inst.settings[key]=value}).bind("getData.datepicker",function(event,key){return this._get(inst,key)});$.data(target,PROP_NAME,inst);this._setDate(inst,this._getDefaultDate(inst));this._updateDatepicker(inst);this._updateAlternate(inst)},_dialogDatepicker:function(input,dateText,onSelect,settings,pos){var inst=this._dialogInst;if(!inst){var id="dp"+(++this.uuid);this._dialogInput=$('');this._dialogInput.keydown(this._doKeyDown);$("body").append(this._dialogInput);inst=this._dialogInst=this._newInst(this._dialogInput,false);inst.settings={};$.data(this._dialogInput[0],PROP_NAME,inst)}extendRemove(inst.settings,settings||{});this._dialogInput.val(dateText);this._pos=(pos?(pos.length?pos:[pos.pageX,pos.pageY]):null);if(!this._pos){var browserWidth=window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth;var browserHeight=window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight;var scrollX=document.documentElement.scrollLeft||document.body.scrollLeft;var scrollY=document.documentElement.scrollTop||document.body.scrollTop;this._pos=[(browserWidth/2)-100+scrollX,(browserHeight/2)-150+scrollY]}this._dialogInput.css("left",this._pos[0]+"px").css("top",this._pos[1]+"px");inst.settings.onSelect=onSelect;this._inDialog=true;this.dpDiv.addClass(this._dialogClass);this._showDatepicker(this._dialogInput[0]);if($.blockUI){$.blockUI(this.dpDiv)}$.data(this._dialogInput[0],PROP_NAME,inst);return this},_destroyDatepicker:function(target){var $target=$(target);var inst=$.data(target,PROP_NAME);if(!$target.hasClass(this.markerClassName)){return}var nodeName=target.nodeName.toLowerCase();$.removeData(target,PROP_NAME);if(nodeName=="input"){inst.append.remove();inst.trigger.remove();$target.removeClass(this.markerClassName).unbind("focus",this._showDatepicker).unbind("keydown",this._doKeyDown).unbind("keypress",this._doKeyPress)}else{if(nodeName=="div"||nodeName=="span"){$target.removeClass(this.markerClassName).empty()}}},_enableDatepicker:function(target){var $target=$(target);var inst=$.data(target,PROP_NAME);if(!$target.hasClass(this.markerClassName)){return}var nodeName=target.nodeName.toLowerCase();if(nodeName=="input"){target.disabled=false;inst.trigger.filter("button").each(function(){this.disabled=false}).end().filter("img").css({opacity:"1.0",cursor:""})}else{if(nodeName=="div"||nodeName=="span"){var inline=$target.children("."+this._inlineClass);inline.children().removeClass("ui-state-disabled")}}this._disabledInputs=$.map(this._disabledInputs,function(value){return(value==target?null:value)})},_disableDatepicker:function(target){var $target=$(target);var inst=$.data(target,PROP_NAME);if(!$target.hasClass(this.markerClassName)){return}var nodeName=target.nodeName.toLowerCase();if(nodeName=="input"){target.disabled=true;inst.trigger.filter("button").each(function(){this.disabled=true}).end().filter("img").css({opacity:"0.5",cursor:"default"})}else{if(nodeName=="div"||nodeName=="span"){var inline=$target.children("."+this._inlineClass);inline.children().addClass("ui-state-disabled")}}this._disabledInputs=$.map(this._disabledInputs,function(value){return(value==target?null:value)});this._disabledInputs[this._disabledInputs.length]=target},_isDisabledDatepicker:function(target){if(!target){return false}for(var i=0;i-1)}},_showDatepicker:function(input){input=input.target||input;if(input.nodeName.toLowerCase()!="input"){input=$("input",input.parentNode)[0]}if($.datepicker._isDisabledDatepicker(input)||$.datepicker._lastInput==input){return}var inst=$.datepicker._getInst(input);var beforeShow=$.datepicker._get(inst,"beforeShow");extendRemove(inst.settings,(beforeShow?beforeShow.apply(input,[input,inst]):{}));$.datepicker._hideDatepicker(null,"");$.datepicker._lastInput=input;$.datepicker._setDateFromField(inst);if($.datepicker._inDialog){input.value=""}if(!$.datepicker._pos){$.datepicker._pos=$.datepicker._findPos(input);$.datepicker._pos[1]+=input.offsetHeight}var isFixed=false;$(input).parents().each(function(){isFixed|=$(this).css("position")=="fixed";return !isFixed});if(isFixed&&$.browser.opera){$.datepicker._pos[0]-=document.documentElement.scrollLeft;$.datepicker._pos[1]-=document.documentElement.scrollTop}var offset={left:$.datepicker._pos[0],top:$.datepicker._pos[1]};$.datepicker._pos=null;inst.rangeStart=null;inst.dpDiv.css({position:"absolute",display:"block",top:"-1000px"});$.datepicker._updateDatepicker(inst);offset=$.datepicker._checkOffset(inst,offset,isFixed);inst.dpDiv.css({position:($.datepicker._inDialog&&$.blockUI?"static":(isFixed?"fixed":"absolute")),display:"none",left:offset.left+"px",top:offset.top+"px"});if(!inst.inline){var showAnim=$.datepicker._get(inst,"showAnim")||"show";var duration=$.datepicker._get(inst,"duration");var postProcess=function(){$.datepicker._datepickerShowing=true;if($.browser.msie&&parseInt($.browser.version,10)<7){$("iframe.ui-datepicker-cover").css({width:inst.dpDiv.width()+4,height:inst.dpDiv.height()+4})}};if($.effects&&$.effects[showAnim]){inst.dpDiv.show(showAnim,$.datepicker._get(inst,"showOptions"),duration,postProcess)}else{inst.dpDiv[showAnim](duration,postProcess)}if(duration==""){postProcess()}if(inst.input[0].type!="hidden"){inst.input[0].focus()}$.datepicker._curInst=inst}},_updateDatepicker:function(inst){var dims={width:inst.dpDiv.width()+4,height:inst.dpDiv.height()+4};var self=this;inst.dpDiv.empty().append(this._generateHTML(inst)).find("iframe.ui-datepicker-cover").css({width:dims.width,height:dims.height}).end().find("button, .ui-datepicker-prev, .ui-datepicker-next, .ui-datepicker-calendar td a").bind("mouseout",function(){$(this).removeClass("ui-state-hover");if(this.className.indexOf("ui-datepicker-prev")!=-1){$(this).removeClass("ui-datepicker-prev-hover")}if(this.className.indexOf("ui-datepicker-next")!=-1){$(this).removeClass("ui-datepicker-next-hover")}}).bind("mouseover",function(){if(!self._isDisabledDatepicker(inst.inline?inst.dpDiv.parent()[0]:inst.input[0])){$(this).parents(".ui-datepicker-calendar").find("a").removeClass("ui-state-hover");$(this).addClass("ui-state-hover");if(this.className.indexOf("ui-datepicker-prev")!=-1){$(this).addClass("ui-datepicker-prev-hover")}if(this.className.indexOf("ui-datepicker-next")!=-1){$(this).addClass("ui-datepicker-next-hover")}}}).end().find("."+this._dayOverClass+" a").trigger("mouseover").end();var numMonths=this._getNumberOfMonths(inst);var cols=numMonths[1];var width=17;if(cols>1){inst.dpDiv.addClass("ui-datepicker-multi-"+cols).css("width",(width*cols)+"em")}else{inst.dpDiv.removeClass("ui-datepicker-multi-2 ui-datepicker-multi-3 ui-datepicker-multi-4").width("")}inst.dpDiv[(numMonths[0]!=1||numMonths[1]!=1?"add":"remove")+"Class"]("ui-datepicker-multi");inst.dpDiv[(this._get(inst,"isRTL")?"add":"remove")+"Class"]("ui-datepicker-rtl");if(inst.input&&inst.input[0].type!="hidden"&&inst==$.datepicker._curInst){$(inst.input[0]).focus()}},_checkOffset:function(inst,offset,isFixed){var dpWidth=inst.dpDiv.outerWidth();var dpHeight=inst.dpDiv.outerHeight();var inputWidth=inst.input?inst.input.outerWidth():0;var inputHeight=inst.input?inst.input.outerHeight():0;var viewWidth=(window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth)+$(document).scrollLeft();var viewHeight=(window.innerHeight||document.documentElement.clientHeight||document.body.clientHeight)+$(document).scrollTop();offset.left-=(this._get(inst,"isRTL")?(dpWidth-inputWidth):0);offset.left-=(isFixed&&offset.left==inst.input.offset().left)?$(document).scrollLeft():0;offset.top-=(isFixed&&offset.top==(inst.input.offset().top+inputHeight))?$(document).scrollTop():0;offset.left-=(offset.left+dpWidth>viewWidth&&viewWidth>dpWidth)?Math.abs(offset.left+dpWidth-viewWidth):0;offset.top-=(offset.top+dpHeight>viewHeight&&viewHeight>dpHeight)?Math.abs(offset.top+dpHeight+inputHeight*2-viewHeight):0;return offset},_findPos:function(obj){while(obj&&(obj.type=="hidden"||obj.nodeType!=1)){obj=obj.nextSibling}var position=$(obj).offset();return[position.left,position.top]},_hideDatepicker:function(input,duration){var inst=this._curInst;if(!inst||(input&&inst!=$.data(input,PROP_NAME))){return}if(inst.stayOpen){this._selectDate("#"+inst.id,this._formatDate(inst,inst.currentDay,inst.currentMonth,inst.currentYear))}inst.stayOpen=false;if(this._datepickerShowing){duration=(duration!=null?duration:this._get(inst,"duration"));var showAnim=this._get(inst,"showAnim");var postProcess=function(){$.datepicker._tidyDialog(inst)};if(duration!=""&&$.effects&&$.effects[showAnim]){inst.dpDiv.hide(showAnim,$.datepicker._get(inst,"showOptions"),duration,postProcess)}else{inst.dpDiv[(duration==""?"hide":(showAnim=="slideDown"?"slideUp":(showAnim=="fadeIn"?"fadeOut":"hide")))](duration,postProcess)}if(duration==""){this._tidyDialog(inst)}var onClose=this._get(inst,"onClose");if(onClose){onClose.apply((inst.input?inst.input[0]:null),[(inst.input?inst.input.val():""),inst])}this._datepickerShowing=false;this._lastInput=null;if(this._inDialog){this._dialogInput.css({position:"absolute",left:"0",top:"-100px"});if($.blockUI){$.unblockUI();$("body").append(this.dpDiv)}}this._inDialog=false}this._curInst=null},_tidyDialog:function(inst){inst.dpDiv.removeClass(this._dialogClass).unbind(".ui-datepicker-calendar")},_checkExternalClick:function(event){if(!$.datepicker._curInst){return}var $target=$(event.target);if(($target.parents("#"+$.datepicker._mainDivId).length==0)&&!$target.hasClass($.datepicker.markerClassName)&&!$target.hasClass($.datepicker._triggerClass)&&$.datepicker._datepickerShowing&&!($.datepicker._inDialog&&$.blockUI)){$.datepicker._hideDatepicker(null,"")}},_adjustDate:function(id,offset,period){var target=$(id);var inst=this._getInst(target[0]);if(this._isDisabledDatepicker(target[0])){return}this._adjustInstDate(inst,offset+(period=="M"?this._get(inst,"showCurrentAtPos"):0),period);this._updateDatepicker(inst)},_gotoToday:function(id){var target=$(id);var inst=this._getInst(target[0]);if(this._get(inst,"gotoCurrent")&&inst.currentDay){inst.selectedDay=inst.currentDay;inst.drawMonth=inst.selectedMonth=inst.currentMonth;inst.drawYear=inst.selectedYear=inst.currentYear}else{var date=new Date();inst.selectedDay=date.getDate();inst.drawMonth=inst.selectedMonth=date.getMonth();inst.drawYear=inst.selectedYear=date.getFullYear()}this._notifyChange(inst);this._adjustDate(target)},_selectMonthYear:function(id,select,period){var target=$(id);var inst=this._getInst(target[0]);inst._selectingMonthYear=false;inst["selected"+(period=="M"?"Month":"Year")]=inst["draw"+(period=="M"?"Month":"Year")]=parseInt(select.options[select.selectedIndex].value,10);this._notifyChange(inst);this._adjustDate(target)},_clickMonthYear:function(id){var target=$(id);var inst=this._getInst(target[0]);if(inst.input&&inst._selectingMonthYear&&!$.browser.msie){inst.input[0].focus()}inst._selectingMonthYear=!inst._selectingMonthYear},_selectDay:function(id,month,year,td){var target=$(id);if($(td).hasClass(this._unselectableClass)||this._isDisabledDatepicker(target[0])){return}var inst=this._getInst(target[0]);inst.selectedDay=inst.currentDay=$("a",td).html();inst.selectedMonth=inst.currentMonth=month;inst.selectedYear=inst.currentYear=year;if(inst.stayOpen){inst.endDay=inst.endMonth=inst.endYear=null}this._selectDate(id,this._formatDate(inst,inst.currentDay,inst.currentMonth,inst.currentYear));if(inst.stayOpen){inst.rangeStart=this._daylightSavingAdjust(new Date(inst.currentYear,inst.currentMonth,inst.currentDay));this._updateDatepicker(inst)}},_clearDate:function(id){var target=$(id);var inst=this._getInst(target[0]);inst.stayOpen=false;inst.endDay=inst.endMonth=inst.endYear=inst.rangeStart=null;this._selectDate(target,"")},_selectDate:function(id,dateStr){var target=$(id);var inst=this._getInst(target[0]);dateStr=(dateStr!=null?dateStr:this._formatDate(inst));if(inst.input){inst.input.val(dateStr)}this._updateAlternate(inst);var onSelect=this._get(inst,"onSelect");if(onSelect){onSelect.apply((inst.input?inst.input[0]:null),[dateStr,inst])}else{if(inst.input){inst.input.trigger("change")}}if(inst.inline){this._updateDatepicker(inst)}else{if(!inst.stayOpen){this._hideDatepicker(null,this._get(inst,"duration"));this._lastInput=inst.input[0];if(typeof(inst.input[0])!="object"){inst.input[0].focus()}this._lastInput=null}}},_updateAlternate:function(inst){var altField=this._get(inst,"altField");if(altField){var altFormat=this._get(inst,"altFormat")||this._get(inst,"dateFormat");var date=this._getDate(inst);dateStr=this.formatDate(altFormat,date,this._getFormatConfig(inst));$(altField).each(function(){$(this).val(dateStr)})}},noWeekends:function(date){var day=date.getDay();return[(day>0&&day<6),""]},iso8601Week:function(date){var checkDate=new Date(date.getFullYear(),date.getMonth(),date.getDate());var firstMon=new Date(checkDate.getFullYear(),1-1,4);var firstDay=firstMon.getDay()||7;firstMon.setDate(firstMon.getDate()+1-firstDay);if(firstDay<4&&checkDatenew Date(checkDate.getFullYear(),12-1,28)){firstDay=new Date(checkDate.getFullYear()+1,1-1,4).getDay()||7;if(firstDay>4&&(checkDate.getDay()||7)0&&iValue="0"&&value.charAt(iValue)<="9"){num=num*10+parseInt(value.charAt(iValue++),10);size--}if(size==origSize){throw"Missing number at position "+iValue}return num};var getName=function(match,shortNames,longNames){var names=(lookAhead(match)?longNames:shortNames);var size=0;for(var j=0;j0&&iValue-1){month=1;day=doy;do{var dim=this._getDaysInMonth(year,month-1);if(day<=dim){break}month++;day-=dim}while(true)}var date=this._daylightSavingAdjust(new Date(year,month-1,day));if(date.getFullYear()!=year||date.getMonth()+1!=month||date.getDate()!=day){throw"Invalid date"}return date},ATOM:"yy-mm-dd",COOKIE:"D, dd M yy",ISO_8601:"yy-mm-dd",RFC_822:"D, d M y",RFC_850:"DD, dd-M-y",RFC_1036:"D, d M y",RFC_1123:"D, d M yy",RFC_2822:"D, d M yy",RSS:"D, d M y",TIMESTAMP:"@",W3C:"yy-mm-dd",formatDate:function(format,date,settings){if(!date){return""}var dayNamesShort=(settings?settings.dayNamesShort:null)||this._defaults.dayNamesShort;var dayNames=(settings?settings.dayNames:null)||this._defaults.dayNames;var monthNamesShort=(settings?settings.monthNamesShort:null)||this._defaults.monthNamesShort;var monthNames=(settings?settings.monthNames:null)||this._defaults.monthNames;var lookAhead=function(match){var matches=(iFormat+1=0;m--){doy+=this._getDaysInMonth(date.getFullYear(),m)}output+=formatNumber("o",doy,3);break;case"m":output+=formatNumber("m",date.getMonth()+1,2);break;case"M":output+=formatName("M",date.getMonth(),monthNamesShort,monthNames);break;case"y":output+=(lookAhead("y")?date.getFullYear():(date.getYear()%100<10?"0":"")+date.getYear()%100);break;case"@":output+=date.getTime();break;case"'":if(lookAhead("'")){output+="'"}else{literal=true}break;default:output+=format.charAt(iFormat)}}}}return output},_possibleChars:function(format){var chars="";var literal=false;for(var iFormat=0;iFormatmaxDate?maxDate:date);return date},_determineDate:function(date,defaultDate){var offsetNumeric=function(offset){var date=new Date();date.setDate(date.getDate()+offset);return date};var offsetString=function(offset,getDaysInMonth){var date=new Date();var year=date.getFullYear();var month=date.getMonth();var day=date.getDate();var pattern=/([+-]?[0-9]+)\s*(d|D|w|W|m|M|y|Y)?/g;var matches=pattern.exec(offset);while(matches){switch(matches[2]||"d"){case"d":case"D":day+=parseInt(matches[1],10);break;case"w":case"W":day+=parseInt(matches[1],10)*7;break;case"m":case"M":month+=parseInt(matches[1],10);day=Math.min(day,getDaysInMonth(year,month));break;case"y":case"Y":year+=parseInt(matches[1],10);day=Math.min(day,getDaysInMonth(year,month));break}matches=pattern.exec(offset)}return new Date(year,month,day)};date=(date==null?defaultDate:(typeof date=="string"?offsetString(date,this._getDaysInMonth):(typeof date=="number"?(isNaN(date)?defaultDate:offsetNumeric(date)):date)));date=(date&&date.toString()=="Invalid Date"?defaultDate:date);if(date){date.setHours(0);date.setMinutes(0);date.setSeconds(0);date.setMilliseconds(0)}return this._daylightSavingAdjust(date)},_daylightSavingAdjust:function(date){if(!date){return null}date.setHours(date.getHours()>12?date.getHours()+2:0);return date},_setDate:function(inst,date,endDate){var clear=!(date);var origMonth=inst.selectedMonth;var origYear=inst.selectedYear;date=this._determineDate(date,new Date());inst.selectedDay=inst.currentDay=date.getDate();inst.drawMonth=inst.selectedMonth=inst.currentMonth=date.getMonth();inst.drawYear=inst.selectedYear=inst.currentYear=date.getFullYear();if(origMonth!=inst.selectedMonth||origYear!=inst.selectedYear){this._notifyChange(inst)}this._adjustInstDate(inst);if(inst.input){inst.input.val(clear?"":this._formatDate(inst))}},_getDate:function(inst){var startDate=(!inst.currentYear||(inst.input&&inst.input.val()=="")?null:this._daylightSavingAdjust(new Date(inst.currentYear,inst.currentMonth,inst.currentDay)));return startDate},_generateHTML:function(inst){var today=new Date();today=this._daylightSavingAdjust(new Date(today.getFullYear(),today.getMonth(),today.getDate()));var isRTL=this._get(inst,"isRTL");var showButtonPanel=this._get(inst,"showButtonPanel");var hideIfNoPrevNext=this._get(inst,"hideIfNoPrevNext");var navigationAsDateFormat=this._get(inst,"navigationAsDateFormat");var numMonths=this._getNumberOfMonths(inst);var showCurrentAtPos=this._get(inst,"showCurrentAtPos");var stepMonths=this._get(inst,"stepMonths");var stepBigMonths=this._get(inst,"stepBigMonths");var isMultiMonth=(numMonths[0]!=1||numMonths[1]!=1);var currentDate=this._daylightSavingAdjust((!inst.currentDay?new Date(9999,9,9):new Date(inst.currentYear,inst.currentMonth,inst.currentDay)));var minDate=this._getMinMaxDate(inst,"min",true);var maxDate=this._getMinMaxDate(inst,"max");var drawMonth=inst.drawMonth-showCurrentAtPos;var drawYear=inst.drawYear;if(drawMonth<0){drawMonth+=12;drawYear--}if(maxDate){var maxDraw=this._daylightSavingAdjust(new Date(maxDate.getFullYear(),maxDate.getMonth()-numMonths[1]+1,maxDate.getDate()));maxDraw=(minDate&&maxDrawmaxDraw){drawMonth--;if(drawMonth<0){drawMonth=11;drawYear--}}}inst.drawMonth=drawMonth;inst.drawYear=drawYear;var prevText=this._get(inst,"prevText");prevText=(!navigationAsDateFormat?prevText:this.formatDate(prevText,this._daylightSavingAdjust(new Date(drawYear,drawMonth-stepMonths,1)),this._getFormatConfig(inst)));var prev=(this._canAdjustMonth(inst,-1,drawYear,drawMonth)?''+prevText+"":(hideIfNoPrevNext?"":''+prevText+""));var nextText=this._get(inst,"nextText");nextText=(!navigationAsDateFormat?nextText:this.formatDate(nextText,this._daylightSavingAdjust(new Date(drawYear,drawMonth+stepMonths,1)),this._getFormatConfig(inst)));var next=(this._canAdjustMonth(inst,+1,drawYear,drawMonth)?''+nextText+"":(hideIfNoPrevNext?"":''+nextText+""));var currentText=this._get(inst,"currentText");var gotoDate=(this._get(inst,"gotoCurrent")&&inst.currentDay?currentDate:today);currentText=(!navigationAsDateFormat?currentText:this.formatDate(currentText,gotoDate,this._getFormatConfig(inst)));var controls=(!inst.inline?'":"");var buttonPanel=(showButtonPanel)?'
    '+(isRTL?controls:"")+(this._isInRange(inst,gotoDate)?'":"")+(isRTL?"":controls)+"
    ":"";var firstDay=parseInt(this._get(inst,"firstDay"),10);firstDay=(isNaN(firstDay)?0:firstDay);var dayNames=this._get(inst,"dayNames");var dayNamesShort=this._get(inst,"dayNamesShort");var dayNamesMin=this._get(inst,"dayNamesMin");var monthNames=this._get(inst,"monthNames");var monthNamesShort=this._get(inst,"monthNamesShort");var beforeShowDay=this._get(inst,"beforeShowDay");var showOtherMonths=this._get(inst,"showOtherMonths");var calculateWeek=this._get(inst,"calculateWeek")||this.iso8601Week;var endDate=inst.endDay?this._daylightSavingAdjust(new Date(inst.endYear,inst.endMonth,inst.endDay)):currentDate;var defaultDate=this._getDefaultDate(inst);var html="";for(var row=0;row'+(/all|left/.test(cornerClass)&&row==0?(isRTL?next:prev):"")+(/all|right/.test(cornerClass)&&row==0?(isRTL?prev:next):"")+this._generateMonthYearHeader(inst,drawMonth,drawYear,minDate,maxDate,selectedDate,row>0||col>0,monthNames,monthNamesShort)+'';var thead="";for(var dow=0;dow<7;dow++){var day=(dow+firstDay)%7;thead+="=5?' class="ui-datepicker-week-end"':"")+'>'+dayNamesMin[day]+""}calender+=thead+"";var daysInMonth=this._getDaysInMonth(drawYear,drawMonth);if(drawYear==inst.selectedYear&&drawMonth==inst.selectedMonth){inst.selectedDay=Math.min(inst.selectedDay,daysInMonth)}var leadDays=(this._getFirstDayOfMonth(drawYear,drawMonth)-firstDay+7)%7;var numRows=(isMultiMonth?6:Math.ceil((leadDays+daysInMonth)/7));var printDate=this._daylightSavingAdjust(new Date(drawYear,drawMonth,1-leadDays));for(var dRow=0;dRow";var tbody="";for(var dow=0;dow<7;dow++){var daySettings=(beforeShowDay?beforeShowDay.apply((inst.input?inst.input[0]:null),[printDate]):[true,""]);var otherMonth=(printDate.getMonth()!=drawMonth);var unselectable=otherMonth||!daySettings[0]||(minDate&&printDatemaxDate);tbody+='";printDate.setDate(printDate.getDate()+1);printDate=this._daylightSavingAdjust(printDate)}calender+=tbody+""}drawMonth++;if(drawMonth>11){drawMonth=0;drawYear++}calender+="
    =currentDate.getTime()&&printDate.getTime()<=endDate.getTime()?" "+this._currentClass:"")+(printDate.getTime()==today.getTime()?" ui-datepicker-today":""))+'"'+((!otherMonth||showOtherMonths)&&daySettings[2]?' title="'+daySettings[2]+'"':"")+(unselectable?"":" onclick=\"DP_jQuery.datepicker._selectDay('#"+inst.id+"',"+drawMonth+","+drawYear+', this);return false;"')+">"+(otherMonth?(showOtherMonths?printDate.getDate():" "):(unselectable?''+printDate.getDate()+"":'=currentDate.getTime()&&printDate.getTime()<=endDate.getTime()?" ui-state-active":"")+'" href="#">'+printDate.getDate()+""))+"
    "+(isMultiMonth?""+((numMonths[0]>0&&col==numMonths[1]-1)?'
    ':""):"");group+=calender}html+=group}html+=buttonPanel+($.browser.msie&&parseInt($.browser.version,10)<7&&!inst.inline?'':"");inst._keyEvent=false;return html},_generateMonthYearHeader:function(inst,drawMonth,drawYear,minDate,maxDate,selectedDate,secondary,monthNames,monthNamesShort){minDate=(inst.rangeStart&&minDate&&selectedDate "}else{var inMinYear=(minDate&&minDate.getFullYear()==drawYear);var inMaxYear=(maxDate&&maxDate.getFullYear()==drawYear);monthHtml+='"}if(!showMonthAfterYear){html+=monthHtml+((secondary||changeMonth||changeYear)&&(!(changeMonth&&changeYear))?" ":"")}if(secondary||!changeYear){html+=''+drawYear+""}else{var years=this._get(inst,"yearRange").split(":");var year=0;var endYear=0;if(years.length!=2){year=drawYear-10;endYear=drawYear+10}else{if(years[0].charAt(0)=="+"||years[0].charAt(0)=="-"){year=drawYear+parseInt(years[0],10);endYear=drawYear+parseInt(years[1],10)}else{year=parseInt(years[0],10);endYear=parseInt(years[1],10)}}year=(minDate?Math.max(year,minDate.getFullYear()):year);endYear=(maxDate?Math.min(endYear,maxDate.getFullYear()):endYear);html+='"}if(showMonthAfterYear){html+=(secondary||changeMonth||changeYear?" ":"")+monthHtml}html+="";return html},_adjustInstDate:function(inst,offset,period){var year=inst.drawYear+(period=="Y"?offset:0);var month=inst.drawMonth+(period=="M"?offset:0);var day=Math.min(inst.selectedDay,this._getDaysInMonth(year,month))+(period=="D"?offset:0);var date=this._daylightSavingAdjust(new Date(year,month,day));var minDate=this._getMinMaxDate(inst,"min",true);var maxDate=this._getMinMaxDate(inst,"max");date=(minDate&&datemaxDate?maxDate:date);inst.selectedDay=date.getDate();inst.drawMonth=inst.selectedMonth=date.getMonth();inst.drawYear=inst.selectedYear=date.getFullYear();if(period=="M"||period=="Y"){this._notifyChange(inst)}},_notifyChange:function(inst){var onChange=this._get(inst,"onChangeMonthYear");if(onChange){onChange.apply((inst.input?inst.input[0]:null),[inst.selectedYear,inst.selectedMonth+1,inst])}},_getNumberOfMonths:function(inst){var numMonths=this._get(inst,"numberOfMonths");return(numMonths==null?[1,1]:(typeof numMonths=="number"?[1,numMonths]:numMonths))},_getMinMaxDate:function(inst,minMax,checkRange){var date=this._determineDate(this._get(inst,minMax+"Date"),null);return(!checkRange||!inst.rangeStart?date:(!date||inst.rangeStart>date?inst.rangeStart:date))},_getDaysInMonth:function(year,month){return 32-new Date(year,month,32).getDate()},_getFirstDayOfMonth:function(year,month){return new Date(year,month,1).getDay()},_canAdjustMonth:function(inst,offset,curYear,curMonth){var numMonths=this._getNumberOfMonths(inst);var date=this._daylightSavingAdjust(new Date(curYear,curMonth+(offset<0?offset:numMonths[1]),1));if(offset<0){date.setDate(this._getDaysInMonth(date.getFullYear(),date.getMonth()))}return this._isInRange(inst,date)},_isInRange:function(inst,date){var newMinDate=(!inst.rangeStart?null:this._daylightSavingAdjust(new Date(inst.selectedYear,inst.selectedMonth,inst.selectedDay)));newMinDate=(newMinDate&&inst.rangeStart=minDate)&&(!maxDate||date<=maxDate))},_getFormatConfig:function(inst){var shortYearCutoff=this._get(inst,"shortYearCutoff");shortYearCutoff=(typeof shortYearCutoff!="string"?shortYearCutoff:new Date().getFullYear()%100+parseInt(shortYearCutoff,10));return{shortYearCutoff:shortYearCutoff,dayNamesShort:this._get(inst,"dayNamesShort"),dayNames:this._get(inst,"dayNames"),monthNamesShort:this._get(inst,"monthNamesShort"),monthNames:this._get(inst,"monthNames")}},_formatDate:function(inst,day,month,year){if(!day){inst.currentDay=inst.selectedDay;inst.currentMonth=inst.selectedMonth;inst.currentYear=inst.selectedYear}var date=(day?(typeof day=="object"?day:this._daylightSavingAdjust(new Date(year,month,day))):this._daylightSavingAdjust(new Date(inst.currentYear,inst.currentMonth,inst.currentDay)));return this.formatDate(this._get(inst,"dateFormat"),date,this._getFormatConfig(inst))}});function extendRemove(target,props){$.extend(target,props);for(var name in props){if(props[name]==null||props[name]==undefined){target[name]=props[name]}}return target}function isArray(a){return(a&&(($.browser.safari&&typeof a=="object"&&a.length)||(a.constructor&&a.constructor.toString().match(/\Array\(\)/))))}$.fn.datepicker=function(options){if(!$.datepicker.initialized){$(document).mousedown($.datepicker._checkExternalClick).find("body").append($.datepicker.dpDiv);$.datepicker.initialized=true}var otherArgs=Array.prototype.slice.call(arguments,1);if(typeof options=="string"&&(options=="isDisabled"||options=="getDate")){return $.datepicker["_"+options+"Datepicker"].apply($.datepicker,[this[0]].concat(otherArgs))}if(options=="option"&&arguments.length==2&&typeof arguments[1]=="string"){return $.datepicker["_"+options+"Datepicker"].apply($.datepicker,[this[0]].concat(otherArgs))}return this.each(function(){typeof options=="string"?$.datepicker["_"+options+"Datepicker"].apply($.datepicker,[this].concat(otherArgs)):$.datepicker._attachDatepicker(this,options)})};$.datepicker=new Datepicker();$.datepicker.initialized=false;$.datepicker.uuid=new Date().getTime();$.datepicker.version="1.7.2";window.DP_jQuery=$})(jQuery);;/* - * jQuery UI Progressbar 1.7.2 - * - * Copyright (c) 2009 AUTHORS.txt (http://jqueryui.com/about) - * Dual licensed under the MIT (MIT-LICENSE.txt) - * and GPL (GPL-LICENSE.txt) licenses. - * - * http://docs.jquery.com/UI/Progressbar - * - * Depends: - * ui.core.js - */ -(function(a){a.widget("ui.progressbar",{_init:function(){this.element.addClass("ui-progressbar ui-widget ui-widget-content ui-corner-all").attr({role:"progressbar","aria-valuemin":this._valueMin(),"aria-valuemax":this._valueMax(),"aria-valuenow":this._value()});this.valueDiv=a('
    ').appendTo(this.element);this._refreshValue()},destroy:function(){this.element.removeClass("ui-progressbar ui-widget ui-widget-content ui-corner-all").removeAttr("role").removeAttr("aria-valuemin").removeAttr("aria-valuemax").removeAttr("aria-valuenow").removeData("progressbar").unbind(".progressbar");this.valueDiv.remove();a.widget.prototype.destroy.apply(this,arguments)},value:function(b){if(b===undefined){return this._value()}this._setData("value",b);return this},_setData:function(b,c){switch(b){case"value":this.options.value=c;this._refreshValue();this._trigger("change",null,{});break}a.widget.prototype._setData.apply(this,arguments)},_value:function(){var b=this.options.value;if(bthis._valueMax()){b=this._valueMax()}return b},_valueMin:function(){var b=0;return b},_valueMax:function(){var b=100;return b},_refreshValue:function(){var b=this.value();this.valueDiv[b==this._valueMax()?"addClass":"removeClass"]("ui-corner-right");this.valueDiv.width(b+"%");this.element.attr("aria-valuenow",b)}});a.extend(a.ui.progressbar,{version:"1.7.2",defaults:{value:0}})})(jQuery);;/* - * jQuery UI Effects 1.7.2 - * - * Copyright (c) 2009 AUTHORS.txt (http://jqueryui.com/about) - * Dual licensed under the MIT (MIT-LICENSE.txt) - * and GPL (GPL-LICENSE.txt) licenses. - * - * http://docs.jquery.com/UI/Effects/ - */ -jQuery.effects||(function(d){d.effects={version:"1.7.2",save:function(g,h){for(var f=0;f');var j=f.parent();if(f.css("position")=="static"){j.css({position:"relative"});f.css({position:"relative"})}else{var i=f.css("top");if(isNaN(parseInt(i,10))){i="auto"}var h=f.css("left");if(isNaN(parseInt(h,10))){h="auto"}j.css({position:f.css("position"),top:i,left:h,zIndex:f.css("z-index")}).show();f.css({position:"relative",top:0,left:0})}j.css(g);return j},removeWrapper:function(f){if(f.parent().is(".ui-effects-wrapper")){return f.parent().replaceWith(f)}return f},setTransition:function(g,i,f,h){h=h||{};d.each(i,function(k,j){unit=g.cssUnit(j);if(unit[0]>0){h[j]=unit[0]*f+unit[1]}});return h},animateClass:function(h,i,k,j){var f=(typeof k=="function"?k:(j?j:null));var g=(typeof k=="string"?k:null);return this.each(function(){var q={};var o=d(this);var p=o.attr("style")||"";if(typeof p=="object"){p=p.cssText}if(h.toggle){o.hasClass(h.toggle)?h.remove=h.toggle:h.add=h.toggle}var l=d.extend({},(document.defaultView?document.defaultView.getComputedStyle(this,null):this.currentStyle));if(h.add){o.addClass(h.add)}if(h.remove){o.removeClass(h.remove)}var m=d.extend({},(document.defaultView?document.defaultView.getComputedStyle(this,null):this.currentStyle));if(h.add){o.removeClass(h.add)}if(h.remove){o.addClass(h.remove)}for(var r in m){if(typeof m[r]!="function"&&m[r]&&r.indexOf("Moz")==-1&&r.indexOf("length")==-1&&m[r]!=l[r]&&(r.match(/color/i)||(!r.match(/color/i)&&!isNaN(parseInt(m[r],10))))&&(l.position!="static"||(l.position=="static"&&!r.match(/left|top|bottom|right/)))){q[r]=m[r]}}o.animate(q,i,g,function(){if(typeof d(this).attr("style")=="object"){d(this).attr("style")["cssText"]="";d(this).attr("style")["cssText"]=p}else{d(this).attr("style",p)}if(h.add){d(this).addClass(h.add)}if(h.remove){d(this).removeClass(h.remove)}if(f){f.apply(this,arguments)}})})}};function c(g,f){var i=g[1]&&g[1].constructor==Object?g[1]:{};if(f){i.mode=f}var h=g[1]&&g[1].constructor!=Object?g[1]:(i.duration?i.duration:g[2]);h=d.fx.off?0:typeof h==="number"?h:d.fx.speeds[h]||d.fx.speeds._default;var j=i.callback||(d.isFunction(g[1])&&g[1])||(d.isFunction(g[2])&&g[2])||(d.isFunction(g[3])&&g[3]);return[g[0],i,h,j]}d.fn.extend({_show:d.fn.show,_hide:d.fn.hide,__toggle:d.fn.toggle,_addClass:d.fn.addClass,_removeClass:d.fn.removeClass,_toggleClass:d.fn.toggleClass,effect:function(g,f,h,i){return d.effects[g]?d.effects[g].call(this,{method:g,options:f||{},duration:h,callback:i}):null},show:function(){if(!arguments[0]||(arguments[0].constructor==Number||(/(slow|normal|fast)/).test(arguments[0]))){return this._show.apply(this,arguments)}else{return this.effect.apply(this,c(arguments,"show"))}},hide:function(){if(!arguments[0]||(arguments[0].constructor==Number||(/(slow|normal|fast)/).test(arguments[0]))){return this._hide.apply(this,arguments)}else{return this.effect.apply(this,c(arguments,"hide"))}},toggle:function(){if(!arguments[0]||(arguments[0].constructor==Number||(/(slow|normal|fast)/).test(arguments[0]))||(d.isFunction(arguments[0])||typeof arguments[0]=="boolean")){return this.__toggle.apply(this,arguments)}else{return this.effect.apply(this,c(arguments,"toggle"))}},addClass:function(g,f,i,h){return f?d.effects.animateClass.apply(this,[{add:g},f,i,h]):this._addClass(g)},removeClass:function(g,f,i,h){return f?d.effects.animateClass.apply(this,[{remove:g},f,i,h]):this._removeClass(g)},toggleClass:function(g,f,i,h){return((typeof f!=="boolean")&&f)?d.effects.animateClass.apply(this,[{toggle:g},f,i,h]):this._toggleClass(g,f)},morph:function(f,h,g,j,i){return d.effects.animateClass.apply(this,[{add:h,remove:f},g,j,i])},switchClass:function(){return this.morph.apply(this,arguments)},cssUnit:function(f){var g=this.css(f),h=[];d.each(["em","px","%","pt"],function(j,k){if(g.indexOf(k)>0){h=[parseFloat(g),k]}});return h}});d.each(["backgroundColor","borderBottomColor","borderLeftColor","borderRightColor","borderTopColor","color","outlineColor"],function(g,f){d.fx.step[f]=function(h){if(h.state==0){h.start=e(h.elem,f);h.end=b(h.end)}h.elem.style[f]="rgb("+[Math.max(Math.min(parseInt((h.pos*(h.end[0]-h.start[0]))+h.start[0],10),255),0),Math.max(Math.min(parseInt((h.pos*(h.end[1]-h.start[1]))+h.start[1],10),255),0),Math.max(Math.min(parseInt((h.pos*(h.end[2]-h.start[2]))+h.start[2],10),255),0)].join(",")+")"}});function b(g){var f;if(g&&g.constructor==Array&&g.length==3){return g}if(f=/rgb\(\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*,\s*([0-9]{1,3})\s*\)/.exec(g)){return[parseInt(f[1],10),parseInt(f[2],10),parseInt(f[3],10)]}if(f=/rgb\(\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*,\s*([0-9]+(?:\.[0-9]+)?)\%\s*\)/.exec(g)){return[parseFloat(f[1])*2.55,parseFloat(f[2])*2.55,parseFloat(f[3])*2.55]}if(f=/#([a-fA-F0-9]{2})([a-fA-F0-9]{2})([a-fA-F0-9]{2})/.exec(g)){return[parseInt(f[1],16),parseInt(f[2],16),parseInt(f[3],16)]}if(f=/#([a-fA-F0-9])([a-fA-F0-9])([a-fA-F0-9])/.exec(g)){return[parseInt(f[1]+f[1],16),parseInt(f[2]+f[2],16),parseInt(f[3]+f[3],16)]}if(f=/rgba\(0, 0, 0, 0\)/.exec(g)){return a.transparent}return a[d.trim(g).toLowerCase()]}function e(h,f){var g;do{g=d.curCSS(h,f);if(g!=""&&g!="transparent"||d.nodeName(h,"body")){break}f="backgroundColor"}while(h=h.parentNode);return b(g)}var a={aqua:[0,255,255],azure:[240,255,255],beige:[245,245,220],black:[0,0,0],blue:[0,0,255],brown:[165,42,42],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgrey:[169,169,169],darkgreen:[0,100,0],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkviolet:[148,0,211],fuchsia:[255,0,255],gold:[255,215,0],green:[0,128,0],indigo:[75,0,130],khaki:[240,230,140],lightblue:[173,216,230],lightcyan:[224,255,255],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightyellow:[255,255,224],lime:[0,255,0],magenta:[255,0,255],maroon:[128,0,0],navy:[0,0,128],olive:[128,128,0],orange:[255,165,0],pink:[255,192,203],purple:[128,0,128],violet:[128,0,128],red:[255,0,0],silver:[192,192,192],white:[255,255,255],yellow:[255,255,0],transparent:[255,255,255]};d.easing.jswing=d.easing.swing;d.extend(d.easing,{def:"easeOutQuad",swing:function(g,h,f,j,i){return d.easing[d.easing.def](g,h,f,j,i)},easeInQuad:function(g,h,f,j,i){return j*(h/=i)*h+f},easeOutQuad:function(g,h,f,j,i){return -j*(h/=i)*(h-2)+f},easeInOutQuad:function(g,h,f,j,i){if((h/=i/2)<1){return j/2*h*h+f}return -j/2*((--h)*(h-2)-1)+f},easeInCubic:function(g,h,f,j,i){return j*(h/=i)*h*h+f},easeOutCubic:function(g,h,f,j,i){return j*((h=h/i-1)*h*h+1)+f},easeInOutCubic:function(g,h,f,j,i){if((h/=i/2)<1){return j/2*h*h*h+f}return j/2*((h-=2)*h*h+2)+f},easeInQuart:function(g,h,f,j,i){return j*(h/=i)*h*h*h+f},easeOutQuart:function(g,h,f,j,i){return -j*((h=h/i-1)*h*h*h-1)+f},easeInOutQuart:function(g,h,f,j,i){if((h/=i/2)<1){return j/2*h*h*h*h+f}return -j/2*((h-=2)*h*h*h-2)+f},easeInQuint:function(g,h,f,j,i){return j*(h/=i)*h*h*h*h+f},easeOutQuint:function(g,h,f,j,i){return j*((h=h/i-1)*h*h*h*h+1)+f},easeInOutQuint:function(g,h,f,j,i){if((h/=i/2)<1){return j/2*h*h*h*h*h+f}return j/2*((h-=2)*h*h*h*h+2)+f},easeInSine:function(g,h,f,j,i){return -j*Math.cos(h/i*(Math.PI/2))+j+f},easeOutSine:function(g,h,f,j,i){return j*Math.sin(h/i*(Math.PI/2))+f},easeInOutSine:function(g,h,f,j,i){return -j/2*(Math.cos(Math.PI*h/i)-1)+f},easeInExpo:function(g,h,f,j,i){return(h==0)?f:j*Math.pow(2,10*(h/i-1))+f},easeOutExpo:function(g,h,f,j,i){return(h==i)?f+j:j*(-Math.pow(2,-10*h/i)+1)+f},easeInOutExpo:function(g,h,f,j,i){if(h==0){return f}if(h==i){return f+j}if((h/=i/2)<1){return j/2*Math.pow(2,10*(h-1))+f}return j/2*(-Math.pow(2,-10*--h)+2)+f},easeInCirc:function(g,h,f,j,i){return -j*(Math.sqrt(1-(h/=i)*h)-1)+f},easeOutCirc:function(g,h,f,j,i){return j*Math.sqrt(1-(h=h/i-1)*h)+f},easeInOutCirc:function(g,h,f,j,i){if((h/=i/2)<1){return -j/2*(Math.sqrt(1-h*h)-1)+f}return j/2*(Math.sqrt(1-(h-=2)*h)+1)+f},easeInElastic:function(g,i,f,m,l){var j=1.70158;var k=0;var h=m;if(i==0){return f}if((i/=l)==1){return f+m}if(!k){k=l*0.3}if(h").css({position:"absolute",visibility:"visible",left:-d*(g/e),top:-f*(c/k)}).parent().addClass("ui-effects-explode").css({position:"absolute",overflow:"hidden",width:g/e,height:c/k,left:l.left+d*(g/e)+(b.options.mode=="show"?(d-Math.floor(e/2))*(g/e):0),top:l.top+f*(c/k)+(b.options.mode=="show"?(f-Math.floor(k/2))*(c/k):0),opacity:b.options.mode=="show"?0:1}).animate({left:l.left+d*(g/e)+(b.options.mode=="show"?0:(d-Math.floor(e/2))*(g/e)),top:l.top+f*(c/k)+(b.options.mode=="show"?0:(f-Math.floor(k/2))*(c/k)),opacity:b.options.mode=="show"?1:0},b.duration||500)}}setTimeout(function(){b.options.mode=="show"?h.css({visibility:"visible"}):h.css({visibility:"visible"}).hide();if(b.callback){b.callback.apply(h[0])}h.dequeue();a("div.ui-effects-explode").remove()},b.duration||500)})}})(jQuery);;/* - * jQuery UI Effects Fold 1.7.2 - * - * Copyright (c) 2009 AUTHORS.txt (http://jqueryui.com/about) - * Dual licensed under the MIT (MIT-LICENSE.txt) - * and GPL (GPL-LICENSE.txt) licenses. - * - * http://docs.jquery.com/UI/Effects/Fold - * - * Depends: - * effects.core.js - */ -(function(a){a.effects.fold=function(b){return this.queue(function(){var e=a(this),k=["position","top","left"];var h=a.effects.setMode(e,b.options.mode||"hide");var o=b.options.size||15;var n=!(!b.options.horizFirst);var g=b.duration?b.duration/2:a.fx.speeds._default/2;a.effects.save(e,k);e.show();var d=a.effects.createWrapper(e).css({overflow:"hidden"});var i=((h=="show")!=n);var f=i?["width","height"]:["height","width"];var c=i?[d.width(),d.height()]:[d.height(),d.width()];var j=/([0-9]+)%/.exec(o);if(j){o=parseInt(j[1],10)/100*c[h=="hide"?0:1]}if(h=="show"){d.css(n?{height:0,width:o}:{height:o,width:0})}var m={},l={};m[f[0]]=h=="show"?c[0]:o;l[f[1]]=h=="show"?c[1]:0;d.animate(m,g,b.options.easing).animate(l,g,b.options.easing,function(){if(h=="hide"){e.hide()}a.effects.restore(e,k);a.effects.removeWrapper(e);if(b.callback){b.callback.apply(e[0],arguments)}e.dequeue()})})}})(jQuery);;/* - * jQuery UI Effects Highlight 1.7.2 - * - * Copyright (c) 2009 AUTHORS.txt (http://jqueryui.com/about) - * Dual licensed under the MIT (MIT-LICENSE.txt) - * and GPL (GPL-LICENSE.txt) licenses. - * - * http://docs.jquery.com/UI/Effects/Highlight - * - * Depends: - * effects.core.js - */ -(function(a){a.effects.highlight=function(b){return this.queue(function(){var e=a(this),d=["backgroundImage","backgroundColor","opacity"];var h=a.effects.setMode(e,b.options.mode||"show");var c=b.options.color||"#ffff99";var g=e.css("backgroundColor");a.effects.save(e,d);e.show();e.css({backgroundImage:"none",backgroundColor:c});var f={backgroundColor:g};if(h=="hide"){f.opacity=0}e.animate(f,{queue:false,duration:b.duration,easing:b.options.easing,complete:function(){if(h=="hide"){e.hide()}a.effects.restore(e,d);if(h=="show"&&a.browser.msie){this.style.removeAttribute("filter")}if(b.callback){b.callback.apply(this,arguments)}e.dequeue()}})})}})(jQuery);;/* - * jQuery UI Effects Pulsate 1.7.2 - * - * Copyright (c) 2009 AUTHORS.txt (http://jqueryui.com/about) - * Dual licensed under the MIT (MIT-LICENSE.txt) - * and GPL (GPL-LICENSE.txt) licenses. - * - * http://docs.jquery.com/UI/Effects/Pulsate - * - * Depends: - * effects.core.js - */ -(function(a){a.effects.pulsate=function(b){return this.queue(function(){var d=a(this);var g=a.effects.setMode(d,b.options.mode||"show");var f=b.options.times||5;var e=b.duration?b.duration/2:a.fx.speeds._default/2;if(g=="hide"){f--}if(d.is(":hidden")){d.css("opacity",0);d.show();d.animate({opacity:1},e,b.options.easing);f=f-2}for(var c=0;c').appendTo(document.body).addClass(b.options.className).css({top:d.top,left:d.left,height:f.innerHeight(),width:f.innerWidth(),position:"absolute"}).animate(g,b.duration,b.options.easing,function(){c.remove();(b.callback&&b.callback.apply(f[0],arguments));f.dequeue()})})}})(jQuery);; \ No newline at end of file diff --git a/resources/library/applications/Calculator.wgt/js/jquery.center.js b/resources/library/applications/Calculator.wgt/js/jquery.center.js deleted file mode 100644 index 9715dba9..00000000 --- a/resources/library/applications/Calculator.wgt/js/jquery.center.js +++ /dev/null @@ -1,56 +0,0 @@ -jQuery.fn.center = function(params) { - - var options = { - - vertical: true, - horizontal: true - - } - op = jQuery.extend(options, params); - - this.each(function(){ - - //initializing variables - var $self = jQuery(this); - //get the dimensions using dimensions plugin - var width = $self.width(); - var height = $self.height(); - //get the paddings - var paddingTop = parseInt($self.css("padding-top")); - var paddingBottom = parseInt($self.css("padding-bottom")); - //get the borders - var borderTop = parseInt($self.css("border-top-width")); - var borderBottom = parseInt($self.css("border-bottom-width")); - //get the media of padding and borders - var mediaBorder = (borderTop+borderBottom)/2; - var mediaPadding = (paddingTop+paddingBottom)/2; - //get the type of positioning - var positionType = $self.parent().css("position"); - // get the half minus of width and height - var halfWidth = (width/2)*(-1); - var halfHeight = ((height/2)*(-1))-mediaPadding-mediaBorder; - // initializing the css properties - var cssProp = { - position: 'absolute' - }; - - if(op.vertical) { - cssProp.height = height; - cssProp.top = '50%'; - cssProp.marginTop = halfHeight; - } - if(op.horizontal) { - cssProp.width = width; - cssProp.left = '50%'; - cssProp.marginLeft = halfWidth; - } - //check the current position - if(positionType == 'static') { - $self.parent().css("position","relative"); - } - //aplying the css - $self.css(cssProp); - - }); - -}; \ No newline at end of file diff --git a/resources/library/applications/Calculator.wgt/js/jquery.disable.text.select.js b/resources/library/applications/Calculator.wgt/js/jquery.disable.text.select.js deleted file mode 100644 index 2e06f673..00000000 --- a/resources/library/applications/Calculator.wgt/js/jquery.disable.text.select.js +++ /dev/null @@ -1,62 +0,0 @@ -/** - * .disableTextSelect - Disable Text Select Plugin - * - * Version: 1.1 - * Updated: 2007-11-28 - * - * Used to stop users from selecting text - * - * Copyright (c) 2007 James Dempster (letssurf@gmail.com, http://www.jdempster.com/category/jquery/disabletextselect/) - * - * Dual licensed under the MIT (MIT-LICENSE.txt) - * and GPL (GPL-LICENSE.txt) licenses. - **/ - -/** - * Requirements: - * - jQuery (John Resig, http://www.jquery.com/) - **/ -(function($) { - if ($.browser.mozilla) { - $.fn.disableTextSelect = function() { - return this.each(function() { - $(this).css({ - 'MozUserSelect' : 'none' - }); - }); - }; - $.fn.enableTextSelect = function() { - return this.each(function() { - $(this).css({ - 'MozUserSelect' : '' - }); - }); - }; - } else if ($.browser.msie) { - $.fn.disableTextSelect = function() { - return this.each(function() { - $(this).bind('selectstart.disableTextSelect', function() { - return false; - }); - }); - }; - $.fn.enableTextSelect = function() { - return this.each(function() { - $(this).unbind('selectstart.disableTextSelect'); - }); - }; - } else { - $.fn.disableTextSelect = function() { - return this.each(function() { - $(this).bind('mousedown.disableTextSelect', function() { - return false; - }); - }); - }; - $.fn.enableTextSelect = function() { - return this.each(function() { - $(this).unbind('mousedown.disableTextSelect'); - }); - }; - } -})(jQuery); \ No newline at end of file diff --git a/resources/library/applications/Calculator.wgt/js/jquery.easing.1.2.js b/resources/library/applications/Calculator.wgt/js/jquery.easing.1.2.js deleted file mode 100644 index 749b2d56..00000000 --- a/resources/library/applications/Calculator.wgt/js/jquery.easing.1.2.js +++ /dev/null @@ -1,140 +0,0 @@ -/* - * jQuery EasIng v1.1.2 - http://gsgd.co.uk/sandbox/jquery.easIng.php - * - * Uses the built In easIng capabilities added In jQuery 1.1 - * to offer multiple easIng options - * - * Copyright (c) 2007 George Smith - * Licensed under the MIT License: - * http://www.opensource.org/licenses/mit-license.php - */ - -// t: current time, b: begInnIng value, c: change In value, d: duration - -jQuery.extend( jQuery.easing, -{ - easeInQuad: function (x, t, b, c, d) { - return c*(t/=d)*t + b; - }, - easeOutQuad: function (x, t, b, c, d) { - return -c *(t/=d)*(t-2) + b; - }, - easeInOutQuad: function (x, t, b, c, d) { - if ((t/=d/2) < 1) return c/2*t*t + b; - return -c/2 * ((--t)*(t-2) - 1) + b; - }, - easeInCubic: function (x, t, b, c, d) { - return c*(t/=d)*t*t + b; - }, - easeOutCubic: function (x, t, b, c, d) { - return c*((t=t/d-1)*t*t + 1) + b; - }, - easeInOutCubic: function (x, t, b, c, d) { - if ((t/=d/2) < 1) return c/2*t*t*t + b; - return c/2*((t-=2)*t*t + 2) + b; - }, - easeInQuart: function (x, t, b, c, d) { - return c*(t/=d)*t*t*t + b; - }, - easeOutQuart: function (x, t, b, c, d) { - return -c * ((t=t/d-1)*t*t*t - 1) + b; - }, - easeInOutQuart: function (x, t, b, c, d) { - if ((t/=d/2) < 1) return c/2*t*t*t*t + b; - return -c/2 * ((t-=2)*t*t*t - 2) + b; - }, - easeInQuint: function (x, t, b, c, d) { - return c*(t/=d)*t*t*t*t + b; - }, - easeOutQuint: function (x, t, b, c, d) { - return c*((t=t/d-1)*t*t*t*t + 1) + b; - }, - easeInOutQuint: function (x, t, b, c, d) { - if ((t/=d/2) < 1) return c/2*t*t*t*t*t + b; - return c/2*((t-=2)*t*t*t*t + 2) + b; - }, - easeInSine: function (x, t, b, c, d) { - return -c * Math.cos(t/d * (Math.PI/2)) + c + b; - }, - easeOutSine: function (x, t, b, c, d) { - return c * Math.sin(t/d * (Math.PI/2)) + b; - }, - easeInOutSine: function (x, t, b, c, d) { - return -c/2 * (Math.cos(Math.PI*t/d) - 1) + b; - }, - easeInExpo: function (x, t, b, c, d) { - return (t==0) ? b : c * Math.pow(2, 10 * (t/d - 1)) + b; - }, - easeOutExpo: function (x, t, b, c, d) { - return (t==d) ? b+c : c * (-Math.pow(2, -10 * t/d) + 1) + b; - }, - easeInOutExpo: function (x, t, b, c, d) { - if (t==0) return b; - if (t==d) return b+c; - if ((t/=d/2) < 1) return c/2 * Math.pow(2, 10 * (t - 1)) + b; - return c/2 * (-Math.pow(2, -10 * --t) + 2) + b; - }, - easeInCirc: function (x, t, b, c, d) { - return -c * (Math.sqrt(1 - (t/=d)*t) - 1) + b; - }, - easeOutCirc: function (x, t, b, c, d) { - return c * Math.sqrt(1 - (t=t/d-1)*t) + b; - }, - easeInOutCirc: function (x, t, b, c, d) { - if ((t/=d/2) < 1) return -c/2 * (Math.sqrt(1 - t*t) - 1) + b; - return c/2 * (Math.sqrt(1 - (t-=2)*t) + 1) + b; - }, - easeInElastic: function (x, t, b, c, d) { - var s=1.70158;var p=0;var a=c; - if (t==0) return b; if ((t/=d)==1) return b+c; if (!p) p=d*.3; - if (a < Math.abs(c)) { a=c; var s=p/4; } - else var s = p/(2*Math.PI) * Math.asin (c/a); - return -(a*Math.pow(2,10*(t-=1)) * Math.sin( (t*d-s)*(2*Math.PI)/p )) + b; - }, - easeOutElastic: function (x, t, b, c, d) { - var s=1.70158;var p=0;var a=c; - if (t==0) return b; if ((t/=d)==1) return b+c; if (!p) p=d*.3; - if (a < Math.abs(c)) { a=c; var s=p/4; } - else var s = p/(2*Math.PI) * Math.asin (c/a); - return a*Math.pow(2,-10*t) * Math.sin( (t*d-s)*(2*Math.PI)/p ) + c + b; - }, - easeInOutElastic: function (x, t, b, c, d) { - var s=1.70158;var p=0;var a=c; - if (t==0) return b; if ((t/=d/2)==2) return b+c; if (!p) p=d*(.3*1.5); - if (a < Math.abs(c)) { a=c; var s=p/4; } - else var s = p/(2*Math.PI) * Math.asin (c/a); - if (t < 1) return -.5*(a*Math.pow(2,10*(t-=1)) * Math.sin( (t*d-s)*(2*Math.PI)/p )) + b; - return a*Math.pow(2,-10*(t-=1)) * Math.sin( (t*d-s)*(2*Math.PI)/p )*.5 + c + b; - }, - easeInBack: function (x, t, b, c, d, s) { - if (s == undefined) s = 1.70158; - return c*(t/=d)*t*((s+1)*t - s) + b; - }, - easeOutBack: function (x, t, b, c, d, s) { - if (s == undefined) s = 1.70158; - return c*((t=t/d-1)*t*((s+1)*t + s) + 1) + b; - }, - easeInOutBack: function (x, t, b, c, d, s) { - if (s == undefined) s = 1.70158; - if ((t/=d/2) < 1) return c/2*(t*t*(((s*=(1.525))+1)*t - s)) + b; - return c/2*((t-=2)*t*(((s*=(1.525))+1)*t + s) + 2) + b; - }, - easeInBounce: function (x, t, b, c, d) { - return c - jQuery.easing.easeOutBounce (x, d-t, 0, c, d) + b; - }, - easeOutBounce: function (x, t, b, c, d) { - if ((t/=d) < (1/2.75)) { - return c*(7.5625*t*t) + b; - } else if (t < (2/2.75)) { - return c*(7.5625*(t-=(1.5/2.75))*t + .75) + b; - } else if (t < (2.5/2.75)) { - return c*(7.5625*(t-=(2.25/2.75))*t + .9375) + b; - } else { - return c*(7.5625*(t-=(2.625/2.75))*t + .984375) + b; - } - }, - easeInOutBounce: function (x, t, b, c, d) { - if (t < d/2) return jQuery.easing.easeInBounce (x, t*2, 0, c, d) * .5 + b; - return jQuery.easing.easeOutBounce (x, t*2-d, 0, c, d) * .5 + c*.5 + b; - } -}); \ No newline at end of file diff --git a/resources/library/applications/Calculator.wgt/js/jquery.ubwidget.js b/resources/library/applications/Calculator.wgt/js/jquery.ubwidget.js deleted file mode 100644 index b4fd2abb..00000000 --- a/resources/library/applications/Calculator.wgt/js/jquery.ubwidget.js +++ /dev/null @@ -1,259 +0,0 @@ -(function($) { - jQuery.fn.ubwidget = function(options) { - var settings = jQuery.extend({}, jQuery.fn.ubwidget.defaults, options); - - DD_roundies.addRule('.ubw-standard-corners', '5px', true); - DD_roundies.addRule('.ubw-button-corners', '4px', true); - DD_roundies.addRule('.ubw-i-corners', '4px', true); - - $(window) - .bind("blur", function(event){ - }) - .trigger("focus"); - - return this.each(function() { - var ubwbody = $(this) - .addClass("ubw-body"); - - var ubwcontainer = $("
    ") - .append(ubwbody) - .addClass("ubw-container") - .css({ - width:settings.width, - height:settings.height - }) - .disableTextSelect(); - - $('body').append(ubwcontainer); - }); - }; - - // Default options - - jQuery.fn.ubwidget.defaults = { - width:200, - height:250 - }; - - // Shadows - - jQuery.fn.ubwshadows = function(settings){ - - var shadow = $("
    ") - .addClass("ubw-standard-corners") - .css({ - backgroundColor:"#333377", - opacity:".1", - filter: "alpha(opacity = 10)", - position:"absolute", - top:settings.t, - left:settings.l, - width:settings.w, - height:settings.h - }); - - $(this).before(shadow); - }; - - jQuery.fn.ubwbutton = function(size, arrows) { - var arrows = typeof(arrows) != "undefined" ? arrows = arrows : arrows = {top:0, right:0, bottom:0, left:0}; - var button = null; - var scale = 0.20; - var url = ""; - var buttonbody; - - - return this.each(function() { - button = $(this) - .addClass("ubw-button-wrapper") - .css({zIndex:0}); - - url = $(this).find("img").attr("src"); - url = url.split("."); - - var buttonContent = $("
    ") - .addClass("ubw-button-content"); - buttonContent.find("td").html($(this).html()); - $(this).empty(); - - var buttonCanvas = $("
    ") - .addClass("ubw-button-canvas") - .appendTo(button) - .html('
    '); - - if(arrows.top)buttonCanvas.find(".ubw-button-arrowTop").children("img").css({visibility:"visible"}); - if(arrows.right)buttonCanvas.find(".ubw-button-arrowRight").children("img").css({visibility:"visible"}); - if(arrows.bottom)buttonCanvas.find(".ubw-button-arrowBottom").children("img").css({visibility:"visible"}); - if(arrows.left)buttonCanvas.find(".ubw-button-arrowLeft").children("img").css({visibility:"visible"}); - - var buttonBody = buttonCanvas.find(".ubw-button-body") - .addClass("ubw-button-out") - .append(buttonContent) - .bind("mouseenter", buttonOverHandler) - .bind("mouseleave", buttonOutHandler) - .bind("mousedown", buttonDownHandler) - .bind("mouseup", buttonUpHandler) - .css({ - width:size.w, - height:size.h - }); - - button.width(size.w+9).height(size.h+2); - buttonbody = buttonBody.find(".ubw-button-content"); - }); - - - function buttonOverHandler(e) { - buttonbody.find("img").attr("src", url[0]+"_over.png"); - - button.css({ - zIndex:1 - }); - }; - - function buttonOutHandler(e){ - buttonbody.find("img").attr("src", url[0]+".png"); - - button.css({ - zIndex:0 - }); - }; - - function buttonDownHandler(e){ - buttonbody.find("img").attr("src", url[0]+"_over_down.png"); - }; - - function buttonUpHandler(e){ - url[0] = url[0].replace("_down", ""); - buttonbody.find("img").attr("src", url[0]+"_over.png"); - }; - - }; - - jQuery.fn.ubwtoggle = function(activated, _firstFunc, _secondFunc) { - var activated = typeof(activated) != "undefined" ? activated = 1 : activated = 0; - - return this.each(function(){ - var button = $(this); - var buttonBody = button.find(".ubw-button-body"); - var img = buttonBody.find("img"); - var imgsrc = img.attr("src"); - - var firstFunc = _firstFunc; - var secondFunc = _secondFunc; - - buttonBody - .toggle( - function(){ - img.css({visibility:"hidden"}); - firstFunc(); - }, - function(){ - img.css({visibility:"visible"}); - secondFunc(); - } - ); - - if(activated){ - buttonBody.trigger("click"); - }; - }); - }; - - - jQuery.fn.ubwidget.sliderbutton = function() { - - }; - - jQuery.fn.ubwidget.inspector = function(_position, content, button){ - - var position = {x:_position.x, y:_position.y}; - - var catcher = $("
    ") - .css({ - position:"absolute", - width:"100%", - height:"100%" - }) - .mousedown(function(){ - inspector.hide(); - removeDropShadow(); - catcher.hide(); - //resizeubcanvas() - }); - - $("body").append(catcher); - catcher.hide(); - - var inspector = $("
    ") - .css({ - left:position.x, - top:position.y - }) - .append(content) - .appendTo($("body")) - .hide() - .disableTextSelect(); - - var inspectorWidth = inspector.width(); - var inspectorHeight = inspector.height(); - var windowWidth = $(window).width(); - var windowHeight = $(window).height(); - - $("body").prepend(button); - button.addClass("ubw-rounded") - .click(function(){ - catcher.show(); - inspector.show(); - dropShadow(); - resizeubcanvas() - }); - - function dropShadow (){ - inspector.ubwshadows({w:inspectorWidth+23,h:inspectorHeight+22,l:55,t:55})} - function removeDropShadow (){ - $(".ubw-shadow").remove()} - - // !! - $(".ubw-shadow") - .mousedown(function(){ - inspector.hide(); - removeDropShadow(); - catcher.hide(); - resizeubcanvas() - }); - - function resizeWidget(w, h){ - window.resizeTo(w+2, h+2); - $("#indicator").remove(); - var indicator = $("
    ") - .css({ - width:w, - height:h, - position:"absolute", - left:0, - top:0, - border:"1px solid #ff0000" - }); - //$("body").prepend(indicator); - } - - function resizeubcanvas(){ - - if(inspector.css("display")=="none"){ - resizeWidget(windowWidth, windowHeight); - return 0; - }; - - var inspectorbottom = inspector.position().top+inspector.height()+40; - var inspectorright = inspector.position().left+inspector.width()+40; - - if($(window).height(). -*/ - -function init(){ - var h = 292; - var w = 160; - var wh = h+6; - var ww = w+6; - var clickFlag = false; - - var ubwidget = $("#ubwidget").ubwidget({ - width:w, - height:h - }); - - var historyTab = $("
    ") - .css({ - height:h, - marginRight:0, - width:20, - float:"left", - backgroundImage:"url(images/historytab.png)", - backgroundRepeat:"no-repeat" - }) - .toggle( - function(){ - resizeWidget(370, 294); - historyPanel.show(); - $(".ubw-container").css({ - backgroundImage:"url(images/back.png)", - width:328 - }); - if(window.sankore){ - window.sankore.setPreference('historyTab', "visible"); - }; - }, - function(){ - resizeWidget(200, 294); - historyPanel.hide(); - $(".ubw-container").css({ - backgroundImage:"url(images/back_small.png)", - width:160 - }); - if(window.sankore){ - window.sankore.setPreference('historyTab', "hidden"); - }; - } - ) - .hover( - function(){ - $(this).css({ - backgroundImage:"url(images/historytabOver.png)" - }); - }, - function(){ - $(this).css({ - backgroundImage:"url(images/historytab.png)" - }); - } - ) - .appendTo($("body")); - - var space = $("
    "); - space.css({ - width:5, - height:1, - float:"left" - }); - - var keysPanel = $("
    ").css({ - float:"left" - }); - var mode = "standard"; - var calc = ""; - var displayTrunk = ""; - var historyTrunk = ""; - var lastHistory = ""; - var subtrunk = 0; - var itrunk = 0; - var trunkpos = 0; - var lastchar = { - type:"NaN", - value:"null" - }; - var inparenthesis = false; - var erase = false; - var abtn; - var readyToCompute = false; - var lastResult = "0"; - var gDecimalSeparator = ""; - var gThousandsSeparator = ""; - var gDecimalCode = 0; - var gDecimalString = ""; - var gError = false; - - var historyTxt = "0"; - - var display = $("
    0
    ") - .addClass("ubw-inputbox") - .css({ - padding:"12px", - marginLeft:"2px", - marginBottom:"9px", - marginTop:7, - backgroundImage:"url(images/display.png)", - fontSize:"22px", - fontFamily:"Arial, Helvetica, Sans-serif", - color:"#777788", - width:118, - height:28, - overflow:"hidden", - textAlign:"right", - }); - - var standardPanel = $("
    ").css({ - float:"left" - }); - - var cKeySize = { - w:33, - h:36 - }; - - var btn7 = $("
    ").ubwbutton({ - w:cKeySize.w, - h:cKeySize.h - }) - .mousedown(function(){ - appendToDisplay("7", 1) - }); - var btn8 = $("
    ").ubwbutton({ - w:cKeySize.w, - h:cKeySize.h - }) - .mousedown(function(){ - appendToDisplay("8", 1) - }); - var btn9 = $("
    ").ubwbutton({ - w:cKeySize.w, - h:cKeySize.h - }) - .mousedown(function(){ - appendToDisplay("9", 1) - }); - var btnDiv = $("
    ").ubwbutton({ - w:cKeySize.w, - h:cKeySize.h - }) - .mousedown(function(){ - appendToDisplay("/", 0) - }); - var btn4 = $("
    ").ubwbutton({ - w:cKeySize.w, - h:cKeySize.h - }) - .mousedown(function(){ - appendToDisplay("4", 1) - }); - var btn5 = $("
    ").ubwbutton({ - w:cKeySize.w, - h:cKeySize.h - }) - .mousedown(function(){ - appendToDisplay("5", 1) - }); - var btn6 = $("
    ").ubwbutton({ - w:cKeySize.w, - h:cKeySize.h - }) - .mousedown(function(){ - appendToDisplay("6", 1) - }); - var btnMul = $("
    ").ubwbutton({ - w:cKeySize.w, - h:cKeySize.h - }) - .mousedown(function(){ - appendToDisplay("*", 0) - }); - var btn1 = $("
    ").ubwbutton({ - w:cKeySize.w, - h:cKeySize.h - }) - .mousedown(function(){ - appendToDisplay("1", 1) - }); - var btn2 = $("
    ").ubwbutton({ - w:cKeySize.w, - h:cKeySize.h - }) - .mousedown(function(){ - appendToDisplay("2", 1) - }); - var btn3 = $("
    ").ubwbutton({ - w:cKeySize.w, - h:cKeySize.h - }) - .mousedown(function(){ - appendToDisplay("3", 1) - }); - var btnSou = $("
    ").ubwbutton({ - w:68, - h:34 - }) - .mousedown(function(){ - appendToDisplay("-", 0) - }); - var btn0 = $("
    ").ubwbutton({ - w:cKeySize.w, - h:cKeySize.h - }) - .mousedown(function(){ - appendToDisplay("0", 1) - }); - var btnDot = $("
    ").ubwbutton({ - w:cKeySize.w, - h:cKeySize.h - }) - .mousedown(function(){ - appendToDisplay(".", 1) - }); - var btnC = $("
    ").ubwbutton({ - w:cKeySize.w, - h:cKeySize.h - }) - .mousedown(function(){ - reset() - }); - var btnAdd = $("
    ").ubwbutton({ - w:68, - h:34 - }) - .mousedown(function(){ - appendToDisplay("+", 0) - }); - var btnPaL = $("
    ").ubwbutton({ - w:cKeySize.w, - h:cKeySize.h - }) - .mousedown(function(){ - appendToDisplay("(", 1) - }); - var btnPaR = $("
    ").ubwbutton({ - w:cKeySize.w, - h:cKeySize.h - }) - .mousedown(function(){ - appendToDisplay(")", 1) - }); - var btnEqu = $("
    ").ubwbutton({ - w:cKeySize.w, - h:cKeySize.h - }) - .mousedown(function(){ - compute() - }); - - var historyPanel = $("
    ") - .css({ - backgroundImage:"url(images/historyback.png)", - width:"auto", - height:"auto", - float:"left", - marginLeft:3, - marginRight:2, - marginTop:6 - }) - .hide(); - - var historyBox = $("") - .css({ - padding:10, - fontSize:"20px", - fontFamily:"Arial, Helvetica, Sans-serif", - width:143, - height:236, - backgroundColor:"transparent", - resize:"none", - border:"none", - overlay:"none", - color:"#eeeeee" - }) - .val("0"); - - historyPanel.append(historyBox); - - var stop = $("
    "); - var sleft = $("
    "); - var sright = $("
    "); - - stop.css({ - width:140 - }) - .append(btnAdd).append(btnSou) - .append(btn7).append(btn8).append(btn9).append(btnMul) - .append(btn4).append(btn5).append(btn6).append(btnDiv); - - sleft.css({ - width:105, - float:"left" - }) - .append(btn1).append(btn2).append(btn3) - .append(btn0).append(btnDot).append(btnC); - - sright.css({ - width:45, - float:"left" - }) - .append(btnEqu); - - - standardPanel.css({ - width:150 - }) - .append(stop) - .append(sleft).append(sright); - - keysPanel - .append(display) - .append(standardPanel); - - ubwidget - .append(historyPanel) - .append(keysPanel); - - if(window.sankore){ - historyTxt = window.sankore.preference('historyTxt', historyTxt); - var ht = window.sankore.preference('historyTab', "hidden"); - $("#historyBox").val(historyTxt); - if(ht === "visible"){ - historyTab.trigger("click"); - }; - } - - function resizeWidget(w, h){ - window.sankore.resize(w+2, h+2); - } - - function compute(){ - var result; - if(calc.length <= 1) - result = eval(calc); - else{ - var fNumber, lNumber, operation = "", fMinus = ""; - if(calc.charAt(0) == '-'){ - fMinus = "-"; - calc = calc.substr(1, calc.length); - } - operation = (calc.indexOf("+", 0) != -1)?calc.charAt(calc.indexOf("+", 0)):((calc.indexOf("*", 0) != -1)?calc.charAt(calc.indexOf("*", 0)):((calc.indexOf("/", 0) != -1)?calc.charAt(calc.indexOf("/", 0)):((calc.indexOf("-", 0) != -1)?calc.charAt(calc.indexOf("-", 0)):""))); - fNumber = fMinus + calc.substring(0, calc.indexOf(operation, 0)); - lNumber = calc.substring(calc.indexOf(operation, 0)+1, calc.length); - result = calcIt(fNumber, operation, lNumber); - } - - $("#display").text(updateDisplay(result)); - lastResult = result; - lastchar.type = "Nan"; - lastchar.value = ""; - calc = ""; - - $("#historyBox").val($("#historyBox").val()+historyTrunk+"\n= "+updateDisplay(result)+"\n\n"); - $("#historyBox").scrollTop(99999); - - displayTrunk = ""; - historyTrunk = ""; - - if(window.sankore){ - window.sankore.setPreference('historyTxt', $("#historyBox").val()); - } - - lastHistory = $("#historyBox").val(); - } - - function calcIt(fNumber, operation, lNumber){ - var result, fCount = "", lCount = "", length = 0; - fCount = (fNumber.indexOf(".", 0) != -1)?fNumber.substring(fNumber.indexOf(".", 0)+1, fNumber.length):""; - lCount = (lNumber.indexOf(".", 0) != -1)?lNumber.substring(lNumber.indexOf(".", 0)+1, lNumber.length):""; - length = (fCount.length >= lCount.length)?fCount.length:lCount.length; - length = Math.pow(10, length); - fNumber = Math.round(fNumber * length); - lNumber = Math.round(lNumber * length); - switch(operation){ - case "+": - result = (fNumber + lNumber)/length; - break; - case "-": - result = (fNumber - lNumber)/length; - break; - case "*": - result = (fNumber * lNumber)/Math.pow(length, 2); - break; - case "/": - result = fNumber/lNumber; - break; - } - return result; - } - - function reset(){ - $("#display").text("0"); - calc=""; - lastchar.type = "NaN"; - displayTrunk=""; - historyTrunk=""; - $("#historyBox").val(lastHistory); - $("#historyBox").scrollTop(99999); - } - - function formatNumberWithDelimiters(number) { - var delimiter = gThousandsSeparator; - var numString = number.toString(); - - if (!numString) - return "0"; - - var dot = numString.indexOf(gDecimalSeparator); - if (dot == -1) - dot = numString.length; - - var stop = numString.length-dot; - var characteristic = numString.substr(0, dot); - if (!parseInt(characteristic)) - return numString; - - // see if it's a negative number - var numIsNegative = (parseInt(characteristic) < 0) - - var newNumber = ""; - var delimiterCount = Math.floor((characteristic.length-1) / 3); - var extras = characteristic.length % 3; - if (!extras && characteristic.length > 2) - extras = 3; - - if (extras) - newNumber = newNumber + characteristic.substr(0, extras); - - for (var i=0;i< delimiterCount; i++) { - - if ( (0 == i) && numIsNegative && (extras == 1)) - newNumber = newNumber + characteristic.substr(extras + (i * 3), 3); - else - newNumber = newNumber + delimiter + characteristic.substr(extras + (i * 3), 3); - } - - return (dot ? (newNumber + numString.substr(dot, stop)) : newNumber); - } - - - function formatNumberWithScientificNotation(number) { - if (number == 0) - return number; - - var numString = number.toString(); - if (!numString) - return "0"; - - var num = new Number(numString); - var sci = num.toExponential(5); - if (sci == "NaN") - sci = formatNumberWithDelimiters(numString); - if (!sci) - return "0"; - - return sci; - } - - function updateDisplay(number){ - if(String(number).length > 8){ - number = formatNumberWithScientificNotation(number); - } - else{ - number = number; - } - - return number; - } - - function appendToDisplay(_char, v){ - var char = _char; - - // Display - if($("#historyBox").val() === "0"){ - $("#historyBox").val(""); - }; - - if(char == "-" && lastchar.type == "NaN"){ - char = "m"; - }; - - // char is a number - if(char <= 0 || char > 0 || char == "." || char == "m" || char == "(" || char == ")"){ - if(char == "m"){ - char = "-"; - }; - - if(lastchar.type == "NaN"){ - displayTrunk = ""; - }; - - if(lastchar.value == "." && char == "."){ - calc = calc.substr(0, calc.length-1); - displayTrunk = displayTrunk.substr(0, displayTrunk.length-1); - }; - - if(calc == "0"){ - if(char != "0"){ - if(char != "."){ - calc = String(char); - displayTrunk = String(char); - historyTrunk = String(char); - lastchar.type = "Number"; - } else{ - calc += String(char); - displayTrunk += String(char); - historyTrunk += String(char); - lastchar.type = "Number"; - } - } - } else { - char = (char == ".")?((displayTrunk.indexOf(".", 0) != -1)?"":"."):char; - calc += String(char); - displayTrunk += String(char); - historyTrunk += String(char); - lastchar.type = "Number"; - } - } - // char is an operator - else { - if(calc.length === 0){ - var endCalc = calc; - calc = lastResult + endCalc; - historyTrunk = updateDisplay(lastResult); - } - - if(lastchar.type == "NaN"){ - calc = calc.substr(0, calc.length-1); - calc += char; - $("#historyBox").val($("#historyBox").val().substr(0, $("#historyBox").val().length-1)); - } - else{ - try{ - calc = eval(calc) + String(char); - }catch(e){} - } - - lastchar.type = "NaN"; - try{ - displayTrunk = eval(calc.substr(0, calc.length-1)); - }catch(e){} - $("#historyBox").val($("#historyBox").val()+historyTrunk+char); - $("#historyBox").scrollTop(99999); - historyTrunk = ""; - } - - lastchar.value = char; - $("#display").text(updateDisplay(displayTrunk)); - } - - $("#historyBox").click(function(){ - if(!clickFlag){ - $(this).select(); - clickFlag = true; - } - else{ - clickFlag = false; - $(this).blur(); - } - }); - $(document).disableTextSelect(); -}; diff --git a/resources/library/applications/Calculator.wgt/Calculator.wgt/legacy/css/ubwidget.css b/resources/library/applications/Calculator.wgt/legacy/css/ubwidget.css similarity index 100% rename from resources/library/applications/Calculator.wgt/Calculator.wgt/legacy/css/ubwidget.css rename to resources/library/applications/Calculator.wgt/legacy/css/ubwidget.css diff --git a/resources/library/applications/Calculator.wgt/Calculator.wgt/legacy/images/arrows_out/bottom.png b/resources/library/applications/Calculator.wgt/legacy/images/arrows_out/bottom.png similarity index 100% rename from resources/library/applications/Calculator.wgt/Calculator.wgt/legacy/images/arrows_out/bottom.png rename to resources/library/applications/Calculator.wgt/legacy/images/arrows_out/bottom.png diff --git a/resources/library/applications/Calculator.wgt/Calculator.wgt/legacy/images/arrows_out/left.png b/resources/library/applications/Calculator.wgt/legacy/images/arrows_out/left.png similarity index 100% rename from resources/library/applications/Calculator.wgt/Calculator.wgt/legacy/images/arrows_out/left.png rename to resources/library/applications/Calculator.wgt/legacy/images/arrows_out/left.png diff --git a/resources/library/applications/Calculator.wgt/Calculator.wgt/legacy/images/arrows_out/right.png b/resources/library/applications/Calculator.wgt/legacy/images/arrows_out/right.png similarity index 100% rename from resources/library/applications/Calculator.wgt/Calculator.wgt/legacy/images/arrows_out/right.png rename to resources/library/applications/Calculator.wgt/legacy/images/arrows_out/right.png diff --git a/resources/library/applications/Calculator.wgt/Calculator.wgt/legacy/images/arrows_out/top.png b/resources/library/applications/Calculator.wgt/legacy/images/arrows_out/top.png similarity index 100% rename from resources/library/applications/Calculator.wgt/Calculator.wgt/legacy/images/arrows_out/top.png rename to resources/library/applications/Calculator.wgt/legacy/images/arrows_out/top.png diff --git a/resources/library/applications/Calculator.wgt/Calculator.wgt/legacy/images/arrows_over/button_arrow_bottom.png b/resources/library/applications/Calculator.wgt/legacy/images/arrows_over/button_arrow_bottom.png similarity index 100% rename from resources/library/applications/Calculator.wgt/Calculator.wgt/legacy/images/arrows_over/button_arrow_bottom.png rename to resources/library/applications/Calculator.wgt/legacy/images/arrows_over/button_arrow_bottom.png diff --git a/resources/library/applications/Calculator.wgt/Calculator.wgt/legacy/images/arrows_over/button_arrow_left.png b/resources/library/applications/Calculator.wgt/legacy/images/arrows_over/button_arrow_left.png similarity index 100% rename from resources/library/applications/Calculator.wgt/Calculator.wgt/legacy/images/arrows_over/button_arrow_left.png rename to resources/library/applications/Calculator.wgt/legacy/images/arrows_over/button_arrow_left.png diff --git a/resources/library/applications/Calculator.wgt/Calculator.wgt/legacy/images/arrows_over/button_arrow_right.png b/resources/library/applications/Calculator.wgt/legacy/images/arrows_over/button_arrow_right.png similarity index 100% rename from resources/library/applications/Calculator.wgt/Calculator.wgt/legacy/images/arrows_over/button_arrow_right.png rename to resources/library/applications/Calculator.wgt/legacy/images/arrows_over/button_arrow_right.png diff --git a/resources/library/applications/Calculator.wgt/Calculator.wgt/legacy/images/arrows_over/button_arrow_top.png b/resources/library/applications/Calculator.wgt/legacy/images/arrows_over/button_arrow_top.png similarity index 100% rename from resources/library/applications/Calculator.wgt/Calculator.wgt/legacy/images/arrows_over/button_arrow_top.png rename to resources/library/applications/Calculator.wgt/legacy/images/arrows_over/button_arrow_top.png diff --git a/resources/library/applications/Calculator.wgt/Calculator.wgt/legacy/images/back.png b/resources/library/applications/Calculator.wgt/legacy/images/back.png similarity index 100% rename from resources/library/applications/Calculator.wgt/Calculator.wgt/legacy/images/back.png rename to resources/library/applications/Calculator.wgt/legacy/images/back.png diff --git a/resources/library/applications/Calculator.wgt/Calculator.wgt/legacy/images/back_small.png b/resources/library/applications/Calculator.wgt/legacy/images/back_small.png similarity index 100% rename from resources/library/applications/Calculator.wgt/Calculator.wgt/legacy/images/back_small.png rename to resources/library/applications/Calculator.wgt/legacy/images/back_small.png diff --git a/resources/library/applications/Calculator.wgt/Calculator.wgt/legacy/images/button_out-copie.png b/resources/library/applications/Calculator.wgt/legacy/images/button_out-copie.png similarity index 100% rename from resources/library/applications/Calculator.wgt/Calculator.wgt/legacy/images/button_out-copie.png rename to resources/library/applications/Calculator.wgt/legacy/images/button_out-copie.png diff --git a/resources/library/applications/Calculator.wgt/Calculator.wgt/legacy/images/button_out.gif b/resources/library/applications/Calculator.wgt/legacy/images/button_out.gif similarity index 100% rename from resources/library/applications/Calculator.wgt/Calculator.wgt/legacy/images/button_out.gif rename to resources/library/applications/Calculator.wgt/legacy/images/button_out.gif diff --git a/resources/library/applications/Calculator.wgt/Calculator.wgt/legacy/images/button_out.png b/resources/library/applications/Calculator.wgt/legacy/images/button_out.png similarity index 100% rename from resources/library/applications/Calculator.wgt/Calculator.wgt/legacy/images/button_out.png rename to resources/library/applications/Calculator.wgt/legacy/images/button_out.png diff --git a/resources/library/applications/Calculator.wgt/Calculator.wgt/legacy/images/button_out_dark.gif b/resources/library/applications/Calculator.wgt/legacy/images/button_out_dark.gif similarity index 100% rename from resources/library/applications/Calculator.wgt/Calculator.wgt/legacy/images/button_out_dark.gif rename to resources/library/applications/Calculator.wgt/legacy/images/button_out_dark.gif diff --git a/resources/library/applications/Calculator.wgt/Calculator.wgt/legacy/images/button_out_dark.png b/resources/library/applications/Calculator.wgt/legacy/images/button_out_dark.png similarity index 100% rename from resources/library/applications/Calculator.wgt/Calculator.wgt/legacy/images/button_out_dark.png rename to resources/library/applications/Calculator.wgt/legacy/images/button_out_dark.png diff --git a/resources/library/applications/Calculator.wgt/Calculator.wgt/legacy/images/button_over.gif b/resources/library/applications/Calculator.wgt/legacy/images/button_over.gif similarity index 100% rename from resources/library/applications/Calculator.wgt/Calculator.wgt/legacy/images/button_over.gif rename to resources/library/applications/Calculator.wgt/legacy/images/button_over.gif diff --git a/resources/library/applications/Calculator.wgt/Calculator.wgt/legacy/images/button_toggle.png b/resources/library/applications/Calculator.wgt/legacy/images/button_toggle.png similarity index 100% rename from resources/library/applications/Calculator.wgt/Calculator.wgt/legacy/images/button_toggle.png rename to resources/library/applications/Calculator.wgt/legacy/images/button_toggle.png diff --git a/resources/library/applications/Calculator.wgt/Calculator.wgt/legacy/images/button_toggle_invert.png b/resources/library/applications/Calculator.wgt/legacy/images/button_toggle_invert.png similarity index 100% rename from resources/library/applications/Calculator.wgt/Calculator.wgt/legacy/images/button_toggle_invert.png rename to resources/library/applications/Calculator.wgt/legacy/images/button_toggle_invert.png diff --git a/resources/library/applications/Calculator.wgt/Calculator.wgt/legacy/images/buttons_shadow/back.png b/resources/library/applications/Calculator.wgt/legacy/images/buttons_shadow/back.png similarity index 100% rename from resources/library/applications/Calculator.wgt/Calculator.wgt/legacy/images/buttons_shadow/back.png rename to resources/library/applications/Calculator.wgt/legacy/images/buttons_shadow/back.png diff --git a/resources/library/applications/Calculator.wgt/Calculator.wgt/legacy/images/buttons_shadow/bottom.png b/resources/library/applications/Calculator.wgt/legacy/images/buttons_shadow/bottom.png similarity index 100% rename from resources/library/applications/Calculator.wgt/Calculator.wgt/legacy/images/buttons_shadow/bottom.png rename to resources/library/applications/Calculator.wgt/legacy/images/buttons_shadow/bottom.png diff --git a/resources/library/applications/Calculator.wgt/Calculator.wgt/legacy/images/buttons_shadow/cbottomleft.png b/resources/library/applications/Calculator.wgt/legacy/images/buttons_shadow/cbottomleft.png similarity index 100% rename from resources/library/applications/Calculator.wgt/Calculator.wgt/legacy/images/buttons_shadow/cbottomleft.png rename to resources/library/applications/Calculator.wgt/legacy/images/buttons_shadow/cbottomleft.png diff --git a/resources/library/applications/Calculator.wgt/Calculator.wgt/legacy/images/buttons_shadow/cbottomright.png b/resources/library/applications/Calculator.wgt/legacy/images/buttons_shadow/cbottomright.png similarity index 100% rename from resources/library/applications/Calculator.wgt/Calculator.wgt/legacy/images/buttons_shadow/cbottomright.png rename to resources/library/applications/Calculator.wgt/legacy/images/buttons_shadow/cbottomright.png diff --git a/resources/library/applications/Calculator.wgt/Calculator.wgt/legacy/images/buttons_shadow/ctopleft.png b/resources/library/applications/Calculator.wgt/legacy/images/buttons_shadow/ctopleft.png similarity index 100% rename from resources/library/applications/Calculator.wgt/Calculator.wgt/legacy/images/buttons_shadow/ctopleft.png rename to resources/library/applications/Calculator.wgt/legacy/images/buttons_shadow/ctopleft.png diff --git a/resources/library/applications/Calculator.wgt/Calculator.wgt/legacy/images/buttons_shadow/ctopright.png b/resources/library/applications/Calculator.wgt/legacy/images/buttons_shadow/ctopright.png similarity index 100% rename from resources/library/applications/Calculator.wgt/Calculator.wgt/legacy/images/buttons_shadow/ctopright.png rename to resources/library/applications/Calculator.wgt/legacy/images/buttons_shadow/ctopright.png diff --git a/resources/library/applications/Calculator.wgt/Calculator.wgt/legacy/images/buttons_shadow/left.png b/resources/library/applications/Calculator.wgt/legacy/images/buttons_shadow/left.png similarity index 100% rename from resources/library/applications/Calculator.wgt/Calculator.wgt/legacy/images/buttons_shadow/left.png rename to resources/library/applications/Calculator.wgt/legacy/images/buttons_shadow/left.png diff --git a/resources/library/applications/Calculator.wgt/Calculator.wgt/legacy/images/buttons_shadow/right.png b/resources/library/applications/Calculator.wgt/legacy/images/buttons_shadow/right.png similarity index 100% rename from resources/library/applications/Calculator.wgt/Calculator.wgt/legacy/images/buttons_shadow/right.png rename to resources/library/applications/Calculator.wgt/legacy/images/buttons_shadow/right.png diff --git a/resources/library/applications/Calculator.wgt/Calculator.wgt/legacy/images/buttons_shadow/top.png b/resources/library/applications/Calculator.wgt/legacy/images/buttons_shadow/top.png similarity index 100% rename from resources/library/applications/Calculator.wgt/Calculator.wgt/legacy/images/buttons_shadow/top.png rename to resources/library/applications/Calculator.wgt/legacy/images/buttons_shadow/top.png diff --git a/resources/library/applications/Calculator.wgt/Calculator.wgt/legacy/images/calculator/pi.png b/resources/library/applications/Calculator.wgt/legacy/images/calculator/pi.png similarity index 100% rename from resources/library/applications/Calculator.wgt/Calculator.wgt/legacy/images/calculator/pi.png rename to resources/library/applications/Calculator.wgt/legacy/images/calculator/pi.png diff --git a/resources/library/applications/Calculator.wgt/Calculator.wgt/legacy/images/calculator/pi.psd b/resources/library/applications/Calculator.wgt/legacy/images/calculator/pi.psd similarity index 100% rename from resources/library/applications/Calculator.wgt/Calculator.wgt/legacy/images/calculator/pi.psd rename to resources/library/applications/Calculator.wgt/legacy/images/calculator/pi.psd diff --git a/resources/library/applications/Calculator.wgt/Calculator.wgt/legacy/images/calculator/pi_click.png b/resources/library/applications/Calculator.wgt/legacy/images/calculator/pi_click.png similarity index 100% rename from resources/library/applications/Calculator.wgt/Calculator.wgt/legacy/images/calculator/pi_click.png rename to resources/library/applications/Calculator.wgt/legacy/images/calculator/pi_click.png diff --git a/resources/library/applications/Calculator.wgt/Calculator.wgt/legacy/images/calculator/pi_over.png b/resources/library/applications/Calculator.wgt/legacy/images/calculator/pi_over.png similarity index 100% rename from resources/library/applications/Calculator.wgt/Calculator.wgt/legacy/images/calculator/pi_over.png rename to resources/library/applications/Calculator.wgt/legacy/images/calculator/pi_over.png diff --git a/resources/library/applications/Calculator.wgt/Calculator.wgt/legacy/images/calculator/pow.png b/resources/library/applications/Calculator.wgt/legacy/images/calculator/pow.png similarity index 100% rename from resources/library/applications/Calculator.wgt/Calculator.wgt/legacy/images/calculator/pow.png rename to resources/library/applications/Calculator.wgt/legacy/images/calculator/pow.png diff --git a/resources/library/applications/Calculator.wgt/Calculator.wgt/legacy/images/calculator/pow.psd b/resources/library/applications/Calculator.wgt/legacy/images/calculator/pow.psd similarity index 100% rename from resources/library/applications/Calculator.wgt/Calculator.wgt/legacy/images/calculator/pow.psd rename to resources/library/applications/Calculator.wgt/legacy/images/calculator/pow.psd diff --git a/resources/library/applications/Calculator.wgt/Calculator.wgt/legacy/images/calculator/sq.png b/resources/library/applications/Calculator.wgt/legacy/images/calculator/sq.png similarity index 100% rename from resources/library/applications/Calculator.wgt/Calculator.wgt/legacy/images/calculator/sq.png rename to resources/library/applications/Calculator.wgt/legacy/images/calculator/sq.png diff --git a/resources/library/applications/Calculator.wgt/Calculator.wgt/legacy/images/calculator/sq.psd b/resources/library/applications/Calculator.wgt/legacy/images/calculator/sq.psd similarity index 100% rename from resources/library/applications/Calculator.wgt/Calculator.wgt/legacy/images/calculator/sq.psd rename to resources/library/applications/Calculator.wgt/legacy/images/calculator/sq.psd diff --git a/resources/library/applications/Calculator.wgt/Calculator.wgt/legacy/images/calculator/sq_click.png b/resources/library/applications/Calculator.wgt/legacy/images/calculator/sq_click.png similarity index 100% rename from resources/library/applications/Calculator.wgt/Calculator.wgt/legacy/images/calculator/sq_click.png rename to resources/library/applications/Calculator.wgt/legacy/images/calculator/sq_click.png diff --git a/resources/library/applications/Calculator.wgt/Calculator.wgt/legacy/images/calculator/sq_over.png b/resources/library/applications/Calculator.wgt/legacy/images/calculator/sq_over.png similarity index 100% rename from resources/library/applications/Calculator.wgt/Calculator.wgt/legacy/images/calculator/sq_over.png rename to resources/library/applications/Calculator.wgt/legacy/images/calculator/sq_over.png diff --git a/resources/library/applications/Calculator.wgt/Calculator.wgt/legacy/images/display copy.png b/resources/library/applications/Calculator.wgt/legacy/images/display copy.png similarity index 100% rename from resources/library/applications/Calculator.wgt/Calculator.wgt/legacy/images/display copy.png rename to resources/library/applications/Calculator.wgt/legacy/images/display copy.png diff --git a/resources/library/applications/Calculator.wgt/Calculator.wgt/legacy/images/display.png b/resources/library/applications/Calculator.wgt/legacy/images/display.png similarity index 100% rename from resources/library/applications/Calculator.wgt/Calculator.wgt/legacy/images/display.png rename to resources/library/applications/Calculator.wgt/legacy/images/display.png diff --git a/resources/library/applications/Calculator.wgt/Calculator.wgt/legacy/images/historyback.png b/resources/library/applications/Calculator.wgt/legacy/images/historyback.png similarity index 100% rename from resources/library/applications/Calculator.wgt/Calculator.wgt/legacy/images/historyback.png rename to resources/library/applications/Calculator.wgt/legacy/images/historyback.png diff --git a/resources/library/applications/Calculator.wgt/Calculator.wgt/legacy/images/historytab.png b/resources/library/applications/Calculator.wgt/legacy/images/historytab.png similarity index 100% rename from resources/library/applications/Calculator.wgt/Calculator.wgt/legacy/images/historytab.png rename to resources/library/applications/Calculator.wgt/legacy/images/historytab.png diff --git a/resources/library/applications/Calculator.wgt/Calculator.wgt/legacy/images/historytabOver.png b/resources/library/applications/Calculator.wgt/legacy/images/historytabOver.png similarity index 100% rename from resources/library/applications/Calculator.wgt/Calculator.wgt/legacy/images/historytabOver.png rename to resources/library/applications/Calculator.wgt/legacy/images/historytabOver.png diff --git a/resources/library/applications/Calculator.wgt/Calculator.wgt/legacy/images/inspector.png b/resources/library/applications/Calculator.wgt/legacy/images/inspector.png similarity index 100% rename from resources/library/applications/Calculator.wgt/Calculator.wgt/legacy/images/inspector.png rename to resources/library/applications/Calculator.wgt/legacy/images/inspector.png diff --git a/resources/library/applications/Calculator.wgt/Calculator.wgt/legacy/images/touche0.png b/resources/library/applications/Calculator.wgt/legacy/images/touche0.png similarity index 100% rename from resources/library/applications/Calculator.wgt/Calculator.wgt/legacy/images/touche0.png rename to resources/library/applications/Calculator.wgt/legacy/images/touche0.png diff --git a/resources/library/applications/Calculator.wgt/Calculator.wgt/legacy/images/touche0_over.png b/resources/library/applications/Calculator.wgt/legacy/images/touche0_over.png similarity index 100% rename from resources/library/applications/Calculator.wgt/Calculator.wgt/legacy/images/touche0_over.png rename to resources/library/applications/Calculator.wgt/legacy/images/touche0_over.png diff --git a/resources/library/applications/Calculator.wgt/Calculator.wgt/legacy/images/touche0_over_down.png b/resources/library/applications/Calculator.wgt/legacy/images/touche0_over_down.png similarity index 100% rename from resources/library/applications/Calculator.wgt/Calculator.wgt/legacy/images/touche0_over_down.png rename to resources/library/applications/Calculator.wgt/legacy/images/touche0_over_down.png diff --git a/resources/library/applications/Calculator.wgt/Calculator.wgt/legacy/images/touche1.png b/resources/library/applications/Calculator.wgt/legacy/images/touche1.png similarity index 100% rename from resources/library/applications/Calculator.wgt/Calculator.wgt/legacy/images/touche1.png rename to resources/library/applications/Calculator.wgt/legacy/images/touche1.png diff --git a/resources/library/applications/Calculator.wgt/Calculator.wgt/legacy/images/touche1_over.png b/resources/library/applications/Calculator.wgt/legacy/images/touche1_over.png similarity index 100% rename from resources/library/applications/Calculator.wgt/Calculator.wgt/legacy/images/touche1_over.png rename to resources/library/applications/Calculator.wgt/legacy/images/touche1_over.png diff --git a/resources/library/applications/Calculator.wgt/Calculator.wgt/legacy/images/touche1_over_down.png b/resources/library/applications/Calculator.wgt/legacy/images/touche1_over_down.png similarity index 100% rename from resources/library/applications/Calculator.wgt/Calculator.wgt/legacy/images/touche1_over_down.png rename to resources/library/applications/Calculator.wgt/legacy/images/touche1_over_down.png diff --git a/resources/library/applications/Calculator.wgt/Calculator.wgt/legacy/images/touche2.png b/resources/library/applications/Calculator.wgt/legacy/images/touche2.png similarity index 100% rename from resources/library/applications/Calculator.wgt/Calculator.wgt/legacy/images/touche2.png rename to resources/library/applications/Calculator.wgt/legacy/images/touche2.png diff --git a/resources/library/applications/Calculator.wgt/Calculator.wgt/legacy/images/touche2_over.png b/resources/library/applications/Calculator.wgt/legacy/images/touche2_over.png similarity index 100% rename from resources/library/applications/Calculator.wgt/Calculator.wgt/legacy/images/touche2_over.png rename to resources/library/applications/Calculator.wgt/legacy/images/touche2_over.png diff --git a/resources/library/applications/Calculator.wgt/Calculator.wgt/legacy/images/touche2_over_down.png b/resources/library/applications/Calculator.wgt/legacy/images/touche2_over_down.png similarity index 100% rename from resources/library/applications/Calculator.wgt/Calculator.wgt/legacy/images/touche2_over_down.png rename to resources/library/applications/Calculator.wgt/legacy/images/touche2_over_down.png diff --git a/resources/library/applications/Calculator.wgt/Calculator.wgt/legacy/images/touche3.png b/resources/library/applications/Calculator.wgt/legacy/images/touche3.png similarity index 100% rename from resources/library/applications/Calculator.wgt/Calculator.wgt/legacy/images/touche3.png rename to resources/library/applications/Calculator.wgt/legacy/images/touche3.png diff --git a/resources/library/applications/Calculator.wgt/Calculator.wgt/legacy/images/touche3_over.png b/resources/library/applications/Calculator.wgt/legacy/images/touche3_over.png similarity index 100% rename from resources/library/applications/Calculator.wgt/Calculator.wgt/legacy/images/touche3_over.png rename to resources/library/applications/Calculator.wgt/legacy/images/touche3_over.png diff --git a/resources/library/applications/Calculator.wgt/Calculator.wgt/legacy/images/touche3_over_down.png b/resources/library/applications/Calculator.wgt/legacy/images/touche3_over_down.png similarity index 100% rename from resources/library/applications/Calculator.wgt/Calculator.wgt/legacy/images/touche3_over_down.png rename to resources/library/applications/Calculator.wgt/legacy/images/touche3_over_down.png diff --git a/resources/library/applications/Calculator.wgt/Calculator.wgt/legacy/images/touche4.png b/resources/library/applications/Calculator.wgt/legacy/images/touche4.png similarity index 100% rename from resources/library/applications/Calculator.wgt/Calculator.wgt/legacy/images/touche4.png rename to resources/library/applications/Calculator.wgt/legacy/images/touche4.png diff --git a/resources/library/applications/Calculator.wgt/Calculator.wgt/legacy/images/touche4_over.png b/resources/library/applications/Calculator.wgt/legacy/images/touche4_over.png similarity index 100% rename from resources/library/applications/Calculator.wgt/Calculator.wgt/legacy/images/touche4_over.png rename to resources/library/applications/Calculator.wgt/legacy/images/touche4_over.png diff --git a/resources/library/applications/Calculator.wgt/Calculator.wgt/legacy/images/touche4_over_down.png b/resources/library/applications/Calculator.wgt/legacy/images/touche4_over_down.png similarity index 100% rename from resources/library/applications/Calculator.wgt/Calculator.wgt/legacy/images/touche4_over_down.png rename to resources/library/applications/Calculator.wgt/legacy/images/touche4_over_down.png diff --git a/resources/library/applications/Calculator.wgt/Calculator.wgt/legacy/images/touche5.png b/resources/library/applications/Calculator.wgt/legacy/images/touche5.png similarity index 100% rename from resources/library/applications/Calculator.wgt/Calculator.wgt/legacy/images/touche5.png rename to resources/library/applications/Calculator.wgt/legacy/images/touche5.png diff --git a/resources/library/applications/Calculator.wgt/Calculator.wgt/legacy/images/touche5_over.png b/resources/library/applications/Calculator.wgt/legacy/images/touche5_over.png similarity index 100% rename from resources/library/applications/Calculator.wgt/Calculator.wgt/legacy/images/touche5_over.png rename to resources/library/applications/Calculator.wgt/legacy/images/touche5_over.png diff --git a/resources/library/applications/Calculator.wgt/Calculator.wgt/legacy/images/touche5_over_down.png b/resources/library/applications/Calculator.wgt/legacy/images/touche5_over_down.png similarity index 100% rename from resources/library/applications/Calculator.wgt/Calculator.wgt/legacy/images/touche5_over_down.png rename to resources/library/applications/Calculator.wgt/legacy/images/touche5_over_down.png diff --git a/resources/library/applications/Calculator.wgt/Calculator.wgt/legacy/images/touche6.png b/resources/library/applications/Calculator.wgt/legacy/images/touche6.png similarity index 100% rename from resources/library/applications/Calculator.wgt/Calculator.wgt/legacy/images/touche6.png rename to resources/library/applications/Calculator.wgt/legacy/images/touche6.png diff --git a/resources/library/applications/Calculator.wgt/Calculator.wgt/legacy/images/touche6_over.png b/resources/library/applications/Calculator.wgt/legacy/images/touche6_over.png similarity index 100% rename from resources/library/applications/Calculator.wgt/Calculator.wgt/legacy/images/touche6_over.png rename to resources/library/applications/Calculator.wgt/legacy/images/touche6_over.png diff --git a/resources/library/applications/Calculator.wgt/Calculator.wgt/legacy/images/touche6_over_down.png b/resources/library/applications/Calculator.wgt/legacy/images/touche6_over_down.png similarity index 100% rename from resources/library/applications/Calculator.wgt/Calculator.wgt/legacy/images/touche6_over_down.png rename to resources/library/applications/Calculator.wgt/legacy/images/touche6_over_down.png diff --git a/resources/library/applications/Calculator.wgt/Calculator.wgt/legacy/images/touche7.png b/resources/library/applications/Calculator.wgt/legacy/images/touche7.png similarity index 100% rename from resources/library/applications/Calculator.wgt/Calculator.wgt/legacy/images/touche7.png rename to resources/library/applications/Calculator.wgt/legacy/images/touche7.png diff --git a/resources/library/applications/Calculator.wgt/Calculator.wgt/legacy/images/touche7_over.png b/resources/library/applications/Calculator.wgt/legacy/images/touche7_over.png similarity index 100% rename from resources/library/applications/Calculator.wgt/Calculator.wgt/legacy/images/touche7_over.png rename to resources/library/applications/Calculator.wgt/legacy/images/touche7_over.png diff --git a/resources/library/applications/Calculator.wgt/Calculator.wgt/legacy/images/touche7_over_down.png b/resources/library/applications/Calculator.wgt/legacy/images/touche7_over_down.png similarity index 100% rename from resources/library/applications/Calculator.wgt/Calculator.wgt/legacy/images/touche7_over_down.png rename to resources/library/applications/Calculator.wgt/legacy/images/touche7_over_down.png diff --git a/resources/library/applications/Calculator.wgt/Calculator.wgt/legacy/images/touche8.png b/resources/library/applications/Calculator.wgt/legacy/images/touche8.png similarity index 100% rename from resources/library/applications/Calculator.wgt/Calculator.wgt/legacy/images/touche8.png rename to resources/library/applications/Calculator.wgt/legacy/images/touche8.png diff --git a/resources/library/applications/Calculator.wgt/Calculator.wgt/legacy/images/touche8_over.png b/resources/library/applications/Calculator.wgt/legacy/images/touche8_over.png similarity index 100% rename from resources/library/applications/Calculator.wgt/Calculator.wgt/legacy/images/touche8_over.png rename to resources/library/applications/Calculator.wgt/legacy/images/touche8_over.png diff --git a/resources/library/applications/Calculator.wgt/Calculator.wgt/legacy/images/touche8_over_down.png b/resources/library/applications/Calculator.wgt/legacy/images/touche8_over_down.png similarity index 100% rename from resources/library/applications/Calculator.wgt/Calculator.wgt/legacy/images/touche8_over_down.png rename to resources/library/applications/Calculator.wgt/legacy/images/touche8_over_down.png diff --git a/resources/library/applications/Calculator.wgt/Calculator.wgt/legacy/images/touche9.png b/resources/library/applications/Calculator.wgt/legacy/images/touche9.png similarity index 100% rename from resources/library/applications/Calculator.wgt/Calculator.wgt/legacy/images/touche9.png rename to resources/library/applications/Calculator.wgt/legacy/images/touche9.png diff --git a/resources/library/applications/Calculator.wgt/Calculator.wgt/legacy/images/touche9_over.png b/resources/library/applications/Calculator.wgt/legacy/images/touche9_over.png similarity index 100% rename from resources/library/applications/Calculator.wgt/Calculator.wgt/legacy/images/touche9_over.png rename to resources/library/applications/Calculator.wgt/legacy/images/touche9_over.png diff --git a/resources/library/applications/Calculator.wgt/Calculator.wgt/legacy/images/touche9_over_down.png b/resources/library/applications/Calculator.wgt/legacy/images/touche9_over_down.png similarity index 100% rename from resources/library/applications/Calculator.wgt/Calculator.wgt/legacy/images/touche9_over_down.png rename to resources/library/applications/Calculator.wgt/legacy/images/touche9_over_down.png diff --git a/resources/library/applications/Calculator.wgt/Calculator.wgt/legacy/images/touchec.png b/resources/library/applications/Calculator.wgt/legacy/images/touchec.png similarity index 100% rename from resources/library/applications/Calculator.wgt/Calculator.wgt/legacy/images/touchec.png rename to resources/library/applications/Calculator.wgt/legacy/images/touchec.png diff --git a/resources/library/applications/Calculator.wgt/Calculator.wgt/legacy/images/touchec_over.png b/resources/library/applications/Calculator.wgt/legacy/images/touchec_over.png similarity index 100% rename from resources/library/applications/Calculator.wgt/Calculator.wgt/legacy/images/touchec_over.png rename to resources/library/applications/Calculator.wgt/legacy/images/touchec_over.png diff --git a/resources/library/applications/Calculator.wgt/Calculator.wgt/legacy/images/touchec_over_down.png b/resources/library/applications/Calculator.wgt/legacy/images/touchec_over_down.png similarity index 100% rename from resources/library/applications/Calculator.wgt/Calculator.wgt/legacy/images/touchec_over_down.png rename to resources/library/applications/Calculator.wgt/legacy/images/touchec_over_down.png diff --git a/resources/library/applications/Calculator.wgt/Calculator.wgt/legacy/images/touchediv.png b/resources/library/applications/Calculator.wgt/legacy/images/touchediv.png similarity index 100% rename from resources/library/applications/Calculator.wgt/Calculator.wgt/legacy/images/touchediv.png rename to resources/library/applications/Calculator.wgt/legacy/images/touchediv.png diff --git a/resources/library/applications/Calculator.wgt/Calculator.wgt/legacy/images/touchediv_over.png b/resources/library/applications/Calculator.wgt/legacy/images/touchediv_over.png similarity index 100% rename from resources/library/applications/Calculator.wgt/Calculator.wgt/legacy/images/touchediv_over.png rename to resources/library/applications/Calculator.wgt/legacy/images/touchediv_over.png diff --git a/resources/library/applications/Calculator.wgt/Calculator.wgt/legacy/images/touchediv_over_down.png b/resources/library/applications/Calculator.wgt/legacy/images/touchediv_over_down.png similarity index 100% rename from resources/library/applications/Calculator.wgt/Calculator.wgt/legacy/images/touchediv_over_down.png rename to resources/library/applications/Calculator.wgt/legacy/images/touchediv_over_down.png diff --git a/resources/library/applications/Calculator.wgt/Calculator.wgt/legacy/images/touchedot.png b/resources/library/applications/Calculator.wgt/legacy/images/touchedot.png similarity index 100% rename from resources/library/applications/Calculator.wgt/Calculator.wgt/legacy/images/touchedot.png rename to resources/library/applications/Calculator.wgt/legacy/images/touchedot.png diff --git a/resources/library/applications/Calculator.wgt/Calculator.wgt/legacy/images/touchedot_over.png b/resources/library/applications/Calculator.wgt/legacy/images/touchedot_over.png similarity index 100% rename from resources/library/applications/Calculator.wgt/Calculator.wgt/legacy/images/touchedot_over.png rename to resources/library/applications/Calculator.wgt/legacy/images/touchedot_over.png diff --git a/resources/library/applications/Calculator.wgt/Calculator.wgt/legacy/images/touchedot_over_down.png b/resources/library/applications/Calculator.wgt/legacy/images/touchedot_over_down.png similarity index 100% rename from resources/library/applications/Calculator.wgt/Calculator.wgt/legacy/images/touchedot_over_down.png rename to resources/library/applications/Calculator.wgt/legacy/images/touchedot_over_down.png diff --git a/resources/library/applications/Calculator.wgt/Calculator.wgt/legacy/images/toucheeq.png b/resources/library/applications/Calculator.wgt/legacy/images/toucheeq.png similarity index 100% rename from resources/library/applications/Calculator.wgt/Calculator.wgt/legacy/images/toucheeq.png rename to resources/library/applications/Calculator.wgt/legacy/images/toucheeq.png diff --git a/resources/library/applications/Calculator.wgt/Calculator.wgt/legacy/images/toucheeq_over.png b/resources/library/applications/Calculator.wgt/legacy/images/toucheeq_over.png similarity index 100% rename from resources/library/applications/Calculator.wgt/Calculator.wgt/legacy/images/toucheeq_over.png rename to resources/library/applications/Calculator.wgt/legacy/images/toucheeq_over.png diff --git a/resources/library/applications/Calculator.wgt/Calculator.wgt/legacy/images/toucheeq_over_down.png b/resources/library/applications/Calculator.wgt/legacy/images/toucheeq_over_down.png similarity index 100% rename from resources/library/applications/Calculator.wgt/Calculator.wgt/legacy/images/toucheeq_over_down.png rename to resources/library/applications/Calculator.wgt/legacy/images/toucheeq_over_down.png diff --git a/resources/library/applications/Calculator.wgt/Calculator.wgt/legacy/images/touchef.png b/resources/library/applications/Calculator.wgt/legacy/images/touchef.png similarity index 100% rename from resources/library/applications/Calculator.wgt/Calculator.wgt/legacy/images/touchef.png rename to resources/library/applications/Calculator.wgt/legacy/images/touchef.png diff --git a/resources/library/applications/Calculator.wgt/Calculator.wgt/legacy/images/touchef_over.png b/resources/library/applications/Calculator.wgt/legacy/images/touchef_over.png similarity index 100% rename from resources/library/applications/Calculator.wgt/Calculator.wgt/legacy/images/touchef_over.png rename to resources/library/applications/Calculator.wgt/legacy/images/touchef_over.png diff --git a/resources/library/applications/Calculator.wgt/Calculator.wgt/legacy/images/touchef_over_down.png b/resources/library/applications/Calculator.wgt/legacy/images/touchef_over_down.png similarity index 100% rename from resources/library/applications/Calculator.wgt/Calculator.wgt/legacy/images/touchef_over_down.png rename to resources/library/applications/Calculator.wgt/legacy/images/touchef_over_down.png diff --git a/resources/library/applications/Calculator.wgt/Calculator.wgt/legacy/images/touchem.png b/resources/library/applications/Calculator.wgt/legacy/images/touchem.png similarity index 100% rename from resources/library/applications/Calculator.wgt/Calculator.wgt/legacy/images/touchem.png rename to resources/library/applications/Calculator.wgt/legacy/images/touchem.png diff --git a/resources/library/applications/Calculator.wgt/Calculator.wgt/legacy/images/touchem_over.png b/resources/library/applications/Calculator.wgt/legacy/images/touchem_over.png similarity index 100% rename from resources/library/applications/Calculator.wgt/Calculator.wgt/legacy/images/touchem_over.png rename to resources/library/applications/Calculator.wgt/legacy/images/touchem_over.png diff --git a/resources/library/applications/Calculator.wgt/Calculator.wgt/legacy/images/touchem_over_down.png b/resources/library/applications/Calculator.wgt/legacy/images/touchem_over_down.png similarity index 100% rename from resources/library/applications/Calculator.wgt/Calculator.wgt/legacy/images/touchem_over_down.png rename to resources/library/applications/Calculator.wgt/legacy/images/touchem_over_down.png diff --git a/resources/library/applications/Calculator.wgt/Calculator.wgt/legacy/images/touchep.png b/resources/library/applications/Calculator.wgt/legacy/images/touchep.png similarity index 100% rename from resources/library/applications/Calculator.wgt/Calculator.wgt/legacy/images/touchep.png rename to resources/library/applications/Calculator.wgt/legacy/images/touchep.png diff --git a/resources/library/applications/Calculator.wgt/Calculator.wgt/legacy/images/touchep_over.png b/resources/library/applications/Calculator.wgt/legacy/images/touchep_over.png similarity index 100% rename from resources/library/applications/Calculator.wgt/Calculator.wgt/legacy/images/touchep_over.png rename to resources/library/applications/Calculator.wgt/legacy/images/touchep_over.png diff --git a/resources/library/applications/Calculator.wgt/Calculator.wgt/legacy/images/touchep_over_down.png b/resources/library/applications/Calculator.wgt/legacy/images/touchep_over_down.png similarity index 100% rename from resources/library/applications/Calculator.wgt/Calculator.wgt/legacy/images/touchep_over_down.png rename to resources/library/applications/Calculator.wgt/legacy/images/touchep_over_down.png diff --git a/resources/library/applications/Calculator.wgt/Calculator.wgt/legacy/images/touchepd.png b/resources/library/applications/Calculator.wgt/legacy/images/touchepd.png similarity index 100% rename from resources/library/applications/Calculator.wgt/Calculator.wgt/legacy/images/touchepd.png rename to resources/library/applications/Calculator.wgt/legacy/images/touchepd.png diff --git a/resources/library/applications/Calculator.wgt/Calculator.wgt/legacy/images/touchepd_over.png b/resources/library/applications/Calculator.wgt/legacy/images/touchepd_over.png similarity index 100% rename from resources/library/applications/Calculator.wgt/Calculator.wgt/legacy/images/touchepd_over.png rename to resources/library/applications/Calculator.wgt/legacy/images/touchepd_over.png diff --git a/resources/library/applications/Calculator.wgt/Calculator.wgt/legacy/images/touchepd_over_down.png b/resources/library/applications/Calculator.wgt/legacy/images/touchepd_over_down.png similarity index 100% rename from resources/library/applications/Calculator.wgt/Calculator.wgt/legacy/images/touchepd_over_down.png rename to resources/library/applications/Calculator.wgt/legacy/images/touchepd_over_down.png diff --git a/resources/library/applications/Calculator.wgt/Calculator.wgt/legacy/images/touchepg.png b/resources/library/applications/Calculator.wgt/legacy/images/touchepg.png similarity index 100% rename from resources/library/applications/Calculator.wgt/Calculator.wgt/legacy/images/touchepg.png rename to resources/library/applications/Calculator.wgt/legacy/images/touchepg.png diff --git a/resources/library/applications/Calculator.wgt/Calculator.wgt/legacy/images/touchepg_over.png b/resources/library/applications/Calculator.wgt/legacy/images/touchepg_over.png similarity index 100% rename from resources/library/applications/Calculator.wgt/Calculator.wgt/legacy/images/touchepg_over.png rename to resources/library/applications/Calculator.wgt/legacy/images/touchepg_over.png diff --git a/resources/library/applications/Calculator.wgt/Calculator.wgt/legacy/images/touchepg_over_down.png b/resources/library/applications/Calculator.wgt/legacy/images/touchepg_over_down.png similarity index 100% rename from resources/library/applications/Calculator.wgt/Calculator.wgt/legacy/images/touchepg_over_down.png rename to resources/library/applications/Calculator.wgt/legacy/images/touchepg_over_down.png diff --git a/resources/library/applications/Calculator.wgt/Calculator.wgt/legacy/js/src/calculate.js b/resources/library/applications/Calculator.wgt/legacy/js/src/calculate.js similarity index 100% rename from resources/library/applications/Calculator.wgt/Calculator.wgt/legacy/js/src/calculate.js rename to resources/library/applications/Calculator.wgt/legacy/js/src/calculate.js diff --git a/resources/library/applications/Calculator.wgt/Calculator.wgt/legacy/js/src/jquery.ubwidget.js b/resources/library/applications/Calculator.wgt/legacy/js/src/jquery.ubwidget.js similarity index 100% rename from resources/library/applications/Calculator.wgt/Calculator.wgt/legacy/js/src/jquery.ubwidget.js rename to resources/library/applications/Calculator.wgt/legacy/js/src/jquery.ubwidget.js diff --git a/resources/library/applications/Calculator.wgt/Calculator.wgt/legacy/js/src/ubw-main.js b/resources/library/applications/Calculator.wgt/legacy/js/src/ubw-main.js similarity index 100% rename from resources/library/applications/Calculator.wgt/Calculator.wgt/legacy/js/src/ubw-main.js rename to resources/library/applications/Calculator.wgt/legacy/js/src/ubw-main.js diff --git a/resources/library/applications/Calculator.wgt/Calculator.wgt/legacy/js/vendor/jquery-1.3.2.min.js b/resources/library/applications/Calculator.wgt/legacy/js/vendor/jquery-1.3.2.min.js similarity index 100% rename from resources/library/applications/Calculator.wgt/Calculator.wgt/legacy/js/vendor/jquery-1.3.2.min.js rename to resources/library/applications/Calculator.wgt/legacy/js/vendor/jquery-1.3.2.min.js diff --git a/resources/library/applications/Calculator.wgt/Calculator.wgt/legacy/js/vendor/jquery-ui-1.7.2.custom.min.js b/resources/library/applications/Calculator.wgt/legacy/js/vendor/jquery-ui-1.7.2.custom.min.js similarity index 100% rename from resources/library/applications/Calculator.wgt/Calculator.wgt/legacy/js/vendor/jquery-ui-1.7.2.custom.min.js rename to resources/library/applications/Calculator.wgt/legacy/js/vendor/jquery-ui-1.7.2.custom.min.js diff --git a/resources/library/applications/Calculator.wgt/Calculator.wgt/legacy/js/vendor/jquery.disable.text.select.js b/resources/library/applications/Calculator.wgt/legacy/js/vendor/jquery.disable.text.select.js similarity index 100% rename from resources/library/applications/Calculator.wgt/Calculator.wgt/legacy/js/vendor/jquery.disable.text.select.js rename to resources/library/applications/Calculator.wgt/legacy/js/vendor/jquery.disable.text.select.js diff --git a/resources/library/applications/Calculator.wgt/Calculator.wgt/legacy/js/vendor/jquery.easing.1.2.js b/resources/library/applications/Calculator.wgt/legacy/js/vendor/jquery.easing.1.2.js similarity index 100% rename from resources/library/applications/Calculator.wgt/Calculator.wgt/legacy/js/vendor/jquery.easing.1.2.js rename to resources/library/applications/Calculator.wgt/legacy/js/vendor/jquery.easing.1.2.js diff --git a/resources/library/applications/Calculator.wgt/Calculator.wgt/package.json b/resources/library/applications/Calculator.wgt/package.json similarity index 100% rename from resources/library/applications/Calculator.wgt/Calculator.wgt/package.json rename to resources/library/applications/Calculator.wgt/package.json diff --git a/resources/library/applications/GraphMe.wgt/GraphMe.wgt/Guide_Utilisateur.html b/resources/library/applications/GraphMe.wgt/GraphMe.wgt/Guide_Utilisateur.html deleted file mode 100644 index a6e2d64e..00000000 --- a/resources/library/applications/GraphMe.wgt/GraphMe.wgt/Guide_Utilisateur.html +++ /dev/null @@ -1,201 +0,0 @@ - - - - - GraphMe - Guide utilisateur - - - -

    GraphMe

    - -

    Guide d'utilisation

    -
      -
    1. Introduction
    2. -
    3. Installation
    4. -
    5. Afficher le widget
    6. -
    7. Présentation de l'affichage
    8. -
    9. Dessiner une fonction
    10. -
    11. Se déplacer à travers la fonction
    12. -
    13. Le menu des options
    14. -
    15. Le menu des outils
    16. -
    17. Dessiner plusieurs fonctions
    18. -
    19. Mettre à jour GraphMe
    20. -
    21. Contact
    22. -
    -

    1. Introduction

    -

    - GraphMe est un traceur de fonctions mathématiques que j'ai programmé dans le cadre du travail de maturité gymnasiale. Il est codé en HTML, CSS et JavaScript. Ce grapheur est disponible sur un cd-rom accompagnant mon travail de maturité ainsi que sur internet à la page http://gyb.educanet2.ch/tm-widgets/.ws_gen/?15. Ce document a pour but d'expliquer comment utiliser GraphMe. Il présente ses différentes fonctions ainsi que quelques astuces utiles à l'utilisateur. -

    - -

    2. Installation

    -

    - Le widget que vous pouvez télécharger sur internet est compressé au format zip. Avant de l'utiliser, il est nécessaire de le décompresser. Si vous n'avez aucuns programmes permettant d'ouvrir les fichiers zip, vous pouvez télécharger 7zip sur http://www.7-zip.org/. GraphMe a été conçu pour s'utiliser dans un navigateur internet ou s'intégrer à Uniboard. Pour l'ajouter aux widgets d'Uniboard, il faut copier le dossier « GraphMe.wgt » dans « library/interactive/ ». Par exemple, sous Windows, le widget doit être dans : « C:/Program Files/Uniboard 4/library/interactive/GraphMe.wgt ». Si vous n'avez pas Uniboard, vous pouvez l'obtenir sur http://getuniboard.com/. -

    - -

    3. Afficher le widget

    -
    Image de GraphMe dans un navigateur internet
    -

    - A) Pour afficher le widget dans un navigateur, il faut simplement ouvrir le fichier « Grapheur.xhtml » qui se trouve dans le dossier « GraphMe.wgt » avec votre navigateur internet. Toutefois, certains navigateurs n'arrivent pas à afficher le widget. La liste suivante contient les navigateurs sur lesquels le widget a été testé : -

    -
      -
    • Mozilla Firefox (3.5) : tout fonctionne très bien.
    • -
    • Internet Explorer (8.0) : impossible d'ouvrir le widget, le format .xhtml n'est pas reconnu.
    • -
    • Internet Explorer (pré-version 9.0) : le widget est ouvrable mais seul l'affichage utilisant SVG fonctionne, « canvas » n'est toujours pas supporté.
    • -
    • Konqueror (4.3.4) : le widget s'ouvre mais il y a quelques problèmes d'affichage. Il est quand même utilisable en sélectionnant la méthode d'affichage « canvas » dans les options.
    • -
    • Rekonq (0.5) : le widget fonctionne très bien avec « canvas » mais est un peut lent en utilisant SVG.
    • -
    • Opera (10.51) : le widget est parfaitement utilisable
    • -
    • Google Chrome (4.1) : tout fonctionne également. L'affichage 3D est même très rapide comparé à d'autres navigateurs.
    • -
    -

    - B) Pour ouvrir le widget dans Uniboard, il faut tout d'abord cliquer sur le bouton « Bibliothèque » en haut de la fenêtre. Ensuite, allez dans l'onglet « Interactif » ou autrement, selon les version d'Uniboard, dans l'onglet « Applications ». Cliquez sur l'icône correspondant à « Traceur de fonctions mathématiques » et finalement sur « Ajouter à la page ». -

    -
    Image de GraphMe dans Uniboard
    - - -

    4. Présentation de l'affichage

    -
      -
    1. Champ permettant de définir la fonction à afficher.
    2. -
    3. Bouton affichant la fonction.
    4. -
    5. Bouton servant à ajouter une nouvelle fonction ou à accéder à l'historique des fonctions.
    6. -
    7. Zone d'affichage.
    8. -
    9. Options d'affichage permettant de définir la partie de la fonction à afficher.
    10. -
    11. Boutons de zoom.
    12. -
    13. Bouton servant à changer la couleur.
    14. -
    15. Boutons accédant aux différents menus.
    16. -
    17. Onglet choisissant entre les fonctions 2D et 3D.
    18. -
    19. Bouton de maximisation du widget.
    20. -
    - - -

    5. Dessiner une fonction

    -

    - Pour dessiner une fonction mathématique, il suffit d'entrer celle-ci dans le champ en haut du widget et de cliquer sur le bouton « Afficher ». On peut utiliser différentes fonctions et constantes prédéfinies: -

    -

    Les opérations de base

    -
      -
    • l'addition → +
    • -
    • la soustraction → -
    • -
    • la multiplication → *
    • -
    • la division → /
    • -
    • le modulo → %
    • -
    -

    Les fonctions trigonométriques

    -
      -
    • sin(x), cos(x), tan(x), cot(x)
    • -
    • asin(x), acos(x), atan(x), acot(x) ( ou arcsin(x), arccos(x), arctan(x), arccot(x) )
    • -
    -

    Les racines et les puissances

    -
      -
    • sqrt(x) fait la racine carrée de x
    • -
    • pow(x, y) élève un nombre x à une puissance y, par exemple :
      x² → pow(x, 2)
      (x+3)⁵ → pow((x+3), 5)
    • -
    • root(x, y) fait la racine yème d'un nombre x
    • -
    -

    Les exponentielles et logarithmes

    -
      -
    • exp(x)
    • -
    • ln(x) est le logarithme naturel
    • -
    • log(x) est le logarithme de base 10
    • -
    -

    Les arrondis

    -
      -
    • round(x) → arrondit à l'entier le plus proche
    • -
    • ceil(x) → arrondit à l'entier supérieur
    • -
    • floor(x) → arrondit à l'entier inférieur
    • -
    -

    Autres fonctions prédéfinies

    -
      -
    • abs(x) → la valeur absolue d'un nombre
    • -
    • random() → retourne un nombre aléatoire entre 0 et 1
    • -
    -

    Les constantes

    -
      -
    • pi = 4 * atan(1) ≈ 3.141592653589793
    • -
    • e = exp(1) ≈ 2.718281828459045
    • -
    -

    - Il n'est pas toujours facile de comprendre comment écrire la fonction désirée. En effet, une petite faute et elle ne s'affichera pas. De plus, il ne faut pas oublier de mettre un « * » entre les thermes à multiplier et d'utiliser le point « . » pour écrire des nombres à virgule. -

    -

    - Les fonctions en deux dimensions s'écrivent sous la forme : y=[...] et les fonctions en trois dimensions sous la forme : z=[...]. D'autres exemples sont disponibles dans le menu « aide » du widget si vous avez de la peine à entrer une fonction. -

    - -

    6. Se déplacer à travers la fonction

    -

    - Parfois, lorsqu'on dessine une fonction, la zone visible n'est pas très intéressante. Pour cela, il est utile de déplacer l'affichage ou de définir soi-même la zone à afficher. -

    - -

    - Pour déplacer la fonction, il suffit d'utiliser les flèches de navigation situées dans les quatre bords de l'affichage ou l'outil de déplacement à la souris (dans le menu « Outils »). -

    -

    - Pour définir la zone à afficher, il faut entrer des valeurs personnalisées dans les champs à gauche du widget. La valeur de gauche doit obligatoirement être plus petite que la valeur de droite. Dans le cas contraire, la fonction ne se dessinera pas. -

    -

    - Il est possible de zoomer ou dé-zoomer l'affichage en utilisant les boutons du menu de gauche pour voir une plus grande partie de la fonction. Le zoom peut être réinitialisé dans les options. On peut également cliquer deux fois sur le graphique pour zoomer ainsi que dé-zoomer en maintenant la touche « ctrl » appuyée et en cliquant deux fois. -

    - -

    - Cliquez sur le bouton « Options » à gauche du widget pour ouvrir ce menu. En cliquant à nouveau sur le bouton, cela ferme le menu. Plusieurs onglets permettent de naviguer entre les différentes options. Description des options : -

    -
      -
    • Le thème du widget change l'image de fond ainsi que différentes couleurs. Dans Uniboard, changer le thème permet de rendre le widget plus visible selon qu'il se trouve sur un fond noir ou un fond blanc.
    • -
    • La méthode d'affichage permet de définir la façon dont le graphique de la fonction sera dessiné. Il y a le choix entre six possibilités :
      -
        -
      1. SVG est un format d'image vectoriel qui peut être intégré dans une page HTML. Il est compatible dans la plupart des navigateurs Internet et est très bien supporté par Uniboard, c'est pourquoi il est choisi par défaut.
      2. -
      3. « SVG (une image) » ne présente que peu de différence avec la méthode d'affichage « SVG ». A moins d'un problème de compatibilité, il n'est pas très utile de la choisir.
      4. -
      5. Canvas est une nouvelle balise présente depuis HTML 5.0. Elle permet de définir une zone dans laquelle on peut faire des dessins. Cette méthode d'affichage est plus rapide que d'utiliser du SVG, cependant, elle n'est pas complètement compatible dans Uniboard. Il est conseillé de choisir cette option si vous utilisez le widget ailleurs que dans Uniboard.
      6. -
      7. Canvas (point) utilise aussi canvas, mais dessine des points à la place de lignes.
      8. -
      9. XPM est un format d'image très peu connu. De ce fait, il est compatible qu'avec une minorité de navigateur.
      10. -
      11. La méthode d'affichage « Uniboard » permet de dessiner directement sur la page d'Uniboard avec les outils de dessins.
      12. -
      - -
    • -
    • Le zoom par défaut ainsi que le bouton « réinitialiser le zoom » permettent de remettre l'affichage à l'état qu'il était à l'ouverture du widget. Cela permet aussi de centrer l'affichage sur l'origine.
    • -
    • Les options d'affichage permettent d'afficher ou non la grille, les axes ainsi que l'échelle. Elles sont utiles pour rendre l'affichage plus lisible. Il est également possible de modifier l'épaisseur du trait de la fonction.
    • -
    • Le décalage du graphique n'a en principe pas besoin d'être utilisé. Il permet de déplacer tout l'affichage dans un sens ou dans l'autre, s'il n'est pas centré à la bonne place. Cela peut arriver avec certains navigateurs Internet.
    • -
    • La précision des calculs du graphique permet d'augmenter ou de diminuer le nombre de points calculés. Plus le nombre est petit, plus la précision est grande. Il est utile de mettre cette valeur à « 0.01 » si vous dessinez des fonctions ressemblant à 0.5*sin(10*x*x).
    • -
    • Dans les options 3D, le style d'affichage permet de choisir comment la fonction est dessinée : avec des petits points ou avec des polygones (surfaces). La plupart des fonctions sont plus jolies en dessinant la surface entre les points calculés. Toutefois, c'est mieux de dessiner des points pour des fonctions comme la demi-sphère : sqrt(12-x*x-y*y).
    • -
    • Dans le dernier onglet, vous pouvez modifier d'autres options 3D, comme la précision des calculs ainsi que la couleur de la fonction.
    • -
    - -

    - Ce menu permet tout d'abord de choisir l'action de la souris sur le graphique. Il y a le choix entre trois possibilités : -

    -
      -
    • L'outil sélectionné par défaut est le point. En bougeant la souris, un point se déplace sur la fonction et les coordonnées de ce point sont indiquées en haut à gauche de l'affichage.
    • -
    • Le deuxième outil est le déplacement. Il permet de déplacer le graphique avec la souris. Il suffit de tenir cliqué sur l'affichage et de bouger la souris. Malheureusement, cet outil peut être lent sur certains navigateurs.
    • -
    • Le troisième outil est la tangente. Cet outil dessine la tangente à la fonction au point où se trouve la souris.
    • -
    -

    - Ensuite, ce menu permet aussi de calculer un point de la fonction. Il faut simplement entrer la coordonnée « x » du point dont on veut trouver la coordonnée « y », et appuyer sur le bouton « Évaluer ». Par exemple, si la fonction est « x*x » et qu'on défini « x=2 », alors le point dont la coordonnée sur l'axe des X est « 2 » aura comme coordonnée sur l'axe des Y « 4 ». -

    -

    - Un autre outil très utile est l'étude de fonction. Pour étudier la fonction entrée dans le champ en haut du widget, cliquez sur « démarrer l'étude ». Les études de fonction de ce widget ne sont pas fiables à 100% mais servent de complément à une étude de fonction que l'on fait soi-même. Il se peut que cet outil soit amélioré dans une prochaine version du widget. -

    -

    - Dans ce menu, on trouve également des tests d'affichage. Ils permettent d'essayer les différentes méthodes d'affichage et de voir si elles fonctionnent sur le navigateur internet utilisé. -

    -

    9. Dessiner plusieurs fonctions

    -

    - Pour dessiner plusieurs fonctions simultanément, cliquez sur le petit bouton « + » qui se situe à droite du bouton « Afficher » (point 1). Ensuite, un menu apparaît. -

    - -

    - Dans ce menu, des onglets permettent d'aller à l'historique ou aux fonctions supplémentaires (point 2). Pour ajouter une fonction, cliquez sur le bouton à droite de la fonction actuelle (point 3). En dessous, une liste contient toutes les fonctions affichées (point 4). Pour supprimer une fonction, il faut simplement cliquer sur le bouton « - » à coté de celle-ci. Il est également possible de modifier la couleur de chaque fonction séparément. -

    -

    - L'historique permet de revoir toutes les fonctions qui ont déjà été dessinées. Lorsque l'on clique sur une fonction de l'historique, celle qui est dessinée actuellement est remplacée par la fonction de l'historique. -

    -

    - Dessiner plusieurs fonctions simultanément est uniquement possible avec la méthode d'affichage « canvas » en deux dimensions. Par contre, l'historique est utilisable avec toutes les méthodes d'affichage. -

    -

    10. Mettre à jour GraphMe

    -

    - La dernière version du widget est téléchargeable sur la page suivante : http://gyb.educanet2.ch/tm-widgets/.ws_gen/?15. Pour mettre à jour GraphMe, vous pouvez aussi cliquer sur le bouton "Mise à jour" dans le menu des options. -

    -

    11. Contact

    -

    - Si vous voulez rapporter un bug, avez une suggestion par rapport au widget ou voulez simplement poser une question, merci de me contacter par e-mail à l'adresse : yannick.vessaz@gmail.com. -

    - - \ No newline at end of file diff --git a/resources/library/applications/GraphMe.wgt/GraphMe.wgt/Images/GraphMe.png b/resources/library/applications/GraphMe.wgt/GraphMe.wgt/Images/GraphMe.png deleted file mode 100644 index e9a1740b..00000000 Binary files a/resources/library/applications/GraphMe.wgt/GraphMe.wgt/Images/GraphMe.png and /dev/null differ diff --git a/resources/library/applications/GraphMe.wgt/GraphMe.wgt/Images/Guide_AjouterWidget.png b/resources/library/applications/GraphMe.wgt/GraphMe.wgt/Images/Guide_AjouterWidget.png deleted file mode 100644 index d500ab64..00000000 Binary files a/resources/library/applications/GraphMe.wgt/GraphMe.wgt/Images/Guide_AjouterWidget.png and /dev/null differ diff --git a/resources/library/applications/GraphMe.wgt/GraphMe.wgt/Images/Guide_Deplacement.png b/resources/library/applications/GraphMe.wgt/GraphMe.wgt/Images/Guide_Deplacement.png deleted file mode 100644 index bb954e7f..00000000 Binary files a/resources/library/applications/GraphMe.wgt/GraphMe.wgt/Images/Guide_Deplacement.png and /dev/null differ diff --git a/resources/library/applications/GraphMe.wgt/GraphMe.wgt/Images/Guide_Navigateur.png b/resources/library/applications/GraphMe.wgt/GraphMe.wgt/Images/Guide_Navigateur.png deleted file mode 100644 index 7947c9ec..00000000 Binary files a/resources/library/applications/GraphMe.wgt/GraphMe.wgt/Images/Guide_Navigateur.png and /dev/null differ diff --git a/resources/library/applications/GraphMe.wgt/GraphMe.wgt/Images/Guide_Options.png b/resources/library/applications/GraphMe.wgt/GraphMe.wgt/Images/Guide_Options.png deleted file mode 100644 index fb028187..00000000 Binary files a/resources/library/applications/GraphMe.wgt/GraphMe.wgt/Images/Guide_Options.png and /dev/null differ diff --git a/resources/library/applications/GraphMe.wgt/GraphMe.wgt/Images/Guide_Plus.png b/resources/library/applications/GraphMe.wgt/GraphMe.wgt/Images/Guide_Plus.png deleted file mode 100644 index f32b1399..00000000 Binary files a/resources/library/applications/GraphMe.wgt/GraphMe.wgt/Images/Guide_Plus.png and /dev/null differ diff --git a/resources/library/applications/GraphMe.wgt/GraphMe.wgt/Images/Guide_Presentation.png b/resources/library/applications/GraphMe.wgt/GraphMe.wgt/Images/Guide_Presentation.png deleted file mode 100644 index 071a50af..00000000 Binary files a/resources/library/applications/GraphMe.wgt/GraphMe.wgt/Images/Guide_Presentation.png and /dev/null differ diff --git a/resources/library/applications/GraphMe.wgt/GraphMe.wgt/Images/Guide_Uniboard.png b/resources/library/applications/GraphMe.wgt/GraphMe.wgt/Images/Guide_Uniboard.png deleted file mode 100644 index 6139040b..00000000 Binary files a/resources/library/applications/GraphMe.wgt/GraphMe.wgt/Images/Guide_Uniboard.png and /dev/null differ diff --git a/resources/library/applications/GraphMe.wgt/GraphMe.wgt/Images/onglet1.png b/resources/library/applications/GraphMe.wgt/GraphMe.wgt/Images/onglet1.png deleted file mode 100644 index 1439a8c0..00000000 Binary files a/resources/library/applications/GraphMe.wgt/GraphMe.wgt/Images/onglet1.png and /dev/null differ diff --git a/resources/library/applications/GraphMe.wgt/GraphMe.wgt/Images/onglet2.png b/resources/library/applications/GraphMe.wgt/GraphMe.wgt/Images/onglet2.png deleted file mode 100644 index 5f1dd669..00000000 Binary files a/resources/library/applications/GraphMe.wgt/GraphMe.wgt/Images/onglet2.png and /dev/null differ diff --git a/resources/library/applications/GraphMe.wgt/GraphMe.wgt/JavaScript/Affichage3D.js b/resources/library/applications/GraphMe.wgt/GraphMe.wgt/JavaScript/Affichage3D.js deleted file mode 100755 index 9cf88b63..00000000 --- a/resources/library/applications/GraphMe.wgt/GraphMe.wgt/JavaScript/Affichage3D.js +++ /dev/null @@ -1,407 +0,0 @@ - -var fonction3D = false; -var outilPrecedent = ""; - -function activer3D(){ - if(fonction3D){ // Si activé alors on le désative - fonction3D = false; - outil.choisir(outilPrecedent); - document.getElementById('onglet3D').innerHTML = "3D"; - document.getElementById('zoomButtons').style.display = "block"; - document.getElementById('toolButtons').style.display = "block"; - affichage.init(); - outil.init(); - affichage.initZoom2(document.getElementById('zoomDefaut').value); - } - else{ // Sinon on l'active - fonction3D = true; - outilPrecedent = outil.actuel; - outil.choisir("deplacement"); - document.getElementById('onglet3D').innerHTML = "2D"; - document.getElementById('zoomButtons').style.display = "none"; - document.getElementById('toolButtons').style.display = "none"; - display3D.init(); - outil.liste = []; - outil.init(); - message.supprimer(); - } - cacherMenu(); - if(fonction3D){ - if(document.getElementById('input3D').value == ""){ - afficherMenu('menuFonctions3D'); - } - else{ - display3D.draw(); - } - } - saveOptions(); -} - -var display3D = { - canvas: null, - ctx: null, - width: 0, - height: 0, - centerX: 0, - centerY: 0, - scale: 50, - linePrecision: 0.02, - functionPrecision: 0.2, - angle: Math.PI/8, - zoomValue: 1, - left: -6.5, - right: 6.5, - rouge3D: 0, - vert3D: 1, - bleu3D: 2, - couleurGenerale: 0, - background: "rgba(0, 0, 0, 0.5)", - - init: function(width, height){ - var displayElement = document.getElementById("affichage"); - - // Clear displayElement content - if(displayElement.hasChildNodes()){ - while(displayElement.childNodes.length >= 1 ){ - displayElement.removeChild(displayElement.firstChild); - } - } - - // Setup sizes - this.width = width || displayElement.clientWidth; - this.height = height || displayElement.clientHeight; - this.centerX = this.width / 2; - this.centerY = this.height / 2; - - // Create canvas - this.canvas = document.createElement("canvas"); - this.canvas.width = this.width; - this.canvas.height = this.height; - displayElement.appendChild(this.canvas); - - this.ctx = this.canvas.getContext('2d'); - this.clear(); - }, - - clear: function(){ - var ctx = this.ctx; - ctx.clearRect(0, 0, this.width, this.height); - ctx.fillStyle = this.background; - ctx.fillRect(0, 0, this.width, this.height); - this.axes(); - }, - - draw: function(){ - // var ti = new Date().getTime(); - // this.init(); - this.clear(); - - var txtFct = fct.remplacer(fct.verifier(document.getElementById("input3D").value)); - if(txtFct == ""){ - return; - } - - var func = new CartesianFunction(txtFct); - - if(document.getElementById("selectAffichage3D").value == "points"){ - var coordX, coordY, coordZ; - for(var x=this.left; xthis.left; x1-=this.functionPrecision){ - for(var y1=this.right; y1>this.left; y1-=this.functionPrecision){ - x = x1; - y = y1; - z1 = func.f(x,y); - x2 = x1 - this.functionPrecision; - y2 = y1; - x = x2; - //y = y2; - z2 = func.f(x,y); - x3 = x2; - y3 = y2 - this.functionPrecision; - //x = x3; - y = y3; - z3 = func.f(x,y); - x4 = x3 + this.functionPrecision; - y4 = y3; - x = x4; - //y = y4; - z4 = func.f(x,y); - if(isNaN(z1)||isNaN(z2)||isNaN(z3)||isNaN(z4)){ - continue; - } - this.polygone3D(x1, y1, z1, x2, y2, z2, x3, y3, z3, x4, y4, z4); - } - } - } - } - // var tf = new Date().getTime(); - // window.console.log(tf-ti); - }, - - // Dessine un point à la position (x, y, z) - point3D: function(x, y, z){ - var posX = (Math.sin(this.angle)*x + Math.cos(this.angle)*y)*this.scale; - var posZ = -(z - Math.cos(this.angle)*x/2.6 + Math.sin(this.angle)*y/2.6)*this.scale; - - var opacity = Math.round((1-((5+y*Math.sin(this.angle)-x*Math.cos(this.angle)) / 450)*this.scale)*1000)/1000; - var couleur = new Array(); - couleur[0] = Math.round((5+z)*this.scale); - couleur[1] = Math.round(510 - (5+z)*this.scale); - couleur[2] = this.couleurGenerale; - if(opacity > 1){ opacity = 1; } - if(opacity < 0){ opacity = 0; } - if(couleur[0] > 255){ couleur[0] = 255; } - if(couleur[0] < 0){ couleur[0] = 0; } - if(couleur[1] > 255){ couleur[1] = 255; } - if(couleur[1] < 0){ couleur[1] = 0; } - - var ctx = this.ctx; - ctx.save(); - ctx.translate(this.centerX, this.centerY); - ctx.scale(this.zoomValue, this.zoomValue); - ctx.fillStyle = "rgba("+couleur[this.rouge3D]+","+couleur[this.vert3D]+", "+couleur[this.bleu3D]+", "+opacity+")"; - ctx.fillRect(posX-1, posZ-1, 2, 2); - ctx.restore(); - }, - - // Dessine un polygone qui a comme sommets : (x1, y1, z1) , (x2, y2, z2), (x3, y3, z3) et (x4, y4, z4) - polygone3D: function(x1, y1, z1, x2, y2, z2, x3, y3, z3, x4, y4, z4){ - var ctx = this.ctx; - ctx.save(); - ctx.translate(this.centerX, this.centerY); - ctx.scale(this.zoomValue, this.zoomValue); - ctx.beginPath(); - ctx.moveTo((Math.sin(this.angle)*x1 + Math.cos(this.angle)*y1)*this.scale , -(z1 - Math.cos(this.angle)*x1/2.6 + Math.sin(this.angle)*y1/2.6)*this.scale); - ctx.lineTo((Math.sin(this.angle)*x2 + Math.cos(this.angle)*y2)*this.scale , -(z2 - Math.cos(this.angle)*x2/2.6 + Math.sin(this.angle)*y2/2.6)*this.scale); - ctx.lineTo((Math.sin(this.angle)*x3 + Math.cos(this.angle)*y3)*this.scale , -(z3 - Math.cos(this.angle)*x3/2.6 + Math.sin(this.angle)*y3/2.6)*this.scale); - ctx.lineTo((Math.sin(this.angle)*x4 + Math.cos(this.angle)*y4)*this.scale , -(z4 - Math.cos(this.angle)*x4/2.6 + Math.sin(this.angle)*y4/2.6)*this.scale); - - var opacity = Math.round((1-((5+y1*Math.sin(this.angle)-x1*Math.cos(this.angle)) / 450)*this.scale)*1000)/1000; - var couleur = new Array(); - couleur[0] = Math.round((5+z1)*this.scale); - couleur[1] = Math.round(510 - (5+z1)*this.scale); - couleur[2] = this.couleurGenerale; - if(opacity > 1){ opacity = 1; } - if(opacity < 0){ opacity = 0; } - - // for(var i=0; i 255){ couleur[0] = 255; } - if(couleur[0] < 0){ couleur[0] = 0; } - if(couleur[1] > 255){ couleur[1] = 255; } - if(couleur[1] < 0){ couleur[1] = 0; } - - ctx.fillStyle = "rgba("+couleur[this.rouge3D]+","+couleur[this.vert3D]+", "+couleur[this.bleu3D]+", "+opacity+")"; - ctx.strokeStyle = "rgba(0,0,0,0.1)"; - ctx.closePath(); - ctx.fill(); - ctx.stroke(); - ctx.restore(); - }, - - // Dessine les axes - axes: function(){ - for(var i=-5; i<5; i+=this.linePrecision){ - this.point3D(0, 0, i); - } - for(var i=-5.5; i<5.5; i+=this.linePrecision){ - this.point3D(i, 0, 0); - } - for(var i=-5.5; i<5.5; i+=this.linePrecision){ - this.point3D(0, i, 0); - } - }, - - cube: function(x, y, z, r){ - // Face de devant - for(var i=0; i 255){ - this.couleurGenerale = 255; - } - switch(document.getElementById("selectRouge3D").value){ - case "plus": - this.rouge3D = 0; - rouge = 255; - sensRouge = -1; - break; - case "moins": - this.rouge3D = 1; - rouge = 0; - sensRouge = 1; - break; - case "tout": - this.rouge3D = 2; - rouge = this.couleurGenerale; - sensRouge = 0; - break; - } - switch(document.getElementById("selectVert3D").value){ - case "plus": - this.vert3D = 0; - vert = 255; - sensVert = -1; - break; - case "moins": - this.vert3D = 1; - vert = 0; - sensVert = 1; - break; - case "tout": - this.vert3D = 2; - vert = this.couleurGenerale; - sensVert = 0; - break; - } - switch(document.getElementById("selectBleu3D").value){ - case "plus": - this.bleu3D = 0; - bleu = 255; - sensBleu = -1; - break; - case "moins": - this.bleu3D = 1; - bleu = 0; - sensBleu = 1; - break; - case "tout": - this.bleu3D = 2; - bleu = this.couleurGenerale; - sensBleu = 0; - break; - } - document.getElementById("apercuCouleur3D").innerHTML = "."; - for(var i=0; i.
    "; - } - if(this.ctx){ - this.draw(); - } - }, - - zoom: function(value){ - if(!fonction3D){ - return; - } - this.zoomValue *= value; - this.left /= value; - this.right /= value; - this.functionPrecision /= value; - this.linePrecision /= value; - //alert(this.zoomValue+" ; "+this.left+" ; "+this.right+" ; "+this.functionPrecision+" ; "+this.linePrecision); - this.draw(); - }, - - move: function(value){ - this.angle += Math.PI/32 * value; - this.draw(); - }, - - initZoom: function(){ - this.angle = Math.PI/8; - this.zoomValue = 1; - this.left = -6.5; - this.right = 6.5; - this.draw(); - } -}; - diff --git a/resources/library/applications/GraphMe.wgt/GraphMe.wgt/JavaScript/AffichageUniboard.js b/resources/library/applications/GraphMe.wgt/GraphMe.wgt/JavaScript/AffichageUniboard.js deleted file mode 100755 index 11b3d0ea..00000000 --- a/resources/library/applications/GraphMe.wgt/GraphMe.wgt/JavaScript/AffichageUniboard.js +++ /dev/null @@ -1,299 +0,0 @@ -// -------------------- Uniboard -------------------- -// Ces fonctions permettent de dessiner le graphique directement dans Uniboard. - -function colorToHex(color) { - var addZero = function(myString){ - if (myString.length == 1) return "0" + myString; - else return myString; - } - - var digits = /(.*?)rgb\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/.exec(color); - if (digits == null){ - digits = /(.*?)rgba\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/.exec(color); - } - if(digits == null){ - return ""; - } - var red = parseInt(digits[2]); - var green = parseInt(digits[3]); - var blue = parseInt(digits[4]); - var hexcode = addZero(red.toString(16)) + addZero(green.toString(16)) + addZero(blue.toString(16)); - return '#' + hexcode.toUpperCase(); -} - -function initUniboard(){ - if(!window.uniboard && window.sankore){ - uniboard = sankore; - } - uniboard.centerOn(337,245); -// uniboard.setTool("pen"); - - // Paramètres par défaut - uniboard.lineWidth = 1; - uniboard.fillStyle = "black"; - uniboard.strokeStyle = "black"; - - // Position du curseur pour écrire des nombres - uniboard.cursorX = 0; - uniboard.cursorY = 0; - - // Fonctions - uniboard.strokeColor = function(){ - this.setPenColor(colorToHex(this.strokeStyle)); - }; - - uniboard.fillColor = function(){ - this.setPenColor(colorToHex(this.fillStyle)); - }; - - uniboard.lineTo = function(x, y){ - if(y>-20 && y 0){ - colorPicker.sourisWheelUp(id); - } - else{ - colorPicker.sourisWheelDown(id); - } - } - }, - - sourisWheelUp : function(id){ - switch(id){ - case this.idT: - colorPicker.ajouterT(5); - break; - case this.idO: - colorPicker.ajouterO(0.1); - break; - case this.idSV: - colorPicker.ajouterS(-5); - break; - } - }, - - sourisWheelDown : function(id){ - switch(id){ - case this.idT: - colorPicker.ajouterT(-5); - break; - case this.idO: - colorPicker.ajouterO(-0.1); - break; - case this.idSV: - colorPicker.ajouterS(5); - break; - } - }, - - ajouterT : function(nbr){ - this.teinte += nbr; - if(this.teinte < 0){ - this.teinte = 0; - } - else if(this.teinte > 360){ - this.teinte = 360; - } - this.SVT_RGB(); - }, - - ajouterO : function(nbr){ - this.opacity = Math.round((this.opacity+nbr)*100)/100; - if(this.opacity < 0){ - this.opacity = 0; - } - else if(this.opacity > 1){ - this.opacity = 1; - } - this.SVT_RGB(); - }, - - ajouterS : function(nbr){ - this.saturation += nbr; - if(this.saturation < 0){ - this.saturation = 0; - } - else if(this.saturation > 100){ - this.saturation = 100; - } - this.SVT_RGB(); - }, - - // Lors du déplacement de la souris - moveSV : function(event){ - // Vérifie si on appuie sur la souris - if(this.sourisDown != this.idSV){ - return 0; - } - - var element = this.canvasSV; - var posDivY = 0; - var posDivX = 0; - - // Récupérer la position du canvas par rapport à la page - while(element){ - posDivY = posDivY + element.offsetTop; - posDivX = posDivX + element.offsetLeft; - element = element.offsetParent; - } - - // Définir la saturation et la valeur à partir de la position de la souris - this.saturation = 100-Math.round((event.clientY - posDivY -1)/(this.height+1)*100); - this.valeur = Math.round((event.clientX - posDivX -1)/(this.width+1)*100); - - this.SVT_RGB(); - }, - moveT : function(event){ - if(this.sourisDown != this.idT){ - return 0; - } - var element = this.canvasT; - var posDivY = 0; - - while(element){ - posDivY = posDivY + element.offsetTop; - element = element.offsetParent; - } - - this.teinte = Math.round( (event.clientY - posDivY -0) / (this.height+1)*360); - - this.SVT_RGB(); - }, - - SVT_RGB : function(){ - this.T_rgb(); - this.rouge = Math.round((this.r + (255-this.r) * (-1) * (this.saturation-100) / 100 )* this.valeur / 100); - this.vert = Math.round((this.g + (255-this.g) * (-1) * (this.saturation-100) / 100 )* this.valeur / 100); - this.bleu = Math.round((this.b + (255-this.b) * (-1) * (this.saturation-100) / 100 )* this.valeur / 100); - - this.definirInputs(); - this.dessinerApercu(); - this.dessiner(); - }, - - T_rgb : function(){ - var r,g,b = 0; - var T = this.teinte; - - if (T<60){ - r = 255; - g = T/60*255; - b = 0; - } - else if (T<120){ - r = (255-(T%60/60*255))%256; - g = 255; - b = 0; - } - else if (T<180){ - r = 0; - g = 255; - b = T%60/60*255; - } - else if (T<240){ - r = 0; - g = (255-(T%60/60*255))%256; - b = 255; - } - else if (T<300){ - r = T%60/60*255; - g = 0; - b = 255; - } - else if (T<360){ - r = 255; - g = 0; - b = (255-(T%60/60*255))%256; - } - else{ - r = 255; - g = 0; - b = 0; - } - - this.r = Math.round(r); - this.g = Math.round(g); - this.b = Math.round(b); - }, - - RGB_SVT : function(){ - // Voir http://fr.wikipedia.org/wiki/Teinte_Saturation_Valeur#Conversion_de_RVB_vers_TSV - var r = this.rouge/255; - var g = this.vert/255; - var b = this.bleu/255; - if(!isFinite(r)){ - r = 0; - } - if(!isFinite(g)){ - g = 0; - } - if(!isFinite(b)){ - b = 0; - } - var max = Math.max(r,g,b); - var min = Math.min(r,g,b); - var s, v, t; - // Teinte - switch(max){ - case r: - t = (60 * (g-b)/(max-min) + 360) % 360; - break; - case g: - t = 60 * (b-r)/(max-min) + 120; - break; - case b: - t = 60 * (r-g)/(max-min) + 240; - break; - default: /* case min: */ - t = 0; - break; - } - - // Saturation - if(max == 0){ - s = 0; - } - else{ - s = 1-(min/max); - } - - // Valeur - v = max; - - // Définir les variables - this.saturation = s*100; - this.valeur = v*100; - this.teinte = Math.round(t); - this.T_rgb(); - }, - - dessiner : function(){ - var ctxSV = this.ctxSV; - var ctxT = this.ctxT; - // Fond - ctxSV.fillStyle = "rgb("+this.r+","+this.g+","+this.b+")"; - ctxSV.fillRect(0, 0, this.width, this.height); - // Dégradés - ctxSV.fillStyle = this.lingradV; - ctxSV.fillRect(0, 0, this.width, this.height); - ctxSV.fillStyle = this.lingradS; - ctxSV.fillRect(0, 0, this.width, this.height); - // Souris - var x = Math.round(this.width*this.valeur/100); - var y = Math.round(this.height-this.height*this.saturation/100); - ctxSV.beginPath(); - ctxSV.arc(x, y, this.rayonRonds, 0, 2*Math.PI, true); - ctxSV.strokeStyle = "rgba(255,255,255,0.8)"; - ctxSV.shadowOffsetX = 1; - ctxSV.shadowOffsetY = 1; - ctxSV.shadowColor = "rgba(0,0,0,1)"; - ctxSV.shadowBlur = 2; - ctxSV.lineWidth = 1.5; - ctxSV.stroke(); - - // Fond Teinte - ctxT.fillStyle = this.lingradT; - ctxT.fillRect(0, 0, this.width/10, this.height); - // Souris Teinte - var pos = Math.round(0.99*this.height*this.teinte/360); - ctxT.fillStyle = "rgba(255,255,255,0.8)"; - ctxT.shadowOffsetX = 0; - ctxT.shadowOffsetY = 0; - ctxT.shadowColor = "rgba(0,0,0,1)"; - ctxT.shadowBlur = 3; - ctxT.fillRect(0, pos, this.width/10, 2); - - // Désactiver les ombres - ctxSV.shadowColor = "rgba(0,0,0,0)"; - ctxT.shadowColor = "rgba(0,0,0,0)"; - - this.dessinerO(); - }, - - dessinerApercu : function(){ - document.getElementById("apercuCouleur").style.backgroundColor = "rgba("+this.rouge+","+this.vert+","+this.bleu+","+this.opacity+")"; - }, - - definirInputs : function(){ - document.getElementById("inputValeur").value = this.valeur; - document.getElementById("inputSaturation").value = this.saturation; - document.getElementById("inputTeinte").value = this.teinte; - document.getElementById("inputRouge").value = this.rouge; - document.getElementById("inputVert").value = this.vert; - document.getElementById("inputBleu").value = this.bleu; - document.getElementById("inputOpacity").value = this.opacity; - }, - - recupererInputs : function(){ - this.valeur = parseInt(document.getElementById("inputValeur").value); - this.saturation = parseInt(document.getElementById("inputSaturation").value); - this.teinte = parseInt(document.getElementById("inputTeinte").value); - this.opacity = parseFloat(document.getElementById("inputOpacity").value); - this.SVT_RGB(); - - this.definirInputs(); - this.dessinerApercu(); - this.dessiner(); - }, - recupererInputs2 : function(){ - this.rouge = parseInt(document.getElementById("inputRouge").value); - this.vert = parseInt(document.getElementById("inputVert").value); - this.bleu = parseInt(document.getElementById("inputBleu").value); - this.RGB_SVT(); - - this.definirInputs(); - this.dessinerApercu(); - this.dessiner(); - }, - - moveO : function(event){ - if(this.sourisDown != this.idO){ - return 0; - } - - var element = this.canvasO; - var posDivX = 0; - while(element){ - posDivX = posDivX + element.offsetLeft; - element = element.offsetParent; - } - - this.opacity = Math.round( (event.clientX - posDivX -this.width/10) / (this.width*0.9)*100)/100; - if(this.opacity < 0){ - this.opacity = 0; - } - else if(this.opacity > 1){ - this.opacity = 1; - } - this.dessinerO(); - this.definirInputs(); - this.dessinerApercu(); - }, - - dessinerO : function(){ - var ctx = this.ctxO; - - ctx.shadowBlur = 2; - - // Ligne - if(this.sourisDown == this.idO){ - ctx.shadowColor = "rgba(0,50,100,1)"; - } - else{ - ctx.shadowColor = "rgba(0,0,0,1)"; - } - ctx.globalAlpha = 1; - ctx.shadowOffsetX = 0; - ctx.shadowOffsetY = 0; - ctx.fillStyle = "rgba("+this.rouge+","+this.vert+","+this.bleu+",1)"; - ctx.clearRect(0,0,this.width*1.15,this.height); - ctx.fillRect(this.width/10, this.height/20-1, this.width*0.9, 3); - - // Rond - var x = this.width/10 + this.width*0.9*this.opacity-1; - var y = this.height/20; - if(this.sourisDown == this.idO){ - ctx.fillStyle = "rgba(0,40,80,1)"; - ctx.strokeStyle = "rgba(230,250,255,0.8)"; - } - else{ - ctx.fillStyle = "rgba(0,0,0,1)"; - ctx.strokeStyle = "rgba(255,255,255,0.8)"; - } - ctx.globalAlpha = 0.1+this.opacity*0.9; - ctx.beginPath(); - ctx.arc(x, y, this.rayonRonds+1, 0, 2*Math.PI, true); - ctx.shadowColor = "rgba(0,0,0,1)"; - ctx.shadowOffsetX = 1; - ctx.shadowOffsetY = 1; - ctx.lineWidth = 1; - ctx.fill(); - ctx.stroke(); - - // Petits ronds - ctx.globalAlpha = 1; - ctx.shadowColor = "rgba(0,0,0,1)"; - - ctx.beginPath(); - ctx.arc(8, this.height/20+0.5, this.rayonRonds, 0, 2*Math.PI, true); - ctx.strokeStyle = "rgba(0,0,0,0.5)"; - ctx.shadowOffsetX = 0; - ctx.shadowOffsetY = 0; - ctx.lineWidth = 1; - ctx.stroke(); - - ctx.beginPath(); - ctx.arc(this.width*1.08, this.height/20+0.5, this.rayonRonds, 0, 2*Math.PI, true); - ctx.strokeStyle = "rgba(0,0,0,0.8)"; - ctx.fillStyle = "rgba(0,0,0,0.6)"; - ctx.shadowOffsetX = 0; - ctx.shadowOffsetY = 0; - ctx.lineWidth = 1; - ctx.stroke(); - ctx.fill(); - }, - - exporterCouleur : function(){ - eval(document.getElementById(this.idColor).title+' = "rgba(" + this.rouge +", " + this.vert + ", " + this.bleu +", "+this.opacity+")"'); - document.getElementById(this.idColor).style.backgroundColor = eval(document.getElementById(this.idColor).title); - }, - - fermer : function(){ - colorPicker.exporterCouleur(); - if(colorPicker.idColor == 'buttonColor'){ - cacherMenu(); - } - else if(dernierMenu == "menuFonctions"){ - editeur.getOptions(); - afficherMenu(dernierMenu); - } - else{ - cacherMenu(); - } - actualiserGraph(); - } -}; - - diff --git a/resources/library/applications/GraphMe.wgt/GraphMe.wgt/JavaScript/Interface.js b/resources/library/applications/GraphMe.wgt/GraphMe.wgt/JavaScript/Interface.js deleted file mode 100644 index e90111e5..00000000 --- a/resources/library/applications/GraphMe.wgt/GraphMe.wgt/JavaScript/Interface.js +++ /dev/null @@ -1,274 +0,0 @@ - -// -------------------- Fonctions de l'interface -------------------- - - -var menuActuel = "divInputRapide" -var dernierMenu = "" - -var pleinEcran = false -var maximise = true -var tailleFenetreX = window.innerWidth -var tailleFenetreY = window.innerHeight -var AncienneMethodeAffichage = 0 - -// Cette fonction permet d'afficher le menu désiré. -// Il faut lui donner l'id du menu à afficher. -function afficherMenu(id){ - if (menuActuel == id){ - cacherMenu() - dernierMenu = false; - } - else { - if (menuActuel != ""){ - dernierMenu = menuActuel; - cacherMenu() - } - menuActuel = id - document.getElementById(id).style.display = "block" - message.supprimer(); - } -} - -// Permet de cacher le menu actuellement affiché -function cacherMenu(){ - if(menuActuel != ""){ - document.getElementById(menuActuel).style.display = "none" - menuActuel = "" - } -} - -// Affiche un message d'erreur -function afficherErreur(message){ - document.getElementById("spanErreurFct").innerHTML = message; - afficherMenu("erreurFct"); -} - -// Messages d'info - -var message = { - liste : [], - ajouter : function(x, y, contenu){ - var newDiv = document.createElement("div"); - newDiv.style.left = x + "px"; - newDiv.style.top = y + "px"; - - var textDiv = document.createElement("span"); - textDiv.innerHTML = contenu; - newDiv.appendChild(textDiv); - - document.getElementById("divMessages").appendChild(newDiv); - }, - supprimer : function(){ - var div = document.getElementById("divMessages"); - div.innerHTML = ""; - } -}; - - -// ---- Minimiser ou Maximiser le widget (pour Uniboard) ---- -function miniMax(){ - if (maximise){ - maximise = false - document.getElementById('affichage').style.display = "none" - document.getElementById('gauche').style.display = "none" - document.getElementById('miniMax').innerHTML = "+" - window.resizeTo(400,50) - AncienneMethodeAffichage = document.getElementById("selectMethodeAffichage").selectedIndex - document.getElementById("selectMethodeAffichage").selectedIndex = "3" - } - else{ - maximise = true - document.getElementById('affichage').style.display = "block" - document.getElementById('gauche').style.display = "block" - document.getElementById('miniMax').innerHTML = "-" - window.resizeTo(tailleFenetreX,tailleFenetreY) - document.getElementById("selectMethodeAffichage").selectedIndex = AncienneMethodeAffichage - } -} - -// Affiche le menu + -function menuFonctions(){ - if(fonction3D){ - afficherMenu('menuHistorique'); - } - else{ - afficherMenu('menuFonctions'); - editeur.editer(0); - } -} - -// Action des petits bouton + et - dans les options -function boutonPlus(id, nombre){ - var element = document.getElementById(id) - var valeurActuelle = Number(element.value) - element.value = valeurActuelle + nombre -} -function boutonMoins(id, nombre){ - var element = document.getElementById(id) - var valeurActuelle = Number(element.value) - if(valeurActuelle>=nombre*2){ - element.value = valeurActuelle - nombre - } -} - -// Changer de thème -function changerTheme(theme){ - var positions = [ - "top-left", - "top", - "top-right", - "right", - "bottom-right", - "bottom", - "bottom-left", - "left", - "center" - ]; - for(var i=0; i'; -// txtHTML += ''; -// txtHTML += ''; - } - document.getElementById("newVersion").innerHTML = txtHTML; - - afficherMenu("mAj"); -} - -function checkboxMaJ(){ - if(versionOnline()){ - afficherMenu('erreurMaJ') - document.getElementById("checkMaJ").checked = false - } - else{ - if(document.getElementById("checkMaJ").checked){ - loadOptions() - document.getElementById("checkMaJ").checked = true - saveOptions() - } - else{ - loadOptions() - document.getElementById("checkMaJ").checked = false - saveOptions() - } - } -} - -function majAuto(){ -// var audio = new Audio(); -// audio.src = "version.ogg"; -// audio.load(); -// setTimeout(function(){ -// window.console.log(" "+audio.duration); -// }, 0) - if(versionOnline()){ - document.getElementById("cacheMaJ").style.display = "block"; - document.getElementById("checkMaJ").disabled = true; - document.getElementById("checkMaJ").checked = true; - } - else{ - if(document.getElementById("checkMaJ").checked){ - afficherMenu('demandeMaJ'); - } - } -} -function majAccept(){ -// document.location.href='http://gyb.educanet2.ch/tm-widgets/yannick/GraphMe.wgt/Grapheur.html'; - for(var i=0; i' - window.open(lien, "_blank") -} diff --git a/resources/library/applications/GraphMe.wgt/GraphMe.wgt/JavaScript/Outils.js b/resources/library/applications/GraphMe.wgt/GraphMe.wgt/JavaScript/Outils.js deleted file mode 100755 index 82f9aa91..00000000 --- a/resources/library/applications/GraphMe.wgt/GraphMe.wgt/JavaScript/Outils.js +++ /dev/null @@ -1,550 +0,0 @@ - -// -------------------- Fonctions des outils -------------------- - - -// Permet d'afficher la valeur en "y" pour un point donné en "x" -function calculerPoint() { - x = document.getElementById("inputX").value; - document.getElementById("outputX").innerHTML = " f(x) = "+fct.list[editeur.idFct].f(x)+""; - //alert("Si x = "+x+" \nf(x) = "+eval(fonction)+"") -} - - -// Historique - -var historique = { - liste : [], - - actualiser : function(){ - var texteHistorique = "" - for(var i=0; i'; - texteHistorique += this.liste[i].readableText(); - texteHistorique += '
    '; - } - document.getElementById("spanHistorique").innerHTML = texteHistorique - document.getElementById("divHistorique").scrollTop = 0 - }, - - use : function(index){ - fct.add(this.liste[index]); - }, - - ajouter : function(func){ - if(func.fct == ""){ - return; - } - for(var i=0; i= 1 ){ - element.removeChild(element.firstChild); - } - } - - this.width = width || element.clientWidth; - this.height = height || element.clientHeight; - -// element.style.width = affichage.largeur +"px"; -// element.style.height = affichage.hauteur +"px"; -// element.style.left = document.getElementById(affichage.id).offsetLeft+1 +"px"; -// element.style.top = document.getElementById(affichage.id).offsetTop+1 +"px"; - - this.canvas = document.createElement("canvas"); - this.canvas.width = this.width; - this.canvas.height = this.height; - element.appendChild(this.canvas); - this.ctx = this.canvas.getContext('2d'); - }, - - // Permet de changer d'outil et de faire différentes actions lors du choix de l'outil - choisir : function(nom){ - document.getElementById("pointTool").className = "toolButton"; - document.getElementById("moveTool").className = "toolButton"; - document.getElementById("tangentTool").className = "toolButton"; - switch(nom){ - case 'point': - document.getElementById("pointTool").className += " selectedTool"; - break; - case 'deplacement': - document.getElementById("moveTool").className += " selectedTool"; - break; - case 'tangente': - document.getElementById("tangentTool").className += " selectedTool"; - break; - } - if(nom == 'deplacement'){ - document.getElementById("eventAffichage").style.cursor = "move"; - } - else{ - document.getElementById("eventAffichage").style.cursor = "auto"; - } - this.dessinerListe(); - this.actuel = nom; - saveOptions(); - }, - - // Gestion des événements reçus de l'objet souris - move : function(x, y, xInit, yInit, active){ - switch(this.actuel){ - case "deplacement": - if(active){ - this.deplacement(x, y, xInit, yInit); - } - break; - case "point": - this.point(x, y); - break; - case "tangente": - this.tangente(x, y); - break; - } - }, - - down : function(x, y){ - switch(this.actuel){ - case "point": - this.point(x, y, true) - break; - case "tangente": - this.tangente(x, y, true); - break; - } - }, - - // Fonctions des outils - deplacement : function(x, y, xInit, yInit){ - var valeurX = (x-xInit)/affichage.multX; - var valeurY = (yInit-y)/affichage.multY; - if(Math.round(Math.abs(valeurX)) > 0){ - if(fonction3D){ - affichage.deplacerX(Math.round(2*valeurX)/2); - } - else{ - affichage.deplacerX(-Math.round(2*valeurX)/2); - } - souris.xInit = x; - } - if(Math.round(Math.abs(valeurY)) > 0){ - affichage.deplacerY(-Math.round(2*valeurY)/2); - souris.yInit = y; - } - }, - - point : function(sourisX, sourisY, ajouterDansListe){ - var ctx = new Object(); - ctx = this.ctx; - - // Dessiner les points et tangentes supplémentaires - this.dessinerListe(); - - for(var i=0; i func.endAngle){ - continue; - } - } - var x = func.getX(t); - var y = func.getY(t); - - // Afficher les coordonnées et le point sous la souris - if(!isNaN(x) && !isNaN(y)){ - if(ajouterDansListe){ - this.ajouterPoint(x, y, func.couleur); - } - this.dessinerPoint(x, y, func.couleur); - } - } - }, - dessinerPoint : function(x, y, couleur){ - var ctx = new Object(); - ctx = this.ctx; - - // Conversion des coordonnées - var posX = coordToPosX(x) + 1; - var posY = coordToPosY(y) + 1; - - ctx.shadowColor = couleur; - ctx.shadowBlur = 4; - - // Texte - var txtPos = "("+Math.round(x*100)/100+";"+Math.round(y*100)/100+")"; - ctx.fillStyle = "rgba(255,255,255,0.5)"; - try{ - ctx.bulle(posX+7, posY-7, txtPos.length*5.5, 20); - } - catch(err){ - ctx.fillRect(posX+7, posY-27, txtPos.length*5.5, 20); - } - - ctx.fillStyle = "black"; - ctx.shadowColor = "black"; - ctx.shadowOffsetX = 1; - ctx.shadowOffsetY = 1; - ctx.shadowBlur = 2; - ctx.fillText(txtPos, posX+8+txtPos.length/4, posY-13); - - // Rond - ctx.beginPath(); - ctx.arc(posX, posY, 4, 0, 2*Math.PI, true); - - ctx.shadowColor = couleur; - ctx.shadowOffsetX = 0; - ctx.shadowOffsetY = 0; - ctx.shadowBlur = 4; - - ctx.fillStyle = "rgba(0,0,0,1)"; - ctx.strokeStyle = "rgba(255,255,255,0.8)"; - ctx.lineWidth = 1; - ctx.fill() - ctx.stroke(); - }, - - tangente : function(sourisX, sourisY, ajouterDansListe){ - var delta = 0.001; - - var ctx = new Object(); - ctx = this.ctx; - - // Dessiner les points et tangentes supplémentaires - this.dessinerListe(); - - // Dessiner les tangentes des fonctions - for(var i=0; i func.endAngle){ - continue; - } - } - var t1 = t + delta; - var x = func.getX(t); - var x1 = func.getX(t1); - // Calcul de deux valeurs y et de la pente - var y = func.getY(t); - var y1 = func.getY(t1); - var pente; - if(x1 != x){ - pente = (y1-y)/(x1-x); - } - else{ - pente = Number.POSITIVE_INFINITY; - } - - // Dessiner la pente; - if(!isNaN(x) && !isNaN(y) && !isNaN(y1)){ - if(ajouterDansListe){ - this.ajouterTangente(x, y, pente, func.couleur); - } - this.dessinerTangente(x, y, pente, func.couleur); - } - } - }, - dessinerTangente : function(x, y, pente, couleur){ - var ctx = new Object(); - ctx = this.ctx; - - // Conversion des coordonnées - var posX = coordToPosX(x) + 1; - var posY = coordToPosY(y) + 1; - - // Carré - ctx.shadowColor = couleur; - ctx.shadowBlur = 4; - - ctx.fillStyle = "white"; - ctx.fillRect(posX-3, posY-3, 6, 6); - - // Pente - ctx.strokeStyle = "white"; - ctx.lineWidth = 2; - ctx.beginPath(); - var pente2 = pente * (affichage.hauteur/affichage.largeur) * (affichage.xDroite-affichage.xGauche)/(affichage.yHaut-affichage.yBas); - ctx.moveTo(0, posY+posX*pente2); - ctx.lineTo(affichage.largeur, posY+posX*pente2-affichage.largeur*pente2); - ctx.stroke(); - - // Texte - var txtPente; - if(isFinite(pente)){ - txtPente = pente.toFixed(2); - } - else{ - txtPente = "∞" - } - ctx.fillStyle = "rgba(255,255,255,0.5)"; - try{ - ctx.bulle(posX+7, posY-7, txtPente.length*5.5+1, 20); - } - catch(err){ - ctx.fillRect(posX+7, posY-27, txtPente.length*5.5, 20); - } - - ctx.fillStyle = "black"; - ctx.shadowColor = "black"; - ctx.shadowOffsetX = 1; - ctx.shadowOffsetY = 1; - ctx.shadowBlur = 2; - ctx.fillText(txtPente, posX+8+txtPente.length/4, posY-13); - }, - - ajouterPoint : function(x, y, couleur){ - var newPoint = { - x : x, - y : y, - couleur : couleur, - dessiner : function(){ - outil.dessinerPoint(this.x, this.y, this.couleur); - } - }; - this.liste.push(newPoint); - }, - ajouterTangente : function(x, y, pente, couleur){ - var newTangente = { - x : x, - y : y, - pente : pente, - couleur : couleur, - dessiner : function(){ - outil.dessinerTangente(this.x, this.y, this.pente, this.couleur); - } - }; - this.liste.push(newTangente); - }, - dessinerListe : function(){ - if(!this.ctx){ - return; - } - this.ctx.clearRect(0,0,affichage.largeur*2,affichage.hauteur*2); - for(var i=0; i affichage.largeur+affichage.offsetLeft || posX < affichage.offsetLeft || posY > affichage.hauteur+affichage.offsetTop || posX < affichage.offsetTop){ - continue; - } - var txt = '
    '; - afficherMenu('menuSaveImage'); - - display3D.background = background; - setTimeout(function(){ - display3D.init(); - display3D.draw(); - }, 1); - } - else{ - if(affichage.methode == "canvas"){ - var l = affichage.largeur; - var h = affichage.hauteur; - var c = affichage.couleurFond; - - affichage.largeur = parseInt(document.getElementById("saveWidth").value); - affichage.hauteur = parseInt(document.getElementById("saveHeight").value); - affichage.couleurFond = backgroundSauvegarde; - - var newDiv = document.createElement("div"); - affichage.init(newDiv, userWidth, userHeight); - - outil.init(); - outil.dessinerListe(); - affichage.ctx.drawImage(outil.canvas,0,0); - - var dataURL; - if(document.getElementById("selectSaveType").value == "jpg"){ - dataURL = affichage.canvas.toDataURL("image/jpeg"); - } - else{ - dataURL = affichage.canvas.toDataURL(); - } - document.getElementById("saveImageContent").innerHTML = ''; - afficherMenu('menuSaveImage'); - - affichage.largeur = l; - affichage.hauteur = h; - affichage.couleurFond = c; - affichage.init(); - outil.init(); - } - else if(affichage.methode == "svg"){ - window.open("JavaScript/AffichageSVG.svg"); - } - } -} diff --git a/resources/library/applications/GraphMe.wgt/GraphMe.wgt/JavaScript/Sauvegardes.js b/resources/library/applications/GraphMe.wgt/GraphMe.wgt/JavaScript/Sauvegardes.js deleted file mode 100644 index 54b3829d..00000000 --- a/resources/library/applications/GraphMe.wgt/GraphMe.wgt/JavaScript/Sauvegardes.js +++ /dev/null @@ -1,106 +0,0 @@ -// Fonctions permettant de sauvegarder les options - -var optionsLoaded = false; - -function setCookie(nom,valeur){ - var jours = 545; // Durée de validité des cookies - var date = new Date(); - date.setDate(date.getDate()+jours); - document.cookie = nom + "=" + escape(valeur) + "; expires="+date.toGMTString(); -} - -function getCookie(nom){ - var start = 0; - var end = 0; - if(document.cookie.length>0){ - start = document.cookie.indexOf(nom + "="); - if(start!=-1){ - start = start + nom.length+1; - end = document.cookie.indexOf(";",start); - if(end==-1){ - end = document.cookie.length; - } - return unescape(document.cookie.substring(start,end)); - } - } - return ""; -} - -function delCookie(nom){ - var date = new Date(); - date.setDate(date.getDate()-1); - document.cookie = nom + "=; expires="+date.toGMTString(); -} - -function saveOptions(){ - if(!optionsLoaded){ - return; - } - var state = JSON.stringify(widget.getState()); - if(window.sankore){ - sankore.setPreference("state", state); - } - else if(navigator.cookieEnabled){ - setCookie("state", state); - } -} - -function loadOptions(){ - var state; - if(window.sankore){ - state = sankore.preference("state", null); - } - else if(navigator.cookieEnabled){ - state = getCookie("state"); - } - if(!state){ - optionsLoaded = true; - return; - } - var stateObject = JSON.parse(state); - var goodState = widget.getState(); - if(!checkState(stateObject, goodState)){ - loadOptionsFailed(); - } - try{ - widget.setState(stateObject); - optionsLoaded = true; - } - catch(e){ - loadOptionsFailed(); - } -} - -function loadOptionsFailed(){ - var text = "Unable to load the saved parameters..."; - try{ - text = languages.getText("unableLoadParameters"); - } - catch(e){} - alert(text); - delOptions(); -} - -function checkState(state, goodState){ - for(var i in goodState){ - if(! i in state){ - return false; - } - } - return true; -} - -function delOptions(){ - if(window.sankore){ - sankore.setPreference("state", ""); - } - else if(navigator.cookieEnabled){ - delCookie("state"); - } -} - -function alertOptions(){ -// alert("Options actuellement sauvegardées\n------------------------------------------------------------\n"+document.cookie); - document.getElementById("divAlertCookies").innerHTML = document.cookie; - afficherMenu("menuAlertCookies"); -} diff --git a/resources/library/applications/GraphMe.wgt/GraphMe.wgt/Style/Guide_Utilisateur.css b/resources/library/applications/GraphMe.wgt/GraphMe.wgt/Style/Guide_Utilisateur.css deleted file mode 100644 index 166f2cfc..00000000 --- a/resources/library/applications/GraphMe.wgt/GraphMe.wgt/Style/Guide_Utilisateur.css +++ /dev/null @@ -1,41 +0,0 @@ -body{ - background-color: rgba(255,255,255,0.6); -} -h1{ - font-size: 250%; - text-align: center; - text-decoration: underline; -} -h2{ - margin-top: 40px; -} -h4{ - margin-top: 20px; - margin-bottom: 0px; -} -img{ - display: block; - margin-left: auto; - margin-right: auto; -} -p{ - text-align: justify; -} -li{ - text-align: justify; -} -.droite{ - float: right; - font-size: 80%; - font-style: italic; - margin: 5px; -} -.gauche{ - float: left; - font-size: 80%; - font-style: italic; -} -#Sommaire{ - margin-top: 100px; - margin-bottom: 100px; -} \ No newline at end of file diff --git a/resources/library/applications/GraphMe.wgt/GraphMe.wgt/config.xml b/resources/library/applications/GraphMe.wgt/GraphMe.wgt/config.xml deleted file mode 100755 index dcac2d1a..00000000 --- a/resources/library/applications/GraphMe.wgt/GraphMe.wgt/config.xml +++ /dev/null @@ -1,10 +0,0 @@ - - - Mathematical function plotter - - diff --git a/resources/library/applications/GraphMe.wgt/GraphMe.wgt/icon.png b/resources/library/applications/GraphMe.wgt/GraphMe.wgt/icon.png deleted file mode 100644 index 57e41ab8..00000000 Binary files a/resources/library/applications/GraphMe.wgt/GraphMe.wgt/icon.png and /dev/null differ diff --git a/resources/library/applications/GraphMe.wgt/GraphMe.wgt/version.html b/resources/library/applications/GraphMe.wgt/GraphMe.wgt/version.html deleted file mode 100644 index 1f113fd2..00000000 --- a/resources/library/applications/GraphMe.wgt/GraphMe.wgt/version.html +++ /dev/null @@ -1,11 +0,0 @@ - - - - - - GraphMe - Version - - - 2.1.0 (2018-06-04) - - diff --git a/resources/library/applications/GraphMe.wgt/GraphMe.wgt/Grapheur.html b/resources/library/applications/GraphMe.wgt/Grapheur.html similarity index 100% rename from resources/library/applications/GraphMe.wgt/GraphMe.wgt/Grapheur.html rename to resources/library/applications/GraphMe.wgt/Grapheur.html diff --git a/resources/library/applications/GraphMe.wgt/Grapheur.xhtml b/resources/library/applications/GraphMe.wgt/Grapheur.xhtml deleted file mode 100644 index bfca757c..00000000 --- a/resources/library/applications/GraphMe.wgt/Grapheur.xhtml +++ /dev/null @@ -1,1586 +0,0 @@ - - - - - - - - - Graphics - - - - - - - - - - - - - - - - - - - Function: - - - -
    ^
    - -
    - - - -
    - -
    - X-axis:
    - ...
    - Y-axis:
    - ... -
    Zoom:
    -

    - Color:
    -
    -

    -
    -
    - Menus: - - - - - - - -
    -
    - - - - -
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    -
    -

    ------- Error -------

    -
    - Impossible to draw the function ... -

    - Error in expression or unexpected char:
    - -

    - -
    - - -
    -

    ------- Error -------

    - Runtime error! Check your function and try to draw it again. -
    - Description and parameters various functions which are available to help. -

    - - -
    - - - - - -
    -
    -

    ------- Error -------

    -

    - Update to latest version is not available because you already use the latest version. -


    - -
    - - -
    -
    -

    Options saved!

    -
    - -
    - - -
    -
    -
    -
    - - -
    -
    o
    -
    - - -
    3D
    - - - - diff --git a/resources/library/applications/GraphMe.wgt/Guide_Utilisateur.html b/resources/library/applications/GraphMe.wgt/Guide_Utilisateur.html index 2caf6a23..a6e2d64e 100644 --- a/resources/library/applications/GraphMe.wgt/Guide_Utilisateur.html +++ b/resources/library/applications/GraphMe.wgt/Guide_Utilisateur.html @@ -2,199 +2,200 @@ - GraphMe - User's guide. + GraphMe - Guide utilisateur

    GraphMe

    -

    User's guide

    +

    Guide d'utilisation

    1. Introduction
    2. Installation
    3. -
    4. Review widget
    5. -
    6. View presentation
    7. -
    8. Drawing the function
    9. -
    10. Offset function
    11. -
    12. The options menu
    13. -
    14. the tools menu
    15. -
    16. Drawing some functions
    17. -
    18. GraphMe update
    19. +
    20. Afficher le widget
    21. +
    22. Présentation de l'affichage
    23. +
    24. Dessiner une fonction
    25. +
    26. Se déplacer à travers la fonction
    27. +
    28. Le menu des options
    29. +
    30. Le menu des outils
    31. +
    32. Dessiner plusieurs fonctions
    33. +
    34. Mettre à jour GraphMe
    35. Contact

    1. Introduction

    - GraphMe is a app that is developed using html, javascript and css. It can be used for drawing graphs. This document must explain how to use GraphMe. This app have a different functions and some useful advices for users. + GraphMe est un traceur de fonctions mathématiques que j'ai programmé dans le cadre du travail de maturité gymnasiale. Il est codé en HTML, CSS et JavaScript. Ce grapheur est disponible sur un cd-rom accompagnant mon travail de maturité ainsi que sur internet à la page http://gyb.educanet2.ch/tm-widgets/.ws_gen/?15. Ce document a pour but d'expliquer comment utiliser GraphMe. Il présente ses différentes fonctions ainsi que quelques astuces utiles à l'utilisateur.

    2. Installation

    - This widget can be downloaded from the Internet in a packed format. Before using it must be unpacked. GraphMe was developed for using in web-browsers and integration in Sankore. To add this app in Sankore you should copy folder named "GraphMe.wgt" in "../library/interactive/". For example, on "windows OS" GraphMe must be in folder with following path: "C: / Program Files / Sankore 4/library/interactive/GraphMe.wgt". If you have no Sankore then you can get it on http://getuniboard.com/. -

    + Le widget que vous pouvez télécharger sur internet est compressé au format zip. Avant de l'utiliser, il est nécessaire de le décompresser. Si vous n'avez aucuns programmes permettant d'ouvrir les fichiers zip, vous pouvez télécharger 7zip sur http://www.7-zip.org/. GraphMe a été conçu pour s'utiliser dans un navigateur internet ou s'intégrer à Uniboard. Pour l'ajouter aux widgets d'Uniboard, il faut copier le dossier « GraphMe.wgt » dans « library/interactive/ ». Par exemple, sous Windows, le widget doit être dans : « C:/Program Files/Uniboard 4/library/interactive/GraphMe.wgt ». Si vous n'avez pas Uniboard, vous pouvez l'obtenir sur http://getuniboard.com/. +

    -

    3. Review widget

    -
    Display GraphMe in browsers
    +

    3. Afficher le widget

    +
    Image de GraphMe dans un navigateur internet

    - A) To display this app in browser just enough to open the file named "Grapheur.xhtml" (it's in root folder) with your browser. But some browsers can not display app correctly. Below is the list of browsers that are able to display app: + A) Pour afficher le widget dans un navigateur, il faut simplement ouvrir le fichier « Grapheur.xhtml » qui se trouve dans le dossier « GraphMe.wgt » avec votre navigateur internet. Toutefois, certains navigateurs n'arrivent pas à afficher le widget. La liste suivante contient les navigateurs sur lesquels le widget a été testé :

      -
    • Mozilla Firefox (3.5) : Everything works fine.
    • -
    • Internet Explorer (8.0) : Cannot open a widget, because .xhtml format is not recognized.
    • -
    • Internet Explorer (pré-version 9.0) : Widget works but just using SVG. Canvas not supported yet.
    • -
    • Konqueror (4.3.4) : Widget can be opened but there is some problems with displaying. It still occur when choosed display method "canvas".
    • -
    • Opera (10.51) : Widget quite useful.
    • -
    • Google Chrome (4.1) : Everything works very nice! 3D-display is faster as compared with other browsers.
    • +
    • Mozilla Firefox (3.5) : tout fonctionne très bien.
    • +
    • Internet Explorer (8.0) : impossible d'ouvrir le widget, le format .xhtml n'est pas reconnu.
    • +
    • Internet Explorer (pré-version 9.0) : le widget est ouvrable mais seul l'affichage utilisant SVG fonctionne, « canvas » n'est toujours pas supporté.
    • +
    • Konqueror (4.3.4) : le widget s'ouvre mais il y a quelques problèmes d'affichage. Il est quand même utilisable en sélectionnant la méthode d'affichage « canvas » dans les options.
    • +
    • Rekonq (0.5) : le widget fonctionne très bien avec « canvas » mais est un peut lent en utilisant SVG.
    • +
    • Opera (10.51) : le widget est parfaitement utilisable
    • +
    • Google Chrome (4.1) : tout fonctionne également. L'affichage 3D est même très rapide comparé à d'autres navigateurs.

    - B) To open widget in Sankore you should first open folder "Application" that is at the left of the screen. Then you must find this app and add it to the page. + B) Pour ouvrir le widget dans Uniboard, il faut tout d'abord cliquer sur le bouton « Bibliothèque » en haut de la fenêtre. Ensuite, allez dans l'onglet « Interactif » ou autrement, selon les version d'Uniboard, dans l'onglet « Applications ». Cliquez sur l'icône correspondant à « Traceur de fonctions mathématiques » et finalement sur « Ajouter à la page ».

    -
    Display GraphMe in Sankore
    +
    Image de GraphMe dans Uniboard
    -

    4. View presentation

    +

    4. Présentation de l'affichage

      -
    1. Place for functions display.
    2. -
    3. Button for beginning the work.
    4. -
    5. Button for adding new function or for getting access to functions history.
    6. -
    7. Display.
    8. -
    9. Parameters that define the part of graph that will be displayed.
    10. -
    11. Buttons for zoom.
    12. -
    13. Button for color changing.
    14. -
    15. Buttons for access to menu.
    16. -
    17. Tab-button that toggles 2D and 3D modes.
    18. -
    19. Button for maximize the widget.
    20. +
    21. Champ permettant de définir la fonction à afficher.
    22. +
    23. Bouton affichant la fonction.
    24. +
    25. Bouton servant à ajouter une nouvelle fonction ou à accéder à l'historique des fonctions.
    26. +
    27. Zone d'affichage.
    28. +
    29. Options d'affichage permettant de définir la partie de la fonction à afficher.
    30. +
    31. Boutons de zoom.
    32. +
    33. Bouton servant à changer la couleur.
    34. +
    35. Boutons accédant aux différents menus.
    36. +
    37. Onglet choisissant entre les fonctions 2D et 3D.
    38. +
    39. Bouton de maximisation du widget.
    -

    5. Drawing the function

    +

    5. Dessiner une fonction

    - To draw mathematical function just enter it at the top of widget and press button "Display". You can use different functions and predefined constants. + Pour dessiner une fonction mathématique, il suffit d'entrer celle-ci dans le champ en haut du widget et de cliquer sur le bouton « Afficher ». On peut utiliser différentes fonctions et constantes prédéfinies:

    -

    Basic operations:

    +

    Les opérations de base

      -
    • Addition → +
    • -
    • Subtraction → -
    • -
    • Multiplication → *
    • -
    • Division → /
    • -
    • Mod → %
    • +
    • l'addition → +
    • +
    • la soustraction → -
    • +
    • la multiplication → *
    • +
    • la division → /
    • +
    • le modulo → %
    -

    Trigonometric functions

    +

    Les fonctions trigonométriques

    • sin(x), cos(x), tan(x), cot(x)
    • asin(x), acos(x), atan(x), acot(x) ( ou arcsin(x), arccos(x), arctan(x), arccot(x) )
    -

    Square roots and degrees

    +

    Les racines et les puissances

      -
    • sqrt(x) is square root from x
    • -
    • pow(x, y). Variable x to the power y. For examle:
      x² → pow(x, 2)
      (x+3)⁵ → pow((x+3), 5)
    • -
    • root(x, y). Root y of x
    • +
    • sqrt(x) fait la racine carrée de x
    • +
    • pow(x, y) élève un nombre x à une puissance y, par exemple :
      x² → pow(x, 2)
      (x+3)⁵ → pow((x+3), 5)
    • +
    • root(x, y) fait la racine yème d'un nombre x
    -

    Exponential and logarithm

    +

    Les exponentielles et logarithmes

    • exp(x)
    • -
    • ln(x) is natural logarithm.
    • -
    • log(x) is decimal logarithm.
    • +
    • ln(x) est le logarithme naturel
    • +
    • log(x) est le logarithme de base 10
    -

    Rounding

    +

    Les arrondis

      -
    • round(x) → rounding to the nearest whole number
    • -
    • ceil(x) → rounding to the nearest whole number in a big way
    • -
    • floor(x) → rounding to the nearest whole number the smaller side
    • +
    • round(x) → arrondit à l'entier le plus proche
    • +
    • ceil(x) → arrondit à l'entier supérieur
    • +
    • floor(x) → arrondit à l'entier inférieur
    -

    Other predefined function

    +

    Autres fonctions prédéfinies

      -
    • abs(x) → Absolute number value
    • -
    • random() → Return random number between 0 and 1
    • +
    • abs(x) → la valeur absolue d'un nombre
    • +
    • random() → retourne un nombre aléatoire entre 0 et 1
    -

    Also are available some constants:

    +

    Les constantes

    • pi = 4 * atan(1) ≈ 3.141592653589793
    • e = exp(1) ≈ 2.718281828459045

    - Not always it's easy to understand how to record a required function. Really if anywhere you err then graph will not displayed. Also do not forget about "*" (multiply) to multiply and "." (decimal point) to write point. + Il n'est pas toujours facile de comprendre comment écrire la fonction désirée. En effet, une petite faute et elle ne s'affichera pas. De plus, il ne faut pas oublier de mettre un « * » entre les thermes à multiplier et d'utiliser le point « . » pour écrire des nombres à virgule.

    - The two-dimensional function must be written as y=[...] and the three-dimensional function nust be written as z=[...]. Other examples are available to use in menu "Help" if you have some difficulties with function definition. + Les fonctions en deux dimensions s'écrivent sous la forme : y=[...] et les fonctions en trois dimensions sous la forme : z=[...]. D'autres exemples sont disponibles dans le menu « aide » du widget si vous avez de la peine à entrer une fonction.

    -

    6. Offset function

    +

    6. Se déplacer à travers la fonction

    - Sometimes when you draw the function you don't see all necessary information about this function. In this case you can change position of graph. + Parfois, lorsqu'on dessine une fonction, la zone visible n'est pas très intéressante. Pour cela, il est utile de déplacer l'affichage ou de définir soi-même la zone à afficher.

    - To move the function graph just use a navigation arrows that are in the four edges of the display or mouse move tool (menu Service). + Pour déplacer la fonction, il suffit d'utiliser les flèches de navigation situées dans les quatre bords de l'affichage ou l'outil de déplacement à la souris (dans le menu « Outils »).

    - To define place to display you should enter a custom values in the left side of the widget. The left value must be less than the right value. In other case graph will not displayed. + Pour définir la zone à afficher, il faut entrer des valeurs personnalisées dans les champs à gauche du widget. La valeur de gauche doit obligatoirement être plus petite que la valeur de droite. Dans le cas contraire, la fonction ne se dessinera pas.

    - You can increase or decrease the scale of displaying using buttons that are in the left menu. So you'll see more information about function. Zoom can be reset in options. + Il est possible de zoomer ou dé-zoomer l'affichage en utilisant les boutons du menu de gauche pour voir une plus grande partie de la fonction. Le zoom peut être réinitialisé dans les options. On peut également cliquer deux fois sur le graphique pour zoomer ainsi que dé-zoomer en maintenant la touche « ctrl » appuyée et en cliquant deux fois.

    - +

    - To open the menu you should click a button "Options" that is in the left of the widget. If you click on this button again then menu will close. There are some buttons for navigation between options. Their short description: + Cliquez sur le bouton « Options » à gauche du widget pour ouvrir ce menu. En cliquant à nouveau sur le bouton, cela ferme le menu. Plusieurs onglets permettent de naviguer entre les différentes options. Description des options :

      -
    • Changing a background image and color. In Sankore changing background theme used for displaying widget on black and white background.
    • -
    • Display-method used for defining displaying function. There are 6 possibilities:
      +
    • Le thème du widget change l'image de fond ainsi que différentes couleurs. Dans Uniboard, changer le thème permet de rendre le widget plus visible selon qu'il se trouve sur un fond noir ou un fond blanc.
    • +
    • La méthode d'affichage permet de définir la façon dont le graphique de la fonction sera dessiné. Il y a le choix entre six possibilités :
        -
      1. SVG is a vector format of image and it can be built in HTML-page. It's compatible in most of browsers and Sankore support it very well so is it selected default.
      2. -
      3. There is a big difference between SVG (image) and display method SVG. If you have a compatibility problems then you should not use this method.
      4. -
      5. "Canvas" is a new tag that used in HTML 5.0. It define a area in which you can place some images. This display-method is faster than SVG-method, but Sankore does not fully support it. It's desirable to choose this method when you use no Sankore widget.
      6. -
      7. "Canvas" (point) also uses a canvas but draws a points instead of lines.
      8. -
      9. XPM format is little known so it's compatible just with a minority of browsers.
      10. -
      11. Display method "Uniboard" allows to draw directly on the page using Sankore drawing.
      12. +
      13. SVG est un format d'image vectoriel qui peut être intégré dans une page HTML. Il est compatible dans la plupart des navigateurs Internet et est très bien supporté par Uniboard, c'est pourquoi il est choisi par défaut.
      14. +
      15. « SVG (une image) » ne présente que peu de différence avec la méthode d'affichage « SVG ». A moins d'un problème de compatibilité, il n'est pas très utile de la choisir.
      16. +
      17. Canvas est une nouvelle balise présente depuis HTML 5.0. Elle permet de définir une zone dans laquelle on peut faire des dessins. Cette méthode d'affichage est plus rapide que d'utiliser du SVG, cependant, elle n'est pas complètement compatible dans Uniboard. Il est conseillé de choisir cette option si vous utilisez le widget ailleurs que dans Uniboard.
      18. +
      19. Canvas (point) utilise aussi canvas, mais dessine des points à la place de lignes.
      20. +
      21. XPM est un format d'image très peu connu. De ce fait, il est compatible qu'avec une minorité de navigateur.
      22. +
      23. La méthode d'affichage « Uniboard » permet de dessiner directement sur la page d'Uniboard avec les outils de dessins.
    • -
    • Default zoom button returns display into original state. It helps alsoto return to the origin.
    • -
    • Display options allow to display or not a grid, axis and scale. They make a mapping more readable. Also you can change the thickness of function line.
    • -
    • Offset of graph not used usually. But if you use it then you can move a mapping in any direction when a center isn't in the right place. It's avaliable in some browsers.
    • -
    • The accuracy of calculations of the graph will increase or decrease the number of points calculated. The higher the number, the more accuracy. It is useful to set this value to "0.01" if you draw functions like 0.5 * sin (10 * x * x).
    • -
    • Options in 3D, the display style to choose how the function is designed: with small points or polygons (areas). Most functions are prettier drawing surface between the points calculated. However, it is better to draw points for functions such as the hemisphere: sqrt (12 - x*x - y*y).
    • -
    • In the last tab you can change such options 3D, as the accuracy of the calculations and the color of the function.
    • +
    • Le zoom par défaut ainsi que le bouton « réinitialiser le zoom » permettent de remettre l'affichage à l'état qu'il était à l'ouverture du widget. Cela permet aussi de centrer l'affichage sur l'origine.
    • +
    • Les options d'affichage permettent d'afficher ou non la grille, les axes ainsi que l'échelle. Elles sont utiles pour rendre l'affichage plus lisible. Il est également possible de modifier l'épaisseur du trait de la fonction.
    • +
    • Le décalage du graphique n'a en principe pas besoin d'être utilisé. Il permet de déplacer tout l'affichage dans un sens ou dans l'autre, s'il n'est pas centré à la bonne place. Cela peut arriver avec certains navigateurs Internet.
    • +
    • La précision des calculs du graphique permet d'augmenter ou de diminuer le nombre de points calculés. Plus le nombre est petit, plus la précision est grande. Il est utile de mettre cette valeur à « 0.01 » si vous dessinez des fonctions ressemblant à 0.5*sin(10*x*x).
    • +
    • Dans les options 3D, le style d'affichage permet de choisir comment la fonction est dessinée : avec des petits points ou avec des polygones (surfaces). La plupart des fonctions sont plus jolies en dessinant la surface entre les points calculés. Toutefois, c'est mieux de dessiner des points pour des fonctions comme la demi-sphère : sqrt(12-x*x-y*y).
    • +
    • Dans le dernier onglet, vous pouvez modifier d'autres options 3D, comme la précision des calculs ainsi que la couleur de la fonction.
    - +

    - This menu allows you to choose first action of the mouse on the graph. There is a choice of three options: + Ce menu permet tout d'abord de choisir l'action de la souris sur le graphique. Il y a le choix entre trois possibilités :

      -
    • The selected tool is the default. By moving the mouse, a point moves on the function and the coordinates of this point are shown in the top left of the display.
    • -
    • The second tool is moving. It allows you to move the chart with the mouse. Just keep clicking on the display and move the mouse. Unfortunately, this tool can be slow on some browsers.
    • -
    • The third tool is the tangent. This tool draws the tangent to the function at the point where is a mouse cursor.
    • +
    • L'outil sélectionné par défaut est le point. En bougeant la souris, un point se déplace sur la fonction et les coordonnées de ce point sont indiquées en haut à gauche de l'affichage.
    • +
    • Le deuxième outil est le déplacement. Il permet de déplacer le graphique avec la souris. Il suffit de tenir cliqué sur l'affichage et de bouger la souris. Malheureusement, cet outil peut être lent sur certains navigateurs.
    • +
    • Le troisième outil est la tangente. Cet outil dessine la tangente à la fonction au point où se trouve la souris.

    - Then, this menu also allows to calculate a point of the function. Simply enter the coordinate "x" from the point where we want to find the coordinate "y" and press the "Evaluate". For example, if the function is "x * x" and that defined "x = 2", then the point whose coordinate on the X axis is "2" will be to coordinate on the Y axis "4". + Ensuite, ce menu permet aussi de calculer un point de la fonction. Il faut simplement entrer la coordonnée « x » du point dont on veut trouver la coordonnée « y », et appuyer sur le bouton « Évaluer ». Par exemple, si la fonction est « x*x » et qu'on défini « x=2 », alors le point dont la coordonnée sur l'axe des X est « 2 » aura comme coordonnée sur l'axe des Y « 4 ».

    - Another useful tool is the analysis of function. To analyse the function click on "start the analysis". Analyses based on this widget are not 100% reliable, but are complementary to a analysis of function that you are doing yourself. It may be that this tool will be improved in a future version of the widget. + Un autre outil très utile est l'étude de fonction. Pour étudier la fonction entrée dans le champ en haut du widget, cliquez sur « démarrer l'étude ». Les études de fonction de ce widget ne sont pas fiables à 100% mais servent de complément à une étude de fonction que l'on fait soi-même. Il se peut que cet outil soit amélioré dans une prochaine version du widget.

    - In this menu there are also tests the display. They can try different methods to display and see if they work on the browser used. + Dans ce menu, on trouve également des tests d'affichage. Ils permettent d'essayer les différentes méthodes d'affichage et de voir si elles fonctionnent sur le navigateur internet utilisé.

    -

    9. Drawing some functions

    +

    9. Dessiner plusieurs fonctions

    - To draw multiple functions simultaneously, click the small "+" button which is located to the right of "View" (point 1). Then, a menu appears. + Pour dessiner plusieurs fonctions simultanément, cliquez sur le petit bouton « + » qui se situe à droite du bouton « Afficher » (point 1). Ensuite, un menu apparaît.

    - The tabs in this menu can go to the history or the additional features (point 2). To add a function click the button to the right of the current function (point 3). Below is a list that contains all the displayed functions (point 4). To remove a function, just click on the "-" button next to it. It is also possible to change the color of each function separately. + Dans ce menu, des onglets permettent d'aller à l'historique ou aux fonctions supplémentaires (point 2). Pour ajouter une fonction, cliquez sur le bouton à droite de la fonction actuelle (point 3). En dessous, une liste contient toutes les fonctions affichées (point 4). Pour supprimer une fonction, il faut simplement cliquer sur le bouton « - » à coté de celle-ci. Il est également possible de modifier la couleur de chaque fonction séparément.

    - History can review all the functions that have already been drawn. When you click on a function of history current function replaced by the function of history. + L'historique permet de revoir toutes les fonctions qui ont déjà été dessinées. Lorsque l'on clique sur une fonction de l'historique, celle qui est dessinée actuellement est remplacée par la fonction de l'historique.

    - "Drawing several functions simultaneously" mode is only possible with the display method "canvas" in two dimensions, but the history can be used with all methods of display. + Dessiner plusieurs fonctions simultanément est uniquement possible avec la méthode d'affichage « canvas » en deux dimensions. Par contre, l'historique est utilisable avec toutes les méthodes d'affichage.

    -

    10. GraphMe update

    +

    10. Mettre à jour GraphMe

    - The latest version of the widget can be downloaded from the following page: http://gyb.educanet2.ch/tm-widgets/.ws_gen/?15. To update GraphMe, you can also click on "Update" in the options menu. + La dernière version du widget est téléchargeable sur la page suivante : http://gyb.educanet2.ch/tm-widgets/.ws_gen/?15. Pour mettre à jour GraphMe, vous pouvez aussi cliquer sur le bouton "Mise à jour" dans le menu des options.

    11. Contact

    - If you want to report a bug, have a suggestion from the widget or just want to ask a question, please contact me by e-mail at: yannick.vessaz@gmail.com. + Si vous voulez rapporter un bug, avez une suggestion par rapport au widget ou voulez simplement poser une question, merci de me contacter par e-mail à l'adresse : yannick.vessaz@gmail.com.

    \ No newline at end of file diff --git a/resources/library/applications/GraphMe.wgt/GraphMe.wgt/Images/black/bottom-left.png b/resources/library/applications/GraphMe.wgt/Images/black/bottom-left.png similarity index 100% rename from resources/library/applications/GraphMe.wgt/GraphMe.wgt/Images/black/bottom-left.png rename to resources/library/applications/GraphMe.wgt/Images/black/bottom-left.png diff --git a/resources/library/applications/GraphMe.wgt/GraphMe.wgt/Images/black/bottom-right.png b/resources/library/applications/GraphMe.wgt/Images/black/bottom-right.png similarity index 100% rename from resources/library/applications/GraphMe.wgt/GraphMe.wgt/Images/black/bottom-right.png rename to resources/library/applications/GraphMe.wgt/Images/black/bottom-right.png diff --git a/resources/library/applications/GraphMe.wgt/GraphMe.wgt/Images/black/bottom.png b/resources/library/applications/GraphMe.wgt/Images/black/bottom.png similarity index 100% rename from resources/library/applications/GraphMe.wgt/GraphMe.wgt/Images/black/bottom.png rename to resources/library/applications/GraphMe.wgt/Images/black/bottom.png diff --git a/resources/library/applications/GraphMe.wgt/GraphMe.wgt/Images/black/center.png b/resources/library/applications/GraphMe.wgt/Images/black/center.png similarity index 100% rename from resources/library/applications/GraphMe.wgt/GraphMe.wgt/Images/black/center.png rename to resources/library/applications/GraphMe.wgt/Images/black/center.png diff --git a/resources/library/applications/GraphMe.wgt/GraphMe.wgt/Images/black/left.png b/resources/library/applications/GraphMe.wgt/Images/black/left.png similarity index 100% rename from resources/library/applications/GraphMe.wgt/GraphMe.wgt/Images/black/left.png rename to resources/library/applications/GraphMe.wgt/Images/black/left.png diff --git a/resources/library/applications/GraphMe.wgt/GraphMe.wgt/Images/black/right.png b/resources/library/applications/GraphMe.wgt/Images/black/right.png similarity index 100% rename from resources/library/applications/GraphMe.wgt/GraphMe.wgt/Images/black/right.png rename to resources/library/applications/GraphMe.wgt/Images/black/right.png diff --git a/resources/library/applications/GraphMe.wgt/GraphMe.wgt/Images/black/top-left.png b/resources/library/applications/GraphMe.wgt/Images/black/top-left.png similarity index 100% rename from resources/library/applications/GraphMe.wgt/GraphMe.wgt/Images/black/top-left.png rename to resources/library/applications/GraphMe.wgt/Images/black/top-left.png diff --git a/resources/library/applications/GraphMe.wgt/GraphMe.wgt/Images/black/top-right.png b/resources/library/applications/GraphMe.wgt/Images/black/top-right.png similarity index 100% rename from resources/library/applications/GraphMe.wgt/GraphMe.wgt/Images/black/top-right.png rename to resources/library/applications/GraphMe.wgt/Images/black/top-right.png diff --git a/resources/library/applications/GraphMe.wgt/GraphMe.wgt/Images/black/top.png b/resources/library/applications/GraphMe.wgt/Images/black/top.png similarity index 100% rename from resources/library/applications/GraphMe.wgt/GraphMe.wgt/Images/black/top.png rename to resources/library/applications/GraphMe.wgt/Images/black/top.png diff --git a/resources/library/applications/GraphMe.wgt/GraphMe.wgt/Images/blue/bottom-left.png b/resources/library/applications/GraphMe.wgt/Images/blue/bottom-left.png similarity index 100% rename from resources/library/applications/GraphMe.wgt/GraphMe.wgt/Images/blue/bottom-left.png rename to resources/library/applications/GraphMe.wgt/Images/blue/bottom-left.png diff --git a/resources/library/applications/GraphMe.wgt/GraphMe.wgt/Images/blue/bottom-right.png b/resources/library/applications/GraphMe.wgt/Images/blue/bottom-right.png similarity index 100% rename from resources/library/applications/GraphMe.wgt/GraphMe.wgt/Images/blue/bottom-right.png rename to resources/library/applications/GraphMe.wgt/Images/blue/bottom-right.png diff --git a/resources/library/applications/GraphMe.wgt/GraphMe.wgt/Images/blue/bottom.png b/resources/library/applications/GraphMe.wgt/Images/blue/bottom.png similarity index 100% rename from resources/library/applications/GraphMe.wgt/GraphMe.wgt/Images/blue/bottom.png rename to resources/library/applications/GraphMe.wgt/Images/blue/bottom.png diff --git a/resources/library/applications/GraphMe.wgt/GraphMe.wgt/Images/blue/center.png b/resources/library/applications/GraphMe.wgt/Images/blue/center.png similarity index 100% rename from resources/library/applications/GraphMe.wgt/GraphMe.wgt/Images/blue/center.png rename to resources/library/applications/GraphMe.wgt/Images/blue/center.png diff --git a/resources/library/applications/GraphMe.wgt/GraphMe.wgt/Images/blue/left.png b/resources/library/applications/GraphMe.wgt/Images/blue/left.png similarity index 100% rename from resources/library/applications/GraphMe.wgt/GraphMe.wgt/Images/blue/left.png rename to resources/library/applications/GraphMe.wgt/Images/blue/left.png diff --git a/resources/library/applications/GraphMe.wgt/GraphMe.wgt/Images/blue/right.png b/resources/library/applications/GraphMe.wgt/Images/blue/right.png similarity index 100% rename from resources/library/applications/GraphMe.wgt/GraphMe.wgt/Images/blue/right.png rename to resources/library/applications/GraphMe.wgt/Images/blue/right.png diff --git a/resources/library/applications/GraphMe.wgt/GraphMe.wgt/Images/blue/top-left.png b/resources/library/applications/GraphMe.wgt/Images/blue/top-left.png similarity index 100% rename from resources/library/applications/GraphMe.wgt/GraphMe.wgt/Images/blue/top-left.png rename to resources/library/applications/GraphMe.wgt/Images/blue/top-left.png diff --git a/resources/library/applications/GraphMe.wgt/GraphMe.wgt/Images/blue/top-right.png b/resources/library/applications/GraphMe.wgt/Images/blue/top-right.png similarity index 100% rename from resources/library/applications/GraphMe.wgt/GraphMe.wgt/Images/blue/top-right.png rename to resources/library/applications/GraphMe.wgt/Images/blue/top-right.png diff --git a/resources/library/applications/GraphMe.wgt/GraphMe.wgt/Images/blue/top.png b/resources/library/applications/GraphMe.wgt/Images/blue/top.png similarity index 100% rename from resources/library/applications/GraphMe.wgt/GraphMe.wgt/Images/blue/top.png rename to resources/library/applications/GraphMe.wgt/Images/blue/top.png diff --git a/resources/library/applications/GraphMe.wgt/GraphMe.wgt/Images/cursor.png b/resources/library/applications/GraphMe.wgt/Images/cursor.png similarity index 100% rename from resources/library/applications/GraphMe.wgt/GraphMe.wgt/Images/cursor.png rename to resources/library/applications/GraphMe.wgt/Images/cursor.png diff --git a/resources/library/applications/GraphMe.wgt/GraphMe.wgt/Images/darkblue/bottom-left.png b/resources/library/applications/GraphMe.wgt/Images/darkblue/bottom-left.png similarity index 100% rename from resources/library/applications/GraphMe.wgt/GraphMe.wgt/Images/darkblue/bottom-left.png rename to resources/library/applications/GraphMe.wgt/Images/darkblue/bottom-left.png diff --git a/resources/library/applications/GraphMe.wgt/GraphMe.wgt/Images/darkblue/bottom-right.png b/resources/library/applications/GraphMe.wgt/Images/darkblue/bottom-right.png similarity index 100% rename from resources/library/applications/GraphMe.wgt/GraphMe.wgt/Images/darkblue/bottom-right.png rename to resources/library/applications/GraphMe.wgt/Images/darkblue/bottom-right.png diff --git a/resources/library/applications/GraphMe.wgt/GraphMe.wgt/Images/darkblue/bottom.png b/resources/library/applications/GraphMe.wgt/Images/darkblue/bottom.png similarity index 100% rename from resources/library/applications/GraphMe.wgt/GraphMe.wgt/Images/darkblue/bottom.png rename to resources/library/applications/GraphMe.wgt/Images/darkblue/bottom.png diff --git a/resources/library/applications/GraphMe.wgt/GraphMe.wgt/Images/darkblue/center.png b/resources/library/applications/GraphMe.wgt/Images/darkblue/center.png similarity index 100% rename from resources/library/applications/GraphMe.wgt/GraphMe.wgt/Images/darkblue/center.png rename to resources/library/applications/GraphMe.wgt/Images/darkblue/center.png diff --git a/resources/library/applications/GraphMe.wgt/GraphMe.wgt/Images/darkblue/left.png b/resources/library/applications/GraphMe.wgt/Images/darkblue/left.png similarity index 100% rename from resources/library/applications/GraphMe.wgt/GraphMe.wgt/Images/darkblue/left.png rename to resources/library/applications/GraphMe.wgt/Images/darkblue/left.png diff --git a/resources/library/applications/GraphMe.wgt/GraphMe.wgt/Images/darkblue/right.png b/resources/library/applications/GraphMe.wgt/Images/darkblue/right.png similarity index 100% rename from resources/library/applications/GraphMe.wgt/GraphMe.wgt/Images/darkblue/right.png rename to resources/library/applications/GraphMe.wgt/Images/darkblue/right.png diff --git a/resources/library/applications/GraphMe.wgt/GraphMe.wgt/Images/darkblue/top-left.png b/resources/library/applications/GraphMe.wgt/Images/darkblue/top-left.png similarity index 100% rename from resources/library/applications/GraphMe.wgt/GraphMe.wgt/Images/darkblue/top-left.png rename to resources/library/applications/GraphMe.wgt/Images/darkblue/top-left.png diff --git a/resources/library/applications/GraphMe.wgt/GraphMe.wgt/Images/darkblue/top-right.png b/resources/library/applications/GraphMe.wgt/Images/darkblue/top-right.png similarity index 100% rename from resources/library/applications/GraphMe.wgt/GraphMe.wgt/Images/darkblue/top-right.png rename to resources/library/applications/GraphMe.wgt/Images/darkblue/top-right.png diff --git a/resources/library/applications/GraphMe.wgt/GraphMe.wgt/Images/darkblue/top.png b/resources/library/applications/GraphMe.wgt/Images/darkblue/top.png similarity index 100% rename from resources/library/applications/GraphMe.wgt/GraphMe.wgt/Images/darkblue/top.png rename to resources/library/applications/GraphMe.wgt/Images/darkblue/top.png diff --git a/resources/library/applications/GraphMe.wgt/Images/fond1.png b/resources/library/applications/GraphMe.wgt/Images/fond1.png deleted file mode 100644 index 8084981e..00000000 Binary files a/resources/library/applications/GraphMe.wgt/Images/fond1.png and /dev/null differ diff --git a/resources/library/applications/GraphMe.wgt/Images/fond2.png b/resources/library/applications/GraphMe.wgt/Images/fond2.png deleted file mode 100644 index b6e1e839..00000000 Binary files a/resources/library/applications/GraphMe.wgt/Images/fond2.png and /dev/null differ diff --git a/resources/library/applications/GraphMe.wgt/Images/fond3.png b/resources/library/applications/GraphMe.wgt/Images/fond3.png deleted file mode 100644 index fb2b708e..00000000 Binary files a/resources/library/applications/GraphMe.wgt/Images/fond3.png and /dev/null differ diff --git a/resources/library/applications/GraphMe.wgt/Images/fond4.png b/resources/library/applications/GraphMe.wgt/Images/fond4.png deleted file mode 100644 index 0b945c39..00000000 Binary files a/resources/library/applications/GraphMe.wgt/Images/fond4.png and /dev/null differ diff --git a/resources/library/applications/GraphMe.wgt/Images/fond5.png b/resources/library/applications/GraphMe.wgt/Images/fond5.png deleted file mode 100644 index 740163a9..00000000 Binary files a/resources/library/applications/GraphMe.wgt/Images/fond5.png and /dev/null differ diff --git a/resources/library/applications/GraphMe.wgt/Images/gauche1.png b/resources/library/applications/GraphMe.wgt/Images/gauche1.png deleted file mode 100644 index ef1fb6ed..00000000 Binary files a/resources/library/applications/GraphMe.wgt/Images/gauche1.png and /dev/null differ diff --git a/resources/library/applications/GraphMe.wgt/Images/gauche2.png b/resources/library/applications/GraphMe.wgt/Images/gauche2.png deleted file mode 100644 index 080a17f7..00000000 Binary files a/resources/library/applications/GraphMe.wgt/Images/gauche2.png and /dev/null differ diff --git a/resources/library/applications/GraphMe.wgt/Images/gauche3.png b/resources/library/applications/GraphMe.wgt/Images/gauche3.png deleted file mode 100644 index 2fd7dedc..00000000 Binary files a/resources/library/applications/GraphMe.wgt/Images/gauche3.png and /dev/null differ diff --git a/resources/library/applications/GraphMe.wgt/GraphMe.wgt/Images/gradient.png b/resources/library/applications/GraphMe.wgt/Images/gradient.png similarity index 100% rename from resources/library/applications/GraphMe.wgt/GraphMe.wgt/Images/gradient.png rename to resources/library/applications/GraphMe.wgt/Images/gradient.png diff --git a/resources/library/applications/GraphMe.wgt/GraphMe.wgt/Images/gradient1.png b/resources/library/applications/GraphMe.wgt/Images/gradient1.png similarity index 100% rename from resources/library/applications/GraphMe.wgt/GraphMe.wgt/Images/gradient1.png rename to resources/library/applications/GraphMe.wgt/Images/gradient1.png diff --git a/resources/library/applications/GraphMe.wgt/GraphMe.wgt/Images/gradient2.png b/resources/library/applications/GraphMe.wgt/Images/gradient2.png similarity index 100% rename from resources/library/applications/GraphMe.wgt/GraphMe.wgt/Images/gradient2.png rename to resources/library/applications/GraphMe.wgt/Images/gradient2.png diff --git a/resources/library/applications/GraphMe.wgt/GraphMe.wgt/Images/gradient3.png b/resources/library/applications/GraphMe.wgt/Images/gradient3.png similarity index 100% rename from resources/library/applications/GraphMe.wgt/GraphMe.wgt/Images/gradient3.png rename to resources/library/applications/GraphMe.wgt/Images/gradient3.png diff --git a/resources/library/applications/GraphMe.wgt/GraphMe.wgt/Images/gradient4.png b/resources/library/applications/GraphMe.wgt/Images/gradient4.png similarity index 100% rename from resources/library/applications/GraphMe.wgt/GraphMe.wgt/Images/gradient4.png rename to resources/library/applications/GraphMe.wgt/Images/gradient4.png diff --git a/resources/library/applications/GraphMe.wgt/GraphMe.wgt/Images/mini_icon.png b/resources/library/applications/GraphMe.wgt/Images/mini_icon.png similarity index 100% rename from resources/library/applications/GraphMe.wgt/GraphMe.wgt/Images/mini_icon.png rename to resources/library/applications/GraphMe.wgt/Images/mini_icon.png diff --git a/resources/library/applications/GraphMe.wgt/GraphMe.wgt/Images/move.png b/resources/library/applications/GraphMe.wgt/Images/move.png similarity index 100% rename from resources/library/applications/GraphMe.wgt/GraphMe.wgt/Images/move.png rename to resources/library/applications/GraphMe.wgt/Images/move.png diff --git a/resources/library/applications/GraphMe.wgt/GraphMe.wgt/Images/tangent.png b/resources/library/applications/GraphMe.wgt/Images/tangent.png similarity index 100% rename from resources/library/applications/GraphMe.wgt/GraphMe.wgt/Images/tangent.png rename to resources/library/applications/GraphMe.wgt/Images/tangent.png diff --git a/resources/library/applications/GraphMe.wgt/GraphMe.wgt/Images/white/bottom-left.png b/resources/library/applications/GraphMe.wgt/Images/white/bottom-left.png similarity index 100% rename from resources/library/applications/GraphMe.wgt/GraphMe.wgt/Images/white/bottom-left.png rename to resources/library/applications/GraphMe.wgt/Images/white/bottom-left.png diff --git a/resources/library/applications/GraphMe.wgt/GraphMe.wgt/Images/white/bottom-right.png b/resources/library/applications/GraphMe.wgt/Images/white/bottom-right.png similarity index 100% rename from resources/library/applications/GraphMe.wgt/GraphMe.wgt/Images/white/bottom-right.png rename to resources/library/applications/GraphMe.wgt/Images/white/bottom-right.png diff --git a/resources/library/applications/GraphMe.wgt/GraphMe.wgt/Images/white/bottom.png b/resources/library/applications/GraphMe.wgt/Images/white/bottom.png similarity index 100% rename from resources/library/applications/GraphMe.wgt/GraphMe.wgt/Images/white/bottom.png rename to resources/library/applications/GraphMe.wgt/Images/white/bottom.png diff --git a/resources/library/applications/GraphMe.wgt/GraphMe.wgt/Images/white/center.png b/resources/library/applications/GraphMe.wgt/Images/white/center.png similarity index 100% rename from resources/library/applications/GraphMe.wgt/GraphMe.wgt/Images/white/center.png rename to resources/library/applications/GraphMe.wgt/Images/white/center.png diff --git a/resources/library/applications/GraphMe.wgt/GraphMe.wgt/Images/white/left.png b/resources/library/applications/GraphMe.wgt/Images/white/left.png similarity index 100% rename from resources/library/applications/GraphMe.wgt/GraphMe.wgt/Images/white/left.png rename to resources/library/applications/GraphMe.wgt/Images/white/left.png diff --git a/resources/library/applications/GraphMe.wgt/GraphMe.wgt/Images/white/right.png b/resources/library/applications/GraphMe.wgt/Images/white/right.png similarity index 100% rename from resources/library/applications/GraphMe.wgt/GraphMe.wgt/Images/white/right.png rename to resources/library/applications/GraphMe.wgt/Images/white/right.png diff --git a/resources/library/applications/GraphMe.wgt/GraphMe.wgt/Images/white/top-left.png b/resources/library/applications/GraphMe.wgt/Images/white/top-left.png similarity index 100% rename from resources/library/applications/GraphMe.wgt/GraphMe.wgt/Images/white/top-left.png rename to resources/library/applications/GraphMe.wgt/Images/white/top-left.png diff --git a/resources/library/applications/GraphMe.wgt/GraphMe.wgt/Images/white/top-right.png b/resources/library/applications/GraphMe.wgt/Images/white/top-right.png similarity index 100% rename from resources/library/applications/GraphMe.wgt/GraphMe.wgt/Images/white/top-right.png rename to resources/library/applications/GraphMe.wgt/Images/white/top-right.png diff --git a/resources/library/applications/GraphMe.wgt/GraphMe.wgt/Images/white/top.png b/resources/library/applications/GraphMe.wgt/Images/white/top.png similarity index 100% rename from resources/library/applications/GraphMe.wgt/GraphMe.wgt/Images/white/top.png rename to resources/library/applications/GraphMe.wgt/Images/white/top.png diff --git a/resources/library/applications/GraphMe.wgt/GraphMe.wgt/JavaScript/Affichage.js b/resources/library/applications/GraphMe.wgt/JavaScript/Affichage.js similarity index 100% rename from resources/library/applications/GraphMe.wgt/GraphMe.wgt/JavaScript/Affichage.js rename to resources/library/applications/GraphMe.wgt/JavaScript/Affichage.js diff --git a/resources/library/applications/GraphMe.wgt/JavaScript/Affichage3D.js b/resources/library/applications/GraphMe.wgt/JavaScript/Affichage3D.js old mode 100644 new mode 100755 index b6ff0e70..9cf88b63 --- a/resources/library/applications/GraphMe.wgt/JavaScript/Affichage3D.js +++ b/resources/library/applications/GraphMe.wgt/JavaScript/Affichage3D.js @@ -1,332 +1,407 @@ -var ctx -var centreX, centreY -var echelle3D = 50 -var precisionDroite3D = 0.02 -var precisionFonction3D = 0.2 -var fonction3D = false -var angle = Math.PI/8 -var valeurZoom3D = 1 -var gauche3D = -6.5 -var droite3D = 6.5 -var outilPrecedent = "" -var rouge3D = 0 -var vert3D = 1 -var bleu3D = 2 -var couleurGenerale = 0 -function activer3D(){ - if(fonction3D){ // Si activé alors on le désative - fonction3D = false - choixOutil(outilPrecedent) - document.getElementById('onglet3D').innerHTML = "3D" - largeur = 500 - document.getElementById("affichage").style.width = largeur+"px" - document.getElementById("affichage").style.left = "129px" - document.getElementById("flecheGauche").style.left = "137px" - document.getElementById("flecheHaut").style.left = "345px" - document.getElementById("flecheBas").style.left = "345px" - document.getElementById("gauche").style.display = "block" - document.getElementById("gauche3D").style.display = "none" - var elements = document.getElementsByClassName("menu") - for(var i=0; i' - ctx = document.getElementById('canvas').getContext('2d') - ctx.clearRect(0, 0, 640, 480) - ctx.fillStyle = "rgba(0, 0, 0, 0.5)" - ctx.fillRect(0,0,640,480) - axes() -} +var fonction3D = false; +var outilPrecedent = ""; -function dessiner3D(eq){ - initialise3D() - if(document.getElementById("selectAffichage3D").value == "points"){ - var coordX, coordY, coordZ - for(var x=gauche3D; x 1){ - opacity = 1 - } - if(opacity < 0){ - opacity = 0 - } - if(couleur[0] > 255){ - couleur[0] = 255 - } - if(couleur[0] < 0){ - couleur[0] = 0 - } - if(couleur[1] > 255){ - couleur[1] = 255 - } - if(couleur[1] < 0){ - couleur[1] = 0 - } +var display3D = { + canvas: null, + ctx: null, + width: 0, + height: 0, + centerX: 0, + centerY: 0, + scale: 50, + linePrecision: 0.02, + functionPrecision: 0.2, + angle: Math.PI/8, + zoomValue: 1, + left: -6.5, + right: 6.5, + rouge3D: 0, + vert3D: 1, + bleu3D: 2, + couleurGenerale: 0, + background: "rgba(0, 0, 0, 0.5)", + + init: function(width, height){ + var displayElement = document.getElementById("affichage"); + + // Clear displayElement content + if(displayElement.hasChildNodes()){ + while(displayElement.childNodes.length >= 1 ){ + displayElement.removeChild(displayElement.firstChild); + } + } + + // Setup sizes + this.width = width || displayElement.clientWidth; + this.height = height || displayElement.clientHeight; + this.centerX = this.width / 2; + this.centerY = this.height / 2; + + // Create canvas + this.canvas = document.createElement("canvas"); + this.canvas.width = this.width; + this.canvas.height = this.height; + displayElement.appendChild(this.canvas); + + this.ctx = this.canvas.getContext('2d'); + this.clear(); + }, + + clear: function(){ + var ctx = this.ctx; + ctx.clearRect(0, 0, this.width, this.height); + ctx.fillStyle = this.background; + ctx.fillRect(0, 0, this.width, this.height); + this.axes(); + }, + + draw: function(){ + // var ti = new Date().getTime(); + // this.init(); + this.clear(); + + var txtFct = fct.remplacer(fct.verifier(document.getElementById("input3D").value)); + if(txtFct == ""){ + return; + } + + var func = new CartesianFunction(txtFct); + + if(document.getElementById("selectAffichage3D").value == "points"){ + var coordX, coordY, coordZ; + for(var x=this.left; xthis.left; x1-=this.functionPrecision){ + for(var y1=this.right; y1>this.left; y1-=this.functionPrecision){ + x = x1; + y = y1; + z1 = func.f(x,y); + x2 = x1 - this.functionPrecision; + y2 = y1; + x = x2; + //y = y2; + z2 = func.f(x,y); + x3 = x2; + y3 = y2 - this.functionPrecision; + //x = x3; + y = y3; + z3 = func.f(x,y); + x4 = x3 + this.functionPrecision; + y4 = y3; + x = x4; + //y = y4; + z4 = func.f(x,y); + if(isNaN(z1)||isNaN(z2)||isNaN(z3)||isNaN(z4)){ + continue; + } + this.polygone3D(x1, y1, z1, x2, y2, z2, x3, y3, z3, x4, y4, z4); + } + } + } + } + // var tf = new Date().getTime(); + // window.console.log(tf-ti); + }, + + // Dessine un point à la position (x, y, z) + point3D: function(x, y, z){ + var posX = (Math.sin(this.angle)*x + Math.cos(this.angle)*y)*this.scale; + var posZ = -(z - Math.cos(this.angle)*x/2.6 + Math.sin(this.angle)*y/2.6)*this.scale; - ctx.save() - ctx.translate(centreX, centreY) - ctx.scale(valeurZoom3D, valeurZoom3D) - ctx.fillStyle = "rgba("+couleur[rouge3D]+","+couleur[vert3D]+", "+couleur[bleu3D]+", "+opacity+")" - ctx.fillRect(posX-1, posZ-1, 2, 2) - ctx.restore() -} - -// Dessine un polygone qui a comme sommets : (x1, y1, z1) , (x2, y2, z2), (x3, y3, z3) et (x4, y4, z4) -function polygone3D(x1, y1, z1, x2, y2, z2, x3, y3, z3, x4, y4, z4){ - ctx.save() - ctx.translate(centreX, centreY) - ctx.scale(valeurZoom3D, valeurZoom3D) - ctx.beginPath() - ctx.moveTo((Math.sin(angle)*x1 + Math.cos(angle)*y1)*echelle3D , -(z1 - Math.cos(angle)*x1/2.6 + Math.sin(angle)*y1/2.6)*echelle3D) - ctx.lineTo((Math.sin(angle)*x2 + Math.cos(angle)*y2)*echelle3D , -(z2 - Math.cos(angle)*x2/2.6 + Math.sin(angle)*y2/2.6)*echelle3D) - ctx.lineTo((Math.sin(angle)*x3 + Math.cos(angle)*y3)*echelle3D , -(z3 - Math.cos(angle)*x3/2.6 + Math.sin(angle)*y3/2.6)*echelle3D) - ctx.lineTo((Math.sin(angle)*x4 + Math.cos(angle)*y4)*echelle3D , -(z4 - Math.cos(angle)*x4/2.6 + Math.sin(angle)*y4/2.6)*echelle3D) + var opacity = Math.round((1-((5+y*Math.sin(this.angle)-x*Math.cos(this.angle)) / 450)*this.scale)*1000)/1000; + var couleur = new Array(); + couleur[0] = Math.round((5+z)*this.scale); + couleur[1] = Math.round(510 - (5+z)*this.scale); + couleur[2] = this.couleurGenerale; + if(opacity > 1){ opacity = 1; } + if(opacity < 0){ opacity = 0; } + if(couleur[0] > 255){ couleur[0] = 255; } + if(couleur[0] < 0){ couleur[0] = 0; } + if(couleur[1] > 255){ couleur[1] = 255; } + if(couleur[1] < 0){ couleur[1] = 0; } - var opacity = Math.round((1-((5+y1*Math.sin(angle)-x1*Math.cos(angle)) / 450)*echelle3D)*1000)/1000 - var couleur = new Array() - couleur[0] = Math.round((5+z1)*echelle3D) - couleur[1] = Math.round(510 - (5+z1)*echelle3D) - couleur[2] = couleurGenerale - if(opacity > 1){ - opacity = 1 - } - if(opacity < 0){ - opacity = 0 - } - if(couleur[0] > 255){ - couleur[0] = 255 - } - if(couleur[0] < 0){ - couleur[0] = 0 - } - if(couleur[1] > 255){ - couleur[1] = 255 - } - if(couleur[1] < 0){ - couleur[1] = 0 - } + var ctx = this.ctx; + ctx.save(); + ctx.translate(this.centerX, this.centerY); + ctx.scale(this.zoomValue, this.zoomValue); + ctx.fillStyle = "rgba("+couleur[this.rouge3D]+","+couleur[this.vert3D]+", "+couleur[this.bleu3D]+", "+opacity+")"; + ctx.fillRect(posX-1, posZ-1, 2, 2); + ctx.restore(); + }, + + // Dessine un polygone qui a comme sommets : (x1, y1, z1) , (x2, y2, z2), (x3, y3, z3) et (x4, y4, z4) + polygone3D: function(x1, y1, z1, x2, y2, z2, x3, y3, z3, x4, y4, z4){ + var ctx = this.ctx; + ctx.save(); + ctx.translate(this.centerX, this.centerY); + ctx.scale(this.zoomValue, this.zoomValue); + ctx.beginPath(); + ctx.moveTo((Math.sin(this.angle)*x1 + Math.cos(this.angle)*y1)*this.scale , -(z1 - Math.cos(this.angle)*x1/2.6 + Math.sin(this.angle)*y1/2.6)*this.scale); + ctx.lineTo((Math.sin(this.angle)*x2 + Math.cos(this.angle)*y2)*this.scale , -(z2 - Math.cos(this.angle)*x2/2.6 + Math.sin(this.angle)*y2/2.6)*this.scale); + ctx.lineTo((Math.sin(this.angle)*x3 + Math.cos(this.angle)*y3)*this.scale , -(z3 - Math.cos(this.angle)*x3/2.6 + Math.sin(this.angle)*y3/2.6)*this.scale); + ctx.lineTo((Math.sin(this.angle)*x4 + Math.cos(this.angle)*y4)*this.scale , -(z4 - Math.cos(this.angle)*x4/2.6 + Math.sin(this.angle)*y4/2.6)*this.scale); - ctx.fillStyle = "rgba("+couleur[rouge3D]+","+couleur[vert3D]+", "+couleur[bleu3D]+", "+opacity+")" - ctx.closePath() - ctx.fill() - ctx.restore() -} + var opacity = Math.round((1-((5+y1*Math.sin(this.angle)-x1*Math.cos(this.angle)) / 450)*this.scale)*1000)/1000; + var couleur = new Array(); + couleur[0] = Math.round((5+z1)*this.scale); + couleur[1] = Math.round(510 - (5+z1)*this.scale); + couleur[2] = this.couleurGenerale; + if(opacity > 1){ opacity = 1; } + if(opacity < 0){ opacity = 0; } + + // for(var i=0; i 255){ couleur[0] = 255; } + if(couleur[0] < 0){ couleur[0] = 0; } + if(couleur[1] > 255){ couleur[1] = 255; } + if(couleur[1] < 0){ couleur[1] = 0; } -// Dessine les axes -function axes(){ - for(var i=-5; i<5; i+=precisionDroite3D){ - point3D(0, 0, i) - } - for(var i=-5.5; i<5.5; i+=precisionDroite3D){ - point3D(i, 0, 0) - } - for(var i=-5.5; i<5.5; i+=precisionDroite3D){ - point3D(0, i, 0) - } -} + ctx.fillStyle = "rgba("+couleur[this.rouge3D]+","+couleur[this.vert3D]+", "+couleur[this.bleu3D]+", "+opacity+")"; + ctx.strokeStyle = "rgba(0,0,0,0.1)"; + ctx.closePath(); + ctx.fill(); + ctx.stroke(); + ctx.restore(); + }, -function cube(x, y, z, r){ - // Face de devant - for(var i=0; i 255){ - couleurGenerale = 255 - } - switch(document.getElementById("selectRouge3D").value){ - case "plus": - rouge3D = 0 - rouge = 255 - sensRouge = -1 - break - case "moins": - rouge3D = 1 - rouge = 0 - sensRouge = 1 - break - case "tout": - rouge3D = 2 - rouge = couleurGenerale - sensRouge = 0 - break - } - switch(document.getElementById("selectVert3D").value){ - case "plus": - vert3D = 0 - vert = 255 - sensVert = -1 - break - case "moins": - vert3D = 1 - vert = 0 - sensVert = 1 - break - case "tout": - vert3D = 2 - vert = couleurGenerale - sensVert = 0 - break - } - switch(document.getElementById("selectBleu3D").value){ - case "plus": - bleu3D = 0 - bleu = 255 - sensBleu = -1 - break - case "moins": - bleu3D = 1 - bleu = 0 - sensBleu = 1 - break - case "tout": - bleu3D = 2 - bleu = couleurGenerale - sensBleu = 0 - break - } - document.getElementById("apercuCouleur3D").innerHTML = "." - for(var i=0; i." - } -} + cube: function(x, y, z, r){ + // Face de devant + for(var i=0; i 255){ + this.couleurGenerale = 255; + } + switch(document.getElementById("selectRouge3D").value){ + case "plus": + this.rouge3D = 0; + rouge = 255; + sensRouge = -1; + break; + case "moins": + this.rouge3D = 1; + rouge = 0; + sensRouge = 1; + break; + case "tout": + this.rouge3D = 2; + rouge = this.couleurGenerale; + sensRouge = 0; + break; + } + switch(document.getElementById("selectVert3D").value){ + case "plus": + this.vert3D = 0; + vert = 255; + sensVert = -1; + break; + case "moins": + this.vert3D = 1; + vert = 0; + sensVert = 1; + break; + case "tout": + this.vert3D = 2; + vert = this.couleurGenerale; + sensVert = 0; + break; + } + switch(document.getElementById("selectBleu3D").value){ + case "plus": + this.bleu3D = 0; + bleu = 255; + sensBleu = -1; + break; + case "moins": + this.bleu3D = 1; + bleu = 0; + sensBleu = 1; + break; + case "tout": + this.bleu3D = 2; + bleu = this.couleurGenerale; + sensBleu = 0; + break; + } + document.getElementById("apercuCouleur3D").innerHTML = "."; + for(var i=0; i."; + } + if(this.ctx){ + this.draw(); + } + }, + + zoom: function(value){ + if(!fonction3D){ + return; + } + this.zoomValue *= value; + this.left /= value; + this.right /= value; + this.functionPrecision /= value; + this.linePrecision /= value; + //alert(this.zoomValue+" ; "+this.left+" ; "+this.right+" ; "+this.functionPrecision+" ; "+this.linePrecision); + this.draw(); + }, + + move: function(value){ + this.angle += Math.PI/32 * value; + this.draw(); + }, + + initZoom: function(){ + this.angle = Math.PI/8; + this.zoomValue = 1; + this.left = -6.5; + this.right = 6.5; + this.draw(); + } +}; -function zoom3D(valeur){ - valeurZoom3D *= valeur - gauche3D /= valeur - droite3D /= valeur - precisionFonction3D /= valeur - precisionDroite3D /= valeur - //alert(valeurZoom3D+" ; "+gauche3D+" ; "+droite3D+" ; "+precisionFonction3D+" ; "+precisionDroite3D) - actualiserGraph() -} \ No newline at end of file diff --git a/resources/library/applications/GraphMe.wgt/GraphMe.wgt/JavaScript/AffichageSVG.svg b/resources/library/applications/GraphMe.wgt/JavaScript/AffichageSVG.svg similarity index 100% rename from resources/library/applications/GraphMe.wgt/GraphMe.wgt/JavaScript/AffichageSVG.svg rename to resources/library/applications/GraphMe.wgt/JavaScript/AffichageSVG.svg diff --git a/resources/library/applications/GraphMe.wgt/JavaScript/AffichageStandard.js b/resources/library/applications/GraphMe.wgt/JavaScript/AffichageStandard.js deleted file mode 100644 index b5ab2aad..00000000 --- a/resources/library/applications/GraphMe.wgt/JavaScript/AffichageStandard.js +++ /dev/null @@ -1,432 +0,0 @@ -// ------------------ SVG et canvas ------------------ - -// Cette fonction calcule tous les points de la fonction mathématique. -// Elle place chaque coordonnée "x" et "y" dans les tableaux "pointX" et "pointY" -// A la fin, elle choisi la méthode d'affichage entre : -// 1) une seule image SVG -// 2) plusieurs images SVG - function evaluerSVG(eq) { - borneXGauche = parseFloat(document.getElementById("borneXGauche").value) - borneXDroite = parseFloat(document.getElementById("borneXDroite").value) - borneYGauche = parseFloat(document.getElementById("borneYGauche").value) - borneYDroite = parseFloat(document.getElementById("borneYDroite").value) - multiplicateurX = largeur/Math.abs(borneXDroite - borneXGauche) - multiplicateurY = hauteur/Math.abs(borneYDroite - borneYGauche) - lineWidth = document.getElementById("inputTaille").value - var i = 0 - var y1, p1 - - for(x=borneXGauche; x<=(borneXDroite+5*precision); x=x+precision){ - y = eval(eq) - if(!isNaN(y)){ - i++ - pointX[i] = (x - borneXGauche) * multiplicateurX - pointY[i] = hauteur - ((y - borneYGauche) * multiplicateurY) - pente[i] = hauteur - (((y-y1)/precision - borneYGauche)* multiplicateurY) - pente2[i] = hauteur - ((((y-y1)/precision-p1)/precision - borneYGauche)* multiplicateurY) - p1 = (y-y1)/precision - y1 = y - } - } - pente[1]=pente[2] - pente2[2]=pente2[3] - pente2[1]=pente2[2] - - //alert(pointX+'\n'+pointY) - if(document.getElementById("selectMethodeAffichage").value == "svg2"){ - calculerGraphSVG2(i) - } - else{ - calculerGraphSVG(i) - } - } - -// Même fonction mais pour dessiner à l'aide de canvas - function evaluerCanvas(eq) { - borneXGauche = parseFloat(document.getElementById("borneXGauche").value) - borneXDroite = parseFloat(document.getElementById("borneXDroite").value) - borneYGauche = parseFloat(document.getElementById("borneYGauche").value) - borneYDroite = parseFloat(document.getElementById("borneYDroite").value) - multiplicateurX = largeur/Math.abs(borneXDroite - borneXGauche) - multiplicateurY = hauteur/Math.abs(borneYDroite - borneYGauche) - lineWidth = document.getElementById("inputTaille").value - var i = 0 - var y1, p1 - - for(x=borneXGauche; x<=(borneXDroite+5*precision); x=x+precision){ - y = eval(eq) - i++ - if(!isNaN(y)){ - pointX[i] = (x - borneXGauche) * multiplicateurX - pointY[i] = hauteur - ((y - borneYGauche) * multiplicateurY) - pente[i] = hauteur - (((y-y1)/precision - borneYGauche)* multiplicateurY) - pente2[i] = hauteur - ((((y-y1)/precision-p1)/precision - borneYGauche)* multiplicateurY) - p1 = (y-y1)/precision - y1 = y - } - else{ - pointX[i] = "undefined" - pointY[i] = "undefined" - pente[i] = "undefined" - pente2[i] = "undefined" - } - } - pente[1]=pente[2] - pente2[2]=pente2[3] - pente2[1]=pente2[2] - - calculerGraphCanevas(i) - } - - -// ---- SVG (une image) ---- -// Génère le code HTML qui permet d'afficher le graphique et le place dans la div "affichage" - function calculerGraphSVG2(fin){ - image = "" - for (i=1; i' - } - graphique = '' - graphique = graphique + '' - image = ''+image+graphique+' ' - document.getElementById("affichage").innerHTML = image - //alert(image) - } - -// ---- SVG (images multiples) ---- -// Créé les différents éléments pour dessiner la fonction mathématique -// et les place dans la div "affichage" - function calculerGraphSVG(fin){ - document.getElementById("affichage").innerHTML = "" - svg = document.createElementNS("http://www.w3.org/2000/svg", "svg") - svg.setAttribute("width", "100%") - svg.setAttribute("height", "100%") - for (i=1; ihauteur)){ - i++ - } - if ((pointY[i]>hauteur) && (pointY[i+1]<0)){ - i++ - } - var ligne = document.createElementNS("http://www.w3.org/2000/svg", "line") - ligne.setAttribute("x1", pointX[i]+decalageX) - ligne.setAttribute("x2", pointX[i+1]+decalageX) - ligne.setAttribute("y1", pointY[i]+decalageY) - ligne.setAttribute("y2", pointY[i+1]+decalageY) - ligne.setAttribute("stroke", couleurFonction) - ligne.setAttribute("stroke-width", lineWidth) - svg.appendChild(ligne) - } - - // dérivée - if(document.getElementById("checkDerivee").checked){ - for (i=1; i' - ctx = document.getElementById('canvas').getContext('2d') - var undefined = true - // Autres fonctions - for(var i=0; ihauteur)){ - sankore.moveTo(pointX[i+1]+decalageX,pointY[i+1]+decalageY) - continue - } - sankore.drawLineTo(pointX[i]+decalageX, pointY[i]+decalageY, lineWidth) - } - - //dessiner le cadre - sankore.moveTo(0+decalageX,0+decalageY) - sankore.drawLineTo(largeur+decalageX, 0+decalageY, lineWidth) - sankore.drawLineTo(largeur+decalageX, hauteur+decalageY, lineWidth) - sankore.drawLineTo(0+decalageX, hauteur+decalageY, lineWidth) - sankore.drawLineTo(0+decalageX, 0+decalageY, lineWidth) - - //dessiner les axes - sankore.moveTo((-borneXGauche*multiplicateurX)+decalageX, 0+decalageY) - sankore.drawLineTo((-borneXGauche*multiplicateurX)+decalageX, hauteur+decalageY, lineWidth) - sankore.moveTo(0+decalageX, (hauteur-(-borneYGauche*multiplicateurY))+decalageY) - sankore.drawLineTo(largeur+decalageX, (hauteur-(-borneYGauche*multiplicateurY))+decalageY, lineWidth) - - decalageX += 250 - decalageY += 200 - largeur -= 100 - hauteur -= 100 - sankore.setTool('arrow') +function initUniboard(){ + if(!window.uniboard && window.sankore){ + uniboard = sankore; } - \ No newline at end of file + uniboard.centerOn(337,245); +// uniboard.setTool("pen"); + + // Paramètres par défaut + uniboard.lineWidth = 1; + uniboard.fillStyle = "black"; + uniboard.strokeStyle = "black"; + + // Position du curseur pour écrire des nombres + uniboard.cursorX = 0; + uniboard.cursorY = 0; + + // Fonctions + uniboard.strokeColor = function(){ + this.setPenColor(colorToHex(this.strokeStyle)); + }; + + uniboard.fillColor = function(){ + this.setPenColor(colorToHex(this.fillStyle)); + }; + + uniboard.lineTo = function(x, y){ + if(y>-20 && yhauteur-1){ break BoucleFor } - tableau[y][x] = 1 - } - tableau.reverse() - graphique = "" - calculerGraphXPM() - } - -// Permet de remplir le tableau avec uniquement des 1 ou des 0. -// (pour que l'image soit toute blanche ou toute noir) - function tableauUni(valeurCouleur){ - for (i=0; i" - document.getElementById("affichage").innerHTML = image - } \ No newline at end of file diff --git a/resources/library/applications/GraphMe.wgt/GraphMe.wgt/JavaScript/CartesianFunction.js b/resources/library/applications/GraphMe.wgt/JavaScript/CartesianFunction.js similarity index 100% rename from resources/library/applications/GraphMe.wgt/GraphMe.wgt/JavaScript/CartesianFunction.js rename to resources/library/applications/GraphMe.wgt/JavaScript/CartesianFunction.js diff --git a/resources/library/applications/GraphMe.wgt/JavaScript/ColorPicker.js b/resources/library/applications/GraphMe.wgt/JavaScript/ColorPicker.js index a90b82e6..ac4383ef 100644 --- a/resources/library/applications/GraphMe.wgt/JavaScript/ColorPicker.js +++ b/resources/library/applications/GraphMe.wgt/JavaScript/ColorPicker.js @@ -1,108 +1,580 @@ // -------------------- Color Picker -------------------- -var idColor = "" +var idColor = ""; // Différentes fonctions nécessaire au Color Picker (menu du choix de la couleur) -function colorSV(e){ - var element = document.getElementById('colorSV') - var posDivY = 0 - var posDivX = 0 - while(element){ - posDivY = posDivY + element.offsetTop - posDivX = posDivX + element.offsetLeft - element = element.offsetParent - } - document.getElementById("info").innerHTML = posDivX+" ; "+posDivY - S = 100-Math.round((e.clientY - posDivY -0)/255*100) - V = Math.round((e.clientX - posDivX -0)/255*100) - document.getElementById("inputValeur").value = V - document.getElementById("inputSaturation").value = S - document.getElementById("ligneValeur").setAttribute("x1", e.clientX-posDivX) - document.getElementById("ligneValeur").setAttribute("x2", e.clientX-posDivX) - document.getElementById("ligneSaturation").setAttribute("y1", e.clientY-posDivY) - document.getElementById("ligneSaturation").setAttribute("y2", e.clientY-posDivY) - colorRGB() -} -function colorT(e){ - var element = document.getElementById('colorT') - var posDiv = 0 - while(element){ - posDiv = posDiv + element.offsetTop - element = element.offsetParent - } - T = (e.clientY - posDiv -0) / 256*360 - r,g,b = 0 - while (true){ +var colorPicker = { + // Configuration + idSV : "canvasSV", // id du canvas affichant la saturation et la valeur + idT : "canvasT", // id du canvas affichant la teinte + idO : "canvasO", // id du canvas affichant l'opacité + width : 250, // largeur + height : 250, // hauteur + rayonRonds : 5, // rayon des ronds + ombreActive : "0px 0px 3px rgba(150,200,255,1), 0px 0px 8px rgba(64,190,255,1)", + ombreInactive : "0px 0px 5px rgba(64,64,64,0.4)", + + // Variables définies lors de l'initialisation + canvasSV : null, + canvasT : null, + canvasO : null, + ctxSV : null, + ctxT : null, + ctxO : null, + lingradS : null, + lingradV : null, + lingradT : null, + + // Couleurs + backgroundColor : "rgb(193,255,0)", + saturation : 100, + valeur : 100, + teinte : 75, + rouge : 193, + vert : 255, + bleu : 0, + opacity: 1, + // Couleurs RGB sans application de la saturation et de la valeur + r : 255, + g : 0, + b : 0, + + // Autres variables + sourisDown : false, // Indique si on clique sur le colorPicker ou pas + sourisDehors : true, // Indique si la souris est en-dehors du colorPicker lors d'un clique + idColor : null, + + // Fonction d'initialisation + init : function(id){ + // Récupérer les éléments + this.canvasSV = document.getElementById(this.idSV); + this.canvasT = document.getElementById(this.idT); + this.canvasO = document.getElementById(this.idO); + + // Définir la taille + this.canvasSV.width = this.width; + this.canvasSV.height = this.height; + this.canvasSV.style.width = this.width + "px"; + this.canvasSV.style.height = this.height + "px"; + + this.canvasT.width = this.width/10; + this.canvasT.height = this.height; + this.canvasT.style.width = this.width/10 + "px"; + this.canvasT.style.height = this.height + "px"; + + this.canvasO.width = this.width*1.15; + this.canvasO.height = this.height/10; + this.canvasO.style.width = this.width*1.15 + "px"; + this.canvasO.style.height = this.height/10 + "px"; + + // Initialisation canvas + this.ctxSV = this.canvasSV.getContext("2d"); + this.ctxT = this.canvasT.getContext("2d"); + this.ctxO = this.canvasO.getContext("2d"); + + // Création des dégradés + this.lingradV = this.ctxSV.createLinearGradient(0, 0, 0, this.height); + this.lingradV.addColorStop(0, 'rgba(255,255,255,0)'); + this.lingradV.addColorStop(1, 'rgba(255,255,255,1)'); + + this.lingradS = this.ctxSV.createLinearGradient(0, 0, this.width, 0); + this.lingradS.addColorStop(0, 'rgba(0,0,0,1)'); + this.lingradS.addColorStop(1, 'rgba(0,0,0,0)'); + + this.lingradT = this.ctxT.createLinearGradient(0, 0, 0, this.height); + this.lingradT.addColorStop(0, 'rgb(255,0,0)'); + this.lingradT.addColorStop(1/6, 'rgb(255,255,0)'); + this.lingradT.addColorStop(2/6, 'rgb(0,255,0)'); + this.lingradT.addColorStop(3/6, 'rgb(0,255,255)'); + this.lingradT.addColorStop(4/6, 'rgb(0,0,255)'); + this.lingradT.addColorStop(5/6, 'rgb(255,0,255)'); + this.lingradT.addColorStop(1, 'rgb(255,0,0)'); + + // Événements roulette (initialisé seulement une fois) + if(window.addEventListener && !this.idColor){ + this.canvasSV.addEventListener('DOMMouseScroll', function(event){colorPicker.eventWheel(event, colorPicker.idSV)}, false); + this.canvasSV.onmousewheel = function(event){colorPicker.eventWheel(event, colorPicker.idSV)}; + this.canvasT.addEventListener('DOMMouseScroll', function(event){colorPicker.eventWheel(event, colorPicker.idT)}, false); + this.canvasT.onmousewheel = function(event){colorPicker.eventWheel(event, colorPicker.idT)}; + this.canvasO.addEventListener('DOMMouseScroll', function(event){colorPicker.eventWheel(event, colorPicker.idO)}, false); + this.canvasO.onmousewheel = function(event){colorPicker.eventWheel(event, colorPicker.idO)}; + } + + // Définir la couleur + this.idColor = id; + var couleur = eval(document.getElementById(this.idColor).title); +// alert(id+" ; "+couleur) + document.getElementById("apercuCouleur").style.backgroundColor = couleur; + document.getElementById("apercuCouleur2").style.backgroundColor = couleur; + this.definirCouleur(couleur); + + // Dessiner + this.dessiner(); + this.dessinerApercu(); + + // Définir les valeurs des inputs + this.definirInputs(); + + // Définir le style de l'ombre + this.sourisOut(); + + }, + + definirCouleur : function(colorRGB){ + var table = /(.*?)rgb\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/.exec(colorRGB); + if (table == null){ + table = /(.*?)rgba\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\)/.exec(colorRGB); + } + if(table == null){ + return ""; + } + this.rouge = parseInt(table[2]); + this.vert = parseInt(table[3]); + this.bleu = parseInt(table[4]); + this.RGB_SVT(); + }, + + sourisClick : function(id){ + this.sourisDown = id; + if(id != this.idO){ + document.getElementById(id).style.boxShadow = this.ombreActive; + } + }, + + sourisOut : function(){ + this.canvasSV.style.boxShadow = this.ombreInactive; + this.canvasT.style.boxShadow = this.ombreInactive; + }, + + sourisOver : function(id){ + if(this.sourisDown == id && id != this.idO){ + document.getElementById(id).style.boxShadow = this.ombreActive; + } + }, + + sourisUp : function(){ + this.sourisDown = false; + this.canvasSV.style.boxShadow = this.ombreInactive; + this.canvasT.style.boxShadow = this.ombreInactive; + this.dessinerO(); + }, + + eventWheel : function(event, id){ + if(!event) event = window.event; + if(event.wheelDelta){ + if(event.wheelDelta < 0){ + colorPicker.sourisWheelUp(id); + } + else{ + colorPicker.sourisWheelDown(id); + } + } + else if(event.detail){ + if(event.detail > 0){ + colorPicker.sourisWheelUp(id); + } + else{ + colorPicker.sourisWheelDown(id); + } + } + }, + + sourisWheelUp : function(id){ + switch(id){ + case this.idT: + colorPicker.ajouterT(5); + break; + case this.idO: + colorPicker.ajouterO(0.1); + break; + case this.idSV: + colorPicker.ajouterS(-5); + break; + } + }, + + sourisWheelDown : function(id){ + switch(id){ + case this.idT: + colorPicker.ajouterT(-5); + break; + case this.idO: + colorPicker.ajouterO(-0.1); + break; + case this.idSV: + colorPicker.ajouterS(5); + break; + } + }, + + ajouterT : function(nbr){ + this.teinte += nbr; + if(this.teinte < 0){ + this.teinte = 0; + } + else if(this.teinte > 360){ + this.teinte = 360; + } + this.SVT_RGB(); + }, + + ajouterO : function(nbr){ + this.opacity = Math.round((this.opacity+nbr)*100)/100; + if(this.opacity < 0){ + this.opacity = 0; + } + else if(this.opacity > 1){ + this.opacity = 1; + } + this.SVT_RGB(); + }, + + ajouterS : function(nbr){ + this.saturation += nbr; + if(this.saturation < 0){ + this.saturation = 0; + } + else if(this.saturation > 100){ + this.saturation = 100; + } + this.SVT_RGB(); + }, + + // Lors du déplacement de la souris + moveSV : function(event){ + // Vérifie si on appuie sur la souris + if(this.sourisDown != this.idSV){ + return 0; + } + + var element = this.canvasSV; + var posDivY = 0; + var posDivX = 0; + + // Récupérer la position du canvas par rapport à la page + while(element){ + posDivY = posDivY + element.offsetTop; + posDivX = posDivX + element.offsetLeft; + element = element.offsetParent; + } + + // Définir la saturation et la valeur à partir de la position de la souris + this.saturation = 100-Math.round((event.clientY - posDivY -1)/(this.height+1)*100); + this.valeur = Math.round((event.clientX - posDivX -1)/(this.width+1)*100); + + this.SVT_RGB(); + }, + moveT : function(event){ + if(this.sourisDown != this.idT){ + return 0; + } + var element = this.canvasT; + var posDivY = 0; + + while(element){ + posDivY = posDivY + element.offsetTop; + element = element.offsetParent; + } + + this.teinte = Math.round( (event.clientY - posDivY -0) / (this.height+1)*360); + + this.SVT_RGB(); + }, + + SVT_RGB : function(){ + this.T_rgb(); + this.rouge = Math.round((this.r + (255-this.r) * (-1) * (this.saturation-100) / 100 )* this.valeur / 100); + this.vert = Math.round((this.g + (255-this.g) * (-1) * (this.saturation-100) / 100 )* this.valeur / 100); + this.bleu = Math.round((this.b + (255-this.b) * (-1) * (this.saturation-100) / 100 )* this.valeur / 100); + + this.definirInputs(); + this.dessinerApercu(); + this.dessiner(); + }, + + T_rgb : function(){ + var r,g,b = 0; + var T = this.teinte; + if (T<60){ - r = 255 - g = T/60*255 - b = 0 - break - } - if (T<=120){ - r = (255-(T%60/60*255))%256 - g = 255 - b = 0 - break - } - if (T<180){ - r = 0 - g = 255 - b = T%60/60*255 - break - } - if (T<=240){ - r = 0 - g = (255-(T%60/60*255))%256 - b = 255 - break - } - if (T<300){ - r = T%60/60*255 - g = 0 - b = 255 - break - } - if (T<360){ - r = 255 - g = 0 - b = (255-(T%60/60*255))%256 - break - } - r = 255 - g = 0 - b = 0 - break + r = 255; + g = T/60*255; + b = 0; + } + else if (T<120){ + r = (255-(T%60/60*255))%256; + g = 255; + b = 0; + } + else if (T<180){ + r = 0; + g = 255; + b = T%60/60*255; + } + else if (T<240){ + r = 0; + g = (255-(T%60/60*255))%256; + b = 255; + } + else if (T<300){ + r = T%60/60*255; + g = 0; + b = 255; + } + else if (T<360){ + r = 255; + g = 0; + b = (255-(T%60/60*255))%256; + } + else{ + r = 255; + g = 0; + b = 0; + } + + this.r = Math.round(r); + this.g = Math.round(g); + this.b = Math.round(b); + }, + + RGB_SVT : function(){ + // Voir http://fr.wikipedia.org/wiki/Teinte_Saturation_Valeur#Conversion_de_RVB_vers_TSV + var r = this.rouge/255; + var g = this.vert/255; + var b = this.bleu/255; + if(!isFinite(r)){ + r = 0; + } + if(!isFinite(g)){ + g = 0; + } + if(!isFinite(b)){ + b = 0; + } + var max = Math.max(r,g,b); + var min = Math.min(r,g,b); + var s, v, t; + // Teinte + switch(max){ + case r: + t = (60 * (g-b)/(max-min) + 360) % 360; + break; + case g: + t = 60 * (b-r)/(max-min) + 120; + break; + case b: + t = 60 * (r-g)/(max-min) + 240; + break; + default: /* case min: */ + t = 0; + break; + } + + // Saturation + if(max == 0){ + s = 0; + } + else{ + s = 1-(min/max); + } + + // Valeur + v = max; + + // Définir les variables + this.saturation = s*100; + this.valeur = v*100; + this.teinte = Math.round(t); + this.T_rgb(); + }, + + dessiner : function(){ + var ctxSV = this.ctxSV; + var ctxT = this.ctxT; + // Fond + ctxSV.fillStyle = "rgb("+this.r+","+this.g+","+this.b+")"; + ctxSV.fillRect(0, 0, this.width, this.height); + // Dégradés + ctxSV.fillStyle = this.lingradV; + ctxSV.fillRect(0, 0, this.width, this.height); + ctxSV.fillStyle = this.lingradS; + ctxSV.fillRect(0, 0, this.width, this.height); + // Souris + var x = Math.round(this.width*this.valeur/100); + var y = Math.round(this.height-this.height*this.saturation/100); + ctxSV.beginPath(); + ctxSV.arc(x, y, this.rayonRonds, 0, 2*Math.PI, true); + ctxSV.strokeStyle = "rgba(255,255,255,0.8)"; + ctxSV.shadowOffsetX = 1; + ctxSV.shadowOffsetY = 1; + ctxSV.shadowColor = "rgba(0,0,0,1)"; + ctxSV.shadowBlur = 2; + ctxSV.lineWidth = 1.5; + ctxSV.stroke(); + + // Fond Teinte + ctxT.fillStyle = this.lingradT; + ctxT.fillRect(0, 0, this.width/10, this.height); + // Souris Teinte + var pos = Math.round(0.99*this.height*this.teinte/360); + ctxT.fillStyle = "rgba(255,255,255,0.8)"; + ctxT.shadowOffsetX = 0; + ctxT.shadowOffsetY = 0; + ctxT.shadowColor = "rgba(0,0,0,1)"; + ctxT.shadowBlur = 3; + ctxT.fillRect(0, pos, this.width/10, 2); + + // Désactiver les ombres + ctxSV.shadowColor = "rgba(0,0,0,0)"; + ctxT.shadowColor = "rgba(0,0,0,0)"; + + this.dessinerO(); + }, + + dessinerApercu : function(){ + document.getElementById("apercuCouleur").style.backgroundColor = "rgba("+this.rouge+","+this.vert+","+this.bleu+","+this.opacity+")"; + }, + + definirInputs : function(){ + document.getElementById("inputValeur").value = this.valeur; + document.getElementById("inputSaturation").value = this.saturation; + document.getElementById("inputTeinte").value = this.teinte; + document.getElementById("inputRouge").value = this.rouge; + document.getElementById("inputVert").value = this.vert; + document.getElementById("inputBleu").value = this.bleu; + document.getElementById("inputOpacity").value = this.opacity; + }, + + recupererInputs : function(){ + this.valeur = parseInt(document.getElementById("inputValeur").value); + this.saturation = parseInt(document.getElementById("inputSaturation").value); + this.teinte = parseInt(document.getElementById("inputTeinte").value); + this.opacity = parseFloat(document.getElementById("inputOpacity").value); + this.SVT_RGB(); + + this.definirInputs(); + this.dessinerApercu(); + this.dessiner(); + }, + recupererInputs2 : function(){ + this.rouge = parseInt(document.getElementById("inputRouge").value); + this.vert = parseInt(document.getElementById("inputVert").value); + this.bleu = parseInt(document.getElementById("inputBleu").value); + this.RGB_SVT(); + + this.definirInputs(); + this.dessinerApercu(); + this.dessiner(); + }, + + moveO : function(event){ + if(this.sourisDown != this.idO){ + return 0; + } + + var element = this.canvasO; + var posDivX = 0; + while(element){ + posDivX = posDivX + element.offsetLeft; + element = element.offsetParent; + } + + this.opacity = Math.round( (event.clientX - posDivX -this.width/10) / (this.width*0.9)*100)/100; + if(this.opacity < 0){ + this.opacity = 0; + } + else if(this.opacity > 1){ + this.opacity = 1; + } + this.dessinerO(); + this.definirInputs(); + this.dessinerApercu(); + }, + + dessinerO : function(){ + var ctx = this.ctxO; + + ctx.shadowBlur = 2; + + // Ligne + if(this.sourisDown == this.idO){ + ctx.shadowColor = "rgba(0,50,100,1)"; + } + else{ + ctx.shadowColor = "rgba(0,0,0,1)"; + } + ctx.globalAlpha = 1; + ctx.shadowOffsetX = 0; + ctx.shadowOffsetY = 0; + ctx.fillStyle = "rgba("+this.rouge+","+this.vert+","+this.bleu+",1)"; + ctx.clearRect(0,0,this.width*1.15,this.height); + ctx.fillRect(this.width/10, this.height/20-1, this.width*0.9, 3); + + // Rond + var x = this.width/10 + this.width*0.9*this.opacity-1; + var y = this.height/20; + if(this.sourisDown == this.idO){ + ctx.fillStyle = "rgba(0,40,80,1)"; + ctx.strokeStyle = "rgba(230,250,255,0.8)"; + } + else{ + ctx.fillStyle = "rgba(0,0,0,1)"; + ctx.strokeStyle = "rgba(255,255,255,0.8)"; + } + ctx.globalAlpha = 0.1+this.opacity*0.9; + ctx.beginPath(); + ctx.arc(x, y, this.rayonRonds+1, 0, 2*Math.PI, true); + ctx.shadowColor = "rgba(0,0,0,1)"; + ctx.shadowOffsetX = 1; + ctx.shadowOffsetY = 1; + ctx.lineWidth = 1; + ctx.fill(); + ctx.stroke(); + + // Petits ronds + ctx.globalAlpha = 1; + ctx.shadowColor = "rgba(0,0,0,1)"; + + ctx.beginPath(); + ctx.arc(8, this.height/20+0.5, this.rayonRonds, 0, 2*Math.PI, true); + ctx.strokeStyle = "rgba(0,0,0,0.5)"; + ctx.shadowOffsetX = 0; + ctx.shadowOffsetY = 0; + ctx.lineWidth = 1; + ctx.stroke(); + + ctx.beginPath(); + ctx.arc(this.width*1.08, this.height/20+0.5, this.rayonRonds, 0, 2*Math.PI, true); + ctx.strokeStyle = "rgba(0,0,0,0.8)"; + ctx.fillStyle = "rgba(0,0,0,0.6)"; + ctx.shadowOffsetX = 0; + ctx.shadowOffsetY = 0; + ctx.lineWidth = 1; + ctx.stroke(); + ctx.fill(); + }, + + exporterCouleur : function(){ + eval(document.getElementById(this.idColor).title+' = "rgba(" + this.rouge +", " + this.vert + ", " + this.bleu +", "+this.opacity+")"'); + document.getElementById(this.idColor).style.backgroundColor = eval(document.getElementById(this.idColor).title); + }, + + fermer : function(){ + colorPicker.exporterCouleur(); + if(colorPicker.idColor == 'buttonColor'){ + cacherMenu(); + } + else if(dernierMenu == "menuFonctions"){ + editeur.getOptions(); + afficherMenu(dernierMenu); + } + else{ + cacherMenu(); + } + actualiserGraph(); } - T = Math.round(T) - r = Math.round(r) - g = Math.round(g) - b = Math.round(b) - document.getElementById("inputTeinte").value = T - document.getElementById("colorSV").style.backgroundColor = "rgb("+r+","+g+","+b+")" - document.getElementById("ligneTeinte").setAttribute("y2", e.clientY-posDiv) - document.getElementById("ligneTeinte").setAttribute("y1", e.clientY-posDiv) - colorRGB() -} +}; -function colorRGB(){ - var S = document.getElementById("inputSaturation").value - var V = document.getElementById("inputValeur").value - var rouge = Math.round((r + (255-r) * (-1) * (S-100) / 100 )* V / 100) - var vert = Math.round((g + (255-g) * (-1) * (S-100) / 100 )* V / 100) - var bleu = Math.round((b + (255-b) * (-1) * (S-100) / 100 )* V / 100) - document.getElementById("inputRouge").value = rouge - document.getElementById("inputVert").value = vert - document.getElementById("inputBleu").value = bleu - eval(document.getElementById(idColor).title+' = "rgba(" + rouge +", " + vert + ", " + bleu +", "+document.getElementById("inputOpacity").value+")"') - document.getElementById(idColor).style.backgroundColor = eval(document.getElementById(idColor).title) - document.getElementById("apercuCouleur").style.backgroundColor = eval(document.getElementById(idColor).title) -} -function colorPicker(id){ - idColor = id - document.getElementById("apercuCouleur").style.backgroundColor = eval(document.getElementById(idColor).title) - document.getElementById("apercuCouleur2").style.backgroundColor = eval(document.getElementById(idColor).title) -} diff --git a/resources/library/applications/GraphMe.wgt/GraphMe.wgt/JavaScript/Editeur.js b/resources/library/applications/GraphMe.wgt/JavaScript/Editeur.js similarity index 100% rename from resources/library/applications/GraphMe.wgt/GraphMe.wgt/JavaScript/Editeur.js rename to resources/library/applications/GraphMe.wgt/JavaScript/Editeur.js diff --git a/resources/library/applications/GraphMe.wgt/JavaScript/Etude.js b/resources/library/applications/GraphMe.wgt/JavaScript/Etude.js deleted file mode 100644 index fea7d280..00000000 --- a/resources/library/applications/GraphMe.wgt/JavaScript/Etude.js +++ /dev/null @@ -1,356 +0,0 @@ - -// -------------------- Etude de fonctions -------------------- - -var etudeX = new Array() -var etudeY = new Array() -var etudeD = new Array() -var limGauche = new Array() -var limDroite = new Array() -var listeIndefini = new Array() -var listeZeros = new Array() -var intervalEtudeGauche = -50 -var intervalEtudeDroite = 50 -var precisionEtude = 0.001 - -function etudier(fct){ - if(check(fct)){ - prepareEtude(fct) - pariteFct() - signeFct(fct) - asymptotes() - courbure() - ensembleDefinition() - } -} - -// Préparation à l'étude de fonction -function prepareEtude(fct){ - listeIndefini = new Array() - var f = function(x){ - return eval(fct) - } - // Calcul de tous les points de la fonction - var i = 0 - for(var x=intervalEtudeGauche; x<=intervalEtudeDroite; x+=precisionEtude){ - etudeX[i] = x - etudeY[i] = Math.round(f(x)*10000)/10000 - etudeD[i] = Math.round(1000000*(f(x+0.0001)-f(x-0.0001))/(2*0.0001))/1000000 - i++ - } - // Calcul des extrémités de la fonction - var x = -100000 - limGauche[0] = f(x) - x = -10000 - limGauche[1] = f(x) - x = 100000 - limDroite[0] = f(x) - x = 10000 - limDroite[1] = f(x) -} - -// Recherche de l'ensemble de définition -function ensembleDefinition(){ - var fctDefinie = false - var dejaDefinie = false - var EDF = "" - if(!isNaN(limGauche[0])){ - fctDefinie = true - dejaDefinie = true - EDF += "]-∞;" - } - if(!isNaN(limGauche[1]) && !fctDefinie){ - fctDefinie = true - dejaDefinie = true - EDF += "]-∞;" - } - for(var i=0; i0){ - positif = Math.floor(etudeY[posZero+i]) - } - else{ - positif = Math.ceil(etudeY[posZero+i]) - } - if(etudeY[posZero-i]>0){ - negatif = Math.floor(etudeY[posZero-i]) - } - else{ - negatif = Math.ceil(etudeY[posZero-i]) - } - - if(positif<25000 && positif>-25000){ - if(positif != negatif){ - paire = false - //alert(i+" ; "+posZero+" ; "+etudeX.length+" ; "+positif+" ; "+negatif) - } - if(positif != (-negatif)){ - impaire = false - } - } - } - if(paire){ - document.getElementById("etudeParite").innerHTML = sankoreLang[lang].ev; - } - else if(impaire){ - document.getElementById("etudeParite").innerHTML = sankoreLang[lang].unev; - } - else{ - document.getElementById("etudeParite").innerHTML = sankoreLang[lang].na; - } -} - -function zeroFct(){ - listeZeros = new Array() - var listeZerosArr = new Array() - var precZeros = 5 - for(var i=0; i0){ - signe[0] = "+" - signePlus[0] = limGauche[1] - signeMoins[0] = limGauche[0] - } - else{ - signe[0] = "-" - signePlus[0] = limGauche[1] - signeMoins[0] = limGauche[0] - } - for(var i=0; i0){ - dernier = i - } - } - if(signe[signe.length-1]=="-"){ - if(etudeY[i]>0){ - signe.push("+") - signePlus.push(etudeX[i]) - signeMoins.push(etudeX[dernier]) - //alert(signe+" ; "+signePlus+'\n'+etudeY[i+1]+" ; "+etudeY[i]+" ; "+etudeY[i-1]+" ; "+etudeY[i-2]+'\n'+etudeX[i+1]+" ; "+etudeX[i]+" ; "+etudeX[i-1]+" ; "+etudeX[i-2]) - } - else if(etudeY[i]<0){ - dernier = i - } - } - } - var valeurPlus, valeurMoins, millieu, precisionZero - listeZeros = new Array() - for(var i=1; i0){ - x = millieu - if(eval(fct)>0){ - valeurPlus=millieu - } - else if(eval(fct)<0){ - valeurMoins=millieu - } - else{ - break - } - } - else if(eval(fct)<0){ - x = millieu - if(eval(fct)<0){ - valeurPlus=millieu - } - else if(eval(fct)>0){ - valeurMoins=millieu - } - else{ - break - } - } - else{ - millieu = valeurPlus - break - } - x = valeurPlus - precisionZero = eval(fct) - x = valeurMoins - precisionZero -= eval(fct) - if(precisionZero>0.0001){ - break - } - } - listeZeros.push(Math.round(millieu*100)/100) - } - var texteZeros = "" - if(listeZeros==""){ - zeroFct() - texteZeros = "~ " - } - var texte = sankoreLang[lang].signe; - var aSupprimer = new Array() - for(var i=0; i" - if(listeZeros[i]!=undefined){ - x = listeZeros[i] - if(isFinite(eval(fct))){ - texte += ""+listeZeros[i]+"" - } - else{ - texte += ""+listeZeros[i]+"" - listeIndefini.push(listeZeros[i]) - aSupprimer.push(i) - } - } - } - document.getElementById("etudeSigne").innerHTML = texte - for(var i=0; i" + sankoreLang[lang].curve_higher + "" - } - else if(limGauche[0]>limRound){ - document.getElementById("etudeAHG").innerHTML = "y = "+limRound +" " + sankoreLang[lang].curve_lower + "" - } - else{ - document.getElementById("etudeAHG").innerHTML = "y = "+limRound - } - } - else{ - document.getElementById("etudeAHG").innerHTML = sankoreLang[lang].na; - } - if(Math.abs(limDroite[0])<1000){ - var limRound = Math.round(limDroite[0]*100)/100 - if(limDroite[0]" + sankoreLang[lang].curve_lower + "" - } - else if(limDroite[0]>limRound){ - document.getElementById("etudeAHD").innerHTML = "y = "+limRound +" " + sankoreLang[lang].curve_higher + "" - } - else{ - document.getElementById("etudeAHD").innerHTML = "y = "+limRound - } - } - else{ - document.getElementById("etudeAHD").innerHTML = sankoreLang[lang].na; - } - // Verticales - var texteAV = "" - for(var i=0; i" - } - document.getElementById("etudeAV").innerHTML = texteAV -} - -function courbure(){ - var texteMin = ""; - var texteMax = ""; - var texteI = ""; - var nbrI = 0; - var i; - for(i=0; i0){ - texteMin += "
    " + sankoreLang[lang].min + "("+Math.round(etudeX[i]*10000)/10000+";"+etudeY[i]+")"; - } - else if(etudeD[i-1]>0 && etudeD[i+1]<0){ - texteMax += "
    " + sankoreLang[lang].max + "("+Math.round(etudeX[i]*10000)/10000+";"+etudeY[i]+")"; - } - else{ - nbrI++; - texteI += '
    I'+nbrI+"("+Math.round(etudeX[i]*10000)/10000+";"+etudeY[i]+")"; - } - } - } - if(texteMin==""){ - texteMin = "
    " + sankoreLang[lang].no_min; - } - if(texteMax==""){ - texteMax = "
    " + sankoreLang[lang].no_max; - } - if(texteI==""){ - texteI = "
    Aucun I"; - } - document.getElementById("etudeMin").innerHTML = texteMin; - document.getElementById("etudeMax").innerHTML = texteMax; -} \ No newline at end of file diff --git a/resources/library/applications/GraphMe.wgt/GraphMe.wgt/JavaScript/Etudes.js b/resources/library/applications/GraphMe.wgt/JavaScript/Etudes.js similarity index 100% rename from resources/library/applications/GraphMe.wgt/GraphMe.wgt/JavaScript/Etudes.js rename to resources/library/applications/GraphMe.wgt/JavaScript/Etudes.js diff --git a/resources/library/applications/GraphMe.wgt/GraphMe.wgt/JavaScript/Fonction.js b/resources/library/applications/GraphMe.wgt/JavaScript/Fonction.js similarity index 100% rename from resources/library/applications/GraphMe.wgt/GraphMe.wgt/JavaScript/Fonction.js rename to resources/library/applications/GraphMe.wgt/JavaScript/Fonction.js diff --git a/resources/library/applications/GraphMe.wgt/GraphMe.wgt/JavaScript/ImplicitFunction.js b/resources/library/applications/GraphMe.wgt/JavaScript/ImplicitFunction.js similarity index 100% rename from resources/library/applications/GraphMe.wgt/GraphMe.wgt/JavaScript/ImplicitFunction.js rename to resources/library/applications/GraphMe.wgt/JavaScript/ImplicitFunction.js diff --git a/resources/library/applications/GraphMe.wgt/JavaScript/Interface.js b/resources/library/applications/GraphMe.wgt/JavaScript/Interface.js index 34a1bef2..e90111e5 100644 --- a/resources/library/applications/GraphMe.wgt/JavaScript/Interface.js +++ b/resources/library/applications/GraphMe.wgt/JavaScript/Interface.js @@ -1,6 +1,10 @@ // -------------------- Fonctions de l'interface -------------------- + +var menuActuel = "divInputRapide" +var dernierMenu = "" + var pleinEcran = false var maximise = true var tailleFenetreX = window.innerWidth @@ -12,23 +16,56 @@ var AncienneMethodeAffichage = 0 function afficherMenu(id){ if (menuActuel == id){ cacherMenu() + dernierMenu = false; } else { - if (menuActuel !== ""){ + if (menuActuel != ""){ + dernierMenu = menuActuel; cacherMenu() } menuActuel = id document.getElementById(id).style.display = "block" + message.supprimer(); } } // Permet de cacher le menu actuellement affiché function cacherMenu(){ - document.getElementById(menuActuel).style.display = "none" - menuActuel = "" + if(menuActuel != ""){ + document.getElementById(menuActuel).style.display = "none" + menuActuel = "" + } } -// ---- Minimiser ou Maximiser le widget (pour sankore) ---- +// Affiche un message d'erreur +function afficherErreur(message){ + document.getElementById("spanErreurFct").innerHTML = message; + afficherMenu("erreurFct"); +} + +// Messages d'info + +var message = { + liste : [], + ajouter : function(x, y, contenu){ + var newDiv = document.createElement("div"); + newDiv.style.left = x + "px"; + newDiv.style.top = y + "px"; + + var textDiv = document.createElement("span"); + textDiv.innerHTML = contenu; + newDiv.appendChild(textDiv); + + document.getElementById("divMessages").appendChild(newDiv); + }, + supprimer : function(){ + var div = document.getElementById("divMessages"); + div.innerHTML = ""; + } +}; + + +// ---- Minimiser ou Maximiser le widget (pour Uniboard) ---- function miniMax(){ if (maximise){ maximise = false @@ -49,6 +86,17 @@ function miniMax(){ } } +// Affiche le menu + +function menuFonctions(){ + if(fonction3D){ + afficherMenu('menuHistorique'); + } + else{ + afficherMenu('menuFonctions'); + editeur.editer(0); + } +} + // Action des petits bouton + et - dans les options function boutonPlus(id, nombre){ var element = document.getElementById(id) @@ -64,101 +112,73 @@ function boutonMoins(id, nombre){ } // Changer de thème -function changerTheme(){ - var theme = document.getElementById("selectTheme").value - switch(theme){ - case "noir": - document.body.style.backgroundImage = "url(Images/fond2.png)" - document.getElementById("gauche").style.backgroundImage = "url(Images/gauche2.png)" - document.getElementById("onglet3D").style.backgroundImage = "url(Images/onglet1.png)" - document.getElementById("texteFonction").style.color = "white" - var couleurEchelle = "rgba(255,255,255,0.8)" - var couleurGrille = "rgba(255,255,255,0.1)" - var couleurAxes = "rgba(0,0,0,0.5)" - break - case "bleu": - document.body.style.backgroundImage = "url(Images/fond4.png)" - document.getElementById("gauche").style.backgroundImage = "url(Images/gauche3.png)" - document.getElementById("onglet3D").style.backgroundImage = "url(Images/onglet2.png)" - document.getElementById("texteFonction").style.color = "white" - var couleurEchelle = "rgba(255,255,255,0.8)" - var couleurGrille = "rgba(255,255,255,0.1)" - var couleurAxes = "rgba(0,0,0,0.5)" - break - case "blanc": - document.body.style.backgroundImage = "url(Images/fond5.png)" - document.getElementById("gauche").style.backgroundImage = "url(Images/gauche3.png)" - document.getElementById("onglet3D").style.backgroundImage = "url(Images/onglet2.png)" - document.getElementById("texteFonction").style.color = "black" - var couleurEchelle = "rgba(0,0,0,0.8)" - var couleurGrille = "rgba(255,255,255,0.2)" - var couleurAxes = "rgba(0,0,0,0.5)" - break +function changerTheme(theme){ + var positions = [ + "top-left", + "top", + "top-right", + "right", + "bottom-right", + "bottom", + "bottom-left", + "left", + "center" + ]; + for(var i=0; i'; +// txtHTML += ''; +// txtHTML += ''; + } + document.getElementById("newVersion").innerHTML = txtHTML; + + afficherMenu("mAj"); } function checkboxMaJ(){ - if(document.location.href=='http://gyb.educanet2.ch/tm-widgets/yannick/GraphMe.wgt/Grapheur.xhtml'){ + if(versionOnline()){ afficherMenu('erreurMaJ') document.getElementById("checkMaJ").checked = false } @@ -194,20 +223,52 @@ function checkboxMaJ(){ } function majAuto(){ - if(document.location.href=='http://gyb.educanet2.ch/tm-widgets/yannick/GraphMe.wgt/Grapheur.xhtml'){ - document.getElementById("cacheMaJ").style.display = "block" - document.getElementById("checkMaJ").checked = true +// var audio = new Audio(); +// audio.src = "version.ogg"; +// audio.load(); +// setTimeout(function(){ +// window.console.log(" "+audio.duration); +// }, 0) + if(versionOnline()){ + document.getElementById("cacheMaJ").style.display = "block"; + document.getElementById("checkMaJ").disabled = true; + document.getElementById("checkMaJ").checked = true; } else{ if(document.getElementById("checkMaJ").checked){ - afficherMenu('demandeMaJ') + afficherMenu('demandeMaJ'); + } + } +} +function majAccept(){ +// document.location.href='http://gyb.educanet2.ch/tm-widgets/yannick/GraphMe.wgt/Grapheur.html'; + for(var i=0; i' -} \ No newline at end of file +// cacherMenu() +// document.getElementById("affichage").innerHTML = '' + window.open(lien, "_blank") +} diff --git a/resources/library/applications/GraphMe.wgt/GraphMe.wgt/JavaScript/Languages.js b/resources/library/applications/GraphMe.wgt/JavaScript/Languages.js similarity index 100% rename from resources/library/applications/GraphMe.wgt/GraphMe.wgt/JavaScript/Languages.js rename to resources/library/applications/GraphMe.wgt/JavaScript/Languages.js diff --git a/resources/library/applications/GraphMe.wgt/JavaScript/Outils.js b/resources/library/applications/GraphMe.wgt/JavaScript/Outils.js old mode 100644 new mode 100755 index 0915a333..82f9aa91 --- a/resources/library/applications/GraphMe.wgt/JavaScript/Outils.js +++ b/resources/library/applications/GraphMe.wgt/JavaScript/Outils.js @@ -1,252 +1,446 @@ // -------------------- Fonctions des outils -------------------- -var listeFonctions = new Array() -var listeCouleurs = new Array() -var historique = new Array() -var ctxT - -// Cette fonction permet d'effectuer un zoom. Elle change la valeur des inputs à gauche -// qui définnissent la zone à afficher et actualise le graphique. -function zoom(valeur){ - var diffBornes = Math.abs(parseFloat(document.getElementById("borneXGauche").value) - parseFloat(document.getElementById("borneXDroite").value)) - var ajouter = (diffBornes * valeur - diffBornes)/2 - var nouvelleValeur = parseFloat(document.getElementById("borneXGauche").value) - ajouter - if (nouvelleValeur < 0){ nouvelleValeur = Math.ceil(nouvelleValeur) } - if (nouvelleValeur > 0){ nouvelleValeur = Math.floor(nouvelleValeur) } - if (nouvelleValeur == parseFloat(document.getElementById("borneXGauche").value) && valeur>1){ nouvelleValeur=nouvelleValeur-1 } - if (nouvelleValeur == parseFloat(document.getElementById("borneXGauche").value) && valeur<1){ nouvelleValeur=nouvelleValeur+1 } - document.getElementById("borneXGauche").value = nouvelleValeur - var nouvelleValeur = parseFloat(document.getElementById("borneXDroite").value) + ajouter - if (nouvelleValeur < 0){ nouvelleValeur = Math.ceil(nouvelleValeur) } - if (nouvelleValeur > 0){ nouvelleValeur = Math.floor(nouvelleValeur) } - if (nouvelleValeur == parseFloat(document.getElementById("borneXDroite").value) && valeur>1){ nouvelleValeur=nouvelleValeur+1 } - if (nouvelleValeur == parseFloat(document.getElementById("borneXDroite").value) && valeur<1){ nouvelleValeur=nouvelleValeur-1 } - document.getElementById("borneXDroite").value = nouvelleValeur - - var diffBornes = Math.abs(parseFloat(document.getElementById("borneYGauche").value) - parseFloat(document.getElementById("borneYDroite").value)) - var ajouter = (diffBornes * valeur - diffBornes)/2 - var nouvelleValeur = parseFloat(document.getElementById("borneYGauche").value) - ajouter - if (nouvelleValeur < 0){ nouvelleValeur = Math.ceil(nouvelleValeur) } - if (nouvelleValeur > 0){ nouvelleValeur = Math.floor(nouvelleValeur) } - if (nouvelleValeur == parseFloat(document.getElementById("borneYGauche").value) && valeur>1){ nouvelleValeur=nouvelleValeur-1 } - if (nouvelleValeur == parseFloat(document.getElementById("borneYGauche").value) && valeur<1){ nouvelleValeur=nouvelleValeur+1 } - document.getElementById("borneYGauche").value = nouvelleValeur - var nouvelleValeur = parseFloat(document.getElementById("borneYDroite").value) + ajouter - if (nouvelleValeur < 0){ nouvelleValeur = Math.ceil(nouvelleValeur) } - if (nouvelleValeur > 0){ nouvelleValeur = Math.floor(nouvelleValeur) } - if (nouvelleValeur == parseFloat(document.getElementById("borneYDroite").value) && valeur>1){ nouvelleValeur=nouvelleValeur+1 } - if (nouvelleValeur == parseFloat(document.getElementById("borneYDroite").value) && valeur<1){ nouvelleValeur=nouvelleValeur-1 } - document.getElementById("borneYDroite").value = nouvelleValeur - - if(Math.abs(parseFloat(document.getElementById("borneXGauche").value) - parseFloat(document.getElementById("borneXDroite").value)) == 0){reinitialiserZoom(1)} - if(Math.abs(parseFloat(document.getElementById("borneYGauche").value) - parseFloat(document.getElementById("borneYDroite").value)) == 0){reinitialiserZoom(1)} - actualiserGraph() -} - -// Permet de réinitialiser le zoom à la valeur donnée. -function reinitialiserZoom(valeur){ - document.getElementById("borneXGauche").value = -valeur - document.getElementById("borneXDroite").value = valeur - document.getElementById("borneYGauche").value = -valeur - document.getElementById("borneYDroite").value = valeur - angle = Math.PI/8 - valeurZoom3D = 1 - gauche3D = -6.5 - droite3D = 6.5 - precisionDroite3D = 0.02 - precisionFonction3D = 0.2 - document.getElementById("inputPrecision3D").value = 0.2 - actualiserGraph() -} - -// Ces fonctions permettent de déplacer le graphique sur l'axe "x" et "y" -// Pour cela, elles redéfinissent la zone à afficher (à gauche dans les inputs) - function deplacerY(valeur){ - document.getElementById("borneYGauche").value = parseFloat(document.getElementById("borneYGauche").value) + valeur - document.getElementById("borneYDroite").value = parseFloat(document.getElementById("borneYDroite").value) + valeur - actualiserGraph() - } - function deplacerX(valeur){ - document.getElementById("borneXGauche").value = parseFloat(document.getElementById("borneXGauche").value) + valeur - document.getElementById("borneXDroite").value = parseFloat(document.getElementById("borneXDroite").value) + valeur - if(fonction3D){ - angle = angle + valeur * Math.PI/8 - } - actualiserGraph() - } // Permet d'afficher la valeur en "y" pour un point donné en "x" - function execute(fonction) { - if(check(fonction)){ - x = document.getElementById("inputX").value - document.getElementById("outputX").innerHTML = " f(x) = "+eval(fonction)+"" - //alert("Si x = "+x+" \nf(x) = "+eval(fonction)+"") - } - } - -// Ajoute la fonction mathématique se trouvant dans l'input en haut à une liste. -// Ceci est utile à l'affichage de plusieurs fonctions simultanées. -function menuFonctions(){ - if(fonction3D){ - afficherMenu('menuHistorique') - } - else{ - afficherMenu('menuFonctions') - } +function calculerPoint() { + x = document.getElementById("inputX").value; + document.getElementById("outputX").innerHTML = " f(x) = "+fct.list[editeur.idFct].f(x)+""; + //alert("Si x = "+x+" \nf(x) = "+eval(fonction)+"") } -function ajouterFonction(fct){ - listeFonctions.push(fct) - listeCouleurs.push("rgba(0,171,255,0.9)") - actualiserListeFonctions() -} -function actualiserListeFonctions(){ - var texteFctSupp = "" - for(var i=0; i' - texteFctSupp += ' ....
    ' - } - document.getElementById("fonctionsSupp").innerHTML = texteFctSupp - actualiserGraph() -} -function actualiserHistorique(){ - var texteHistorique = "" - for(var i=0; i'+historique[i]+'
    ' +// Historique + +var historique = { + liste : [], + + actualiser : function(){ + var texteHistorique = "" + for(var i=0; i'; + texteHistorique += this.liste[i].readableText(); + texteHistorique += '
    '; + } + document.getElementById("spanHistorique").innerHTML = texteHistorique + document.getElementById("divHistorique").scrollTop = 0 + }, + + use : function(index){ + fct.add(this.liste[index]); + }, + + ajouter : function(func){ + if(func.fct == ""){ + return; + } + for(var i=0; i' - ctxT = document.getElementById('canvasT').getContext('2d') - } - else{ - document.getElementById("tangente").innerHTML = "" - ctxT = null - } -} +var outil = { + // + idAffichage : "affichageOutils", + + // Outil sélectionné + actuel : "point", + + // Canvas + canvas : null, + ctx : null, + + width: 0, + height: 0, + + // Liste des éléments à dessiner + liste : [], + + // Fonction d'initialisation + init : function(width, height){ + var element = document.getElementById(this.idAffichage); + if(element.hasChildNodes()){ + while(element.childNodes.length >= 1 ){ + element.removeChild(element.firstChild); + } + } + + this.width = width || element.clientWidth; + this.height = height || element.clientHeight; + +// element.style.width = affichage.largeur +"px"; +// element.style.height = affichage.hauteur +"px"; +// element.style.left = document.getElementById(affichage.id).offsetLeft+1 +"px"; +// element.style.top = document.getElementById(affichage.id).offsetTop+1 +"px"; + + this.canvas = document.createElement("canvas"); + this.canvas.width = this.width; + this.canvas.height = this.height; + element.appendChild(this.canvas); + this.ctx = this.canvas.getContext('2d'); + }, + + // Permet de changer d'outil et de faire différentes actions lors du choix de l'outil + choisir : function(nom){ + document.getElementById("pointTool").className = "toolButton"; + document.getElementById("moveTool").className = "toolButton"; + document.getElementById("tangentTool").className = "toolButton"; + switch(nom){ + case 'point': + document.getElementById("pointTool").className += " selectedTool"; + break; + case 'deplacement': + document.getElementById("moveTool").className += " selectedTool"; + break; + case 'tangente': + document.getElementById("tangentTool").className += " selectedTool"; + break; + } + if(nom == 'deplacement'){ + document.getElementById("eventAffichage").style.cursor = "move"; + } + else{ + document.getElementById("eventAffichage").style.cursor = "auto"; + } + this.dessinerListe(); + this.actuel = nom; + saveOptions(); + }, + + // Gestion des événements reçus de l'objet souris + move : function(x, y, xInit, yInit, active){ + switch(this.actuel){ + case "deplacement": + if(active){ + this.deplacement(x, y, xInit, yInit); + } + break; + case "point": + this.point(x, y); + break; + case "tangente": + this.tangente(x, y); + break; + } + }, + + down : function(x, y){ + switch(this.actuel){ + case "point": + this.point(x, y, true) + break; + case "tangente": + this.tangente(x, y, true); + break; + } + }, + + // Fonctions des outils + deplacement : function(x, y, xInit, yInit){ + var valeurX = (x-xInit)/affichage.multX; + var valeurY = (yInit-y)/affichage.multY; + if(Math.round(Math.abs(valeurX)) > 0){ + if(fonction3D){ + affichage.deplacerX(Math.round(2*valeurX)/2); + } + else{ + affichage.deplacerX(-Math.round(2*valeurX)/2); + } + souris.xInit = x; + } + if(Math.round(Math.abs(valeurY)) > 0){ + affichage.deplacerY(-Math.round(2*valeurY)/2); + souris.yInit = y; + } + }, + + point : function(sourisX, sourisY, ajouterDansListe){ + var ctx = new Object(); + ctx = this.ctx; + + // Dessiner les points et tangentes supplémentaires + this.dessinerListe(); + + for(var i=0; i func.endAngle){ + continue; + } + } + var x = func.getX(t); + var y = func.getY(t); + + // Afficher les coordonnées et le point sous la souris + if(!isNaN(x) && !isNaN(y)){ + if(ajouterDansListe){ + this.ajouterPoint(x, y, func.couleur); + } + this.dessinerPoint(x, y, func.couleur); + } + } + }, + dessinerPoint : function(x, y, couleur){ + var ctx = new Object(); + ctx = this.ctx; + + // Conversion des coordonnées + var posX = coordToPosX(x) + 1; + var posY = coordToPosY(y) + 1; + + ctx.shadowColor = couleur; + ctx.shadowBlur = 4; + + // Texte + var txtPos = "("+Math.round(x*100)/100+";"+Math.round(y*100)/100+")"; + ctx.fillStyle = "rgba(255,255,255,0.5)"; + try{ + ctx.bulle(posX+7, posY-7, txtPos.length*5.5, 20); + } + catch(err){ + ctx.fillRect(posX+7, posY-27, txtPos.length*5.5, 20); + } + + ctx.fillStyle = "black"; + ctx.shadowColor = "black"; + ctx.shadowOffsetX = 1; + ctx.shadowOffsetY = 1; + ctx.shadowBlur = 2; + ctx.fillText(txtPos, posX+8+txtPos.length/4, posY-13); + + // Rond + ctx.beginPath(); + ctx.arc(posX, posY, 4, 0, 2*Math.PI, true); + + ctx.shadowColor = couleur; + ctx.shadowOffsetX = 0; + ctx.shadowOffsetY = 0; + ctx.shadowBlur = 4; -// Fonctions servant à gérer les événements de la souris -function sourisDown(){ - mouseDown = true - posSourisXinit = posSourisX - posSourisYinit = posSourisY -} -function sourisUp(){ - mouseDown = false -} -function sourisMove(event){ - posSourisX = event.clientX - posSourisY = event.clientY - if(mouseDown){ - if(outil == "deplacement"){ - var valeurX = (posSourisX-posSourisXinit)/multiplicateurX - var valeurY = (posSourisYinit-posSourisY)/multiplicateurY - if(Math.round(Math.abs(valeurX)) > 0){ - deplacerX(-Math.round(2*valeurX)/2) - posSourisXinit = posSourisX + ctx.fillStyle = "rgba(0,0,0,1)"; + ctx.strokeStyle = "rgba(255,255,255,0.8)"; + ctx.lineWidth = 1; + ctx.fill() + ctx.stroke(); + }, + + tangente : function(sourisX, sourisY, ajouterDansListe){ + var delta = 0.001; + + var ctx = new Object(); + ctx = this.ctx; + + // Dessiner les points et tangentes supplémentaires + this.dessinerListe(); + + // Dessiner les tangentes des fonctions + for(var i=0; i 0){ - deplacerY(-Math.round(2*valeurY)/2) - posSourisYinit = posSourisY + + // Position de la souris par rapport au coin supérieur gauche de l'affichage + var posX = sourisX - affichage.offsetLeft - 2; + + // Valeur de la coordonnée x sous la souris + var t = posX / affichage.multX + affichage.xGauche; + if("startAngle" in func){ + if(t < func.startAngle || t > func.endAngle){ + continue; + } + } + var t1 = t + delta; + var x = func.getX(t); + var x1 = func.getX(t1); + // Calcul de deux valeurs y et de la pente + var y = func.getY(t); + var y1 = func.getY(t1); + var pente; + if(x1 != x){ + pente = (y1-y)/(x1-x); + } + else{ + pente = Number.POSITIVE_INFINITY; + } + + // Dessiner la pente; + if(!isNaN(x) && !isNaN(y) && !isNaN(y1)){ + if(ajouterDansListe){ + this.ajouterTangente(x, y, pente, func.couleur); + } + this.dessinerTangente(x, y, pente, func.couleur); } - //decalageX = posSourisX-posSourisXinit - //decalageY = posSourisY-posSourisYinit - //actualiserGraph() } - } - if(outil == "point"){ - var position = Math.round((posSourisX-132)*(borneXDroite-borneXGauche)/(precision*500)) - var positionX = pointX[position] - var positionY = pointY[position] - if(!isNaN(positionX) && !isNaN(positionY)){ - document.getElementById("info").innerHTML = "("+Math.round((positionX/multiplicateurX+borneXGauche)*100)/100+";"+Math.round(-(positionY/multiplicateurY-borneYDroite)*100)/100+")" - document.getElementById("point").style.left = (positionX+130-4)+"px" - document.getElementById("point").style.top = (positionY+53-10)+"px" + }, + dessinerTangente : function(x, y, pente, couleur){ + var ctx = new Object(); + ctx = this.ctx; + + // Conversion des coordonnées + var posX = coordToPosX(x) + 1; + var posY = coordToPosY(y) + 1; + + // Carré + ctx.shadowColor = couleur; + ctx.shadowBlur = 4; + + ctx.fillStyle = "white"; + ctx.fillRect(posX-3, posY-3, 6, 6); + + // Pente + ctx.strokeStyle = "white"; + ctx.lineWidth = 2; + ctx.beginPath(); + var pente2 = pente * (affichage.hauteur/affichage.largeur) * (affichage.xDroite-affichage.xGauche)/(affichage.yHaut-affichage.yBas); + ctx.moveTo(0, posY+posX*pente2); + ctx.lineTo(affichage.largeur, posY+posX*pente2-affichage.largeur*pente2); + ctx.stroke(); + + // Texte + var txtPente; + if(isFinite(pente)){ + txtPente = pente.toFixed(2); } - } - if(outil == "tangente"){ - var position = Math.round((posSourisX-129)/multiplicateurX/precision) - var positionX = pointX[position] - var positionY = pointY[position] - var valeurPente = ((hauteur-pente[position])/multiplicateurY+borneYGauche) - //hauteur - (((y-y1)/precision - borneYGauche)* multiplicateurY) - document.getElementById("info").innerHTML = "("+Math.round(valeurPente*100)/100+")" - ctxT.clearRect(0,0,largeur*2,hauteur*2) - if(!isNaN(positionX) && !isNaN(positionY)){ - ctxT.fillStyle = "white" - ctxT.fillRect (positionX-1, positionY-2, 6, 6) - ctxT.strokeStyle = "white" - ctxT.lineWidth = 2 - ctxT.beginPath() - valeurPente = valeurPente * (hauteur/largeur) * (borneXDroite-borneXGauche)/(borneYDroite-borneYGauche) - ctxT.moveTo(0+4, positionY+positionX*valeurPente+1) - ctxT.lineTo(largeur+4, positionY+positionX*valeurPente-largeur*valeurPente+1) - ctxT.stroke() + else{ + txtPente = "∞" } + ctx.fillStyle = "rgba(255,255,255,0.5)"; + try{ + ctx.bulle(posX+7, posY-7, txtPente.length*5.5+1, 20); + } + catch(err){ + ctx.fillRect(posX+7, posY-27, txtPente.length*5.5, 20); + } + + ctx.fillStyle = "black"; + ctx.shadowColor = "black"; + ctx.shadowOffsetX = 1; + ctx.shadowOffsetY = 1; + ctx.shadowBlur = 2; + ctx.fillText(txtPente, posX+8+txtPente.length/4, posY-13); + }, + + ajouterPoint : function(x, y, couleur){ + var newPoint = { + x : x, + y : y, + couleur : couleur, + dessiner : function(){ + outil.dessinerPoint(this.x, this.y, this.couleur); + } + }; + this.liste.push(newPoint); + }, + ajouterTangente : function(x, y, pente, couleur){ + var newTangente = { + x : x, + y : y, + pente : pente, + couleur : couleur, + dessiner : function(){ + outil.dessinerTangente(this.x, this.y, this.pente, this.couleur); + } + }; + this.liste.push(newTangente); + }, + dessinerListe : function(){ + if(!this.ctx){ + return; + } + this.ctx.clearRect(0,0,affichage.largeur*2,affichage.hauteur*2); + for(var i=0; i affichage.largeur+affichage.offsetLeft || posX < affichage.offsetLeft || posY > affichage.hauteur+affichage.offsetTop || posX < affichage.offsetTop){ + continue; + } + var txt = '
    ' - ctx = document.getElementById('canvas').getContext('2d') - var lingrad = ctx.createLinearGradient(100,100,largeur-100,hauteur-100) - lingrad.addColorStop(0, 'rgba(0,50,255,1)') - lingrad.addColorStop(1, 'rgba(0,255,255,1)') - ctx.fillStyle = lingrad - ctx.textAlign = "center" - ctx.font = "72px bold" - ctx.fillText("Canvas", largeur/2, hauteur/2-1) -} -function testXPM(){ - document.getElementById("affichage").innerHTML = '' -} - - // ---- Aire sous la fonction (intégrale) ---- function AireSousFct(fct, a, b, n){ var aire, largeurRect, gaucheRect, droiteRect, millieuRect, hauteurRect, aireRect; - var f = function(x){ - return eval(fct); - }; + var f = new Function("x", "return "+fct); aire = 0; largeurRect = (b-a)/n; for(var i=0; i'; + afficherMenu('menuSaveImage'); + + display3D.background = background; + setTimeout(function(){ + display3D.init(); + display3D.draw(); + }, 1); + } + else{ + if(affichage.methode == "canvas"){ + var l = affichage.largeur; + var h = affichage.hauteur; + var c = affichage.couleurFond; + + affichage.largeur = parseInt(document.getElementById("saveWidth").value); + affichage.hauteur = parseInt(document.getElementById("saveHeight").value); + affichage.couleurFond = backgroundSauvegarde; + + var newDiv = document.createElement("div"); + affichage.init(newDiv, userWidth, userHeight); + + outil.init(); + outil.dessinerListe(); + affichage.ctx.drawImage(outil.canvas,0,0); + + var dataURL; + if(document.getElementById("selectSaveType").value == "jpg"){ + dataURL = affichage.canvas.toDataURL("image/jpeg"); + } + else{ + dataURL = affichage.canvas.toDataURL(); + } + document.getElementById("saveImageContent").innerHTML = ''; + afficherMenu('menuSaveImage'); + + affichage.largeur = l; + affichage.hauteur = h; + affichage.couleurFond = c; + affichage.init(); + outil.init(); + } + else if(affichage.methode == "svg"){ + window.open("JavaScript/AffichageSVG.svg"); + } + } +} diff --git a/resources/library/applications/GraphMe.wgt/GraphMe.wgt/JavaScript/ParametricFunction.js b/resources/library/applications/GraphMe.wgt/JavaScript/ParametricFunction.js similarity index 100% rename from resources/library/applications/GraphMe.wgt/GraphMe.wgt/JavaScript/ParametricFunction.js rename to resources/library/applications/GraphMe.wgt/JavaScript/ParametricFunction.js diff --git a/resources/library/applications/GraphMe.wgt/GraphMe.wgt/JavaScript/PolarFunction.js b/resources/library/applications/GraphMe.wgt/JavaScript/PolarFunction.js similarity index 100% rename from resources/library/applications/GraphMe.wgt/GraphMe.wgt/JavaScript/PolarFunction.js rename to resources/library/applications/GraphMe.wgt/JavaScript/PolarFunction.js diff --git a/resources/library/applications/GraphMe.wgt/JavaScript/Sauvegardes.js b/resources/library/applications/GraphMe.wgt/JavaScript/Sauvegardes.js index 91b3514a..54b3829d 100644 --- a/resources/library/applications/GraphMe.wgt/JavaScript/Sauvegardes.js +++ b/resources/library/applications/GraphMe.wgt/JavaScript/Sauvegardes.js @@ -1,4 +1,6 @@ -var listeOptions = ["theme","precision","decalageX","decalageY","epaisseur","grille","axes","echelle","zoom","methode","methode3D","precision3D","maj"]; +// Fonctions permettant de sauvegarder les options + +var optionsLoaded = false; function setCookie(nom,valeur){ var jours = 545; // Durée de validité des cookies @@ -31,89 +33,74 @@ function delCookie(nom){ } function saveOptions(){ - setCookie("theme",document.getElementById("selectTheme").value); - setCookie("precision",document.getElementById("inputPrecision").value); - setCookie("decalageX",document.getElementById("inputDecalageX").value); - setCookie("decalageY",document.getElementById("inputDecalageY").value); - setCookie("epaisseur",document.getElementById("inputTaille").value); - setCookie("grille",document.getElementById("checkGrille").checked); - setCookie("axes",document.getElementById("checkAxes").checked); - setCookie("echelle",document.getElementById("checkEchelle").checked); - setCookie("zoom",document.getElementById("zoomDefaut").value); - setCookie("methode",document.getElementById("selectMethodeAffichage").value); - setCookie("methode3D",document.getElementById("selectAffichage3D").value); - setCookie("precision3D",document.getElementById("inputPrecision3D").value); - setCookie("maj",document.getElementById("checkMaJ").checked); - document.getElementById("infoSauvegarde").style.display = "block" + if(!optionsLoaded){ + return; + } + var state = JSON.stringify(widget.getState()); + if(window.sankore){ + sankore.setPreference("state", state); + } + else if(navigator.cookieEnabled){ + setCookie("state", state); + } } function loadOptions(){ - if(navigator.cookieEnabled){ - if(checkOptions()){ - document.getElementById("selectTheme").value = getCookie("theme"); - changerTheme(document.getElementById("selectTheme").value); - document.getElementById("inputPrecision").value = getCookie("precision"); - document.getElementById("inputDecalageX").value = getCookie("decalageX"); - document.getElementById("inputDecalageY").value = getCookie("decalageY"); - document.getElementById("inputTaille").value = getCookie("epaisseur"); - if(getCookie("grille")=="true"){ - document.getElementById("checkGrille").checked = true; - } - else{ - document.getElementById("checkGrille").checked = false; - } - if(getCookie("axes")=="true"){ - document.getElementById("checkAxes").checked = true; - } - else{ - document.getElementById("checkAxes").checked = false; - } - if(getCookie("echelle")=="true"){ - document.getElementById("checkEchelle").checked = true; - } - else{ - document.getElementById("checkEchelle").checked = false; - } - document.getElementById("zoomDefaut").value = getCookie("zoom"); - document.getElementById("selectMethodeAffichage").value = getCookie("methode"); - document.getElementById("selectAffichage3D").value = getCookie("methode3D"); - document.getElementById("inputPrecision3D").value = getCookie("precision3D"); - if(getCookie("maj")=="true"){ - document.getElementById("checkMaJ").checked = true; - } - else{ - document.getElementById("checkMaJ").checked = false; - } - actualiserGraph(); - } - else{ - if(document.cookie!=""){ - alert("It's can't be downloaded ..."); - } - } + var state; + if(window.sankore){ + state = sankore.preference("state", null); + } + else if(navigator.cookieEnabled){ + state = getCookie("state"); + } + if(!state){ + optionsLoaded = true; + return; } - else{ - document.getElementById("cacheCookies").style.display = "block"; + var stateObject = JSON.parse(state); + var goodState = widget.getState(); + if(!checkState(stateObject, goodState)){ + loadOptionsFailed(); + } + try{ + widget.setState(stateObject); + optionsLoaded = true; + } + catch(e){ + loadOptionsFailed(); } } -function delOptions(){ - var i; - for(i=0; i)[^>]*$|^#([\w-]+)$/,f=/^.[^:#\[\.,]*$/;o.fn=o.prototype={init:function(E,H){E=E||document;if(E.nodeType){this[0]=E;this.length=1;this.context=E;return this}if(typeof E==="string"){var G=D.exec(E);if(G&&(G[1]||!H)){if(G[1]){E=o.clean([G[1]],H)}else{var I=document.getElementById(G[3]);if(I&&I.id!=G[3]){return o().find(E)}var F=o(I||[]);F.context=document;F.selector=E;return F}}else{return o(H).find(E)}}else{if(o.isFunction(E)){return o(document).ready(E)}}if(E.selector&&E.context){this.selector=E.selector;this.context=E.context}return this.setArray(o.isArray(E)?E:o.makeArray(E))},selector:"",jquery:"1.3.2",size:function(){return this.length},get:function(E){return E===g?Array.prototype.slice.call(this):this[E]},pushStack:function(F,H,E){var G=o(F);G.prevObject=this;G.context=this.context;if(H==="find"){G.selector=this.selector+(this.selector?" ":"")+E}else{if(H){G.selector=this.selector+"."+H+"("+E+")"}}return G},setArray:function(E){this.length=0;Array.prototype.push.apply(this,E);return this},each:function(F,E){return o.each(this,F,E)},index:function(E){return o.inArray(E&&E.jquery?E[0]:E,this)},attr:function(F,H,G){var E=F;if(typeof F==="string"){if(H===g){return this[0]&&o[G||"attr"](this[0],F)}else{E={};E[F]=H}}return this.each(function(I){for(F in E){o.attr(G?this.style:this,F,o.prop(this,E[F],G,I,F))}})},css:function(E,F){if((E=="width"||E=="height")&&parseFloat(F)<0){F=g}return this.attr(E,F,"curCSS")},text:function(F){if(typeof F!=="object"&&F!=null){return this.empty().append((this[0]&&this[0].ownerDocument||document).createTextNode(F))}var E="";o.each(F||this,function(){o.each(this.childNodes,function(){if(this.nodeType!=8){E+=this.nodeType!=1?this.nodeValue:o.fn.text([this])}})});return E},wrapAll:function(E){if(this[0]){var F=o(E,this[0].ownerDocument).clone();if(this[0].parentNode){F.insertBefore(this[0])}F.map(function(){var G=this;while(G.firstChild){G=G.firstChild}return G}).append(this)}return this},wrapInner:function(E){return this.each(function(){o(this).contents().wrapAll(E)})},wrap:function(E){return this.each(function(){o(this).wrapAll(E)})},append:function(){return this.domManip(arguments,true,function(E){if(this.nodeType==1){this.appendChild(E)}})},prepend:function(){return this.domManip(arguments,true,function(E){if(this.nodeType==1){this.insertBefore(E,this.firstChild)}})},before:function(){return this.domManip(arguments,false,function(E){this.parentNode.insertBefore(E,this)})},after:function(){return this.domManip(arguments,false,function(E){this.parentNode.insertBefore(E,this.nextSibling)})},end:function(){return this.prevObject||o([])},push:[].push,sort:[].sort,splice:[].splice,find:function(E){if(this.length===1){var F=this.pushStack([],"find",E);F.length=0;o.find(E,this[0],F);return F}else{return this.pushStack(o.unique(o.map(this,function(G){return o.find(E,G)})),"find",E)}},clone:function(G){var E=this.map(function(){if(!o.support.noCloneEvent&&!o.isXMLDoc(this)){var I=this.outerHTML;if(!I){var J=this.ownerDocument.createElement("div");J.appendChild(this.cloneNode(true));I=J.innerHTML}return o.clean([I.replace(/ jQuery\d+="(?:\d+|null)"/g,"").replace(/^\s*/,"")])[0]}else{return this.cloneNode(true)}});if(G===true){var H=this.find("*").andSelf(),F=0;E.find("*").andSelf().each(function(){if(this.nodeName!==H[F].nodeName){return}var I=o.data(H[F],"events");for(var K in I){for(var J in I[K]){o.event.add(this,K,I[K][J],I[K][J].data)}}F++})}return E},filter:function(E){return this.pushStack(o.isFunction(E)&&o.grep(this,function(G,F){return E.call(G,F)})||o.multiFilter(E,o.grep(this,function(F){return F.nodeType===1})),"filter",E)},closest:function(E){var G=o.expr.match.POS.test(E)?o(E):null,F=0;return this.map(function(){var H=this;while(H&&H.ownerDocument){if(G?G.index(H)>-1:o(H).is(E)){o.data(H,"closest",F);return H}H=H.parentNode;F++}})},not:function(E){if(typeof E==="string"){if(f.test(E)){return this.pushStack(o.multiFilter(E,this,true),"not",E)}else{E=o.multiFilter(E,this)}}var F=E.length&&E[E.length-1]!==g&&!E.nodeType;return this.filter(function(){return F?o.inArray(this,E)<0:this!=E})},add:function(E){return this.pushStack(o.unique(o.merge(this.get(),typeof E==="string"?o(E):o.makeArray(E))))},is:function(E){return !!E&&o.multiFilter(E,this).length>0},hasClass:function(E){return !!E&&this.is("."+E)},val:function(K){if(K===g){var E=this[0];if(E){if(o.nodeName(E,"option")){return(E.attributes.value||{}).specified?E.value:E.text}if(o.nodeName(E,"select")){var I=E.selectedIndex,L=[],M=E.options,H=E.type=="select-one";if(I<0){return null}for(var F=H?I:0,J=H?I+1:M.length;F=0||o.inArray(this.name,K)>=0)}else{if(o.nodeName(this,"select")){var N=o.makeArray(K);o("option",this).each(function(){this.selected=(o.inArray(this.value,N)>=0||o.inArray(this.text,N)>=0)});if(!N.length){this.selectedIndex=-1}}else{this.value=K}}})},html:function(E){return E===g?(this[0]?this[0].innerHTML.replace(/ jQuery\d+="(?:\d+|null)"/g,""):null):this.empty().append(E)},replaceWith:function(E){return this.after(E).remove()},eq:function(E){return this.slice(E,+E+1)},slice:function(){return this.pushStack(Array.prototype.slice.apply(this,arguments),"slice",Array.prototype.slice.call(arguments).join(","))},map:function(E){return this.pushStack(o.map(this,function(G,F){return E.call(G,F,G)}))},andSelf:function(){return this.add(this.prevObject)},domManip:function(J,M,L){if(this[0]){var I=(this[0].ownerDocument||this[0]).createDocumentFragment(),F=o.clean(J,(this[0].ownerDocument||this[0]),I),H=I.firstChild;if(H){for(var G=0,E=this.length;G1||G>0?I.cloneNode(true):I)}}if(F){o.each(F,z)}}return this;function K(N,O){return M&&o.nodeName(N,"table")&&o.nodeName(O,"tr")?(N.getElementsByTagName("tbody")[0]||N.appendChild(N.ownerDocument.createElement("tbody"))):N}}};o.fn.init.prototype=o.fn;function z(E,F){if(F.src){o.ajax({url:F.src,async:false,dataType:"script"})}else{o.globalEval(F.text||F.textContent||F.innerHTML||"")}if(F.parentNode){F.parentNode.removeChild(F)}}function e(){return +new Date}o.extend=o.fn.extend=function(){var J=arguments[0]||{},H=1,I=arguments.length,E=false,G;if(typeof J==="boolean"){E=J;J=arguments[1]||{};H=2}if(typeof J!=="object"&&!o.isFunction(J)){J={}}if(I==H){J=this;--H}for(;H-1}},swap:function(H,G,I){var E={};for(var F in G){E[F]=H.style[F];H.style[F]=G[F]}I.call(H);for(var F in G){H.style[F]=E[F]}},css:function(H,F,J,E){if(F=="width"||F=="height"){var L,G={position:"absolute",visibility:"hidden",display:"block"},K=F=="width"?["Left","Right"]:["Top","Bottom"];function I(){L=F=="width"?H.offsetWidth:H.offsetHeight;if(E==="border"){return}o.each(K,function(){if(!E){L-=parseFloat(o.curCSS(H,"padding"+this,true))||0}if(E==="margin"){L+=parseFloat(o.curCSS(H,"margin"+this,true))||0}else{L-=parseFloat(o.curCSS(H,"border"+this+"Width",true))||0}})}if(H.offsetWidth!==0){I()}else{o.swap(H,G,I)}return Math.max(0,Math.round(L))}return o.curCSS(H,F,J)},curCSS:function(I,F,G){var L,E=I.style;if(F=="opacity"&&!o.support.opacity){L=o.attr(E,"opacity");return L==""?"1":L}if(F.match(/float/i)){F=w}if(!G&&E&&E[F]){L=E[F]}else{if(q.getComputedStyle){if(F.match(/float/i)){F="float"}F=F.replace(/([A-Z])/g,"-$1").toLowerCase();var M=q.getComputedStyle(I,null);if(M){L=M.getPropertyValue(F)}if(F=="opacity"&&L==""){L="1"}}else{if(I.currentStyle){var J=F.replace(/\-(\w)/g,function(N,O){return O.toUpperCase()});L=I.currentStyle[F]||I.currentStyle[J];if(!/^\d+(px)?$/i.test(L)&&/^\d/.test(L)){var H=E.left,K=I.runtimeStyle.left;I.runtimeStyle.left=I.currentStyle.left;E.left=L||0;L=E.pixelLeft+"px";E.left=H;I.runtimeStyle.left=K}}}}return L},clean:function(F,K,I){K=K||document;if(typeof K.createElement==="undefined"){K=K.ownerDocument||K[0]&&K[0].ownerDocument||document}if(!I&&F.length===1&&typeof F[0]==="string"){var H=/^<(\w+)\s*\/?>$/.exec(F[0]);if(H){return[K.createElement(H[1])]}}var G=[],E=[],L=K.createElement("div");o.each(F,function(P,S){if(typeof S==="number"){S+=""}if(!S){return}if(typeof S==="string"){S=S.replace(/(<(\w+)[^>]*?)\/>/g,function(U,V,T){return T.match(/^(abbr|br|col|img|input|link|meta|param|hr|area|embed)$/i)?U:V+">"});var O=S.replace(/^\s+/,"").substring(0,10).toLowerCase();var Q=!O.indexOf("",""]||!O.indexOf("",""]||O.match(/^<(thead|tbody|tfoot|colg|cap)/)&&[1,"","
    "]||!O.indexOf("",""]||(!O.indexOf("",""]||!O.indexOf("",""]||!o.support.htmlSerialize&&[1,"div
    ","
    "]||[0,"",""];L.innerHTML=Q[1]+S+Q[2];while(Q[0]--){L=L.lastChild}if(!o.support.tbody){var R=/"&&!R?L.childNodes:[];for(var M=N.length-1;M>=0;--M){if(o.nodeName(N[M],"tbody")&&!N[M].childNodes.length){N[M].parentNode.removeChild(N[M])}}}if(!o.support.leadingWhitespace&&/^\s/.test(S)){L.insertBefore(K.createTextNode(S.match(/^\s*/)[0]),L.firstChild)}S=o.makeArray(L.childNodes)}if(S.nodeType){G.push(S)}else{G=o.merge(G,S)}});if(I){for(var J=0;G[J];J++){if(o.nodeName(G[J],"script")&&(!G[J].type||G[J].type.toLowerCase()==="text/javascript")){E.push(G[J].parentNode?G[J].parentNode.removeChild(G[J]):G[J])}else{if(G[J].nodeType===1){G.splice.apply(G,[J+1,0].concat(o.makeArray(G[J].getElementsByTagName("script"))))}I.appendChild(G[J])}}return E}return G},attr:function(J,G,K){if(!J||J.nodeType==3||J.nodeType==8){return g}var H=!o.isXMLDoc(J),L=K!==g;G=H&&o.props[G]||G;if(J.tagName){var F=/href|src|style/.test(G);if(G=="selected"&&J.parentNode){J.parentNode.selectedIndex}if(G in J&&H&&!F){if(L){if(G=="type"&&o.nodeName(J,"input")&&J.parentNode){throw"type property can't be changed"}J[G]=K}if(o.nodeName(J,"form")&&J.getAttributeNode(G)){return J.getAttributeNode(G).nodeValue}if(G=="tabIndex"){var I=J.getAttributeNode("tabIndex");return I&&I.specified?I.value:J.nodeName.match(/(button|input|object|select|textarea)/i)?0:J.nodeName.match(/^(a|area)$/i)&&J.href?0:g}return J[G]}if(!o.support.style&&H&&G=="style"){return o.attr(J.style,"cssText",K)}if(L){J.setAttribute(G,""+K)}var E=!o.support.hrefNormalized&&H&&F?J.getAttribute(G,2):J.getAttribute(G);return E===null?g:E}if(!o.support.opacity&&G=="opacity"){if(L){J.zoom=1;J.filter=(J.filter||"").replace(/alpha\([^)]*\)/,"")+(parseInt(K)+""=="NaN"?"":"alpha(opacity="+K*100+")")}return J.filter&&J.filter.indexOf("opacity=")>=0?(parseFloat(J.filter.match(/opacity=([^)]*)/)[1])/100)+"":""}G=G.replace(/-([a-z])/ig,function(M,N){return N.toUpperCase()});if(L){J[G]=K}return J[G]},trim:function(E){return(E||"").replace(/^\s+|\s+$/g,"")},makeArray:function(G){var E=[];if(G!=null){var F=G.length;if(F==null||typeof G==="string"||o.isFunction(G)||G.setInterval){E[0]=G}else{while(F){E[--F]=G[F]}}}return E},inArray:function(G,H){for(var E=0,F=H.length;E0?this.clone(true):this).get();o.fn[F].apply(o(L[K]),I);J=J.concat(I)}return this.pushStack(J,E,G)}});o.each({removeAttr:function(E){o.attr(this,E,"");if(this.nodeType==1){this.removeAttribute(E)}},addClass:function(E){o.className.add(this,E)},removeClass:function(E){o.className.remove(this,E)},toggleClass:function(F,E){if(typeof E!=="boolean"){E=!o.className.has(this,F)}o.className[E?"add":"remove"](this,F)},remove:function(E){if(!E||o.filter(E,[this]).length){o("*",this).add([this]).each(function(){o.event.remove(this);o.removeData(this)});if(this.parentNode){this.parentNode.removeChild(this)}}},empty:function(){o(this).children().remove();while(this.firstChild){this.removeChild(this.firstChild)}}},function(E,F){o.fn[E]=function(){return this.each(F,arguments)}});function j(E,F){return E[0]&&parseInt(o.curCSS(E[0],F,true),10)||0}var h="jQuery"+e(),v=0,A={};o.extend({cache:{},data:function(F,E,G){F=F==l?A:F;var H=F[h];if(!H){H=F[h]=++v}if(E&&!o.cache[H]){o.cache[H]={}}if(G!==g){o.cache[H][E]=G}return E?o.cache[H][E]:H},removeData:function(F,E){F=F==l?A:F;var H=F[h];if(E){if(o.cache[H]){delete o.cache[H][E];E="";for(E in o.cache[H]){break}if(!E){o.removeData(F)}}}else{try{delete F[h]}catch(G){if(F.removeAttribute){F.removeAttribute(h)}}delete o.cache[H]}},queue:function(F,E,H){if(F){E=(E||"fx")+"queue";var G=o.data(F,E);if(!G||o.isArray(H)){G=o.data(F,E,o.makeArray(H))}else{if(H){G.push(H)}}}return G},dequeue:function(H,G){var E=o.queue(H,G),F=E.shift();if(!G||G==="fx"){F=E[0]}if(F!==g){F.call(H)}}});o.fn.extend({data:function(E,G){var H=E.split(".");H[1]=H[1]?"."+H[1]:"";if(G===g){var F=this.triggerHandler("getData"+H[1]+"!",[H[0]]);if(F===g&&this.length){F=o.data(this[0],E)}return F===g&&H[1]?this.data(H[0]):F}else{return this.trigger("setData"+H[1]+"!",[H[0],G]).each(function(){o.data(this,E,G)})}},removeData:function(E){return this.each(function(){o.removeData(this,E)})},queue:function(E,F){if(typeof E!=="string"){F=E;E="fx"}if(F===g){return o.queue(this[0],E)}return this.each(function(){var G=o.queue(this,E,F);if(E=="fx"&&G.length==1){G[0].call(this)}})},dequeue:function(E){return this.each(function(){o.dequeue(this,E)})}}); -/* - * Sizzle CSS Selector Engine - v0.9.3 - * Copyright 2009, The Dojo Foundation - * Released under the MIT, BSD, and GPL Licenses. - * More information: http://sizzlejs.com/ - */ -(function(){var R=/((?:\((?:\([^()]+\)|[^()]+)+\)|\[(?:\[[^[\]]*\]|['"][^'"]*['"]|[^[\]'"]+)+\]|\\.|[^ >+~,(\[\\]+)+|[>+~])(\s*,\s*)?/g,L=0,H=Object.prototype.toString;var F=function(Y,U,ab,ac){ab=ab||[];U=U||document;if(U.nodeType!==1&&U.nodeType!==9){return[]}if(!Y||typeof Y!=="string"){return ab}var Z=[],W,af,ai,T,ad,V,X=true;R.lastIndex=0;while((W=R.exec(Y))!==null){Z.push(W[1]);if(W[2]){V=RegExp.rightContext;break}}if(Z.length>1&&M.exec(Y)){if(Z.length===2&&I.relative[Z[0]]){af=J(Z[0]+Z[1],U)}else{af=I.relative[Z[0]]?[U]:F(Z.shift(),U);while(Z.length){Y=Z.shift();if(I.relative[Y]){Y+=Z.shift()}af=J(Y,af)}}}else{var ae=ac?{expr:Z.pop(),set:E(ac)}:F.find(Z.pop(),Z.length===1&&U.parentNode?U.parentNode:U,Q(U));af=F.filter(ae.expr,ae.set);if(Z.length>0){ai=E(af)}else{X=false}while(Z.length){var ah=Z.pop(),ag=ah;if(!I.relative[ah]){ah=""}else{ag=Z.pop()}if(ag==null){ag=U}I.relative[ah](ai,ag,Q(U))}}if(!ai){ai=af}if(!ai){throw"Syntax error, unrecognized expression: "+(ah||Y)}if(H.call(ai)==="[object Array]"){if(!X){ab.push.apply(ab,ai)}else{if(U.nodeType===1){for(var aa=0;ai[aa]!=null;aa++){if(ai[aa]&&(ai[aa]===true||ai[aa].nodeType===1&&K(U,ai[aa]))){ab.push(af[aa])}}}else{for(var aa=0;ai[aa]!=null;aa++){if(ai[aa]&&ai[aa].nodeType===1){ab.push(af[aa])}}}}}else{E(ai,ab)}if(V){F(V,U,ab,ac);if(G){hasDuplicate=false;ab.sort(G);if(hasDuplicate){for(var aa=1;aa":function(Z,U,aa){var X=typeof U==="string";if(X&&!/\W/.test(U)){U=aa?U:U.toUpperCase();for(var V=0,T=Z.length;V=0)){if(!V){T.push(Y)}}else{if(V){U[X]=false}}}}return false},ID:function(T){return T[1].replace(/\\/g,"")},TAG:function(U,T){for(var V=0;T[V]===false;V++){}return T[V]&&Q(T[V])?U[1]:U[1].toUpperCase()},CHILD:function(T){if(T[1]=="nth"){var U=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(T[2]=="even"&&"2n"||T[2]=="odd"&&"2n+1"||!/\D/.test(T[2])&&"0n+"+T[2]||T[2]);T[2]=(U[1]+(U[2]||1))-0;T[3]=U[3]-0}T[0]=L++;return T},ATTR:function(X,U,V,T,Y,Z){var W=X[1].replace(/\\/g,"");if(!Z&&I.attrMap[W]){X[1]=I.attrMap[W]}if(X[2]==="~="){X[4]=" "+X[4]+" "}return X},PSEUDO:function(X,U,V,T,Y){if(X[1]==="not"){if(X[3].match(R).length>1||/^\w/.test(X[3])){X[3]=F(X[3],null,null,U)}else{var W=F.filter(X[3],U,V,true^Y);if(!V){T.push.apply(T,W)}return false}}else{if(I.match.POS.test(X[0])||I.match.CHILD.test(X[0])){return true}}return X},POS:function(T){T.unshift(true);return T}},filters:{enabled:function(T){return T.disabled===false&&T.type!=="hidden"},disabled:function(T){return T.disabled===true},checked:function(T){return T.checked===true},selected:function(T){T.parentNode.selectedIndex;return T.selected===true},parent:function(T){return !!T.firstChild},empty:function(T){return !T.firstChild},has:function(V,U,T){return !!F(T[3],V).length},header:function(T){return/h\d/i.test(T.nodeName)},text:function(T){return"text"===T.type},radio:function(T){return"radio"===T.type},checkbox:function(T){return"checkbox"===T.type},file:function(T){return"file"===T.type},password:function(T){return"password"===T.type},submit:function(T){return"submit"===T.type},image:function(T){return"image"===T.type},reset:function(T){return"reset"===T.type},button:function(T){return"button"===T.type||T.nodeName.toUpperCase()==="BUTTON"},input:function(T){return/input|select|textarea|button/i.test(T.nodeName)}},setFilters:{first:function(U,T){return T===0},last:function(V,U,T,W){return U===W.length-1},even:function(U,T){return T%2===0},odd:function(U,T){return T%2===1},lt:function(V,U,T){return UT[3]-0},nth:function(V,U,T){return T[3]-0==U},eq:function(V,U,T){return T[3]-0==U}},filter:{PSEUDO:function(Z,V,W,aa){var U=V[1],X=I.filters[U];if(X){return X(Z,W,V,aa)}else{if(U==="contains"){return(Z.textContent||Z.innerText||"").indexOf(V[3])>=0}else{if(U==="not"){var Y=V[3];for(var W=0,T=Y.length;W=0)}}},ID:function(U,T){return U.nodeType===1&&U.getAttribute("id")===T},TAG:function(U,T){return(T==="*"&&U.nodeType===1)||U.nodeName===T},CLASS:function(U,T){return(" "+(U.className||U.getAttribute("class"))+" ").indexOf(T)>-1},ATTR:function(Y,W){var V=W[1],T=I.attrHandle[V]?I.attrHandle[V](Y):Y[V]!=null?Y[V]:Y.getAttribute(V),Z=T+"",X=W[2],U=W[4];return T==null?X==="!=":X==="="?Z===U:X==="*="?Z.indexOf(U)>=0:X==="~="?(" "+Z+" ").indexOf(U)>=0:!U?Z&&T!==false:X==="!="?Z!=U:X==="^="?Z.indexOf(U)===0:X==="$="?Z.substr(Z.length-U.length)===U:X==="|="?Z===U||Z.substr(0,U.length+1)===U+"-":false},POS:function(X,U,V,Y){var T=U[2],W=I.setFilters[T];if(W){return W(X,V,U,Y)}}}};var M=I.match.POS;for(var O in I.match){I.match[O]=RegExp(I.match[O].source+/(?![^\[]*\])(?![^\(]*\))/.source)}var E=function(U,T){U=Array.prototype.slice.call(U);if(T){T.push.apply(T,U);return T}return U};try{Array.prototype.slice.call(document.documentElement.childNodes)}catch(N){E=function(X,W){var U=W||[];if(H.call(X)==="[object Array]"){Array.prototype.push.apply(U,X)}else{if(typeof X.length==="number"){for(var V=0,T=X.length;V";var T=document.documentElement;T.insertBefore(U,T.firstChild);if(!!document.getElementById(V)){I.find.ID=function(X,Y,Z){if(typeof Y.getElementById!=="undefined"&&!Z){var W=Y.getElementById(X[1]);return W?W.id===X[1]||typeof W.getAttributeNode!=="undefined"&&W.getAttributeNode("id").nodeValue===X[1]?[W]:g:[]}};I.filter.ID=function(Y,W){var X=typeof Y.getAttributeNode!=="undefined"&&Y.getAttributeNode("id");return Y.nodeType===1&&X&&X.nodeValue===W}}T.removeChild(U)})();(function(){var T=document.createElement("div");T.appendChild(document.createComment(""));if(T.getElementsByTagName("*").length>0){I.find.TAG=function(U,Y){var X=Y.getElementsByTagName(U[1]);if(U[1]==="*"){var W=[];for(var V=0;X[V];V++){if(X[V].nodeType===1){W.push(X[V])}}X=W}return X}}T.innerHTML="";if(T.firstChild&&typeof T.firstChild.getAttribute!=="undefined"&&T.firstChild.getAttribute("href")!=="#"){I.attrHandle.href=function(U){return U.getAttribute("href",2)}}})();if(document.querySelectorAll){(function(){var T=F,U=document.createElement("div");U.innerHTML="

    ";if(U.querySelectorAll&&U.querySelectorAll(".TEST").length===0){return}F=function(Y,X,V,W){X=X||document;if(!W&&X.nodeType===9&&!Q(X)){try{return E(X.querySelectorAll(Y),V)}catch(Z){}}return T(Y,X,V,W)};F.find=T.find;F.filter=T.filter;F.selectors=T.selectors;F.matches=T.matches})()}if(document.getElementsByClassName&&document.documentElement.getElementsByClassName){(function(){var T=document.createElement("div");T.innerHTML="
    ";if(T.getElementsByClassName("e").length===0){return}T.lastChild.className="e";if(T.getElementsByClassName("e").length===1){return}I.order.splice(1,0,"CLASS");I.find.CLASS=function(U,V,W){if(typeof V.getElementsByClassName!=="undefined"&&!W){return V.getElementsByClassName(U[1])}}})()}function P(U,Z,Y,ad,aa,ac){var ab=U=="previousSibling"&&!ac;for(var W=0,V=ad.length;W0){X=T;break}}}T=T[U]}ad[W]=X}}}var K=document.compareDocumentPosition?function(U,T){return U.compareDocumentPosition(T)&16}:function(U,T){return U!==T&&(U.contains?U.contains(T):true)};var Q=function(T){return T.nodeType===9&&T.documentElement.nodeName!=="HTML"||!!T.ownerDocument&&Q(T.ownerDocument)};var J=function(T,aa){var W=[],X="",Y,V=aa.nodeType?[aa]:aa;while((Y=I.match.PSEUDO.exec(T))){X+=Y[0];T=T.replace(I.match.PSEUDO,"")}T=I.relative[T]?T+"*":T;for(var Z=0,U=V.length;Z0||T.offsetHeight>0};F.selectors.filters.animated=function(T){return o.grep(o.timers,function(U){return T===U.elem}).length};o.multiFilter=function(V,T,U){if(U){V=":not("+V+")"}return F.matches(V,T)};o.dir=function(V,U){var T=[],W=V[U];while(W&&W!=document){if(W.nodeType==1){T.push(W)}W=W[U]}return T};o.nth=function(X,T,V,W){T=T||1;var U=0;for(;X;X=X[V]){if(X.nodeType==1&&++U==T){break}}return X};o.sibling=function(V,U){var T=[];for(;V;V=V.nextSibling){if(V.nodeType==1&&V!=U){T.push(V)}}return T};return;l.Sizzle=F})();o.event={add:function(I,F,H,K){if(I.nodeType==3||I.nodeType==8){return}if(I.setInterval&&I!=l){I=l}if(!H.guid){H.guid=this.guid++}if(K!==g){var G=H;H=this.proxy(G);H.data=K}var E=o.data(I,"events")||o.data(I,"events",{}),J=o.data(I,"handle")||o.data(I,"handle",function(){return typeof o!=="undefined"&&!o.event.triggered?o.event.handle.apply(arguments.callee.elem,arguments):g});J.elem=I;o.each(F.split(/\s+/),function(M,N){var O=N.split(".");N=O.shift();H.type=O.slice().sort().join(".");var L=E[N];if(o.event.specialAll[N]){o.event.specialAll[N].setup.call(I,K,O)}if(!L){L=E[N]={};if(!o.event.special[N]||o.event.special[N].setup.call(I,K,O)===false){if(I.addEventListener){I.addEventListener(N,J,false)}else{if(I.attachEvent){I.attachEvent("on"+N,J)}}}}L[H.guid]=H;o.event.global[N]=true});I=null},guid:1,global:{},remove:function(K,H,J){if(K.nodeType==3||K.nodeType==8){return}var G=o.data(K,"events"),F,E;if(G){if(H===g||(typeof H==="string"&&H.charAt(0)==".")){for(var I in G){this.remove(K,I+(H||""))}}else{if(H.type){J=H.handler;H=H.type}o.each(H.split(/\s+/),function(M,O){var Q=O.split(".");O=Q.shift();var N=RegExp("(^|\\.)"+Q.slice().sort().join(".*\\.")+"(\\.|$)");if(G[O]){if(J){delete G[O][J.guid]}else{for(var P in G[O]){if(N.test(G[O][P].type)){delete G[O][P]}}}if(o.event.specialAll[O]){o.event.specialAll[O].teardown.call(K,Q)}for(F in G[O]){break}if(!F){if(!o.event.special[O]||o.event.special[O].teardown.call(K,Q)===false){if(K.removeEventListener){K.removeEventListener(O,o.data(K,"handle"),false)}else{if(K.detachEvent){K.detachEvent("on"+O,o.data(K,"handle"))}}}F=null;delete G[O]}}})}for(F in G){break}if(!F){var L=o.data(K,"handle");if(L){L.elem=null}o.removeData(K,"events");o.removeData(K,"handle")}}},trigger:function(I,K,H,E){var G=I.type||I;if(!E){I=typeof I==="object"?I[h]?I:o.extend(o.Event(G),I):o.Event(G);if(G.indexOf("!")>=0){I.type=G=G.slice(0,-1);I.exclusive=true}if(!H){I.stopPropagation();if(this.global[G]){o.each(o.cache,function(){if(this.events&&this.events[G]){o.event.trigger(I,K,this.handle.elem)}})}}if(!H||H.nodeType==3||H.nodeType==8){return g}I.result=g;I.target=H;K=o.makeArray(K);K.unshift(I)}I.currentTarget=H;var J=o.data(H,"handle");if(J){J.apply(H,K)}if((!H[G]||(o.nodeName(H,"a")&&G=="click"))&&H["on"+G]&&H["on"+G].apply(H,K)===false){I.result=false}if(!E&&H[G]&&!I.isDefaultPrevented()&&!(o.nodeName(H,"a")&&G=="click")){this.triggered=true;try{H[G]()}catch(L){}}this.triggered=false;if(!I.isPropagationStopped()){var F=H.parentNode||H.ownerDocument;if(F){o.event.trigger(I,K,F,true)}}},handle:function(K){var J,E;K=arguments[0]=o.event.fix(K||l.event);K.currentTarget=this;var L=K.type.split(".");K.type=L.shift();J=!L.length&&!K.exclusive;var I=RegExp("(^|\\.)"+L.slice().sort().join(".*\\.")+"(\\.|$)");E=(o.data(this,"events")||{})[K.type];for(var G in E){var H=E[G];if(J||I.test(H.type)){K.handler=H;K.data=H.data;var F=H.apply(this,arguments);if(F!==g){K.result=F;if(F===false){K.preventDefault();K.stopPropagation()}}if(K.isImmediatePropagationStopped()){break}}}},props:"altKey attrChange attrName bubbles button cancelable charCode clientX clientY ctrlKey currentTarget data detail eventPhase fromElement handler keyCode metaKey newValue originalTarget pageX pageY prevValue relatedNode relatedTarget screenX screenY shiftKey srcElement target toElement view wheelDelta which".split(" "),fix:function(H){if(H[h]){return H}var F=H;H=o.Event(F);for(var G=this.props.length,J;G;){J=this.props[--G];H[J]=F[J]}if(!H.target){H.target=H.srcElement||document}if(H.target.nodeType==3){H.target=H.target.parentNode}if(!H.relatedTarget&&H.fromElement){H.relatedTarget=H.fromElement==H.target?H.toElement:H.fromElement}if(H.pageX==null&&H.clientX!=null){var I=document.documentElement,E=document.body;H.pageX=H.clientX+(I&&I.scrollLeft||E&&E.scrollLeft||0)-(I.clientLeft||0);H.pageY=H.clientY+(I&&I.scrollTop||E&&E.scrollTop||0)-(I.clientTop||0)}if(!H.which&&((H.charCode||H.charCode===0)?H.charCode:H.keyCode)){H.which=H.charCode||H.keyCode}if(!H.metaKey&&H.ctrlKey){H.metaKey=H.ctrlKey}if(!H.which&&H.button){H.which=(H.button&1?1:(H.button&2?3:(H.button&4?2:0)))}return H},proxy:function(F,E){E=E||function(){return F.apply(this,arguments)};E.guid=F.guid=F.guid||E.guid||this.guid++;return E},special:{ready:{setup:B,teardown:function(){}}},specialAll:{live:{setup:function(E,F){o.event.add(this,F[0],c)},teardown:function(G){if(G.length){var E=0,F=RegExp("(^|\\.)"+G[0]+"(\\.|$)");o.each((o.data(this,"events").live||{}),function(){if(F.test(this.type)){E++}});if(E<1){o.event.remove(this,G[0],c)}}}}}};o.Event=function(E){if(!this.preventDefault){return new o.Event(E)}if(E&&E.type){this.originalEvent=E;this.type=E.type}else{this.type=E}this.timeStamp=e();this[h]=true};function k(){return false}function u(){return true}o.Event.prototype={preventDefault:function(){this.isDefaultPrevented=u;var E=this.originalEvent;if(!E){return}if(E.preventDefault){E.preventDefault()}E.returnValue=false},stopPropagation:function(){this.isPropagationStopped=u;var E=this.originalEvent;if(!E){return}if(E.stopPropagation){E.stopPropagation()}E.cancelBubble=true},stopImmediatePropagation:function(){this.isImmediatePropagationStopped=u;this.stopPropagation()},isDefaultPrevented:k,isPropagationStopped:k,isImmediatePropagationStopped:k};var a=function(F){var E=F.relatedTarget;while(E&&E!=this){try{E=E.parentNode}catch(G){E=this}}if(E!=this){F.type=F.data;o.event.handle.apply(this,arguments)}};o.each({mouseover:"mouseenter",mouseout:"mouseleave"},function(F,E){o.event.special[E]={setup:function(){o.event.add(this,F,a,E)},teardown:function(){o.event.remove(this,F,a)}}});o.fn.extend({bind:function(F,G,E){return F=="unload"?this.one(F,G,E):this.each(function(){o.event.add(this,F,E||G,E&&G)})},one:function(G,H,F){var E=o.event.proxy(F||H,function(I){o(this).unbind(I,E);return(F||H).apply(this,arguments)});return this.each(function(){o.event.add(this,G,E,F&&H)})},unbind:function(F,E){return this.each(function(){o.event.remove(this,F,E)})},trigger:function(E,F){return this.each(function(){o.event.trigger(E,F,this)})},triggerHandler:function(E,G){if(this[0]){var F=o.Event(E);F.preventDefault();F.stopPropagation();o.event.trigger(F,G,this[0]);return F.result}},toggle:function(G){var E=arguments,F=1;while(F=0){var E=G.slice(I,G.length);G=G.slice(0,I)}var H="GET";if(J){if(o.isFunction(J)){K=J;J=null}else{if(typeof J==="object"){J=o.param(J);H="POST"}}}var F=this;o.ajax({url:G,type:H,dataType:"html",data:J,complete:function(M,L){if(L=="success"||L=="notmodified"){F.html(E?o("
    ").append(M.responseText.replace(//g,"")).find(E):M.responseText)}if(K){F.each(K,[M.responseText,L,M])}}});return this},serialize:function(){return o.param(this.serializeArray())},serializeArray:function(){return this.map(function(){return this.elements?o.makeArray(this.elements):this}).filter(function(){return this.name&&!this.disabled&&(this.checked||/select|textarea/i.test(this.nodeName)||/text|hidden|password|search/i.test(this.type))}).map(function(E,F){var G=o(this).val();return G==null?null:o.isArray(G)?o.map(G,function(I,H){return{name:F.name,value:I}}):{name:F.name,value:G}}).get()}});o.each("ajaxStart,ajaxStop,ajaxComplete,ajaxError,ajaxSuccess,ajaxSend".split(","),function(E,F){o.fn[F]=function(G){return this.bind(F,G)}});var r=e();o.extend({get:function(E,G,H,F){if(o.isFunction(G)){H=G;G=null}return o.ajax({type:"GET",url:E,data:G,success:H,dataType:F})},getScript:function(E,F){return o.get(E,null,F,"script")},getJSON:function(E,F,G){return o.get(E,F,G,"json")},post:function(E,G,H,F){if(o.isFunction(G)){H=G;G={}}return o.ajax({type:"POST",url:E,data:G,success:H,dataType:F})},ajaxSetup:function(E){o.extend(o.ajaxSettings,E)},ajaxSettings:{url:location.href,global:true,type:"GET",contentType:"application/x-www-form-urlencoded",processData:true,async:true,xhr:function(){return l.ActiveXObject?new ActiveXObject("Microsoft.XMLHTTP"):new XMLHttpRequest()},accepts:{xml:"application/xml, text/xml",html:"text/html",script:"text/javascript, application/javascript",json:"application/json, text/javascript",text:"text/plain",_default:"*/*"}},lastModified:{},ajax:function(M){M=o.extend(true,M,o.extend(true,{},o.ajaxSettings,M));var W,F=/=\?(&|$)/g,R,V,G=M.type.toUpperCase();if(M.data&&M.processData&&typeof M.data!=="string"){M.data=o.param(M.data)}if(M.dataType=="jsonp"){if(G=="GET"){if(!M.url.match(F)){M.url+=(M.url.match(/\?/)?"&":"?")+(M.jsonp||"callback")+"=?"}}else{if(!M.data||!M.data.match(F)){M.data=(M.data?M.data+"&":"")+(M.jsonp||"callback")+"=?"}}M.dataType="json"}if(M.dataType=="json"&&(M.data&&M.data.match(F)||M.url.match(F))){W="jsonp"+r++;if(M.data){M.data=(M.data+"").replace(F,"="+W+"$1")}M.url=M.url.replace(F,"="+W+"$1");M.dataType="script";l[W]=function(X){V=X;I();L();l[W]=g;try{delete l[W]}catch(Y){}if(H){H.removeChild(T)}}}if(M.dataType=="script"&&M.cache==null){M.cache=false}if(M.cache===false&&G=="GET"){var E=e();var U=M.url.replace(/(\?|&)_=.*?(&|$)/,"$1_="+E+"$2");M.url=U+((U==M.url)?(M.url.match(/\?/)?"&":"?")+"_="+E:"")}if(M.data&&G=="GET"){M.url+=(M.url.match(/\?/)?"&":"?")+M.data;M.data=null}if(M.global&&!o.active++){o.event.trigger("ajaxStart")}var Q=/^(\w+:)?\/\/([^\/?#]+)/.exec(M.url);if(M.dataType=="script"&&G=="GET"&&Q&&(Q[1]&&Q[1]!=location.protocol||Q[2]!=location.host)){var H=document.getElementsByTagName("head")[0];var T=document.createElement("script");T.src=M.url;if(M.scriptCharset){T.charset=M.scriptCharset}if(!W){var O=false;T.onload=T.onreadystatechange=function(){if(!O&&(!this.readyState||this.readyState=="loaded"||this.readyState=="complete")){O=true;I();L();T.onload=T.onreadystatechange=null;H.removeChild(T)}}}H.appendChild(T);return g}var K=false;var J=M.xhr();if(M.username){J.open(G,M.url,M.async,M.username,M.password)}else{J.open(G,M.url,M.async)}try{if(M.data){J.setRequestHeader("Content-Type",M.contentType)}if(M.ifModified){J.setRequestHeader("If-Modified-Since",o.lastModified[M.url]||"Thu, 01 Jan 1970 00:00:00 GMT")}J.setRequestHeader("X-Requested-With","XMLHttpRequest");J.setRequestHeader("Accept",M.dataType&&M.accepts[M.dataType]?M.accepts[M.dataType]+", */*":M.accepts._default)}catch(S){}if(M.beforeSend&&M.beforeSend(J,M)===false){if(M.global&&!--o.active){o.event.trigger("ajaxStop")}J.abort();return false}if(M.global){o.event.trigger("ajaxSend",[J,M])}var N=function(X){if(J.readyState==0){if(P){clearInterval(P);P=null;if(M.global&&!--o.active){o.event.trigger("ajaxStop")}}}else{if(!K&&J&&(J.readyState==4||X=="timeout")){K=true;if(P){clearInterval(P);P=null}R=X=="timeout"?"timeout":!o.httpSuccess(J)?"error":M.ifModified&&o.httpNotModified(J,M.url)?"notmodified":"success";if(R=="success"){try{V=o.httpData(J,M.dataType,M)}catch(Z){R="parsererror"}}if(R=="success"){var Y;try{Y=J.getResponseHeader("Last-Modified")}catch(Z){}if(M.ifModified&&Y){o.lastModified[M.url]=Y}if(!W){I()}}else{o.handleError(M,J,R)}L();if(X){J.abort()}if(M.async){J=null}}}};if(M.async){var P=setInterval(N,13);if(M.timeout>0){setTimeout(function(){if(J&&!K){N("timeout")}},M.timeout)}}try{J.send(M.data)}catch(S){o.handleError(M,J,null,S)}if(!M.async){N()}function I(){if(M.success){M.success(V,R)}if(M.global){o.event.trigger("ajaxSuccess",[J,M])}}function L(){if(M.complete){M.complete(J,R)}if(M.global){o.event.trigger("ajaxComplete",[J,M])}if(M.global&&!--o.active){o.event.trigger("ajaxStop")}}return J},handleError:function(F,H,E,G){if(F.error){F.error(H,E,G)}if(F.global){o.event.trigger("ajaxError",[H,F,G])}},active:0,httpSuccess:function(F){try{return !F.status&&location.protocol=="file:"||(F.status>=200&&F.status<300)||F.status==304||F.status==1223}catch(E){}return false},httpNotModified:function(G,E){try{var H=G.getResponseHeader("Last-Modified");return G.status==304||H==o.lastModified[E]}catch(F){}return false},httpData:function(J,H,G){var F=J.getResponseHeader("content-type"),E=H=="xml"||!H&&F&&F.indexOf("xml")>=0,I=E?J.responseXML:J.responseText;if(E&&I.documentElement.tagName=="parsererror"){throw"parsererror"}if(G&&G.dataFilter){I=G.dataFilter(I,H)}if(typeof I==="string"){if(H=="script"){o.globalEval(I)}if(H=="json"){I=l["eval"]("("+I+")")}}return I},param:function(E){var G=[];function H(I,J){G[G.length]=encodeURIComponent(I)+"="+encodeURIComponent(J)}if(o.isArray(E)||E.jquery){o.each(E,function(){H(this.name,this.value)})}else{for(var F in E){if(o.isArray(E[F])){o.each(E[F],function(){H(F,this)})}else{H(F,o.isFunction(E[F])?E[F]():E[F])}}}return G.join("&").replace(/%20/g,"+")}});var m={},n,d=[["height","marginTop","marginBottom","paddingTop","paddingBottom"],["width","marginLeft","marginRight","paddingLeft","paddingRight"],["opacity"]];function t(F,E){var G={};o.each(d.concat.apply([],d.slice(0,E)),function(){G[this]=F});return G}o.fn.extend({show:function(J,L){if(J){return this.animate(t("show",3),J,L)}else{for(var H=0,F=this.length;H").appendTo("body");K=I.css("display");if(K==="none"){K="block"}I.remove();m[G]=K}o.data(this[H],"olddisplay",K)}}for(var H=0,F=this.length;H=0;H--){if(G[H].elem==this){if(E){G[H](true)}G.splice(H,1)}}});if(!E){this.dequeue()}return this}});o.each({slideDown:t("show",1),slideUp:t("hide",1),slideToggle:t("toggle",1),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"}},function(E,F){o.fn[E]=function(G,H){return this.animate(F,G,H)}});o.extend({speed:function(G,H,F){var E=typeof G==="object"?G:{complete:F||!F&&H||o.isFunction(G)&&G,duration:G,easing:F&&H||H&&!o.isFunction(H)&&H};E.duration=o.fx.off?0:typeof E.duration==="number"?E.duration:o.fx.speeds[E.duration]||o.fx.speeds._default;E.old=E.complete;E.complete=function(){if(E.queue!==false){o(this).dequeue()}if(o.isFunction(E.old)){E.old.call(this)}};return E},easing:{linear:function(G,H,E,F){return E+F*G},swing:function(G,H,E,F){return((-Math.cos(G*Math.PI)/2)+0.5)*F+E}},timers:[],fx:function(F,E,G){this.options=E;this.elem=F;this.prop=G;if(!E.orig){E.orig={}}}});o.fx.prototype={update:function(){if(this.options.step){this.options.step.call(this.elem,this.now,this)}(o.fx.step[this.prop]||o.fx.step._default)(this);if((this.prop=="height"||this.prop=="width")&&this.elem.style){this.elem.style.display="block"}},cur:function(F){if(this.elem[this.prop]!=null&&(!this.elem.style||this.elem.style[this.prop]==null)){return this.elem[this.prop]}var E=parseFloat(o.css(this.elem,this.prop,F));return E&&E>-10000?E:parseFloat(o.curCSS(this.elem,this.prop))||0},custom:function(I,H,G){this.startTime=e();this.start=I;this.end=H;this.unit=G||this.unit||"px";this.now=this.start;this.pos=this.state=0;var E=this;function F(J){return E.step(J)}F.elem=this.elem;if(F()&&o.timers.push(F)&&!n){n=setInterval(function(){var K=o.timers;for(var J=0;J=this.options.duration+this.startTime){this.now=this.end;this.pos=this.state=1;this.update();this.options.curAnim[this.prop]=true;var E=true;for(var F in this.options.curAnim){if(this.options.curAnim[F]!==true){E=false}}if(E){if(this.options.display!=null){this.elem.style.overflow=this.options.overflow;this.elem.style.display=this.options.display;if(o.css(this.elem,"display")=="none"){this.elem.style.display="block"}}if(this.options.hide){o(this.elem).hide()}if(this.options.hide||this.options.show){for(var I in this.options.curAnim){o.attr(this.elem.style,I,this.options.orig[I])}}this.options.complete.call(this.elem)}return false}else{var J=G-this.startTime;this.state=J/this.options.duration;this.pos=o.easing[this.options.easing||(o.easing.swing?"swing":"linear")](this.state,J,0,1,this.options.duration);this.now=this.start+((this.end-this.start)*this.pos);this.update()}return true}};o.extend(o.fx,{speeds:{slow:600,fast:200,_default:400},step:{opacity:function(E){o.attr(E.elem.style,"opacity",E.now)},_default:function(E){if(E.elem.style&&E.elem.style[E.prop]!=null){E.elem.style[E.prop]=E.now+E.unit}else{E.elem[E.prop]=E.now}}}});if(document.documentElement.getBoundingClientRect){o.fn.offset=function(){if(!this[0]){return{top:0,left:0}}if(this[0]===this[0].ownerDocument.body){return o.offset.bodyOffset(this[0])}var G=this[0].getBoundingClientRect(),J=this[0].ownerDocument,F=J.body,E=J.documentElement,L=E.clientTop||F.clientTop||0,K=E.clientLeft||F.clientLeft||0,I=G.top+(self.pageYOffset||o.boxModel&&E.scrollTop||F.scrollTop)-L,H=G.left+(self.pageXOffset||o.boxModel&&E.scrollLeft||F.scrollLeft)-K;return{top:I,left:H}}}else{o.fn.offset=function(){if(!this[0]){return{top:0,left:0}}if(this[0]===this[0].ownerDocument.body){return o.offset.bodyOffset(this[0])}o.offset.initialized||o.offset.initialize();var J=this[0],G=J.offsetParent,F=J,O=J.ownerDocument,M,H=O.documentElement,K=O.body,L=O.defaultView,E=L.getComputedStyle(J,null),N=J.offsetTop,I=J.offsetLeft;while((J=J.parentNode)&&J!==K&&J!==H){M=L.getComputedStyle(J,null);N-=J.scrollTop,I-=J.scrollLeft;if(J===G){N+=J.offsetTop,I+=J.offsetLeft;if(o.offset.doesNotAddBorder&&!(o.offset.doesAddBorderForTableAndCells&&/^t(able|d|h)$/i.test(J.tagName))){N+=parseInt(M.borderTopWidth,10)||0,I+=parseInt(M.borderLeftWidth,10)||0}F=G,G=J.offsetParent}if(o.offset.subtractsBorderForOverflowNotVisible&&M.overflow!=="visible"){N+=parseInt(M.borderTopWidth,10)||0,I+=parseInt(M.borderLeftWidth,10)||0}E=M}if(E.position==="relative"||E.position==="static"){N+=K.offsetTop,I+=K.offsetLeft}if(E.position==="fixed"){N+=Math.max(H.scrollTop,K.scrollTop),I+=Math.max(H.scrollLeft,K.scrollLeft)}return{top:N,left:I}}}o.offset={initialize:function(){if(this.initialized){return}var L=document.body,F=document.createElement("div"),H,G,N,I,M,E,J=L.style.marginTop,K='
    ';M={position:"absolute",top:0,left:0,margin:0,border:0,width:"1px",height:"1px",visibility:"hidden"};for(E in M){F.style[E]=M[E]}F.innerHTML=K;L.insertBefore(F,L.firstChild);H=F.firstChild,G=H.firstChild,I=H.nextSibling.firstChild.firstChild;this.doesNotAddBorder=(G.offsetTop!==5);this.doesAddBorderForTableAndCells=(I.offsetTop===5);H.style.overflow="hidden",H.style.position="relative";this.subtractsBorderForOverflowNotVisible=(G.offsetTop===-5);L.style.marginTop="1px";this.doesNotIncludeMarginInBodyOffset=(L.offsetTop===0);L.style.marginTop=J;L.removeChild(F);this.initialized=true},bodyOffset:function(E){o.offset.initialized||o.offset.initialize();var G=E.offsetTop,F=E.offsetLeft;if(o.offset.doesNotIncludeMarginInBodyOffset){G+=parseInt(o.curCSS(E,"marginTop",true),10)||0,F+=parseInt(o.curCSS(E,"marginLeft",true),10)||0}return{top:G,left:F}}};o.fn.extend({position:function(){var I=0,H=0,F;if(this[0]){var G=this.offsetParent(),J=this.offset(),E=/^body|html$/i.test(G[0].tagName)?{top:0,left:0}:G.offset();J.top-=j(this,"marginTop");J.left-=j(this,"marginLeft");E.top+=j(G,"borderTopWidth");E.left+=j(G,"borderLeftWidth");F={top:J.top-E.top,left:J.left-E.left}}return F},offsetParent:function(){var E=this[0].offsetParent||document.body;while(E&&(!/^body|html$/i.test(E.tagName)&&o.css(E,"position")=="static")){E=E.offsetParent}return o(E)}});o.each(["Left","Top"],function(F,E){var G="scroll"+E;o.fn[G]=function(H){if(!this[0]){return null}return H!==g?this.each(function(){this==l||this==document?l.scrollTo(!F?H:o(l).scrollLeft(),F?H:o(l).scrollTop()):this[G]=H}):this[0]==l||this[0]==document?self[F?"pageYOffset":"pageXOffset"]||o.boxModel&&document.documentElement[G]||document.body[G]:this[0][G]}});o.each(["Height","Width"],function(I,G){var E=I?"Left":"Top",H=I?"Right":"Bottom",F=G.toLowerCase();o.fn["inner"+G]=function(){return this[0]?o.css(this[0],F,false,"padding"):null};o.fn["outer"+G]=function(K){return this[0]?o.css(this[0],F,false,K?"margin":"border"):null};var J=G.toLowerCase();o.fn[J]=function(K){return this[0]==l?document.compatMode=="CSS1Compat"&&document.documentElement["client"+G]||document.body["client"+G]:this[0]==document?Math.max(document.documentElement["client"+G],document.body["scroll"+G],document.documentElement["scroll"+G],document.body["offset"+G],document.documentElement["offset"+G]):K===g?(this.length?o.css(this[0],J):null):this.css(J,typeof K==="string"?K:K+"px")}})})(); \ No newline at end of file diff --git a/resources/library/applications/GraphMe.wgt/JavaScript/jquery.disable.text.select.js b/resources/library/applications/GraphMe.wgt/JavaScript/jquery.disable.text.select.js deleted file mode 100644 index 2e06f673..00000000 --- a/resources/library/applications/GraphMe.wgt/JavaScript/jquery.disable.text.select.js +++ /dev/null @@ -1,62 +0,0 @@ -/** - * .disableTextSelect - Disable Text Select Plugin - * - * Version: 1.1 - * Updated: 2007-11-28 - * - * Used to stop users from selecting text - * - * Copyright (c) 2007 James Dempster (letssurf@gmail.com, http://www.jdempster.com/category/jquery/disabletextselect/) - * - * Dual licensed under the MIT (MIT-LICENSE.txt) - * and GPL (GPL-LICENSE.txt) licenses. - **/ - -/** - * Requirements: - * - jQuery (John Resig, http://www.jquery.com/) - **/ -(function($) { - if ($.browser.mozilla) { - $.fn.disableTextSelect = function() { - return this.each(function() { - $(this).css({ - 'MozUserSelect' : 'none' - }); - }); - }; - $.fn.enableTextSelect = function() { - return this.each(function() { - $(this).css({ - 'MozUserSelect' : '' - }); - }); - }; - } else if ($.browser.msie) { - $.fn.disableTextSelect = function() { - return this.each(function() { - $(this).bind('selectstart.disableTextSelect', function() { - return false; - }); - }); - }; - $.fn.enableTextSelect = function() { - return this.each(function() { - $(this).unbind('selectstart.disableTextSelect'); - }); - }; - } else { - $.fn.disableTextSelect = function() { - return this.each(function() { - $(this).bind('mousedown.disableTextSelect', function() { - return false; - }); - }); - }; - $.fn.enableTextSelect = function() { - return this.each(function() { - $(this).unbind('mousedown.disableTextSelect'); - }); - }; - } -})(jQuery); \ No newline at end of file diff --git a/resources/library/applications/GraphMe.wgt/JavaScript/languages.js b/resources/library/applications/GraphMe.wgt/JavaScript/languages.js deleted file mode 100644 index 06a4fd70..00000000 --- a/resources/library/applications/GraphMe.wgt/JavaScript/languages.js +++ /dev/null @@ -1,675 +0,0 @@ -var sankoreLang = { - "en":{ - "fnc":"Function: ", - "display":"Display", - "x_axis":"X-axis", - "y_axis":"Y-axis", - "zoom":"Zoom", - "color":"Color:", - "menus":"Menu", - "tools":"Tools", - "options":"Options", - "help":"Help", - "about":"About", - "mouse_events":"Mouse events:", - "moving":"Moving", - "tangente":"Tangente", - "point":"Point", - "choosing_color":"Choosing the color:", - "value":"Value:", - "saturation":"Saturation:", - "red":"Red:", - "green":"Green:", - "blue":"Blue:", - "opacity":"Opacity:", - "check":"Check", - "derivative":"Derivative:", - "square_under_func":"Square under function:", - "from":"From", - "to":"To", - "calculate":"Calculate", - "draw":"Draw", - "point_calculate":"Calculate the point on the function:", - "estimate":"Estimate", - "analysis_of_func":"Analysis of function:", - "start_to_analysis":"Start to analysis", - "quit":"Quit", - "display_test":"Display the test:", - "test":"Test", - "widget":"Widget", - "widget_options":"Widget options", - "themes_of_widget":"Themes of the widget:", - "black":"Black", - "white":"White", - "control_options":"Control options:", - "save":"Save", - "load":"Load", - "del":"Delete", - "save_a_widget_options":"Save a widget options in cookies or load an options from cookies or delete a registered options.", - "auto_update":"Automatically update when a widget opening.", - "reload_widget":"Reload widget", - "update":"Update", - "the_graphical":"The graphical method displaying:", - "lines":"lines", - "points":"points", - "image":"image", - "zoom_def":"Zoom default:", - "update_zoom":"Update zoom", - "show_grid":"Show grid", - "show_axis":"Show axis", - "scale":"Scale", - "thickness":"Thickness:", - "offset_diagram":"Offset diagram:", - "accuracy_graph":"Accuracy graph:", - "show_the_style":"Show the style:", - "surfaces":"surfaces", - "points":"points", - "reset_display":"Reset display", - "accuracy_func":"Accuracy function:", - "use_the_color":"Use the color:", - "positive_value":"positive value", - "negative_value":"negative value", - "general_value":"general value", - "how_it_work":"How it works", - "this_widget_allow":"This widget allows to draw mathematical function. Enter function in the field in the top part of the widget and press\"Display\"", - "you_can_enter":"You can enter following mathematical functions:", - "basic_operations":"Basic operations", - "plus":"Plus", - "minus":"Minus", - "multi":"Multiplication", - "division":"Division", - "mod":"Mod", - "trigonometric":"Trigonometric functions", - "sine":"Sine", - "cosine":"Cosine", - "tangent":"Tangent", - "cotangent":"Cotangent", - "secant":"Secant", - "cosecant":"Cosecant", - "arc_sine":"Arc sine", - "arc_cosine":"Arc cosine", - "arc_tangent":"Arc tangent", - "arc_cotangent":"Arc cotangent", - "hyperbolic_func":"Hyperbolic functions", - "hyp_sine":"Hyperbolic sine", - "hyp_cosine":"Hyperbolic cosine", - "hyp_tangent":"Hyperbolic tangent", - "hyp_cotangent":"Hyperbolic cotangent", - "hyp_secant":"Hyperbolic secant", - "hyp_cosecant":"Hyperbolic cosecant", - "hyp_arc_sine":"Hyperbolic arc sine", - "hyp_arc_cosine":"Hyperbolic arc cosine", - "hyp_arc_tangent":"Hyperbolic arc tangent", - "hyp_arc_cotangent":"Hyperbolic arc cotangent", - "square_roots_and_degrees":"Square roots and degrees", - "square_root":"Square root", - "degree":"Degree", - "root":"Root", - "variable_x":"Variable x to the power y", - "root_y":"Root y of x", - "exponential":"Exponential and logarithm", - "natural_log":"Natural logarithm", - "decimal_log":"Decimal logarithm", - "abs":"Absolute number value", - "rounding":"Rounding", - "round_nearest":"Rounding to the nearest whole number", - "round_nearest_big":"Rounding to the nearest whole number in a big way", - "round_nearest_small":"Rounding to the nearest whole number the smaller side", - "consts":"Constants", - "available_const":"Also are some constants available:", - "keys":"Keyboard keys", - "moved_left":"Graph will be moved left", - "moved_top":"Graph will be moved top", - "moved_right":"Graph will be moved right", - "moved_botom":"Graph will be moved bottom", - "guide":"User's guide", - "using":"Using", - "examples":"Examples", - "other":"Other", - "you_can_view":"You can view example. Don't forget to set a accuracy in option if it will be necessary.", - "save_graph":"Save graph", - "in_some_browsers":"In some browsers when display method \"Canvas\" used you can save graph by clcking it with right mouse button and selecting \"Save image\". Also you can save 3D-graphs.", - "offset":"Offset", - "if_graph_isnt":"If graph isn't in the right plase (larger than canvas) then can you set necessary parameters graph displaying in settings menu.", - "history":"History", - "current":"Current", - "additional":"Additional", - "left_arrow":"left arrow", - "right_arrow":"right arrow", - "top_arrow":"top arrow", - "bottom_arrow":"bottom arrow", - "or":"or", - "funcs":"Functions", - "widget_is_developed":"Widget is developed by", - "if_you_want_to":"If you want to inform about a bug, make a proposal or just ask some questions. You can contact to me at the following e-mail:", - "if_you_want_to_change":"If you want to change background design then you can contact at following address:", - "set_of_def":"Set of definitions:", - "parity":"Parity:", - "zeros":"Zeros of function:", - "signe":"Sign:", - "asympt":"Asymptotes", - "min":"Min", - "ev":"even", - "unev":"uneven", - "na":"n/a", - "curve_lower":"curve is lower than a AH", - "curve_higher":"curve is higher than a AH", - "max":"Max", - "no_min":"No minimum", - "no_max":"No maximum", - "tool_for":"Tool for analysis of function is not reliable on 100%. Don't forget check results of analysis before use it.", - "ah_left":"AH left:", - "ah_right":"AH right:", - "av":"AV:", - "options_saved":"Options saved!", - "cur_version":"Current version:", - "last_version":"The last on-line version:", - "using_web":"This widget is available to using on web-site:", - "show_saved":"Now parameters will be saved" - }, - "ru":{ - "fnc": "Функция: ", - "display":"Показать", - "x_axis":"ось X", - "y_axis":"ось Y", - "zoom":"Размер", - "color":"Цвет:", - "menus":"Меню", - "tools":"Инструменты", - "options":"Опции", - "help":"Помощь", - "about":"О программе", - "mouse_events":"События мыши:", - "moving":"Движение", - "tangente":"Касательная", - "point":"Точка", - "choosing_color":"Выбор цвета:", - "value":"Значение:", - "saturation":"Насыщенность:", - "red":"Красный:", - "green":"Зеленый:", - "blue":"Голубой:", - "opacity":"Прозрачность:", - "check":"Применить", - "derivative":"Производная:", - "square_under_func":"Область функции:", - "from":"От", - "to":"До", - "calculate":"Посчитать", - "draw":"Зарисовать", - "point_calculate":"Рассчитать точку функции:", - "estimate":"Оценить", - "analysis_of_func":"Анализ функции:", - "start_to_analysis":"Начать анализ", - "quit":"Выйти", - "display_test":"Показать тест:", - "test":"Тест", - "widget":"Виджет", - "widget_options":"Настройки виджета", - "themes_of_widget":"Темы виджета:", - "black":"Черный", - "white":"Белый", - "control_options":"Опции управления:", - "save":"Сохранить", - "load":"Загрузить", - "del":"Удалить", - "save_a_widget_options":"Сохранить или загрузить настройки виджета в/из куки-файлов, или же удалить выбранные опции", - "auto_update":"Автоматическое обновление виджета при загрузке", - "reload_widget":"Перегрузить виджет", - "update":"Обновить", - "the_graphical":"Графический метод отображения:", - "lines":"линии", - "points":"точки", - "image":"изображения", - "zoom_def":"Размер по-умолчанию:", - "update_zoom":"Изменить размер:", - "show_grid":"Показать таблицу", - "show_axis":"Показать оси", - "scale":"Масштаб", - "thickness":"Толщина", - "offset_diagram":"Смещение диаграммы:", - "accuracy_graph":"Точность графика:", - "show_the_style":"Показать стиль:", - "surfaces":"поверхности", - "points":"точки", - "reset_display":"Обновить отображение", - "accuracy_func":"Точность функции:", - "use_the_color":"Использовать цвет:", - "positive_value":"положительное значение", - "negative_value":"отрицательное значение", - "general_value":"основное значение", - "how_it_work":"Как это работает", - "this_widget_allow":"Этот виджет позволяет рисовать математические функции. Введите функцию в верхней части виджета и нажмите \"Показать\"", - "you_can_enter":"Вы можете использовать следующие математические функции:", - "basic_operations":"Основные операции", - "plus":"Сложение", - "minus":"Вычетание", - "multi":"Произведение", - "division":"Частное", - "mod":"Остаток от деления", - "trigonometric":"Тригонометрические функции", - "sine":"Синус", - "cosine":"Косинус", - "tangent":"Тангенс", - "cotangent":"Котангенс", - "secant":"Секанс", - "cosecant":"Косеканс", - "arc_sine":"Арксинус", - "arc_cosine":"Арккосинус", - "arc_tangent":"Арктангенс", - "arc_cotangent":"Арккотангенс", - "hyperbolic_func":"Гиперболические функции", - "hyp_sine":"Гиперболический синус", - "hyp_cosine":"Гиперболический косинус", - "hyp_tangent":"Гиперболический тангенс", - "hyp_cotangent":"Гиперболический котангенс", - "hyp_secant":"Гиперболический секанс", - "hyp_cosecant":"Гиперболический косеканс", - "hyp_arc_sine":"Гиперболический арксинус", - "hyp_arc_cosine":"Гиперболический арккосинус", - "hyp_arc_tangent":"Гиперболический арктангенс", - "hyp_arc_cotangent":"Гиперболический арккотангенс", - "square_roots_and_degrees":"Квардатные корни и степени", - "square_root":"Квадратный корень", - "degree":"Степень", - "root":"Корень", - "variable_x":"Переменная х в степени у", - "root_y":"Корень y степени x", - "exponential":"Экспоненты и логарифмы", - "natural_log":"Натуральный логарифм", - "decimal_log":"Десятичный логарифм", - "abs":"Абсолютное значение числа", - "rounding":"Округление", - "round_nearest":"Округление до ближайшего целого числа", - "round_nearest_big":"Округление до ближайшего целого числа в большую сторону", - "round_nearest_small":"Округление до ближайшего целого числа в меньую сторону", - "consts":"Константы", - "available_const":"Также доступны некоторые константы:", - "keys":"Горячие клавиши", - "moved_left":"График будет сдвинут влево", - "moved_top":"График будет сдвинут вверх", - "moved_right":"График будет сдвинут вправо", - "moved_bottom":"График будет сдвинут вниз", - "guide":"Руководство пользователя", - "using":"Использование", - "examples":"Примеры", - "other":"Другое", - "you_can_view":"Вы можете посмотреть примеры. Не забывайте выставить точность в настройках, если это необходимо.", - "save_graph":"Сохранить график", - "in_some_browsers":"В некоторых браузерах при выборе метода отоюражения \"Canvas\" вы можете сохранить гафик кликом ПКМ на нем и выбором пункта \"Сохранить изображение\". Таким же способом вы можете сохранять 3D-графики.", - "offset":"Смещение", - "if_graph_isnt":"Если график арсположен в неправильном месте (больше, чем холст), то Вы можете выставить необходимые параметры отображения графа в настройках виджета.", - "history":"История", - "current":"Текущие", - "additional":"Дополнительные", - "left_arrow":"стрелка влево", - "right_arrow":"стрелка вправо", - "top_arrow":"стрелка вверх", - "bottom_arrow":"стрелка вниз", - "or":"или", - "funcs":"Функции", - "widget_is_developed":"Виджет разработан ", - "if_you_want_to":"Если вы хотите сообщить о проблеме, внести предложение или задать некоторые вопросы, то можете связаться со мной через электронную почту:", - "if_you_want_to_change":"Если вы хотите изменить дизайн, обращайтесь по адресу:", - "set_of_def":"Набор определений:", - "parity":"Равенство:", - "zeros":"Нули функции:", - "signe":"Знак:", - "asympt":"Ассимптоты", - "min":"Мин", - "ev":"равны", - "unev":"не равны", - "na":"не определено", - "curve_lower":"кривая ниже, чем горизонтальная ассимптота", - "curve_higher":"кривая выше, чем горизонтальная ассимптота", - "max":"Макс", - "no_min":"Нет минимума", - "no_max":"Нет максимума", - "tool_for":"Анализ функции не надежен на 100%. Не забывайте проверить результат анализа перед их использованием.", - "ah_left":"ГА слева:", - "ah_right":"ГА справа:", - "av":"ВА:", - "options_saved":"Настройки сохранены!", - "cur_version":"Текущая версия:", - "last_version":"Последняя он-лайн версия:", - "using_web":"Этот виджет доступен для использования на сайте:", - "show_saved":"Теперь параметры будут сохранены" - }, - "fr":{ - "fnc":"Fonction: ", - "display":"Afficher", - "x_axis":"Axe des X de:", - "y_axis":"Axe des Y de:", - "zoom":"Zoom", - "color":"Couleur:", - "menus":"Menus", - "tools":"Outils", - "options":"Options", - "help":"Aide", - "about":"À propos", - "mouse_events":"Action de la souris:", - "moving":"Déplacement", - "tangente":"Tangente", - "point":"Point", - "choosing_color":"Choix de la couleur:", - "value":"Valeur:", - "saturation":"Saturation:", - "red":"Rouge:", - "green":"Vert:", - "blue":"Bleu:", - "opacity":"Opacité:", - "check":"Valider", - "derivative":"Dessiner la dérivée de la fonction:", - "square_under_func":"Aire sous la fonction:", - "from":"From", - "to":"To", - "calculate":"Calculer", - "draw":"Dessiner", - "point_calculate":"Calculer un point de la fonction:", - "estimate":"Évaluer", - "analysis_of_func":"Analyse de la fonction:", - "start_to_analysis":"Démarrer l'étude", - "quit":"Fermer", - "display_test":"Afficher les tests:", - "test":"Test", - "widget":"Widget", - "widget_options":"Options du widget", - "themes_of_widget":"Thème du widget:", - "black":"Noir", - "white":"Blanc", - "control_options":"Gèrer les options:", - "save":"Sauvegarder", - "load":"Charger", - "del":"Supprimer", - "save_a_widget_options":"Sauvegarder les options du widget dans les cookies, charger les options depuis les cookies ou supprimer les options actuellement enregistrées.", - "auto_update":"Mise à jour automatique à l'ouverture du widget.", - "reload_widget":"Recharger le widget", - "update":"Mise à jour", - "the_graphical":"Méthode d'affichage du graphique:", - "lines":"lignes", - "points":"points", - "image":"image", - "zoom_def":"Zoom par défaut:", - "update_zoom":"Réinitialiser le zoom", - "show_grid":"Afficher la grille", - "show_axis":"Afficher les axes ", - "scale":"Afficher l'échelle ", - "thickness":"Épaisseur de la fonction:", - "offset_diagram":"Décalage du graphique:", - "accuracy_graph":"Précision des calculs du graphique:", - "show_the_style":"Style d'affichage:", - "surfaces":"surfaces", - "points":"points", - "reset_display":"Réinitialiser l'affichage", - "accuracy_func":"Précision de la fonction:", - "use_the_color":"Utilisation des couleurs:", - "positive_value":"valeur positive", - "negative_value":"valeur négative", - "general_value":"valeur générale", - "how_it_work":"Fonctionnement", - "this_widget_allow":"Ce widget vous permet de dessiner des fonctions mathématiques. Entrez une fonction dans le champ en haut du widget et cliquez sur le bouton \"Afficher\".", - "you_can_enter":"Vous pouvez saisir les fonctions mathématiques suivantes:", - "basic_operations":"Les opérations de base", - "plus":"Addition", - "minus":"Soustraction", - "multi":"Multiplication", - "division":"Division", - "mod":"Modulo", - "trigonometric":"Les fonctions trigonométriques", - "sine":"Sinus", - "cosine":"Cosinus", - "tangent":"Tangente", - "cotangent":"Cotangente", - "secant":"Secante", - "cosecant":"Cosecante", - "arc_sine":"Arcsinus", - "arc_cosine":"Arccosinus", - "arc_tangent":"Arctangente", - "arc_cotangent":"Arccotangente", - "hyperbolic_func":"Les fonctions hyperboliques", - "hyp_sine":"Sinus hyp", - "hyp_cosine":"Cosinus hyp", - "hyp_tangent":"Tangente hyp", - "hyp_cotangent":"Cotangente hyp", - "hyp_secant":"Secante hyp", - "hyp_cosecant":"Cosecante hyp", - "hyp_arc_sine":"Arcsinus hyp", - "hyp_arc_cosine":"Arccosinus hyp", - "hyp_arc_tangent":"Arctangente hyp", - "hyp_arc_cotangent":"Arccotangente hyp", - "square_roots_and_degrees":"Les racines et les puissances", - "square_root":"Racine carrée", - "degree":"Puissances", - "root":"Racines", - "variable_x":"Élève x à une puissance y", - "root_y":"Racine y d'un nombre x", - "exponential":"Les exponentielles et logarithmes", - "natural_log":"logarithme naturel", - "decimal_log":"logarithme de base", - "abs":"La valeur absolue d'un nombre", - "rounding":"Les arrondis", - "round_nearest":"arrondit à l'entier le plus proche", - "round_nearest_big":"arrondit à l'entier supérieur", - "round_nearest_small":"arrondit à l'entier inférieur", - "consts":"Constantes", - "available_const":"Quelques constantes sont aussi disponibles:", - "keys":"Touches clavier", - "moved_left":"déplacer le graphique à gauche", - "moved_top":"déplacer le graphique en haut", - "moved_right":"déplacer le graphique à droite", - "moved_botom":"déplacer le graphique en bas", - "guide":"Guide d'utilisation", - "using":"Utilisation", - "examples":"Exemples", - "other":"Autres", - "you_can_view":"Vous pouvez cliquer sur un exemple pour l'afficher. Pensez à ajuster la précision du graphique dans les options si nécessaire", - "save_graph":"Enregistrer le graphique", - "in_some_browsers":"Dans certains navigateurs, lorsque vous utilisez la méthode d'affichage \"Canvas\", vous pouvez sauvegarder le graphique en cliquant avec le bouton de droite de la souris sur celui-ci et en séléctionnant \"Enregistrer l'image\". Vous pouvez aussi sauvegarder le graphique 3D. ", - "offset":"Décalage", - "if_graph_isnt":"Si le graphique n'est pas à la bonne place (il dépasse de la zone prévue), ajustez le \"décalage du graphique\" dans le menu des options. Pour Konqueror, il faut utiliser un décalage de x=122 et y=48.", - "history":"Historique", - "current":"Actuelle", - "additional":"Supplémentaires", - "left_arrow":"flèche gauche", - "right_arrow":"flèche droite", - "top_arrow":"flèche haut", - "bottom_arrow":"flèche bas", - "or":"ou", - "funcs":"Fonction", - "widget_is_developed":"Widget réalisé par", - "if_you_want_to":"Si vous voulez rapporter un bug, avez une suggestion par rapport au widget ou voulez simplement poser une question, merci de me contacter par:", - "if_you_want_to_change":"Les images d'arrière-plan du widget on été tirées des thèmes du bureau \"plasma-desktop\" de l'environnement:", - "set_of_def":"Ensemble de définition:", - "parity":"Parité:", - "zeros":"Zéros de la fonction:", - "signe":"Signe:", - "asympt":"Asymptotes", - "min":"Min", - "ev":"paire", - "unev":"impaire", - "na":"aucune", - "curve_lower":"courbe au-dessus de l'AH", - "curve_higher":"courbe au-dessous de l'AH", - "max":"Max", - "no_min":"Aucun minimum", - "no_max":"Aucun maximum", - "tool_for":"L'outil permettant d'étudier les fonctions n'est pas fiable à 100%. Pensez à vérifier les résultats de l'étude avant d'en faire une quelconque utilisation.", - "ah_left":"AH gauche:", - "ah_right":"AH droite:", - "av":"AV:", - "options_saved":"Options sauvegardées!", - "cur_version":"Version en cours d'utilisation:", - "last_version":"Dernière version disponible en ligne:", - "using_web":"Ce widget est également utilisable dans un navigateur internet sur le site:", - "show_saved":"Options actuellement sauvegardées" - }, - "sk":{ - "fnc":"Funkcia: ", - "display":"Zobraziť", - "x_axis":"Os x", - "y_axis":"Os y", - "zoom":"Lupa", - "color":"Farba:", - "menus":"Menu", - "tools":"Nástroje", - "options":"Možnosti", - "help":"Pomoc", - "about":"O aplikácii", - "mouse_events":"Činnosti s myšou:", - "moving":"Presúvanie", - "tangente":"Dotyčnica", - "point":"Bod", - "choosing_color":"Výber farby:", - "value":"Hodnota:", - "saturation":"Nasýtenie:", - "red":"Červená:", - "green":"Zelená:", - "blue":"Modrá:", - "opacity":"Priehľadnosť:", - "check":"Vyskúšať", - "derivative":"Derivovaná funkcia:", - "square_under_func":"Štvorec pod funkciou:", - "from":"Od", - "to":"Do", - "calculate":"Vypočítať", - "draw":"Vyznačiť", - "point_calculate":"Vypočítať bod podľa funkcie:", - "estimate":"Odhadnúť", - "analysis_of_func":"Analýza funkcie:", - "start_to_analysis":"Spustiť analýzu", - "quit":"Koniec", - "display_test":"Zobraziť test:", - "test":"Test", - "widget":"Widget", - "widget_options":"Možnosti widgetu", - "themes_of_widget":"Farba widgetu:", - "black":"čierna", - "white":"biela", - "control_options":"Možnosti ovládania:", - "save":"Uložiť", - "load":"Spustiť", - "del":"Vymazať", - "save_a_widget_options":"Uloží nastavenia widgetu do cookies alebo spustí nastavenia z cookies alebo vymaže uložené nastavenia.", - "auto_update":"Automaticky aktualizovať pri otvorení widgetu.", - "reload_widget":"Znova spustiť widget", - "update":"Aktualizovať", - "the_graphical":"Spôsob grafického zobrazenia: ", - "lines":"čiary", - "points":"body", - "image":"obrázok", - "zoom_def":"Predvolená lupa:", - "update_zoom":"Aktualizovať lupu", - "show_grid":"Zobraziť mriežku", - "show_axis":"Zobraziť os", - "scale":"Mierka", - "thickness":"Hrúbka:", - "offset_diagram":"Posunúť diagram:", - "accuracy_graph":"Presnosť grafu:", - "show_the_style":"Zobraziť štýl:", - "surfaces":"plocha", - "points":"body", - "reset_display":"Obnoviť zobrazenie", - "accuracy_func":"Presnosť funkcie:", - "use_the_color":"Použiť farbu:", - "positive_value":"positívna hodnota", - "negative_value":"negatívna hodnota", - "general_value":"všeobecná hodnota", - "how_it_work":"Ako to funguje", - "this_widget_allow":"Tento widget vám umožňuje nakresliť graf matematickej funkcie. Zadajte funkciu do poľa v hornej časti a stlačte tlačidlo\"Zobraziť\"", - "you_can_enter":"Môžete zadať tieto matematické funkcie:", - "basic_operations":"Základné operácie", - "plus":"plus", - "minus":"mínus", - "multi":"násobenie", - "division":"delenie", - "mod":"mod", - "trigonometric":"Trigonometrické funkcie", - "sine":"sínus", - "cosine":"kosínus", - "tangent":"tangens", - "cotangent":"kotangens", - "secant":"sekant", - "cosecant":"kosekant", - "arc_sine":"arkus sínus", - "arc_cosine":"arkus kosínus", - "arc_tangent":"arkus tangens", - "arc_cotangent":"arkus kotangens", - "hyperbolic_func":"Hyperbolické funkcie", - "hyp_sine":"hyperbolický sínus", - "hyp_cosine":"hyperbolický kosínus", - "hyp_tangent":"hyperbolický tangens", - "hyp_cotangent":"hyperbolický kotangens", - "hyp_secant":"hyperbolický sekant", - "hyp_cosecant":"hyperbolický kosecant", - "hyp_arc_sine":"hyperbolický arkus sínus", - "hyp_arc_cosine":"hyperbolický arkus kosínus", - "hyp_arc_tangent":"hyperbolický arkus tangens", - "hyp_arc_cotangent":"hyperbolický arkus kotangens", - "square_roots_and_degrees":"Mocminy a odmocniny", - "square_root":"Druhá odmocnina", - "degree":"Mocniny", - "root":"Odmocniny", - "variable_x":"hodnota x umocnená na y", - "root_y":"Odmocnina y z čísla x", - "exponential":"Exponenciálne funkcie a logaritmy", - "natural_log":"Prirodzený logaritmus", - "decimal_log":"Dekadický logaritmus", - "abs":"Absolútna hodnota čísla", - "rounding":"Zaokrúhľovanie", - "round_nearest":"zaokrúhlenie na najbližšie celé číslo", - "round_nearest_big":"zaokrúhlenie na najbližšie väčšie celé číslo", - "round_nearest_small":"zaokrúhlenie na najbližšie menšie celé číslo", - "consts":"Konštanty", - "available_const":"K dispozíci je aj niekoľko konštánt:", - "keys":"Klávesové skratky", - "moved_left":"graf sa posunie doľava", - "moved_top":"graf sa posunie nahor", - "moved_right":"graf sa posunie doprava", - "moved_botom":"graf sa posunie nadol", - "guide":"Používateľská príručka", - "using":"Použitie", - "examples":"Príklady", - "other":"Iné", - "you_can_view":"Tento príklad si môžete zobraziť. Nezabudnite v možnostiach nastaviť presnosť, ak to bude potrebné.", - "save_graph":"Uloženie grafu", - "in_some_browsers":"V niektorých prehliadačoch pri použití metódy zobrazenia \"Plátno\" môžete uložiť graf tak, že naň kliknete pravým tlačidlom myši a vyberiete možnosť \"Uložiť obrázok\". Môžete ukladať aj 3D-grafy.", - "offset":"Posun", - "if_graph_isnt":"Ak graf nie je na správnom mieste (je väčší ako plátno), môžete nastaviť potrebné nastavenia v menu.", - "history":"História", - "current":"Súčasná", - "additional":"Ďalšia", - "left_arrow":"šípka doľava", - "right_arrow":"šípka doprava", - "top_arrow":"šípka nahor", - "bottom_arrow":"šípka nadol", - "or":"alebo", - "funcs":"Funkcie", - "widget_is_developed":"Widget programuje", - "if_you_want_to":"Ak nás chcete informovať o chybe, napísať nám podnet alebo sa len niečo opýtať, môžete napísať na tento e-mail:", - "if_you_want_to_change":"Ak chcete zmeniť dizajn pozadia, potom môžete napísať na túto adresu:", - "set_of_def":"Definičný obor:", - "parity":"Párnosť:", - "zeros":"Núl vo funcii:", - "signe":"Znamienko:", - "asympt":"Asymptoty", - "min":"Min", - "ev":"párna", - "unev":"nepárna", - "na":"–", - "curve_lower":"Krivka je nižšie ako HA", - "curve_higher":"Krivka je vyššie ako HA", - "max":"Max", - "no_min":"Žiadne minimum", - "no_max":"Žiadne maximum", - "tool_for":"Nástroj na analýzu funkcie nie je spoľahlivý na 100 %. Nezabudnite si skontrolovať výsledky analýzy predtým, ako ich použijete.", - "ah_left":"HA vľavo:", - "ah_right":"HA vpravo:", - "av":"AV:", - "options_saved":"Nastavenia uložené!", - "cur_version":"Súčasná verzia:", - "last_version":"Najnovšia on-line verzia:", - "using_web":"Tento widget je dostupný na používanie na stránke:", - "show_saved":"Teraz budú parametre uložené" - } - -}; diff --git a/resources/library/applications/GraphMe.wgt/GraphMe.wgt/Style/ColorPicker.css b/resources/library/applications/GraphMe.wgt/Style/ColorPicker.css similarity index 100% rename from resources/library/applications/GraphMe.wgt/GraphMe.wgt/Style/ColorPicker.css rename to resources/library/applications/GraphMe.wgt/Style/ColorPicker.css diff --git a/resources/library/applications/GraphMe.wgt/GraphMe.wgt/Style/Haut.css b/resources/library/applications/GraphMe.wgt/Style/Haut.css similarity index 100% rename from resources/library/applications/GraphMe.wgt/GraphMe.wgt/Style/Haut.css rename to resources/library/applications/GraphMe.wgt/Style/Haut.css diff --git a/resources/library/applications/GraphMe.wgt/GraphMe.wgt/Style/Menus.css b/resources/library/applications/GraphMe.wgt/Style/Menus.css similarity index 100% rename from resources/library/applications/GraphMe.wgt/GraphMe.wgt/Style/Menus.css rename to resources/library/applications/GraphMe.wgt/Style/Menus.css diff --git a/resources/library/applications/GraphMe.wgt/GraphMe.wgt/Style/Widget.css b/resources/library/applications/GraphMe.wgt/Style/Widget.css similarity index 100% rename from resources/library/applications/GraphMe.wgt/GraphMe.wgt/Style/Widget.css rename to resources/library/applications/GraphMe.wgt/Style/Widget.css diff --git a/resources/library/applications/GraphMe.wgt/Style/default.css b/resources/library/applications/GraphMe.wgt/Style/default.css deleted file mode 100644 index 1fd90946..00000000 --- a/resources/library/applications/GraphMe.wgt/Style/default.css +++ /dev/null @@ -1,659 +0,0 @@ -/* ----------------- */ -/* CSS */ -/* ----------------- */ - - -/* Arrière plan du widget */ -body{ - background-image: url('../Images/fond2.png'); - background-repeat: no-repeat; - background-position: 0px 0px; -} - -/* Zone d'affichage des fonctions */ -#affichage{ - position: absolute; - top: 52px; - left: 129px; - width: 500px; - height: 400px; - overflow:hidden; - border: 2px solid black; - border-radius: 5px; - -moz-border-radius: 5px; - -webkit-border-radius: 5px; -} - -/* Texte et boutons qui sont en haut du widget */ -#haut{ - position: relative; - top: 13px; - left: 20px; - width: 500px; - z-index: 2; -} - -/* Champ permettant d'entrer la fonction à dessiner */ -#inputEq{ - width: 200px; -} - -/* Texte à côté du champ de la fonction à dessiner */ -#texteFonction{ - color: white; - font-weight: bold; -} - -/* Partie gauche du widget comprenant les boutons des menus et les options rapides */ -#gauche{ - position: absolute; - top: 62px; - left: 18px; - width: 100px; - height: 380px; - padding: 2px; - color: white; - font-size: 80%; - background-image: url('../Images/gauche2.png'); - border-color: black; - /*border-width: 2px;*/ - border-width: 0px; - border-style: solid; - border-radius: 5px; - -moz-border-radius: 5px; - -webkit-border-radius: 5px; -} - -/* Boutons qui sont dans la partie gauche et qui ouvrent les différents menus */ -.boutonGauche{ - width: 100%; - height: 32px; - text-align: center; -} - -/* Partie gauche du widget lorsque l'affichage 3D est activé */ -#gauche3D{ - position: absolute; - left: -149px; - top: 234px; - width: 360px; - height: 32px; - padding: 2px; - padding-left: 14px; - border: 2px solid rgba(255, 255, 255, 0.4); - border-radius: 5px; - -moz-border-radius: 5px; - -webkit-border-radius: 5px; - background-color: rgba(255, 255, 255, 0.3); - -moz-transform: rotate(270deg); - -webkit-transform: rotate(270deg); - -o-transform: rotate(270deg); - display: none; - z-index: -1; -} -#gauche3D input.boutonGauche3D{ - width: 90px; - height: 30px; -} - -/* Style pour les menus */ -.menu{ - position: absolute; - top: 68px; - left: 121px; - width: 450px; - height: 350px; - padding: 10px; - overflow: hidden; - background-color: rgba(255, 255, 255, 0.7); - border-style: none; - border-width: 1px; - border-color: rgba(0,70,128, 0.9); - border-radius: 4px; - -moz-border-radius: 4px; - -webkit-border-radius: 4px; - z-index: 2; - display: none; -} -.barreBasMenu{ - position: absolute; - right: 0px; - bottom: 0px; -} -.contenuMenu{ - font-size: 14px; - padding: 10px; - overflow: auto; - max-height: 315px; -} -.avecBordures{ - border-top: 1px solid rgba(255, 255, 255, 0.4); - height: 80% -} -.ongletMenu{ - position: relative; - top: 3px; - width: 100%; -} -.ongletMenu tr td{ - width: 30%; - height: 30px; - text-align: center; - font-weight: normal; - background-color: rgba(255, 255, 255, 0.7); - border: 1px solid rgba(255, 255, 255, 0.9); - border-radius: 4px; - -moz-border-radius: 4px; - -webkit-border-radius: 4px; - opacity: 0.5; - cursor: pointer; -} -.ongletMenu tr td:hover{ - opacity: 1; -} -.ongletMenu tr td.ongletMenuActuel{ - position:relative; - top:-1px; - opacity: 0.9; - font-weight: bold; - border-bottom : none; - border-bottom-left-radius: 0px; - border-bottom-right-radius: 0px; - -moz-border-radius-bottomleft: 0px; - -moz-border-radius-bottomright: 0px; - -webkit-border-bottom-left-radius: 0px; - -webkit-border-bottom-right-radius: 0px; -} -.miniMenu{ - position: absolute; - top: 120px; - left: 170px; - width: 320px; - height: 240px; - padding: 10px; - text-align: center; - font-size: 14px; - overflow: auto; - background-color: rgba(255, 255, 255, 0.9); - border-style: solid; - border-width: 1px; - border-color: rgba(0,70,128, 0.9); - border-radius: 15px; - -moz-border-radius: 15px; - -webkit-border-radius: 15px; - z-index: 2; - display: none; -} -.alertMenu{ - position: absolute; - top: 170px; - left: 220px; - width: 220px; - height: 140px; - padding: 10px; - text-align: center; - font-size: 14px; - overflow: auto; - background-color: rgba(255, 255, 255, 0.9); - border-style: solid; - border-width: 1px; - border-color: rgba(0,70,128, 0.9); - border-radius: 15px; - -moz-border-radius: 15px; - -webkit-border-radius: 15px; - z-index: 3; - display: none; -} -.miniMenu input{ - width: 45%; - height: 32px; -} -.alertMenu input{ - width: 45%; - height: 32px; -} - -/* Menu des crédits */ -#credits{ - width: 80%; - margin: auto; -} -#credits tr td{ - padding: 20px; - width: 100%; - height: 150px; - text-align: center; - vertical-align: middle; - background-color: rgba(255, 255, 255, 0.7); - border: 2px solid white; - border-radius: 10px; - -moz-border-radius: 10px; - -webkit-border-radius: 10px; -} -#credits tr td img{ - float: left; -} -#credits tr td a{ - font-size: 80%; -} -#credits tr td h3{ - text-align:center; -} - -/* Aperçu couleur 3D*/ -#apercuCouleur3D{ - border: 1px solid rgba(0, 0, 0, 0.7); - border-radius: 4px; - -moz-border-radius: 4px; - -webkit-border-radius: 4px; -} - -/* Taille des champs contenant seulement 2 ou 3 caractères */ -.smallInput{ - width: 35px; -} - -/* Choix de la saturation et de la valeur dans le ColorPicker */ -#colorSV{ - float: left; - width: 255px; - height: 255px; - border: 1px solid black; - background-color: red; - cursor: crosshair; -} - -/* Choix de la teinte dans le ColorPicker */ -#colorT{ - float: left; - width: 20px; - height: 255px; - margin-left: 10px; - border: 1px solid black; - background-color: black; - cursor: crosshair; -} - -/* Valeurs de la couleur dans le ColorPicker */ -#colorValues{ - position: relative; - left: 10px; - font-size: 80%; -} - -/* Boutons qui ouvrent le ColorPicker */ -/*Menu de gauche*/ -#buttonColor{ - float: left; - position: relative; - left: 75px; - top: -18px; - width: 20px; - height: 20px; - border: 1px white solid; - border-radius: 5px; - -moz-border-radius: 5px; - -webkit-border-radius: 5px; - background-color: rgb(193,255,0); - cursor:pointer; -} -#buttonColor:hover{ - border-width: 2px; - left: 74px; - top: -19px; -} - -#apercuCouleur{ - position: absolute; - right: 20px; - bottom: 40px; - width: 40px; - height: 30px; - border: 1px white solid; - border-radius: 5px; - -moz-border-radius: 5px; - -webkit-border-radius: 5px; - background-color: rgb(193,255,0); -} - -#apercuCouleur2{ - position: absolute; - right: 65px; - bottom: 40px; - width: 40px; - height: 30px; - border: 1px white solid; - border-radius: 5px; - -moz-border-radius: 5px; - -webkit-border-radius: 5px; - background-color: rgb(193,255,0); -} - -/*Fonctions supplémentaires*/ -.boutonCouleur{ - position: relative; - left: 2px; - top: 0px; - width: 20px; - height: 20px; - color: rgba(0,0,0,0); - border: 1px white solid; - border-radius: 5px; - -moz-border-radius: 5px; - -webkit-border-radius: 5px; - background-color: rgb(0,171,255); - cursor:pointer; -} -.boutonCouleur:hover{ - border-width: 2px; - left: 1px; - top: 0px; -} - -/* Texte d'information (plus petit) */ -.texteSecondaire{ - font-size: 11px; - color: rgba(0,0,0,0.5); - margin-left: 10px; -} - -/* Style pour le texte où on peut cliquer dessus */ -.survol{ - cursor: pointer; -} -.survol:hover{ - color: rgba(0,0,0,0.5); -} - -/* Texte en gras */ -.gras{ - font-weight: bold; -} - -/* Flèches permettant de deplacer l'affichage */ -.flecheDeplacement{ - color: black; - opacity: 0; - font-size: 56px; - text-align: center; - cursor: pointer; - z-index: 1; -} -.flecheDeplacement:hover{ - opacity: 0.4; -} -#flecheHaut{ - position: absolute; - top: 46px; - left: 345px; - width: 70px; - height: 55px; -} -#flecheBas{ - position: absolute; - top: 381px; - left: 345px; - width: 70px; - height: 55px; -} -#flecheGauche{ - position: absolute; - top: 216px; - left: 137px; - width: 55px; - height: 70px; -} -#flecheDroite{ - position: absolute; - top: 216px; - left: 567px; - width: 55px; - height: 70px; -} - -/* Bouton permettant de minimiser et maximiser le widget */ -#miniMax{ - position: absolute; - right: 10px; - top: 10px; - font-size: 24px; - color: rgba(0,0,0,0.4); - cursor: pointer; -} -#miniMax:hover{ - color: rgba(0,0,0,1); -} - -/* Boutons permettant de choisir l'action de la souris dans le menu des outils */ -.choixOutil{ - width: 125px; - height: 40px; - font-size: 14px; - cursor: pointer; -} - -/* Point sous la souris */ -#point{ - position: absolute; - top: -10px; - left: -10px; - color: white; -} -/* Coordonnées du points sous la souris */ -#info{ - position: absolute; - top: 57px; - left: 137px; - color: white; -} -/* Outil de tangente */ -#tangente{ - position: absolute; - top: 52px; - left: 129px; - width: 500px; - height: 400px; - z-index: -1; -} - -/* Petits boutons plus et moins dans les options */ -.boutonPlus{ - position: relative; - top: -7px; - left: -5px; - width: 10px; - height: 10px; - font-size: 9px; - text-align: center; - background-color: rgba(0, 140, 255, 0.2); - border: 1px rgba(0,0,0,0.5) solid; - border-radius: 3px; - -moz-border-radius: 3px; - -webkit-border-radius: 3px; - cursor: pointer; - display: inline-block; -} -.boutonMoins{ - position: relative; - top: 6px; - left: -17px; - width: 10px; - height: 10px; - font-size: 9px; - text-align: center; - background-color: rgba(0, 140, 255, 0.2); - border: 1px rgba(0,0,0,0.5) solid; - border-radius: 3px; - -moz-border-radius: 3px; - -webkit-border-radius: 3px; - cursor: pointer; - display: inline-block; -} -.boutonPlus:hover{ - border: 1px rgba(0,0,0,0.7) solid; - background-color: rgba(0, 140, 255, 0.5); -} -.boutonMoins:hover{ - border: 1px rgba(0,0,0,0.7) solid; - background-color: rgba(0, 140, 255, 0.5); -} - -/* Bouton qui sert à choisir entre l'affichage 3D et 2D */ -#onglet3D{ - position: absolute; - top: 30px; - left: 570px; - width: 40px; - height: 21px; - color: white; - text-align: center; - background-color: rgba(255, 255, 255, 0.4); - background-image: url("../Images/onglet1.png"); - border: 1px solid black; - border-top-left-radius: 4px; - border-top-right-radius: 4px; - -moz-border-radius-topleft: 4px; - -moz-border-radius-topright: 4px; - -webkit-border-top-left-radius: 4px; - -webkit-border-top-right-radius: 4px; - cursor: pointer; - opacity: 0.4; - z-index: 3; -} -#onglet3D:hover{ - opacity: 0.9; -} - -/* Tableau du signe dans le menu d'étude de la fonction*/ -#etudeSigne td{ - min-width: 25px; - text-align: center; -} -#etudeSigne td.border{ - border: 1px solid black; - border-radius: 3px; - -moz-border-radius: 3px; - -webkit-border-radius: 3px; -} -#etudeSigne td.infini{ - background-color: rgba(0,0,0,0.5); -} - -/* Titres des menus */ -h1{ - font-size: 16px; - font-weight: 600; - text-align: center; - /*font-style: italic;*/ - margin-top: 15px; - margin-bottom: 25px; -} -h2{ - font-size: 14px; - font-weight: normal; - font-style: italic; - margin-top: 30px; -} -h3{ - font-size: 16px; - font-weight: 600; - text-align: left; - /*font-style: italic;*/ - margin-top: 10px; - margin-bottom: 20px; -} -h4{ - font-size: 16px; - font-weight: 600; - text-align: center; - /*font-style: italic;*/ - margin-top: 15px; - margin-bottom: 10px; -} - -/* Petits boutons en haut à droite du widget */ -.miniBouton{ - width: 12px; - height: 12px; - color: white; - font-size: 12px; - text-align: center; - background-color: rgba(255,255,255,0.5); - border: 1px solid white; - border-radius: 6px; - -moz-border-radius: 6px; - -webkit-border-radius: 6px; - cursor: pointer; - opacity: 0.5; -} -.miniBouton:hover{ - opacity: 1; -} -#boutonAgrandir{ - position: absolute; - left: 635px; - top: 11px; - z-index: 3; -} -#boutonFermer{ - position: absolute; - left: 615px; - top: 11px; - z-index: 3; -} - -/* Menu Mise à Jour */ -#mAj{ - text-align: center; - font-size: 14px; -} -#mAj h1{ - font-size: 22px; - margin-top: 5px; - margin-bottom: 15px; -} -#mAj span object{ - position: relative; - bottom: 4px; - width: 150px; - height: 27px; - overflow: hidden; -} -#mAj input{ - height: 32px; -} - -.boutonSauvegarde{ - width: 100px; - height: 32px; -} -#cacheCookies{ - position: absolute; - top: 170px; - left: 14px; - width: 93%; - height: 130px; - background-color: rgba(255,255,255,0.7); - border: 1px rgba(255,255,255,0.8) solid; - border-radius: 3px; - -moz-border-radius: 3px; - -webkit-border-radius: 3px; - text-align: center; - display: none; -} -#cacheMaJ{ - position: absolute; - padding-top: 10px; - top: 270px; - left: 14px; - width: 93%; - height: 25px; - background-color: rgba(255,255,255,0.8); - border: 1px rgba(255,255,255,0.8) solid; - border-radius: 3px; - -moz-border-radius: 3px; - -webkit-border-radius: 3px; - text-align: center; - font-weight: bold; - display: none; -} \ No newline at end of file diff --git a/resources/library/applications/GraphMe.wgt/__MACOSX/._GraphMe.wgt b/resources/library/applications/GraphMe.wgt/__MACOSX/._GraphMe.wgt deleted file mode 100644 index 9737ab1e..00000000 Binary files a/resources/library/applications/GraphMe.wgt/__MACOSX/._GraphMe.wgt and /dev/null differ diff --git a/resources/library/applications/GraphMe.wgt/__MACOSX/GraphMe.wgt/._Grapheur.html b/resources/library/applications/GraphMe.wgt/__MACOSX/GraphMe.wgt/._Grapheur.html deleted file mode 100644 index c6f58eaa..00000000 Binary files a/resources/library/applications/GraphMe.wgt/__MACOSX/GraphMe.wgt/._Grapheur.html and /dev/null differ diff --git a/resources/library/applications/GraphMe.wgt/__MACOSX/GraphMe.wgt/._Guide_Utilisateur.html b/resources/library/applications/GraphMe.wgt/__MACOSX/GraphMe.wgt/._Guide_Utilisateur.html deleted file mode 100644 index c6f58eaa..00000000 Binary files a/resources/library/applications/GraphMe.wgt/__MACOSX/GraphMe.wgt/._Guide_Utilisateur.html and /dev/null differ diff --git a/resources/library/applications/GraphMe.wgt/__MACOSX/GraphMe.wgt/._Images b/resources/library/applications/GraphMe.wgt/__MACOSX/GraphMe.wgt/._Images deleted file mode 100644 index 9737ab1e..00000000 Binary files a/resources/library/applications/GraphMe.wgt/__MACOSX/GraphMe.wgt/._Images and /dev/null differ diff --git a/resources/library/applications/GraphMe.wgt/__MACOSX/GraphMe.wgt/._JavaScript b/resources/library/applications/GraphMe.wgt/__MACOSX/GraphMe.wgt/._JavaScript deleted file mode 100644 index 9737ab1e..00000000 Binary files a/resources/library/applications/GraphMe.wgt/__MACOSX/GraphMe.wgt/._JavaScript and /dev/null differ diff --git a/resources/library/applications/GraphMe.wgt/__MACOSX/GraphMe.wgt/._Style b/resources/library/applications/GraphMe.wgt/__MACOSX/GraphMe.wgt/._Style deleted file mode 100644 index 9737ab1e..00000000 Binary files a/resources/library/applications/GraphMe.wgt/__MACOSX/GraphMe.wgt/._Style and /dev/null differ diff --git a/resources/library/applications/GraphMe.wgt/__MACOSX/GraphMe.wgt/._config.xml b/resources/library/applications/GraphMe.wgt/__MACOSX/GraphMe.wgt/._config.xml deleted file mode 100644 index c6f58eaa..00000000 Binary files a/resources/library/applications/GraphMe.wgt/__MACOSX/GraphMe.wgt/._config.xml and /dev/null differ diff --git a/resources/library/applications/GraphMe.wgt/__MACOSX/GraphMe.wgt/._icon.png b/resources/library/applications/GraphMe.wgt/__MACOSX/GraphMe.wgt/._icon.png deleted file mode 100644 index ffec2812..00000000 Binary files a/resources/library/applications/GraphMe.wgt/__MACOSX/GraphMe.wgt/._icon.png and /dev/null differ diff --git a/resources/library/applications/GraphMe.wgt/__MACOSX/GraphMe.wgt/._version.html b/resources/library/applications/GraphMe.wgt/__MACOSX/GraphMe.wgt/._version.html deleted file mode 100644 index c6f58eaa..00000000 Binary files a/resources/library/applications/GraphMe.wgt/__MACOSX/GraphMe.wgt/._version.html and /dev/null differ diff --git a/resources/library/applications/GraphMe.wgt/__MACOSX/GraphMe.wgt/._version.txt b/resources/library/applications/GraphMe.wgt/__MACOSX/GraphMe.wgt/._version.txt deleted file mode 100644 index c6f58eaa..00000000 Binary files a/resources/library/applications/GraphMe.wgt/__MACOSX/GraphMe.wgt/._version.txt and /dev/null differ diff --git a/resources/library/applications/GraphMe.wgt/__MACOSX/GraphMe.wgt/Images/._.directory b/resources/library/applications/GraphMe.wgt/__MACOSX/GraphMe.wgt/Images/._.directory deleted file mode 100644 index c6f58eaa..00000000 Binary files a/resources/library/applications/GraphMe.wgt/__MACOSX/GraphMe.wgt/Images/._.directory and /dev/null differ diff --git a/resources/library/applications/GraphMe.wgt/__MACOSX/GraphMe.wgt/Images/._GraphMe.png b/resources/library/applications/GraphMe.wgt/__MACOSX/GraphMe.wgt/Images/._GraphMe.png deleted file mode 100644 index c6f58eaa..00000000 Binary files a/resources/library/applications/GraphMe.wgt/__MACOSX/GraphMe.wgt/Images/._GraphMe.png and /dev/null differ diff --git a/resources/library/applications/GraphMe.wgt/__MACOSX/GraphMe.wgt/Images/._Guide_AjouterWidget.png b/resources/library/applications/GraphMe.wgt/__MACOSX/GraphMe.wgt/Images/._Guide_AjouterWidget.png deleted file mode 100644 index c6f58eaa..00000000 Binary files a/resources/library/applications/GraphMe.wgt/__MACOSX/GraphMe.wgt/Images/._Guide_AjouterWidget.png and /dev/null differ diff --git a/resources/library/applications/GraphMe.wgt/__MACOSX/GraphMe.wgt/Images/._Guide_Deplacement.png b/resources/library/applications/GraphMe.wgt/__MACOSX/GraphMe.wgt/Images/._Guide_Deplacement.png deleted file mode 100644 index c6f58eaa..00000000 Binary files a/resources/library/applications/GraphMe.wgt/__MACOSX/GraphMe.wgt/Images/._Guide_Deplacement.png and /dev/null differ diff --git a/resources/library/applications/GraphMe.wgt/__MACOSX/GraphMe.wgt/Images/._Guide_Navigateur.png b/resources/library/applications/GraphMe.wgt/__MACOSX/GraphMe.wgt/Images/._Guide_Navigateur.png deleted file mode 100644 index c6f58eaa..00000000 Binary files a/resources/library/applications/GraphMe.wgt/__MACOSX/GraphMe.wgt/Images/._Guide_Navigateur.png and /dev/null differ diff --git a/resources/library/applications/GraphMe.wgt/__MACOSX/GraphMe.wgt/Images/._Guide_Options.png b/resources/library/applications/GraphMe.wgt/__MACOSX/GraphMe.wgt/Images/._Guide_Options.png deleted file mode 100644 index c6f58eaa..00000000 Binary files a/resources/library/applications/GraphMe.wgt/__MACOSX/GraphMe.wgt/Images/._Guide_Options.png and /dev/null differ diff --git a/resources/library/applications/GraphMe.wgt/__MACOSX/GraphMe.wgt/Images/._Guide_Plus.png b/resources/library/applications/GraphMe.wgt/__MACOSX/GraphMe.wgt/Images/._Guide_Plus.png deleted file mode 100644 index c6f58eaa..00000000 Binary files a/resources/library/applications/GraphMe.wgt/__MACOSX/GraphMe.wgt/Images/._Guide_Plus.png and /dev/null differ diff --git a/resources/library/applications/GraphMe.wgt/__MACOSX/GraphMe.wgt/Images/._Guide_Presentation.png b/resources/library/applications/GraphMe.wgt/__MACOSX/GraphMe.wgt/Images/._Guide_Presentation.png deleted file mode 100644 index c6f58eaa..00000000 Binary files a/resources/library/applications/GraphMe.wgt/__MACOSX/GraphMe.wgt/Images/._Guide_Presentation.png and /dev/null differ diff --git a/resources/library/applications/GraphMe.wgt/__MACOSX/GraphMe.wgt/Images/._Guide_Uniboard.png b/resources/library/applications/GraphMe.wgt/__MACOSX/GraphMe.wgt/Images/._Guide_Uniboard.png deleted file mode 100644 index c6f58eaa..00000000 Binary files a/resources/library/applications/GraphMe.wgt/__MACOSX/GraphMe.wgt/Images/._Guide_Uniboard.png and /dev/null differ diff --git a/resources/library/applications/GraphMe.wgt/__MACOSX/GraphMe.wgt/Images/._black b/resources/library/applications/GraphMe.wgt/__MACOSX/GraphMe.wgt/Images/._black deleted file mode 100644 index 9737ab1e..00000000 Binary files a/resources/library/applications/GraphMe.wgt/__MACOSX/GraphMe.wgt/Images/._black and /dev/null differ diff --git a/resources/library/applications/GraphMe.wgt/__MACOSX/GraphMe.wgt/Images/._blue b/resources/library/applications/GraphMe.wgt/__MACOSX/GraphMe.wgt/Images/._blue deleted file mode 100644 index 9737ab1e..00000000 Binary files a/resources/library/applications/GraphMe.wgt/__MACOSX/GraphMe.wgt/Images/._blue and /dev/null differ diff --git a/resources/library/applications/GraphMe.wgt/__MACOSX/GraphMe.wgt/Images/._cursor.png b/resources/library/applications/GraphMe.wgt/__MACOSX/GraphMe.wgt/Images/._cursor.png deleted file mode 100644 index c6f58eaa..00000000 Binary files a/resources/library/applications/GraphMe.wgt/__MACOSX/GraphMe.wgt/Images/._cursor.png and /dev/null differ diff --git a/resources/library/applications/GraphMe.wgt/__MACOSX/GraphMe.wgt/Images/._darkblue b/resources/library/applications/GraphMe.wgt/__MACOSX/GraphMe.wgt/Images/._darkblue deleted file mode 100644 index 9737ab1e..00000000 Binary files a/resources/library/applications/GraphMe.wgt/__MACOSX/GraphMe.wgt/Images/._darkblue and /dev/null differ diff --git a/resources/library/applications/GraphMe.wgt/__MACOSX/GraphMe.wgt/Images/._gradient.png b/resources/library/applications/GraphMe.wgt/__MACOSX/GraphMe.wgt/Images/._gradient.png deleted file mode 100644 index c6f58eaa..00000000 Binary files a/resources/library/applications/GraphMe.wgt/__MACOSX/GraphMe.wgt/Images/._gradient.png and /dev/null differ diff --git a/resources/library/applications/GraphMe.wgt/__MACOSX/GraphMe.wgt/Images/._gradient1.png b/resources/library/applications/GraphMe.wgt/__MACOSX/GraphMe.wgt/Images/._gradient1.png deleted file mode 100644 index c6f58eaa..00000000 Binary files a/resources/library/applications/GraphMe.wgt/__MACOSX/GraphMe.wgt/Images/._gradient1.png and /dev/null differ diff --git a/resources/library/applications/GraphMe.wgt/__MACOSX/GraphMe.wgt/Images/._gradient2.png b/resources/library/applications/GraphMe.wgt/__MACOSX/GraphMe.wgt/Images/._gradient2.png deleted file mode 100644 index c6f58eaa..00000000 Binary files a/resources/library/applications/GraphMe.wgt/__MACOSX/GraphMe.wgt/Images/._gradient2.png and /dev/null differ diff --git a/resources/library/applications/GraphMe.wgt/__MACOSX/GraphMe.wgt/Images/._gradient3.png b/resources/library/applications/GraphMe.wgt/__MACOSX/GraphMe.wgt/Images/._gradient3.png deleted file mode 100644 index c6f58eaa..00000000 Binary files a/resources/library/applications/GraphMe.wgt/__MACOSX/GraphMe.wgt/Images/._gradient3.png and /dev/null differ diff --git a/resources/library/applications/GraphMe.wgt/__MACOSX/GraphMe.wgt/Images/._gradient4.png b/resources/library/applications/GraphMe.wgt/__MACOSX/GraphMe.wgt/Images/._gradient4.png deleted file mode 100644 index c6f58eaa..00000000 Binary files a/resources/library/applications/GraphMe.wgt/__MACOSX/GraphMe.wgt/Images/._gradient4.png and /dev/null differ diff --git a/resources/library/applications/GraphMe.wgt/__MACOSX/GraphMe.wgt/Images/._mini_icon.png b/resources/library/applications/GraphMe.wgt/__MACOSX/GraphMe.wgt/Images/._mini_icon.png deleted file mode 100644 index c6f58eaa..00000000 Binary files a/resources/library/applications/GraphMe.wgt/__MACOSX/GraphMe.wgt/Images/._mini_icon.png and /dev/null differ diff --git a/resources/library/applications/GraphMe.wgt/__MACOSX/GraphMe.wgt/Images/._move.png b/resources/library/applications/GraphMe.wgt/__MACOSX/GraphMe.wgt/Images/._move.png deleted file mode 100644 index c6f58eaa..00000000 Binary files a/resources/library/applications/GraphMe.wgt/__MACOSX/GraphMe.wgt/Images/._move.png and /dev/null differ diff --git a/resources/library/applications/GraphMe.wgt/__MACOSX/GraphMe.wgt/Images/._onglet1.png b/resources/library/applications/GraphMe.wgt/__MACOSX/GraphMe.wgt/Images/._onglet1.png deleted file mode 100644 index c6f58eaa..00000000 Binary files a/resources/library/applications/GraphMe.wgt/__MACOSX/GraphMe.wgt/Images/._onglet1.png and /dev/null differ diff --git a/resources/library/applications/GraphMe.wgt/__MACOSX/GraphMe.wgt/Images/._onglet2.png b/resources/library/applications/GraphMe.wgt/__MACOSX/GraphMe.wgt/Images/._onglet2.png deleted file mode 100644 index c6f58eaa..00000000 Binary files a/resources/library/applications/GraphMe.wgt/__MACOSX/GraphMe.wgt/Images/._onglet2.png and /dev/null differ diff --git a/resources/library/applications/GraphMe.wgt/__MACOSX/GraphMe.wgt/Images/._tangent.png b/resources/library/applications/GraphMe.wgt/__MACOSX/GraphMe.wgt/Images/._tangent.png deleted file mode 100644 index c6f58eaa..00000000 Binary files a/resources/library/applications/GraphMe.wgt/__MACOSX/GraphMe.wgt/Images/._tangent.png and /dev/null differ diff --git a/resources/library/applications/GraphMe.wgt/__MACOSX/GraphMe.wgt/Images/._white b/resources/library/applications/GraphMe.wgt/__MACOSX/GraphMe.wgt/Images/._white deleted file mode 100644 index 9737ab1e..00000000 Binary files a/resources/library/applications/GraphMe.wgt/__MACOSX/GraphMe.wgt/Images/._white and /dev/null differ diff --git a/resources/library/applications/GraphMe.wgt/__MACOSX/GraphMe.wgt/Images/black/._bottom-left.png b/resources/library/applications/GraphMe.wgt/__MACOSX/GraphMe.wgt/Images/black/._bottom-left.png deleted file mode 100644 index c6f58eaa..00000000 Binary files a/resources/library/applications/GraphMe.wgt/__MACOSX/GraphMe.wgt/Images/black/._bottom-left.png and /dev/null differ diff --git a/resources/library/applications/GraphMe.wgt/__MACOSX/GraphMe.wgt/Images/black/._bottom-right.png b/resources/library/applications/GraphMe.wgt/__MACOSX/GraphMe.wgt/Images/black/._bottom-right.png deleted file mode 100644 index c6f58eaa..00000000 Binary files a/resources/library/applications/GraphMe.wgt/__MACOSX/GraphMe.wgt/Images/black/._bottom-right.png and /dev/null differ diff --git a/resources/library/applications/GraphMe.wgt/__MACOSX/GraphMe.wgt/Images/black/._bottom.png b/resources/library/applications/GraphMe.wgt/__MACOSX/GraphMe.wgt/Images/black/._bottom.png deleted file mode 100644 index c6f58eaa..00000000 Binary files a/resources/library/applications/GraphMe.wgt/__MACOSX/GraphMe.wgt/Images/black/._bottom.png and /dev/null differ diff --git a/resources/library/applications/GraphMe.wgt/__MACOSX/GraphMe.wgt/Images/black/._center.png b/resources/library/applications/GraphMe.wgt/__MACOSX/GraphMe.wgt/Images/black/._center.png deleted file mode 100644 index c6f58eaa..00000000 Binary files a/resources/library/applications/GraphMe.wgt/__MACOSX/GraphMe.wgt/Images/black/._center.png and /dev/null differ diff --git a/resources/library/applications/GraphMe.wgt/__MACOSX/GraphMe.wgt/Images/black/._left.png b/resources/library/applications/GraphMe.wgt/__MACOSX/GraphMe.wgt/Images/black/._left.png deleted file mode 100644 index c6f58eaa..00000000 Binary files a/resources/library/applications/GraphMe.wgt/__MACOSX/GraphMe.wgt/Images/black/._left.png and /dev/null differ diff --git a/resources/library/applications/GraphMe.wgt/__MACOSX/GraphMe.wgt/Images/black/._right.png b/resources/library/applications/GraphMe.wgt/__MACOSX/GraphMe.wgt/Images/black/._right.png deleted file mode 100644 index c6f58eaa..00000000 Binary files a/resources/library/applications/GraphMe.wgt/__MACOSX/GraphMe.wgt/Images/black/._right.png and /dev/null differ diff --git a/resources/library/applications/GraphMe.wgt/__MACOSX/GraphMe.wgt/Images/black/._top-left.png b/resources/library/applications/GraphMe.wgt/__MACOSX/GraphMe.wgt/Images/black/._top-left.png deleted file mode 100644 index c6f58eaa..00000000 Binary files a/resources/library/applications/GraphMe.wgt/__MACOSX/GraphMe.wgt/Images/black/._top-left.png and /dev/null differ diff --git a/resources/library/applications/GraphMe.wgt/__MACOSX/GraphMe.wgt/Images/black/._top-right.png b/resources/library/applications/GraphMe.wgt/__MACOSX/GraphMe.wgt/Images/black/._top-right.png deleted file mode 100644 index c6f58eaa..00000000 Binary files a/resources/library/applications/GraphMe.wgt/__MACOSX/GraphMe.wgt/Images/black/._top-right.png and /dev/null differ diff --git a/resources/library/applications/GraphMe.wgt/__MACOSX/GraphMe.wgt/Images/black/._top.png b/resources/library/applications/GraphMe.wgt/__MACOSX/GraphMe.wgt/Images/black/._top.png deleted file mode 100644 index c6f58eaa..00000000 Binary files a/resources/library/applications/GraphMe.wgt/__MACOSX/GraphMe.wgt/Images/black/._top.png and /dev/null differ diff --git a/resources/library/applications/GraphMe.wgt/__MACOSX/GraphMe.wgt/Images/blue/._bottom-left.png b/resources/library/applications/GraphMe.wgt/__MACOSX/GraphMe.wgt/Images/blue/._bottom-left.png deleted file mode 100644 index c6f58eaa..00000000 Binary files a/resources/library/applications/GraphMe.wgt/__MACOSX/GraphMe.wgt/Images/blue/._bottom-left.png and /dev/null differ diff --git a/resources/library/applications/GraphMe.wgt/__MACOSX/GraphMe.wgt/Images/blue/._bottom-right.png b/resources/library/applications/GraphMe.wgt/__MACOSX/GraphMe.wgt/Images/blue/._bottom-right.png deleted file mode 100644 index c6f58eaa..00000000 Binary files a/resources/library/applications/GraphMe.wgt/__MACOSX/GraphMe.wgt/Images/blue/._bottom-right.png and /dev/null differ diff --git a/resources/library/applications/GraphMe.wgt/__MACOSX/GraphMe.wgt/Images/blue/._bottom.png b/resources/library/applications/GraphMe.wgt/__MACOSX/GraphMe.wgt/Images/blue/._bottom.png deleted file mode 100644 index c6f58eaa..00000000 Binary files a/resources/library/applications/GraphMe.wgt/__MACOSX/GraphMe.wgt/Images/blue/._bottom.png and /dev/null differ diff --git a/resources/library/applications/GraphMe.wgt/__MACOSX/GraphMe.wgt/Images/blue/._center.png b/resources/library/applications/GraphMe.wgt/__MACOSX/GraphMe.wgt/Images/blue/._center.png deleted file mode 100644 index c6f58eaa..00000000 Binary files a/resources/library/applications/GraphMe.wgt/__MACOSX/GraphMe.wgt/Images/blue/._center.png and /dev/null differ diff --git a/resources/library/applications/GraphMe.wgt/__MACOSX/GraphMe.wgt/Images/blue/._left.png b/resources/library/applications/GraphMe.wgt/__MACOSX/GraphMe.wgt/Images/blue/._left.png deleted file mode 100644 index c6f58eaa..00000000 Binary files a/resources/library/applications/GraphMe.wgt/__MACOSX/GraphMe.wgt/Images/blue/._left.png and /dev/null differ diff --git a/resources/library/applications/GraphMe.wgt/__MACOSX/GraphMe.wgt/Images/blue/._right.png b/resources/library/applications/GraphMe.wgt/__MACOSX/GraphMe.wgt/Images/blue/._right.png deleted file mode 100644 index c6f58eaa..00000000 Binary files a/resources/library/applications/GraphMe.wgt/__MACOSX/GraphMe.wgt/Images/blue/._right.png and /dev/null differ diff --git a/resources/library/applications/GraphMe.wgt/__MACOSX/GraphMe.wgt/Images/blue/._top-left.png b/resources/library/applications/GraphMe.wgt/__MACOSX/GraphMe.wgt/Images/blue/._top-left.png deleted file mode 100644 index c6f58eaa..00000000 Binary files a/resources/library/applications/GraphMe.wgt/__MACOSX/GraphMe.wgt/Images/blue/._top-left.png and /dev/null differ diff --git a/resources/library/applications/GraphMe.wgt/__MACOSX/GraphMe.wgt/Images/blue/._top-right.png b/resources/library/applications/GraphMe.wgt/__MACOSX/GraphMe.wgt/Images/blue/._top-right.png deleted file mode 100644 index c6f58eaa..00000000 Binary files a/resources/library/applications/GraphMe.wgt/__MACOSX/GraphMe.wgt/Images/blue/._top-right.png and /dev/null differ diff --git a/resources/library/applications/GraphMe.wgt/__MACOSX/GraphMe.wgt/Images/blue/._top.png b/resources/library/applications/GraphMe.wgt/__MACOSX/GraphMe.wgt/Images/blue/._top.png deleted file mode 100644 index c6f58eaa..00000000 Binary files a/resources/library/applications/GraphMe.wgt/__MACOSX/GraphMe.wgt/Images/blue/._top.png and /dev/null differ diff --git a/resources/library/applications/GraphMe.wgt/__MACOSX/GraphMe.wgt/Images/darkblue/._bottom-left.png b/resources/library/applications/GraphMe.wgt/__MACOSX/GraphMe.wgt/Images/darkblue/._bottom-left.png deleted file mode 100644 index c6f58eaa..00000000 Binary files a/resources/library/applications/GraphMe.wgt/__MACOSX/GraphMe.wgt/Images/darkblue/._bottom-left.png and /dev/null differ diff --git a/resources/library/applications/GraphMe.wgt/__MACOSX/GraphMe.wgt/Images/darkblue/._bottom-right.png b/resources/library/applications/GraphMe.wgt/__MACOSX/GraphMe.wgt/Images/darkblue/._bottom-right.png deleted file mode 100644 index c6f58eaa..00000000 Binary files a/resources/library/applications/GraphMe.wgt/__MACOSX/GraphMe.wgt/Images/darkblue/._bottom-right.png and /dev/null differ diff --git a/resources/library/applications/GraphMe.wgt/__MACOSX/GraphMe.wgt/Images/darkblue/._bottom.png b/resources/library/applications/GraphMe.wgt/__MACOSX/GraphMe.wgt/Images/darkblue/._bottom.png deleted file mode 100644 index c6f58eaa..00000000 Binary files a/resources/library/applications/GraphMe.wgt/__MACOSX/GraphMe.wgt/Images/darkblue/._bottom.png and /dev/null differ diff --git a/resources/library/applications/GraphMe.wgt/__MACOSX/GraphMe.wgt/Images/darkblue/._center.png b/resources/library/applications/GraphMe.wgt/__MACOSX/GraphMe.wgt/Images/darkblue/._center.png deleted file mode 100644 index c6f58eaa..00000000 Binary files a/resources/library/applications/GraphMe.wgt/__MACOSX/GraphMe.wgt/Images/darkblue/._center.png and /dev/null differ diff --git a/resources/library/applications/GraphMe.wgt/__MACOSX/GraphMe.wgt/Images/darkblue/._left.png b/resources/library/applications/GraphMe.wgt/__MACOSX/GraphMe.wgt/Images/darkblue/._left.png deleted file mode 100644 index c6f58eaa..00000000 Binary files a/resources/library/applications/GraphMe.wgt/__MACOSX/GraphMe.wgt/Images/darkblue/._left.png and /dev/null differ diff --git a/resources/library/applications/GraphMe.wgt/__MACOSX/GraphMe.wgt/Images/darkblue/._right.png b/resources/library/applications/GraphMe.wgt/__MACOSX/GraphMe.wgt/Images/darkblue/._right.png deleted file mode 100644 index c6f58eaa..00000000 Binary files a/resources/library/applications/GraphMe.wgt/__MACOSX/GraphMe.wgt/Images/darkblue/._right.png and /dev/null differ diff --git a/resources/library/applications/GraphMe.wgt/__MACOSX/GraphMe.wgt/Images/darkblue/._top-left.png b/resources/library/applications/GraphMe.wgt/__MACOSX/GraphMe.wgt/Images/darkblue/._top-left.png deleted file mode 100644 index c6f58eaa..00000000 Binary files a/resources/library/applications/GraphMe.wgt/__MACOSX/GraphMe.wgt/Images/darkblue/._top-left.png and /dev/null differ diff --git a/resources/library/applications/GraphMe.wgt/__MACOSX/GraphMe.wgt/Images/darkblue/._top-right.png b/resources/library/applications/GraphMe.wgt/__MACOSX/GraphMe.wgt/Images/darkblue/._top-right.png deleted file mode 100644 index c6f58eaa..00000000 Binary files a/resources/library/applications/GraphMe.wgt/__MACOSX/GraphMe.wgt/Images/darkblue/._top-right.png and /dev/null differ diff --git a/resources/library/applications/GraphMe.wgt/__MACOSX/GraphMe.wgt/Images/darkblue/._top.png b/resources/library/applications/GraphMe.wgt/__MACOSX/GraphMe.wgt/Images/darkblue/._top.png deleted file mode 100644 index c6f58eaa..00000000 Binary files a/resources/library/applications/GraphMe.wgt/__MACOSX/GraphMe.wgt/Images/darkblue/._top.png and /dev/null differ diff --git a/resources/library/applications/GraphMe.wgt/__MACOSX/GraphMe.wgt/Images/white/._bottom-left.png b/resources/library/applications/GraphMe.wgt/__MACOSX/GraphMe.wgt/Images/white/._bottom-left.png deleted file mode 100644 index c6f58eaa..00000000 Binary files a/resources/library/applications/GraphMe.wgt/__MACOSX/GraphMe.wgt/Images/white/._bottom-left.png and /dev/null differ diff --git a/resources/library/applications/GraphMe.wgt/__MACOSX/GraphMe.wgt/Images/white/._bottom-right.png b/resources/library/applications/GraphMe.wgt/__MACOSX/GraphMe.wgt/Images/white/._bottom-right.png deleted file mode 100644 index c6f58eaa..00000000 Binary files a/resources/library/applications/GraphMe.wgt/__MACOSX/GraphMe.wgt/Images/white/._bottom-right.png and /dev/null differ diff --git a/resources/library/applications/GraphMe.wgt/__MACOSX/GraphMe.wgt/Images/white/._bottom.png b/resources/library/applications/GraphMe.wgt/__MACOSX/GraphMe.wgt/Images/white/._bottom.png deleted file mode 100644 index c6f58eaa..00000000 Binary files a/resources/library/applications/GraphMe.wgt/__MACOSX/GraphMe.wgt/Images/white/._bottom.png and /dev/null differ diff --git a/resources/library/applications/GraphMe.wgt/__MACOSX/GraphMe.wgt/Images/white/._center.png b/resources/library/applications/GraphMe.wgt/__MACOSX/GraphMe.wgt/Images/white/._center.png deleted file mode 100644 index c6f58eaa..00000000 Binary files a/resources/library/applications/GraphMe.wgt/__MACOSX/GraphMe.wgt/Images/white/._center.png and /dev/null differ diff --git a/resources/library/applications/GraphMe.wgt/__MACOSX/GraphMe.wgt/Images/white/._left.png b/resources/library/applications/GraphMe.wgt/__MACOSX/GraphMe.wgt/Images/white/._left.png deleted file mode 100644 index c6f58eaa..00000000 Binary files a/resources/library/applications/GraphMe.wgt/__MACOSX/GraphMe.wgt/Images/white/._left.png and /dev/null differ diff --git a/resources/library/applications/GraphMe.wgt/__MACOSX/GraphMe.wgt/Images/white/._right.png b/resources/library/applications/GraphMe.wgt/__MACOSX/GraphMe.wgt/Images/white/._right.png deleted file mode 100644 index c6f58eaa..00000000 Binary files a/resources/library/applications/GraphMe.wgt/__MACOSX/GraphMe.wgt/Images/white/._right.png and /dev/null differ diff --git a/resources/library/applications/GraphMe.wgt/__MACOSX/GraphMe.wgt/Images/white/._top-left.png b/resources/library/applications/GraphMe.wgt/__MACOSX/GraphMe.wgt/Images/white/._top-left.png deleted file mode 100644 index c6f58eaa..00000000 Binary files a/resources/library/applications/GraphMe.wgt/__MACOSX/GraphMe.wgt/Images/white/._top-left.png and /dev/null differ diff --git a/resources/library/applications/GraphMe.wgt/__MACOSX/GraphMe.wgt/Images/white/._top-right.png b/resources/library/applications/GraphMe.wgt/__MACOSX/GraphMe.wgt/Images/white/._top-right.png deleted file mode 100644 index c6f58eaa..00000000 Binary files a/resources/library/applications/GraphMe.wgt/__MACOSX/GraphMe.wgt/Images/white/._top-right.png and /dev/null differ diff --git a/resources/library/applications/GraphMe.wgt/__MACOSX/GraphMe.wgt/Images/white/._top.png b/resources/library/applications/GraphMe.wgt/__MACOSX/GraphMe.wgt/Images/white/._top.png deleted file mode 100644 index c6f58eaa..00000000 Binary files a/resources/library/applications/GraphMe.wgt/__MACOSX/GraphMe.wgt/Images/white/._top.png and /dev/null differ diff --git a/resources/library/applications/GraphMe.wgt/__MACOSX/GraphMe.wgt/JavaScript/._.directory b/resources/library/applications/GraphMe.wgt/__MACOSX/GraphMe.wgt/JavaScript/._.directory deleted file mode 100644 index c6f58eaa..00000000 Binary files a/resources/library/applications/GraphMe.wgt/__MACOSX/GraphMe.wgt/JavaScript/._.directory and /dev/null differ diff --git a/resources/library/applications/GraphMe.wgt/__MACOSX/GraphMe.wgt/JavaScript/._Affichage.js b/resources/library/applications/GraphMe.wgt/__MACOSX/GraphMe.wgt/JavaScript/._Affichage.js deleted file mode 100644 index c6f58eaa..00000000 Binary files a/resources/library/applications/GraphMe.wgt/__MACOSX/GraphMe.wgt/JavaScript/._Affichage.js and /dev/null differ diff --git a/resources/library/applications/GraphMe.wgt/__MACOSX/GraphMe.wgt/JavaScript/._Affichage3D.js b/resources/library/applications/GraphMe.wgt/__MACOSX/GraphMe.wgt/JavaScript/._Affichage3D.js deleted file mode 100644 index c6f58eaa..00000000 Binary files a/resources/library/applications/GraphMe.wgt/__MACOSX/GraphMe.wgt/JavaScript/._Affichage3D.js and /dev/null differ diff --git a/resources/library/applications/GraphMe.wgt/__MACOSX/GraphMe.wgt/JavaScript/._AffichageSVG.svg b/resources/library/applications/GraphMe.wgt/__MACOSX/GraphMe.wgt/JavaScript/._AffichageSVG.svg deleted file mode 100644 index c6f58eaa..00000000 Binary files a/resources/library/applications/GraphMe.wgt/__MACOSX/GraphMe.wgt/JavaScript/._AffichageSVG.svg and /dev/null differ diff --git a/resources/library/applications/GraphMe.wgt/__MACOSX/GraphMe.wgt/JavaScript/._AffichageUniboard.js b/resources/library/applications/GraphMe.wgt/__MACOSX/GraphMe.wgt/JavaScript/._AffichageUniboard.js deleted file mode 100644 index c6f58eaa..00000000 Binary files a/resources/library/applications/GraphMe.wgt/__MACOSX/GraphMe.wgt/JavaScript/._AffichageUniboard.js and /dev/null differ diff --git a/resources/library/applications/GraphMe.wgt/__MACOSX/GraphMe.wgt/JavaScript/._CartesianFunction.js b/resources/library/applications/GraphMe.wgt/__MACOSX/GraphMe.wgt/JavaScript/._CartesianFunction.js deleted file mode 100644 index c6f58eaa..00000000 Binary files a/resources/library/applications/GraphMe.wgt/__MACOSX/GraphMe.wgt/JavaScript/._CartesianFunction.js and /dev/null differ diff --git a/resources/library/applications/GraphMe.wgt/__MACOSX/GraphMe.wgt/JavaScript/._ColorPicker.js b/resources/library/applications/GraphMe.wgt/__MACOSX/GraphMe.wgt/JavaScript/._ColorPicker.js deleted file mode 100644 index c6f58eaa..00000000 Binary files a/resources/library/applications/GraphMe.wgt/__MACOSX/GraphMe.wgt/JavaScript/._ColorPicker.js and /dev/null differ diff --git a/resources/library/applications/GraphMe.wgt/__MACOSX/GraphMe.wgt/JavaScript/._Editeur.js b/resources/library/applications/GraphMe.wgt/__MACOSX/GraphMe.wgt/JavaScript/._Editeur.js deleted file mode 100644 index c6f58eaa..00000000 Binary files a/resources/library/applications/GraphMe.wgt/__MACOSX/GraphMe.wgt/JavaScript/._Editeur.js and /dev/null differ diff --git a/resources/library/applications/GraphMe.wgt/__MACOSX/GraphMe.wgt/JavaScript/._Etudes.js b/resources/library/applications/GraphMe.wgt/__MACOSX/GraphMe.wgt/JavaScript/._Etudes.js deleted file mode 100644 index c6f58eaa..00000000 Binary files a/resources/library/applications/GraphMe.wgt/__MACOSX/GraphMe.wgt/JavaScript/._Etudes.js and /dev/null differ diff --git a/resources/library/applications/GraphMe.wgt/__MACOSX/GraphMe.wgt/JavaScript/._Fonction.js b/resources/library/applications/GraphMe.wgt/__MACOSX/GraphMe.wgt/JavaScript/._Fonction.js deleted file mode 100644 index c6f58eaa..00000000 Binary files a/resources/library/applications/GraphMe.wgt/__MACOSX/GraphMe.wgt/JavaScript/._Fonction.js and /dev/null differ diff --git a/resources/library/applications/GraphMe.wgt/__MACOSX/GraphMe.wgt/JavaScript/._ImplicitFunction.js b/resources/library/applications/GraphMe.wgt/__MACOSX/GraphMe.wgt/JavaScript/._ImplicitFunction.js deleted file mode 100644 index c6f58eaa..00000000 Binary files a/resources/library/applications/GraphMe.wgt/__MACOSX/GraphMe.wgt/JavaScript/._ImplicitFunction.js and /dev/null differ diff --git a/resources/library/applications/GraphMe.wgt/__MACOSX/GraphMe.wgt/JavaScript/._Interface.js b/resources/library/applications/GraphMe.wgt/__MACOSX/GraphMe.wgt/JavaScript/._Interface.js deleted file mode 100644 index c6f58eaa..00000000 Binary files a/resources/library/applications/GraphMe.wgt/__MACOSX/GraphMe.wgt/JavaScript/._Interface.js and /dev/null differ diff --git a/resources/library/applications/GraphMe.wgt/__MACOSX/GraphMe.wgt/JavaScript/._Languages.js b/resources/library/applications/GraphMe.wgt/__MACOSX/GraphMe.wgt/JavaScript/._Languages.js deleted file mode 100644 index c6f58eaa..00000000 Binary files a/resources/library/applications/GraphMe.wgt/__MACOSX/GraphMe.wgt/JavaScript/._Languages.js and /dev/null differ diff --git a/resources/library/applications/GraphMe.wgt/__MACOSX/GraphMe.wgt/JavaScript/._Outils.js b/resources/library/applications/GraphMe.wgt/__MACOSX/GraphMe.wgt/JavaScript/._Outils.js deleted file mode 100644 index c6f58eaa..00000000 Binary files a/resources/library/applications/GraphMe.wgt/__MACOSX/GraphMe.wgt/JavaScript/._Outils.js and /dev/null differ diff --git a/resources/library/applications/GraphMe.wgt/__MACOSX/GraphMe.wgt/JavaScript/._ParametricFunction.js b/resources/library/applications/GraphMe.wgt/__MACOSX/GraphMe.wgt/JavaScript/._ParametricFunction.js deleted file mode 100644 index c6f58eaa..00000000 Binary files a/resources/library/applications/GraphMe.wgt/__MACOSX/GraphMe.wgt/JavaScript/._ParametricFunction.js and /dev/null differ diff --git a/resources/library/applications/GraphMe.wgt/__MACOSX/GraphMe.wgt/JavaScript/._PolarFunction.js b/resources/library/applications/GraphMe.wgt/__MACOSX/GraphMe.wgt/JavaScript/._PolarFunction.js deleted file mode 100644 index c6f58eaa..00000000 Binary files a/resources/library/applications/GraphMe.wgt/__MACOSX/GraphMe.wgt/JavaScript/._PolarFunction.js and /dev/null differ diff --git a/resources/library/applications/GraphMe.wgt/__MACOSX/GraphMe.wgt/JavaScript/._Sauvegardes.js b/resources/library/applications/GraphMe.wgt/__MACOSX/GraphMe.wgt/JavaScript/._Sauvegardes.js deleted file mode 100644 index c6f58eaa..00000000 Binary files a/resources/library/applications/GraphMe.wgt/__MACOSX/GraphMe.wgt/JavaScript/._Sauvegardes.js and /dev/null differ diff --git a/resources/library/applications/GraphMe.wgt/__MACOSX/GraphMe.wgt/JavaScript/._Souris.js b/resources/library/applications/GraphMe.wgt/__MACOSX/GraphMe.wgt/JavaScript/._Souris.js deleted file mode 100644 index c6f58eaa..00000000 Binary files a/resources/library/applications/GraphMe.wgt/__MACOSX/GraphMe.wgt/JavaScript/._Souris.js and /dev/null differ diff --git a/resources/library/applications/GraphMe.wgt/__MACOSX/GraphMe.wgt/JavaScript/._Utils.js b/resources/library/applications/GraphMe.wgt/__MACOSX/GraphMe.wgt/JavaScript/._Utils.js deleted file mode 100644 index c6f58eaa..00000000 Binary files a/resources/library/applications/GraphMe.wgt/__MACOSX/GraphMe.wgt/JavaScript/._Utils.js and /dev/null differ diff --git a/resources/library/applications/GraphMe.wgt/__MACOSX/GraphMe.wgt/JavaScript/._Widget.js b/resources/library/applications/GraphMe.wgt/__MACOSX/GraphMe.wgt/JavaScript/._Widget.js deleted file mode 100644 index c6f58eaa..00000000 Binary files a/resources/library/applications/GraphMe.wgt/__MACOSX/GraphMe.wgt/JavaScript/._Widget.js and /dev/null differ diff --git a/resources/library/applications/GraphMe.wgt/__MACOSX/GraphMe.wgt/Style/._ColorPicker.css b/resources/library/applications/GraphMe.wgt/__MACOSX/GraphMe.wgt/Style/._ColorPicker.css deleted file mode 100644 index c6f58eaa..00000000 Binary files a/resources/library/applications/GraphMe.wgt/__MACOSX/GraphMe.wgt/Style/._ColorPicker.css and /dev/null differ diff --git a/resources/library/applications/GraphMe.wgt/__MACOSX/GraphMe.wgt/Style/._Guide_Utilisateur.css b/resources/library/applications/GraphMe.wgt/__MACOSX/GraphMe.wgt/Style/._Guide_Utilisateur.css deleted file mode 100644 index c6f58eaa..00000000 Binary files a/resources/library/applications/GraphMe.wgt/__MACOSX/GraphMe.wgt/Style/._Guide_Utilisateur.css and /dev/null differ diff --git a/resources/library/applications/GraphMe.wgt/__MACOSX/GraphMe.wgt/Style/._Haut.css b/resources/library/applications/GraphMe.wgt/__MACOSX/GraphMe.wgt/Style/._Haut.css deleted file mode 100644 index c6f58eaa..00000000 Binary files a/resources/library/applications/GraphMe.wgt/__MACOSX/GraphMe.wgt/Style/._Haut.css and /dev/null differ diff --git a/resources/library/applications/GraphMe.wgt/__MACOSX/GraphMe.wgt/Style/._Menus.css b/resources/library/applications/GraphMe.wgt/__MACOSX/GraphMe.wgt/Style/._Menus.css deleted file mode 100644 index c6f58eaa..00000000 Binary files a/resources/library/applications/GraphMe.wgt/__MACOSX/GraphMe.wgt/Style/._Menus.css and /dev/null differ diff --git a/resources/library/applications/GraphMe.wgt/__MACOSX/GraphMe.wgt/Style/._Widget.css b/resources/library/applications/GraphMe.wgt/__MACOSX/GraphMe.wgt/Style/._Widget.css deleted file mode 100644 index c6f58eaa..00000000 Binary files a/resources/library/applications/GraphMe.wgt/__MACOSX/GraphMe.wgt/Style/._Widget.css and /dev/null differ diff --git a/resources/library/applications/GraphMe.wgt/config.xml b/resources/library/applications/GraphMe.wgt/config.xml old mode 100644 new mode 100755 index 00a066d3..dcac2d1a --- a/resources/library/applications/GraphMe.wgt/config.xml +++ b/resources/library/applications/GraphMe.wgt/config.xml @@ -1,10 +1,10 @@ - Traceur de fonctions mathématiques - + identifier="http://getuniboard.com/" + version="1.6.0" + width="800" + height="600" + ub:resizable="true"> + Mathematical function plotter + diff --git a/resources/library/applications/GraphMe.wgt/version.html b/resources/library/applications/GraphMe.wgt/version.html index 97104ccc..1f113fd2 100644 --- a/resources/library/applications/GraphMe.wgt/version.html +++ b/resources/library/applications/GraphMe.wgt/version.html @@ -1,10 +1,11 @@ + GraphMe - Version - 1.3.1 (2010/09/25) + 2.1.0 (2018-06-04) - \ No newline at end of file + diff --git a/resources/library/applications/GraphMe.wgt/GraphMe.wgt/version.txt b/resources/library/applications/GraphMe.wgt/version.txt similarity index 100% rename from resources/library/applications/GraphMe.wgt/GraphMe.wgt/version.txt rename to resources/library/applications/GraphMe.wgt/version.txt