new style for separe phrase

preferencesAboutTextFull
unknown 13 years ago
parent 47df29d128
commit 37ae60efcc
  1. 2
      resources/library/interactivities/Separe phrase.wgt/index.html
  2. 1
      resources/library/interactivities/Separe phrase.wgt/locales/fr/index.html
  3. 3
      resources/library/interactivities/Separe phrase.wgt/locales/fr/scripts/wcontainer.js
  4. 1
      resources/library/interactivities/Separe phrase.wgt/locales/ru/index.html
  5. 3
      resources/library/interactivities/Separe phrase.wgt/locales/ru/scripts/wcontainer.js
  6. 80
      resources/library/interactivities/Separe phrase.wgt/scripts/app.js
  7. 3
      resources/library/interactivities/Separe phrase.wgt/scripts/wcontainer.js
  8. 14
      resources/library/interactivities/Separe phrase.wgt/styles/app.css

@ -27,6 +27,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"){
returnStatus(lang); returnStatus(lang);
} }
@ -60,6 +61,7 @@
<select class="style_select"> <select class="style_select">
<option value="1"></option> <option value="1"></option>
<option value="2"></option> <option value="2"></option>
<option value="3"></option>
</select> </select>
</td> </td>
<td class="b_top_right">&nbsp;</td> <td class="b_top_right">&nbsp;</td>

@ -38,6 +38,7 @@
<select class="style_select"> <select class="style_select">
<option value="1"></option> <option value="1"></option>
<option value="2"></option> <option value="2"></option>
<option value="3"></option>
</select> </select>
</td> </td>
<td class="b_top_right">&nbsp;</td> <td class="b_top_right">&nbsp;</td>

@ -5,7 +5,8 @@ var sankoreLang = {
wgt_name: "Séparer une phrase", wgt_name: "Séparer une phrase",
reload: "Recharger", reload: "Recharger",
slate: "ardoise", slate: "ardoise",
pad: "tablette" pad: "tablette",
none: "aucun"
}; };
// if use the "view/edit" button or rely on the api instead // if use the "view/edit" button or rely on the api instead

@ -39,6 +39,7 @@
<select class="style_select"> <select class="style_select">
<option value="1"></option> <option value="1"></option>
<option value="2"></option> <option value="2"></option>
<option value="3"></option>
</select> </select>
</td> </td>
<td class="b_top_right">&nbsp;</td> <td class="b_top_right">&nbsp;</td>

@ -5,7 +5,8 @@ var sankoreLang = {
wgt_name: "Разделить фразу", wgt_name: "Разделить фразу",
reload: "Обновить", reload: "Обновить",
slate: "Узор", slate: "Узор",
pad: "Планшет" pad: "Планшет",
none: "Нет"
}; };
// if use the "view/edit" button or rely on the api instead // if use the "view/edit" button or rely on the api instead

@ -49,7 +49,7 @@ $(document).ready(function()
changeStyle(sankore.preference("spl_phrase_style","")); changeStyle(sankore.preference("spl_phrase_style",""));
$(".style_select").val(sankore.preference("spl_phrase_style","")); $(".style_select").val(sankore.preference("spl_phrase_style",""));
} else } else
changeStyle(1) changeStyle("3")
$("#wgt_display").text(sankoreLang.view); $("#wgt_display").text(sankoreLang.view);
$("#wgt_edit").text(sankoreLang.edit); $("#wgt_edit").text(sankoreLang.edit);
@ -87,6 +87,7 @@ $(document).ready(function()
$(".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").change(function (event){ $(".style_select").change(function (event){
changeStyle($(this).find("option:selected").val()); changeStyle($(this).find("option:selected").val());
@ -243,34 +244,55 @@ $(document).ready(function()
//changing the style //changing the style
function changeStyle(val){ function changeStyle(val){
if(val == 1){ switch(val){
$(".b_top_left").removeClass("btl_pad"); case "1":
$(".b_top_center").removeClass("btc_pad"); $(".b_top_left").removeClass("btl_pad").removeClass("without_back");
$(".b_top_right").removeClass("btr_pad"); $(".b_top_center").removeClass("btc_pad").removeClass("without_back");
$(".b_center_left").removeClass("bcl_pad"); $(".b_top_right").removeClass("btr_pad").removeClass("without_back");
$(".b_center_right").removeClass("bcr_pad"); $(".b_center_left").removeClass("bcl_pad").removeClass("without_back");
$(".b_bottom_right").removeClass("bbr_pad"); $(".b_center_right").removeClass("bcr_pad").removeClass("without_back");
$(".b_bottom_left").removeClass("bbl_pad"); $(".b_bottom_right").removeClass("bbr_pad").removeClass("without_back");
$(".b_bottom_center").removeClass("bbc_pad"); $(".b_bottom_left").removeClass("bbl_pad").removeClass("without_back");
$("#wgt_reload").removeClass("pad_color").removeClass("pad_reload"); $(".b_bottom_center").removeClass("bbc_pad").removeClass("without_back");
$("#wgt_edit").removeClass("pad_color").removeClass("pad_edit"); $("#wgt_reload").removeClass("pad_color").removeClass("pad_reload");
$("#wgt_display").removeClass("pad_color").removeClass("pad_edit"); $("#wgt_edit").removeClass("pad_color").removeClass("pad_edit");
$("#wgt_name").removeClass("pad_color"); $("#wgt_display").removeClass("pad_color").removeClass("pad_edit");
$(".style_select").removeClass("pad_select"); $("#wgt_name").removeClass("pad_color");
} else { $(".style_select").removeClass("pad_select").removeClass("none_select").val(val);
$(".b_top_left").addClass("btl_pad"); $("body, html").removeClass("without_radius");
$(".b_top_center").addClass("btc_pad"); break;
$(".b_top_right").addClass("btr_pad"); case "2":
$(".b_center_left").addClass("bcl_pad"); $(".b_top_left").addClass("btl_pad").removeClass("without_back");
$(".b_center_right").addClass("bcr_pad"); $(".b_top_center").addClass("btc_pad").removeClass("without_back");
$(".b_bottom_right").addClass("bbr_pad"); $(".b_top_right").addClass("btr_pad").removeClass("without_back");
$(".b_bottom_left").addClass("bbl_pad"); $(".b_center_left").addClass("bcl_pad").removeClass("without_back");
$(".b_bottom_center").addClass("bbc_pad"); $(".b_center_right").addClass("bcr_pad").removeClass("without_back");
$("#wgt_reload").addClass("pad_color").addClass("pad_reload"); $(".b_bottom_right").addClass("bbr_pad").removeClass("without_back");
$("#wgt_edit").addClass("pad_color").addClass("pad_edit"); $(".b_bottom_left").addClass("bbl_pad").removeClass("without_back");
$("#wgt_display").addClass("pad_color").addClass("pad_edit"); $(".b_bottom_center").addClass("bbc_pad").removeClass("without_back");
$("#wgt_name").addClass("pad_color"); $("#wgt_reload").addClass("pad_color").addClass("pad_reload");
$(".style_select").addClass("pad_select"); $("#wgt_edit").addClass("pad_color").addClass("pad_edit");
$("#wgt_display").addClass("pad_color").addClass("pad_edit");
$("#wgt_name").addClass("pad_color");
$(".style_select").addClass("pad_select").removeClass("none_select").val(val);
$("body, html").removeClass("without_radius");
break;
case "3":
$(".b_top_left").addClass("without_back").removeClass("btl_pad");
$(".b_top_center").addClass("without_back").removeClass("btc_pad");
$(".b_top_right").addClass("without_back").removeClass("btr_pad");
$(".b_center_left").addClass("without_back").removeClass("bcl_pad");
$(".b_center_right").addClass("without_back").removeClass("bcr_pad");
$(".b_bottom_right").addClass("without_back").removeClass("bbr_pad");
$(".b_bottom_left").addClass("without_back").removeClass("bbl_pad");
$(".b_bottom_center").addClass("without_back").removeClass("bbc_pad");
$("#wgt_reload").addClass("pad_color").addClass("pad_reload");
$("#wgt_edit").addClass("pad_color").addClass("pad_edit");
$("#wgt_display").addClass("pad_color").addClass("pad_edit");
$("#wgt_name").addClass("pad_color");
$(".style_select").addClass("none_select").val(val);
$("body, html").addClass("without_radius");
break;
} }
} }

@ -5,7 +5,8 @@ var sankoreLang = {
wgt_name: "Split a phrase", wgt_name: "Split a phrase",
reload: "Reload", reload: "Reload",
slate: "Wood", slate: "Wood",
pad: "Pad" pad: "Pad",
none: "None"
}; };
// if use the "view/edit" button or rely on the api instead // if use the "view/edit" button or rely on the api instead

@ -221,3 +221,17 @@
color: white !important; color: white !important;
background-image: url(../img/ar_down_white.png) !important; background-image: url(../img/ar_down_white.png) !important;
} }
.without_radius{
border-radius: 0 !important;
}
.without_back{
background: none !important;
}
.none_select{
background-color: #333 !important;
color: white !important;
background-image: url(../img/ar_down_white.png) !important;
}
Loading…
Cancel
Save