Merge branch 'develop' into Ilia_dev

preferencesAboutTextFull
Ilia Ryabokon 12 years ago
commit 6d66258441
  1. 18
      plugins/cffadaptor/src/UBCFFAdaptor.cpp
  2. 7
      plugins/cffadaptor/src/UBCFFConstants.h
  3. 8
      resources/i18n/sankore_ar.ts
  4. 8
      resources/i18n/sankore_bg.ts
  5. 8
      resources/i18n/sankore_ca.ts
  6. 8
      resources/i18n/sankore_cs.ts
  7. 8
      resources/i18n/sankore_da.ts
  8. 8
      resources/i18n/sankore_de.ts
  9. 8
      resources/i18n/sankore_el.ts
  10. 8
      resources/i18n/sankore_en.ts
  11. 8
      resources/i18n/sankore_en_UK.ts
  12. 8
      resources/i18n/sankore_es.ts
  13. 9
      resources/i18n/sankore_fr.ts
  14. 9
      resources/i18n/sankore_fr_CH.ts
  15. 8
      resources/i18n/sankore_it.ts
  16. 8
      resources/i18n/sankore_iw.ts
  17. 8
      resources/i18n/sankore_ja.ts
  18. 8
      resources/i18n/sankore_ko.ts
  19. 8
      resources/i18n/sankore_mg.ts
  20. 8
      resources/i18n/sankore_nb.ts
  21. 8
      resources/i18n/sankore_nl.ts
  22. 8
      resources/i18n/sankore_pl.ts
  23. 8
      resources/i18n/sankore_pt.ts
  24. 8
      resources/i18n/sankore_rm.ts
  25. 8
      resources/i18n/sankore_ro.ts
  26. 8
      resources/i18n/sankore_ru.ts
  27. 8
      resources/i18n/sankore_sk.ts
  28. 8
      resources/i18n/sankore_sv.ts
  29. 8
      resources/i18n/sankore_tr.ts
  30. 8
      resources/i18n/sankore_zh.ts
  31. 2
      resources/library/interactivities/Calcul.wgt/css/main.css
  32. 2
      resources/library/interactivities/Calcul.wgt/js/main.js
  33. 141
      resources/library/interactivities/Cat text.wgt/css/basic.css
  34. BIN
      resources/library/interactivities/Cat text.wgt/img/ar_down.png
  35. BIN
      resources/library/interactivities/Cat text.wgt/img/ar_down_white.png
  36. BIN
      resources/library/interactivities/Cat text.wgt/img/green_point.png
  37. 0
      resources/library/interactivities/Cat text.wgt/img/parameters-bg.png
  38. BIN
      resources/library/interactivities/Cat text.wgt/img/red_point.png
  39. BIN
      resources/library/interactivities/Cat text.wgt/img/slate-display.png
  40. BIN
      resources/library/interactivities/Cat text.wgt/img/slate-edit.png
  41. BIN
      resources/library/interactivities/Cat text.wgt/img/slate-help-white.png
  42. BIN
      resources/library/interactivities/Cat text.wgt/img/slate-help.png
  43. 0
      resources/library/interactivities/Cat text.wgt/img/slate-toolbar-help.png
  44. BIN
      resources/library/interactivities/Cat text.wgt/img/slate-toolbar-reload-white.png
  45. BIN
      resources/library/interactivities/Cat text.wgt/img/slate-toolbar-reload.png
  46. 0
      resources/library/interactivities/Cat text.wgt/img/toolbar-edit.png
  47. 0
      resources/library/interactivities/Cat text.wgt/img/toolbar-help.png
  48. 0
      resources/library/interactivities/Cat text.wgt/img/toolbar-reload.png
  49. 20
      resources/library/interactivities/Cat text.wgt/index.html
  50. 51
      resources/library/interactivities/Cat text.wgt/js/script.js
  51. 19
      resources/library/interactivities/Cat text.wgt/locales/fr/index.html
  52. 79
      resources/library/interactivities/Cat text.wgt/locales/fr/js/script.js
  53. 19
      resources/library/interactivities/Cat text.wgt/locales/ru/index.html
  54. 53
      resources/library/interactivities/Cat text.wgt/locales/ru/js/script.js
  55. 133
      resources/library/interactivities/Choisir.wgt/css/basic.css
  56. BIN
      resources/library/interactivities/Choisir.wgt/images/ar_down.png
  57. BIN
      resources/library/interactivities/Choisir.wgt/images/ar_down_white.png
  58. 0
      resources/library/interactivities/Choisir.wgt/images/parameters-bg.png
  59. BIN
      resources/library/interactivities/Choisir.wgt/images/slate-display.png
  60. BIN
      resources/library/interactivities/Choisir.wgt/images/slate-edit.png
  61. BIN
      resources/library/interactivities/Choisir.wgt/images/slate-help-white.png
  62. BIN
      resources/library/interactivities/Choisir.wgt/images/slate-help.png
  63. 0
      resources/library/interactivities/Choisir.wgt/images/slate-toolbar-help.png
  64. BIN
      resources/library/interactivities/Choisir.wgt/images/slate-toolbar-reload-white.png
  65. BIN
      resources/library/interactivities/Choisir.wgt/images/slate-toolbar-reload.png
  66. 0
      resources/library/interactivities/Choisir.wgt/images/toolbar-edit.png
  67. 0
      resources/library/interactivities/Choisir.wgt/images/toolbar-help.png
  68. 0
      resources/library/interactivities/Choisir.wgt/images/toolbar-reload.png
  69. 19
      resources/library/interactivities/Choisir.wgt/index.html
  70. 19
      resources/library/interactivities/Choisir.wgt/locales/fr/index.html
  71. 178
      resources/library/interactivities/Choisir.wgt/locales/fr/scripts/selQuestionApp.js
  72. 19
      resources/library/interactivities/Choisir.wgt/locales/ru/index.html
  73. 176
      resources/library/interactivities/Choisir.wgt/locales/ru/scripts/selQuestionApp.js
  74. 52
      resources/library/interactivities/Choisir.wgt/scripts/selQuestionApp.js
  75. 144
      resources/library/interactivities/Etudier.wgt/css/basic.css
  76. BIN
      resources/library/interactivities/Etudier.wgt/img/ar_down.png
  77. BIN
      resources/library/interactivities/Etudier.wgt/img/ar_down_white.png
  78. BIN
      resources/library/interactivities/Etudier.wgt/img/green_point.png
  79. 0
      resources/library/interactivities/Etudier.wgt/img/parameters-bg.png
  80. BIN
      resources/library/interactivities/Etudier.wgt/img/red_point.png
  81. BIN
      resources/library/interactivities/Etudier.wgt/img/slate-display.png
  82. BIN
      resources/library/interactivities/Etudier.wgt/img/slate-edit.png
  83. BIN
      resources/library/interactivities/Etudier.wgt/img/slate-help-white.png
  84. BIN
      resources/library/interactivities/Etudier.wgt/img/slate-help.png
  85. 0
      resources/library/interactivities/Etudier.wgt/img/slate-toolbar-help.png
  86. BIN
      resources/library/interactivities/Etudier.wgt/img/slate-toolbar-reload-white.png
  87. BIN
      resources/library/interactivities/Etudier.wgt/img/slate-toolbar-reload.png
  88. 0
      resources/library/interactivities/Etudier.wgt/img/toolbar-edit.png
  89. 0
      resources/library/interactivities/Etudier.wgt/img/toolbar-help.png
  90. 0
      resources/library/interactivities/Etudier.wgt/img/toolbar-reload.png
  91. 16
      resources/library/interactivities/Etudier.wgt/index.html
  92. 53
      resources/library/interactivities/Etudier.wgt/js/script.js
  93. 18
      resources/library/interactivities/Etudier.wgt/locales/fr/index.html
  94. 77
      resources/library/interactivities/Etudier.wgt/locales/fr/js/script.js
  95. 18
      resources/library/interactivities/Etudier.wgt/locales/ru/index.html
  96. 73
      resources/library/interactivities/Etudier.wgt/locales/ru/js/script.js
  97. 141
      resources/library/interactivities/Ordre images.wgt/css/basic.css
  98. BIN
      resources/library/interactivities/Ordre images.wgt/img/ar_down.png
  99. BIN
      resources/library/interactivities/Ordre images.wgt/img/ar_down_white.png
  100. BIN
      resources/library/interactivities/Ordre images.wgt/img/green_point.png
  101. Some files were not shown because too many files have changed in this diff Show More

@ -1273,6 +1273,19 @@ bool UBCFFAdaptor::UBToCFFConverter::setCFFAttribute(const QString &attributeNam
{ {
setGeometryFromUBZ(ubzElement, svgElement); setGeometryFromUBZ(ubzElement, svgElement);
} }
else
if (attributeName.contains(aUBZUuid))
{
QString parentId = ubzElement.attribute(aUBZParent);
QString id;
if (!parentId.isEmpty())
id = "{" + parentId + "}" + "{" + ubzElement.attribute(aUBZUuid)+"}";
else
id = "{" + ubzElement.attribute(aUBZUuid)+"}";
svgElement.setAttribute(aID, id);
}
else else
if (attributeName.contains(aUBZHref)||attributeName.contains(aSrc)) if (attributeName.contains(aUBZHref)||attributeName.contains(aSrc))
{ {
@ -1822,7 +1835,10 @@ bool UBCFFAdaptor::UBToCFFConverter::parseUBZPolygon(const QDomElement &element,
if (0 < iwbElementPart.attributes().count()) if (0 < iwbElementPart.attributes().count())
{ {
QString id = QUuid::createUuid().toString(); QString id = svgElementPart.attribute(aUBZUuid);
if (id.isEmpty())
id = QUuid::createUuid().toString();
svgElementPart.setAttribute(aID, id); svgElementPart.setAttribute(aID, id);
iwbElementPart.setAttribute(aRef, id); iwbElementPart.setAttribute(aRef, id);

@ -68,6 +68,7 @@ const QString aBackground = "background";
const QString aCrossedBackground = "crossed-background"; const QString aCrossedBackground = "crossed-background";
const QString aUBZType = "type"; const QString aUBZType = "type";
const QString aUBZUuid = "uuid"; const QString aUBZUuid = "uuid";
const QString aUBZParent = "parent";
const QString aFill = "fill"; // IWB attribute contans color to fill const QString aFill = "fill"; // IWB attribute contans color to fill
const QString aID = "id"; // ID of any svg element can be placed in to iwb section const QString aID = "id"; // ID of any svg element can be placed in to iwb section
@ -335,8 +336,10 @@ stroke-lineshape-end \
const QString ubzElementAttributesToConvert(" \ const QString ubzElementAttributesToConvert(" \
xlink:href, \ xlink:href, \
src, \ src, \
transform \ transform, \
"); uuid \
"
);
// additional attributes. Have references in SVG section. // additional attributes. Have references in SVG section.
const QString svgElementAttributes(" \ const QString svgElementAttributes(" \

@ -999,10 +999,6 @@
</context> </context>
<context> <context>
<name>UBDesktopPalette</name> <name>UBDesktopPalette</name>
<message>
<source>Show Uniboard</source>
<translation>اظهار Uniboard</translation>
</message>
<message> <message>
<source>Capture Part of the Screen</source> <source>Capture Part of the Screen</source>
<translation>التقاط جزء من الشاشة</translation> <translation>التقاط جزء من الشاشة</translation>
@ -1023,6 +1019,10 @@
<source>Show Desktop on Secondary Screen</source> <source>Show Desktop on Secondary Screen</source>
<translation>اظهار سطح المكتب على الشاشة الثانوية</translation> <translation>اظهار سطح المكتب على الشاشة الثانوية</translation>
</message> </message>
<message>
<source>Show Open-Sankore</source>
<translation type="unfinished"></translation>
</message>
</context> </context>
<context> <context>
<name>UBDocumentController</name> <name>UBDocumentController</name>

@ -998,10 +998,6 @@
</context> </context>
<context> <context>
<name>UBDesktopPalette</name> <name>UBDesktopPalette</name>
<message>
<source>Show Uniboard</source>
<translation>Покажи Uniboard</translation>
</message>
<message> <message>
<source>Capture Part of the Screen</source> <source>Capture Part of the Screen</source>
<translation>Снимай част от екрана</translation> <translation>Снимай част от екрана</translation>
@ -1022,6 +1018,10 @@
<source>Show Desktop on Secondary Screen</source> <source>Show Desktop on Secondary Screen</source>
<translation>Покажи работния плот на втория екран</translation> <translation>Покажи работния плот на втория екран</translation>
</message> </message>
<message>
<source>Show Open-Sankore</source>
<translation type="unfinished"></translation>
</message>
</context> </context>
<context> <context>
<name>UBDocumentController</name> <name>UBDocumentController</name>

@ -998,10 +998,6 @@
</context> </context>
<context> <context>
<name>UBDesktopPalette</name> <name>UBDesktopPalette</name>
<message>
<source>Show Uniboard</source>
<translation>Mostra l&apos;Uniboard</translation>
</message>
<message> <message>
<source>Capture Part of the Screen</source> <source>Capture Part of the Screen</source>
<translation>Captura part de la pantalla</translation> <translation>Captura part de la pantalla</translation>
@ -1022,6 +1018,10 @@
<source>Show Desktop on Secondary Screen</source> <source>Show Desktop on Secondary Screen</source>
<translation>Mostra l&apos;escriptori a la pantalla secundària</translation> <translation>Mostra l&apos;escriptori a la pantalla secundària</translation>
</message> </message>
<message>
<source>Show Open-Sankore</source>
<translation type="unfinished"></translation>
</message>
</context> </context>
<context> <context>
<name>UBDocumentController</name> <name>UBDocumentController</name>

@ -1016,14 +1016,14 @@
<source>Capture Part of the Screen</source> <source>Capture Part of the Screen</source>
<translation>Zachytit část obrazovky</translation> <translation>Zachytit část obrazovky</translation>
</message> </message>
<message>
<source>Show Uniboard</source>
<translation>Zobrazit Uniboard</translation>
</message>
<message> <message>
<source>Show Board on Secondary Screen</source> <source>Show Board on Secondary Screen</source>
<translation>Zobrazit tabuli na druhé obrazovce</translation> <translation>Zobrazit tabuli na druhé obrazovce</translation>
</message> </message>
<message>
<source>Show Open-Sankore</source>
<translation type="unfinished"></translation>
</message>
</context> </context>
<context> <context>
<name>UBDocumentController</name> <name>UBDocumentController</name>

@ -998,10 +998,6 @@
</context> </context>
<context> <context>
<name>UBDesktopPalette</name> <name>UBDesktopPalette</name>
<message>
<source>Show Uniboard</source>
<translation>Vis Uniboard</translation>
</message>
<message> <message>
<source>Capture Part of the Screen</source> <source>Capture Part of the Screen</source>
<translation>Klip del af skærmen</translation> <translation>Klip del af skærmen</translation>
@ -1022,6 +1018,10 @@
<source>Show Desktop on Secondary Screen</source> <source>Show Desktop on Secondary Screen</source>
<translation>Vis skrivebord sekundær skærm</translation> <translation>Vis skrivebord sekundær skærm</translation>
</message> </message>
<message>
<source>Show Open-Sankore</source>
<translation type="unfinished"></translation>
</message>
</context> </context>
<context> <context>
<name>UBDocumentController</name> <name>UBDocumentController</name>

@ -998,10 +998,6 @@
</context> </context>
<context> <context>
<name>UBDesktopPalette</name> <name>UBDesktopPalette</name>
<message>
<source>Show Uniboard</source>
<translation>Uniboard anzeigen</translation>
</message>
<message> <message>
<source>Capture Part of the Screen</source> <source>Capture Part of the Screen</source>
<translation>Teil des Bildschirms erfassen</translation> <translation>Teil des Bildschirms erfassen</translation>
@ -1022,6 +1018,10 @@
<source>Show Desktop on Secondary Screen</source> <source>Show Desktop on Secondary Screen</source>
<translation>Desktop auf zweitem Bildschirm anzeigen</translation> <translation>Desktop auf zweitem Bildschirm anzeigen</translation>
</message> </message>
<message>
<source>Show Open-Sankore</source>
<translation type="unfinished"></translation>
</message>
</context> </context>
<context> <context>
<name>UBDocumentController</name> <name>UBDocumentController</name>

@ -998,10 +998,6 @@
</context> </context>
<context> <context>
<name>UBDesktopPalette</name> <name>UBDesktopPalette</name>
<message>
<source>Show Uniboard</source>
<translation>Εμφάνιση του Uniboard</translation>
</message>
<message> <message>
<source>Capture Part of the Screen</source> <source>Capture Part of the Screen</source>
<translation>Λήψη στιγμιότυπου μέρους της οθόνης</translation> <translation>Λήψη στιγμιότυπου μέρους της οθόνης</translation>
@ -1022,6 +1018,10 @@
<source>Show Desktop on Secondary Screen</source> <source>Show Desktop on Secondary Screen</source>
<translation>Εμφάνιση της Επιφάνειας Εργασίας στη δευτερεύουσα οθόνη</translation> <translation>Εμφάνιση της Επιφάνειας Εργασίας στη δευτερεύουσα οθόνη</translation>
</message> </message>
<message>
<source>Show Open-Sankore</source>
<translation type="unfinished"></translation>
</message>
</context> </context>
<context> <context>
<name>UBDocumentController</name> <name>UBDocumentController</name>

@ -998,10 +998,6 @@
</context> </context>
<context> <context>
<name>UBDesktopPalette</name> <name>UBDesktopPalette</name>
<message>
<source>Show Uniboard</source>
<translation type="unfinished"></translation>
</message>
<message> <message>
<source>Capture Part of the Screen</source> <source>Capture Part of the Screen</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
@ -1022,6 +1018,10 @@
<source>Show Desktop on Secondary Screen</source> <source>Show Desktop on Secondary Screen</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message>
<source>Show Open-Sankore</source>
<translation type="unfinished"></translation>
</message>
</context> </context>
<context> <context>
<name>UBDocumentController</name> <name>UBDocumentController</name>

@ -998,10 +998,6 @@
</context> </context>
<context> <context>
<name>UBDesktopPalette</name> <name>UBDesktopPalette</name>
<message>
<source>Show Uniboard</source>
<translation type="unfinished"></translation>
</message>
<message> <message>
<source>Capture Part of the Screen</source> <source>Capture Part of the Screen</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
@ -1022,6 +1018,10 @@
<source>Show Desktop on Secondary Screen</source> <source>Show Desktop on Secondary Screen</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message>
<source>Show Open-Sankore</source>
<translation type="unfinished"></translation>
</message>
</context> </context>
<context> <context>
<name>UBDocumentController</name> <name>UBDocumentController</name>

@ -998,10 +998,6 @@
</context> </context>
<context> <context>
<name>UBDesktopPalette</name> <name>UBDesktopPalette</name>
<message>
<source>Show Uniboard</source>
<translation>Mostrar Uniboard</translation>
</message>
<message> <message>
<source>Capture Part of the Screen</source> <source>Capture Part of the Screen</source>
<translation>Capturar parte de la pantalla</translation> <translation>Capturar parte de la pantalla</translation>
@ -1022,6 +1018,10 @@
<source>Show Desktop on Secondary Screen</source> <source>Show Desktop on Secondary Screen</source>
<translation>Mostrar escritorio en la pantalla secundaria</translation> <translation>Mostrar escritorio en la pantalla secundaria</translation>
</message> </message>
<message>
<source>Show Open-Sankore</source>
<translation type="unfinished"></translation>
</message>
</context> </context>
<context> <context>
<name>UBDocumentController</name> <name>UBDocumentController</name>

@ -999,11 +999,6 @@
</context> </context>
<context> <context>
<name>UBDesktopPalette</name> <name>UBDesktopPalette</name>
<message>
<source>Show Uniboard</source>
<translatorcomment>Attention : dans la version en anglais le terme Uniboard devrait être remplacé par open-Sankoré !</translatorcomment>
<translation>Afficher Open-Sankoré</translation>
</message>
<message> <message>
<source>Capture Part of the Screen</source> <source>Capture Part of the Screen</source>
<translation>Capturer une partie de l&apos;écran</translation> <translation>Capturer une partie de l&apos;écran</translation>
@ -1024,6 +1019,10 @@
<source>Show Desktop on Secondary Screen</source> <source>Show Desktop on Secondary Screen</source>
<translation>Afficher le bureau sur l&apos;écran secondaire</translation> <translation>Afficher le bureau sur l&apos;écran secondaire</translation>
</message> </message>
<message>
<source>Show Open-Sankore</source>
<translation>Afficher Open-Sankoré</translation>
</message>
</context> </context>
<context> <context>
<name>UBDocumentController</name> <name>UBDocumentController</name>

@ -999,11 +999,6 @@
</context> </context>
<context> <context>
<name>UBDesktopPalette</name> <name>UBDesktopPalette</name>
<message>
<source>Show Uniboard</source>
<translatorcomment>Attention : dans la version en anglais le terme Uniboard devrait être remplacé par open-Sankoré !</translatorcomment>
<translation>Afficher Open-Sankoré</translation>
</message>
<message> <message>
<source>Capture Part of the Screen</source> <source>Capture Part of the Screen</source>
<translation>Capturer une partie de l&apos;écran</translation> <translation>Capturer une partie de l&apos;écran</translation>
@ -1024,6 +1019,10 @@
<source>Show Desktop on Secondary Screen</source> <source>Show Desktop on Secondary Screen</source>
<translation>Afficher le bureau sur l&apos;écran secondaire</translation> <translation>Afficher le bureau sur l&apos;écran secondaire</translation>
</message> </message>
<message>
<source>Show Open-Sankore</source>
<translation>Afficher Open-Sankoré</translation>
</message>
</context> </context>
<context> <context>
<name>UBDocumentController</name> <name>UBDocumentController</name>

@ -998,10 +998,6 @@
</context> </context>
<context> <context>
<name>UBDesktopPalette</name> <name>UBDesktopPalette</name>
<message>
<source>Show Uniboard</source>
<translation>Mostra Uniboard</translation>
</message>
<message> <message>
<source>Capture Part of the Screen</source> <source>Capture Part of the Screen</source>
<translation>Cattura parte della schermata</translation> <translation>Cattura parte della schermata</translation>
@ -1022,6 +1018,10 @@
<source>Show Desktop on Secondary Screen</source> <source>Show Desktop on Secondary Screen</source>
<translation>Mostra il desktop sullo schermo secondario</translation> <translation>Mostra il desktop sullo schermo secondario</translation>
</message> </message>
<message>
<source>Show Open-Sankore</source>
<translation type="unfinished"></translation>
</message>
</context> </context>
<context> <context>
<name>UBDocumentController</name> <name>UBDocumentController</name>

@ -998,10 +998,6 @@
</context> </context>
<context> <context>
<name>UBDesktopPalette</name> <name>UBDesktopPalette</name>
<message>
<source>Show Uniboard</source>
<translation>הצג Uniboard</translation>
</message>
<message> <message>
<source>Capture Part of the Screen</source> <source>Capture Part of the Screen</source>
<translation>לכד חלק מהמסך</translation> <translation>לכד חלק מהמסך</translation>
@ -1022,6 +1018,10 @@
<source>Show Desktop on Secondary Screen</source> <source>Show Desktop on Secondary Screen</source>
<translation>הצג את שולחן העבודה על מסך משני</translation> <translation>הצג את שולחן העבודה על מסך משני</translation>
</message> </message>
<message>
<source>Show Open-Sankore</source>
<translation type="unfinished"></translation>
</message>
</context> </context>
<context> <context>
<name>UBDocumentController</name> <name>UBDocumentController</name>

@ -998,10 +998,6 @@
</context> </context>
<context> <context>
<name>UBDesktopPalette</name> <name>UBDesktopPalette</name>
<message>
<source>Show Uniboard</source>
<translation>Uniboard表示 </translation>
</message>
<message> <message>
<source>Capture Part of the Screen</source> <source>Capture Part of the Screen</source>
<translation> </translation> <translation> </translation>
@ -1022,6 +1018,10 @@
<source>Show Desktop on Secondary Screen</source> <source>Show Desktop on Secondary Screen</source>
<translation> </translation> <translation> </translation>
</message> </message>
<message>
<source>Show Open-Sankore</source>
<translation type="unfinished"></translation>
</message>
</context> </context>
<context> <context>
<name>UBDocumentController</name> <name>UBDocumentController</name>

@ -998,10 +998,6 @@
</context> </context>
<context> <context>
<name>UBDesktopPalette</name> <name>UBDesktopPalette</name>
<message>
<source>Show Uniboard</source>
<translation> </translation>
</message>
<message> <message>
<source>Capture Part of the Screen</source> <source>Capture Part of the Screen</source>
<translation> </translation> <translation> </translation>
@ -1022,6 +1018,10 @@
<source>Show Desktop on Secondary Screen</source> <source>Show Desktop on Secondary Screen</source>
<translation> </translation> <translation> </translation>
</message> </message>
<message>
<source>Show Open-Sankore</source>
<translation type="unfinished"></translation>
</message>
</context> </context>
<context> <context>
<name>UBDocumentController</name> <name>UBDocumentController</name>

@ -998,10 +998,6 @@
</context> </context>
<context> <context>
<name>UBDesktopPalette</name> <name>UBDesktopPalette</name>
<message>
<source>Show Uniboard</source>
<translation>Asehoy ny Uniboard</translation>
</message>
<message> <message>
<source>Capture Part of the Screen</source> <source>Capture Part of the Screen</source>
<translation>Maka ampahan&apos;ny efijery</translation> <translation>Maka ampahan&apos;ny efijery</translation>
@ -1022,6 +1018,10 @@
<source>Show Desktop on Secondary Screen</source> <source>Show Desktop on Secondary Screen</source>
<translation>Aseho ny sehatr&apos;asa amin&apos;ny efijery faharoa</translation> <translation>Aseho ny sehatr&apos;asa amin&apos;ny efijery faharoa</translation>
</message> </message>
<message>
<source>Show Open-Sankore</source>
<translation type="unfinished"></translation>
</message>
</context> </context>
<context> <context>
<name>UBDocumentController</name> <name>UBDocumentController</name>

@ -1000,10 +1000,6 @@
</context> </context>
<context> <context>
<name>UBDesktopPalette</name> <name>UBDesktopPalette</name>
<message>
<source>Show Uniboard</source>
<translation>Vis Uniboard</translation>
</message>
<message> <message>
<source>Capture Part of the Screen</source> <source>Capture Part of the Screen</source>
<translation>Ta bilde av en del av skjermen</translation> <translation>Ta bilde av en del av skjermen</translation>
@ -1024,6 +1020,10 @@
<source>Show Desktop on Secondary Screen</source> <source>Show Desktop on Secondary Screen</source>
<translation>Vis skrivebord annen skjerm</translation> <translation>Vis skrivebord annen skjerm</translation>
</message> </message>
<message>
<source>Show Open-Sankore</source>
<translation type="unfinished"></translation>
</message>
</context> </context>
<context> <context>
<name>UBDocumentController</name> <name>UBDocumentController</name>

@ -998,10 +998,6 @@
</context> </context>
<context> <context>
<name>UBDesktopPalette</name> <name>UBDesktopPalette</name>
<message>
<source>Show Uniboard</source>
<translation>Uniboard weergeven</translation>
</message>
<message> <message>
<source>Capture Part of the Screen</source> <source>Capture Part of the Screen</source>
<translation>Afdruk deel van scherm</translation> <translation>Afdruk deel van scherm</translation>
@ -1022,6 +1018,10 @@
<source>Show Desktop on Secondary Screen</source> <source>Show Desktop on Secondary Screen</source>
<translation>Desktop op bijscherm weergeven</translation> <translation>Desktop op bijscherm weergeven</translation>
</message> </message>
<message>
<source>Show Open-Sankore</source>
<translation type="unfinished"></translation>
</message>
</context> </context>
<context> <context>
<name>UBDocumentController</name> <name>UBDocumentController</name>

@ -1002,10 +1002,6 @@
</context> </context>
<context> <context>
<name>UBDesktopPalette</name> <name>UBDesktopPalette</name>
<message>
<source>Show Uniboard</source>
<translation>Pokaż Uniboard</translation>
</message>
<message> <message>
<source>Capture Part of the Screen</source> <source>Capture Part of the Screen</source>
<translation>Przechwyć część ekranu</translation> <translation>Przechwyć część ekranu</translation>
@ -1026,6 +1022,10 @@
<source>Show Desktop on Secondary Screen</source> <source>Show Desktop on Secondary Screen</source>
<translation>Pokaż pulpit na ekranie podrzędnym</translation> <translation>Pokaż pulpit na ekranie podrzędnym</translation>
</message> </message>
<message>
<source>Show Open-Sankore</source>
<translation type="unfinished"></translation>
</message>
</context> </context>
<context> <context>
<name>UBDocumentController</name> <name>UBDocumentController</name>

@ -1000,10 +1000,6 @@
</context> </context>
<context> <context>
<name>UBDesktopPalette</name> <name>UBDesktopPalette</name>
<message>
<source>Show Uniboard</source>
<translation>Mostrar Uniboard</translation>
</message>
<message> <message>
<source>Capture Part of the Screen</source> <source>Capture Part of the Screen</source>
<translation>Capturar Parte do Ecrã</translation> <translation>Capturar Parte do Ecrã</translation>
@ -1024,6 +1020,10 @@
<source>Show Desktop on Secondary Screen</source> <source>Show Desktop on Secondary Screen</source>
<translation>Mostrar Ambiente de Trabalho num Ecrã Secundário</translation> <translation>Mostrar Ambiente de Trabalho num Ecrã Secundário</translation>
</message> </message>
<message>
<source>Show Open-Sankore</source>
<translation type="unfinished"></translation>
</message>
</context> </context>
<context> <context>
<name>UBDocumentController</name> <name>UBDocumentController</name>

@ -998,10 +998,6 @@
</context> </context>
<context> <context>
<name>UBDesktopPalette</name> <name>UBDesktopPalette</name>
<message>
<source>Show Uniboard</source>
<translation type="unfinished"></translation>
</message>
<message> <message>
<source>Capture Part of the Screen</source> <source>Capture Part of the Screen</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
@ -1022,6 +1018,10 @@
<source>Show Desktop on Secondary Screen</source> <source>Show Desktop on Secondary Screen</source>
<translation type="unfinished"></translation> <translation type="unfinished"></translation>
</message> </message>
<message>
<source>Show Open-Sankore</source>
<translation type="unfinished"></translation>
</message>
</context> </context>
<context> <context>
<name>UBDocumentController</name> <name>UBDocumentController</name>

@ -998,10 +998,6 @@
</context> </context>
<context> <context>
<name>UBDesktopPalette</name> <name>UBDesktopPalette</name>
<message>
<source>Show Uniboard</source>
<translation>Afişare Uniboard</translation>
</message>
<message> <message>
<source>Capture Part of the Screen</source> <source>Capture Part of the Screen</source>
<translation>Capturare parte de ecran</translation> <translation>Capturare parte de ecran</translation>
@ -1022,6 +1018,10 @@
<source>Show Desktop on Secondary Screen</source> <source>Show Desktop on Secondary Screen</source>
<translation>Afişare desktop pe ecran secundar</translation> <translation>Afişare desktop pe ecran secundar</translation>
</message> </message>
<message>
<source>Show Open-Sankore</source>
<translation type="unfinished"></translation>
</message>
</context> </context>
<context> <context>
<name>UBDocumentController</name> <name>UBDocumentController</name>

@ -998,10 +998,6 @@
</context> </context>
<context> <context>
<name>UBDesktopPalette</name> <name>UBDesktopPalette</name>
<message>
<source>Show Uniboard</source>
<translation>Показать Uniboard</translation>
</message>
<message> <message>
<source>Capture Part of the Screen</source> <source>Capture Part of the Screen</source>
<translation>Сделать снимок части экрана</translation> <translation>Сделать снимок части экрана</translation>
@ -1022,6 +1018,10 @@
<source>Show Desktop on Secondary Screen</source> <source>Show Desktop on Secondary Screen</source>
<translation>Показать раб. стол на втором экране</translation> <translation>Показать раб. стол на втором экране</translation>
</message> </message>
<message>
<source>Show Open-Sankore</source>
<translation type="unfinished"></translation>
</message>
</context> </context>
<context> <context>
<name>UBDocumentController</name> <name>UBDocumentController</name>

@ -1016,14 +1016,14 @@
<source>Capture Part of the Screen</source> <source>Capture Part of the Screen</source>
<translation>Označiť časť obrazovky</translation> <translation>Označiť časť obrazovky</translation>
</message> </message>
<message>
<source>Show Uniboard</source>
<translation>Zobraziť Uniboard</translation>
</message>
<message> <message>
<source>Show Board on Secondary Screen</source> <source>Show Board on Secondary Screen</source>
<translation>Zobraziť tabuľu na druhej obrazovke</translation> <translation>Zobraziť tabuľu na druhej obrazovke</translation>
</message> </message>
<message>
<source>Show Open-Sankore</source>
<translation type="unfinished"></translation>
</message>
</context> </context>
<context> <context>
<name>UBDocumentController</name> <name>UBDocumentController</name>

@ -998,10 +998,6 @@
</context> </context>
<context> <context>
<name>UBDesktopPalette</name> <name>UBDesktopPalette</name>
<message>
<source>Show Uniboard</source>
<translation>Visa Uniboard</translation>
</message>
<message> <message>
<source>Capture Part of the Screen</source> <source>Capture Part of the Screen</source>
<translation>Fånga en del av skärmen</translation> <translation>Fånga en del av skärmen</translation>
@ -1022,6 +1018,10 @@
<source>Show Desktop on Secondary Screen</source> <source>Show Desktop on Secondary Screen</source>
<translation>Visa skrivbordet den sekundära skärmen</translation> <translation>Visa skrivbordet den sekundära skärmen</translation>
</message> </message>
<message>
<source>Show Open-Sankore</source>
<translation type="unfinished"></translation>
</message>
</context> </context>
<context> <context>
<name>UBDocumentController</name> <name>UBDocumentController</name>

@ -998,10 +998,6 @@
</context> </context>
<context> <context>
<name>UBDesktopPalette</name> <name>UBDesktopPalette</name>
<message>
<source>Show Uniboard</source>
<translation>Uniboard&apos;u Göster</translation>
</message>
<message> <message>
<source>Capture Part of the Screen</source> <source>Capture Part of the Screen</source>
<translation>Ekranın Bir Bölümünü Yakala</translation> <translation>Ekranın Bir Bölümünü Yakala</translation>
@ -1022,6 +1018,10 @@
<source>Show Desktop on Secondary Screen</source> <source>Show Desktop on Secondary Screen</source>
<translation>Masaüstünü İkincil Ekranda Göster</translation> <translation>Masaüstünü İkincil Ekranda Göster</translation>
</message> </message>
<message>
<source>Show Open-Sankore</source>
<translation type="unfinished"></translation>
</message>
</context> </context>
<context> <context>
<name>UBDocumentController</name> <name>UBDocumentController</name>

@ -998,10 +998,6 @@
</context> </context>
<context> <context>
<name>UBDesktopPalette</name> <name>UBDesktopPalette</name>
<message>
<source>Show Uniboard</source>
<translation></translation>
</message>
<message> <message>
<source>Capture Part of the Screen</source> <source>Capture Part of the Screen</source>
<translation></translation> <translation></translation>
@ -1022,6 +1018,10 @@
<source>Show Desktop on Secondary Screen</source> <source>Show Desktop on Secondary Screen</source>
<translation></translation> <translation></translation>
</message> </message>
<message>
<source>Show Open-Sankore</source>
<translation type="unfinished"></translation>
</message>
</context> </context>
<context> <context>
<name>UBDocumentController</name> <name>UBDocumentController</name>

@ -25,7 +25,7 @@ ul {
background-color: red; background-color: red;
} }
.pagination li a { .pagination li span {
display: block; display: block;
width: 100%; width: 100%;
height: 100%; height: 100%;

@ -27,7 +27,7 @@ function reloadApp(app) {
$pagination = $("<ul class='pagination'></ul>"); $pagination = $("<ul class='pagination'></ul>");
$operationContainer.append($pagination); $operationContainer.append($pagination);
for (var i = 0; i < operations; i++) for (var i = 0; i < operations; i++)
$("<li><a href='#'>"+(i+1)+"</a></li>").appendTo($pagination); $("<li><span>"+(i+1)+"</span></li>").appendTo($pagination);
$operations = $("<ul class='operations'></ul>"); $operations = $("<ul class='operations'></ul>");
$operationContainer.append($operations); $operationContainer.append($operations);

@ -3,7 +3,7 @@ html, body{
height: 100%; height: 100%;
margin: 0; margin: 0;
padding: 0; padding: 0;
border-radius: 50px; border-radius: 35px;
overflow: hidden; overflow: hidden;
} }
@ -28,14 +28,6 @@ body{
margin: 5px 10px; margin: 5px 10px;
} }
.green_point{
background-image: url(../img/green_point.png);
}
.red_point{
background-image: url(../img/red_point.png);
}
#display_text, #edit_text{ #display_text, #edit_text{
height: 19px; height: 19px;
padding: 3px 0 0 0; padding: 3px 0 0 0;
@ -286,57 +278,40 @@ body{
margin: 10px 10px 0 10px; margin: 10px 10px 0 10px;
padding: 0; padding: 0;
float: left; float: left;
/*font-family: "Lobster13Regular";*/ font-family: Arial,Helvetica,sans-serif;
font-size: 24px; font-size: 24px;
color: #8c5730; color: #7F613F;
text-shadow: #FFDCA9 0 1px 0;
} }
#wgt_reload, #wgt_edit, #wgt_display, #wgt_help{ #wgt_reload, #wgt_edit, #wgt_display, #wgt_help{
cursor: pointer; cursor: pointer;
height: 44px;
margin: 10px 10px 0 0; margin: 10px 10px 0 0;
float: right; float: right;
/*font-family: "Lobster13Regular";*/ font-family: Arial,Helvetica,sans-serif;
font-size: 24px; font-size: 24px;
color: #8c5730; line-height: 32px;
} }
#wgt_display{ #wgt_display{
padding-left: 40px; padding-left: 35px;
background-image: url(../img/slate-edit.png); background: url(../img/toolbar-edit.png) left -32px no-repeat;
background-repeat: no-repeat; color: white;
background-position: top 0;
display: none; display: none;
} }
#wgt_edit{ #wgt_edit{
padding-left: 40px; padding-left: 35px;
background-image: url(../img/slate-edit.png); background: url(../img/slate-toolbar-edit.png) left top no-repeat;
background-repeat: no-repeat; color: #7F613F;
background-position: top 0; text-shadow: #FFDCA9 0 1px 0;
} }
#wgt_reload{ #wgt_reload{
padding-left: 40px; padding-left: 35px;
background-image: url(../img/slate-toolbar-reload.png); background: url(../img/slate-toolbar-reload.png) left top no-repeat;
background-repeat: no-repeat; color: #7F613F;
background-position: top 0; text-shadow: #FFDCA9 0 1px 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{ .btl_pad{
@ -371,51 +346,50 @@ body{
background-image: url(../img/pad-bottom-right.png) !important; background-image: url(../img/pad-bottom-right.png) !important;
} }
.pad_color{ .without_radius{
color: white !important; border-radius: 0 !important;
} }
.pad_reload{ .without_back{
background-image: url(../img/slate-toolbar-reload-white.png) !important; background: none !important;
} }
.pad_edit{ .pad_color{
background-image: url(../img/slate-display.png) !important; color: #FC9 !important;
text-shadow: none !important;
} }
.pad_select{ .pad_reload{
background-color: black !important; background: url(../img/toolbar-reload.png) left top no-repeat !important;
color: white !important;
background-image: url(../img/ar_down_white.png) !important;
} }
.without_radius{ .pad_edit{
border-radius: 0 !important; background: url(../img/toolbar-edit.png) left top no-repeat !important;
} }
.without_back{ .pad_help{
background: none !important; background: url(../img/toolbar-help.png) left top no-repeat !important;
} }
.none_select{ .help_wood{
background-color: #333 !important; background: url(../img/slate-toolbar-help.png) left -32px no-repeat !important;
color: white !important; color: white !important;
background-image: url(../img/ar_down_white.png) !important; text-shadow: #7F613F 0 -1px 0 !important;
} }
.pad_help{ .help_pad{
background-image: url(../img/slate-help-white.png) !important; background: url(../img/toolbar-help.png) left -32px no-repeat !important;
color: white !important;
} }
#wgt_help{ #wgt_help{
padding-left: 32px; padding-left: 35px;
background-image: url(../img/slate-help.png); background: url(../img/slate-toolbar-help.png) left top no-repeat;
background-repeat: no-repeat; color: #7F613F;
background-position: top 0; text-shadow: #FFDCA9 0 1px 0;
} }
#help{ #help{
width: 100%;
height: 100%; height: 100%;
overflow: auto; overflow: auto;
display: none; display: none;
@ -424,5 +398,36 @@ body{
} }
.open{ .open{
}
#parameters{
display: none;
padding: 10px 20px;
background: url("../img/parameters-bg.png");
border-radius: 4px 4px 0 0;
}
.inline{
display: inline-block;
font-family: "helvetica neue";
font-size: 14px;
color: #666;
}
#parameters label {
font-style: italic;
}
#style_select{
margin-left: 10px;
}
.display_wood{
background: url(../img/slate-toolbar-edit.png) left -32px no-repeat !important;
text-shadow: #7F613F 0 -1px 0;
}
.radius_ft{
border-radius: 45px !important;
} }

Binary file not shown.

Before

Width:  |  Height:  |  Size: 529 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 142 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 721 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 740 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 532 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 553 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.1 KiB

After

Width:  |  Height:  |  Size: 2.2 KiB

@ -16,6 +16,7 @@
lang = sankore.locale().substr(0,2); lang = sankore.locale().substr(0,2);
} else } else
lang = "en"; lang = "en";
lang = "fr";
if(lang == "en"){ if(lang == "en"){
if(window.sankore) if(window.sankore)
sankore.enableDropOnWidget(false); sankore.enableDropOnWidget(false);
@ -51,12 +52,7 @@
<div id="wgt_help"></div> <div id="wgt_help"></div>
<div id="wgt_reload"></div> <div id="wgt_reload"></div>
<div id="wgt_display" class="selected"></div> <div id="wgt_display" class="selected"></div>
<div id="wgt_edit"></div> <div id="wgt_edit"></div>
<select class="style_select">
<option value="1"></option>
<option value="2"></option>
<option value="3"></option>
</select>
</td> </td>
<td class="b_top_right">&nbsp;</td> <td class="b_top_right">&nbsp;</td>
</tr> </tr>
@ -66,7 +62,17 @@
<td> <td>
<div id="help"></div> <div id="help"></div>
<div id="data"> <div id="data">
<div id="parameters">
<div class="inline">
<label>
<select id="style_select">
<option value="1"></option>
<option value="2"></option>
<option value="3"></option>
</select>
</label>
</div>
</div>
</div> </div>
</td> </td>
<td class="b_center_right">&nbsp;</td> <td class="b_center_right">&nbsp;</td>

@ -1,5 +1,5 @@
var sankoreLang = { var sankoreLang = {
display: "Display", display: "Close",
edit: "Edit", edit: "Edit",
first_desc: "Fruits", first_desc: "Fruits",
second_desc: "Vegetables", second_desc: "Vegetables",
@ -17,7 +17,8 @@ var sankoreLang = {
pad: "Pad", pad: "Pad",
none: "None", none: "None",
help: "Help", help: "Help",
help_content: "This is an example of help content ..." help_content: "This is an example of help content ...",
theme: "Theme"
}; };
//main function //main function
@ -29,9 +30,11 @@ function start(){
$("#wgt_reload").text(sankoreLang.reload); $("#wgt_reload").text(sankoreLang.reload);
$("#wgt_help").text(sankoreLang.help); $("#wgt_help").text(sankoreLang.help);
$("#help").html(sankoreLang.help_content); $("#help").html(sankoreLang.help_content);
$(".style_select option[value='1']").text(sankoreLang.slate); $("#style_select option[value='1']").text(sankoreLang.slate);
$(".style_select option[value='2']").text(sankoreLang.pad); $("#style_select option[value='2']").text(sankoreLang.pad);
$(".style_select option[value='3']").text(sankoreLang.none); $("#style_select option[value='3']").text(sankoreLang.none);
var tmpl = $("div.inline label").html();
$("div.inline label").html(sankoreLang.theme + tmpl)
if(window.sankore){ if(window.sankore){
if(sankore.preference("categoriser_text","")){ if(sankore.preference("categoriser_text","")){
@ -53,11 +56,13 @@ function start(){
$("#wgt_help").click(function(){ $("#wgt_help").click(function(){
var tmp = $(this); var tmp = $(this);
if($(this).hasClass("open")){ if($(this).hasClass("open")){
$(this).removeClass("help_pad").removeClass("help_wood")
$("#help").slideUp("100", function(){ $("#help").slideUp("100", function(){
tmp.removeClass("open"); tmp.removeClass("open");
$("#data").show(); $("#data").show();
}); });
} else { } else {
($("#style_select").val() == 1)?$(this).removeClass("help_pad").addClass("help_wood"):$(this).removeClass("help_wood").addClass("help_pad");
$("#data").hide(); $("#data").hide();
$("#help").slideDown("100", function(){ $("#help").slideDown("100", function(){
tmp.addClass("open"); tmp.addClass("open");
@ -78,7 +83,7 @@ function start(){
exportData(); exportData();
}); });
$(".style_select").change(function (event){ $("#style_select").change(function (event){
changeStyle($(this).find("option:selected").val()); changeStyle($(this).find("option:selected").val());
}) })
@ -87,7 +92,7 @@ function start(){
if(!$(this).hasClass("selected")){ if(!$(this).hasClass("selected")){
$(this).addClass("selected"); $(this).addClass("selected");
$("#wgt_edit").removeClass("selected"); $("#wgt_edit").removeClass("selected");
$(".style_select").css("display","none"); $("#parameters").css("display","none");
$(".add_block").remove(); $(".add_block").remove();
$(".cont").each(function(){ $(".cont").each(function(){
var container = $(this); var container = $(this);
@ -160,7 +165,7 @@ function start(){
if(!$(this).hasClass("selected")){ if(!$(this).hasClass("selected")){
$(this).addClass("selected"); $(this).addClass("selected");
$("#wgt_display").removeClass("selected"); $("#wgt_display").removeClass("selected");
$(".style_select").css("display","block"); $("#parameters").css("display","block");
$(".cont").each(function(){ $(".cont").each(function(){
var container = $(this); var container = $(this);
@ -244,7 +249,7 @@ function exportData(){
cont_obj.conts = []; cont_obj.conts = [];
$(this).find(".imgs_cont").each(function(){ $(this).find(".imgs_cont").each(function(){
var img_cont = new Object(); var img_cont = new Object();
cont_obj.style = $(".style_select").find("option:selected").val(); cont_obj.style = $("#style_select").find("option:selected").val();
img_cont.mask = $(this).find("input[name='mask']").val(); img_cont.mask = $(this).find("input[name='mask']").val();
img_cont.count = $(this).find(".img_block").size(); img_cont.count = $(this).find(".img_block").size();
img_cont.text = $(this).find(".cat_desc").val(); img_cont.text = $(this).find(".cat_desc").val();
@ -266,7 +271,7 @@ function exportData(){
cont_obj.conts = []; cont_obj.conts = [];
$(this).find(".imgs_cont").each(function(){ $(this).find(".imgs_cont").each(function(){
var img_cont = new Object(); var img_cont = new Object();
cont_obj.style = $(".style_select").find("option:selected").val(); cont_obj.style = $("#style_select").find("option:selected").val();
img_cont.mask = $(this).find("input[name='mask']").val(); img_cont.mask = $(this).find("input[name='mask']").val();
img_cont.count = $(this).find("input[name='count']").val(); img_cont.count = $(this).find("input[name='count']").val();
img_cont.text = $(this).find(".cat_desc").val(); img_cont.text = $(this).find(".cat_desc").val();
@ -292,7 +297,7 @@ function exportData(){
if($(".cont").size() == 0){ if($(".cont").size() == 0){
var cont_obj = new Object(); var cont_obj = new Object();
cont_obj.style = $(".style_select").find("option:selected").val(); cont_obj.style = $("#style_select").find("option:selected").val();
cont_obj.tmp = "clear"; cont_obj.tmp = "clear";
array_to_export.push(cont_obj); array_to_export.push(cont_obj);
} }
@ -307,12 +312,12 @@ function importData(data){
for(var i in data){ for(var i in data){
if(data[i].tmp){ if(data[i].tmp){
changeStyle(data[i].style); changeStyle(data[i].style);
$(".style_select").val(data[i].style); $("#style_select").val(data[i].style);
} }
else { else {
if(i == 0){ if(i == 0){
changeStyle(data[i].style); changeStyle(data[i].style);
$(".style_select").val(data[i].style); $("#style_select").val(data[i].style);
} }
if(data[i].mode == "edit"){ if(data[i].mode == "edit"){
var tmp_array = []; var tmp_array = [];
@ -642,10 +647,10 @@ function changeStyle(val){
$("#wgt_reload").removeClass("pad_color").removeClass("pad_reload"); $("#wgt_reload").removeClass("pad_color").removeClass("pad_reload");
$("#wgt_help").removeClass("pad_color").removeClass("pad_help"); $("#wgt_help").removeClass("pad_color").removeClass("pad_help");
$("#wgt_edit").removeClass("pad_color").removeClass("pad_edit"); $("#wgt_edit").removeClass("pad_color").removeClass("pad_edit");
$("#wgt_display").removeClass("pad_color").removeClass("pad_edit");
$("#wgt_name").removeClass("pad_color"); $("#wgt_name").removeClass("pad_color");
$(".style_select").removeClass("pad_select").removeClass("none_select").val(val); $("#wgt_display").addClass("display_wood");
$("body, html").removeClass("without_radius"); $("#style_select").val(val);
$("body, html").removeClass("without_radius").addClass("radius_ft");
break; break;
case "2": case "2":
$(".b_top_left").addClass("btl_pad").removeClass("without_back"); $(".b_top_left").addClass("btl_pad").removeClass("without_back");
@ -659,10 +664,10 @@ function changeStyle(val){
$("#wgt_reload").addClass("pad_color").addClass("pad_reload"); $("#wgt_reload").addClass("pad_color").addClass("pad_reload");
$("#wgt_help").addClass("pad_color").addClass("pad_help"); $("#wgt_help").addClass("pad_color").addClass("pad_help");
$("#wgt_edit").addClass("pad_color").addClass("pad_edit"); $("#wgt_edit").addClass("pad_color").addClass("pad_edit");
$("#wgt_display").addClass("pad_color").addClass("pad_edit");
$("#wgt_name").addClass("pad_color"); $("#wgt_name").addClass("pad_color");
$(".style_select").addClass("pad_select").removeClass("none_select").val(val); $("#wgt_display").removeClass("display_wood");
$("body, html").removeClass("without_radius"); $("#style_select").val(val);
$("body, html").removeClass("without_radius").removeClass("radius_ft");
break; break;
case "3": case "3":
$(".b_top_left").addClass("without_back").removeClass("btl_pad"); $(".b_top_left").addClass("without_back").removeClass("btl_pad");
@ -676,10 +681,10 @@ function changeStyle(val){
$("#wgt_help").addClass("pad_color").addClass("pad_help"); $("#wgt_help").addClass("pad_color").addClass("pad_help");
$("#wgt_reload").addClass("pad_color").addClass("pad_reload"); $("#wgt_reload").addClass("pad_color").addClass("pad_reload");
$("#wgt_edit").addClass("pad_color").addClass("pad_edit"); $("#wgt_edit").addClass("pad_color").addClass("pad_edit");
$("#wgt_display").addClass("pad_color").addClass("pad_edit");
$("#wgt_name").addClass("pad_color"); $("#wgt_name").addClass("pad_color");
$(".style_select").addClass("none_select").val(val); $("#wgt_display").removeClass("display_wood");
$("body, html").addClass("without_radius"); $("#style_select").val(val);
$("body, html").addClass("without_radius").removeClass("radius_ft");
break; break;
} }
} }

@ -25,12 +25,7 @@
<div id="wgt_help"></div> <div id="wgt_help"></div>
<div id="wgt_reload"></div> <div id="wgt_reload"></div>
<div id="wgt_display" class="selected"></div> <div id="wgt_display" class="selected"></div>
<div id="wgt_edit"></div> <div id="wgt_edit"></div>
<select class="style_select">
<option value="1"></option>
<option value="2"></option>
<option value="3"></option>
</select>
</td> </td>
<td class="b_top_right">&nbsp;</td> <td class="b_top_right">&nbsp;</td>
</tr> </tr>
@ -40,7 +35,17 @@
<td> <td>
<div id="help"></div> <div id="help"></div>
<div id="data"> <div id="data">
<div id="parameters">
<div class="inline">
<label>
<select id="style_select">
<option value="1"></option>
<option value="2"></option>
<option value="3"></option>
</select>
</label>
</div>
</div>
</div> </div>
</td> </td>
<td class="b_center_right">&nbsp;</td> <td class="b_center_right">&nbsp;</td>

@ -1,5 +1,5 @@
var sankoreLang = { var sankoreLang = {
display: "Afficher", display: "Fermer",
edit: "Modifier", edit: "Modifier",
first_desc: "Fruits", first_desc: "Fruits",
second_desc: "Légumes", second_desc: "Légumes",
@ -18,27 +18,28 @@ var sankoreLang = {
none: "aucun", none: "aucun",
help: "Aide", help: "Aide",
help_content: "<p><h2>Catégoriser des textes</h2></p>"+ help_content: "<p><h2>Catégoriser des textes</h2></p>"+
"<p><h3>Classer des étiquettes de mots en fonction de la dénomination de la catégorie.</h3></p>"+ "<p><h3>Classer des étiquettes de mots en fonction de la dénomination de la catégorie.</h3></p>"+
"<p>L’activité s’effectue par un glisser-déposer de l’étiquette de mots dans la catégorie correspondante. Tant que toutes les étiquettes de mots ne sont pas classées, la zone reste rouge. Une fois que toutes les étiquettes de mots sont classées dans la bonne catégorie, la zone se colore en vert.</p>"+ "<p>L’activité s’effectue par un glisser-déposer de l’étiquette de mots dans la catégorie correspondante. Tant que toutes les étiquettes de mots ne sont pas classées, la zone reste rouge. Une fois que toutes les étiquettes de mots sont classées dans la bonne catégorie, la zone se colore en vert.</p>"+
"<p>Le bouton “Recharger” réinitialise les exercices.</p>"+ "<p>Le bouton “Recharger” réinitialise les exercices.</p>"+
"<p>Le bouton “Modifier” vous permet :</p>"+ "<p>Le bouton “Modifier” vous permet :</p>"+
"<ul><li>de choisir le thème de l’interactivité : tablette, ardoise ou aucun (par défaut aucun),</li>"+ "<ul><li>de choisir le thème de l’interactivité : tablette, ardoise ou aucun (par défaut aucun),</li>"+
"<li>de modifier un exercice ou d’en créer de nouveaux dans la même activité.</li></ul>"+ "<li>de modifier un exercice ou d’en créer de nouveaux dans la même activité.</li></ul>"+
"<p>En mode édition, pour créer un nouvel exercice, cliquez sur “Nouveau bloc” en bas, une zone bleue apparaît, c’est une catégorie, puis.</p>"+ "<p>En mode édition, pour créer un nouvel exercice, cliquez sur “Nouveau bloc” en bas, une zone bleue apparaît, c’est une catégorie, puis.</p>"+
"<ul><li>insérez le nom de la catégorie (par exemple “fruits”, “légumes”, “mammifères”...) en cliquant dans le champ de texte “Saisir le nom de la catégorie ici …”,</li>"+ "<ul><li>insérez le nom de la catégorie (par exemple “fruits”, “légumes”, “mammifères”...) en cliquant dans le champ de texte “Saisir le nom de la catégorie ici …”,</li>"+
"<li>cliquez sur le gros “+” situé à gauche de la catégorie ce qui vous permet de rajouter des étiquettes de mots,</li>"+ "<li>cliquez sur le gros “+” situé à gauche de la catégorie ce qui vous permet de rajouter des étiquettes de mots,</li>"+
"<li>entrez des mots dans ces étiquettes,</li>"+ "<li>entrez des mots dans ces étiquettes,</li>"+
"<li>ajoutez ensuite une catégorie (ou plusieurs) en cliquant sur le signe “+” situé à droite de la catégorie, complétez par son nom et ajoutez des étiquettes de mots.</li></ul>"+ "<li>ajoutez ensuite une catégorie (ou plusieurs) en cliquant sur le signe “+” situé à droite de la catégorie, complétez par son nom et ajoutez des étiquettes de mots.</li></ul>"+
"<p>Pour supprimer une étiquette de mots, cliquez sur la croix située dans le coin supérieur droit de celle-ci.</p>"+ "<p>Pour supprimer une étiquette de mots, cliquez sur la croix située dans le coin supérieur droit de celle-ci.</p>"+
"<p>Pour supprimer une catégorie, cliquez sur le signe “-” situé à droite de celle-ci.</p>"+ "<p>Pour supprimer une catégorie, cliquez sur le signe “-” situé à droite de celle-ci.</p>"+
"<p>Pour supprimer un exercice, cliquez sur la croix à gauche du numéro de l’exercice.</p>"+ "<p>Pour supprimer un exercice, cliquez sur la croix à gauche du numéro de l’exercice.</p>"+
"<p>Le bouton “Afficher” vous permet d’utiliser l’activité.</p>" "<p>Le bouton “Afficher” vous permet d’utiliser l’activité.</p>",
theme: "Thème"
}; };
//main function //main function
@ -50,9 +51,11 @@ function start(){
$("#wgt_reload").text(sankoreLang.reload); $("#wgt_reload").text(sankoreLang.reload);
$("#wgt_help").text(sankoreLang.help); $("#wgt_help").text(sankoreLang.help);
$("#help").html(sankoreLang.help_content); $("#help").html(sankoreLang.help_content);
$(".style_select option[value='1']").text(sankoreLang.slate); $("#style_select option[value='1']").text(sankoreLang.slate);
$(".style_select option[value='2']").text(sankoreLang.pad); $("#style_select option[value='2']").text(sankoreLang.pad);
$(".style_select option[value='3']").text(sankoreLang.none); $("#style_select option[value='3']").text(sankoreLang.none);
var tmpl = $("div.inline label").html();
$("div.inline label").html(sankoreLang.theme + tmpl)
if(window.sankore){ if(window.sankore){
if(sankore.preference("categoriser_text","")){ if(sankore.preference("categoriser_text","")){
@ -74,11 +77,13 @@ function start(){
$("#wgt_help").click(function(){ $("#wgt_help").click(function(){
var tmp = $(this); var tmp = $(this);
if($(this).hasClass("open")){ if($(this).hasClass("open")){
$(this).removeClass("help_pad").removeClass("help_wood")
$("#help").slideUp("100", function(){ $("#help").slideUp("100", function(){
tmp.removeClass("open"); tmp.removeClass("open");
$("#data").show(); $("#data").show();
}); });
} else { } else {
($("#style_select").val() == 1)?$(this).removeClass("help_pad").addClass("help_wood"):$(this).removeClass("help_wood").addClass("help_pad");
$("#data").hide(); $("#data").hide();
$("#help").slideDown("100", function(){ $("#help").slideDown("100", function(){
tmp.addClass("open"); tmp.addClass("open");
@ -99,7 +104,7 @@ function start(){
exportData(); exportData();
}); });
$(".style_select").change(function (event){ $("#style_select").change(function (event){
changeStyle($(this).find("option:selected").val()); changeStyle($(this).find("option:selected").val());
}) })
@ -108,7 +113,7 @@ function start(){
if(!$(this).hasClass("selected")){ if(!$(this).hasClass("selected")){
$(this).addClass("selected"); $(this).addClass("selected");
$("#wgt_edit").removeClass("selected"); $("#wgt_edit").removeClass("selected");
$(".style_select").css("display","none"); $("#parameters").css("display","none");
$(".add_block").remove(); $(".add_block").remove();
$(".cont").each(function(){ $(".cont").each(function(){
var container = $(this); var container = $(this);
@ -181,7 +186,7 @@ function start(){
if(!$(this).hasClass("selected")){ if(!$(this).hasClass("selected")){
$(this).addClass("selected"); $(this).addClass("selected");
$("#wgt_display").removeClass("selected"); $("#wgt_display").removeClass("selected");
$(".style_select").css("display","block"); $("#parameters").css("display","block");
$(".cont").each(function(){ $(".cont").each(function(){
var container = $(this); var container = $(this);
@ -265,7 +270,7 @@ function exportData(){
cont_obj.conts = []; cont_obj.conts = [];
$(this).find(".imgs_cont").each(function(){ $(this).find(".imgs_cont").each(function(){
var img_cont = new Object(); var img_cont = new Object();
cont_obj.style = $(".style_select").find("option:selected").val(); cont_obj.style = $("#style_select").find("option:selected").val();
img_cont.mask = $(this).find("input[name='mask']").val(); img_cont.mask = $(this).find("input[name='mask']").val();
img_cont.count = $(this).find(".img_block").size(); img_cont.count = $(this).find(".img_block").size();
img_cont.text = $(this).find(".cat_desc").val(); img_cont.text = $(this).find(".cat_desc").val();
@ -287,7 +292,7 @@ function exportData(){
cont_obj.conts = []; cont_obj.conts = [];
$(this).find(".imgs_cont").each(function(){ $(this).find(".imgs_cont").each(function(){
var img_cont = new Object(); var img_cont = new Object();
cont_obj.style = $(".style_select").find("option:selected").val(); cont_obj.style = $("#style_select").find("option:selected").val();
img_cont.mask = $(this).find("input[name='mask']").val(); img_cont.mask = $(this).find("input[name='mask']").val();
img_cont.count = $(this).find("input[name='count']").val(); img_cont.count = $(this).find("input[name='count']").val();
img_cont.text = $(this).find(".cat_desc").val(); img_cont.text = $(this).find(".cat_desc").val();
@ -313,7 +318,7 @@ function exportData(){
if($(".cont").size() == 0){ if($(".cont").size() == 0){
var cont_obj = new Object(); var cont_obj = new Object();
cont_obj.style = $(".style_select").find("option:selected").val(); cont_obj.style = $("#style_select").find("option:selected").val();
cont_obj.tmp = "clear"; cont_obj.tmp = "clear";
array_to_export.push(cont_obj); array_to_export.push(cont_obj);
} }
@ -328,12 +333,12 @@ function importData(data){
for(var i in data){ for(var i in data){
if(data[i].tmp){ if(data[i].tmp){
changeStyle(data[i].style); changeStyle(data[i].style);
$(".style_select").val(data[i].style); $("#style_select").val(data[i].style);
} }
else { else {
if(i == 0){ if(i == 0){
changeStyle(data[i].style); changeStyle(data[i].style);
$(".style_select").val(data[i].style); $("#style_select").val(data[i].style);
} }
if(data[i].mode == "edit"){ if(data[i].mode == "edit"){
var tmp_array = []; var tmp_array = [];
@ -664,10 +669,10 @@ function changeStyle(val){
$("#wgt_reload").removeClass("pad_color").removeClass("pad_reload"); $("#wgt_reload").removeClass("pad_color").removeClass("pad_reload");
$("#wgt_help").removeClass("pad_color").removeClass("pad_help"); $("#wgt_help").removeClass("pad_color").removeClass("pad_help");
$("#wgt_edit").removeClass("pad_color").removeClass("pad_edit"); $("#wgt_edit").removeClass("pad_color").removeClass("pad_edit");
$("#wgt_display").removeClass("pad_color").removeClass("pad_edit");
$("#wgt_name").removeClass("pad_color"); $("#wgt_name").removeClass("pad_color");
$(".style_select").removeClass("pad_select").removeClass("none_select").val(val); $("#wgt_display").addClass("display_wood");
$("body, html").removeClass("without_radius"); $("#style_select").val(val);
$("body, html").removeClass("without_radius").addClass("radius_ft");
break; break;
case "2": case "2":
$(".b_top_left").addClass("btl_pad").removeClass("without_back"); $(".b_top_left").addClass("btl_pad").removeClass("without_back");
@ -681,10 +686,10 @@ function changeStyle(val){
$("#wgt_reload").addClass("pad_color").addClass("pad_reload"); $("#wgt_reload").addClass("pad_color").addClass("pad_reload");
$("#wgt_help").addClass("pad_color").addClass("pad_help"); $("#wgt_help").addClass("pad_color").addClass("pad_help");
$("#wgt_edit").addClass("pad_color").addClass("pad_edit"); $("#wgt_edit").addClass("pad_color").addClass("pad_edit");
$("#wgt_display").addClass("pad_color").addClass("pad_edit");
$("#wgt_name").addClass("pad_color"); $("#wgt_name").addClass("pad_color");
$(".style_select").addClass("pad_select").removeClass("none_select").val(val); $("#wgt_display").removeClass("display_wood");
$("body, html").removeClass("without_radius"); $("#style_select").val(val);
$("body, html").removeClass("without_radius").removeClass("radius_ft");
break; break;
case "3": case "3":
$(".b_top_left").addClass("without_back").removeClass("btl_pad"); $(".b_top_left").addClass("without_back").removeClass("btl_pad");
@ -698,10 +703,10 @@ function changeStyle(val){
$("#wgt_help").addClass("pad_color").addClass("pad_help"); $("#wgt_help").addClass("pad_color").addClass("pad_help");
$("#wgt_reload").addClass("pad_color").addClass("pad_reload"); $("#wgt_reload").addClass("pad_color").addClass("pad_reload");
$("#wgt_edit").addClass("pad_color").addClass("pad_edit"); $("#wgt_edit").addClass("pad_color").addClass("pad_edit");
$("#wgt_display").addClass("pad_color").addClass("pad_edit");
$("#wgt_name").addClass("pad_color"); $("#wgt_name").addClass("pad_color");
$(".style_select").addClass("none_select").val(val); $("#wgt_display").removeClass("display_wood");
$("body, html").addClass("without_radius"); $("#style_select").val(val);
$("body, html").addClass("without_radius").removeClass("radius_ft");
break; break;
} }
} }

@ -25,12 +25,7 @@
<div id="wgt_help"></div> <div id="wgt_help"></div>
<div id="wgt_reload"></div> <div id="wgt_reload"></div>
<div id="wgt_display" class="selected"></div> <div id="wgt_display" class="selected"></div>
<div id="wgt_edit"></div> <div id="wgt_edit"></div>
<select class="style_select">
<option value="1"></option>
<option value="2"></option>
<option value="3"></option>
</select>
</td> </td>
<td class="b_top_right">&nbsp;</td> <td class="b_top_right">&nbsp;</td>
</tr> </tr>
@ -40,7 +35,17 @@
<td> <td>
<div id="help"></div> <div id="help"></div>
<div id="data"> <div id="data">
<div id="parameters">
<div class="inline">
<label>
<select id="style_select">
<option value="1"></option>
<option value="2"></option>
<option value="3"></option>
</select>
</label>
</div>
</div>
</div> </div>
</td> </td>
<td class="b_center_right">&nbsp;</td> <td class="b_center_right">&nbsp;</td>

@ -1,5 +1,5 @@
var sankoreLang = { var sankoreLang = {
display: "Показать", display: "Закрыть",
edit: "Изменить", edit: "Изменить",
first_desc: "Фрукты", first_desc: "Фрукты",
second_desc: "Овощи", second_desc: "Овощи",
@ -17,7 +17,8 @@ var sankoreLang = {
pad: "Планшет", pad: "Планшет",
none: "Нет", none: "Нет",
help: "Помощь", help: "Помощь",
help_content: "Пример текста помощи ..." help_content: "Пример текста помощи ...",
theme: "Тема"
}; };
//main function //main function
@ -29,9 +30,11 @@ function start(){
$("#wgt_reload").text(sankoreLang.reload); $("#wgt_reload").text(sankoreLang.reload);
$("#wgt_help").text(sankoreLang.help); $("#wgt_help").text(sankoreLang.help);
$("#help").html(sankoreLang.help_content); $("#help").html(sankoreLang.help_content);
$(".style_select option[value='1']").text(sankoreLang.slate); $("#style_select option[value='1']").text(sankoreLang.slate);
$(".style_select option[value='2']").text(sankoreLang.pad); $("#style_select option[value='2']").text(sankoreLang.pad);
$(".style_select option[value='3']").text(sankoreLang.none); $("#style_select option[value='3']").text(sankoreLang.none);
var tmpl = $("div.inline label").html();
$("div.inline label").html(sankoreLang.theme + tmpl)
if(window.sankore){ if(window.sankore){
if(sankore.preference("categoriser_text","")){ if(sankore.preference("categoriser_text","")){
@ -53,11 +56,13 @@ function start(){
$("#wgt_help").click(function(){ $("#wgt_help").click(function(){
var tmp = $(this); var tmp = $(this);
if($(this).hasClass("open")){ if($(this).hasClass("open")){
$(this).removeClass("help_pad").removeClass("help_wood")
$("#help").slideUp("100", function(){ $("#help").slideUp("100", function(){
tmp.removeClass("open"); tmp.removeClass("open");
$("#data").show(); $("#data").show();
}); });
} else { } else {
($("#style_select").val() == 1)?$(this).removeClass("help_pad").addClass("help_wood"):$(this).removeClass("help_wood").addClass("help_pad");
$("#data").hide(); $("#data").hide();
$("#help").slideDown("100", function(){ $("#help").slideDown("100", function(){
tmp.addClass("open"); tmp.addClass("open");
@ -78,7 +83,7 @@ function start(){
exportData(); exportData();
}); });
$(".style_select").change(function (event){ $("#style_select").change(function (event){
changeStyle($(this).find("option:selected").val()); changeStyle($(this).find("option:selected").val());
}) })
@ -87,7 +92,7 @@ function start(){
if(!$(this).hasClass("selected")){ if(!$(this).hasClass("selected")){
$(this).addClass("selected"); $(this).addClass("selected");
$("#wgt_edit").removeClass("selected"); $("#wgt_edit").removeClass("selected");
$(".style_select").css("display","none"); $("#parameters").css("display","none");
$(".add_block").remove(); $(".add_block").remove();
$(".cont").each(function(){ $(".cont").each(function(){
var container = $(this); var container = $(this);
@ -160,7 +165,7 @@ function start(){
if(!$(this).hasClass("selected")){ if(!$(this).hasClass("selected")){
$(this).addClass("selected"); $(this).addClass("selected");
$("#wgt_display").removeClass("selected"); $("#wgt_display").removeClass("selected");
$(".style_select").css("display","block"); $("#parameters").css("display","block");
$(".cont").each(function(){ $(".cont").each(function(){
var container = $(this); var container = $(this);
@ -244,7 +249,7 @@ function exportData(){
cont_obj.conts = []; cont_obj.conts = [];
$(this).find(".imgs_cont").each(function(){ $(this).find(".imgs_cont").each(function(){
var img_cont = new Object(); var img_cont = new Object();
cont_obj.style = $(".style_select").find("option:selected").val(); cont_obj.style = $("#style_select").find("option:selected").val();
img_cont.mask = $(this).find("input[name='mask']").val(); img_cont.mask = $(this).find("input[name='mask']").val();
img_cont.count = $(this).find(".img_block").size(); img_cont.count = $(this).find(".img_block").size();
img_cont.text = $(this).find(".cat_desc").val(); img_cont.text = $(this).find(".cat_desc").val();
@ -266,7 +271,7 @@ function exportData(){
cont_obj.conts = []; cont_obj.conts = [];
$(this).find(".imgs_cont").each(function(){ $(this).find(".imgs_cont").each(function(){
var img_cont = new Object(); var img_cont = new Object();
cont_obj.style = $(".style_select").find("option:selected").val(); cont_obj.style = $("#style_select").find("option:selected").val();
img_cont.mask = $(this).find("input[name='mask']").val(); img_cont.mask = $(this).find("input[name='mask']").val();
img_cont.count = $(this).find("input[name='count']").val(); img_cont.count = $(this).find("input[name='count']").val();
img_cont.text = $(this).find(".cat_desc").val(); img_cont.text = $(this).find(".cat_desc").val();
@ -292,7 +297,7 @@ function exportData(){
if($(".cont").size() == 0){ if($(".cont").size() == 0){
var cont_obj = new Object(); var cont_obj = new Object();
cont_obj.style = $(".style_select").find("option:selected").val(); cont_obj.style = $("#style_select").find("option:selected").val();
cont_obj.tmp = "clear"; cont_obj.tmp = "clear";
array_to_export.push(cont_obj); array_to_export.push(cont_obj);
} }
@ -307,12 +312,12 @@ function importData(data){
for(var i in data){ for(var i in data){
if(data[i].tmp){ if(data[i].tmp){
changeStyle(data[i].style); changeStyle(data[i].style);
$(".style_select").val(data[i].style); $("#style_select").val(data[i].style);
} }
else { else {
if(i == 0){ if(i == 0){
changeStyle(data[i].style); changeStyle(data[i].style);
$(".style_select").val(data[i].style); $("#style_select").val(data[i].style);
} }
if(data[i].mode == "edit"){ if(data[i].mode == "edit"){
var tmp_array = []; var tmp_array = [];
@ -452,7 +457,7 @@ function importData(data){
} }
} }
} }
}); });
checkCorrectness(all_imgs); checkCorrectness(all_imgs);
} }
} }
@ -643,10 +648,10 @@ function changeStyle(val){
$("#wgt_reload").removeClass("pad_color").removeClass("pad_reload"); $("#wgt_reload").removeClass("pad_color").removeClass("pad_reload");
$("#wgt_help").removeClass("pad_color").removeClass("pad_help"); $("#wgt_help").removeClass("pad_color").removeClass("pad_help");
$("#wgt_edit").removeClass("pad_color").removeClass("pad_edit"); $("#wgt_edit").removeClass("pad_color").removeClass("pad_edit");
$("#wgt_display").removeClass("pad_color").removeClass("pad_edit");
$("#wgt_name").removeClass("pad_color"); $("#wgt_name").removeClass("pad_color");
$(".style_select").removeClass("pad_select").removeClass("none_select").val(val); $("#wgt_display").addClass("display_wood");
$("body, html").removeClass("without_radius"); $("#style_select").val(val);
$("body, html").removeClass("without_radius").addClass("radius_ft");
break; break;
case "2": case "2":
$(".b_top_left").addClass("btl_pad").removeClass("without_back"); $(".b_top_left").addClass("btl_pad").removeClass("without_back");
@ -660,10 +665,10 @@ function changeStyle(val){
$("#wgt_reload").addClass("pad_color").addClass("pad_reload"); $("#wgt_reload").addClass("pad_color").addClass("pad_reload");
$("#wgt_help").addClass("pad_color").addClass("pad_help"); $("#wgt_help").addClass("pad_color").addClass("pad_help");
$("#wgt_edit").addClass("pad_color").addClass("pad_edit"); $("#wgt_edit").addClass("pad_color").addClass("pad_edit");
$("#wgt_display").addClass("pad_color").addClass("pad_edit");
$("#wgt_name").addClass("pad_color"); $("#wgt_name").addClass("pad_color");
$(".style_select").addClass("pad_select").removeClass("none_select").val(val); $("#wgt_display").removeClass("display_wood");
$("body, html").removeClass("without_radius"); $("#style_select").val(val);
$("body, html").removeClass("without_radius").removeClass("radius_ft");
break; break;
case "3": case "3":
$(".b_top_left").addClass("without_back").removeClass("btl_pad"); $(".b_top_left").addClass("without_back").removeClass("btl_pad");
@ -677,10 +682,10 @@ function changeStyle(val){
$("#wgt_help").addClass("pad_color").addClass("pad_help"); $("#wgt_help").addClass("pad_color").addClass("pad_help");
$("#wgt_reload").addClass("pad_color").addClass("pad_reload"); $("#wgt_reload").addClass("pad_color").addClass("pad_reload");
$("#wgt_edit").addClass("pad_color").addClass("pad_edit"); $("#wgt_edit").addClass("pad_color").addClass("pad_edit");
$("#wgt_display").addClass("pad_color").addClass("pad_edit");
$("#wgt_name").addClass("pad_color"); $("#wgt_name").addClass("pad_color");
$(".style_select").addClass("none_select").val(val); $("#wgt_display").removeClass("display_wood");
$("body, html").addClass("without_radius"); $("#style_select").val(val);
$("body, html").addClass("without_radius").removeClass("radius_ft");
break; break;
} }
} }

@ -16,7 +16,7 @@ html, body{
height: 100%; height: 100%;
margin: 0; margin: 0;
padding: 0; padding: 0;
border-radius: 50px; border-radius: 35px;
overflow: hidden; overflow: hidden;
} }
@ -471,57 +471,40 @@ body{
margin: 10px 10px 0 10px; margin: 10px 10px 0 10px;
padding: 0; padding: 0;
float: left; float: left;
font-family: "Lobster13Regular"; font-family: Arial,Helvetica,sans-serif;
font-size: 24px; font-size: 24px;
color: #8c5730; color: #7F613F;
text-shadow: #FFDCA9 0 1px 0;
} }
#wgt_reload, #wgt_edit, #wgt_display, #wgt_help{ #wgt_reload, #wgt_edit, #wgt_display, #wgt_help{
cursor: pointer; cursor: pointer;
height: 44px;
margin: 10px 10px 0 0; margin: 10px 10px 0 0;
float: right; float: right;
font-family: "Lobster13Regular"; font-family: Arial,Helvetica,sans-serif;
font-size: 24px; font-size: 24px;
color: #8c5730; line-height: 32px;
} }
#wgt_display{ #wgt_display{
padding-left: 40px; padding-left: 35px;
background-image: url(../images/slate-edit.png); background: url(../images/toolbar-edit.png) left -32px no-repeat;
background-repeat: no-repeat; color: white;
background-position: top 0;
display: none; display: none;
} }
#wgt_edit{ #wgt_edit{
padding-left: 40px; padding-left: 35px;
background-image: url(../images/slate-edit.png); background: url(../images/slate-toolbar-edit.png) left top no-repeat;
background-repeat: no-repeat; color: #7F613F;
background-position: top 0; text-shadow: #FFDCA9 0 1px 0;
} }
#wgt_reload{ #wgt_reload{
padding-left: 40px; padding-left: 35px;
background-image: url(../images/slate-toolbar-reload.png); background: url(../images/slate-toolbar-reload.png) left top no-repeat;
background-repeat: no-repeat; color: #7F613F;
background-position: top 0; text-shadow: #FFDCA9 0 1px 0;
}
.style_select{
width: 120px;
font-family: "Lobster13Regular";
font-size: 24px;
float: right;
margin: 10px 20px 0 0;
border-radius: 10px;
background-image: url(../images/ar_down.png);
background-color: #d4aa79;
color: #8c5730;
background-position: 105px 11px;
background-repeat: no-repeat;
-webkit-appearance: menulist-text;
display: none;
} }
.btl_pad{ .btl_pad{
@ -556,51 +539,50 @@ body{
background-image: url(../images/pad-bottom-right.png) !important; background-image: url(../images/pad-bottom-right.png) !important;
} }
.pad_color{ .without_radius{
color: white !important; border-radius: 0 !important;
} }
.pad_reload{ .without_back{
background-image: url(../images/slate-toolbar-reload-white.png) !important; background: none !important;
} }
.pad_edit{ .pad_color{
background-image: url(../images/slate-display.png) !important; color: #FC9 !important;
text-shadow: none !important;
} }
.pad_select{ .pad_reload{
background-color: black !important; background: url(../images/toolbar-reload.png) left top no-repeat !important;
color: white !important;
background-image: url(../images/ar_down_white.png) !important;
} }
.without_radius{ .pad_edit{
border-radius: 0 !important; background: url(../images/toolbar-edit.png) left top no-repeat !important;
} }
.without_back{ .pad_help{
background: none !important; background: url(../images/toolbar-help.png) left top no-repeat !important;
} }
.none_select{ .help_wood{
background-color: #333 !important; background: url(../images/slate-toolbar-help.png) left -32px no-repeat !important;
color: white !important; color: white !important;
background-image: url(../images/ar_down_white.png) !important; text-shadow: #7F613F 0 -1px 0 !important;
} }
.pad_help{ .help_pad{
background-image: url(../images/slate-help-white.png) !important; background: url(../images/toolbar-help.png) left -32px no-repeat !important;
color: white !important;
} }
#wgt_help{ #wgt_help{
padding-left: 32px; padding-left: 35px;
background-image: url(../images/slate-help.png); background: url(../images/slate-toolbar-help.png) left top no-repeat;
background-repeat: no-repeat; color: #7F613F;
background-position: top 0; text-shadow: #FFDCA9 0 1px 0;
} }
#help{ #help{
width: 100%;
height: 100%; height: 100%;
overflow: auto; overflow: auto;
display: none; display: none;
@ -609,5 +591,36 @@ body{
} }
.open{ .open{
}
#parameters{
display: none;
padding: 10px 20px;
background: url("../images/parameters-bg.png");
border-radius: 4px 4px 0 0;
}
.inline{
display: inline-block;
font-family: "helvetica neue";
font-size: 14px;
color: #666;
}
#parameters label {
font-style: italic;
}
#style_select{
margin-left: 10px;
}
.display_wood{
background: url(../images/slate-toolbar-edit.png) left -32px no-repeat !important;
text-shadow: #7F613F 0 -1px 0;
}
.radius_ft{
border-radius: 45px !important;
} }

Binary file not shown.

Before

Width:  |  Height:  |  Size: 529 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 142 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 532 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 553 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.1 KiB

After

Width:  |  Height:  |  Size: 2.2 KiB

@ -54,12 +54,7 @@ and open the template in the editor.
<div id="wgt_help"></div> <div id="wgt_help"></div>
<div id="wgt_reload"></div> <div id="wgt_reload"></div>
<div id="wgt_display" class="selected"></div> <div id="wgt_display" class="selected"></div>
<div id="wgt_edit"></div> <div id="wgt_edit"></div>
<select class="style_select">
<option value="1"></option>
<option value="2"></option>
<option value="3"></option>
</select>
</td> </td>
<td class="b_top_right">&nbsp;</td> <td class="b_top_right">&nbsp;</td>
</tr> </tr>
@ -69,7 +64,17 @@ and open the template in the editor.
<td> <td>
<div id="help"></div> <div id="help"></div>
<div id="data"> <div id="data">
<div id="parameters">
<div class="inline">
<label>
<select id="style_select">
<option value="1"></option>
<option value="2"></option>
<option value="3"></option>
</select>
</label>
</div>
</div>
</div> </div>
</td> </td>
<td class="b_center_right">&nbsp;</td> <td class="b_center_right">&nbsp;</td>

@ -29,12 +29,7 @@ and open the template in the editor.
<div id="wgt_help"></div> <div id="wgt_help"></div>
<div id="wgt_reload"></div> <div id="wgt_reload"></div>
<div id="wgt_display" class="selected"></div> <div id="wgt_display" class="selected"></div>
<div id="wgt_edit"></div> <div id="wgt_edit"></div>
<select class="style_select">
<option value="1"></option>
<option value="2"></option>
<option value="3"></option>
</select>
</td> </td>
<td class="b_top_right">&nbsp;</td> <td class="b_top_right">&nbsp;</td>
</tr> </tr>
@ -44,7 +39,17 @@ and open the template in the editor.
<td> <td>
<div id="help"></div> <div id="help"></div>
<div id="data"> <div id="data">
<div id="parameters">
<div class="inline">
<label>
<select id="style_select">
<option value="1"></option>
<option value="2"></option>
<option value="3"></option>
</select>
</label>
</div>
</div>
</div> </div>
</td> </td>
<td class="b_center_right">&nbsp;</td> <td class="b_center_right">&nbsp;</td>

@ -15,7 +15,7 @@
var sankoreLang = { var sankoreLang = {
edit: "Modifier", edit: "Modifier",
display:"Afficher", display:"Fermer",
question:"La question", question:"La question",
example_question:"Ceci est un exemple de question", example_question:"Ceci est un exemple de question",
answer:"Ceci est une réponse possible", answer:"Ceci est une réponse possible",
@ -61,7 +61,8 @@ var sankoreLang = {
"<p>Pour supprimer un exercice, cliquez sur la croix à droite du numéro de ”Options”.</p>"+ "<p>Pour supprimer un exercice, cliquez sur la croix à droite du numéro de ”Options”.</p>"+
"<p>Le bouton “Afficher” vous permet d’utiliser l’activité.</p>" "<p>Le bouton “Afficher” vous permet d’utiliser l’activité.</p>",
theme: "Thème"
}; };
var questionArray; var questionArray;
@ -85,10 +86,11 @@ function init(){
$("#wgt_reload").text(sankoreLang.reload); $("#wgt_reload").text(sankoreLang.reload);
$("#wgt_help").text(sankoreLang.help); $("#wgt_help").text(sankoreLang.help);
$("#help").html(sankoreLang.help_content); $("#help").html(sankoreLang.help_content);
$(".style_select option[value='1']").text(sankoreLang.slate); $("#style_select option[value='1']").text(sankoreLang.slate);
$(".style_select option[value='2']").text(sankoreLang.pad); $("#style_select option[value='2']").text(sankoreLang.pad);
$(".style_select option[value='3']").text(sankoreLang.none); $("#style_select option[value='3']").text(sankoreLang.none);
var tmpl = $("div.inline label").html();
$("div.inline label").html(sankoreLang.theme + tmpl)
//popup message //popup message
var popupText = $("<div id='popupWordInfo' class='popupWordInfo'></div>").appendTo("#data"); var popupText = $("<div id='popupWordInfo' class='popupWordInfo'></div>").appendTo("#data");
@ -127,14 +129,14 @@ function init(){
if (window.widget) { if (window.widget) {
window.widget.onleave = function(){ window.widget.onleave = function(){
sankore.setPreference("qstArrayData", JSON.stringify(questionArray)); sankore.setPreference("qstArrayData", JSON.stringify(questionArray));
sankore.setPreference("choisir_style", $(".style_select").find("option:selected").val()); sankore.setPreference("choisir_style", $("#style_select").find("option:selected").val());
} }
} }
if(window.sankore) if(window.sankore)
if(sankore.preference("choisir_style","")){ if(sankore.preference("choisir_style","")){
changeStyle(sankore.preference("choisir_style","")); changeStyle(sankore.preference("choisir_style",""));
$(".style_select").val(sankore.preference("choisir_style","")); $("#style_select").val(sankore.preference("choisir_style",""));
} else } else
changeStyle("3") changeStyle("3")
@ -143,21 +145,21 @@ function init(){
if(!$(this).hasClass("selected")){ if(!$(this).hasClass("selected")){
$(this).addClass("selected"); $(this).addClass("selected");
$("#wgt_edit").removeClass("selected"); $("#wgt_edit").removeClass("selected");
$(".style_select").css("display","none"); $("#parameters").css("display","none");
$(this).css("display", "none"); $(this).css("display", "none");
$("#wgt_edit").css("display", "block"); $("#wgt_edit").css("display", "block");
displayData(true); displayData(true);
mode = true; mode = true;
if(window.sankore){ if(window.sankore){
sankore.setPreference("qstArrayData", JSON.stringify(questionArray)); sankore.setPreference("qstArrayData", JSON.stringify(questionArray));
sankore.setPreference("choisir_style", $(".style_select").find("option:selected").val()); sankore.setPreference("choisir_style", $("#style_select").find("option:selected").val());
} }
} }
} else { } else {
if(!$(this).hasClass("selected")){ if(!$(this).hasClass("selected")){
$(this).addClass("selected"); $(this).addClass("selected");
$("#wgt_display").removeClass("selected"); $("#wgt_display").removeClass("selected");
$(".style_select").css("display","block"); $("#parameters").css("display","block");
$(this).css("display", "none"); $(this).css("display", "none");
$("#wgt_display").css("display", "block"); $("#wgt_display").css("display", "block");
editData(); editData();
@ -165,15 +167,17 @@ function init(){
} }
} }
}); });
$("#wgt_help").click(function(){ $("#wgt_help").click(function(){
var tmp = $(this); var tmp = $(this);
if($(this).hasClass("open")){ if($(this).hasClass("open")){
$(this).removeClass("help_pad").removeClass("help_wood")
$("#help").slideUp("100", function(){ $("#help").slideUp("100", function(){
tmp.removeClass("open"); tmp.removeClass("open");
$("#data").show(); $("#data").show();
}); });
} else { } else {
($("#style_select").val() == 1)?$(this).removeClass("help_pad").addClass("help_wood"):$(this).removeClass("help_wood").addClass("help_pad");
$("#data").hide(); $("#data").hide();
$("#help").slideDown("100", function(){ $("#help").slideDown("100", function(){
tmp.addClass("open"); tmp.addClass("open");
@ -192,10 +196,10 @@ function init(){
} }
}); });
$(".style_select option[value='1']").text(sankoreLang.slate); $("#style_select option[value='1']").text(sankoreLang.slate);
$(".style_select option[value='2']").text(sankoreLang.pad); $("#style_select option[value='2']").text(sankoreLang.pad);
$(".style_select").change(function (event){ $("#style_select").change(function (event){
changeStyle($(this).find("option:selected").val()); changeStyle($(this).find("option:selected").val());
}) })
@ -477,71 +481,71 @@ function init(){
// show questions and answers in display mode // show questions and answers in display mode
function addToPage(array){ function addToPage(array){
var counter = 1; var counter = 1;
for(var i in array){ for(var i in array){
var qstDiv = $("<div class='qstDivDisplay' id='" + array[i].id + "qstDivDisplay'>"); var qstDiv = $("<div class='qstDivDisplay' id='" + array[i].id + "qstDivDisplay'>");
var spanOptConn = $("<div class='spanOptConn'>").appendTo(qstDiv); var spanOptConn = $("<div class='spanOptConn'>").appendTo(qstDiv);
var qstNumber = $("<span class='qstNumber'>" + sankoreLang.question + " " + counter + "</span>").appendTo(spanOptConn); var qstNumber = $("<span class='qstNumber'>" + sankoreLang.question + " " + counter + "</span>").appendTo(spanOptConn);
var qstContent = $("<div class='qstContentDisplay'>" + array[i].text + "</div>").appendTo(qstDiv); var qstContent = $("<div class='qstContentDisplay'>" + array[i].text + "</div>").appendTo(qstDiv);
var ansDiv = $("<div class='ansDiv' id='" + array[i].id + "ansDiv'>").appendTo(qstDiv); var ansDiv = $("<div class='ansDiv' id='" + array[i].id + "ansDiv'>").appendTo(qstDiv);
var ansCount = 1; var ansCount = 1;
var type = array[i].type; var type = array[i].type;
var selInput = $("<select>"); var selInput = $("<select>");
if(type == 3){ if(type == 3){
var newAnswer = $("<div class='newAnswer'>"); var newAnswer = $("<div class='newAnswer'>");
newAnswer.appendTo(ansDiv); newAnswer.appendTo(ansDiv);
var selectSpan = $("<span id='answerText'>").appendTo(newAnswer); var selectSpan = $("<span id='answerText'>").appendTo(newAnswer);
selInput.appendTo(selectSpan); selInput.appendTo(selectSpan);
$("<option value='0'>" + sankoreLang.select_text + "</option>").appendTo(selInput); $("<option value='0'>" + sankoreLang.select_text + "</option>").appendTo(selInput);
} }
for(var j in array[i].answers){ for(var j in array[i].answers){
switch(type){ switch(type){
case "1": case "1":
var local_state = ""; var local_state = "";
var local_color = ""; var local_color = "";
if(begin){ if(begin){
local_state = array[i].answers[j].state; local_state = array[i].answers[j].state;
local_color = (array[i].answers[j].value == array[i].rightAns)?((array[i].answers[j].was)?"style='background-color: #6c0;'":""):((array[i].answers[j].was)?"style='background-color: red;'":""); local_color = (array[i].answers[j].value == array[i].rightAns)?((array[i].answers[j].was)?"style='background-color: #6c0;'":""):((array[i].answers[j].was)?"style='background-color: red;'":"");
} }
newAnswer = $("<div class='newAnswer'>"); newAnswer = $("<div class='newAnswer'>");
var ansInput = $("<input type='radio' name='" + counter + "' value='" + array[i].answers[j].value + "' " + local_state + " style='float: left; margin-right: 10px;'/>").appendTo(newAnswer); var ansInput = $("<input type='radio' name='" + counter + "' value='" + array[i].answers[j].value + "' " + local_state + " style='float: left; margin-right: 10px;'/>").appendTo(newAnswer);
var ansSpan = $("<span class='ansSpanDisplay'>" + ansCount + ".</span>").appendTo(newAnswer); var ansSpan = $("<span class='ansSpanDisplay'>" + ansCount + ".</span>").appendTo(newAnswer);
var ansContent = $("<div class='ansContentDisplay' " + local_color + "><span id='answerText'>" + array[i].answers[j].text + "</span></div>").appendTo(newAnswer); var ansContent = $("<div class='ansContentDisplay' " + local_color + "><span id='answerText'>" + array[i].answers[j].text + "</span></div>").appendTo(newAnswer);
newAnswer.appendTo(ansDiv); newAnswer.appendTo(ansDiv);
break; break;
case "2": case "2":
local_state = ""; local_state = "";
local_color = ""; local_color = "";
if(begin){ if(begin){
local_state = (array[i].answers[j].state)?"checked":""; local_state = (array[i].answers[j].state)?"checked":"";
local_color = (array[i].rightAns.replace(/,/g,"").indexOf(array[i].answers[j].value + " ", 0) != -1)?((array[i].answers[j].was)?"style='background-color: #6c0;'":""):((array[i].answers[j].was)?"style='background-color: red;'":""); local_color = (array[i].rightAns.replace(/,/g,"").indexOf(array[i].answers[j].value + " ", 0) != -1)?((array[i].answers[j].was)?"style='background-color: #6c0;'":""):((array[i].answers[j].was)?"style='background-color: red;'":"");
} }
newAnswer = $("<div class='newAnswer'>"); newAnswer = $("<div class='newAnswer'>");
ansInput = $("<input type='checkbox' value='" + array[i].answers[j].value + "' " + local_state + " style='float: left; margin-right: 10px;'/>").appendTo(newAnswer); ansInput = $("<input type='checkbox' value='" + array[i].answers[j].value + "' " + local_state + " style='float: left; margin-right: 10px;'/>").appendTo(newAnswer);
ansSpan = $("<span class='ansSpanDisplay'>" + ansCount + ".</span>").appendTo(newAnswer); ansSpan = $("<span class='ansSpanDisplay'>" + ansCount + ".</span>").appendTo(newAnswer);
ansContent = $("<div class='ansContentDisplay' " + local_color + "><span id='answerText'>" + array[i].answers[j].text + "</span></div>").appendTo(newAnswer); ansContent = $("<div class='ansContentDisplay' " + local_color + "><span id='answerText'>" + array[i].answers[j].text + "</span></div>").appendTo(newAnswer);
newAnswer.appendTo(ansDiv); newAnswer.appendTo(ansDiv);
break; break;
case "3": case "3":
local_state = ""; local_state = "";
local_color = ""; local_color = "";
if(begin){ if(begin){
local_state = (array[i].answers[j].state)?"selected":""; local_state = (array[i].answers[j].state)?"selected":"";
local_color = (array[i].answers[j].value == array[i].rightAns)?((array[i].answers[j].was)?"#6c0":""):((array[i].answers[j].was)?"red":""); local_color = (array[i].answers[j].value == array[i].rightAns)?((array[i].answers[j].was)?"#6c0":""):((array[i].answers[j].was)?"red":"");
} }
ansInput = $("<option value='" + array[i].answers[j].value + "' " + local_state + ">" + array[i].answers[j].text + "</option>").appendTo(selInput); ansInput = $("<option value='" + array[i].answers[j].value + "' " + local_state + ">" + array[i].answers[j].text + "</option>").appendTo(selInput);
if(local_state && local_color) if(local_state && local_color)
selInput.css("background-color",local_color); selInput.css("background-color",local_color);
break; break;
} }
ansCount++; ansCount++;
}
qstDiv.appendTo("#data");
counter++;
} }
qstDiv.appendTo("#data"); begin = false;
counter++;
}
begin = false;
} }
} }
@ -746,10 +750,10 @@ function changeStyle(val){
$("#wgt_reload").removeClass("pad_color").removeClass("pad_reload"); $("#wgt_reload").removeClass("pad_color").removeClass("pad_reload");
$("#wgt_help").removeClass("pad_color").removeClass("pad_help"); $("#wgt_help").removeClass("pad_color").removeClass("pad_help");
$("#wgt_edit").removeClass("pad_color").removeClass("pad_edit"); $("#wgt_edit").removeClass("pad_color").removeClass("pad_edit");
$("#wgt_display").removeClass("pad_color").removeClass("pad_edit");
$("#wgt_name").removeClass("pad_color"); $("#wgt_name").removeClass("pad_color");
$(".style_select").removeClass("pad_select").removeClass("none_select").val(val); $("#wgt_display").addClass("display_wood");
$("body, html").removeClass("without_radius"); $("#style_select").val(val);
$("body, html").removeClass("without_radius").addClass("radius_ft");
break; break;
case "2": case "2":
$(".b_top_left").addClass("btl_pad").removeClass("without_back"); $(".b_top_left").addClass("btl_pad").removeClass("without_back");
@ -763,10 +767,10 @@ function changeStyle(val){
$("#wgt_reload").addClass("pad_color").addClass("pad_reload"); $("#wgt_reload").addClass("pad_color").addClass("pad_reload");
$("#wgt_help").addClass("pad_color").addClass("pad_help"); $("#wgt_help").addClass("pad_color").addClass("pad_help");
$("#wgt_edit").addClass("pad_color").addClass("pad_edit"); $("#wgt_edit").addClass("pad_color").addClass("pad_edit");
$("#wgt_display").addClass("pad_color").addClass("pad_edit");
$("#wgt_name").addClass("pad_color"); $("#wgt_name").addClass("pad_color");
$(".style_select").addClass("pad_select").removeClass("none_select").val(val); $("#wgt_display").removeClass("display_wood");
$("body, html").removeClass("without_radius"); $("#style_select").val(val);
$("body, html").removeClass("without_radius").removeClass("radius_ft");
break; break;
case "3": case "3":
$(".b_top_left").addClass("without_back").removeClass("btl_pad"); $(".b_top_left").addClass("without_back").removeClass("btl_pad");
@ -780,10 +784,10 @@ function changeStyle(val){
$("#wgt_help").addClass("pad_color").addClass("pad_help"); $("#wgt_help").addClass("pad_color").addClass("pad_help");
$("#wgt_reload").addClass("pad_color").addClass("pad_reload"); $("#wgt_reload").addClass("pad_color").addClass("pad_reload");
$("#wgt_edit").addClass("pad_color").addClass("pad_edit"); $("#wgt_edit").addClass("pad_color").addClass("pad_edit");
$("#wgt_display").addClass("pad_color").addClass("pad_edit");
$("#wgt_name").addClass("pad_color"); $("#wgt_name").addClass("pad_color");
$(".style_select").addClass("none_select").val(val); $("#wgt_display").removeClass("display_wood");
$("body, html").addClass("without_radius"); $("#style_select").val(val);
$("body, html").addClass("without_radius").removeClass("radius_ft");
break; break;
} }
} }

@ -29,12 +29,7 @@ and open the template in the editor.
<div id="wgt_help"></div> <div id="wgt_help"></div>
<div id="wgt_reload"></div> <div id="wgt_reload"></div>
<div id="wgt_display" class="selected"></div> <div id="wgt_display" class="selected"></div>
<div id="wgt_edit"></div> <div id="wgt_edit"></div>
<select class="style_select">
<option value="1"></option>
<option value="2"></option>
<option value="3"></option>
</select>
</td> </td>
<td class="b_top_right">&nbsp;</td> <td class="b_top_right">&nbsp;</td>
</tr> </tr>
@ -44,7 +39,17 @@ and open the template in the editor.
<td> <td>
<div id="help"></div> <div id="help"></div>
<div id="data"> <div id="data">
<div id="parameters">
<div class="inline">
<label>
<select id="style_select">
<option value="1"></option>
<option value="2"></option>
<option value="3"></option>
</select>
</label>
</div>
</div>
</div> </div>
</td> </td>
<td class="b_center_right">&nbsp;</td> <td class="b_center_right">&nbsp;</td>

@ -15,7 +15,7 @@
var sankoreLang = { var sankoreLang = {
edit: "Изменить", edit: "Изменить",
display:"Показать", display:"Закрыть",
question:"Вопрос", question:"Вопрос",
example_question:"Это пример вопроса", example_question:"Это пример вопроса",
answer:"Это пример ответа", answer:"Это пример ответа",
@ -41,7 +41,8 @@ var sankoreLang = {
pad: "Планшет", pad: "Планшет",
none: "Нет", none: "Нет",
help: "Помощь", help: "Помощь",
help_content: "Пример текста помощи ..." help_content: "Пример текста помощи ...",
theme: "Тема"
}; };
var questionArray; var questionArray;
@ -65,10 +66,11 @@ function init(){
$("#wgt_reload").text(sankoreLang.reload); $("#wgt_reload").text(sankoreLang.reload);
$("#wgt_help").text(sankoreLang.help); $("#wgt_help").text(sankoreLang.help);
$("#help").html(sankoreLang.help_content); $("#help").html(sankoreLang.help_content);
$(".style_select option[value='1']").text(sankoreLang.slate); $("#style_select option[value='1']").text(sankoreLang.slate);
$(".style_select option[value='2']").text(sankoreLang.pad); $("#style_select option[value='2']").text(sankoreLang.pad);
$(".style_select option[value='3']").text(sankoreLang.none); $("#style_select option[value='3']").text(sankoreLang.none);
var tmpl = $("div.inline label").html();
$("div.inline label").html(sankoreLang.theme + tmpl)
//popup message //popup message
var popupText = $("<div id='popupWordInfo' class='popupWordInfo'></div>").appendTo("#data"); var popupText = $("<div id='popupWordInfo' class='popupWordInfo'></div>").appendTo("#data");
@ -107,14 +109,14 @@ function init(){
if (window.widget) { if (window.widget) {
window.widget.onleave = function(){ window.widget.onleave = function(){
sankore.setPreference("qstArrayData", JSON.stringify(questionArray)); sankore.setPreference("qstArrayData", JSON.stringify(questionArray));
sankore.setPreference("choisir_style", $(".style_select").find("option:selected").val()); sankore.setPreference("choisir_style", $("#style_select").find("option:selected").val());
} }
} }
if(window.sankore) if(window.sankore)
if(sankore.preference("choisir_style","")){ if(sankore.preference("choisir_style","")){
changeStyle(sankore.preference("choisir_style","")); changeStyle(sankore.preference("choisir_style",""));
$(".style_select").val(sankore.preference("choisir_style","")); $("#style_select").val(sankore.preference("choisir_style",""));
} else } else
changeStyle("3") changeStyle("3")
@ -123,21 +125,21 @@ function init(){
if(!$(this).hasClass("selected")){ if(!$(this).hasClass("selected")){
$(this).addClass("selected"); $(this).addClass("selected");
$("#wgt_edit").removeClass("selected"); $("#wgt_edit").removeClass("selected");
$(".style_select").css("display","none"); $("#parameters").css("display","none");
$(this).css("display", "none"); $(this).css("display", "none");
$("#wgt_edit").css("display", "block"); $("#wgt_edit").css("display", "block");
displayData(true); displayData(true);
mode = true; mode = true;
if(window.sankore){ if(window.sankore){
sankore.setPreference("qstArrayData", JSON.stringify(questionArray)); sankore.setPreference("qstArrayData", JSON.stringify(questionArray));
sankore.setPreference("choisir_style", $(".style_select").find("option:selected").val()); sankore.setPreference("choisir_style", $("#style_select").find("option:selected").val());
} }
} }
} else { } else {
if(!$(this).hasClass("selected")){ if(!$(this).hasClass("selected")){
$(this).addClass("selected"); $(this).addClass("selected");
$("#wgt_display").removeClass("selected"); $("#wgt_display").removeClass("selected");
$(".style_select").css("display","block"); $("#parameters").css("display","block");
$(this).css("display", "none"); $(this).css("display", "none");
$("#wgt_display").css("display", "block"); $("#wgt_display").css("display", "block");
editData(); editData();
@ -149,11 +151,13 @@ function init(){
$("#wgt_help").click(function(){ $("#wgt_help").click(function(){
var tmp = $(this); var tmp = $(this);
if($(this).hasClass("open")){ if($(this).hasClass("open")){
$(this).removeClass("help_pad").removeClass("help_wood")
$("#help").slideUp("100", function(){ $("#help").slideUp("100", function(){
tmp.removeClass("open"); tmp.removeClass("open");
$("#data").show(); $("#data").show();
}); });
} else { } else {
($("#style_select").val() == 1)?$(this).removeClass("help_pad").addClass("help_wood"):$(this).removeClass("help_wood").addClass("help_pad");
$("#data").hide(); $("#data").hide();
$("#help").slideDown("100", function(){ $("#help").slideDown("100", function(){
tmp.addClass("open"); tmp.addClass("open");
@ -172,10 +176,10 @@ function init(){
} }
}); });
$(".style_select option[value='1']").text(sankoreLang.slate); $("#style_select option[value='1']").text(sankoreLang.slate);
$(".style_select option[value='2']").text(sankoreLang.pad); $("#style_select option[value='2']").text(sankoreLang.pad);
$(".style_select").change(function (event){ $("#style_select").change(function (event){
changeStyle($(this).find("option:selected").val()); changeStyle($(this).find("option:selected").val());
}) })
@ -457,71 +461,71 @@ function init(){
// show questions and answers in display mode // show questions and answers in display mode
function addToPage(array){ function addToPage(array){
var counter = 1; var counter = 1;
for(var i in array){ for(var i in array){
var qstDiv = $("<div class='qstDivDisplay' id='" + array[i].id + "qstDivDisplay'>"); var qstDiv = $("<div class='qstDivDisplay' id='" + array[i].id + "qstDivDisplay'>");
var spanOptConn = $("<div class='spanOptConn'>").appendTo(qstDiv); var spanOptConn = $("<div class='spanOptConn'>").appendTo(qstDiv);
var qstNumber = $("<span class='qstNumber'>" + sankoreLang.question + " " + counter + "</span>").appendTo(spanOptConn); var qstNumber = $("<span class='qstNumber'>" + sankoreLang.question + " " + counter + "</span>").appendTo(spanOptConn);
var qstContent = $("<div class='qstContentDisplay'>" + array[i].text + "</div>").appendTo(qstDiv); var qstContent = $("<div class='qstContentDisplay'>" + array[i].text + "</div>").appendTo(qstDiv);
var ansDiv = $("<div class='ansDiv' id='" + array[i].id + "ansDiv'>").appendTo(qstDiv); var ansDiv = $("<div class='ansDiv' id='" + array[i].id + "ansDiv'>").appendTo(qstDiv);
var ansCount = 1; var ansCount = 1;
var type = array[i].type; var type = array[i].type;
var selInput = $("<select>"); var selInput = $("<select>");
if(type == 3){ if(type == 3){
var newAnswer = $("<div class='newAnswer'>"); var newAnswer = $("<div class='newAnswer'>");
newAnswer.appendTo(ansDiv); newAnswer.appendTo(ansDiv);
var selectSpan = $("<span id='answerText'>").appendTo(newAnswer); var selectSpan = $("<span id='answerText'>").appendTo(newAnswer);
selInput.appendTo(selectSpan); selInput.appendTo(selectSpan);
$("<option value='0'>" + sankoreLang.select_text + "</option>").appendTo(selInput); $("<option value='0'>" + sankoreLang.select_text + "</option>").appendTo(selInput);
} }
for(var j in array[i].answers){ for(var j in array[i].answers){
switch(type){ switch(type){
case "1": case "1":
var local_state = ""; var local_state = "";
var local_color = ""; var local_color = "";
if(begin){ if(begin){
local_state = array[i].answers[j].state; local_state = array[i].answers[j].state;
local_color = (array[i].answers[j].value == array[i].rightAns)?((array[i].answers[j].was)?"style='background-color: #6c0;'":""):((array[i].answers[j].was)?"style='background-color: red;'":""); local_color = (array[i].answers[j].value == array[i].rightAns)?((array[i].answers[j].was)?"style='background-color: #6c0;'":""):((array[i].answers[j].was)?"style='background-color: red;'":"");
} }
newAnswer = $("<div class='newAnswer'>"); newAnswer = $("<div class='newAnswer'>");
var ansInput = $("<input type='radio' name='" + counter + "' value='" + array[i].answers[j].value + "' " + local_state + " style='float: left; margin-right: 10px;'/>").appendTo(newAnswer); var ansInput = $("<input type='radio' name='" + counter + "' value='" + array[i].answers[j].value + "' " + local_state + " style='float: left; margin-right: 10px;'/>").appendTo(newAnswer);
var ansSpan = $("<span class='ansSpanDisplay'>" + ansCount + ".</span>").appendTo(newAnswer); var ansSpan = $("<span class='ansSpanDisplay'>" + ansCount + ".</span>").appendTo(newAnswer);
var ansContent = $("<div class='ansContentDisplay' " + local_color + "><span id='answerText'>" + array[i].answers[j].text + "</span></div>").appendTo(newAnswer); var ansContent = $("<div class='ansContentDisplay' " + local_color + "><span id='answerText'>" + array[i].answers[j].text + "</span></div>").appendTo(newAnswer);
newAnswer.appendTo(ansDiv); newAnswer.appendTo(ansDiv);
break; break;
case "2": case "2":
local_state = ""; local_state = "";
local_color = ""; local_color = "";
if(begin){ if(begin){
local_state = (array[i].answers[j].state)?"checked":""; local_state = (array[i].answers[j].state)?"checked":"";
local_color = (array[i].rightAns.replace(/,/g,"").indexOf(array[i].answers[j].value + " ", 0) != -1)?((array[i].answers[j].was)?"style='background-color: #6c0;'":""):((array[i].answers[j].was)?"style='background-color: red;'":""); local_color = (array[i].rightAns.replace(/,/g,"").indexOf(array[i].answers[j].value + " ", 0) != -1)?((array[i].answers[j].was)?"style='background-color: #6c0;'":""):((array[i].answers[j].was)?"style='background-color: red;'":"");
} }
newAnswer = $("<div class='newAnswer'>"); newAnswer = $("<div class='newAnswer'>");
ansInput = $("<input type='checkbox' value='" + array[i].answers[j].value + "' " + local_state + " style='float: left; margin-right: 10px;'/>").appendTo(newAnswer); ansInput = $("<input type='checkbox' value='" + array[i].answers[j].value + "' " + local_state + " style='float: left; margin-right: 10px;'/>").appendTo(newAnswer);
ansSpan = $("<span class='ansSpanDisplay'>" + ansCount + ".</span>").appendTo(newAnswer); ansSpan = $("<span class='ansSpanDisplay'>" + ansCount + ".</span>").appendTo(newAnswer);
ansContent = $("<div class='ansContentDisplay' " + local_color + "><span id='answerText'>" + array[i].answers[j].text + "</span></div>").appendTo(newAnswer); ansContent = $("<div class='ansContentDisplay' " + local_color + "><span id='answerText'>" + array[i].answers[j].text + "</span></div>").appendTo(newAnswer);
newAnswer.appendTo(ansDiv); newAnswer.appendTo(ansDiv);
break; break;
case "3": case "3":
local_state = ""; local_state = "";
local_color = ""; local_color = "";
if(begin){ if(begin){
local_state = (array[i].answers[j].state)?"selected":""; local_state = (array[i].answers[j].state)?"selected":"";
local_color = (array[i].answers[j].value == array[i].rightAns)?((array[i].answers[j].was)?"#6c0":""):((array[i].answers[j].was)?"red":""); local_color = (array[i].answers[j].value == array[i].rightAns)?((array[i].answers[j].was)?"#6c0":""):((array[i].answers[j].was)?"red":"");
} }
ansInput = $("<option value='" + array[i].answers[j].value + "' " + local_state + ">" + array[i].answers[j].text + "</option>").appendTo(selInput); ansInput = $("<option value='" + array[i].answers[j].value + "' " + local_state + ">" + array[i].answers[j].text + "</option>").appendTo(selInput);
if(local_state && local_color) if(local_state && local_color)
selInput.css("background-color",local_color); selInput.css("background-color",local_color);
break; break;
} }
ansCount++; ansCount++;
}
qstDiv.appendTo("#data");
counter++;
} }
qstDiv.appendTo("#data"); begin = false;
counter++;
}
begin = false;
} }
} }
@ -726,10 +730,10 @@ function changeStyle(val){
$("#wgt_reload").removeClass("pad_color").removeClass("pad_reload"); $("#wgt_reload").removeClass("pad_color").removeClass("pad_reload");
$("#wgt_help").removeClass("pad_color").removeClass("pad_help"); $("#wgt_help").removeClass("pad_color").removeClass("pad_help");
$("#wgt_edit").removeClass("pad_color").removeClass("pad_edit"); $("#wgt_edit").removeClass("pad_color").removeClass("pad_edit");
$("#wgt_display").removeClass("pad_color").removeClass("pad_edit");
$("#wgt_name").removeClass("pad_color"); $("#wgt_name").removeClass("pad_color");
$(".style_select").removeClass("pad_select").removeClass("none_select").val(val); $("#wgt_display").addClass("display_wood");
$("body, html").removeClass("without_radius"); $("#style_select").val(val);
$("body, html").removeClass("without_radius").addClass("radius_ft");
break; break;
case "2": case "2":
$(".b_top_left").addClass("btl_pad").removeClass("without_back"); $(".b_top_left").addClass("btl_pad").removeClass("without_back");
@ -743,10 +747,10 @@ function changeStyle(val){
$("#wgt_reload").addClass("pad_color").addClass("pad_reload"); $("#wgt_reload").addClass("pad_color").addClass("pad_reload");
$("#wgt_help").addClass("pad_color").addClass("pad_help"); $("#wgt_help").addClass("pad_color").addClass("pad_help");
$("#wgt_edit").addClass("pad_color").addClass("pad_edit"); $("#wgt_edit").addClass("pad_color").addClass("pad_edit");
$("#wgt_display").addClass("pad_color").addClass("pad_edit");
$("#wgt_name").addClass("pad_color"); $("#wgt_name").addClass("pad_color");
$(".style_select").addClass("pad_select").removeClass("none_select").val(val); $("#wgt_display").removeClass("display_wood");
$("body, html").removeClass("without_radius"); $("#style_select").val(val);
$("body, html").removeClass("without_radius").removeClass("radius_ft");
break; break;
case "3": case "3":
$(".b_top_left").addClass("without_back").removeClass("btl_pad"); $(".b_top_left").addClass("without_back").removeClass("btl_pad");
@ -760,10 +764,10 @@ function changeStyle(val){
$("#wgt_help").addClass("pad_color").addClass("pad_help"); $("#wgt_help").addClass("pad_color").addClass("pad_help");
$("#wgt_reload").addClass("pad_color").addClass("pad_reload"); $("#wgt_reload").addClass("pad_color").addClass("pad_reload");
$("#wgt_edit").addClass("pad_color").addClass("pad_edit"); $("#wgt_edit").addClass("pad_color").addClass("pad_edit");
$("#wgt_display").addClass("pad_color").addClass("pad_edit");
$("#wgt_name").addClass("pad_color"); $("#wgt_name").addClass("pad_color");
$(".style_select").addClass("none_select").val(val); $("#wgt_display").removeClass("display_wood");
$("body, html").addClass("without_radius"); $("#style_select").val(val);
$("body, html").addClass("without_radius").removeClass("radius_ft");
break; break;
} }
} }

@ -15,7 +15,7 @@
var sankoreLang = { var sankoreLang = {
edit: "Edit", edit: "Edit",
display:"Display", display:"Close",
question:"Question", question:"Question",
example_question:"This is an example of the question", example_question:"This is an example of the question",
answer:"This is one possible answer", answer:"This is one possible answer",
@ -41,7 +41,8 @@ var sankoreLang = {
pad: "Pad", pad: "Pad",
none: "None", none: "None",
help: "Help", help: "Help",
help_content: "This is an example of help content ..." help_content: "This is an example of help content ...",
theme: "Theme"
}; };
var questionArray; var questionArray;
@ -65,10 +66,11 @@ function init(){
$("#wgt_reload").text(sankoreLang.reload); $("#wgt_reload").text(sankoreLang.reload);
$("#wgt_help").text(sankoreLang.help); $("#wgt_help").text(sankoreLang.help);
$("#help").html(sankoreLang.help_content); $("#help").html(sankoreLang.help_content);
$(".style_select option[value='1']").text(sankoreLang.slate); $("#style_select option[value='1']").text(sankoreLang.slate);
$(".style_select option[value='2']").text(sankoreLang.pad); $("#style_select option[value='2']").text(sankoreLang.pad);
$(".style_select option[value='3']").text(sankoreLang.none); $("#style_select option[value='3']").text(sankoreLang.none);
var tmpl = $("div.inline label").html();
$("div.inline label").html(sankoreLang.theme + tmpl)
//popup message //popup message
var popupText = $("<div id='popupWordInfo' class='popupWordInfo'></div>").appendTo("#data"); var popupText = $("<div id='popupWordInfo' class='popupWordInfo'></div>").appendTo("#data");
@ -107,14 +109,14 @@ function init(){
if (window.widget) { if (window.widget) {
window.widget.onleave = function(){ window.widget.onleave = function(){
sankore.setPreference("qstArrayData", JSON.stringify(questionArray)); sankore.setPreference("qstArrayData", JSON.stringify(questionArray));
sankore.setPreference("choisir_style", $(".style_select").find("option:selected").val()); sankore.setPreference("choisir_style", $("#style_select").find("option:selected").val());
} }
} }
if(window.sankore) if(window.sankore)
if(sankore.preference("choisir_style","")){ if(sankore.preference("choisir_style","")){
changeStyle(sankore.preference("choisir_style","")); changeStyle(sankore.preference("choisir_style",""));
$(".style_select").val(sankore.preference("choisir_style","")); $("#style_select").val(sankore.preference("choisir_style",""));
} else } else
changeStyle("3") changeStyle("3")
@ -123,21 +125,21 @@ function init(){
if(!$(this).hasClass("selected")){ if(!$(this).hasClass("selected")){
$(this).addClass("selected"); $(this).addClass("selected");
$("#wgt_edit").removeClass("selected"); $("#wgt_edit").removeClass("selected");
$(".style_select").css("display","none"); $("#parameters").css("display","none");
$(this).css("display", "none"); $(this).css("display", "none");
$("#wgt_edit").css("display", "block"); $("#wgt_edit").css("display", "block");
displayData(true); displayData(true);
mode = true; mode = true;
if(window.sankore){ if(window.sankore){
sankore.setPreference("qstArrayData", JSON.stringify(questionArray)); sankore.setPreference("qstArrayData", JSON.stringify(questionArray));
sankore.setPreference("choisir_style", $(".style_select").find("option:selected").val()); sankore.setPreference("choisir_style", $("#style_select").find("option:selected").val());
} }
} }
} else { } else {
if(!$(this).hasClass("selected")){ if(!$(this).hasClass("selected")){
$(this).addClass("selected"); $(this).addClass("selected");
$("#wgt_display").removeClass("selected"); $("#wgt_display").removeClass("selected");
$(".style_select").css("display","block"); $("#parameters").css("display","block");
$(this).css("display", "none"); $(this).css("display", "none");
$("#wgt_display").css("display", "block"); $("#wgt_display").css("display", "block");
editData(); editData();
@ -149,11 +151,13 @@ function init(){
$("#wgt_help").click(function(){ $("#wgt_help").click(function(){
var tmp = $(this); var tmp = $(this);
if($(this).hasClass("open")){ if($(this).hasClass("open")){
$(this).removeClass("help_pad").removeClass("help_wood")
$("#help").slideUp("100", function(){ $("#help").slideUp("100", function(){
tmp.removeClass("open"); tmp.removeClass("open");
$("#data").show(); $("#data").show();
}); });
} else { } else {
($("#style_select").val() == 1)?$(this).removeClass("help_pad").addClass("help_wood"):$(this).removeClass("help_wood").addClass("help_pad");
$("#data").hide(); $("#data").hide();
$("#help").slideDown("100", function(){ $("#help").slideDown("100", function(){
tmp.addClass("open"); tmp.addClass("open");
@ -172,10 +176,10 @@ function init(){
} }
}); });
$(".style_select option[value='1']").text(sankoreLang.slate); $("#style_select option[value='1']").text(sankoreLang.slate);
$(".style_select option[value='2']").text(sankoreLang.pad); $("#style_select option[value='2']").text(sankoreLang.pad);
$(".style_select").change(function (event){ $("#style_select").change(function (event){
changeStyle($(this).find("option:selected").val()); changeStyle($(this).find("option:selected").val());
}) })
@ -726,10 +730,10 @@ function changeStyle(val){
$("#wgt_reload").removeClass("pad_color").removeClass("pad_reload"); $("#wgt_reload").removeClass("pad_color").removeClass("pad_reload");
$("#wgt_help").removeClass("pad_color").removeClass("pad_help"); $("#wgt_help").removeClass("pad_color").removeClass("pad_help");
$("#wgt_edit").removeClass("pad_color").removeClass("pad_edit"); $("#wgt_edit").removeClass("pad_color").removeClass("pad_edit");
$("#wgt_display").removeClass("pad_color").removeClass("pad_edit");
$("#wgt_name").removeClass("pad_color"); $("#wgt_name").removeClass("pad_color");
$(".style_select").removeClass("pad_select").removeClass("none_select").val(val); $("#wgt_display").addClass("display_wood");
$("body, html").removeClass("without_radius"); $("#style_select").val(val);
$("body, html").removeClass("without_radius").addClass("radius_ft");
break; break;
case "2": case "2":
$(".b_top_left").addClass("btl_pad").removeClass("without_back"); $(".b_top_left").addClass("btl_pad").removeClass("without_back");
@ -743,10 +747,10 @@ function changeStyle(val){
$("#wgt_reload").addClass("pad_color").addClass("pad_reload"); $("#wgt_reload").addClass("pad_color").addClass("pad_reload");
$("#wgt_help").addClass("pad_color").addClass("pad_help"); $("#wgt_help").addClass("pad_color").addClass("pad_help");
$("#wgt_edit").addClass("pad_color").addClass("pad_edit"); $("#wgt_edit").addClass("pad_color").addClass("pad_edit");
$("#wgt_display").addClass("pad_color").addClass("pad_edit");
$("#wgt_name").addClass("pad_color"); $("#wgt_name").addClass("pad_color");
$(".style_select").addClass("pad_select").removeClass("none_select").val(val); $("#wgt_display").removeClass("display_wood");
$("body, html").removeClass("without_radius"); $("#style_select").val(val);
$("body, html").removeClass("without_radius").removeClass("radius_ft");
break; break;
case "3": case "3":
$(".b_top_left").addClass("without_back").removeClass("btl_pad"); $(".b_top_left").addClass("without_back").removeClass("btl_pad");
@ -760,10 +764,10 @@ function changeStyle(val){
$("#wgt_help").addClass("pad_color").addClass("pad_help"); $("#wgt_help").addClass("pad_color").addClass("pad_help");
$("#wgt_reload").addClass("pad_color").addClass("pad_reload"); $("#wgt_reload").addClass("pad_color").addClass("pad_reload");
$("#wgt_edit").addClass("pad_color").addClass("pad_edit"); $("#wgt_edit").addClass("pad_color").addClass("pad_edit");
$("#wgt_display").addClass("pad_color").addClass("pad_edit");
$("#wgt_name").addClass("pad_color"); $("#wgt_name").addClass("pad_color");
$(".style_select").addClass("none_select").val(val); $("#wgt_display").removeClass("display_wood");
$("body, html").addClass("without_radius"); $("#style_select").val(val);
$("body, html").addClass("without_radius").removeClass("radius_ft");
break; break;
} }
} }

@ -3,7 +3,7 @@ html, body{
height: 100%; height: 100%;
margin: 0; margin: 0;
padding: 0; padding: 0;
border-radius: 50px; border-radius: 35px;
overflow: hidden; overflow: hidden;
} }
@ -28,14 +28,6 @@ body{
margin: 5px 10px; margin: 5px 10px;
} }
.green_point{
background-image: url(../img/green_point.png);
}
.red_point{
background-image: url(../img/red_point.png);
}
#display_text, #edit_text{ #display_text, #edit_text{
height: 19px; height: 19px;
padding: 3px 0 0 0; padding: 3px 0 0 0;
@ -362,57 +354,33 @@ li>div{
margin: 10px 10px 0 10px; margin: 10px 10px 0 10px;
padding: 0; padding: 0;
float: left; float: left;
/*font-family: "Lobster13Regular";*/ font-family: Arial,Helvetica,sans-serif;
font-size: 24px; font-size: 24px;
color: #8c5730; color: #7F613F;
text-shadow: #FFDCA9 0 1px 0;
} }
#wgt_reload, #wgt_edit, #wgt_display, #wgt_help{ #wgt_edit, #wgt_display, #wgt_help{
cursor: pointer; cursor: pointer;
height: 44px;
margin: 10px 10px 0 0; margin: 10px 10px 0 0;
float: right; float: right;
/*font-family: "Lobster13Regular";*/ font-family: Arial,Helvetica,sans-serif;
font-size: 24px; font-size: 24px;
color: #8c5730; line-height: 32px;
} }
#wgt_display{ #wgt_display{
padding-left: 40px; padding-left: 35px;
background-image: url(../img/slate-edit.png); background: url(../img/toolbar-edit.png) left -32px no-repeat;
background-repeat: no-repeat; color: white;
background-position: top 0;
display: none; display: none;
} }
#wgt_edit{ #wgt_edit{
padding-left: 40px; padding-left: 35px;
background-image: url(../img/slate-edit.png); background: url(../img/slate-toolbar-edit.png) left top no-repeat;
background-repeat: no-repeat; color: #7F613F;
background-position: top 0; text-shadow: #FFDCA9 0 1px 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{ .btl_pad{
@ -447,58 +415,88 @@ li>div{
background-image: url(../img/pad-bottom-right.png) !important; background-image: url(../img/pad-bottom-right.png) !important;
} }
.pad_color{ .without_radius{
color: white !important; border-radius: 0 !important;
} }
.pad_reload{ .without_back{
background-image: url(../img/slate-toolbar-reload-white.png) !important; background: none !important;
} }
.pad_edit{ .pad_color{
background-image: url(../img/slate-display.png) !important; color: #FC9 !important;
text-shadow: none !important;
} }
.pad_select{ .pad_reload{
background-color: black !important; background: url(../img/toolbar-reload.png) left top no-repeat !important;
color: white !important;
background-image: url(../img/ar_down_white.png) !important;
} }
.without_radius{ .pad_edit{
border-radius: 0 !important; background: url(../img/toolbar-edit.png) left top no-repeat !important;
} }
.without_back{ .pad_help{
background: none !important; background: url(../img/toolbar-help.png) left top no-repeat !important;
} }
.none_select{ .help_wood{
background-color: #333 !important; background: url(../img/slate-toolbar-help.png) left -32px no-repeat !important;
color: white !important; color: white !important;
background-image: url(../img/ar_down_white.png) !important; text-shadow: #7F613F 0 -1px 0 !important;
} }
.pad_help{ .help_pad{
background-image: url(../img/slate-help-white.png) !important; background: url(../img/toolbar-help.png) left -32px no-repeat !important;
color: white !important;
} }
#wgt_help{ #wgt_help{
padding-left: 32px; padding-left: 35px;
background-image: url(../img/slate-help.png); background: url(../img/slate-toolbar-help.png) left top no-repeat;
background-repeat: no-repeat; color: #7F613F;
background-position: top 0; text-shadow: #FFDCA9 0 1px 0;
} }
#help{ #help{
width: 100%;
height: 100%; height: 100%;
overflow: auto; overflow: auto;
display: none; display: none;
background-color: #ccc; background-color: #ccc;
padding: 5px 0 5px 5px; padding: 5px;
} }
.open{ .open{
}
#parameters{
display: none;
padding: 10px 20px;
background: url("../img/parameters-bg.png");
border-radius: 4px 4px 0 0;
}
.inline{
display: inline-block;
font-family: "helvetica neue";
font-size: 14px;
color: #666;
}
#parameters label {
font-style: italic;
}
#style_select{
margin-left: 10px;
}
.display_wood{
background: url(../img/slate-toolbar-edit.png) left -32px no-repeat !important;
text-shadow: #7F613F 0 -1px 0;
}
.radius_ft{
border-radius: 45px !important;
} }

Binary file not shown.

Before

Width:  |  Height:  |  Size: 529 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 142 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 721 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 740 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 532 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 553 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 1.6 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 2.1 KiB

After

Width:  |  Height:  |  Size: 2.2 KiB

@ -52,11 +52,6 @@
<div id="wgt_help"></div> <div id="wgt_help"></div>
<div id="wgt_display" class="selected"></div> <div id="wgt_display" class="selected"></div>
<div id="wgt_edit"></div> <div id="wgt_edit"></div>
<select class="style_select">
<option value="1"></option>
<option value="2"></option>
<option value="3"></option>
</select>
</td> </td>
<td class="b_top_right">&nbsp;</td> <td class="b_top_right">&nbsp;</td>
</tr> </tr>
@ -66,6 +61,17 @@
<td> <td>
<div id="help"></div> <div id="help"></div>
<div id="slider"> <div id="slider">
<div id="parameters">
<div class="inline">
<label>
<select id="style_select">
<option value="1"></option>
<option value="2"></option>
<option value="3"></option>
</select>
</label>
</div>
</div>
<ul> <ul>
</ul> </ul>
</div> </div>

@ -1,5 +1,5 @@
var sankoreLang = { var sankoreLang = {
display: "Display", display: "Close",
edit: "Edit", edit: "Edit",
text_content: "This is an example. Instead of this text you can put your own content.", text_content: "This is an example. Instead of this text you can put your own content.",
new_txt: "New text block", new_txt: "New text block",
@ -9,7 +9,8 @@ var sankoreLang = {
pad: "Pad", pad: "Pad",
none: "None", none: "None",
help: "Help", help: "Help",
help_content: "This is an example of help content ..." help_content: "This is an example of help content ...",
theme: "Theme"
}; };
//some flags //some flags
@ -31,9 +32,11 @@ function start(){
$("#wgt_name").text(sankoreLang.wgt_name); $("#wgt_name").text(sankoreLang.wgt_name);
$("#wgt_help").text(sankoreLang.help); $("#wgt_help").text(sankoreLang.help);
$("#help").html(sankoreLang.help_content); $("#help").html(sankoreLang.help_content);
$(".style_select option[value='1']").text(sankoreLang.slate); $("#style_select option[value='1']").text(sankoreLang.slate);
$(".style_select option[value='2']").text(sankoreLang.pad); $("#style_select option[value='2']").text(sankoreLang.pad);
$(".style_select option[value='3']").text(sankoreLang.none); $("#style_select option[value='3']").text(sankoreLang.none);
var tmpl = $("div.inline label").html();
$("div.inline label").html(sankoreLang.theme + tmpl)
if(window.sankore){ if(window.sankore){
if(sankore.preference("etudier","")){ if(sankore.preference("etudier","")){
@ -44,7 +47,7 @@ function start(){
showExample(); showExample();
if(sankore.preference("etudier_style","")){ if(sankore.preference("etudier_style","")){
changeStyle(sankore.preference("etudier_style","")); changeStyle(sankore.preference("etudier_style",""));
$(".style_select").val(sankore.preference("etudier_style","")); $("#style_select").val(sankore.preference("etudier_style",""));
} else } else
changeStyle("3") changeStyle("3")
} }
@ -56,7 +59,7 @@ function start(){
window.widget.onleave = function(){ window.widget.onleave = function(){
if(!$("#wgt_help").hasClass("open")){ if(!$("#wgt_help").hasClass("open")){
exportData(); exportData();
sankore.setPreference("etudier_style", $(".style_select").find("option:selected").val()); sankore.setPreference("etudier_style", $("#style_select").find("option:selected").val());
sankore.setPreference("etudier_cur_page", $("#slider").getPage()); sankore.setPreference("etudier_cur_page", $("#slider").getPage());
sankore.setPreference("etudier_left_nav", $("#prevBtn a").css("display")); sankore.setPreference("etudier_left_nav", $("#prevBtn a").css("display"));
sankore.setPreference("etudier_right_nav", $("#nextBtn a").css("display")); sankore.setPreference("etudier_right_nav", $("#nextBtn a").css("display"));
@ -64,19 +67,21 @@ function start(){
} }
} }
$(".style_select").change(function (event){ $("#style_select").change(function (event){
changeStyle($(this).find("option:selected").val()); changeStyle($(this).find("option:selected").val());
}) })
$("#wgt_help").click(function(){ $("#wgt_help").click(function(){
var tmp = $(this); var tmp = $(this);
if($(this).hasClass("open")){ if($(this).hasClass("open")){
$(this).removeClass("help_pad").removeClass("help_wood")
$("#help").hide(); $("#help").hide();
tmp.removeClass("open"); tmp.removeClass("open");
$("#slider").show(); $("#slider").show();
} else { } else {
($("#style_select").val() == 1)?$(this).removeClass("help_pad").addClass("help_wood"):$(this).removeClass("help_wood").addClass("help_pad");
exportData(); exportData();
sankore.setPreference("etudier_style", $(".style_select").find("option:selected").val()); sankore.setPreference("etudier_style", $("#style_select").find("option:selected").val());
sankore.setPreference("etudier_cur_page", $("#slider").getPage()); sankore.setPreference("etudier_cur_page", $("#slider").getPage());
sankore.setPreference("etudier_left_nav", $("#prevBtn a").css("display")); sankore.setPreference("etudier_left_nav", $("#prevBtn a").css("display"));
sankore.setPreference("etudier_right_nav", $("#nextBtn a").css("display")); sankore.setPreference("etudier_right_nav", $("#nextBtn a").css("display"));
@ -93,8 +98,10 @@ function start(){
sankore.enableDropOnWidget(false); sankore.enableDropOnWidget(false);
$(this).addClass("selected"); $(this).addClass("selected");
$("#wgt_edit").removeClass("selected"); $("#wgt_edit").removeClass("selected");
$(".style_select").css("display","none"); $("#parameters").css("display","none");
var tmpwh = $(window).height();
var tmpww = $(window).width();
window.resizeTo(tmpww, tmpwh - 44)
$("#slider li>div").each(function(){ $("#slider li>div").each(function(){
var container = $(this); var container = $(this);
container.removeAttr("ondragenter") container.removeAttr("ondragenter")
@ -143,8 +150,10 @@ function start(){
sankore.enableDropOnWidget(true); sankore.enableDropOnWidget(true);
$(this).addClass("selected"); $(this).addClass("selected");
$("#wgt_display").removeClass("selected"); $("#wgt_display").removeClass("selected");
$(".style_select").css("display","block"); $("#parameters").css("display","block");
tmpwh = $(window).height();
tmpww = $(window).width();
window.resizeTo(tmpww, tmpwh + 44)
$("#slider li>div").each(function(){ $("#slider li>div").each(function(){
var container = $(this); var container = $(this);
container.attr("ondragenter", "return false;") container.attr("ondragenter", "return false;")
@ -556,10 +565,10 @@ function changeStyle(val){
$(".b_bottom_center").removeClass("bbc_pad").removeClass("without_back"); $(".b_bottom_center").removeClass("bbc_pad").removeClass("without_back");
$("#wgt_help").removeClass("pad_color").removeClass("pad_help"); $("#wgt_help").removeClass("pad_color").removeClass("pad_help");
$("#wgt_edit").removeClass("pad_color").removeClass("pad_edit"); $("#wgt_edit").removeClass("pad_color").removeClass("pad_edit");
$("#wgt_display").removeClass("pad_color").removeClass("pad_edit");
$("#wgt_name").removeClass("pad_color"); $("#wgt_name").removeClass("pad_color");
$(".style_select").removeClass("pad_select").removeClass("none_select").val(val); $("#wgt_display").addClass("display_wood");
$("body, html").removeClass("without_radius"); $("#style_select").val(val);
$("body, html").removeClass("without_radius").addClass("radius_ft");
break; break;
case "2": case "2":
$(".b_top_left").addClass("btl_pad").removeClass("without_back"); $(".b_top_left").addClass("btl_pad").removeClass("without_back");
@ -572,10 +581,10 @@ function changeStyle(val){
$(".b_bottom_center").addClass("bbc_pad").removeClass("without_back"); $(".b_bottom_center").addClass("bbc_pad").removeClass("without_back");
$("#wgt_help").addClass("pad_color").addClass("pad_help"); $("#wgt_help").addClass("pad_color").addClass("pad_help");
$("#wgt_edit").addClass("pad_color").addClass("pad_edit"); $("#wgt_edit").addClass("pad_color").addClass("pad_edit");
$("#wgt_display").addClass("pad_color").addClass("pad_edit");
$("#wgt_name").addClass("pad_color"); $("#wgt_name").addClass("pad_color");
$(".style_select").addClass("pad_select").removeClass("none_select").val(val); $("#wgt_display").removeClass("display_wood");
$("body, html").removeClass("without_radius"); $("#style_select").val(val);
$("body, html").removeClass("without_radius").removeClass("radius_ft");
break; break;
case "3": case "3":
$(".b_top_left").addClass("without_back").removeClass("btl_pad"); $(".b_top_left").addClass("without_back").removeClass("btl_pad");
@ -588,10 +597,10 @@ function changeStyle(val){
$(".b_bottom_center").addClass("without_back").removeClass("bbc_pad"); $(".b_bottom_center").addClass("without_back").removeClass("bbc_pad");
$("#wgt_help").addClass("pad_color").addClass("pad_help"); $("#wgt_help").addClass("pad_color").addClass("pad_help");
$("#wgt_edit").addClass("pad_color").addClass("pad_edit"); $("#wgt_edit").addClass("pad_color").addClass("pad_edit");
$("#wgt_display").addClass("pad_color").addClass("pad_edit");
$("#wgt_name").addClass("pad_color"); $("#wgt_name").addClass("pad_color");
$(".style_select").addClass("none_select").val(val); $("#wgt_display").removeClass("display_wood");
$("body, html").addClass("without_radius"); $("#style_select").val(val);
$("body, html").addClass("without_radius").removeClass("radius_ft");
break; break;
} }
} }

@ -25,12 +25,7 @@
<div id="wgt_name"></div> <div id="wgt_name"></div>
<div id="wgt_help"></div> <div id="wgt_help"></div>
<div id="wgt_display" class="selected"></div> <div id="wgt_display" class="selected"></div>
<div id="wgt_edit"></div> <div id="wgt_edit"></div>
<select class="style_select">
<option value="1"></option>
<option value="2"></option>
<option value="3"></option>
</select>
</td> </td>
<td class="b_top_right">&nbsp;</td> <td class="b_top_right">&nbsp;</td>
</tr> </tr>
@ -40,6 +35,17 @@
<td> <td>
<div id="help"></div> <div id="help"></div>
<div id="slider"> <div id="slider">
<div id="parameters">
<div class="inline">
<label>
<select id="style_select">
<option value="1"></option>
<option value="2"></option>
<option value="3"></option>
</select>
</label>
</div>
</div>
<ul> <ul>
</ul> </ul>
</div> </div>

@ -1,5 +1,5 @@
var sankoreLang = { var sankoreLang = {
display: "Afficher", display: "Fermer",
edit: "Modifier", edit: "Modifier",
text_content: "Ceci est un exemple. Au lieu de ce texte, vous pouvez mettre votre propre texte ou glisser-déposer une image, un son ou une vidéo.", text_content: "Ceci est un exemple. Au lieu de ce texte, vous pouvez mettre votre propre texte ou glisser-déposer une image, un son ou une vidéo.",
new_txt: "Nouveau bloc de texte", new_txt: "Nouveau bloc de texte",
@ -10,25 +10,26 @@ var sankoreLang = {
none: "Aucun", none: "Aucun",
help: "Aide", help: "Aide",
help_content: "<p><h2>Etudier</h2></p>"+ help_content: "<p><h2>Etudier</h2></p>"+
"<p><h3>Livret de pages.</h3></p>"+ "<p><h3>Livret de pages.</h3></p>"+
"<p>L’interactivité Etudier permet d’ajouter un livret avec des pages. Ce livret peut être enrichi avec du texte, des images, du son et des vidéos.</p>"+ "<p>L’interactivité Etudier permet d’ajouter un livret avec des pages. Ce livret peut être enrichi avec du texte, des images, du son et des vidéos.</p>"+
"<p>Le bouton “Modifier” vous permet :</p>"+ "<p>Le bouton “Modifier” vous permet :</p>"+
"<ul><li>de choisir le thème de l’interactivité : tablette, ardoise ou aucun (par défaut aucun),</li>"+ "<ul><li>de choisir le thème de l’interactivité : tablette, ardoise ou aucun (par défaut aucun),</li>"+
"<li>de modifier les pages du livret.</li></ul>"+ "<li>de modifier les pages du livret.</li></ul>"+
"<p>Sur chaque page, vous pouvez :</p>"+ "<p>Sur chaque page, vous pouvez :</p>"+
"<ul><li>insérer des zones de texte avec le bouton “+T” situé en haut à gauche de l’interactivité. (pour modifier ces zones de texte, cliquez à l’intérieur et écrivez du texte),</li>"+ "<ul><li>insérer des zones de texte avec le bouton “+T” situé en haut à gauche de l’interactivité. (pour modifier ces zones de texte, cliquez à l’intérieur et écrivez du texte),</li>"+
"<li>insérer des images, sons et vidéos par glisser-déposer de fichiers depuis la bibliothèque jusqu’à l’intérieur de la page du livret,</li>"+ "<li>insérer des images, sons et vidéos par glisser-déposer de fichiers depuis la bibliothèque jusqu’à l’intérieur de la page du livret,</li>"+
"<li>déplacer les textes, images, sons et vidéos à l’intérieur de la page en cliquant et en déplaçant la flèche multidirectionnelle qui se situe dans le coin supérieur gauche de chaque élément,</li>"+ "<li>déplacer les textes, images, sons et vidéos à l’intérieur de la page en cliquant et en déplaçant la flèche multidirectionnelle qui se situe dans le coin supérieur gauche de chaque élément,</li>"+
"<li>agrandir la taille d’un élément avec la double flèche en bas à droite de celui-ci,</li>"+ "<li>agrandir la taille d’un élément avec la double flèche en bas à droite de celui-ci,</li>"+
"<li>supprimer un élément avec la case en haut à droite de celui-ci.</li></ul>"+ "<li>supprimer un élément avec la case en haut à droite de celui-ci.</li></ul>"+
"<p>Pour ajouter une page, cliquez sur la flèche verte accompagnée d’un “+” se trouvant en bas à gauche et à droite.</p>"+ "<p>Pour ajouter une page, cliquez sur la flèche verte accompagnée d’un “+” se trouvant en bas à gauche et à droite.</p>"+
"<p>Pour supprimer une page, cliquez sur la croix rouge située en haut à droite de la page.</p>"+ "<p>Pour supprimer une page, cliquez sur la croix rouge située en haut à droite de la page.</p>"+
"<p>Le bouton “Afficher” vous permet d’utiliser l’activité.</p>" "<p>Le bouton “Afficher” vous permet d’utiliser l’activité.</p>",
theme: "Thème"
}; };
@ -51,9 +52,11 @@ function start(){
$("#wgt_name").text(sankoreLang.wgt_name); $("#wgt_name").text(sankoreLang.wgt_name);
$("#wgt_help").text(sankoreLang.help); $("#wgt_help").text(sankoreLang.help);
$("#help").html(sankoreLang.help_content); $("#help").html(sankoreLang.help_content);
$(".style_select option[value='1']").text(sankoreLang.slate); $("#style_select option[value='1']").text(sankoreLang.slate);
$(".style_select option[value='2']").text(sankoreLang.pad); $("#style_select option[value='2']").text(sankoreLang.pad);
$(".style_select option[value='3']").text(sankoreLang.none); $("#style_select option[value='3']").text(sankoreLang.none);
var tmpl = $("div.inline label").html();
$("div.inline label").html(sankoreLang.theme + tmpl)
if(window.sankore){ if(window.sankore){
if(sankore.preference("etudier","")){ if(sankore.preference("etudier","")){
@ -64,7 +67,7 @@ function start(){
showExample(); showExample();
if(sankore.preference("etudier_style","")){ if(sankore.preference("etudier_style","")){
changeStyle(sankore.preference("etudier_style","")); changeStyle(sankore.preference("etudier_style",""));
$(".style_select").val(sankore.preference("etudier_style","")); $("#style_select").val(sankore.preference("etudier_style",""));
} else } else
changeStyle("3") changeStyle("3")
} }
@ -76,7 +79,7 @@ function start(){
window.widget.onleave = function(){ window.widget.onleave = function(){
if(!$("#wgt_help").hasClass("open")){ if(!$("#wgt_help").hasClass("open")){
exportData(); exportData();
sankore.setPreference("etudier_style", $(".style_select").find("option:selected").val()); sankore.setPreference("etudier_style", $("#style_select").find("option:selected").val());
sankore.setPreference("etudier_cur_page", $("#slider").getPage()); sankore.setPreference("etudier_cur_page", $("#slider").getPage());
sankore.setPreference("etudier_left_nav", $("#prevBtn a").css("display")); sankore.setPreference("etudier_left_nav", $("#prevBtn a").css("display"));
sankore.setPreference("etudier_right_nav", $("#nextBtn a").css("display")); sankore.setPreference("etudier_right_nav", $("#nextBtn a").css("display"));
@ -84,19 +87,21 @@ function start(){
} }
} }
$(".style_select").change(function (event){ $("#style_select").change(function (event){
changeStyle($(this).find("option:selected").val()); changeStyle($(this).find("option:selected").val());
}) })
$("#wgt_help").click(function(){ $("#wgt_help").click(function(){
var tmp = $(this); var tmp = $(this);
if($(this).hasClass("open")){ if($(this).hasClass("open")){
$(this).removeClass("help_pad").removeClass("help_wood")
$("#help").hide(); $("#help").hide();
tmp.removeClass("open"); tmp.removeClass("open");
$("#slider").show(); $("#slider").show();
} else { } else {
($("#style_select").val() == 1)?$(this).removeClass("help_pad").addClass("help_wood"):$(this).removeClass("help_wood").addClass("help_pad");
exportData(); exportData();
sankore.setPreference("etudier_style", $(".style_select").find("option:selected").val()); sankore.setPreference("etudier_style", $("#style_select").find("option:selected").val());
sankore.setPreference("etudier_cur_page", $("#slider").getPage()); sankore.setPreference("etudier_cur_page", $("#slider").getPage());
sankore.setPreference("etudier_left_nav", $("#prevBtn a").css("display")); sankore.setPreference("etudier_left_nav", $("#prevBtn a").css("display"));
sankore.setPreference("etudier_right_nav", $("#nextBtn a").css("display")); sankore.setPreference("etudier_right_nav", $("#nextBtn a").css("display"));
@ -113,7 +118,10 @@ function start(){
sankore.enableDropOnWidget(false); sankore.enableDropOnWidget(false);
$(this).addClass("selected"); $(this).addClass("selected");
$("#wgt_edit").removeClass("selected"); $("#wgt_edit").removeClass("selected");
$(".style_select").css("display","none"); $("#parameters").css("display","none");
var tmpwh = $(window).height();
var tmpww = $(window).width();
window.resizeTo(tmpww, tmpwh - 44)
$("#slider li>div").each(function(){ $("#slider li>div").each(function(){
var container = $(this); var container = $(this);
@ -163,7 +171,10 @@ function start(){
sankore.enableDropOnWidget(true); sankore.enableDropOnWidget(true);
$(this).addClass("selected"); $(this).addClass("selected");
$("#wgt_display").removeClass("selected"); $("#wgt_display").removeClass("selected");
$(".style_select").css("display","block"); $("#parameters").css("display","block");
tmpwh = $(window).height();
tmpww = $(window).width();
window.resizeTo(tmpww, tmpwh + 44)
$("#slider li>div").each(function(){ $("#slider li>div").each(function(){
var container = $(this); var container = $(this);
@ -577,10 +588,10 @@ function changeStyle(val){
$(".b_bottom_center").removeClass("bbc_pad").removeClass("without_back"); $(".b_bottom_center").removeClass("bbc_pad").removeClass("without_back");
$("#wgt_help").removeClass("pad_color").removeClass("pad_help"); $("#wgt_help").removeClass("pad_color").removeClass("pad_help");
$("#wgt_edit").removeClass("pad_color").removeClass("pad_edit"); $("#wgt_edit").removeClass("pad_color").removeClass("pad_edit");
$("#wgt_display").removeClass("pad_color").removeClass("pad_edit");
$("#wgt_name").removeClass("pad_color"); $("#wgt_name").removeClass("pad_color");
$(".style_select").removeClass("pad_select").removeClass("none_select").val(val); $("#wgt_display").addClass("display_wood");
$("body, html").removeClass("without_radius"); $("#style_select").val(val);
$("body, html").removeClass("without_radius").addClass("radius_ft");
break; break;
case "2": case "2":
$(".b_top_left").addClass("btl_pad").removeClass("without_back"); $(".b_top_left").addClass("btl_pad").removeClass("without_back");
@ -593,10 +604,10 @@ function changeStyle(val){
$(".b_bottom_center").addClass("bbc_pad").removeClass("without_back"); $(".b_bottom_center").addClass("bbc_pad").removeClass("without_back");
$("#wgt_help").addClass("pad_color").addClass("pad_help"); $("#wgt_help").addClass("pad_color").addClass("pad_help");
$("#wgt_edit").addClass("pad_color").addClass("pad_edit"); $("#wgt_edit").addClass("pad_color").addClass("pad_edit");
$("#wgt_display").addClass("pad_color").addClass("pad_edit");
$("#wgt_name").addClass("pad_color"); $("#wgt_name").addClass("pad_color");
$(".style_select").addClass("pad_select").removeClass("none_select").val(val); $("#wgt_display").removeClass("display_wood");
$("body, html").removeClass("without_radius"); $("#style_select").val(val);
$("body, html").removeClass("without_radius").removeClass("radius_ft");
break; break;
case "3": case "3":
$(".b_top_left").addClass("without_back").removeClass("btl_pad"); $(".b_top_left").addClass("without_back").removeClass("btl_pad");
@ -609,10 +620,10 @@ function changeStyle(val){
$(".b_bottom_center").addClass("without_back").removeClass("bbc_pad"); $(".b_bottom_center").addClass("without_back").removeClass("bbc_pad");
$("#wgt_help").addClass("pad_color").addClass("pad_help"); $("#wgt_help").addClass("pad_color").addClass("pad_help");
$("#wgt_edit").addClass("pad_color").addClass("pad_edit"); $("#wgt_edit").addClass("pad_color").addClass("pad_edit");
$("#wgt_display").addClass("pad_color").addClass("pad_edit");
$("#wgt_name").addClass("pad_color"); $("#wgt_name").addClass("pad_color");
$(".style_select").addClass("none_select").val(val); $("#wgt_display").removeClass("display_wood");
$("body, html").addClass("without_radius"); $("#style_select").val(val);
$("body, html").addClass("without_radius").removeClass("radius_ft");
break; break;
} }
} }

@ -25,12 +25,7 @@
<div id="wgt_name"></div> <div id="wgt_name"></div>
<div id="wgt_help"></div> <div id="wgt_help"></div>
<div id="wgt_display" class="selected"></div> <div id="wgt_display" class="selected"></div>
<div id="wgt_edit"></div> <div id="wgt_edit"></div>
<select class="style_select">
<option value="1"></option>
<option value="2"></option>
<option value="3"></option>
</select>
</td> </td>
<td class="b_top_right">&nbsp;</td> <td class="b_top_right">&nbsp;</td>
</tr> </tr>
@ -40,6 +35,17 @@
<td> <td>
<div id="help"></div> <div id="help"></div>
<div id="slider"> <div id="slider">
<div id="parameters">
<div class="inline">
<label>
<select id="style_select">
<option value="1"></option>
<option value="2"></option>
<option value="3"></option>
</select>
</label>
</div>
</div>
<ul> <ul>
</ul> </ul>
</div> </div>

@ -1,5 +1,5 @@
var sankoreLang = { var sankoreLang = {
display: "Показать", display: "Закрыть",
edit: "Изменить", edit: "Изменить",
text_content: "Это - пример. Вместо этого текста вы можете ввести свой собственный контент.", text_content: "Это - пример. Вместо этого текста вы можете ввести свой собственный контент.",
new_txt: "Новый текстовый блок.", new_txt: "Новый текстовый блок.",
@ -9,7 +9,8 @@ var sankoreLang = {
pad: "Планшет", pad: "Планшет",
none: "Нет", none: "Нет",
help: "Помощь", help: "Помощь",
help_content: "Пример текста помощи ..." help_content: "Пример текста помощи ...",
theme: "Тема"
}; };
//some flags //some flags
@ -31,9 +32,11 @@ function start(){
$("#wgt_name").text(sankoreLang.wgt_name); $("#wgt_name").text(sankoreLang.wgt_name);
$("#wgt_help").text(sankoreLang.help); $("#wgt_help").text(sankoreLang.help);
$("#help").html(sankoreLang.help_content); $("#help").html(sankoreLang.help_content);
$(".style_select option[value='1']").text(sankoreLang.slate); $("#style_select option[value='1']").text(sankoreLang.slate);
$(".style_select option[value='2']").text(sankoreLang.pad); $("#style_select option[value='2']").text(sankoreLang.pad);
$(".style_select option[value='3']").text(sankoreLang.none); $("#style_select option[value='3']").text(sankoreLang.none);
var tmpl = $("div.inline label").html();
$("div.inline label").html(sankoreLang.theme + tmpl)
if(window.sankore){ if(window.sankore){
if(sankore.preference("etudier","")){ if(sankore.preference("etudier","")){
@ -44,7 +47,7 @@ function start(){
showExample(); showExample();
if(sankore.preference("etudier_style","")){ if(sankore.preference("etudier_style","")){
changeStyle(sankore.preference("etudier_style","")); changeStyle(sankore.preference("etudier_style",""));
$(".style_select").val(sankore.preference("etudier_style","")); $("#style_select").val(sankore.preference("etudier_style",""));
} else } else
changeStyle("3") changeStyle("3")
} }
@ -56,7 +59,7 @@ function start(){
window.widget.onleave = function(){ window.widget.onleave = function(){
if(!$("#wgt_help").hasClass("open")){ if(!$("#wgt_help").hasClass("open")){
exportData(); exportData();
sankore.setPreference("etudier_style", $(".style_select").find("option:selected").val()); sankore.setPreference("etudier_style", $("#style_select").find("option:selected").val());
sankore.setPreference("etudier_cur_page", $("#slider").getPage()); sankore.setPreference("etudier_cur_page", $("#slider").getPage());
sankore.setPreference("etudier_left_nav", $("#prevBtn a").css("display")); sankore.setPreference("etudier_left_nav", $("#prevBtn a").css("display"));
sankore.setPreference("etudier_right_nav", $("#nextBtn a").css("display")); sankore.setPreference("etudier_right_nav", $("#nextBtn a").css("display"));
@ -64,19 +67,21 @@ function start(){
} }
} }
$(".style_select").change(function (event){ $("#style_select").change(function (event){
changeStyle($(this).find("option:selected").val()); changeStyle($(this).find("option:selected").val());
}) })
$("#wgt_help").click(function(){ $("#wgt_help").click(function(){
var tmp = $(this); var tmp = $(this);
if($(this).hasClass("open")){ if($(this).hasClass("open")){
$(this).removeClass("help_pad").removeClass("help_wood")
$("#help").hide(); $("#help").hide();
tmp.removeClass("open"); tmp.removeClass("open");
$("#slider").show(); $("#slider").show();
} else { } else {
($("#style_select").val() == 1)?$(this).removeClass("help_pad").addClass("help_wood"):$(this).removeClass("help_wood").addClass("help_pad");
exportData(); exportData();
sankore.setPreference("etudier_style", $(".style_select").find("option:selected").val()); sankore.setPreference("etudier_style", $("#style_select").find("option:selected").val());
sankore.setPreference("etudier_cur_page", $("#slider").getPage()); sankore.setPreference("etudier_cur_page", $("#slider").getPage());
sankore.setPreference("etudier_left_nav", $("#prevBtn a").css("display")); sankore.setPreference("etudier_left_nav", $("#prevBtn a").css("display"));
sankore.setPreference("etudier_right_nav", $("#nextBtn a").css("display")); sankore.setPreference("etudier_right_nav", $("#nextBtn a").css("display"));
@ -93,7 +98,10 @@ function start(){
sankore.enableDropOnWidget(false); sankore.enableDropOnWidget(false);
$(this).addClass("selected"); $(this).addClass("selected");
$("#wgt_edit").removeClass("selected"); $("#wgt_edit").removeClass("selected");
$(".style_select").css("display","none"); $("#parameters").css("display","none");
var tmpwh = $(window).height();
var tmpww = $(window).width();
window.resizeTo(tmpww, tmpwh - 44)
$("#slider li>div").each(function(){ $("#slider li>div").each(function(){
var container = $(this); var container = $(this);
@ -109,7 +117,8 @@ function start(){
$(this).find(".size_up").remove(); $(this).find(".size_up").remove();
$(this).find(".size_down").remove(); $(this).find(".size_down").remove();
$(this).find(".resize_block").remove(); $(this).find(".resize_block").remove();
$(this).removeAttr("contenteditable").removeClass("block_border"); $(this).find(".real_text").removeAttr("contenteditable");
$(this).removeClass("block_border");
$(this).css("position","absolute"); $(this).css("position","absolute");
}); });
@ -142,7 +151,10 @@ function start(){
sankore.enableDropOnWidget(true); sankore.enableDropOnWidget(true);
$(this).addClass("selected"); $(this).addClass("selected");
$("#wgt_display").removeClass("selected"); $("#wgt_display").removeClass("selected");
$(".style_select").css("display","block"); $("#parameters").css("display","block");
tmpwh = $(window).height();
tmpww = $(window).width();
window.resizeTo(tmpww, tmpwh + 44)
$("#slider li>div").each(function(){ $("#slider li>div").each(function(){
var container = $(this); var container = $(this);
@ -158,7 +170,8 @@ function start(){
$("<div class='size_up' contenteditable='false'>").appendTo($(this)); $("<div class='size_up' contenteditable='false'>").appendTo($(this));
$("<div class='size_down' contenteditable='false'>").appendTo($(this)); $("<div class='size_down' contenteditable='false'>").appendTo($(this));
$("<div class='resize_block' contenteditable='false'>").appendTo($(this)); $("<div class='resize_block' contenteditable='false'>").appendTo($(this));
$(this).attr("contenteditable", "true").addClass("block_border"); $(this).find(".real_text").attr("contenteditable", "true");
$(this).addClass("block_border");
}); });
container.find(".img_block").each(function(){ container.find(".img_block").each(function(){
@ -292,7 +305,7 @@ function start(){
//var height = resize_obj.object.parent().height() - resize_obj.top + event.clientY; //var height = resize_obj.object.parent().height() - resize_obj.top + event.clientY;
resize_obj.left = event.clientX; resize_obj.left = event.clientX;
resize_obj.top = event.clientY; resize_obj.top = event.clientY;
resize_obj.object.parent().width(width).height(""); resize_obj.object.parent().width(width);
} else { } else {
width = resize_obj.object.parent().width() - resize_obj.left + event.clientX; width = resize_obj.object.parent().width() - resize_obj.left + event.clientX;
var height = resize_obj.object.parent().height() - resize_obj.top + event.clientY; var height = resize_obj.object.parent().height() - resize_obj.top + event.clientY;
@ -367,13 +380,13 @@ function start(){
$(".add_text").live("click", function(){ $(".add_text").live("click", function(){
var container = $(this).parent(); var container = $(this).parent();
var text_block = $("<div class='text_block'>" + sankoreLang.new_txt + "</div>").appendTo(container); var text_block = $("<div class='text_block'><div class='real_text' contenteditable='true'>" + sankoreLang.new_txt + "</div></div>").appendTo(container);
$("<div class='move_block' contenteditable='false'>").appendTo(text_block); $("<div class='move_block' contenteditable='false'>").appendTo(text_block);
$("<div class='close_img' contenteditable='false'>").appendTo(text_block); $("<div class='close_img' contenteditable='false'>").appendTo(text_block);
$("<div class='size_up' contenteditable='false'>").appendTo(text_block); $("<div class='size_up' contenteditable='false'>").appendTo(text_block);
$("<div class='size_down' contenteditable='false'>").appendTo(text_block); $("<div class='size_down' contenteditable='false'>").appendTo(text_block);
$("<div class='resize_block' contenteditable='false'>").appendTo(text_block); $("<div class='resize_block' contenteditable='false'>").appendTo(text_block);
text_block.attr("contenteditable", "true").addClass("block_border"); text_block.addClass("block_border");
}); });
} }
@ -391,7 +404,7 @@ function exportData(){
txt_block.left = $(this).position().left; txt_block.left = $(this).position().left;
txt_block.w = $(this).width(); txt_block.w = $(this).width();
txt_block.fz = $(this).css("font-size"); txt_block.fz = $(this).css("font-size");
txt_block.val = $(this).text(); txt_block.val = $(this).find(".real_text").html();
cont_obj.text.push(txt_block); cont_obj.text.push(txt_block);
}); });
cont_obj.imgs = []; cont_obj.imgs = [];
@ -433,7 +446,7 @@ function importData(data){
var div = $("<div>").appendTo(li); var div = $("<div>").appendTo(li);
for(var j in data[i].text){ for(var j in data[i].text){
var text_div = $("<div class='text_block'>" + data[i].text[j].val + "</div>"); var text_div = $("<div class='text_block'><div class='real_text'>" + data[i].text[j].val + "</div></div>");
text_div.draggable().css("position","absolute") text_div.draggable().css("position","absolute")
.width(data[i].text[j].w) .width(data[i].text[j].w)
.css("top", data[i].text[j].top) .css("top", data[i].text[j].top)
@ -486,7 +499,7 @@ function showExample(){
var li1 = $("<li>"); var li1 = $("<li>");
var div1 = $("<div>").appendTo(li1); var div1 = $("<div>").appendTo(li1);
$("<div class='text_block'>" + sankoreLang.text_content + "</div>").draggable().appendTo(div1) $("<div class='text_block'><div class='real_text'>" + sankoreLang.text_content + "</div></div>").draggable().appendTo(div1)
li1.width($("#slider").width()).height($("#slider").height()); li1.width($("#slider").width()).height($("#slider").height());
$("#slider ul").append(li1); $("#slider ul").append(li1);
var li2 = $("<li>"); var li2 = $("<li>");
@ -507,7 +520,7 @@ function showExample(){
$("#slider ul").append(li3); $("#slider ul").append(li3);
var li4 = $("<li>"); var li4 = $("<li>");
var div4 = $("<div>").appendTo(li4); var div4 = $("<div>").appendTo(li4);
$("<div class='text_block'>" + sankoreLang.text_content + "</div>").draggable().appendTo(div4); $("<div class='text_block'><div class='real_text'>" + sankoreLang.text_content + "</div></div>").draggable().appendTo(div4);
var img2 = $("<div class='img_block' style='text-align: center;'></div>").draggable().appendTo(div4); var img2 = $("<div class='img_block' style='text-align: center;'></div>").draggable().appendTo(div4);
$("<img src=\"../../objects/1.gif\" style=\"display: inline;\" height=\"120\"/>").appendTo(img2); $("<img src=\"../../objects/1.gif\" style=\"display: inline;\" height=\"120\"/>").appendTo(img2);
var audio_block2 = $("<div class='audio_block'>").draggable().appendTo(div4); var audio_block2 = $("<div class='audio_block'>").draggable().appendTo(div4);
@ -555,10 +568,10 @@ function changeStyle(val){
$(".b_bottom_center").removeClass("bbc_pad").removeClass("without_back"); $(".b_bottom_center").removeClass("bbc_pad").removeClass("without_back");
$("#wgt_help").removeClass("pad_color").removeClass("pad_help"); $("#wgt_help").removeClass("pad_color").removeClass("pad_help");
$("#wgt_edit").removeClass("pad_color").removeClass("pad_edit"); $("#wgt_edit").removeClass("pad_color").removeClass("pad_edit");
$("#wgt_display").removeClass("pad_color").removeClass("pad_edit");
$("#wgt_name").removeClass("pad_color"); $("#wgt_name").removeClass("pad_color");
$(".style_select").removeClass("pad_select").removeClass("none_select").val(val); $("#wgt_display").addClass("display_wood");
$("body, html").removeClass("without_radius"); $("#style_select").val(val);
$("body, html").removeClass("without_radius").addClass("radius_ft");
break; break;
case "2": case "2":
$(".b_top_left").addClass("btl_pad").removeClass("without_back"); $(".b_top_left").addClass("btl_pad").removeClass("without_back");
@ -571,10 +584,10 @@ function changeStyle(val){
$(".b_bottom_center").addClass("bbc_pad").removeClass("without_back"); $(".b_bottom_center").addClass("bbc_pad").removeClass("without_back");
$("#wgt_help").addClass("pad_color").addClass("pad_help"); $("#wgt_help").addClass("pad_color").addClass("pad_help");
$("#wgt_edit").addClass("pad_color").addClass("pad_edit"); $("#wgt_edit").addClass("pad_color").addClass("pad_edit");
$("#wgt_display").addClass("pad_color").addClass("pad_edit");
$("#wgt_name").addClass("pad_color"); $("#wgt_name").addClass("pad_color");
$(".style_select").addClass("pad_select").removeClass("none_select").val(val); $("#wgt_display").removeClass("display_wood");
$("body, html").removeClass("without_radius"); $("#style_select").val(val);
$("body, html").removeClass("without_radius").removeClass("radius_ft");
break; break;
case "3": case "3":
$(".b_top_left").addClass("without_back").removeClass("btl_pad"); $(".b_top_left").addClass("without_back").removeClass("btl_pad");
@ -587,10 +600,10 @@ function changeStyle(val){
$(".b_bottom_center").addClass("without_back").removeClass("bbc_pad"); $(".b_bottom_center").addClass("without_back").removeClass("bbc_pad");
$("#wgt_help").addClass("pad_color").addClass("pad_help"); $("#wgt_help").addClass("pad_color").addClass("pad_help");
$("#wgt_edit").addClass("pad_color").addClass("pad_edit"); $("#wgt_edit").addClass("pad_color").addClass("pad_edit");
$("#wgt_display").addClass("pad_color").addClass("pad_edit");
$("#wgt_name").addClass("pad_color"); $("#wgt_name").addClass("pad_color");
$(".style_select").addClass("none_select").val(val); $("#wgt_display").removeClass("display_wood");
$("body, html").addClass("without_radius"); $("#style_select").val(val);
$("body, html").addClass("without_radius").removeClass("radius_ft");
break; break;
} }
} }
@ -663,4 +676,4 @@ $(window).resize(function(){
$(this).width(slider.width()).height(slider.height()); $(this).width(slider.width()).height(slider.height());
}); });
slider.setSize(slider.width(), slider.height()); slider.setSize(slider.width(), slider.height());
}) })

@ -3,7 +3,7 @@ html, body{
height: 100%; height: 100%;
margin: 0; margin: 0;
padding: 0; padding: 0;
border-radius: 50px; border-radius: 35px;
overflow: hidden; overflow: hidden;
} }
@ -28,14 +28,6 @@ body{
margin: 5px 10px; margin: 5px 10px;
} }
.green_point{
background-image: url(../img/green_point.png);
}
.red_point{
background-image: url(../img/red_point.png);
}
#display_text, #edit_text{ #display_text, #edit_text{
height: 19px; height: 19px;
padding: 3px 0 0 0; padding: 3px 0 0 0;
@ -245,57 +237,40 @@ body{
margin: 10px 10px 0 10px; margin: 10px 10px 0 10px;
padding: 0; padding: 0;
float: left; float: left;
/*font-family: "Lobster13Regular";*/ font-family: Arial,Helvetica,sans-serif;
font-size: 24px; font-size: 24px;
color: #8c5730; color: #7F613F;
text-shadow: #FFDCA9 0 1px 0;
} }
#wgt_reload, #wgt_edit, #wgt_display, #wgt_help{ #wgt_reload, #wgt_edit, #wgt_display, #wgt_help{
cursor: pointer; cursor: pointer;
height: 44px;
margin: 10px 10px 0 0; margin: 10px 10px 0 0;
float: right; float: right;
/*font-family: "Lobster13Regular";*/ font-family: Arial,Helvetica,sans-serif;
font-size: 24px; font-size: 24px;
color: #8c5730; line-height: 32px;
} }
#wgt_display{ #wgt_display{
padding-left: 40px; padding-left: 35px;
background-image: url(../img/slate-edit.png); background: url(../img/toolbar-edit.png) left -32px no-repeat;
background-repeat: no-repeat; color: white;
background-position: top 0;
display: none; display: none;
} }
#wgt_edit{ #wgt_edit{
padding-left: 40px; padding-left: 35px;
background-image: url(../img/slate-edit.png); background: url(../img/slate-toolbar-edit.png) left top no-repeat;
background-repeat: no-repeat; color: #7F613F;
background-position: top 0; text-shadow: #FFDCA9 0 1px 0;
} }
#wgt_reload{ #wgt_reload{
padding-left: 40px; padding-left: 35px;
background-image: url(../img/slate-toolbar-reload.png); background: url(../img/slate-toolbar-reload.png) left top no-repeat;
background-repeat: no-repeat; color: #7F613F;
background-position: top 0; text-shadow: #FFDCA9 0 1px 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{ .btl_pad{
@ -330,51 +305,50 @@ body{
background-image: url(../img/pad-bottom-right.png) !important; background-image: url(../img/pad-bottom-right.png) !important;
} }
.pad_color{ .without_radius{
color: white !important; border-radius: 0 !important;
} }
.pad_reload{ .without_back{
background-image: url(../img/slate-toolbar-reload-white.png) !important; background: none !important;
} }
.pad_edit{ .pad_color{
background-image: url(../img/slate-display.png) !important; color: #FC9 !important;
text-shadow: none !important;
} }
.pad_select{ .pad_reload{
background-color: black !important; background: url(../img/toolbar-reload.png) left top no-repeat !important;
color: white !important;
background-image: url(../img/ar_down_white.png) !important;
} }
.without_radius{ .pad_edit{
border-radius: 0 !important; background: url(../img/toolbar-edit.png) left top no-repeat !important;
} }
.without_back{ .pad_help{
background: none !important; background: url(../img/toolbar-help.png) left top no-repeat !important;
} }
.none_select{ .help_wood{
background-color: #333 !important; background: url(../img/slate-toolbar-help.png) left -32px no-repeat !important;
color: white !important; color: white !important;
background-image: url(../img/ar_down_white.png) !important; text-shadow: #7F613F 0 -1px 0 !important;
} }
.pad_help{ .help_pad{
background-image: url(../img/slate-help-white.png) !important; background: url(../img/toolbar-help.png) left -32px no-repeat !important;
color: white !important;
} }
#wgt_help{ #wgt_help{
padding-left: 32px; padding-left: 35px;
background-image: url(../img/slate-help.png); background: url(../img/slate-toolbar-help.png) left top no-repeat;
background-repeat: no-repeat; color: #7F613F;
background-position: top 0; text-shadow: #FFDCA9 0 1px 0;
} }
#help{ #help{
width: 100%;
height: 100%; height: 100%;
overflow: auto; overflow: auto;
display: none; display: none;
@ -383,5 +357,36 @@ body{
} }
.open{ .open{
}
#parameters{
display: none;
padding: 10px 20px;
background: url("../img/parameters-bg.png");
border-radius: 4px 4px 0 0;
}
.inline{
display: inline-block;
font-family: "helvetica neue";
font-size: 14px;
color: #666;
}
#parameters label {
font-style: italic;
}
#style_select{
margin-left: 10px;
}
.display_wood{
background: url(../img/slate-toolbar-edit.png) left -32px no-repeat !important;
text-shadow: #7F613F 0 -1px 0;
}
.radius_ft{
border-radius: 45px !important;
} }

Binary file not shown.

Before

Width:  |  Height:  |  Size: 529 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 142 B

Binary file not shown.

Before

Width:  |  Height:  |  Size: 721 B

Some files were not shown because too many files have changed in this diff Show More

Loading…
Cancel
Save