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. 5
      resources/library/interactivities/Ordre images.wgt/css/basic.css
  4. 21
      resources/library/interactivities/Ordre images.wgt/js/script.js
  5. 7
      resources/library/interactivities/Ordre lettres.wgt/css/basic.css
  6. 15
      resources/library/interactivities/Ordre lettres.wgt/js/script.js
  7. 11
      resources/library/interactivities/Ordre mots.wgt/scripts/template2.js
  8. 6
      resources/library/interactivities/Ordre mots.wgt/styles/of_puppets.css
  9. 11
      resources/library/interactivities/Ordre phrase.wgt/scripts/template2.js
  10. 4
      resources/library/interactivities/Ordre phrase.wgt/styles/of_puppets.css
  11. 14
      resources/library/interactivities/Selectionner.wgt/css/basic.css
  12. 4
      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{
width: 73%;
max-height: 40px;
overflow-y: auto;
overflow-x: hidden;
float: right;
margin-left: 20px;
}

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

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

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

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

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

@ -64,11 +64,12 @@ var widget_padding = 0;
var min_view_width = 400;
$(document).ready(function(){
if(sankore.preference("ord_words_style","")){
changeStyle(sankore.preference("ord_words_style",""));
$(".style_select").val(sankore.preference("ord_words_style",""));
} else
changeStyle(1)
if(window.sankore)
if(sankore.preference("ord_words_style","")){
changeStyle(sankore.preference("ord_words_style",""));
$(".style_select").val(sankore.preference("ord_words_style",""));
} else
changeStyle(1)
$("#wgt_display").text(sankoreLang.view);
$("#wgt_edit").text(sankoreLang.edit);
$("#wgt_display, #wgt_edit").click(function(event){

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

@ -66,11 +66,12 @@ var input_width = 606;
var widget_padding = 0;
$(document).ready(function(){
if(sankore.preference("ord_phrases_style","")){
changeStyle(sankore.preference("ord_phrases_style",""));
$(".style_select").val(sankore.preference("ord_phrases_style",""));
} else
changeStyle(1)
if(window.sankore)
if(sankore.preference("ord_phrases_style","")){
changeStyle(sankore.preference("ord_phrases_style",""));
$(".style_select").val(sankore.preference("ord_phrases_style",""));
} else
changeStyle(1)
$("#wgt_display").text(sankoreLang.view);
$("#wgt_edit").text(sankoreLang.edit);
$("#wgt_display, #wgt_edit").click(function(event){

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

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

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

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

Loading…
Cancel
Save