some interactivities fixes

preferencesAboutTextFull
unknown 13 years ago
parent 47923e9e43
commit d1b16e894c
  1. 2
      resources/library/interactivities/Ass sons.wgt/css/basic.css
  2. 1
      resources/library/interactivities/Cat text.wgt/css/basic.css
  3. 3
      resources/library/interactivities/Ordre images.wgt/css/basic.css
  4. 11
      resources/library/interactivities/Ordre images.wgt/js/script.js
  5. 7
      resources/library/interactivities/Ordre lettres.wgt/css/basic.css
  6. 9
      resources/library/interactivities/Ordre lettres.wgt/js/script.js
  7. 1
      resources/library/interactivities/Ordre mots.wgt/scripts/template2.js
  8. 6
      resources/library/interactivities/Ordre mots.wgt/styles/of_puppets.css
  9. 1
      resources/library/interactivities/Ordre phrase.wgt/scripts/template2.js
  10. 4
      resources/library/interactivities/Ordre phrase.wgt/styles/of_puppets.css
  11. 10
      resources/library/interactivities/Selectionner.wgt/css/basic.css
  12. 2
      resources/library/interactivities/Selectionner.wgt/js/script.js
  13. 2
      resources/library/interactivities/Separe phrase.wgt/config.xml

@ -214,7 +214,7 @@ body{
.audio_desc{ .audio_desc{
width: 73%; width: 73%;
max-height: 40px; max-height: 40px;
overflow-y: auto; overflow-x: hidden;
float: right; float: right;
margin-left: 20px; margin-left: 20px;
} }

@ -103,6 +103,7 @@ body{
overflow: hidden; overflow: hidden;
display: block; display: block;
cursor: pointer; cursor: pointer;
word-wrap: break-word;
} }
.close_cont{ .close_cont{

@ -85,12 +85,13 @@ body{
.text_cont{ .text_cont{
width: 80%; width: 80%;
min-height: 40px; min-height: 40px;
max-height: 60px;
float: right; float: right;
overflow-x: hidden;
background-color: #ccc; background-color: #ccc;
border-top-left-radius: 10px; border-top-left-radius: 10px;
border-bottom-left-radius: 10px; border-bottom-left-radius: 10px;
padding-left: 10px; padding-left: 10px;
/*font-family: 'SFToontimeRegular';*/
} }
.close_cont{ .close_cont{

@ -58,6 +58,7 @@ function start(){
$("#wgt_display, #wgt_edit").click(function(event){ $("#wgt_display, #wgt_edit").click(function(event){
if(this.id == "wgt_display"){ if(this.id == "wgt_display"){
if(!$(this).hasClass("selected")){ if(!$(this).hasClass("selected")){
if(window.sankore)
sankore.enableDropOnWidget(false); sankore.enableDropOnWidget(false);
$(this).addClass("selected"); $(this).addClass("selected");
$("#wgt_edit").removeClass("selected"); $("#wgt_edit").removeClass("selected");
@ -104,6 +105,7 @@ function start(){
} }
} else { } else {
if(!$(this).hasClass("selected")){ if(!$(this).hasClass("selected")){
if(window.sankore)
sankore.enableDropOnWidget(true); sankore.enableDropOnWidget(true);
$(this).addClass("selected"); $(this).addClass("selected");
$("#wgt_display").removeClass("selected"); $("#wgt_display").removeClass("selected");
@ -212,11 +214,16 @@ function exportData(){
cont_obj.tmp = "clear"; cont_obj.tmp = "clear";
array_to_export.push(cont_obj); array_to_export.push(cont_obj);
} }
if(window.sankore)
sankore.setPreference("odr_des_imgs", JSON.stringify(array_to_export)); sankore.setPreference("odr_des_imgs", JSON.stringify(array_to_export));
if($("#wgt_display").hasClass("selected")) if($("#wgt_display").hasClass("selected")){
if(window.sankore)
sankore.setPreference("odr_des_imgs_state", "display"); sankore.setPreference("odr_des_imgs_state", "display");
else }
else{
if(window.sankore)
sankore.setPreference("odr_des_imgs_state", "edit"); sankore.setPreference("odr_des_imgs_state", "edit");
}
} }
//import //import

@ -166,9 +166,10 @@ body{
} }
.audio_desc{ .audio_desc{
min-height: 30px; width: 73%;
margin: 5px 0; max-height: 40px;
float: left; overflow-x: hidden;
float: right;
margin-left: 20px; margin-left: 20px;
} }

@ -240,11 +240,16 @@ function exportData(){
array_to_export.push(cont_obj); array_to_export.push(cont_obj);
}); });
} }
if(window.sankore)
sankore.setPreference("associer_sound", JSON.stringify(array_to_export)); sankore.setPreference("associer_sound", JSON.stringify(array_to_export));
if($("#wgt_display").hasClass("selected")) if($("#wgt_display").hasClass("selected")){
if(window.sankore)
sankore.setPreference("associer_sound_state", "display"); sankore.setPreference("associer_sound_state", "display");
else }
else{
if(window.sankore)
sankore.setPreference("associer_sound_state", "edit"); sankore.setPreference("associer_sound_state", "edit");
}
} }
//import //import

@ -64,6 +64,7 @@ var widget_padding = 0;
var min_view_width = 400; var min_view_width = 400;
$(document).ready(function(){ $(document).ready(function(){
if(window.sankore)
if(sankore.preference("ord_words_style","")){ if(sankore.preference("ord_words_style","")){
changeStyle(sankore.preference("ord_words_style","")); changeStyle(sankore.preference("ord_words_style",""));
$(".style_select").val(sankore.preference("ord_words_style","")); $(".style_select").val(sankore.preference("ord_words_style",""));

@ -11,11 +11,13 @@ body{
} }
.letter{ .letter{
min-width: 30px; height: 40px; min-width: 30px;
max-width: 500px;
height: 40px;
overflow: hidden;
border: solid 1px #ccc; border: solid 1px #ccc;
margin: 4px; margin: 4px;
padding: 4px 10px; padding: 4px 10px;
float: left; float: left;
font: 28px tahoma; font: 28px tahoma;
text-align: center; text-align: center;

@ -66,6 +66,7 @@ var input_width = 606;
var widget_padding = 0; var widget_padding = 0;
$(document).ready(function(){ $(document).ready(function(){
if(window.sankore)
if(sankore.preference("ord_phrases_style","")){ if(sankore.preference("ord_phrases_style","")){
changeStyle(sankore.preference("ord_phrases_style","")); changeStyle(sankore.preference("ord_phrases_style",""));
$(".style_select").val(sankore.preference("ord_phrases_style","")); $(".style_select").val(sankore.preference("ord_phrases_style",""));

@ -24,7 +24,7 @@ body{
background-color: #fff; background-color: #fff;
} }
.phrase{ .phrase{
height: 40px; min-height: 40px;
border: solid 1px #ccc; border: solid 1px #ccc;
margin: 4px; margin: 4px;
padding: 4px 10px; padding: 4px 10px;
@ -33,7 +33,7 @@ body{
text-align: center; text-align: center;
cursor: pointer; cursor: pointer;
text-transform: uppercase; text-transform: uppercase;
overflow: hidden;
} }
.right{ .right{

@ -85,11 +85,14 @@ body{
.text_cont{ .text_cont{
width: 80%; width: 80%;
min-height: 40px; min-height: 40px;
max-height: 60px;
float: right; float: right;
overflow-x: hidden;
background-color: #ccc; background-color: #ccc;
border-top-left-radius: 10px; border-top-left-radius: 10px;
border-bottom-left-radius: 10px; border-bottom-left-radius: 10px;
padding-left: 10px; padding-left: 10px;
display: block;
} }
.close_cont{ .close_cont{
@ -120,7 +123,8 @@ body{
.img_block, .text_block{ .img_block, .text_block{
width: 120px; width: 120px;
height: 120px; height: 119px;
max-height: 120px;
margin: 10px 20px; margin: 10px 20px;
cursor: pointer; cursor: pointer;
float: left; float: left;
@ -147,9 +151,13 @@ body{
} }
.text_subblock{ .text_subblock{
max-height: 120px;
min-width: 116px;
max-width: 200px;
display: table-cell; display: table-cell;
vertical-align: middle; vertical-align: middle;
font-size: 120%; font-size: 120%;
word-wrap: break-word;
} }
.close_img, .clear_img, .numb_img { .close_img, .clear_img, .numb_img {

@ -262,7 +262,7 @@ function exportData(){
}); });
array_to_export.push(cont_obj); array_to_export.push(cont_obj);
}); });
if(window.sankore)
sankore.setPreference("selectionner", JSON.stringify(array_to_export)); sankore.setPreference("selectionner", JSON.stringify(array_to_export));
} }

@ -4,7 +4,7 @@
xmlns:ub="http://uniboard.mnemis.com/widgets" xmlns:ub="http://uniboard.mnemis.com/widgets"
id="http://www.example.net/widgets/helloworld" id="http://www.example.net/widgets/helloworld"
version="1.0" version="1.0"
width="750" width="850"
height="300" height="300"
ub:resizable="true"> ub:resizable="true">

Loading…
Cancel
Save