diff --git a/resources/library/interactivities/Sélectionner.wgt/config.xml b/resources/library/interactivities/Sélectionner.wgt/config.xml similarity index 100% rename from resources/library/interactivities/Sélectionner.wgt/config.xml rename to resources/library/interactivities/Sélectionner.wgt/config.xml diff --git a/resources/library/interactivities/Sélectionner.wgt/css/basic.css b/resources/library/interactivities/Sélectionner.wgt/css/basic.css similarity index 100% rename from resources/library/interactivities/Sélectionner.wgt/css/basic.css rename to resources/library/interactivities/Sélectionner.wgt/css/basic.css diff --git a/resources/library/interactivities/Sélectionner.wgt/css/fonts/Lobster/Lobster_1.3-webfont.eot b/resources/library/interactivities/Sélectionner.wgt/css/fonts/Lobster/Lobster_1.3-webfont.eot similarity index 100% rename from resources/library/interactivities/Sélectionner.wgt/css/fonts/Lobster/Lobster_1.3-webfont.eot rename to resources/library/interactivities/Sélectionner.wgt/css/fonts/Lobster/Lobster_1.3-webfont.eot diff --git a/resources/library/interactivities/Sélectionner.wgt/css/fonts/Lobster/Lobster_1.3-webfont.svg b/resources/library/interactivities/Sélectionner.wgt/css/fonts/Lobster/Lobster_1.3-webfont.svg similarity index 100% rename from resources/library/interactivities/Sélectionner.wgt/css/fonts/Lobster/Lobster_1.3-webfont.svg rename to resources/library/interactivities/Sélectionner.wgt/css/fonts/Lobster/Lobster_1.3-webfont.svg diff --git a/resources/library/interactivities/Sélectionner.wgt/css/fonts/Lobster/Lobster_1.3-webfont.ttf b/resources/library/interactivities/Sélectionner.wgt/css/fonts/Lobster/Lobster_1.3-webfont.ttf similarity index 100% rename from resources/library/interactivities/Sélectionner.wgt/css/fonts/Lobster/Lobster_1.3-webfont.ttf rename to resources/library/interactivities/Sélectionner.wgt/css/fonts/Lobster/Lobster_1.3-webfont.ttf diff --git a/resources/library/interactivities/Sélectionner.wgt/css/fonts/Lobster/Lobster_1.3-webfont.woff b/resources/library/interactivities/Sélectionner.wgt/css/fonts/Lobster/Lobster_1.3-webfont.woff similarity index 100% rename from resources/library/interactivities/Sélectionner.wgt/css/fonts/Lobster/Lobster_1.3-webfont.woff rename to resources/library/interactivities/Sélectionner.wgt/css/fonts/Lobster/Lobster_1.3-webfont.woff diff --git a/resources/library/interactivities/Sélectionner.wgt/css/fonts/Lobster/SIL Open Font License 1.1.txt b/resources/library/interactivities/Sélectionner.wgt/css/fonts/Lobster/SIL Open Font License 1.1.txt similarity index 100% rename from resources/library/interactivities/Sélectionner.wgt/css/fonts/Lobster/SIL Open Font License 1.1.txt rename to resources/library/interactivities/Sélectionner.wgt/css/fonts/Lobster/SIL Open Font License 1.1.txt diff --git a/resources/library/interactivities/Sélectionner.wgt/css/fonts/Lobster/demo.html b/resources/library/interactivities/Sélectionner.wgt/css/fonts/Lobster/demo.html similarity index 100% rename from resources/library/interactivities/Sélectionner.wgt/css/fonts/Lobster/demo.html rename to resources/library/interactivities/Sélectionner.wgt/css/fonts/Lobster/demo.html diff --git a/resources/library/interactivities/Sélectionner.wgt/css/fonts/Lobster/stylesheet.css b/resources/library/interactivities/Sélectionner.wgt/css/fonts/Lobster/stylesheet.css similarity index 100% rename from resources/library/interactivities/Sélectionner.wgt/css/fonts/Lobster/stylesheet.css rename to resources/library/interactivities/Sélectionner.wgt/css/fonts/Lobster/stylesheet.css diff --git a/resources/library/interactivities/Sélectionner.wgt/css/fonts/SF-Toontime/SF_Toontime-webfont.eot b/resources/library/interactivities/Sélectionner.wgt/css/fonts/SF-Toontime/SF_Toontime-webfont.eot similarity index 100% rename from resources/library/interactivities/Sélectionner.wgt/css/fonts/SF-Toontime/SF_Toontime-webfont.eot rename to resources/library/interactivities/Sélectionner.wgt/css/fonts/SF-Toontime/SF_Toontime-webfont.eot diff --git a/resources/library/interactivities/Sélectionner.wgt/css/fonts/SF-Toontime/SF_Toontime-webfont.svg b/resources/library/interactivities/Sélectionner.wgt/css/fonts/SF-Toontime/SF_Toontime-webfont.svg similarity index 100% rename from resources/library/interactivities/Sélectionner.wgt/css/fonts/SF-Toontime/SF_Toontime-webfont.svg rename to resources/library/interactivities/Sélectionner.wgt/css/fonts/SF-Toontime/SF_Toontime-webfont.svg diff --git a/resources/library/interactivities/Sélectionner.wgt/css/fonts/SF-Toontime/SF_Toontime-webfont.ttf b/resources/library/interactivities/Sélectionner.wgt/css/fonts/SF-Toontime/SF_Toontime-webfont.ttf similarity index 100% rename from resources/library/interactivities/Sélectionner.wgt/css/fonts/SF-Toontime/SF_Toontime-webfont.ttf rename to resources/library/interactivities/Sélectionner.wgt/css/fonts/SF-Toontime/SF_Toontime-webfont.ttf diff --git a/resources/library/interactivities/Sélectionner.wgt/css/fonts/SF-Toontime/SF_Toontime-webfont.woff b/resources/library/interactivities/Sélectionner.wgt/css/fonts/SF-Toontime/SF_Toontime-webfont.woff similarity index 100% rename from resources/library/interactivities/Sélectionner.wgt/css/fonts/SF-Toontime/SF_Toontime-webfont.woff rename to resources/library/interactivities/Sélectionner.wgt/css/fonts/SF-Toontime/SF_Toontime-webfont.woff diff --git a/resources/library/interactivities/Sélectionner.wgt/css/fonts/SF-Toontime/SF_Toontime_Blotch-webfont.eot b/resources/library/interactivities/Sélectionner.wgt/css/fonts/SF-Toontime/SF_Toontime_Blotch-webfont.eot similarity index 100% rename from resources/library/interactivities/Sélectionner.wgt/css/fonts/SF-Toontime/SF_Toontime_Blotch-webfont.eot rename to resources/library/interactivities/Sélectionner.wgt/css/fonts/SF-Toontime/SF_Toontime_Blotch-webfont.eot diff --git a/resources/library/interactivities/Sélectionner.wgt/css/fonts/SF-Toontime/SF_Toontime_Blotch-webfont.svg b/resources/library/interactivities/Sélectionner.wgt/css/fonts/SF-Toontime/SF_Toontime_Blotch-webfont.svg similarity index 100% rename from resources/library/interactivities/Sélectionner.wgt/css/fonts/SF-Toontime/SF_Toontime_Blotch-webfont.svg rename to resources/library/interactivities/Sélectionner.wgt/css/fonts/SF-Toontime/SF_Toontime_Blotch-webfont.svg diff --git a/resources/library/interactivities/Sélectionner.wgt/css/fonts/SF-Toontime/SF_Toontime_Blotch-webfont.ttf b/resources/library/interactivities/Sélectionner.wgt/css/fonts/SF-Toontime/SF_Toontime_Blotch-webfont.ttf similarity index 100% rename from resources/library/interactivities/Sélectionner.wgt/css/fonts/SF-Toontime/SF_Toontime_Blotch-webfont.ttf rename to resources/library/interactivities/Sélectionner.wgt/css/fonts/SF-Toontime/SF_Toontime_Blotch-webfont.ttf diff --git a/resources/library/interactivities/Sélectionner.wgt/css/fonts/SF-Toontime/SF_Toontime_Blotch-webfont.woff b/resources/library/interactivities/Sélectionner.wgt/css/fonts/SF-Toontime/SF_Toontime_Blotch-webfont.woff similarity index 100% rename from resources/library/interactivities/Sélectionner.wgt/css/fonts/SF-Toontime/SF_Toontime_Blotch-webfont.woff rename to resources/library/interactivities/Sélectionner.wgt/css/fonts/SF-Toontime/SF_Toontime_Blotch-webfont.woff diff --git a/resources/library/interactivities/Sélectionner.wgt/css/fonts/SF-Toontime/SF_Toontime_Blotch_Italic-webfont.eot b/resources/library/interactivities/Sélectionner.wgt/css/fonts/SF-Toontime/SF_Toontime_Blotch_Italic-webfont.eot similarity index 100% rename from resources/library/interactivities/Sélectionner.wgt/css/fonts/SF-Toontime/SF_Toontime_Blotch_Italic-webfont.eot rename to resources/library/interactivities/Sélectionner.wgt/css/fonts/SF-Toontime/SF_Toontime_Blotch_Italic-webfont.eot diff --git a/resources/library/interactivities/Sélectionner.wgt/css/fonts/SF-Toontime/SF_Toontime_Blotch_Italic-webfont.svg b/resources/library/interactivities/Sélectionner.wgt/css/fonts/SF-Toontime/SF_Toontime_Blotch_Italic-webfont.svg similarity index 100% rename from resources/library/interactivities/Sélectionner.wgt/css/fonts/SF-Toontime/SF_Toontime_Blotch_Italic-webfont.svg rename to resources/library/interactivities/Sélectionner.wgt/css/fonts/SF-Toontime/SF_Toontime_Blotch_Italic-webfont.svg diff --git a/resources/library/interactivities/Sélectionner.wgt/css/fonts/SF-Toontime/SF_Toontime_Blotch_Italic-webfont.ttf b/resources/library/interactivities/Sélectionner.wgt/css/fonts/SF-Toontime/SF_Toontime_Blotch_Italic-webfont.ttf similarity index 100% rename from resources/library/interactivities/Sélectionner.wgt/css/fonts/SF-Toontime/SF_Toontime_Blotch_Italic-webfont.ttf rename to resources/library/interactivities/Sélectionner.wgt/css/fonts/SF-Toontime/SF_Toontime_Blotch_Italic-webfont.ttf diff --git a/resources/library/interactivities/Sélectionner.wgt/css/fonts/SF-Toontime/SF_Toontime_Blotch_Italic-webfont.woff b/resources/library/interactivities/Sélectionner.wgt/css/fonts/SF-Toontime/SF_Toontime_Blotch_Italic-webfont.woff similarity index 100% rename from resources/library/interactivities/Sélectionner.wgt/css/fonts/SF-Toontime/SF_Toontime_Blotch_Italic-webfont.woff rename to resources/library/interactivities/Sélectionner.wgt/css/fonts/SF-Toontime/SF_Toontime_Blotch_Italic-webfont.woff diff --git a/resources/library/interactivities/Sélectionner.wgt/css/fonts/SF-Toontime/SF_Toontime_Bold-webfont.eot b/resources/library/interactivities/Sélectionner.wgt/css/fonts/SF-Toontime/SF_Toontime_Bold-webfont.eot similarity index 100% rename from resources/library/interactivities/Sélectionner.wgt/css/fonts/SF-Toontime/SF_Toontime_Bold-webfont.eot rename to resources/library/interactivities/Sélectionner.wgt/css/fonts/SF-Toontime/SF_Toontime_Bold-webfont.eot diff --git a/resources/library/interactivities/Sélectionner.wgt/css/fonts/SF-Toontime/SF_Toontime_Bold-webfont.svg b/resources/library/interactivities/Sélectionner.wgt/css/fonts/SF-Toontime/SF_Toontime_Bold-webfont.svg similarity index 100% rename from resources/library/interactivities/Sélectionner.wgt/css/fonts/SF-Toontime/SF_Toontime_Bold-webfont.svg rename to resources/library/interactivities/Sélectionner.wgt/css/fonts/SF-Toontime/SF_Toontime_Bold-webfont.svg diff --git a/resources/library/interactivities/Sélectionner.wgt/css/fonts/SF-Toontime/SF_Toontime_Bold-webfont.ttf b/resources/library/interactivities/Sélectionner.wgt/css/fonts/SF-Toontime/SF_Toontime_Bold-webfont.ttf similarity index 100% rename from resources/library/interactivities/Sélectionner.wgt/css/fonts/SF-Toontime/SF_Toontime_Bold-webfont.ttf rename to resources/library/interactivities/Sélectionner.wgt/css/fonts/SF-Toontime/SF_Toontime_Bold-webfont.ttf diff --git a/resources/library/interactivities/Sélectionner.wgt/css/fonts/SF-Toontime/SF_Toontime_Bold-webfont.woff b/resources/library/interactivities/Sélectionner.wgt/css/fonts/SF-Toontime/SF_Toontime_Bold-webfont.woff similarity index 100% rename from resources/library/interactivities/Sélectionner.wgt/css/fonts/SF-Toontime/SF_Toontime_Bold-webfont.woff rename to resources/library/interactivities/Sélectionner.wgt/css/fonts/SF-Toontime/SF_Toontime_Bold-webfont.woff diff --git a/resources/library/interactivities/Sélectionner.wgt/css/fonts/SF-Toontime/SF_Toontime_Bold_Italic-webfont.eot b/resources/library/interactivities/Sélectionner.wgt/css/fonts/SF-Toontime/SF_Toontime_Bold_Italic-webfont.eot similarity index 100% rename from resources/library/interactivities/Sélectionner.wgt/css/fonts/SF-Toontime/SF_Toontime_Bold_Italic-webfont.eot rename to resources/library/interactivities/Sélectionner.wgt/css/fonts/SF-Toontime/SF_Toontime_Bold_Italic-webfont.eot diff --git a/resources/library/interactivities/Sélectionner.wgt/css/fonts/SF-Toontime/SF_Toontime_Bold_Italic-webfont.svg b/resources/library/interactivities/Sélectionner.wgt/css/fonts/SF-Toontime/SF_Toontime_Bold_Italic-webfont.svg similarity index 100% rename from resources/library/interactivities/Sélectionner.wgt/css/fonts/SF-Toontime/SF_Toontime_Bold_Italic-webfont.svg rename to resources/library/interactivities/Sélectionner.wgt/css/fonts/SF-Toontime/SF_Toontime_Bold_Italic-webfont.svg diff --git a/resources/library/interactivities/Sélectionner.wgt/css/fonts/SF-Toontime/SF_Toontime_Bold_Italic-webfont.ttf b/resources/library/interactivities/Sélectionner.wgt/css/fonts/SF-Toontime/SF_Toontime_Bold_Italic-webfont.ttf similarity index 100% rename from resources/library/interactivities/Sélectionner.wgt/css/fonts/SF-Toontime/SF_Toontime_Bold_Italic-webfont.ttf rename to resources/library/interactivities/Sélectionner.wgt/css/fonts/SF-Toontime/SF_Toontime_Bold_Italic-webfont.ttf diff --git a/resources/library/interactivities/Sélectionner.wgt/css/fonts/SF-Toontime/SF_Toontime_Bold_Italic-webfont.woff b/resources/library/interactivities/Sélectionner.wgt/css/fonts/SF-Toontime/SF_Toontime_Bold_Italic-webfont.woff similarity index 100% rename from resources/library/interactivities/Sélectionner.wgt/css/fonts/SF-Toontime/SF_Toontime_Bold_Italic-webfont.woff rename to resources/library/interactivities/Sélectionner.wgt/css/fonts/SF-Toontime/SF_Toontime_Bold_Italic-webfont.woff diff --git a/resources/library/interactivities/Sélectionner.wgt/css/fonts/SF-Toontime/SF_Toontime_Italic-webfont.eot b/resources/library/interactivities/Sélectionner.wgt/css/fonts/SF-Toontime/SF_Toontime_Italic-webfont.eot similarity index 100% rename from resources/library/interactivities/Sélectionner.wgt/css/fonts/SF-Toontime/SF_Toontime_Italic-webfont.eot rename to resources/library/interactivities/Sélectionner.wgt/css/fonts/SF-Toontime/SF_Toontime_Italic-webfont.eot diff --git a/resources/library/interactivities/Sélectionner.wgt/css/fonts/SF-Toontime/SF_Toontime_Italic-webfont.svg b/resources/library/interactivities/Sélectionner.wgt/css/fonts/SF-Toontime/SF_Toontime_Italic-webfont.svg similarity index 100% rename from resources/library/interactivities/Sélectionner.wgt/css/fonts/SF-Toontime/SF_Toontime_Italic-webfont.svg rename to resources/library/interactivities/Sélectionner.wgt/css/fonts/SF-Toontime/SF_Toontime_Italic-webfont.svg diff --git a/resources/library/interactivities/Sélectionner.wgt/css/fonts/SF-Toontime/SF_Toontime_Italic-webfont.ttf b/resources/library/interactivities/Sélectionner.wgt/css/fonts/SF-Toontime/SF_Toontime_Italic-webfont.ttf similarity index 100% rename from resources/library/interactivities/Sélectionner.wgt/css/fonts/SF-Toontime/SF_Toontime_Italic-webfont.ttf rename to resources/library/interactivities/Sélectionner.wgt/css/fonts/SF-Toontime/SF_Toontime_Italic-webfont.ttf diff --git a/resources/library/interactivities/Sélectionner.wgt/css/fonts/SF-Toontime/SF_Toontime_Italic-webfont.woff b/resources/library/interactivities/Sélectionner.wgt/css/fonts/SF-Toontime/SF_Toontime_Italic-webfont.woff similarity index 100% rename from resources/library/interactivities/Sélectionner.wgt/css/fonts/SF-Toontime/SF_Toontime_Italic-webfont.woff rename to resources/library/interactivities/Sélectionner.wgt/css/fonts/SF-Toontime/SF_Toontime_Italic-webfont.woff diff --git a/resources/library/interactivities/Sélectionner.wgt/css/fonts/SF-Toontime/ShyFonts Font License.txt b/resources/library/interactivities/Sélectionner.wgt/css/fonts/SF-Toontime/ShyFonts Font License.txt similarity index 100% rename from resources/library/interactivities/Sélectionner.wgt/css/fonts/SF-Toontime/ShyFonts Font License.txt rename to resources/library/interactivities/Sélectionner.wgt/css/fonts/SF-Toontime/ShyFonts Font License.txt diff --git a/resources/library/interactivities/Sélectionner.wgt/css/fonts/SF-Toontime/demo.html b/resources/library/interactivities/Sélectionner.wgt/css/fonts/SF-Toontime/demo.html similarity index 100% rename from resources/library/interactivities/Sélectionner.wgt/css/fonts/SF-Toontime/demo.html rename to resources/library/interactivities/Sélectionner.wgt/css/fonts/SF-Toontime/demo.html diff --git a/resources/library/interactivities/Sélectionner.wgt/css/fonts/SF-Toontime/stylesheet.css b/resources/library/interactivities/Sélectionner.wgt/css/fonts/SF-Toontime/stylesheet.css similarity index 100% rename from resources/library/interactivities/Sélectionner.wgt/css/fonts/SF-Toontime/stylesheet.css rename to resources/library/interactivities/Sélectionner.wgt/css/fonts/SF-Toontime/stylesheet.css diff --git a/resources/library/interactivities/Sélectionner.wgt/img/add_block.png b/resources/library/interactivities/Sélectionner.wgt/img/add_block.png similarity index 100% rename from resources/library/interactivities/Sélectionner.wgt/img/add_block.png rename to resources/library/interactivities/Sélectionner.wgt/img/add_block.png diff --git a/resources/library/interactivities/Sélectionner.wgt/img/add_text.png b/resources/library/interactivities/Sélectionner.wgt/img/add_text.png similarity index 100% rename from resources/library/interactivities/Sélectionner.wgt/img/add_text.png rename to resources/library/interactivities/Sélectionner.wgt/img/add_text.png diff --git a/resources/library/interactivities/Sélectionner.wgt/img/ar_down.png b/resources/library/interactivities/Sélectionner.wgt/img/ar_down.png similarity index 100% rename from resources/library/interactivities/Sélectionner.wgt/img/ar_down.png rename to resources/library/interactivities/Sélectionner.wgt/img/ar_down.png diff --git a/resources/library/interactivities/Sélectionner.wgt/img/ar_down_white.png b/resources/library/interactivities/Sélectionner.wgt/img/ar_down_white.png similarity index 100% rename from resources/library/interactivities/Sélectionner.wgt/img/ar_down_white.png rename to resources/library/interactivities/Sélectionner.wgt/img/ar_down_white.png diff --git a/resources/library/interactivities/Sélectionner.wgt/img/bg.png b/resources/library/interactivities/Sélectionner.wgt/img/bg.png similarity index 100% rename from resources/library/interactivities/Sélectionner.wgt/img/bg.png rename to resources/library/interactivities/Sélectionner.wgt/img/bg.png diff --git a/resources/library/interactivities/Sélectionner.wgt/img/bottom.png b/resources/library/interactivities/Sélectionner.wgt/img/bottom.png similarity index 100% rename from resources/library/interactivities/Sélectionner.wgt/img/bottom.png rename to resources/library/interactivities/Sélectionner.wgt/img/bottom.png diff --git a/resources/library/interactivities/Sélectionner.wgt/img/bottom_left.png b/resources/library/interactivities/Sélectionner.wgt/img/bottom_left.png similarity index 100% rename from resources/library/interactivities/Sélectionner.wgt/img/bottom_left.png rename to resources/library/interactivities/Sélectionner.wgt/img/bottom_left.png diff --git a/resources/library/interactivities/Sélectionner.wgt/img/bottom_right.png b/resources/library/interactivities/Sélectionner.wgt/img/bottom_right.png similarity index 100% rename from resources/library/interactivities/Sélectionner.wgt/img/bottom_right.png rename to resources/library/interactivities/Sélectionner.wgt/img/bottom_right.png diff --git a/resources/library/interactivities/Sélectionner.wgt/img/circle.png b/resources/library/interactivities/Sélectionner.wgt/img/circle.png similarity index 100% rename from resources/library/interactivities/Sélectionner.wgt/img/circle.png rename to resources/library/interactivities/Sélectionner.wgt/img/circle.png diff --git a/resources/library/interactivities/Sélectionner.wgt/img/close_cont.png b/resources/library/interactivities/Sélectionner.wgt/img/close_cont.png similarity index 100% rename from resources/library/interactivities/Sélectionner.wgt/img/close_cont.png rename to resources/library/interactivities/Sélectionner.wgt/img/close_cont.png diff --git a/resources/library/interactivities/Sélectionner.wgt/img/close_img.png b/resources/library/interactivities/Sélectionner.wgt/img/close_img.png similarity index 100% rename from resources/library/interactivities/Sélectionner.wgt/img/close_img.png rename to resources/library/interactivities/Sélectionner.wgt/img/close_img.png diff --git a/resources/library/interactivities/Sélectionner.wgt/img/green_point.png b/resources/library/interactivities/Sélectionner.wgt/img/green_point.png similarity index 100% rename from resources/library/interactivities/Sélectionner.wgt/img/green_point.png rename to resources/library/interactivities/Sélectionner.wgt/img/green_point.png diff --git a/resources/library/interactivities/Sélectionner.wgt/img/left.png b/resources/library/interactivities/Sélectionner.wgt/img/left.png similarity index 100% rename from resources/library/interactivities/Sélectionner.wgt/img/left.png rename to resources/library/interactivities/Sélectionner.wgt/img/left.png diff --git a/resources/library/interactivities/Sélectionner.wgt/img/pad-bottom-left.png b/resources/library/interactivities/Sélectionner.wgt/img/pad-bottom-left.png similarity index 100% rename from resources/library/interactivities/Sélectionner.wgt/img/pad-bottom-left.png rename to resources/library/interactivities/Sélectionner.wgt/img/pad-bottom-left.png diff --git a/resources/library/interactivities/Sélectionner.wgt/img/pad-bottom-right.png b/resources/library/interactivities/Sélectionner.wgt/img/pad-bottom-right.png similarity index 100% rename from resources/library/interactivities/Sélectionner.wgt/img/pad-bottom-right.png rename to resources/library/interactivities/Sélectionner.wgt/img/pad-bottom-right.png diff --git a/resources/library/interactivities/Sélectionner.wgt/img/pad-bottom.png b/resources/library/interactivities/Sélectionner.wgt/img/pad-bottom.png similarity index 100% rename from resources/library/interactivities/Sélectionner.wgt/img/pad-bottom.png rename to resources/library/interactivities/Sélectionner.wgt/img/pad-bottom.png diff --git a/resources/library/interactivities/Sélectionner.wgt/img/pad-left.png b/resources/library/interactivities/Sélectionner.wgt/img/pad-left.png similarity index 100% rename from resources/library/interactivities/Sélectionner.wgt/img/pad-left.png rename to resources/library/interactivities/Sélectionner.wgt/img/pad-left.png diff --git a/resources/library/interactivities/Sélectionner.wgt/img/pad-right.png b/resources/library/interactivities/Sélectionner.wgt/img/pad-right.png similarity index 100% rename from resources/library/interactivities/Sélectionner.wgt/img/pad-right.png rename to resources/library/interactivities/Sélectionner.wgt/img/pad-right.png diff --git a/resources/library/interactivities/Sélectionner.wgt/img/pad-top-left.png b/resources/library/interactivities/Sélectionner.wgt/img/pad-top-left.png similarity index 100% rename from resources/library/interactivities/Sélectionner.wgt/img/pad-top-left.png rename to resources/library/interactivities/Sélectionner.wgt/img/pad-top-left.png diff --git a/resources/library/interactivities/Sélectionner.wgt/img/pad-top-right.png b/resources/library/interactivities/Sélectionner.wgt/img/pad-top-right.png similarity index 100% rename from resources/library/interactivities/Sélectionner.wgt/img/pad-top-right.png rename to resources/library/interactivities/Sélectionner.wgt/img/pad-top-right.png diff --git a/resources/library/interactivities/Sélectionner.wgt/img/pad-top.png b/resources/library/interactivities/Sélectionner.wgt/img/pad-top.png similarity index 100% rename from resources/library/interactivities/Sélectionner.wgt/img/pad-top.png rename to resources/library/interactivities/Sélectionner.wgt/img/pad-top.png diff --git a/resources/library/interactivities/Sélectionner.wgt/img/play.png b/resources/library/interactivities/Sélectionner.wgt/img/play.png similarity index 100% rename from resources/library/interactivities/Sélectionner.wgt/img/play.png rename to resources/library/interactivities/Sélectionner.wgt/img/play.png diff --git a/resources/library/interactivities/Sélectionner.wgt/img/red_point.png b/resources/library/interactivities/Sélectionner.wgt/img/red_point.png similarity index 100% rename from resources/library/interactivities/Sélectionner.wgt/img/red_point.png rename to resources/library/interactivities/Sélectionner.wgt/img/red_point.png diff --git a/resources/library/interactivities/Sélectionner.wgt/img/replay.png b/resources/library/interactivities/Sélectionner.wgt/img/replay.png similarity index 100% rename from resources/library/interactivities/Sélectionner.wgt/img/replay.png rename to resources/library/interactivities/Sélectionner.wgt/img/replay.png diff --git a/resources/library/interactivities/Sélectionner.wgt/img/right.png b/resources/library/interactivities/Sélectionner.wgt/img/right.png similarity index 100% rename from resources/library/interactivities/Sélectionner.wgt/img/right.png rename to resources/library/interactivities/Sélectionner.wgt/img/right.png diff --git a/resources/library/interactivities/Sélectionner.wgt/img/slate-display.png b/resources/library/interactivities/Sélectionner.wgt/img/slate-display.png similarity index 100% rename from resources/library/interactivities/Sélectionner.wgt/img/slate-display.png rename to resources/library/interactivities/Sélectionner.wgt/img/slate-display.png diff --git a/resources/library/interactivities/Sélectionner.wgt/img/slate-edit.png b/resources/library/interactivities/Sélectionner.wgt/img/slate-edit.png similarity index 100% rename from resources/library/interactivities/Sélectionner.wgt/img/slate-edit.png rename to resources/library/interactivities/Sélectionner.wgt/img/slate-edit.png diff --git a/resources/library/interactivities/Sélectionner.wgt/img/slate-toolbar-edit.png b/resources/library/interactivities/Sélectionner.wgt/img/slate-toolbar-edit.png similarity index 100% rename from resources/library/interactivities/Sélectionner.wgt/img/slate-toolbar-edit.png rename to resources/library/interactivities/Sélectionner.wgt/img/slate-toolbar-edit.png diff --git a/resources/library/interactivities/Sélectionner.wgt/img/slate-toolbar-reload-white.png b/resources/library/interactivities/Sélectionner.wgt/img/slate-toolbar-reload-white.png similarity index 100% rename from resources/library/interactivities/Sélectionner.wgt/img/slate-toolbar-reload-white.png rename to resources/library/interactivities/Sélectionner.wgt/img/slate-toolbar-reload-white.png diff --git a/resources/library/interactivities/Sélectionner.wgt/img/slate-toolbar-reload.png b/resources/library/interactivities/Sélectionner.wgt/img/slate-toolbar-reload.png similarity index 100% rename from resources/library/interactivities/Sélectionner.wgt/img/slate-toolbar-reload.png rename to resources/library/interactivities/Sélectionner.wgt/img/slate-toolbar-reload.png diff --git a/resources/library/interactivities/Sélectionner.wgt/img/stop.png b/resources/library/interactivities/Sélectionner.wgt/img/stop.png similarity index 100% rename from resources/library/interactivities/Sélectionner.wgt/img/stop.png rename to resources/library/interactivities/Sélectionner.wgt/img/stop.png diff --git a/resources/library/interactivities/Sélectionner.wgt/img/top.png b/resources/library/interactivities/Sélectionner.wgt/img/top.png similarity index 100% rename from resources/library/interactivities/Sélectionner.wgt/img/top.png rename to resources/library/interactivities/Sélectionner.wgt/img/top.png diff --git a/resources/library/interactivities/Sélectionner.wgt/img/top_left.png b/resources/library/interactivities/Sélectionner.wgt/img/top_left.png similarity index 100% rename from resources/library/interactivities/Sélectionner.wgt/img/top_left.png rename to resources/library/interactivities/Sélectionner.wgt/img/top_left.png diff --git a/resources/library/interactivities/Sélectionner.wgt/img/top_right.png b/resources/library/interactivities/Sélectionner.wgt/img/top_right.png similarity index 100% rename from resources/library/interactivities/Sélectionner.wgt/img/top_right.png rename to resources/library/interactivities/Sélectionner.wgt/img/top_right.png diff --git a/resources/library/interactivities/Sélectionner.wgt/index.html b/resources/library/interactivities/Sélectionner.wgt/index.html similarity index 100% rename from resources/library/interactivities/Sélectionner.wgt/index.html rename to resources/library/interactivities/Sélectionner.wgt/index.html diff --git a/resources/library/interactivities/Sélectionner.wgt/js/jquery-1.6.2.min.js b/resources/library/interactivities/Sélectionner.wgt/js/jquery-1.6.2.min.js similarity index 100% rename from resources/library/interactivities/Sélectionner.wgt/js/jquery-1.6.2.min.js rename to resources/library/interactivities/Sélectionner.wgt/js/jquery-1.6.2.min.js diff --git a/resources/library/interactivities/Sélectionner.wgt/js/jquery-ui-1.8.9.custom.min.js b/resources/library/interactivities/Sélectionner.wgt/js/jquery-ui-1.8.9.custom.min.js similarity index 100% rename from resources/library/interactivities/Sélectionner.wgt/js/jquery-ui-1.8.9.custom.min.js rename to resources/library/interactivities/Sélectionner.wgt/js/jquery-ui-1.8.9.custom.min.js diff --git a/resources/library/interactivities/Sélectionner.wgt/js/script.js b/resources/library/interactivities/Sélectionner.wgt/js/script.js similarity index 100% rename from resources/library/interactivities/Sélectionner.wgt/js/script.js rename to resources/library/interactivities/Sélectionner.wgt/js/script.js diff --git a/resources/library/interactivities/Sélectionner.wgt/locales/fr/index.html b/resources/library/interactivities/Sélectionner.wgt/locales/fr/index.html similarity index 100% rename from resources/library/interactivities/Sélectionner.wgt/locales/fr/index.html rename to resources/library/interactivities/Sélectionner.wgt/locales/fr/index.html diff --git a/resources/library/interactivities/Sélectionner.wgt/locales/fr/js/script.js b/resources/library/interactivities/Sélectionner.wgt/locales/fr/js/script.js similarity index 100% rename from resources/library/interactivities/Sélectionner.wgt/locales/fr/js/script.js rename to resources/library/interactivities/Sélectionner.wgt/locales/fr/js/script.js diff --git a/resources/library/interactivities/Sélectionner.wgt/locales/ru/index.html b/resources/library/interactivities/Sélectionner.wgt/locales/ru/index.html similarity index 100% rename from resources/library/interactivities/Sélectionner.wgt/locales/ru/index.html rename to resources/library/interactivities/Sélectionner.wgt/locales/ru/index.html diff --git a/resources/library/interactivities/Sélectionner.wgt/locales/ru/js/script.js b/resources/library/interactivities/Sélectionner.wgt/locales/ru/js/script.js similarity index 100% rename from resources/library/interactivities/Sélectionner.wgt/locales/ru/js/script.js rename to resources/library/interactivities/Sélectionner.wgt/locales/ru/js/script.js diff --git a/resources/library/interactivities/Sépare phrase.wgt/config.xml b/resources/library/interactivities/Sépare phrase.wgt/config.xml similarity index 100% rename from resources/library/interactivities/Sépare phrase.wgt/config.xml rename to resources/library/interactivities/Sépare phrase.wgt/config.xml diff --git a/resources/library/interactivities/Sépare phrase.wgt/icon.png b/resources/library/interactivities/Sépare phrase.wgt/icon.png similarity index 100% rename from resources/library/interactivities/Sépare phrase.wgt/icon.png rename to resources/library/interactivities/Sépare phrase.wgt/icon.png diff --git a/resources/library/interactivities/Sépare phrase.wgt/img/ar_down.png b/resources/library/interactivities/Sépare phrase.wgt/img/ar_down.png similarity index 100% rename from resources/library/interactivities/Sépare phrase.wgt/img/ar_down.png rename to resources/library/interactivities/Sépare phrase.wgt/img/ar_down.png diff --git a/resources/library/interactivities/Sépare phrase.wgt/img/ar_down_white.png b/resources/library/interactivities/Sépare phrase.wgt/img/ar_down_white.png similarity index 100% rename from resources/library/interactivities/Sépare phrase.wgt/img/ar_down_white.png rename to resources/library/interactivities/Sépare phrase.wgt/img/ar_down_white.png diff --git a/resources/library/interactivities/Sépare phrase.wgt/img/bg.png b/resources/library/interactivities/Sépare phrase.wgt/img/bg.png similarity index 100% rename from resources/library/interactivities/Sépare phrase.wgt/img/bg.png rename to resources/library/interactivities/Sépare phrase.wgt/img/bg.png diff --git a/resources/library/interactivities/Sépare phrase.wgt/img/bottom.png b/resources/library/interactivities/Sépare phrase.wgt/img/bottom.png similarity index 100% rename from resources/library/interactivities/Sépare phrase.wgt/img/bottom.png rename to resources/library/interactivities/Sépare phrase.wgt/img/bottom.png diff --git a/resources/library/interactivities/Sépare phrase.wgt/img/bottom_left.png b/resources/library/interactivities/Sépare phrase.wgt/img/bottom_left.png similarity index 100% rename from resources/library/interactivities/Sépare phrase.wgt/img/bottom_left.png rename to resources/library/interactivities/Sépare phrase.wgt/img/bottom_left.png diff --git a/resources/library/interactivities/Sépare phrase.wgt/img/bottom_right.png b/resources/library/interactivities/Sépare phrase.wgt/img/bottom_right.png similarity index 100% rename from resources/library/interactivities/Sépare phrase.wgt/img/bottom_right.png rename to resources/library/interactivities/Sépare phrase.wgt/img/bottom_right.png diff --git a/resources/library/interactivities/Sépare phrase.wgt/img/left.png b/resources/library/interactivities/Sépare phrase.wgt/img/left.png similarity index 100% rename from resources/library/interactivities/Sépare phrase.wgt/img/left.png rename to resources/library/interactivities/Sépare phrase.wgt/img/left.png diff --git a/resources/library/interactivities/Sépare phrase.wgt/img/pad-bottom-left.png b/resources/library/interactivities/Sépare phrase.wgt/img/pad-bottom-left.png similarity index 100% rename from resources/library/interactivities/Sépare phrase.wgt/img/pad-bottom-left.png rename to resources/library/interactivities/Sépare phrase.wgt/img/pad-bottom-left.png diff --git a/resources/library/interactivities/Sépare phrase.wgt/img/pad-bottom-right.png b/resources/library/interactivities/Sépare phrase.wgt/img/pad-bottom-right.png similarity index 100% rename from resources/library/interactivities/Sépare phrase.wgt/img/pad-bottom-right.png rename to resources/library/interactivities/Sépare phrase.wgt/img/pad-bottom-right.png diff --git a/resources/library/interactivities/Sépare phrase.wgt/img/pad-bottom.png b/resources/library/interactivities/Sépare phrase.wgt/img/pad-bottom.png similarity index 100% rename from resources/library/interactivities/Sépare phrase.wgt/img/pad-bottom.png rename to resources/library/interactivities/Sépare phrase.wgt/img/pad-bottom.png diff --git a/resources/library/interactivities/Sépare phrase.wgt/img/pad-left.png b/resources/library/interactivities/Sépare phrase.wgt/img/pad-left.png similarity index 100% rename from resources/library/interactivities/Sépare phrase.wgt/img/pad-left.png rename to resources/library/interactivities/Sépare phrase.wgt/img/pad-left.png diff --git a/resources/library/interactivities/Sépare phrase.wgt/img/pad-right.png b/resources/library/interactivities/Sépare phrase.wgt/img/pad-right.png similarity index 100% rename from resources/library/interactivities/Sépare phrase.wgt/img/pad-right.png rename to resources/library/interactivities/Sépare phrase.wgt/img/pad-right.png diff --git a/resources/library/interactivities/Sépare phrase.wgt/img/pad-top-left.png b/resources/library/interactivities/Sépare phrase.wgt/img/pad-top-left.png similarity index 100% rename from resources/library/interactivities/Sépare phrase.wgt/img/pad-top-left.png rename to resources/library/interactivities/Sépare phrase.wgt/img/pad-top-left.png diff --git a/resources/library/interactivities/Sépare phrase.wgt/img/pad-top-right.png b/resources/library/interactivities/Sépare phrase.wgt/img/pad-top-right.png similarity index 100% rename from resources/library/interactivities/Sépare phrase.wgt/img/pad-top-right.png rename to resources/library/interactivities/Sépare phrase.wgt/img/pad-top-right.png diff --git a/resources/library/interactivities/Sépare phrase.wgt/img/pad-top.png b/resources/library/interactivities/Sépare phrase.wgt/img/pad-top.png similarity index 100% rename from resources/library/interactivities/Sépare phrase.wgt/img/pad-top.png rename to resources/library/interactivities/Sépare phrase.wgt/img/pad-top.png diff --git a/resources/library/interactivities/Sépare phrase.wgt/img/right.png b/resources/library/interactivities/Sépare phrase.wgt/img/right.png similarity index 100% rename from resources/library/interactivities/Sépare phrase.wgt/img/right.png rename to resources/library/interactivities/Sépare phrase.wgt/img/right.png diff --git a/resources/library/interactivities/Sépare phrase.wgt/img/slate-display.png b/resources/library/interactivities/Sépare phrase.wgt/img/slate-display.png similarity index 100% rename from resources/library/interactivities/Sépare phrase.wgt/img/slate-display.png rename to resources/library/interactivities/Sépare phrase.wgt/img/slate-display.png diff --git a/resources/library/interactivities/Sépare phrase.wgt/img/slate-edit.png b/resources/library/interactivities/Sépare phrase.wgt/img/slate-edit.png similarity index 100% rename from resources/library/interactivities/Sépare phrase.wgt/img/slate-edit.png rename to resources/library/interactivities/Sépare phrase.wgt/img/slate-edit.png diff --git a/resources/library/interactivities/Sépare phrase.wgt/img/slate-toolbar-edit.png b/resources/library/interactivities/Sépare phrase.wgt/img/slate-toolbar-edit.png similarity index 100% rename from resources/library/interactivities/Sépare phrase.wgt/img/slate-toolbar-edit.png rename to resources/library/interactivities/Sépare phrase.wgt/img/slate-toolbar-edit.png diff --git a/resources/library/interactivities/Sépare phrase.wgt/img/slate-toolbar-reload-white.png b/resources/library/interactivities/Sépare phrase.wgt/img/slate-toolbar-reload-white.png similarity index 100% rename from resources/library/interactivities/Sépare phrase.wgt/img/slate-toolbar-reload-white.png rename to resources/library/interactivities/Sépare phrase.wgt/img/slate-toolbar-reload-white.png diff --git a/resources/library/interactivities/Sépare phrase.wgt/img/slate-toolbar-reload.png b/resources/library/interactivities/Sépare phrase.wgt/img/slate-toolbar-reload.png similarity index 100% rename from resources/library/interactivities/Sépare phrase.wgt/img/slate-toolbar-reload.png rename to resources/library/interactivities/Sépare phrase.wgt/img/slate-toolbar-reload.png diff --git a/resources/library/interactivities/Sépare phrase.wgt/img/top.png b/resources/library/interactivities/Sépare phrase.wgt/img/top.png similarity index 100% rename from resources/library/interactivities/Sépare phrase.wgt/img/top.png rename to resources/library/interactivities/Sépare phrase.wgt/img/top.png diff --git a/resources/library/interactivities/Sépare phrase.wgt/img/top_left.png b/resources/library/interactivities/Sépare phrase.wgt/img/top_left.png similarity index 100% rename from resources/library/interactivities/Sépare phrase.wgt/img/top_left.png rename to resources/library/interactivities/Sépare phrase.wgt/img/top_left.png diff --git a/resources/library/interactivities/Sépare phrase.wgt/img/top_right.png b/resources/library/interactivities/Sépare phrase.wgt/img/top_right.png similarity index 100% rename from resources/library/interactivities/Sépare phrase.wgt/img/top_right.png rename to resources/library/interactivities/Sépare phrase.wgt/img/top_right.png diff --git a/resources/library/interactivities/Sépare phrase.wgt/index.html b/resources/library/interactivities/Sépare phrase.wgt/index.html similarity index 100% rename from resources/library/interactivities/Sépare phrase.wgt/index.html rename to resources/library/interactivities/Sépare phrase.wgt/index.html diff --git a/resources/library/interactivities/Sépare phrase.wgt/locales/fr/index.html b/resources/library/interactivities/Sépare phrase.wgt/locales/fr/index.html similarity index 100% rename from resources/library/interactivities/Sépare phrase.wgt/locales/fr/index.html rename to resources/library/interactivities/Sépare phrase.wgt/locales/fr/index.html diff --git a/resources/library/interactivities/Sépare phrase.wgt/locales/fr/scripts/wcontainer.js b/resources/library/interactivities/Sépare phrase.wgt/locales/fr/scripts/wcontainer.js similarity index 100% rename from resources/library/interactivities/Sépare phrase.wgt/locales/fr/scripts/wcontainer.js rename to resources/library/interactivities/Sépare phrase.wgt/locales/fr/scripts/wcontainer.js diff --git a/resources/library/interactivities/Sépare phrase.wgt/locales/ru/index.html b/resources/library/interactivities/Sépare phrase.wgt/locales/ru/index.html similarity index 100% rename from resources/library/interactivities/Sépare phrase.wgt/locales/ru/index.html rename to resources/library/interactivities/Sépare phrase.wgt/locales/ru/index.html diff --git a/resources/library/interactivities/Sépare phrase.wgt/locales/ru/scripts/wcontainer.js b/resources/library/interactivities/Sépare phrase.wgt/locales/ru/scripts/wcontainer.js similarity index 100% rename from resources/library/interactivities/Sépare phrase.wgt/locales/ru/scripts/wcontainer.js rename to resources/library/interactivities/Sépare phrase.wgt/locales/ru/scripts/wcontainer.js diff --git a/resources/library/interactivities/Sépare phrase.wgt/scripts/app.js b/resources/library/interactivities/Sépare phrase.wgt/scripts/app.js similarity index 96% rename from resources/library/interactivities/Sépare phrase.wgt/scripts/app.js rename to resources/library/interactivities/Sépare phrase.wgt/scripts/app.js index 166f6106..35a8f2f7 100644 --- a/resources/library/interactivities/Sépare phrase.wgt/scripts/app.js +++ b/resources/library/interactivities/Sépare phrase.wgt/scripts/app.js @@ -1,254 +1,254 @@ - - - -function createElements( phrase ) -{ - var s = ''; - for( var i = 0; i < phrase.length; i++ ) - { - ch = phrase.charAt( i ); - if( ch == " " ){ - ch = " "; - } - - s += '
' + ch + '
' + - '
 
'; - } - return s; -} - -if (window.widget) { - window.widget.onleave = function(){ - sankore.setPreference("spl_phrase_style", $(".style_select").find("option:selected").val()); - if(w.editMode) - sankore.setPreference("ordSplPhrases", w.elements.container.find( "textarea" ).val()); - else - sankore.setPreference("ordSplPhrases", w.getData("phrase")); - } -} - -$(document).ready(function() -{ - if(sankore.preference("spl_phrase_style","")){ - changeStyle(sankore.preference("spl_phrase_style","")); - $(".style_select").val(sankore.preference("spl_phrase_style","")); - } else - changeStyle(1) - $("#wgt_display").text(sankoreLang.view); - $("#wgt_edit").text(sankoreLang.edit); - $("#wgt_display, #wgt_edit").click(function(event){ - if(this.id == "wgt_display"){ - if(!$(this).hasClass("selected")){ - $(this).addClass("selected"); - $("#wgt_edit").removeClass("selected"); - $(".style_select").css("display","none"); - $(this).css("display", "none"); - $("#wgt_edit").css("display", "block"); - modeView(); - } - } else { - if(!$(this).hasClass("selected")){ - $(this).addClass("selected"); - $("#wgt_display").removeClass("selected"); - $(".style_select").css("display","block"); - $(this).css("display", "none"); - $("#wgt_display").css("display", "block"); - modeEdit(); - } - } - }); - $("#wgt_name").text(sankoreLang.wgt_name); - $("#wgt_reload").text(sankoreLang.reload).click(function(){ - window.location.reload(); - }); - $(".style_select option[value='1']").text(sankoreLang.slate); - $(".style_select option[value='2']").text(sankoreLang.pad); - - $(".style_select").change(function (event){ - changeStyle($(this).find("option:selected").val()); - }) - - var w = new wcontainer( "#ub-widget" ); - var sentence = ""; - - if(window.sankore) - sentence = (sankore.preference("ordSplPhrases", ""))?sankore.preference("ordSplPhrases", ""):sankoreLang.example; - else - sentence = sankoreLang.example; - - - w.maxWidth = 600; - - w.setEditContent( '
' ); - w.setViewContent( '
.
' ); - w.setData( "dashWidth", w.elements.container.find( ".dash" ).outerWidth() ); - w.setViewContent( '
M
' ); - w.setData( "lineHeight", w.elements.container.find( ".dash" ).outerHeight() ); - w.setViewContent( "" ); - - - // onViewMode - w.onViewMode = function() - { - // clean up the text - var phrase = w.elements.container.find( "textarea" ).val() - .replace( /\r/g, '' ).replace( /\n/g, ' ' ).replace( / /g, ' ' ).trim(); - - // store the text - w.setData( "phrase", phrase ); - - // remove all dots (they are to be set during the exercise) - phrase = phrase.replace( / /g, '' ); - - // create the html - w.setViewContent( createElements( phrase ) ); - - - // the behaviour - w.elements.containerView.find( ".letter" ) - .mouseover( function() - { - var el = $( this ).next(); - - // determine new hover class - var is_fixed = ( el.get( 0 ).className.indexOf( "fixed" ) != -1 ); - var hover_class = is_fixed? - "dash_hover_fixed" : "dash_hover"; - - // assign new hover class - el.addClass( hover_class ) - .data( "hc", hover_class ); - }) - .mouseout( function() - { - var el = $( this ).next(); - // remove current hover class - var hc = el.data( "hc" ); - el.removeClass( hc ); - }) - .click( function() - { - var el = $( this ).next(); - - // remove current hover class - $( this ).trigger( "mouseout" ); - - // toggle fixed class - el.toggleClass( "fixed" ); - - // determine new hover class - // assign new hover class - $( this ).trigger( "mouseover" ); - - w.checkAnswer(); - }); - - w.checkAnswer(); - }; - - // viewSize - w.viewSize = function() - { - var w = 0; - var h = 0; - - var dh = winstance.getData( "lineHeight" ); - var dw = winstance.getData( "dashWidth" ); - - winstance.elements.containerView.find( "div:visible" ).each( function() - { - w += $( this ).outerWidth(); - h = Math.max( h, $( this ).outerHeight( true ) ); - }); - - var square = w*h; - h = Math.max( h, $( winstance.elements.containerView ).height() ); - - if( winstance.maxWidth ) - { - w = Math.min( w, winstance.maxWidth ); - h = parseInt( square / w ); - } - - return { - w: w, - h: h+dh - }; - }; - - // editSize - w.editSize = function() - { - return { - w: winstance.elements.containerEdit.find( "textarea" ).parent().outerWidth( true ), - h: winstance.elements.containerEdit.find( "textarea" ).parent().outerHeight( true ) - }; - }; - - - w.checkAnswer = function() - { - var phrase = ""; - var ch = ""; - this.elements.containerView.find( "div:visible" ).each( function() - { - if( this.className.indexOf( "fixed" ) != -1 ){ - phrase += ' '; - } - else if( this.className.indexOf( "dash" ) != -1 ){ - return; - } - else{ - ch = $( this ).html(); - phrase += ch; - } - }); - - if( phrase == this.getData( "phrase" ) ){ - this.elements.containerView.addClass( "answerRight" ); - } - else{ - this.elements.containerView.removeClass( "answerRight" ); - } - }; - - - window.w = w; - window.winstance = w; - - w.modeView(); - - //changing the style - function changeStyle(val){ - if(val == 1){ - $(".b_top_left").removeClass("btl_pad"); - $(".b_top_center").removeClass("btc_pad"); - $(".b_top_right").removeClass("btr_pad"); - $(".b_center_left").removeClass("bcl_pad"); - $(".b_center_right").removeClass("bcr_pad"); - $(".b_bottom_right").removeClass("bbr_pad"); - $(".b_bottom_left").removeClass("bbl_pad"); - $(".b_bottom_center").removeClass("bbc_pad"); - $("#wgt_reload").removeClass("pad_color").removeClass("pad_reload"); - $("#wgt_edit").removeClass("pad_color").removeClass("pad_edit"); - $("#wgt_display").removeClass("pad_color").removeClass("pad_edit"); - $("#wgt_name").removeClass("pad_color"); - $(".style_select").removeClass("pad_select"); - } else { - $(".b_top_left").addClass("btl_pad"); - $(".b_top_center").addClass("btc_pad"); - $(".b_top_right").addClass("btr_pad"); - $(".b_center_left").addClass("bcl_pad"); - $(".b_center_right").addClass("bcr_pad"); - $(".b_bottom_right").addClass("bbr_pad"); - $(".b_bottom_left").addClass("bbl_pad"); - $(".b_bottom_center").addClass("bbc_pad"); - $("#wgt_reload").addClass("pad_color").addClass("pad_reload"); - $("#wgt_edit").addClass("pad_color").addClass("pad_edit"); - $("#wgt_display").addClass("pad_color").addClass("pad_edit"); - $("#wgt_name").addClass("pad_color"); - $(".style_select").addClass("pad_select"); - } - } - + + + +function createElements( phrase ) +{ + var s = ''; + for( var i = 0; i < phrase.length; i++ ) + { + ch = phrase.charAt( i ); + if( ch == " " ){ + ch = " "; + } + + s += '
' + ch + '
' + + '
 
'; + } + return s; +} + +if (window.widget) { + window.widget.onleave = function(){ + sankore.setPreference("spl_phrase_style", $(".style_select").find("option:selected").val()); + if(w.editMode) + sankore.setPreference("ordSplPhrases", w.elements.container.find( "textarea" ).val()); + else + sankore.setPreference("ordSplPhrases", w.getData("phrase")); + } +} + +$(document).ready(function() +{ + if(sankore.preference("spl_phrase_style","")){ + changeStyle(sankore.preference("spl_phrase_style","")); + $(".style_select").val(sankore.preference("spl_phrase_style","")); + } else + changeStyle(1) + $("#wgt_display").text(sankoreLang.view); + $("#wgt_edit").text(sankoreLang.edit); + $("#wgt_display, #wgt_edit").click(function(event){ + if(this.id == "wgt_display"){ + if(!$(this).hasClass("selected")){ + $(this).addClass("selected"); + $("#wgt_edit").removeClass("selected"); + $(".style_select").css("display","none"); + $(this).css("display", "none"); + $("#wgt_edit").css("display", "block"); + modeView(); + } + } else { + if(!$(this).hasClass("selected")){ + $(this).addClass("selected"); + $("#wgt_display").removeClass("selected"); + $(".style_select").css("display","block"); + $(this).css("display", "none"); + $("#wgt_display").css("display", "block"); + modeEdit(); + } + } + }); + $("#wgt_name").text(sankoreLang.wgt_name); + $("#wgt_reload").text(sankoreLang.reload).click(function(){ + window.location.reload(); + }); + $(".style_select option[value='1']").text(sankoreLang.slate); + $(".style_select option[value='2']").text(sankoreLang.pad); + + $(".style_select").change(function (event){ + changeStyle($(this).find("option:selected").val()); + }) + + var w = new wcontainer( "#ub-widget" ); + var sentence = ""; + + if(window.sankore) + sentence = (sankore.preference("ordSplPhrases", ""))?sankore.preference("ordSplPhrases", ""):sankoreLang.example; + else + sentence = sankoreLang.example; + + + w.maxWidth = 600; + + w.setEditContent( '
' ); + w.setViewContent( '
.
' ); + w.setData( "dashWidth", w.elements.container.find( ".dash" ).outerWidth() ); + w.setViewContent( '
M
' ); + w.setData( "lineHeight", w.elements.container.find( ".dash" ).outerHeight() ); + w.setViewContent( "" ); + + + // onViewMode + w.onViewMode = function() + { + // clean up the text + var phrase = w.elements.container.find( "textarea" ).val() + .replace( /\r/g, '' ).replace( /\n/g, ' ' ).replace( / /g, ' ' ).trim(); + + // store the text + w.setData( "phrase", phrase ); + + // remove all dots (they are to be set during the exercise) + phrase = phrase.replace( / /g, '' ); + + // create the html + w.setViewContent( createElements( phrase ) ); + + + // the behaviour + w.elements.containerView.find( ".letter" ) + .mouseover( function() + { + var el = $( this ).next(); + + // determine new hover class + var is_fixed = ( el.get( 0 ).className.indexOf( "fixed" ) != -1 ); + var hover_class = is_fixed? + "dash_hover_fixed" : "dash_hover"; + + // assign new hover class + el.addClass( hover_class ) + .data( "hc", hover_class ); + }) + .mouseout( function() + { + var el = $( this ).next(); + // remove current hover class + var hc = el.data( "hc" ); + el.removeClass( hc ); + }) + .click( function() + { + var el = $( this ).next(); + + // remove current hover class + $( this ).trigger( "mouseout" ); + + // toggle fixed class + el.toggleClass( "fixed" ); + + // determine new hover class + // assign new hover class + $( this ).trigger( "mouseover" ); + + w.checkAnswer(); + }); + + w.checkAnswer(); + }; + + // viewSize + w.viewSize = function() + { + var w = 0; + var h = 0; + + var dh = winstance.getData( "lineHeight" ); + var dw = winstance.getData( "dashWidth" ); + + winstance.elements.containerView.find( "div:visible" ).each( function() + { + w += $( this ).outerWidth(); + h = Math.max( h, $( this ).outerHeight( true ) ); + }); + + var square = w*h; + h = Math.max( h, $( winstance.elements.containerView ).height() ); + + if( winstance.maxWidth ) + { + w = Math.min( w, winstance.maxWidth ); + h = parseInt( square / w ); + } + + return { + w: w, + h: h+dh + }; + }; + + // editSize + w.editSize = function() + { + return { + w: winstance.elements.containerEdit.find( "textarea" ).parent().outerWidth( true ), + h: winstance.elements.containerEdit.find( "textarea" ).parent().outerHeight( true ) + }; + }; + + + w.checkAnswer = function() + { + var phrase = ""; + var ch = ""; + this.elements.containerView.find( "div:visible" ).each( function() + { + if( this.className.indexOf( "fixed" ) != -1 ){ + phrase += ' '; + } + else if( this.className.indexOf( "dash" ) != -1 ){ + return; + } + else{ + ch = $( this ).html(); + phrase += ch; + } + }); + + if( phrase == this.getData( "phrase" ) ){ + this.elements.containerView.addClass( "answerRight" ); + } + else{ + this.elements.containerView.removeClass( "answerRight" ); + } + }; + + + window.w = w; + window.winstance = w; + + w.modeView(); + + //changing the style + function changeStyle(val){ + if(val == 1){ + $(".b_top_left").removeClass("btl_pad"); + $(".b_top_center").removeClass("btc_pad"); + $(".b_top_right").removeClass("btr_pad"); + $(".b_center_left").removeClass("bcl_pad"); + $(".b_center_right").removeClass("bcr_pad"); + $(".b_bottom_right").removeClass("bbr_pad"); + $(".b_bottom_left").removeClass("bbl_pad"); + $(".b_bottom_center").removeClass("bbc_pad"); + $("#wgt_reload").removeClass("pad_color").removeClass("pad_reload"); + $("#wgt_edit").removeClass("pad_color").removeClass("pad_edit"); + $("#wgt_display").removeClass("pad_color").removeClass("pad_edit"); + $("#wgt_name").removeClass("pad_color"); + $(".style_select").removeClass("pad_select"); + } else { + $(".b_top_left").addClass("btl_pad"); + $(".b_top_center").addClass("btc_pad"); + $(".b_top_right").addClass("btr_pad"); + $(".b_center_left").addClass("bcl_pad"); + $(".b_center_right").addClass("bcr_pad"); + $(".b_bottom_right").addClass("bbr_pad"); + $(".b_bottom_left").addClass("bbl_pad"); + $(".b_bottom_center").addClass("bbc_pad"); + $("#wgt_reload").addClass("pad_color").addClass("pad_reload"); + $("#wgt_edit").addClass("pad_color").addClass("pad_edit"); + $("#wgt_display").addClass("pad_color").addClass("pad_edit"); + $("#wgt_name").addClass("pad_color"); + $(".style_select").addClass("pad_select"); + } + } + }); \ No newline at end of file diff --git a/resources/library/interactivities/Sépare phrase.wgt/scripts/ext.js b/resources/library/interactivities/Sépare phrase.wgt/scripts/ext.js similarity index 94% rename from resources/library/interactivities/Sépare phrase.wgt/scripts/ext.js rename to resources/library/interactivities/Sépare phrase.wgt/scripts/ext.js index 5535b36f..f22c8b36 100644 --- a/resources/library/interactivities/Sépare phrase.wgt/scripts/ext.js +++ b/resources/library/interactivities/Sépare phrase.wgt/scripts/ext.js @@ -1,41 +1,41 @@ -Array.prototype.shuffle = function( b ) -{ - var i = this.length, j, t; - while( i ) - { - j = Math.floor( ( i-- ) * Math.random() ); - t = b && typeof this[i].shuffle!=='undefined' ? this[i].shuffle() : this[i]; - this[i] = this[j]; - this[j] = t; - } - return this; -}; - - -String.prototype.copy = function() -{ - return this.substring( 0, this.length ); -}; - -String.prototype.trim = function( ext ) -{ - var chars = [ - " ", "\t", "\n", "\r" - ]; - - var s = this.copy(); - - if( arguments.length > 0 ){ - for( var i in ext ){ - chars.push( ext[i] ); - } - } - - while( chars.indexOf( s.charAt( 0 ) ) != -1 ){ - s = s.substring( 1, s.length ); - } - while( chars.indexOf( s.charAt( s.length-1 ) ) != -1 ){ - s = s.substring( 0, s.length-1 ); - } - return s; +Array.prototype.shuffle = function( b ) +{ + var i = this.length, j, t; + while( i ) + { + j = Math.floor( ( i-- ) * Math.random() ); + t = b && typeof this[i].shuffle!=='undefined' ? this[i].shuffle() : this[i]; + this[i] = this[j]; + this[j] = t; + } + return this; +}; + + +String.prototype.copy = function() +{ + return this.substring( 0, this.length ); +}; + +String.prototype.trim = function( ext ) +{ + var chars = [ + " ", "\t", "\n", "\r" + ]; + + var s = this.copy(); + + if( arguments.length > 0 ){ + for( var i in ext ){ + chars.push( ext[i] ); + } + } + + while( chars.indexOf( s.charAt( 0 ) ) != -1 ){ + s = s.substring( 1, s.length ); + } + while( chars.indexOf( s.charAt( s.length-1 ) ) != -1 ){ + s = s.substring( 0, s.length-1 ); + } + return s; }; \ No newline at end of file diff --git a/resources/library/interactivities/Sépare phrase.wgt/scripts/jquery-1.6.2.min.js b/resources/library/interactivities/Sépare phrase.wgt/scripts/jquery-1.6.2.min.js similarity index 100% rename from resources/library/interactivities/Sépare phrase.wgt/scripts/jquery-1.6.2.min.js rename to resources/library/interactivities/Sépare phrase.wgt/scripts/jquery-1.6.2.min.js diff --git a/resources/library/interactivities/Sépare phrase.wgt/scripts/wcontainer.js b/resources/library/interactivities/Sépare phrase.wgt/scripts/wcontainer.js similarity index 95% rename from resources/library/interactivities/Sépare phrase.wgt/scripts/wcontainer.js rename to resources/library/interactivities/Sépare phrase.wgt/scripts/wcontainer.js index 0396f585..43d2a12e 100644 --- a/resources/library/interactivities/Sépare phrase.wgt/scripts/wcontainer.js +++ b/resources/library/interactivities/Sépare phrase.wgt/scripts/wcontainer.js @@ -1,194 +1,194 @@ -var sankoreLang = { - view: "View", - edit: "Edit", - example: "this is a bunch of words which should be split apart", - wgt_name: "Split a phrase", - reload: "Reload", - slate: "Wood", - pad: "Pad" -}; - -// if use the "view/edit" button or rely on the api instead -var isSankore = false; -// whether to do window.resize or not (window = widget area) -var isBrowser = ( typeof( widget ) == "undefined" ); - -function wcontainer( containerID ) -{ - // some protecred variables - var thisInstance = this; - this.editMode = false; - var data = {}; // see setData and getData - - // widget size parameters - this.minHeight = 100; - this.minWidth = 400; - - // set to 0 for no max width restriction - this.maxWidth = 0; - - // links to the elements of the widget - this.elements = {}; - - /* - ============ - create - ============ - - creates html base, inits this.elements, assings events - */ - this.create = function( containerID ) - { - var html = - '
' + - '
' + - '
' + - '
' + - '
' + - '
'; - - var container = $( containerID ); - - container.append( html ); - this.elements.edit = container.find( ".editmode" ); - this.elements.view = container.find( ".viewmode" ); - this.elements.container = container; - this.elements.subcontainer = container.find( "#mp_content" ); - this.elements.containerView = this.elements.subcontainer.find( ".viewmode" ); - this.elements.containerEdit = this.elements.subcontainer.find( ".editmode" ); - - $("#wgt_edit").live("click", function(){ - thisInstance.modeEdit(); - } ); - - $("#wgt_display").live("click", function(){ - thisInstance.modeView(); - } ); - }; - - - /* - =============== - setViewContent - =============== - - assigns custom html to the viewmode container - */ - this.setViewContent = function( html ) - { - this.elements.container.find( "#mp_content .viewmode" ).html( html ); - }; - - /* - =============== - setEditContent - =============== - - assigns custom html to the editmode container - */ - this.setEditContent = function( html ) - { - this.elements.container.find( "#mp_content .editmode" ).html( html ); - }; - - - - /* - ========================= - modeEdit and modeView - ========================= - - switch the widget betweed modes - * for customization extend onEditMode and onViewMode - */ - this.modeEdit = function() - { - this.onEditMode(); - this.editMode = true; - this.elements.edit.removeClass( "hide" ); - this.elements.view.addClass( "hide" ); - - //this.adjustSize(); - }; - this.modeView = function() - { - this.onViewMode(); - this.editMode = false; - this.elements.edit.addClass( "hide" ); - this.elements.view.removeClass( "hide" ); - - //this.adjustSize(); - }; - - - /* - ====================== - setData and getData - ====================== - - store some data inside - */ - this.setData = function( name, value ){ - data[name] = value; - }; - this.getData = function( name ){ - if( typeof( data[name] ) == "undefined" ){ - return null; - } else return data[name]; - }; - - - // redefinable methods - - /* - ========================== - onEditMode and onViewMode - ========================== - - these are called when the mode is being changed - */ - this.onEditMode = function(){ - // - }; - this.onViewMode = function(){ - // - }; - - /* - ====================== - viewSize and editSize - ====================== - - calculate container size for the adjustSize method - * they are likely to be redefined for each particular widget - */ - this.viewSize = function(){ - return { - w: this.elements.containerView.outerWidth(), - h: this.elements.containerView.outerHeight() - }; - }; - this.editSize = function(){ - return { - w: this.elements.containerEdit.outerWidth(), - h: this.elements.containerEdit.outerHeight() - }; - }; - - /* - ===================== - checkAnswer - ===================== - - check if the exercise in the view mode was done right - * redefine it for each particular widget - */ - this.checkAnswer = function() - { - // - }; - - - // constructor end - - // if the constructor was called with a parameter, - // call create() automatically - if( arguments.length > 0 ){ - this.create( containerID ); - } - this.setData( "dw", this.elements.container.outerWidth( true ) - this.elements.container.width() ); - this.setData( "dh", this.elements.container.outerHeight( true ) - this.elements.container.height() ); - window.winstance = thisInstance; -} +var sankoreLang = { + view: "View", + edit: "Edit", + example: "this is a bunch of words which should be split apart", + wgt_name: "Split a phrase", + reload: "Reload", + slate: "Wood", + pad: "Pad" +}; + +// if use the "view/edit" button or rely on the api instead +var isSankore = false; +// whether to do window.resize or not (window = widget area) +var isBrowser = ( typeof( widget ) == "undefined" ); + +function wcontainer( containerID ) +{ + // some protecred variables + var thisInstance = this; + this.editMode = false; + var data = {}; // see setData and getData + + // widget size parameters + this.minHeight = 100; + this.minWidth = 400; + + // set to 0 for no max width restriction + this.maxWidth = 0; + + // links to the elements of the widget + this.elements = {}; + + /* + ============ + create + ============ + - creates html base, inits this.elements, assings events + */ + this.create = function( containerID ) + { + var html = + '
' + + '
' + + '
' + + '
' + + '
' + + '
'; + + var container = $( containerID ); + + container.append( html ); + this.elements.edit = container.find( ".editmode" ); + this.elements.view = container.find( ".viewmode" ); + this.elements.container = container; + this.elements.subcontainer = container.find( "#mp_content" ); + this.elements.containerView = this.elements.subcontainer.find( ".viewmode" ); + this.elements.containerEdit = this.elements.subcontainer.find( ".editmode" ); + + $("#wgt_edit").live("click", function(){ + thisInstance.modeEdit(); + } ); + + $("#wgt_display").live("click", function(){ + thisInstance.modeView(); + } ); + }; + + + /* + =============== + setViewContent + =============== + - assigns custom html to the viewmode container + */ + this.setViewContent = function( html ) + { + this.elements.container.find( "#mp_content .viewmode" ).html( html ); + }; + + /* + =============== + setEditContent + =============== + - assigns custom html to the editmode container + */ + this.setEditContent = function( html ) + { + this.elements.container.find( "#mp_content .editmode" ).html( html ); + }; + + + + /* + ========================= + modeEdit and modeView + ========================= + - switch the widget betweed modes + * for customization extend onEditMode and onViewMode + */ + this.modeEdit = function() + { + this.onEditMode(); + this.editMode = true; + this.elements.edit.removeClass( "hide" ); + this.elements.view.addClass( "hide" ); + + //this.adjustSize(); + }; + this.modeView = function() + { + this.onViewMode(); + this.editMode = false; + this.elements.edit.addClass( "hide" ); + this.elements.view.removeClass( "hide" ); + + //this.adjustSize(); + }; + + + /* + ====================== + setData and getData + ====================== + - store some data inside + */ + this.setData = function( name, value ){ + data[name] = value; + }; + this.getData = function( name ){ + if( typeof( data[name] ) == "undefined" ){ + return null; + } else return data[name]; + }; + + + // redefinable methods + + /* + ========================== + onEditMode and onViewMode + ========================== + - these are called when the mode is being changed + */ + this.onEditMode = function(){ + // + }; + this.onViewMode = function(){ + // + }; + + /* + ====================== + viewSize and editSize + ====================== + - calculate container size for the adjustSize method + * they are likely to be redefined for each particular widget + */ + this.viewSize = function(){ + return { + w: this.elements.containerView.outerWidth(), + h: this.elements.containerView.outerHeight() + }; + }; + this.editSize = function(){ + return { + w: this.elements.containerEdit.outerWidth(), + h: this.elements.containerEdit.outerHeight() + }; + }; + + /* + ===================== + checkAnswer + ===================== + - check if the exercise in the view mode was done right + * redefine it for each particular widget + */ + this.checkAnswer = function() + { + // + }; + + + // constructor end + + // if the constructor was called with a parameter, + // call create() automatically + if( arguments.length > 0 ){ + this.create( containerID ); + } + this.setData( "dw", this.elements.container.outerWidth( true ) - this.elements.container.width() ); + this.setData( "dh", this.elements.container.outerHeight( true ) - this.elements.container.height() ); + window.winstance = thisInstance; +} diff --git a/resources/library/interactivities/Sépare phrase.wgt/styles/app.css b/resources/library/interactivities/Sépare phrase.wgt/styles/app.css similarity index 94% rename from resources/library/interactivities/Sépare phrase.wgt/styles/app.css rename to resources/library/interactivities/Sépare phrase.wgt/styles/app.css index 7d32bb36..ef03b1bc 100644 --- a/resources/library/interactivities/Sépare phrase.wgt/styles/app.css +++ b/resources/library/interactivities/Sépare phrase.wgt/styles/app.css @@ -1,223 +1,223 @@ -/* custom */ - -#mp_view{ - font-size: 24pt; - word-wrap: normal; -} - -#mp_view div{ - display: inline-block; - cursor: pointer; -} - -#mp_view.answerRight div{ - color: #66cc00; -} - -#mp_view div.dash{ - display: none; - width: 30px; -} - -#mp_view div.dash_hover{ - display: inline-block; - background-image: url( "separator-hover.png" ); -} -#mp_view div.dash_hover_fixed{ - display: inline-block; - background-image: url( "separator-activated.png" ); -} - -#mp_view div.fixed{ - display: inline-block; -} - - -#mp_edit textarea{ - resize: none; - height: 60px; -} - -/*new design*/ - -.selected{ - -} - -.body_table{ - width: 100%; - height: 100%; - border-spacing: 0; -} - -/*top*/ - -.b_top_left{ - width: 54px; - background-image: url(../img/top_left.png); - background-repeat: no-repeat; -} - -.b_top_right{ - width: 54px; - background-image: url(../img/top_right.png); - background-repeat: no-repeat; -} - -.b_top_center{ - height: 54px; - background-image: url(../img/top.png); - background-repeat: repeat-x; -} - -/*bottom*/ - -.b_bottom_left{ - width: 54px; - background-image: url(../img/bottom_left.png); - background-repeat: no-repeat; -} - -.b_bottom_right{ - width: 54px; - background-image: url(../img/bottom_right.png); - background-repeat: no-repeat; -} - -.b_bottom_center{ - background-image: url(../img/bottom.png); - background-repeat: repeat-x; -} - -/*center*/ - -.b_center_left{ - width: 54px; - background-image: url(../img/left.png); - background-repeat: repeat-y; -} - -.b_center_right{ - width: 54px; - background-image: url(../img/right.png); - background-repeat: repeat-y; -} - -#data{ - width: 100%; - height: 100%; - min-height: 250px; - overflow: auto; -} - -#wgt_name{ - height: 44px; - width: 200px; - margin: 10px 10px 0 10px; - padding: 0; - float: left; - /*font-family: "Lobster13Regular";*/ - font-size: 24px; - color: #8c5730; -} - -#wgt_reload, #wgt_edit, #wgt_display{ - cursor: pointer; - width: 80px; - height: 44px; - margin: 10px 10px 0 0; - float: right; - /*font-family: "Lobster13Regular";*/ - font-size: 24px; - color: #8c5730; -} - -#wgt_display{ - width: 100px; - padding-left: 40px; - background-image: url(../img/slate-edit.png); - background-repeat: no-repeat; - background-position: top 0; - display: none; -} - -#wgt_edit{ - width: 100px; - padding-left: 40px; - background-image: url(../img/slate-edit.png); - background-repeat: no-repeat; - background-position: top 0; -} - -#wgt_reload{ - padding-left: 40px; - background-image: url(../img/slate-toolbar-reload.png); - background-repeat: no-repeat; - background-position: top 0; -} - -.style_select{ - width: 120px; - /*font-family: "Lobster13Regular";*/ - font-size: 24px; - float: right; - margin: 10px 20px 0 0; - border-radius: 10px; - background-image: url(../img/ar_down.png); - background-color: #d4aa79; - color: #8c5730; - background-position: 105px 11px; - background-repeat: no-repeat; - -webkit-appearance: menulist-text; - display: none; -} - -.btl_pad{ - background-image: url(../img/pad-top-left.png) !important; -} - -.btc_pad{ - background-image: url(../img/pad-top.png) !important; -} - -.btr_pad{ - background-image: url(../img/pad-top-right.png) !important; -} - -.bcl_pad{ - background-image: url(../img/pad-left.png) !important; -} - -.bcr_pad{ - background-image: url(../img/pad-right.png) !important; -} - -.bbl_pad{ - background-image: url(../img/pad-bottom-left.png) !important; -} - -.bbc_pad{ - background-image: url(../img/pad-bottom.png) !important; -} - -.bbr_pad{ - background-image: url(../img/pad-bottom-right.png) !important; -} - -.pad_color{ - color: white !important; -} - -.pad_reload{ - background-image: url(../img/slate-toolbar-reload-white.png) !important; -} - -.pad_edit{ - background-image: url(../img/slate-display.png) !important; -} - -.pad_select{ - background-color: black !important; - color: white !important; - background-image: url(../img/ar_down_white.png) !important; -} +/* custom */ + +#mp_view{ + font-size: 24pt; + word-wrap: normal; +} + +#mp_view div{ + display: inline-block; + cursor: pointer; +} + +#mp_view.answerRight div{ + color: #66cc00; +} + +#mp_view div.dash{ + display: none; + width: 30px; +} + +#mp_view div.dash_hover{ + display: inline-block; + background-image: url( "separator-hover.png" ); +} +#mp_view div.dash_hover_fixed{ + display: inline-block; + background-image: url( "separator-activated.png" ); +} + +#mp_view div.fixed{ + display: inline-block; +} + + +#mp_edit textarea{ + resize: none; + height: 60px; +} + +/*new design*/ + +.selected{ + +} + +.body_table{ + width: 100%; + height: 100%; + border-spacing: 0; +} + +/*top*/ + +.b_top_left{ + width: 54px; + background-image: url(../img/top_left.png); + background-repeat: no-repeat; +} + +.b_top_right{ + width: 54px; + background-image: url(../img/top_right.png); + background-repeat: no-repeat; +} + +.b_top_center{ + height: 54px; + background-image: url(../img/top.png); + background-repeat: repeat-x; +} + +/*bottom*/ + +.b_bottom_left{ + width: 54px; + background-image: url(../img/bottom_left.png); + background-repeat: no-repeat; +} + +.b_bottom_right{ + width: 54px; + background-image: url(../img/bottom_right.png); + background-repeat: no-repeat; +} + +.b_bottom_center{ + background-image: url(../img/bottom.png); + background-repeat: repeat-x; +} + +/*center*/ + +.b_center_left{ + width: 54px; + background-image: url(../img/left.png); + background-repeat: repeat-y; +} + +.b_center_right{ + width: 54px; + background-image: url(../img/right.png); + background-repeat: repeat-y; +} + +#data{ + width: 100%; + height: 100%; + min-height: 250px; + overflow: auto; +} + +#wgt_name{ + height: 44px; + width: 200px; + margin: 10px 10px 0 10px; + padding: 0; + float: left; + /*font-family: "Lobster13Regular";*/ + font-size: 24px; + color: #8c5730; +} + +#wgt_reload, #wgt_edit, #wgt_display{ + cursor: pointer; + width: 80px; + height: 44px; + margin: 10px 10px 0 0; + float: right; + /*font-family: "Lobster13Regular";*/ + font-size: 24px; + color: #8c5730; +} + +#wgt_display{ + width: 100px; + padding-left: 40px; + background-image: url(../img/slate-edit.png); + background-repeat: no-repeat; + background-position: top 0; + display: none; +} + +#wgt_edit{ + width: 100px; + padding-left: 40px; + background-image: url(../img/slate-edit.png); + background-repeat: no-repeat; + background-position: top 0; +} + +#wgt_reload{ + padding-left: 40px; + background-image: url(../img/slate-toolbar-reload.png); + background-repeat: no-repeat; + background-position: top 0; +} + +.style_select{ + width: 120px; + /*font-family: "Lobster13Regular";*/ + font-size: 24px; + float: right; + margin: 10px 20px 0 0; + border-radius: 10px; + background-image: url(../img/ar_down.png); + background-color: #d4aa79; + color: #8c5730; + background-position: 105px 11px; + background-repeat: no-repeat; + -webkit-appearance: menulist-text; + display: none; +} + +.btl_pad{ + background-image: url(../img/pad-top-left.png) !important; +} + +.btc_pad{ + background-image: url(../img/pad-top.png) !important; +} + +.btr_pad{ + background-image: url(../img/pad-top-right.png) !important; +} + +.bcl_pad{ + background-image: url(../img/pad-left.png) !important; +} + +.bcr_pad{ + background-image: url(../img/pad-right.png) !important; +} + +.bbl_pad{ + background-image: url(../img/pad-bottom-left.png) !important; +} + +.bbc_pad{ + background-image: url(../img/pad-bottom.png) !important; +} + +.bbr_pad{ + background-image: url(../img/pad-bottom-right.png) !important; +} + +.pad_color{ + color: white !important; +} + +.pad_reload{ + background-image: url(../img/slate-toolbar-reload-white.png) !important; +} + +.pad_edit{ + background-image: url(../img/slate-display.png) !important; +} + +.pad_select{ + background-color: black !important; + color: white !important; + background-image: url(../img/ar_down_white.png) !important; +} diff --git a/resources/library/interactivities/Sépare phrase.wgt/styles/fonts/Lobster/Lobster_1.3-webfont.eot b/resources/library/interactivities/Sépare phrase.wgt/styles/fonts/Lobster/Lobster_1.3-webfont.eot similarity index 100% rename from resources/library/interactivities/Sépare phrase.wgt/styles/fonts/Lobster/Lobster_1.3-webfont.eot rename to resources/library/interactivities/Sépare phrase.wgt/styles/fonts/Lobster/Lobster_1.3-webfont.eot diff --git a/resources/library/interactivities/Sépare phrase.wgt/styles/fonts/Lobster/Lobster_1.3-webfont.svg b/resources/library/interactivities/Sépare phrase.wgt/styles/fonts/Lobster/Lobster_1.3-webfont.svg similarity index 100% rename from resources/library/interactivities/Sépare phrase.wgt/styles/fonts/Lobster/Lobster_1.3-webfont.svg rename to resources/library/interactivities/Sépare phrase.wgt/styles/fonts/Lobster/Lobster_1.3-webfont.svg diff --git a/resources/library/interactivities/Sépare phrase.wgt/styles/fonts/Lobster/Lobster_1.3-webfont.ttf b/resources/library/interactivities/Sépare phrase.wgt/styles/fonts/Lobster/Lobster_1.3-webfont.ttf similarity index 100% rename from resources/library/interactivities/Sépare phrase.wgt/styles/fonts/Lobster/Lobster_1.3-webfont.ttf rename to resources/library/interactivities/Sépare phrase.wgt/styles/fonts/Lobster/Lobster_1.3-webfont.ttf diff --git a/resources/library/interactivities/Sépare phrase.wgt/styles/fonts/Lobster/Lobster_1.3-webfont.woff b/resources/library/interactivities/Sépare phrase.wgt/styles/fonts/Lobster/Lobster_1.3-webfont.woff similarity index 100% rename from resources/library/interactivities/Sépare phrase.wgt/styles/fonts/Lobster/Lobster_1.3-webfont.woff rename to resources/library/interactivities/Sépare phrase.wgt/styles/fonts/Lobster/Lobster_1.3-webfont.woff diff --git a/resources/library/interactivities/Sépare phrase.wgt/styles/fonts/Lobster/SIL Open Font License 1.1.txt b/resources/library/interactivities/Sépare phrase.wgt/styles/fonts/Lobster/SIL Open Font License 1.1.txt similarity index 100% rename from resources/library/interactivities/Sépare phrase.wgt/styles/fonts/Lobster/SIL Open Font License 1.1.txt rename to resources/library/interactivities/Sépare phrase.wgt/styles/fonts/Lobster/SIL Open Font License 1.1.txt diff --git a/resources/library/interactivities/Sépare phrase.wgt/styles/fonts/Lobster/demo.html b/resources/library/interactivities/Sépare phrase.wgt/styles/fonts/Lobster/demo.html similarity index 100% rename from resources/library/interactivities/Sépare phrase.wgt/styles/fonts/Lobster/demo.html rename to resources/library/interactivities/Sépare phrase.wgt/styles/fonts/Lobster/demo.html diff --git a/resources/library/interactivities/Sépare phrase.wgt/styles/fonts/Lobster/stylesheet.css b/resources/library/interactivities/Sépare phrase.wgt/styles/fonts/Lobster/stylesheet.css similarity index 100% rename from resources/library/interactivities/Sépare phrase.wgt/styles/fonts/Lobster/stylesheet.css rename to resources/library/interactivities/Sépare phrase.wgt/styles/fonts/Lobster/stylesheet.css diff --git a/resources/library/interactivities/Sépare phrase.wgt/styles/fonts/SF-Toontime/SF_Toontime-webfont.eot b/resources/library/interactivities/Sépare phrase.wgt/styles/fonts/SF-Toontime/SF_Toontime-webfont.eot similarity index 100% rename from resources/library/interactivities/Sépare phrase.wgt/styles/fonts/SF-Toontime/SF_Toontime-webfont.eot rename to resources/library/interactivities/Sépare phrase.wgt/styles/fonts/SF-Toontime/SF_Toontime-webfont.eot diff --git a/resources/library/interactivities/Sépare phrase.wgt/styles/fonts/SF-Toontime/SF_Toontime-webfont.svg b/resources/library/interactivities/Sépare phrase.wgt/styles/fonts/SF-Toontime/SF_Toontime-webfont.svg similarity index 100% rename from resources/library/interactivities/Sépare phrase.wgt/styles/fonts/SF-Toontime/SF_Toontime-webfont.svg rename to resources/library/interactivities/Sépare phrase.wgt/styles/fonts/SF-Toontime/SF_Toontime-webfont.svg diff --git a/resources/library/interactivities/Sépare phrase.wgt/styles/fonts/SF-Toontime/SF_Toontime-webfont.ttf b/resources/library/interactivities/Sépare phrase.wgt/styles/fonts/SF-Toontime/SF_Toontime-webfont.ttf similarity index 100% rename from resources/library/interactivities/Sépare phrase.wgt/styles/fonts/SF-Toontime/SF_Toontime-webfont.ttf rename to resources/library/interactivities/Sépare phrase.wgt/styles/fonts/SF-Toontime/SF_Toontime-webfont.ttf diff --git a/resources/library/interactivities/Sépare phrase.wgt/styles/fonts/SF-Toontime/SF_Toontime-webfont.woff b/resources/library/interactivities/Sépare phrase.wgt/styles/fonts/SF-Toontime/SF_Toontime-webfont.woff similarity index 100% rename from resources/library/interactivities/Sépare phrase.wgt/styles/fonts/SF-Toontime/SF_Toontime-webfont.woff rename to resources/library/interactivities/Sépare phrase.wgt/styles/fonts/SF-Toontime/SF_Toontime-webfont.woff diff --git a/resources/library/interactivities/Sépare phrase.wgt/styles/fonts/SF-Toontime/SF_Toontime_Blotch-webfont.eot b/resources/library/interactivities/Sépare phrase.wgt/styles/fonts/SF-Toontime/SF_Toontime_Blotch-webfont.eot similarity index 100% rename from resources/library/interactivities/Sépare phrase.wgt/styles/fonts/SF-Toontime/SF_Toontime_Blotch-webfont.eot rename to resources/library/interactivities/Sépare phrase.wgt/styles/fonts/SF-Toontime/SF_Toontime_Blotch-webfont.eot diff --git a/resources/library/interactivities/Sépare phrase.wgt/styles/fonts/SF-Toontime/SF_Toontime_Blotch-webfont.svg b/resources/library/interactivities/Sépare phrase.wgt/styles/fonts/SF-Toontime/SF_Toontime_Blotch-webfont.svg similarity index 100% rename from resources/library/interactivities/Sépare phrase.wgt/styles/fonts/SF-Toontime/SF_Toontime_Blotch-webfont.svg rename to resources/library/interactivities/Sépare phrase.wgt/styles/fonts/SF-Toontime/SF_Toontime_Blotch-webfont.svg diff --git a/resources/library/interactivities/Sépare phrase.wgt/styles/fonts/SF-Toontime/SF_Toontime_Blotch-webfont.ttf b/resources/library/interactivities/Sépare phrase.wgt/styles/fonts/SF-Toontime/SF_Toontime_Blotch-webfont.ttf similarity index 100% rename from resources/library/interactivities/Sépare phrase.wgt/styles/fonts/SF-Toontime/SF_Toontime_Blotch-webfont.ttf rename to resources/library/interactivities/Sépare phrase.wgt/styles/fonts/SF-Toontime/SF_Toontime_Blotch-webfont.ttf diff --git a/resources/library/interactivities/Sépare phrase.wgt/styles/fonts/SF-Toontime/SF_Toontime_Blotch-webfont.woff b/resources/library/interactivities/Sépare phrase.wgt/styles/fonts/SF-Toontime/SF_Toontime_Blotch-webfont.woff similarity index 100% rename from resources/library/interactivities/Sépare phrase.wgt/styles/fonts/SF-Toontime/SF_Toontime_Blotch-webfont.woff rename to resources/library/interactivities/Sépare phrase.wgt/styles/fonts/SF-Toontime/SF_Toontime_Blotch-webfont.woff diff --git a/resources/library/interactivities/Sépare phrase.wgt/styles/fonts/SF-Toontime/SF_Toontime_Blotch_Italic-webfont.eot b/resources/library/interactivities/Sépare phrase.wgt/styles/fonts/SF-Toontime/SF_Toontime_Blotch_Italic-webfont.eot similarity index 100% rename from resources/library/interactivities/Sépare phrase.wgt/styles/fonts/SF-Toontime/SF_Toontime_Blotch_Italic-webfont.eot rename to resources/library/interactivities/Sépare phrase.wgt/styles/fonts/SF-Toontime/SF_Toontime_Blotch_Italic-webfont.eot diff --git a/resources/library/interactivities/Sépare phrase.wgt/styles/fonts/SF-Toontime/SF_Toontime_Blotch_Italic-webfont.svg b/resources/library/interactivities/Sépare phrase.wgt/styles/fonts/SF-Toontime/SF_Toontime_Blotch_Italic-webfont.svg similarity index 100% rename from resources/library/interactivities/Sépare phrase.wgt/styles/fonts/SF-Toontime/SF_Toontime_Blotch_Italic-webfont.svg rename to resources/library/interactivities/Sépare phrase.wgt/styles/fonts/SF-Toontime/SF_Toontime_Blotch_Italic-webfont.svg diff --git a/resources/library/interactivities/Sépare phrase.wgt/styles/fonts/SF-Toontime/SF_Toontime_Blotch_Italic-webfont.ttf b/resources/library/interactivities/Sépare phrase.wgt/styles/fonts/SF-Toontime/SF_Toontime_Blotch_Italic-webfont.ttf similarity index 100% rename from resources/library/interactivities/Sépare phrase.wgt/styles/fonts/SF-Toontime/SF_Toontime_Blotch_Italic-webfont.ttf rename to resources/library/interactivities/Sépare phrase.wgt/styles/fonts/SF-Toontime/SF_Toontime_Blotch_Italic-webfont.ttf diff --git a/resources/library/interactivities/Sépare phrase.wgt/styles/fonts/SF-Toontime/SF_Toontime_Blotch_Italic-webfont.woff b/resources/library/interactivities/Sépare phrase.wgt/styles/fonts/SF-Toontime/SF_Toontime_Blotch_Italic-webfont.woff similarity index 100% rename from resources/library/interactivities/Sépare phrase.wgt/styles/fonts/SF-Toontime/SF_Toontime_Blotch_Italic-webfont.woff rename to resources/library/interactivities/Sépare phrase.wgt/styles/fonts/SF-Toontime/SF_Toontime_Blotch_Italic-webfont.woff diff --git a/resources/library/interactivities/Sépare phrase.wgt/styles/fonts/SF-Toontime/SF_Toontime_Bold-webfont.eot b/resources/library/interactivities/Sépare phrase.wgt/styles/fonts/SF-Toontime/SF_Toontime_Bold-webfont.eot similarity index 100% rename from resources/library/interactivities/Sépare phrase.wgt/styles/fonts/SF-Toontime/SF_Toontime_Bold-webfont.eot rename to resources/library/interactivities/Sépare phrase.wgt/styles/fonts/SF-Toontime/SF_Toontime_Bold-webfont.eot diff --git a/resources/library/interactivities/Sépare phrase.wgt/styles/fonts/SF-Toontime/SF_Toontime_Bold-webfont.svg b/resources/library/interactivities/Sépare phrase.wgt/styles/fonts/SF-Toontime/SF_Toontime_Bold-webfont.svg similarity index 100% rename from resources/library/interactivities/Sépare phrase.wgt/styles/fonts/SF-Toontime/SF_Toontime_Bold-webfont.svg rename to resources/library/interactivities/Sépare phrase.wgt/styles/fonts/SF-Toontime/SF_Toontime_Bold-webfont.svg diff --git a/resources/library/interactivities/Sépare phrase.wgt/styles/fonts/SF-Toontime/SF_Toontime_Bold-webfont.ttf b/resources/library/interactivities/Sépare phrase.wgt/styles/fonts/SF-Toontime/SF_Toontime_Bold-webfont.ttf similarity index 100% rename from resources/library/interactivities/Sépare phrase.wgt/styles/fonts/SF-Toontime/SF_Toontime_Bold-webfont.ttf rename to resources/library/interactivities/Sépare phrase.wgt/styles/fonts/SF-Toontime/SF_Toontime_Bold-webfont.ttf diff --git a/resources/library/interactivities/Sépare phrase.wgt/styles/fonts/SF-Toontime/SF_Toontime_Bold-webfont.woff b/resources/library/interactivities/Sépare phrase.wgt/styles/fonts/SF-Toontime/SF_Toontime_Bold-webfont.woff similarity index 100% rename from resources/library/interactivities/Sépare phrase.wgt/styles/fonts/SF-Toontime/SF_Toontime_Bold-webfont.woff rename to resources/library/interactivities/Sépare phrase.wgt/styles/fonts/SF-Toontime/SF_Toontime_Bold-webfont.woff diff --git a/resources/library/interactivities/Sépare phrase.wgt/styles/fonts/SF-Toontime/SF_Toontime_Bold_Italic-webfont.eot b/resources/library/interactivities/Sépare phrase.wgt/styles/fonts/SF-Toontime/SF_Toontime_Bold_Italic-webfont.eot similarity index 100% rename from resources/library/interactivities/Sépare phrase.wgt/styles/fonts/SF-Toontime/SF_Toontime_Bold_Italic-webfont.eot rename to resources/library/interactivities/Sépare phrase.wgt/styles/fonts/SF-Toontime/SF_Toontime_Bold_Italic-webfont.eot diff --git a/resources/library/interactivities/Sépare phrase.wgt/styles/fonts/SF-Toontime/SF_Toontime_Bold_Italic-webfont.svg b/resources/library/interactivities/Sépare phrase.wgt/styles/fonts/SF-Toontime/SF_Toontime_Bold_Italic-webfont.svg similarity index 100% rename from resources/library/interactivities/Sépare phrase.wgt/styles/fonts/SF-Toontime/SF_Toontime_Bold_Italic-webfont.svg rename to resources/library/interactivities/Sépare phrase.wgt/styles/fonts/SF-Toontime/SF_Toontime_Bold_Italic-webfont.svg diff --git a/resources/library/interactivities/Sépare phrase.wgt/styles/fonts/SF-Toontime/SF_Toontime_Bold_Italic-webfont.ttf b/resources/library/interactivities/Sépare phrase.wgt/styles/fonts/SF-Toontime/SF_Toontime_Bold_Italic-webfont.ttf similarity index 100% rename from resources/library/interactivities/Sépare phrase.wgt/styles/fonts/SF-Toontime/SF_Toontime_Bold_Italic-webfont.ttf rename to resources/library/interactivities/Sépare phrase.wgt/styles/fonts/SF-Toontime/SF_Toontime_Bold_Italic-webfont.ttf diff --git a/resources/library/interactivities/Sépare phrase.wgt/styles/fonts/SF-Toontime/SF_Toontime_Bold_Italic-webfont.woff b/resources/library/interactivities/Sépare phrase.wgt/styles/fonts/SF-Toontime/SF_Toontime_Bold_Italic-webfont.woff similarity index 100% rename from resources/library/interactivities/Sépare phrase.wgt/styles/fonts/SF-Toontime/SF_Toontime_Bold_Italic-webfont.woff rename to resources/library/interactivities/Sépare phrase.wgt/styles/fonts/SF-Toontime/SF_Toontime_Bold_Italic-webfont.woff diff --git a/resources/library/interactivities/Sépare phrase.wgt/styles/fonts/SF-Toontime/SF_Toontime_Italic-webfont.eot b/resources/library/interactivities/Sépare phrase.wgt/styles/fonts/SF-Toontime/SF_Toontime_Italic-webfont.eot similarity index 100% rename from resources/library/interactivities/Sépare phrase.wgt/styles/fonts/SF-Toontime/SF_Toontime_Italic-webfont.eot rename to resources/library/interactivities/Sépare phrase.wgt/styles/fonts/SF-Toontime/SF_Toontime_Italic-webfont.eot diff --git a/resources/library/interactivities/Sépare phrase.wgt/styles/fonts/SF-Toontime/SF_Toontime_Italic-webfont.svg b/resources/library/interactivities/Sépare phrase.wgt/styles/fonts/SF-Toontime/SF_Toontime_Italic-webfont.svg similarity index 100% rename from resources/library/interactivities/Sépare phrase.wgt/styles/fonts/SF-Toontime/SF_Toontime_Italic-webfont.svg rename to resources/library/interactivities/Sépare phrase.wgt/styles/fonts/SF-Toontime/SF_Toontime_Italic-webfont.svg diff --git a/resources/library/interactivities/Sépare phrase.wgt/styles/fonts/SF-Toontime/SF_Toontime_Italic-webfont.ttf b/resources/library/interactivities/Sépare phrase.wgt/styles/fonts/SF-Toontime/SF_Toontime_Italic-webfont.ttf similarity index 100% rename from resources/library/interactivities/Sépare phrase.wgt/styles/fonts/SF-Toontime/SF_Toontime_Italic-webfont.ttf rename to resources/library/interactivities/Sépare phrase.wgt/styles/fonts/SF-Toontime/SF_Toontime_Italic-webfont.ttf diff --git a/resources/library/interactivities/Sépare phrase.wgt/styles/fonts/SF-Toontime/SF_Toontime_Italic-webfont.woff b/resources/library/interactivities/Sépare phrase.wgt/styles/fonts/SF-Toontime/SF_Toontime_Italic-webfont.woff similarity index 100% rename from resources/library/interactivities/Sépare phrase.wgt/styles/fonts/SF-Toontime/SF_Toontime_Italic-webfont.woff rename to resources/library/interactivities/Sépare phrase.wgt/styles/fonts/SF-Toontime/SF_Toontime_Italic-webfont.woff diff --git a/resources/library/interactivities/Sépare phrase.wgt/styles/fonts/SF-Toontime/ShyFonts Font License.txt b/resources/library/interactivities/Sépare phrase.wgt/styles/fonts/SF-Toontime/ShyFonts Font License.txt similarity index 100% rename from resources/library/interactivities/Sépare phrase.wgt/styles/fonts/SF-Toontime/ShyFonts Font License.txt rename to resources/library/interactivities/Sépare phrase.wgt/styles/fonts/SF-Toontime/ShyFonts Font License.txt diff --git a/resources/library/interactivities/Sépare phrase.wgt/styles/fonts/SF-Toontime/demo.html b/resources/library/interactivities/Sépare phrase.wgt/styles/fonts/SF-Toontime/demo.html similarity index 100% rename from resources/library/interactivities/Sépare phrase.wgt/styles/fonts/SF-Toontime/demo.html rename to resources/library/interactivities/Sépare phrase.wgt/styles/fonts/SF-Toontime/demo.html diff --git a/resources/library/interactivities/Sépare phrase.wgt/styles/fonts/SF-Toontime/stylesheet.css b/resources/library/interactivities/Sépare phrase.wgt/styles/fonts/SF-Toontime/stylesheet.css similarity index 100% rename from resources/library/interactivities/Sépare phrase.wgt/styles/fonts/SF-Toontime/stylesheet.css rename to resources/library/interactivities/Sépare phrase.wgt/styles/fonts/SF-Toontime/stylesheet.css diff --git a/resources/library/interactivities/Sépare phrase.wgt/styles/master.css b/resources/library/interactivities/Sépare phrase.wgt/styles/master.css similarity index 100% rename from resources/library/interactivities/Sépare phrase.wgt/styles/master.css rename to resources/library/interactivities/Sépare phrase.wgt/styles/master.css diff --git a/resources/library/interactivities/Sépare phrase.wgt/styles/separator-activated.png b/resources/library/interactivities/Sépare phrase.wgt/styles/separator-activated.png similarity index 100% rename from resources/library/interactivities/Sépare phrase.wgt/styles/separator-activated.png rename to resources/library/interactivities/Sépare phrase.wgt/styles/separator-activated.png diff --git a/resources/library/interactivities/Sépare phrase.wgt/styles/separator-hover.png b/resources/library/interactivities/Sépare phrase.wgt/styles/separator-hover.png similarity index 100% rename from resources/library/interactivities/Sépare phrase.wgt/styles/separator-hover.png rename to resources/library/interactivities/Sépare phrase.wgt/styles/separator-hover.png diff --git a/resources/library/interactivities/Sépare texte.wgt/styles/wcontainer.css b/resources/library/interactivities/Sépare phrase.wgt/styles/wcontainer.css similarity index 89% rename from resources/library/interactivities/Sépare texte.wgt/styles/wcontainer.css rename to resources/library/interactivities/Sépare phrase.wgt/styles/wcontainer.css index 86faa54c..c78b8324 100644 --- a/resources/library/interactivities/Sépare texte.wgt/styles/wcontainer.css +++ b/resources/library/interactivities/Sépare phrase.wgt/styles/wcontainer.css @@ -1,19 +1,19 @@ -/* frame */ - -#mp_setup{ - text-align: right; -} - -#mp_content{ - margin-top: 5px; -} - -.viewmode{ - /* empty */ -} -.editmode{ - /* empty */ -} -.hide{ - display: none; +/* frame */ + +#mp_setup{ + text-align: right; +} + +#mp_content{ + margin-top: 5px; +} + +.viewmode{ + /* empty */ +} +.editmode{ + /* empty */ +} +.hide{ + display: none; } \ No newline at end of file diff --git a/resources/library/interactivities/Sépare texte.wgt/config.xml b/resources/library/interactivities/Sépare texte.wgt/config.xml similarity index 100% rename from resources/library/interactivities/Sépare texte.wgt/config.xml rename to resources/library/interactivities/Sépare texte.wgt/config.xml diff --git a/resources/library/interactivities/Sépare texte.wgt/icon.png b/resources/library/interactivities/Sépare texte.wgt/icon.png similarity index 100% rename from resources/library/interactivities/Sépare texte.wgt/icon.png rename to resources/library/interactivities/Sépare texte.wgt/icon.png diff --git a/resources/library/interactivities/Sépare texte.wgt/img/ar_down.png b/resources/library/interactivities/Sépare texte.wgt/img/ar_down.png similarity index 100% rename from resources/library/interactivities/Sépare texte.wgt/img/ar_down.png rename to resources/library/interactivities/Sépare texte.wgt/img/ar_down.png diff --git a/resources/library/interactivities/Sépare texte.wgt/img/ar_down_white.png b/resources/library/interactivities/Sépare texte.wgt/img/ar_down_white.png similarity index 100% rename from resources/library/interactivities/Sépare texte.wgt/img/ar_down_white.png rename to resources/library/interactivities/Sépare texte.wgt/img/ar_down_white.png diff --git a/resources/library/interactivities/Sépare texte.wgt/img/bg.png b/resources/library/interactivities/Sépare texte.wgt/img/bg.png similarity index 100% rename from resources/library/interactivities/Sépare texte.wgt/img/bg.png rename to resources/library/interactivities/Sépare texte.wgt/img/bg.png diff --git a/resources/library/interactivities/Sépare texte.wgt/img/bottom.png b/resources/library/interactivities/Sépare texte.wgt/img/bottom.png similarity index 100% rename from resources/library/interactivities/Sépare texte.wgt/img/bottom.png rename to resources/library/interactivities/Sépare texte.wgt/img/bottom.png diff --git a/resources/library/interactivities/Sépare texte.wgt/img/bottom_left.png b/resources/library/interactivities/Sépare texte.wgt/img/bottom_left.png similarity index 100% rename from resources/library/interactivities/Sépare texte.wgt/img/bottom_left.png rename to resources/library/interactivities/Sépare texte.wgt/img/bottom_left.png diff --git a/resources/library/interactivities/Sépare texte.wgt/img/bottom_right.png b/resources/library/interactivities/Sépare texte.wgt/img/bottom_right.png similarity index 100% rename from resources/library/interactivities/Sépare texte.wgt/img/bottom_right.png rename to resources/library/interactivities/Sépare texte.wgt/img/bottom_right.png diff --git a/resources/library/interactivities/Sépare texte.wgt/img/left.png b/resources/library/interactivities/Sépare texte.wgt/img/left.png similarity index 100% rename from resources/library/interactivities/Sépare texte.wgt/img/left.png rename to resources/library/interactivities/Sépare texte.wgt/img/left.png diff --git a/resources/library/interactivities/Sépare texte.wgt/img/pad-bottom-left.png b/resources/library/interactivities/Sépare texte.wgt/img/pad-bottom-left.png similarity index 100% rename from resources/library/interactivities/Sépare texte.wgt/img/pad-bottom-left.png rename to resources/library/interactivities/Sépare texte.wgt/img/pad-bottom-left.png diff --git a/resources/library/interactivities/Sépare texte.wgt/img/pad-bottom-right.png b/resources/library/interactivities/Sépare texte.wgt/img/pad-bottom-right.png similarity index 100% rename from resources/library/interactivities/Sépare texte.wgt/img/pad-bottom-right.png rename to resources/library/interactivities/Sépare texte.wgt/img/pad-bottom-right.png diff --git a/resources/library/interactivities/Sépare texte.wgt/img/pad-bottom.png b/resources/library/interactivities/Sépare texte.wgt/img/pad-bottom.png similarity index 100% rename from resources/library/interactivities/Sépare texte.wgt/img/pad-bottom.png rename to resources/library/interactivities/Sépare texte.wgt/img/pad-bottom.png diff --git a/resources/library/interactivities/Sépare texte.wgt/img/pad-left.png b/resources/library/interactivities/Sépare texte.wgt/img/pad-left.png similarity index 100% rename from resources/library/interactivities/Sépare texte.wgt/img/pad-left.png rename to resources/library/interactivities/Sépare texte.wgt/img/pad-left.png diff --git a/resources/library/interactivities/Sépare texte.wgt/img/pad-right.png b/resources/library/interactivities/Sépare texte.wgt/img/pad-right.png similarity index 100% rename from resources/library/interactivities/Sépare texte.wgt/img/pad-right.png rename to resources/library/interactivities/Sépare texte.wgt/img/pad-right.png diff --git a/resources/library/interactivities/Sépare texte.wgt/img/pad-top-left.png b/resources/library/interactivities/Sépare texte.wgt/img/pad-top-left.png similarity index 100% rename from resources/library/interactivities/Sépare texte.wgt/img/pad-top-left.png rename to resources/library/interactivities/Sépare texte.wgt/img/pad-top-left.png diff --git a/resources/library/interactivities/Sépare texte.wgt/img/pad-top-right.png b/resources/library/interactivities/Sépare texte.wgt/img/pad-top-right.png similarity index 100% rename from resources/library/interactivities/Sépare texte.wgt/img/pad-top-right.png rename to resources/library/interactivities/Sépare texte.wgt/img/pad-top-right.png diff --git a/resources/library/interactivities/Sépare texte.wgt/img/pad-top.png b/resources/library/interactivities/Sépare texte.wgt/img/pad-top.png similarity index 100% rename from resources/library/interactivities/Sépare texte.wgt/img/pad-top.png rename to resources/library/interactivities/Sépare texte.wgt/img/pad-top.png diff --git a/resources/library/interactivities/Sépare texte.wgt/img/right.png b/resources/library/interactivities/Sépare texte.wgt/img/right.png similarity index 100% rename from resources/library/interactivities/Sépare texte.wgt/img/right.png rename to resources/library/interactivities/Sépare texte.wgt/img/right.png diff --git a/resources/library/interactivities/Sépare texte.wgt/img/slate-display.png b/resources/library/interactivities/Sépare texte.wgt/img/slate-display.png similarity index 100% rename from resources/library/interactivities/Sépare texte.wgt/img/slate-display.png rename to resources/library/interactivities/Sépare texte.wgt/img/slate-display.png diff --git a/resources/library/interactivities/Sépare texte.wgt/img/slate-edit.png b/resources/library/interactivities/Sépare texte.wgt/img/slate-edit.png similarity index 100% rename from resources/library/interactivities/Sépare texte.wgt/img/slate-edit.png rename to resources/library/interactivities/Sépare texte.wgt/img/slate-edit.png diff --git a/resources/library/interactivities/Sépare texte.wgt/img/slate-toolbar-edit.png b/resources/library/interactivities/Sépare texte.wgt/img/slate-toolbar-edit.png similarity index 100% rename from resources/library/interactivities/Sépare texte.wgt/img/slate-toolbar-edit.png rename to resources/library/interactivities/Sépare texte.wgt/img/slate-toolbar-edit.png diff --git a/resources/library/interactivities/Sépare texte.wgt/img/slate-toolbar-reload-white.png b/resources/library/interactivities/Sépare texte.wgt/img/slate-toolbar-reload-white.png similarity index 100% rename from resources/library/interactivities/Sépare texte.wgt/img/slate-toolbar-reload-white.png rename to resources/library/interactivities/Sépare texte.wgt/img/slate-toolbar-reload-white.png diff --git a/resources/library/interactivities/Sépare texte.wgt/img/slate-toolbar-reload.png b/resources/library/interactivities/Sépare texte.wgt/img/slate-toolbar-reload.png similarity index 100% rename from resources/library/interactivities/Sépare texte.wgt/img/slate-toolbar-reload.png rename to resources/library/interactivities/Sépare texte.wgt/img/slate-toolbar-reload.png diff --git a/resources/library/interactivities/Sépare texte.wgt/img/top.png b/resources/library/interactivities/Sépare texte.wgt/img/top.png similarity index 100% rename from resources/library/interactivities/Sépare texte.wgt/img/top.png rename to resources/library/interactivities/Sépare texte.wgt/img/top.png diff --git a/resources/library/interactivities/Sépare texte.wgt/img/top_left.png b/resources/library/interactivities/Sépare texte.wgt/img/top_left.png similarity index 100% rename from resources/library/interactivities/Sépare texte.wgt/img/top_left.png rename to resources/library/interactivities/Sépare texte.wgt/img/top_left.png diff --git a/resources/library/interactivities/Sépare texte.wgt/img/top_right.png b/resources/library/interactivities/Sépare texte.wgt/img/top_right.png similarity index 100% rename from resources/library/interactivities/Sépare texte.wgt/img/top_right.png rename to resources/library/interactivities/Sépare texte.wgt/img/top_right.png diff --git a/resources/library/interactivities/Sépare texte.wgt/index.html b/resources/library/interactivities/Sépare texte.wgt/index.html similarity index 100% rename from resources/library/interactivities/Sépare texte.wgt/index.html rename to resources/library/interactivities/Sépare texte.wgt/index.html diff --git a/resources/library/interactivities/Sépare texte.wgt/locales/fr/index.html b/resources/library/interactivities/Sépare texte.wgt/locales/fr/index.html similarity index 100% rename from resources/library/interactivities/Sépare texte.wgt/locales/fr/index.html rename to resources/library/interactivities/Sépare texte.wgt/locales/fr/index.html diff --git a/resources/library/interactivities/Sépare texte.wgt/locales/fr/scripts/wcontainer.js b/resources/library/interactivities/Sépare texte.wgt/locales/fr/scripts/wcontainer.js similarity index 100% rename from resources/library/interactivities/Sépare texte.wgt/locales/fr/scripts/wcontainer.js rename to resources/library/interactivities/Sépare texte.wgt/locales/fr/scripts/wcontainer.js diff --git a/resources/library/interactivities/Sépare texte.wgt/locales/ru/index.html b/resources/library/interactivities/Sépare texte.wgt/locales/ru/index.html similarity index 100% rename from resources/library/interactivities/Sépare texte.wgt/locales/ru/index.html rename to resources/library/interactivities/Sépare texte.wgt/locales/ru/index.html diff --git a/resources/library/interactivities/Sépare texte.wgt/locales/ru/scripts/wcontainer.js b/resources/library/interactivities/Sépare texte.wgt/locales/ru/scripts/wcontainer.js similarity index 100% rename from resources/library/interactivities/Sépare texte.wgt/locales/ru/scripts/wcontainer.js rename to resources/library/interactivities/Sépare texte.wgt/locales/ru/scripts/wcontainer.js diff --git a/resources/library/interactivities/Sépare texte.wgt/scripts/app2.js b/resources/library/interactivities/Sépare texte.wgt/scripts/app2.js similarity index 96% rename from resources/library/interactivities/Sépare texte.wgt/scripts/app2.js rename to resources/library/interactivities/Sépare texte.wgt/scripts/app2.js index f8841728..395bf504 100644 --- a/resources/library/interactivities/Sépare texte.wgt/scripts/app2.js +++ b/resources/library/interactivities/Sépare texte.wgt/scripts/app2.js @@ -1,259 +1,259 @@ - - - -function createElements( text ) -{ - var s = ''; - - var words = text.split( " " ); - - for( var i = 0; i < words.length; i++ ) - { - if( i ){ - s += '
 
'; - } - s += '
' + words[i] + '
' + - '
.
'; - } - - return s; -} - -if (window.widget) { - window.widget.onleave = function(){ - sankore.setPreference("spl_text_style", $(".style_select").find("option:selected").val()); - if(w.editMode) - sankore.setPreference("ordSplText", w.elements.container.find( "textarea" ).val()); - else - sankore.setPreference("ordSplText", w.getData( "text" )); - } -} - -$(document).ready(function() -{ - if(sankore.preference("spl_text_style","")){ - changeStyle(sankore.preference("spl_text_style","")); - $(".style_select").val(sankore.preference("spl_text_style","")); - } else - changeStyle(1) - $("#wgt_display").text(sankoreLang.view); - $("#wgt_edit").text(sankoreLang.edit); - $("#wgt_display, #wgt_edit").click(function(event){ - if(this.id == "wgt_display"){ - if(!$(this).hasClass("selected")){ - $(this).addClass("selected"); - $("#wgt_edit").removeClass("selected"); - $(".style_select").css("display","none"); - $(this).css("display", "none"); - $("#wgt_edit").css("display", "block"); - modeView(); - } - } else { - if(!$(this).hasClass("selected")){ - $(this).addClass("selected"); - $("#wgt_display").removeClass("selected"); - $(".style_select").css("display","block"); - $(this).css("display", "none"); - $("#wgt_display").css("display", "block"); - modeEdit(); - } - } - }); - $("#wgt_name").text(sankoreLang.wgt_name); - $("#wgt_reload").text(sankoreLang.reload).click(function(){ - window.location.reload(); - }); - - $(".style_select option[value='1']").text(sankoreLang.slate); - $(".style_select option[value='2']").text(sankoreLang.pad); - - $(".style_select").change(function (event){ - changeStyle($(this).find("option:selected").val()); - }) - - var w = new wcontainer( "#ub-widget" ); - - var sentences = ""; - - if(window.sankore) - sentences = (sankore.preference("ordSplText", ""))?sankore.preference("ordSplText", ""):sankoreLang.example; - else - sentences = sankoreLang.example; - - w.maxWidth = 600; - - w.setEditContent( '
' ); - w.setViewContent( '
.
' ); - w.setData( "dashWidth", w.elements.container.find( ".dash" ).outerWidth() ); - w.setViewContent( '
M
' ); - w.setData( "lineHeight", w.elements.container.find( ".dash" ).outerHeight() ); - w.setViewContent( "" ); - - - // onViewMode - w.onViewMode = function() - { - // clean up the text - var text = w.elements.container.find( "textarea" ).val() - .replace( /\r/g, '' ).replace( /\n/g, ' ' ).replace( / /g, ' ' ); - - // store the text - w.setData( "text", text ); - - // remove all dots (they are to be set during the exercise) - text = text.replace( /\. /g, ' ' ).trim( ["."] ); - - // create the html - w.setViewContent( createElements( text ) ); - - // the behaviour - w.elements.containerView.find( ".letter" ) - .mouseover( function() - { - var el = $( this ).next(); - - // determine new hover class - var is_fixed = ( el.get( 0 ).className.indexOf( "fixed" ) != -1 ); - var hover_class = is_fixed? - "dash_hover_fixed" : "dash_hover"; - - // assign new hover class - el.addClass( hover_class ) - .data( "hc", hover_class ); - }) - .mouseout( function() - { - var el = $( this ).next(); - // remove current hover class - var hc = el.data( "hc" ); - el.removeClass( hc ); - }) - .click( function() - { - var el = $( this ).next(); - - // remove current hover class - $( this ).trigger( "mouseout" ); - - // toggle fixed class - el.toggleClass( "fixed" ); - - // determine new hover class - // assign new hover class - $( this ).trigger( "mouseover" ); - - w.checkAnswer(); - }); - - w.checkAnswer(); - }; - - // viewSize - w.viewSize = function() - { - var w = 0; - var h = 0; - - var dh = winstance.getData( "lineHeight" ); - var dw = winstance.getData( "dashWidth" ); - - winstance.elements.containerView.find( "div:visible" ).each( function() - { - w += $( this ).outerWidth(); - h = Math.max( h, $( this ).outerHeight( true ) ); - }); - - var square = w*h; - h = Math.max( h, $( winstance.elements.containerView ).height() ); - - if( winstance.maxWidth ) - { - w = Math.min( w, winstance.maxWidth ); - h = parseInt( square / w ); - } - - return { - w: w, - h: h+dh - }; - }; - - // editSize - w.editSize = function() - { - return { - w: winstance.elements.containerEdit.find( "textarea" ).parent().outerWidth( true ), - h: winstance.elements.containerEdit.find( "textarea" ).parent().outerHeight( true ) - }; - }; - - - w.checkAnswer = function() - { - var text = ""; - var ch = ""; - this.elements.containerView.find( "div:visible" ).each( function() - { - if( this.className.indexOf( "fixed" ) != -1 ){ - text += '.'; - } - else if( this.className.indexOf( "dash" ) != -1 ){ - return; - } - else{ - ch = $( this ).html(); - if( ch == " " ){ - ch = " "; - } - text += ch; - } - }); - - if( text == this.getData( "text" ) ){ - this.elements.containerView.addClass( "answerRight" ); - } - else{ - this.elements.containerView.removeClass( "answerRight" ); - } - }; - - - window.w = w; - window.winstance = w; - - w.modeView(); - - //changing the style - function changeStyle(val){ - if(val == 1){ - $(".b_top_left").removeClass("btl_pad"); - $(".b_top_center").removeClass("btc_pad"); - $(".b_top_right").removeClass("btr_pad"); - $(".b_center_left").removeClass("bcl_pad"); - $(".b_center_right").removeClass("bcr_pad"); - $(".b_bottom_right").removeClass("bbr_pad"); - $(".b_bottom_left").removeClass("bbl_pad"); - $(".b_bottom_center").removeClass("bbc_pad"); - $("#wgt_reload").removeClass("pad_color").removeClass("pad_reload"); - $("#wgt_edit").removeClass("pad_color").removeClass("pad_edit"); - $("#wgt_display").removeClass("pad_color").removeClass("pad_edit"); - $("#wgt_name").removeClass("pad_color"); - $(".style_select").removeClass("pad_select"); - } else { - $(".b_top_left").addClass("btl_pad"); - $(".b_top_center").addClass("btc_pad"); - $(".b_top_right").addClass("btr_pad"); - $(".b_center_left").addClass("bcl_pad"); - $(".b_center_right").addClass("bcr_pad"); - $(".b_bottom_right").addClass("bbr_pad"); - $(".b_bottom_left").addClass("bbl_pad"); - $(".b_bottom_center").addClass("bbc_pad"); - $("#wgt_reload").addClass("pad_color").addClass("pad_reload"); - $("#wgt_edit").addClass("pad_color").addClass("pad_edit"); - $("#wgt_display").addClass("pad_color").addClass("pad_edit"); - $("#wgt_name").addClass("pad_color"); - $(".style_select").addClass("pad_select"); - } - } - + + + +function createElements( text ) +{ + var s = ''; + + var words = text.split( " " ); + + for( var i = 0; i < words.length; i++ ) + { + if( i ){ + s += '
 
'; + } + s += '
' + words[i] + '
' + + '
.
'; + } + + return s; +} + +if (window.widget) { + window.widget.onleave = function(){ + sankore.setPreference("spl_text_style", $(".style_select").find("option:selected").val()); + if(w.editMode) + sankore.setPreference("ordSplText", w.elements.container.find( "textarea" ).val()); + else + sankore.setPreference("ordSplText", w.getData( "text" )); + } +} + +$(document).ready(function() +{ + if(sankore.preference("spl_text_style","")){ + changeStyle(sankore.preference("spl_text_style","")); + $(".style_select").val(sankore.preference("spl_text_style","")); + } else + changeStyle(1) + $("#wgt_display").text(sankoreLang.view); + $("#wgt_edit").text(sankoreLang.edit); + $("#wgt_display, #wgt_edit").click(function(event){ + if(this.id == "wgt_display"){ + if(!$(this).hasClass("selected")){ + $(this).addClass("selected"); + $("#wgt_edit").removeClass("selected"); + $(".style_select").css("display","none"); + $(this).css("display", "none"); + $("#wgt_edit").css("display", "block"); + modeView(); + } + } else { + if(!$(this).hasClass("selected")){ + $(this).addClass("selected"); + $("#wgt_display").removeClass("selected"); + $(".style_select").css("display","block"); + $(this).css("display", "none"); + $("#wgt_display").css("display", "block"); + modeEdit(); + } + } + }); + $("#wgt_name").text(sankoreLang.wgt_name); + $("#wgt_reload").text(sankoreLang.reload).click(function(){ + window.location.reload(); + }); + + $(".style_select option[value='1']").text(sankoreLang.slate); + $(".style_select option[value='2']").text(sankoreLang.pad); + + $(".style_select").change(function (event){ + changeStyle($(this).find("option:selected").val()); + }) + + var w = new wcontainer( "#ub-widget" ); + + var sentences = ""; + + if(window.sankore) + sentences = (sankore.preference("ordSplText", ""))?sankore.preference("ordSplText", ""):sankoreLang.example; + else + sentences = sankoreLang.example; + + w.maxWidth = 600; + + w.setEditContent( '
' ); + w.setViewContent( '
.
' ); + w.setData( "dashWidth", w.elements.container.find( ".dash" ).outerWidth() ); + w.setViewContent( '
M
' ); + w.setData( "lineHeight", w.elements.container.find( ".dash" ).outerHeight() ); + w.setViewContent( "" ); + + + // onViewMode + w.onViewMode = function() + { + // clean up the text + var text = w.elements.container.find( "textarea" ).val() + .replace( /\r/g, '' ).replace( /\n/g, ' ' ).replace( / /g, ' ' ); + + // store the text + w.setData( "text", text ); + + // remove all dots (they are to be set during the exercise) + text = text.replace( /\. /g, ' ' ).trim( ["."] ); + + // create the html + w.setViewContent( createElements( text ) ); + + // the behaviour + w.elements.containerView.find( ".letter" ) + .mouseover( function() + { + var el = $( this ).next(); + + // determine new hover class + var is_fixed = ( el.get( 0 ).className.indexOf( "fixed" ) != -1 ); + var hover_class = is_fixed? + "dash_hover_fixed" : "dash_hover"; + + // assign new hover class + el.addClass( hover_class ) + .data( "hc", hover_class ); + }) + .mouseout( function() + { + var el = $( this ).next(); + // remove current hover class + var hc = el.data( "hc" ); + el.removeClass( hc ); + }) + .click( function() + { + var el = $( this ).next(); + + // remove current hover class + $( this ).trigger( "mouseout" ); + + // toggle fixed class + el.toggleClass( "fixed" ); + + // determine new hover class + // assign new hover class + $( this ).trigger( "mouseover" ); + + w.checkAnswer(); + }); + + w.checkAnswer(); + }; + + // viewSize + w.viewSize = function() + { + var w = 0; + var h = 0; + + var dh = winstance.getData( "lineHeight" ); + var dw = winstance.getData( "dashWidth" ); + + winstance.elements.containerView.find( "div:visible" ).each( function() + { + w += $( this ).outerWidth(); + h = Math.max( h, $( this ).outerHeight( true ) ); + }); + + var square = w*h; + h = Math.max( h, $( winstance.elements.containerView ).height() ); + + if( winstance.maxWidth ) + { + w = Math.min( w, winstance.maxWidth ); + h = parseInt( square / w ); + } + + return { + w: w, + h: h+dh + }; + }; + + // editSize + w.editSize = function() + { + return { + w: winstance.elements.containerEdit.find( "textarea" ).parent().outerWidth( true ), + h: winstance.elements.containerEdit.find( "textarea" ).parent().outerHeight( true ) + }; + }; + + + w.checkAnswer = function() + { + var text = ""; + var ch = ""; + this.elements.containerView.find( "div:visible" ).each( function() + { + if( this.className.indexOf( "fixed" ) != -1 ){ + text += '.'; + } + else if( this.className.indexOf( "dash" ) != -1 ){ + return; + } + else{ + ch = $( this ).html(); + if( ch == " " ){ + ch = " "; + } + text += ch; + } + }); + + if( text == this.getData( "text" ) ){ + this.elements.containerView.addClass( "answerRight" ); + } + else{ + this.elements.containerView.removeClass( "answerRight" ); + } + }; + + + window.w = w; + window.winstance = w; + + w.modeView(); + + //changing the style + function changeStyle(val){ + if(val == 1){ + $(".b_top_left").removeClass("btl_pad"); + $(".b_top_center").removeClass("btc_pad"); + $(".b_top_right").removeClass("btr_pad"); + $(".b_center_left").removeClass("bcl_pad"); + $(".b_center_right").removeClass("bcr_pad"); + $(".b_bottom_right").removeClass("bbr_pad"); + $(".b_bottom_left").removeClass("bbl_pad"); + $(".b_bottom_center").removeClass("bbc_pad"); + $("#wgt_reload").removeClass("pad_color").removeClass("pad_reload"); + $("#wgt_edit").removeClass("pad_color").removeClass("pad_edit"); + $("#wgt_display").removeClass("pad_color").removeClass("pad_edit"); + $("#wgt_name").removeClass("pad_color"); + $(".style_select").removeClass("pad_select"); + } else { + $(".b_top_left").addClass("btl_pad"); + $(".b_top_center").addClass("btc_pad"); + $(".b_top_right").addClass("btr_pad"); + $(".b_center_left").addClass("bcl_pad"); + $(".b_center_right").addClass("bcr_pad"); + $(".b_bottom_right").addClass("bbr_pad"); + $(".b_bottom_left").addClass("bbl_pad"); + $(".b_bottom_center").addClass("bbc_pad"); + $("#wgt_reload").addClass("pad_color").addClass("pad_reload"); + $("#wgt_edit").addClass("pad_color").addClass("pad_edit"); + $("#wgt_display").addClass("pad_color").addClass("pad_edit"); + $("#wgt_name").addClass("pad_color"); + $(".style_select").addClass("pad_select"); + } + } + }); \ No newline at end of file diff --git a/resources/library/interactivities/Sépare texte.wgt/scripts/ext.js b/resources/library/interactivities/Sépare texte.wgt/scripts/ext.js similarity index 94% rename from resources/library/interactivities/Sépare texte.wgt/scripts/ext.js rename to resources/library/interactivities/Sépare texte.wgt/scripts/ext.js index 5535b36f..f22c8b36 100644 --- a/resources/library/interactivities/Sépare texte.wgt/scripts/ext.js +++ b/resources/library/interactivities/Sépare texte.wgt/scripts/ext.js @@ -1,41 +1,41 @@ -Array.prototype.shuffle = function( b ) -{ - var i = this.length, j, t; - while( i ) - { - j = Math.floor( ( i-- ) * Math.random() ); - t = b && typeof this[i].shuffle!=='undefined' ? this[i].shuffle() : this[i]; - this[i] = this[j]; - this[j] = t; - } - return this; -}; - - -String.prototype.copy = function() -{ - return this.substring( 0, this.length ); -}; - -String.prototype.trim = function( ext ) -{ - var chars = [ - " ", "\t", "\n", "\r" - ]; - - var s = this.copy(); - - if( arguments.length > 0 ){ - for( var i in ext ){ - chars.push( ext[i] ); - } - } - - while( chars.indexOf( s.charAt( 0 ) ) != -1 ){ - s = s.substring( 1, s.length ); - } - while( chars.indexOf( s.charAt( s.length-1 ) ) != -1 ){ - s = s.substring( 0, s.length-1 ); - } - return s; +Array.prototype.shuffle = function( b ) +{ + var i = this.length, j, t; + while( i ) + { + j = Math.floor( ( i-- ) * Math.random() ); + t = b && typeof this[i].shuffle!=='undefined' ? this[i].shuffle() : this[i]; + this[i] = this[j]; + this[j] = t; + } + return this; +}; + + +String.prototype.copy = function() +{ + return this.substring( 0, this.length ); +}; + +String.prototype.trim = function( ext ) +{ + var chars = [ + " ", "\t", "\n", "\r" + ]; + + var s = this.copy(); + + if( arguments.length > 0 ){ + for( var i in ext ){ + chars.push( ext[i] ); + } + } + + while( chars.indexOf( s.charAt( 0 ) ) != -1 ){ + s = s.substring( 1, s.length ); + } + while( chars.indexOf( s.charAt( s.length-1 ) ) != -1 ){ + s = s.substring( 0, s.length-1 ); + } + return s; }; \ No newline at end of file diff --git a/resources/library/interactivities/Sépare texte.wgt/scripts/jquery-1.6.2.min.js b/resources/library/interactivities/Sépare texte.wgt/scripts/jquery-1.6.2.min.js similarity index 100% rename from resources/library/interactivities/Sépare texte.wgt/scripts/jquery-1.6.2.min.js rename to resources/library/interactivities/Sépare texte.wgt/scripts/jquery-1.6.2.min.js diff --git a/resources/library/interactivities/Sépare texte.wgt/scripts/wcontainer.js b/resources/library/interactivities/Sépare texte.wgt/scripts/wcontainer.js similarity index 96% rename from resources/library/interactivities/Sépare texte.wgt/scripts/wcontainer.js rename to resources/library/interactivities/Sépare texte.wgt/scripts/wcontainer.js index c0bfcf99..e01624ea 100644 --- a/resources/library/interactivities/Sépare texte.wgt/scripts/wcontainer.js +++ b/resources/library/interactivities/Sépare texte.wgt/scripts/wcontainer.js @@ -1,193 +1,193 @@ -var sankoreLang = { - view: "View", - edit: "Edit", - example: "hello, this is the first sentence. hi, this is the second sentence. hello again, this is the third sentence. good morning, this is the fourth sentence. hi, sorry, i\'m late, i\'m the fifth sentence.", - wgt_name: "Split a text", - reload: "Reload", - slate: "Wood", - pad: "Pad" -}; - -// if use the "view/edit" button or rely on the api instead -var isSankore = false; -// whether to do window.resize or not (window = widget area) -var isBrowser = ( typeof( widget ) == "undefined" ); - -function wcontainer( containerID ) -{ - // some protecred variables - var thisInstance = this; - this.editMode = false; - var data = {}; // see setData and getData - - // widget size parameters - this.minHeight = 100; - this.minWidth = 400; - - // set to 0 for no max width restriction - this.maxWidth = 0; - - // links to the elements of the widget - this.elements = {}; - - /* - ============ - create - ============ - - creates html base, inits this.elements, assings events - */ - this.create = function( containerID ) - { - var html = - '
' + - '
' + - '
' + - '
' + - '
' + - '
'; - - var container = $( containerID ); - - container.append( html ); - this.elements.edit = container.find( ".editmode" ); - this.elements.view = container.find( ".viewmode" ); - this.elements.container = container; - this.elements.subcontainer = container.find( "#mp_content" ); - this.elements.containerView = this.elements.subcontainer.find( ".viewmode" ); - this.elements.containerEdit = this.elements.subcontainer.find( ".editmode" ); - - $("#wgt_edit").live("click", function(){ - thisInstance.modeEdit(); - } ); - - $("#wgt_display").live("click", function(){ - thisInstance.modeView(); - } ); - }; - - - /* - =============== - setViewContent - =============== - - assigns custom html to the viewmode container - */ - this.setViewContent = function( html ) - { - this.elements.container.find( "#mp_content .viewmode" ).html( html ); - }; - - /* - =============== - setEditContent - =============== - - assigns custom html to the editmode container - */ - this.setEditContent = function( html ) - { - this.elements.container.find( "#mp_content .editmode" ).html( html ); - }; - - - - /* - ========================= - modeEdit and modeView - ========================= - - switch the widget betweed modes - * for customization extend onEditMode and onViewMode - */ - this.modeEdit = function() - { - this.onEditMode(); - this.editMode = true; - this.elements.edit.removeClass( "hide" ); - this.elements.view.addClass( "hide" ); - - //this.adjustSize(); - }; - this.modeView = function() - { - this.onViewMode(); - this.editMode = false; - this.elements.edit.addClass( "hide" ); - this.elements.view.removeClass( "hide" ); - - //this.adjustSize(); - }; - - /* - ====================== - setData and getData - ====================== - - store some data inside - */ - this.setData = function( name, value ){ - data[name] = value; - }; - this.getData = function( name ){ - if( typeof( data[name] ) == "undefined" ){ - return null; - } else return data[name]; - }; - - - // redefinable methods - - /* - ========================== - onEditMode and onViewMode - ========================== - - these are called when the mode is being changed - */ - this.onEditMode = function(){ - // - }; - this.onViewMode = function(){ - // - }; - - /* - ====================== - viewSize and editSize - ====================== - - calculate container size for the adjustSize method - * they are likely to be redefined for each particular widget - */ - this.viewSize = function(){ - return { - w: this.elements.containerView.outerWidth(), - h: this.elements.containerView.outerHeight() - }; - }; - this.editSize = function(){ - return { - w: this.elements.containerEdit.outerWidth(), - h: this.elements.containerEdit.outerHeight() - }; - }; - - /* - ===================== - checkAnswer - ===================== - - check if the exercise in the view mode was done right - * redefine it for each particular widget - */ - this.checkAnswer = function() - { - // - }; - - - // constructor end - - // if the constructor was called with a parameter, - // call create() automatically - if( arguments.length > 0 ){ - this.create( containerID ); - } - this.setData( "dw", this.elements.container.outerWidth( true ) - this.elements.container.width() ); - this.setData( "dh", this.elements.container.outerHeight( true ) - this.elements.container.height() ); - window.winstance = thisInstance; -} +var sankoreLang = { + view: "View", + edit: "Edit", + example: "hello, this is the first sentence. hi, this is the second sentence. hello again, this is the third sentence. good morning, this is the fourth sentence. hi, sorry, i\'m late, i\'m the fifth sentence.", + wgt_name: "Split a text", + reload: "Reload", + slate: "Wood", + pad: "Pad" +}; + +// if use the "view/edit" button or rely on the api instead +var isSankore = false; +// whether to do window.resize or not (window = widget area) +var isBrowser = ( typeof( widget ) == "undefined" ); + +function wcontainer( containerID ) +{ + // some protecred variables + var thisInstance = this; + this.editMode = false; + var data = {}; // see setData and getData + + // widget size parameters + this.minHeight = 100; + this.minWidth = 400; + + // set to 0 for no max width restriction + this.maxWidth = 0; + + // links to the elements of the widget + this.elements = {}; + + /* + ============ + create + ============ + - creates html base, inits this.elements, assings events + */ + this.create = function( containerID ) + { + var html = + '
' + + '
' + + '
' + + '
' + + '
' + + '
'; + + var container = $( containerID ); + + container.append( html ); + this.elements.edit = container.find( ".editmode" ); + this.elements.view = container.find( ".viewmode" ); + this.elements.container = container; + this.elements.subcontainer = container.find( "#mp_content" ); + this.elements.containerView = this.elements.subcontainer.find( ".viewmode" ); + this.elements.containerEdit = this.elements.subcontainer.find( ".editmode" ); + + $("#wgt_edit").live("click", function(){ + thisInstance.modeEdit(); + } ); + + $("#wgt_display").live("click", function(){ + thisInstance.modeView(); + } ); + }; + + + /* + =============== + setViewContent + =============== + - assigns custom html to the viewmode container + */ + this.setViewContent = function( html ) + { + this.elements.container.find( "#mp_content .viewmode" ).html( html ); + }; + + /* + =============== + setEditContent + =============== + - assigns custom html to the editmode container + */ + this.setEditContent = function( html ) + { + this.elements.container.find( "#mp_content .editmode" ).html( html ); + }; + + + + /* + ========================= + modeEdit and modeView + ========================= + - switch the widget betweed modes + * for customization extend onEditMode and onViewMode + */ + this.modeEdit = function() + { + this.onEditMode(); + this.editMode = true; + this.elements.edit.removeClass( "hide" ); + this.elements.view.addClass( "hide" ); + + //this.adjustSize(); + }; + this.modeView = function() + { + this.onViewMode(); + this.editMode = false; + this.elements.edit.addClass( "hide" ); + this.elements.view.removeClass( "hide" ); + + //this.adjustSize(); + }; + + /* + ====================== + setData and getData + ====================== + - store some data inside + */ + this.setData = function( name, value ){ + data[name] = value; + }; + this.getData = function( name ){ + if( typeof( data[name] ) == "undefined" ){ + return null; + } else return data[name]; + }; + + + // redefinable methods + + /* + ========================== + onEditMode and onViewMode + ========================== + - these are called when the mode is being changed + */ + this.onEditMode = function(){ + // + }; + this.onViewMode = function(){ + // + }; + + /* + ====================== + viewSize and editSize + ====================== + - calculate container size for the adjustSize method + * they are likely to be redefined for each particular widget + */ + this.viewSize = function(){ + return { + w: this.elements.containerView.outerWidth(), + h: this.elements.containerView.outerHeight() + }; + }; + this.editSize = function(){ + return { + w: this.elements.containerEdit.outerWidth(), + h: this.elements.containerEdit.outerHeight() + }; + }; + + /* + ===================== + checkAnswer + ===================== + - check if the exercise in the view mode was done right + * redefine it for each particular widget + */ + this.checkAnswer = function() + { + // + }; + + + // constructor end + + // if the constructor was called with a parameter, + // call create() automatically + if( arguments.length > 0 ){ + this.create( containerID ); + } + this.setData( "dw", this.elements.container.outerWidth( true ) - this.elements.container.width() ); + this.setData( "dh", this.elements.container.outerHeight( true ) - this.elements.container.height() ); + window.winstance = thisInstance; +} diff --git a/resources/library/interactivities/Sépare texte.wgt/styles/app.css b/resources/library/interactivities/Sépare texte.wgt/styles/app.css similarity index 94% rename from resources/library/interactivities/Sépare texte.wgt/styles/app.css rename to resources/library/interactivities/Sépare texte.wgt/styles/app.css index cae87c5a..04d7906b 100644 --- a/resources/library/interactivities/Sépare texte.wgt/styles/app.css +++ b/resources/library/interactivities/Sépare texte.wgt/styles/app.css @@ -1,223 +1,223 @@ -/* custom */ - -#mp_view{ - font-size: 24pt; - word-wrap: normal; -} - -#mp_view div{ - display: inline-block; - cursor: pointer; -} - -#mp_view.answerRight div{ - color: #66cc00; -} - -#mp_view div.dash{ - display: none; - width: 30px; -} - -#mp_view div.dash_hover{ - display: inline-block; - background-image: url( "separator-hover.png" ); -} -#mp_view div.dash_hover_fixed{ - display: inline-block; - background-image: url( "separator-activated.png" ); -} - -#mp_view div.fixed{ - display: inline-block; -} - - -#mp_edit textarea{ - resize: none; - height: 100px; -} - -/*new design*/ - -.selected{ - -} - -.body_table{ - width: 100%; - height: 100%; - border-spacing: 0; -} - -/*top*/ - -.b_top_left{ - width: 54px; - background-image: url(../img/top_left.png); - background-repeat: no-repeat; -} - -.b_top_right{ - width: 54px; - background-image: url(../img/top_right.png); - background-repeat: no-repeat; -} - -.b_top_center{ - height: 54px; - background-image: url(../img/top.png); - background-repeat: repeat-x; -} - -/*bottom*/ - -.b_bottom_left{ - width: 54px; - background-image: url(../img/bottom_left.png); - background-repeat: no-repeat; -} - -.b_bottom_right{ - width: 54px; - background-image: url(../img/bottom_right.png); - background-repeat: no-repeat; -} - -.b_bottom_center{ - background-image: url(../img/bottom.png); - background-repeat: repeat-x; -} - -/*center*/ - -.b_center_left{ - width: 54px; - background-image: url(../img/left.png); - background-repeat: repeat-y; -} - -.b_center_right{ - width: 54px; - background-image: url(../img/right.png); - background-repeat: repeat-y; -} - -#data{ - width: 100%; - height: 100%; - min-height: 250px; - overflow: auto; -} - -#wgt_name{ - height: 44px; - width: 200px; - margin: 10px 10px 0 10px; - padding: 0; - float: left; - /*font-family: "Lobster13Regular";*/ - font-size: 24px; - color: #8c5730; -} - -#wgt_reload, #wgt_edit, #wgt_display{ - cursor: pointer; - width: 80px; - height: 44px; - margin: 10px 10px 0 0; - float: right; - /*font-family: "Lobster13Regular";*/ - font-size: 24px; - color: #8c5730; -} - -#wgt_display{ - width: 100px; - padding-left: 40px; - background-image: url(../img/slate-edit.png); - background-repeat: no-repeat; - background-position: top 0; - display: none; -} - -#wgt_edit{ - width: 100px; - padding-left: 40px; - background-image: url(../img/slate-edit.png); - background-repeat: no-repeat; - background-position: top 0; -} - -#wgt_reload{ - padding-left: 40px; - background-image: url(../img/slate-toolbar-reload.png); - background-repeat: no-repeat; - background-position: top 0; -} - -.style_select{ - width: 120px; - /*font-family: "Lobster13Regular";*/ - font-size: 24px; - float: right; - margin: 10px 20px 0 0; - border-radius: 10px; - background-image: url(../img/ar_down.png); - background-color: #d4aa79; - color: #8c5730; - background-position: 105px 11px; - background-repeat: no-repeat; - -webkit-appearance: menulist-text; - display: none; -} - -.btl_pad{ - background-image: url(../img/pad-top-left.png) !important; -} - -.btc_pad{ - background-image: url(../img/pad-top.png) !important; -} - -.btr_pad{ - background-image: url(../img/pad-top-right.png) !important; -} - -.bcl_pad{ - background-image: url(../img/pad-left.png) !important; -} - -.bcr_pad{ - background-image: url(../img/pad-right.png) !important; -} - -.bbl_pad{ - background-image: url(../img/pad-bottom-left.png) !important; -} - -.bbc_pad{ - background-image: url(../img/pad-bottom.png) !important; -} - -.bbr_pad{ - background-image: url(../img/pad-bottom-right.png) !important; -} - -.pad_color{ - color: white !important; -} - -.pad_reload{ - background-image: url(../img/slate-toolbar-reload-white.png) !important; -} - -.pad_edit{ - background-image: url(../img/slate-display.png) !important; -} - -.pad_select{ - background-color: black !important; - color: white !important; - background-image: url(../img/ar_down_white.png) !important; -} +/* custom */ + +#mp_view{ + font-size: 24pt; + word-wrap: normal; +} + +#mp_view div{ + display: inline-block; + cursor: pointer; +} + +#mp_view.answerRight div{ + color: #66cc00; +} + +#mp_view div.dash{ + display: none; + width: 30px; +} + +#mp_view div.dash_hover{ + display: inline-block; + background-image: url( "separator-hover.png" ); +} +#mp_view div.dash_hover_fixed{ + display: inline-block; + background-image: url( "separator-activated.png" ); +} + +#mp_view div.fixed{ + display: inline-block; +} + + +#mp_edit textarea{ + resize: none; + height: 100px; +} + +/*new design*/ + +.selected{ + +} + +.body_table{ + width: 100%; + height: 100%; + border-spacing: 0; +} + +/*top*/ + +.b_top_left{ + width: 54px; + background-image: url(../img/top_left.png); + background-repeat: no-repeat; +} + +.b_top_right{ + width: 54px; + background-image: url(../img/top_right.png); + background-repeat: no-repeat; +} + +.b_top_center{ + height: 54px; + background-image: url(../img/top.png); + background-repeat: repeat-x; +} + +/*bottom*/ + +.b_bottom_left{ + width: 54px; + background-image: url(../img/bottom_left.png); + background-repeat: no-repeat; +} + +.b_bottom_right{ + width: 54px; + background-image: url(../img/bottom_right.png); + background-repeat: no-repeat; +} + +.b_bottom_center{ + background-image: url(../img/bottom.png); + background-repeat: repeat-x; +} + +/*center*/ + +.b_center_left{ + width: 54px; + background-image: url(../img/left.png); + background-repeat: repeat-y; +} + +.b_center_right{ + width: 54px; + background-image: url(../img/right.png); + background-repeat: repeat-y; +} + +#data{ + width: 100%; + height: 100%; + min-height: 250px; + overflow: auto; +} + +#wgt_name{ + height: 44px; + width: 200px; + margin: 10px 10px 0 10px; + padding: 0; + float: left; + /*font-family: "Lobster13Regular";*/ + font-size: 24px; + color: #8c5730; +} + +#wgt_reload, #wgt_edit, #wgt_display{ + cursor: pointer; + width: 80px; + height: 44px; + margin: 10px 10px 0 0; + float: right; + /*font-family: "Lobster13Regular";*/ + font-size: 24px; + color: #8c5730; +} + +#wgt_display{ + width: 100px; + padding-left: 40px; + background-image: url(../img/slate-edit.png); + background-repeat: no-repeat; + background-position: top 0; + display: none; +} + +#wgt_edit{ + width: 100px; + padding-left: 40px; + background-image: url(../img/slate-edit.png); + background-repeat: no-repeat; + background-position: top 0; +} + +#wgt_reload{ + padding-left: 40px; + background-image: url(../img/slate-toolbar-reload.png); + background-repeat: no-repeat; + background-position: top 0; +} + +.style_select{ + width: 120px; + /*font-family: "Lobster13Regular";*/ + font-size: 24px; + float: right; + margin: 10px 20px 0 0; + border-radius: 10px; + background-image: url(../img/ar_down.png); + background-color: #d4aa79; + color: #8c5730; + background-position: 105px 11px; + background-repeat: no-repeat; + -webkit-appearance: menulist-text; + display: none; +} + +.btl_pad{ + background-image: url(../img/pad-top-left.png) !important; +} + +.btc_pad{ + background-image: url(../img/pad-top.png) !important; +} + +.btr_pad{ + background-image: url(../img/pad-top-right.png) !important; +} + +.bcl_pad{ + background-image: url(../img/pad-left.png) !important; +} + +.bcr_pad{ + background-image: url(../img/pad-right.png) !important; +} + +.bbl_pad{ + background-image: url(../img/pad-bottom-left.png) !important; +} + +.bbc_pad{ + background-image: url(../img/pad-bottom.png) !important; +} + +.bbr_pad{ + background-image: url(../img/pad-bottom-right.png) !important; +} + +.pad_color{ + color: white !important; +} + +.pad_reload{ + background-image: url(../img/slate-toolbar-reload-white.png) !important; +} + +.pad_edit{ + background-image: url(../img/slate-display.png) !important; +} + +.pad_select{ + background-color: black !important; + color: white !important; + background-image: url(../img/ar_down_white.png) !important; +} diff --git a/resources/library/interactivities/Sépare texte.wgt/styles/fonts/Lobster/Lobster_1.3-webfont.eot b/resources/library/interactivities/Sépare texte.wgt/styles/fonts/Lobster/Lobster_1.3-webfont.eot similarity index 100% rename from resources/library/interactivities/Sépare texte.wgt/styles/fonts/Lobster/Lobster_1.3-webfont.eot rename to resources/library/interactivities/Sépare texte.wgt/styles/fonts/Lobster/Lobster_1.3-webfont.eot diff --git a/resources/library/interactivities/Sépare texte.wgt/styles/fonts/Lobster/Lobster_1.3-webfont.svg b/resources/library/interactivities/Sépare texte.wgt/styles/fonts/Lobster/Lobster_1.3-webfont.svg similarity index 100% rename from resources/library/interactivities/Sépare texte.wgt/styles/fonts/Lobster/Lobster_1.3-webfont.svg rename to resources/library/interactivities/Sépare texte.wgt/styles/fonts/Lobster/Lobster_1.3-webfont.svg diff --git a/resources/library/interactivities/Sépare texte.wgt/styles/fonts/Lobster/Lobster_1.3-webfont.ttf b/resources/library/interactivities/Sépare texte.wgt/styles/fonts/Lobster/Lobster_1.3-webfont.ttf similarity index 100% rename from resources/library/interactivities/Sépare texte.wgt/styles/fonts/Lobster/Lobster_1.3-webfont.ttf rename to resources/library/interactivities/Sépare texte.wgt/styles/fonts/Lobster/Lobster_1.3-webfont.ttf diff --git a/resources/library/interactivities/Sépare texte.wgt/styles/fonts/Lobster/Lobster_1.3-webfont.woff b/resources/library/interactivities/Sépare texte.wgt/styles/fonts/Lobster/Lobster_1.3-webfont.woff similarity index 100% rename from resources/library/interactivities/Sépare texte.wgt/styles/fonts/Lobster/Lobster_1.3-webfont.woff rename to resources/library/interactivities/Sépare texte.wgt/styles/fonts/Lobster/Lobster_1.3-webfont.woff diff --git a/resources/library/interactivities/Sépare texte.wgt/styles/fonts/Lobster/SIL Open Font License 1.1.txt b/resources/library/interactivities/Sépare texte.wgt/styles/fonts/Lobster/SIL Open Font License 1.1.txt similarity index 100% rename from resources/library/interactivities/Sépare texte.wgt/styles/fonts/Lobster/SIL Open Font License 1.1.txt rename to resources/library/interactivities/Sépare texte.wgt/styles/fonts/Lobster/SIL Open Font License 1.1.txt diff --git a/resources/library/interactivities/Sépare texte.wgt/styles/fonts/Lobster/demo.html b/resources/library/interactivities/Sépare texte.wgt/styles/fonts/Lobster/demo.html similarity index 100% rename from resources/library/interactivities/Sépare texte.wgt/styles/fonts/Lobster/demo.html rename to resources/library/interactivities/Sépare texte.wgt/styles/fonts/Lobster/demo.html diff --git a/resources/library/interactivities/Sépare texte.wgt/styles/fonts/Lobster/stylesheet.css b/resources/library/interactivities/Sépare texte.wgt/styles/fonts/Lobster/stylesheet.css similarity index 100% rename from resources/library/interactivities/Sépare texte.wgt/styles/fonts/Lobster/stylesheet.css rename to resources/library/interactivities/Sépare texte.wgt/styles/fonts/Lobster/stylesheet.css diff --git a/resources/library/interactivities/Sépare texte.wgt/styles/fonts/SF-Toontime/SF_Toontime-webfont.eot b/resources/library/interactivities/Sépare texte.wgt/styles/fonts/SF-Toontime/SF_Toontime-webfont.eot similarity index 100% rename from resources/library/interactivities/Sépare texte.wgt/styles/fonts/SF-Toontime/SF_Toontime-webfont.eot rename to resources/library/interactivities/Sépare texte.wgt/styles/fonts/SF-Toontime/SF_Toontime-webfont.eot diff --git a/resources/library/interactivities/Sépare texte.wgt/styles/fonts/SF-Toontime/SF_Toontime-webfont.svg b/resources/library/interactivities/Sépare texte.wgt/styles/fonts/SF-Toontime/SF_Toontime-webfont.svg similarity index 100% rename from resources/library/interactivities/Sépare texte.wgt/styles/fonts/SF-Toontime/SF_Toontime-webfont.svg rename to resources/library/interactivities/Sépare texte.wgt/styles/fonts/SF-Toontime/SF_Toontime-webfont.svg diff --git a/resources/library/interactivities/Sépare texte.wgt/styles/fonts/SF-Toontime/SF_Toontime-webfont.ttf b/resources/library/interactivities/Sépare texte.wgt/styles/fonts/SF-Toontime/SF_Toontime-webfont.ttf similarity index 100% rename from resources/library/interactivities/Sépare texte.wgt/styles/fonts/SF-Toontime/SF_Toontime-webfont.ttf rename to resources/library/interactivities/Sépare texte.wgt/styles/fonts/SF-Toontime/SF_Toontime-webfont.ttf diff --git a/resources/library/interactivities/Sépare texte.wgt/styles/fonts/SF-Toontime/SF_Toontime-webfont.woff b/resources/library/interactivities/Sépare texte.wgt/styles/fonts/SF-Toontime/SF_Toontime-webfont.woff similarity index 100% rename from resources/library/interactivities/Sépare texte.wgt/styles/fonts/SF-Toontime/SF_Toontime-webfont.woff rename to resources/library/interactivities/Sépare texte.wgt/styles/fonts/SF-Toontime/SF_Toontime-webfont.woff diff --git a/resources/library/interactivities/Sépare texte.wgt/styles/fonts/SF-Toontime/SF_Toontime_Blotch-webfont.eot b/resources/library/interactivities/Sépare texte.wgt/styles/fonts/SF-Toontime/SF_Toontime_Blotch-webfont.eot similarity index 100% rename from resources/library/interactivities/Sépare texte.wgt/styles/fonts/SF-Toontime/SF_Toontime_Blotch-webfont.eot rename to resources/library/interactivities/Sépare texte.wgt/styles/fonts/SF-Toontime/SF_Toontime_Blotch-webfont.eot diff --git a/resources/library/interactivities/Sépare texte.wgt/styles/fonts/SF-Toontime/SF_Toontime_Blotch-webfont.svg b/resources/library/interactivities/Sépare texte.wgt/styles/fonts/SF-Toontime/SF_Toontime_Blotch-webfont.svg similarity index 100% rename from resources/library/interactivities/Sépare texte.wgt/styles/fonts/SF-Toontime/SF_Toontime_Blotch-webfont.svg rename to resources/library/interactivities/Sépare texte.wgt/styles/fonts/SF-Toontime/SF_Toontime_Blotch-webfont.svg diff --git a/resources/library/interactivities/Sépare texte.wgt/styles/fonts/SF-Toontime/SF_Toontime_Blotch-webfont.ttf b/resources/library/interactivities/Sépare texte.wgt/styles/fonts/SF-Toontime/SF_Toontime_Blotch-webfont.ttf similarity index 100% rename from resources/library/interactivities/Sépare texte.wgt/styles/fonts/SF-Toontime/SF_Toontime_Blotch-webfont.ttf rename to resources/library/interactivities/Sépare texte.wgt/styles/fonts/SF-Toontime/SF_Toontime_Blotch-webfont.ttf diff --git a/resources/library/interactivities/Sépare texte.wgt/styles/fonts/SF-Toontime/SF_Toontime_Blotch-webfont.woff b/resources/library/interactivities/Sépare texte.wgt/styles/fonts/SF-Toontime/SF_Toontime_Blotch-webfont.woff similarity index 100% rename from resources/library/interactivities/Sépare texte.wgt/styles/fonts/SF-Toontime/SF_Toontime_Blotch-webfont.woff rename to resources/library/interactivities/Sépare texte.wgt/styles/fonts/SF-Toontime/SF_Toontime_Blotch-webfont.woff diff --git a/resources/library/interactivities/Sépare texte.wgt/styles/fonts/SF-Toontime/SF_Toontime_Blotch_Italic-webfont.eot b/resources/library/interactivities/Sépare texte.wgt/styles/fonts/SF-Toontime/SF_Toontime_Blotch_Italic-webfont.eot similarity index 100% rename from resources/library/interactivities/Sépare texte.wgt/styles/fonts/SF-Toontime/SF_Toontime_Blotch_Italic-webfont.eot rename to resources/library/interactivities/Sépare texte.wgt/styles/fonts/SF-Toontime/SF_Toontime_Blotch_Italic-webfont.eot diff --git a/resources/library/interactivities/Sépare texte.wgt/styles/fonts/SF-Toontime/SF_Toontime_Blotch_Italic-webfont.svg b/resources/library/interactivities/Sépare texte.wgt/styles/fonts/SF-Toontime/SF_Toontime_Blotch_Italic-webfont.svg similarity index 100% rename from resources/library/interactivities/Sépare texte.wgt/styles/fonts/SF-Toontime/SF_Toontime_Blotch_Italic-webfont.svg rename to resources/library/interactivities/Sépare texte.wgt/styles/fonts/SF-Toontime/SF_Toontime_Blotch_Italic-webfont.svg diff --git a/resources/library/interactivities/Sépare texte.wgt/styles/fonts/SF-Toontime/SF_Toontime_Blotch_Italic-webfont.ttf b/resources/library/interactivities/Sépare texte.wgt/styles/fonts/SF-Toontime/SF_Toontime_Blotch_Italic-webfont.ttf similarity index 100% rename from resources/library/interactivities/Sépare texte.wgt/styles/fonts/SF-Toontime/SF_Toontime_Blotch_Italic-webfont.ttf rename to resources/library/interactivities/Sépare texte.wgt/styles/fonts/SF-Toontime/SF_Toontime_Blotch_Italic-webfont.ttf diff --git a/resources/library/interactivities/Sépare texte.wgt/styles/fonts/SF-Toontime/SF_Toontime_Blotch_Italic-webfont.woff b/resources/library/interactivities/Sépare texte.wgt/styles/fonts/SF-Toontime/SF_Toontime_Blotch_Italic-webfont.woff similarity index 100% rename from resources/library/interactivities/Sépare texte.wgt/styles/fonts/SF-Toontime/SF_Toontime_Blotch_Italic-webfont.woff rename to resources/library/interactivities/Sépare texte.wgt/styles/fonts/SF-Toontime/SF_Toontime_Blotch_Italic-webfont.woff diff --git a/resources/library/interactivities/Sépare texte.wgt/styles/fonts/SF-Toontime/SF_Toontime_Bold-webfont.eot b/resources/library/interactivities/Sépare texte.wgt/styles/fonts/SF-Toontime/SF_Toontime_Bold-webfont.eot similarity index 100% rename from resources/library/interactivities/Sépare texte.wgt/styles/fonts/SF-Toontime/SF_Toontime_Bold-webfont.eot rename to resources/library/interactivities/Sépare texte.wgt/styles/fonts/SF-Toontime/SF_Toontime_Bold-webfont.eot diff --git a/resources/library/interactivities/Sépare texte.wgt/styles/fonts/SF-Toontime/SF_Toontime_Bold-webfont.svg b/resources/library/interactivities/Sépare texte.wgt/styles/fonts/SF-Toontime/SF_Toontime_Bold-webfont.svg similarity index 100% rename from resources/library/interactivities/Sépare texte.wgt/styles/fonts/SF-Toontime/SF_Toontime_Bold-webfont.svg rename to resources/library/interactivities/Sépare texte.wgt/styles/fonts/SF-Toontime/SF_Toontime_Bold-webfont.svg diff --git a/resources/library/interactivities/Sépare texte.wgt/styles/fonts/SF-Toontime/SF_Toontime_Bold-webfont.ttf b/resources/library/interactivities/Sépare texte.wgt/styles/fonts/SF-Toontime/SF_Toontime_Bold-webfont.ttf similarity index 100% rename from resources/library/interactivities/Sépare texte.wgt/styles/fonts/SF-Toontime/SF_Toontime_Bold-webfont.ttf rename to resources/library/interactivities/Sépare texte.wgt/styles/fonts/SF-Toontime/SF_Toontime_Bold-webfont.ttf diff --git a/resources/library/interactivities/Sépare texte.wgt/styles/fonts/SF-Toontime/SF_Toontime_Bold-webfont.woff b/resources/library/interactivities/Sépare texte.wgt/styles/fonts/SF-Toontime/SF_Toontime_Bold-webfont.woff similarity index 100% rename from resources/library/interactivities/Sépare texte.wgt/styles/fonts/SF-Toontime/SF_Toontime_Bold-webfont.woff rename to resources/library/interactivities/Sépare texte.wgt/styles/fonts/SF-Toontime/SF_Toontime_Bold-webfont.woff diff --git a/resources/library/interactivities/Sépare texte.wgt/styles/fonts/SF-Toontime/SF_Toontime_Bold_Italic-webfont.eot b/resources/library/interactivities/Sépare texte.wgt/styles/fonts/SF-Toontime/SF_Toontime_Bold_Italic-webfont.eot similarity index 100% rename from resources/library/interactivities/Sépare texte.wgt/styles/fonts/SF-Toontime/SF_Toontime_Bold_Italic-webfont.eot rename to resources/library/interactivities/Sépare texte.wgt/styles/fonts/SF-Toontime/SF_Toontime_Bold_Italic-webfont.eot diff --git a/resources/library/interactivities/Sépare texte.wgt/styles/fonts/SF-Toontime/SF_Toontime_Bold_Italic-webfont.svg b/resources/library/interactivities/Sépare texte.wgt/styles/fonts/SF-Toontime/SF_Toontime_Bold_Italic-webfont.svg similarity index 100% rename from resources/library/interactivities/Sépare texte.wgt/styles/fonts/SF-Toontime/SF_Toontime_Bold_Italic-webfont.svg rename to resources/library/interactivities/Sépare texte.wgt/styles/fonts/SF-Toontime/SF_Toontime_Bold_Italic-webfont.svg diff --git a/resources/library/interactivities/Sépare texte.wgt/styles/fonts/SF-Toontime/SF_Toontime_Bold_Italic-webfont.ttf b/resources/library/interactivities/Sépare texte.wgt/styles/fonts/SF-Toontime/SF_Toontime_Bold_Italic-webfont.ttf similarity index 100% rename from resources/library/interactivities/Sépare texte.wgt/styles/fonts/SF-Toontime/SF_Toontime_Bold_Italic-webfont.ttf rename to resources/library/interactivities/Sépare texte.wgt/styles/fonts/SF-Toontime/SF_Toontime_Bold_Italic-webfont.ttf diff --git a/resources/library/interactivities/Sépare texte.wgt/styles/fonts/SF-Toontime/SF_Toontime_Bold_Italic-webfont.woff b/resources/library/interactivities/Sépare texte.wgt/styles/fonts/SF-Toontime/SF_Toontime_Bold_Italic-webfont.woff similarity index 100% rename from resources/library/interactivities/Sépare texte.wgt/styles/fonts/SF-Toontime/SF_Toontime_Bold_Italic-webfont.woff rename to resources/library/interactivities/Sépare texte.wgt/styles/fonts/SF-Toontime/SF_Toontime_Bold_Italic-webfont.woff diff --git a/resources/library/interactivities/Sépare texte.wgt/styles/fonts/SF-Toontime/SF_Toontime_Italic-webfont.eot b/resources/library/interactivities/Sépare texte.wgt/styles/fonts/SF-Toontime/SF_Toontime_Italic-webfont.eot similarity index 100% rename from resources/library/interactivities/Sépare texte.wgt/styles/fonts/SF-Toontime/SF_Toontime_Italic-webfont.eot rename to resources/library/interactivities/Sépare texte.wgt/styles/fonts/SF-Toontime/SF_Toontime_Italic-webfont.eot diff --git a/resources/library/interactivities/Sépare texte.wgt/styles/fonts/SF-Toontime/SF_Toontime_Italic-webfont.svg b/resources/library/interactivities/Sépare texte.wgt/styles/fonts/SF-Toontime/SF_Toontime_Italic-webfont.svg similarity index 100% rename from resources/library/interactivities/Sépare texte.wgt/styles/fonts/SF-Toontime/SF_Toontime_Italic-webfont.svg rename to resources/library/interactivities/Sépare texte.wgt/styles/fonts/SF-Toontime/SF_Toontime_Italic-webfont.svg diff --git a/resources/library/interactivities/Sépare texte.wgt/styles/fonts/SF-Toontime/SF_Toontime_Italic-webfont.ttf b/resources/library/interactivities/Sépare texte.wgt/styles/fonts/SF-Toontime/SF_Toontime_Italic-webfont.ttf similarity index 100% rename from resources/library/interactivities/Sépare texte.wgt/styles/fonts/SF-Toontime/SF_Toontime_Italic-webfont.ttf rename to resources/library/interactivities/Sépare texte.wgt/styles/fonts/SF-Toontime/SF_Toontime_Italic-webfont.ttf diff --git a/resources/library/interactivities/Sépare texte.wgt/styles/fonts/SF-Toontime/SF_Toontime_Italic-webfont.woff b/resources/library/interactivities/Sépare texte.wgt/styles/fonts/SF-Toontime/SF_Toontime_Italic-webfont.woff similarity index 100% rename from resources/library/interactivities/Sépare texte.wgt/styles/fonts/SF-Toontime/SF_Toontime_Italic-webfont.woff rename to resources/library/interactivities/Sépare texte.wgt/styles/fonts/SF-Toontime/SF_Toontime_Italic-webfont.woff diff --git a/resources/library/interactivities/Sépare texte.wgt/styles/fonts/SF-Toontime/ShyFonts Font License.txt b/resources/library/interactivities/Sépare texte.wgt/styles/fonts/SF-Toontime/ShyFonts Font License.txt similarity index 100% rename from resources/library/interactivities/Sépare texte.wgt/styles/fonts/SF-Toontime/ShyFonts Font License.txt rename to resources/library/interactivities/Sépare texte.wgt/styles/fonts/SF-Toontime/ShyFonts Font License.txt diff --git a/resources/library/interactivities/Sépare texte.wgt/styles/fonts/SF-Toontime/demo.html b/resources/library/interactivities/Sépare texte.wgt/styles/fonts/SF-Toontime/demo.html similarity index 100% rename from resources/library/interactivities/Sépare texte.wgt/styles/fonts/SF-Toontime/demo.html rename to resources/library/interactivities/Sépare texte.wgt/styles/fonts/SF-Toontime/demo.html diff --git a/resources/library/interactivities/Sépare texte.wgt/styles/fonts/SF-Toontime/stylesheet.css b/resources/library/interactivities/Sépare texte.wgt/styles/fonts/SF-Toontime/stylesheet.css similarity index 100% rename from resources/library/interactivities/Sépare texte.wgt/styles/fonts/SF-Toontime/stylesheet.css rename to resources/library/interactivities/Sépare texte.wgt/styles/fonts/SF-Toontime/stylesheet.css diff --git a/resources/library/interactivities/Sépare texte.wgt/styles/master.css b/resources/library/interactivities/Sépare texte.wgt/styles/master.css similarity index 100% rename from resources/library/interactivities/Sépare texte.wgt/styles/master.css rename to resources/library/interactivities/Sépare texte.wgt/styles/master.css diff --git a/resources/library/interactivities/Sépare texte.wgt/styles/separator-activated.png b/resources/library/interactivities/Sépare texte.wgt/styles/separator-activated.png similarity index 100% rename from resources/library/interactivities/Sépare texte.wgt/styles/separator-activated.png rename to resources/library/interactivities/Sépare texte.wgt/styles/separator-activated.png diff --git a/resources/library/interactivities/Sépare texte.wgt/styles/separator-hover.png b/resources/library/interactivities/Sépare texte.wgt/styles/separator-hover.png similarity index 100% rename from resources/library/interactivities/Sépare texte.wgt/styles/separator-hover.png rename to resources/library/interactivities/Sépare texte.wgt/styles/separator-hover.png diff --git a/resources/library/interactivities/Sépare phrase.wgt/styles/wcontainer.css b/resources/library/interactivities/Sépare texte.wgt/styles/wcontainer.css similarity index 89% rename from resources/library/interactivities/Sépare phrase.wgt/styles/wcontainer.css rename to resources/library/interactivities/Sépare texte.wgt/styles/wcontainer.css index 86faa54c..c78b8324 100644 --- a/resources/library/interactivities/Sépare phrase.wgt/styles/wcontainer.css +++ b/resources/library/interactivities/Sépare texte.wgt/styles/wcontainer.css @@ -1,19 +1,19 @@ -/* frame */ - -#mp_setup{ - text-align: right; -} - -#mp_content{ - margin-top: 5px; -} - -.viewmode{ - /* empty */ -} -.editmode{ - /* empty */ -} -.hide{ - display: none; +/* frame */ + +#mp_setup{ + text-align: right; +} + +#mp_content{ + margin-top: 5px; +} + +.viewmode{ + /* empty */ +} +.editmode{ + /* empty */ +} +.hide{ + display: none; } \ No newline at end of file