diff --git a/resources/library/interactivities/Ass sons.wgt/css/basic.css b/resources/library/interactivities/Ass sons.wgt/css/basic.css
index 77551b3c..86a7248c 100644
--- a/resources/library/interactivities/Ass sons.wgt/css/basic.css
+++ b/resources/library/interactivities/Ass sons.wgt/css/basic.css
@@ -427,3 +427,17 @@ body{
color: white !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;
+}
\ No newline at end of file
diff --git a/resources/library/interactivities/Ass sons.wgt/index.html b/resources/library/interactivities/Ass sons.wgt/index.html
index aaf069d9..0715e1a6 100644
--- a/resources/library/interactivities/Ass sons.wgt/index.html
+++ b/resources/library/interactivities/Ass sons.wgt/index.html
@@ -54,6 +54,7 @@
|
diff --git a/resources/library/interactivities/Ass sons.wgt/js/script.js b/resources/library/interactivities/Ass sons.wgt/js/script.js
index 9350d669..b02281c2 100644
--- a/resources/library/interactivities/Ass sons.wgt/js/script.js
+++ b/resources/library/interactivities/Ass sons.wgt/js/script.js
@@ -7,7 +7,8 @@ var sankoreLang = {
wgt_name: "Associate to the audio",
reload: "Reload",
slate: "Wood",
- pad: "Pad"
+ pad: "Pad",
+ none: "None"
};
//main function
@@ -19,6 +20,7 @@ function start(){
$("#wgt_reload").text(sankoreLang.reload);
$(".style_select option[value='1']").text(sankoreLang.slate);
$(".style_select option[value='2']").text(sankoreLang.pad);
+ $(".style_select option[value='3']").text(sankoreLang.none);
if(window.sankore){
if(sankore.preference("associer_sound","")){
@@ -31,7 +33,7 @@ function start(){
changeStyle(sankore.preference("as_snd_style",""));
$(".style_select").val(sankore.preference("as_snd_style",""));
} else
- changeStyle(1)
+ changeStyle("3")
}
else
showExample();
@@ -743,34 +745,55 @@ function stringToXML(text){
//changing the style
function changeStyle(val){
- if(val == 1){
- $(".b_top_left").removeClass("btl_pad");
- $(".b_top_center").removeClass("btc_pad");
- $(".b_top_right").removeClass("btr_pad");
- $(".b_center_left").removeClass("bcl_pad");
- $(".b_center_right").removeClass("bcr_pad");
- $(".b_bottom_right").removeClass("bbr_pad");
- $(".b_bottom_left").removeClass("bbl_pad");
- $(".b_bottom_center").removeClass("bbc_pad");
- $("#wgt_reload").removeClass("pad_color").removeClass("pad_reload");
- $("#wgt_edit").removeClass("pad_color").removeClass("pad_edit");
- $("#wgt_display").removeClass("pad_color").removeClass("pad_edit");
- $("#wgt_name").removeClass("pad_color");
- $(".style_select").removeClass("pad_select");
- } else {
- $(".b_top_left").addClass("btl_pad");
- $(".b_top_center").addClass("btc_pad");
- $(".b_top_right").addClass("btr_pad");
- $(".b_center_left").addClass("bcl_pad");
- $(".b_center_right").addClass("bcr_pad");
- $(".b_bottom_right").addClass("bbr_pad");
- $(".b_bottom_left").addClass("bbl_pad");
- $(".b_bottom_center").addClass("bbc_pad");
- $("#wgt_reload").addClass("pad_color").addClass("pad_reload");
- $("#wgt_edit").addClass("pad_color").addClass("pad_edit");
- $("#wgt_display").addClass("pad_color").addClass("pad_edit");
- $("#wgt_name").addClass("pad_color");
- $(".style_select").addClass("pad_select");
+ switch(val){
+ case "1":
+ $(".b_top_left").removeClass("btl_pad").removeClass("without_back");
+ $(".b_top_center").removeClass("btc_pad").removeClass("without_back");
+ $(".b_top_right").removeClass("btr_pad").removeClass("without_back");
+ $(".b_center_left").removeClass("bcl_pad").removeClass("without_back");
+ $(".b_center_right").removeClass("bcr_pad").removeClass("without_back");
+ $(".b_bottom_right").removeClass("bbr_pad").removeClass("without_back");
+ $(".b_bottom_left").removeClass("bbl_pad").removeClass("without_back");
+ $(".b_bottom_center").removeClass("bbc_pad").removeClass("without_back");
+ $("#wgt_reload").removeClass("pad_color").removeClass("pad_reload");
+ $("#wgt_edit").removeClass("pad_color").removeClass("pad_edit");
+ $("#wgt_display").removeClass("pad_color").removeClass("pad_edit");
+ $("#wgt_name").removeClass("pad_color");
+ $(".style_select").removeClass("pad_select").removeClass("none_select").val(val);
+ $("body, html").removeClass("without_radius");
+ break;
+ case "2":
+ $(".b_top_left").addClass("btl_pad").removeClass("without_back");
+ $(".b_top_center").addClass("btc_pad").removeClass("without_back");
+ $(".b_top_right").addClass("btr_pad").removeClass("without_back");
+ $(".b_center_left").addClass("bcl_pad").removeClass("without_back");
+ $(".b_center_right").addClass("bcr_pad").removeClass("without_back");
+ $(".b_bottom_right").addClass("bbr_pad").removeClass("without_back");
+ $(".b_bottom_left").addClass("bbl_pad").removeClass("without_back");
+ $(".b_bottom_center").addClass("bbc_pad").removeClass("without_back");
+ $("#wgt_reload").addClass("pad_color").addClass("pad_reload");
+ $("#wgt_edit").addClass("pad_color").addClass("pad_edit");
+ $("#wgt_display").addClass("pad_color").addClass("pad_edit");
+ $("#wgt_name").addClass("pad_color");
+ $(".style_select").addClass("pad_select").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;
}
}
diff --git a/resources/library/interactivities/Ass sons.wgt/locales/fr/index.html b/resources/library/interactivities/Ass sons.wgt/locales/fr/index.html
index ef8c9d5c..1ab412a3 100644
--- a/resources/library/interactivities/Ass sons.wgt/locales/fr/index.html
+++ b/resources/library/interactivities/Ass sons.wgt/locales/fr/index.html
@@ -28,6 +28,7 @@
|
diff --git a/resources/library/interactivities/Ass sons.wgt/locales/fr/js/script.js b/resources/library/interactivities/Ass sons.wgt/locales/fr/js/script.js
index a07767a6..47fe6cf9 100644
--- a/resources/library/interactivities/Ass sons.wgt/locales/fr/js/script.js
+++ b/resources/library/interactivities/Ass sons.wgt/locales/fr/js/script.js
@@ -7,8 +7,10 @@ var sankoreLang = {
wgt_name: "Associer aux sons",
reload: "Recharger",
slate: "Bois",
- pad: "Pad"
+ pad: "Pad",
+ none: "Aucun"
};
+
//main function
function start(){
@@ -18,6 +20,7 @@ function start(){
$("#wgt_reload").text(sankoreLang.reload);
$(".style_select option[value='1']").text(sankoreLang.slate);
$(".style_select option[value='2']").text(sankoreLang.pad);
+ $(".style_select option[value='3']").text(sankoreLang.none);
if(window.sankore){
if(sankore.preference("associer_sound","")){
@@ -30,7 +33,7 @@ function start(){
changeStyle(sankore.preference("as_snd_style",""));
$(".style_select").val(sankore.preference("as_snd_style",""));
} else
- changeStyle(1)
+ changeStyle("3")
}
else
showExample();
@@ -727,34 +730,55 @@ function stringToXML(text){
//changing the style
function changeStyle(val){
- if(val == 1){
- $(".b_top_left").removeClass("btl_pad");
- $(".b_top_center").removeClass("btc_pad");
- $(".b_top_right").removeClass("btr_pad");
- $(".b_center_left").removeClass("bcl_pad");
- $(".b_center_right").removeClass("bcr_pad");
- $(".b_bottom_right").removeClass("bbr_pad");
- $(".b_bottom_left").removeClass("bbl_pad");
- $(".b_bottom_center").removeClass("bbc_pad");
- $("#wgt_reload").removeClass("pad_color").removeClass("pad_reload");
- $("#wgt_edit").removeClass("pad_color").removeClass("pad_edit");
- $("#wgt_display").removeClass("pad_color").removeClass("pad_edit");
- $("#wgt_name").removeClass("pad_color");
- $(".style_select").removeClass("pad_select");
- } else {
- $(".b_top_left").addClass("btl_pad");
- $(".b_top_center").addClass("btc_pad");
- $(".b_top_right").addClass("btr_pad");
- $(".b_center_left").addClass("bcl_pad");
- $(".b_center_right").addClass("bcr_pad");
- $(".b_bottom_right").addClass("bbr_pad");
- $(".b_bottom_left").addClass("bbl_pad");
- $(".b_bottom_center").addClass("bbc_pad");
- $("#wgt_reload").addClass("pad_color").addClass("pad_reload");
- $("#wgt_edit").addClass("pad_color").addClass("pad_edit");
- $("#wgt_display").addClass("pad_color").addClass("pad_edit");
- $("#wgt_name").addClass("pad_color");
- $(".style_select").addClass("pad_select");
+ switch(val){
+ case "1":
+ $(".b_top_left").removeClass("btl_pad").removeClass("without_back");
+ $(".b_top_center").removeClass("btc_pad").removeClass("without_back");
+ $(".b_top_right").removeClass("btr_pad").removeClass("without_back");
+ $(".b_center_left").removeClass("bcl_pad").removeClass("without_back");
+ $(".b_center_right").removeClass("bcr_pad").removeClass("without_back");
+ $(".b_bottom_right").removeClass("bbr_pad").removeClass("without_back");
+ $(".b_bottom_left").removeClass("bbl_pad").removeClass("without_back");
+ $(".b_bottom_center").removeClass("bbc_pad").removeClass("without_back");
+ $("#wgt_reload").removeClass("pad_color").removeClass("pad_reload");
+ $("#wgt_edit").removeClass("pad_color").removeClass("pad_edit");
+ $("#wgt_display").removeClass("pad_color").removeClass("pad_edit");
+ $("#wgt_name").removeClass("pad_color");
+ $(".style_select").removeClass("pad_select").removeClass("none_select").val(val);
+ $("body, html").removeClass("without_radius");
+ break;
+ case "2":
+ $(".b_top_left").addClass("btl_pad").removeClass("without_back");
+ $(".b_top_center").addClass("btc_pad").removeClass("without_back");
+ $(".b_top_right").addClass("btr_pad").removeClass("without_back");
+ $(".b_center_left").addClass("bcl_pad").removeClass("without_back");
+ $(".b_center_right").addClass("bcr_pad").removeClass("without_back");
+ $(".b_bottom_right").addClass("bbr_pad").removeClass("without_back");
+ $(".b_bottom_left").addClass("bbl_pad").removeClass("without_back");
+ $(".b_bottom_center").addClass("bbc_pad").removeClass("without_back");
+ $("#wgt_reload").addClass("pad_color").addClass("pad_reload");
+ $("#wgt_edit").addClass("pad_color").addClass("pad_edit");
+ $("#wgt_display").addClass("pad_color").addClass("pad_edit");
+ $("#wgt_name").addClass("pad_color");
+ $(".style_select").addClass("pad_select").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;
}
}
diff --git a/resources/library/interactivities/Ass sons.wgt/locales/ru/index.html b/resources/library/interactivities/Ass sons.wgt/locales/ru/index.html
index 261886d7..192e73cf 100644
--- a/resources/library/interactivities/Ass sons.wgt/locales/ru/index.html
+++ b/resources/library/interactivities/Ass sons.wgt/locales/ru/index.html
@@ -28,6 +28,7 @@
|
diff --git a/resources/library/interactivities/Ass sons.wgt/locales/ru/js/script.js b/resources/library/interactivities/Ass sons.wgt/locales/ru/js/script.js
index 2c6f0eb2..85e6e8f1 100644
--- a/resources/library/interactivities/Ass sons.wgt/locales/ru/js/script.js
+++ b/resources/library/interactivities/Ass sons.wgt/locales/ru/js/script.js
@@ -9,6 +9,7 @@ var sankoreLang = {
slate: "Узор",
pad: "Планшет"
};
+
//main function
function start(){
@@ -18,6 +19,7 @@ function start(){
$("#wgt_reload").text(sankoreLang.reload);
$(".style_select option[value='1']").text(sankoreLang.slate);
$(".style_select option[value='2']").text(sankoreLang.pad);
+ $(".style_select option[value='3']").text(sankoreLang.none);
if(window.sankore){
if(sankore.preference("associer_sound","")){
@@ -30,7 +32,7 @@ function start(){
changeStyle(sankore.preference("as_snd_style",""));
$(".style_select").val(sankore.preference("as_snd_style",""));
} else
- changeStyle(1)
+ changeStyle("3")
}
else
showExample();
@@ -727,34 +729,55 @@ function stringToXML(text){
//changing the style
function changeStyle(val){
- if(val == 1){
- $(".b_top_left").removeClass("btl_pad");
- $(".b_top_center").removeClass("btc_pad");
- $(".b_top_right").removeClass("btr_pad");
- $(".b_center_left").removeClass("bcl_pad");
- $(".b_center_right").removeClass("bcr_pad");
- $(".b_bottom_right").removeClass("bbr_pad");
- $(".b_bottom_left").removeClass("bbl_pad");
- $(".b_bottom_center").removeClass("bbc_pad");
- $("#wgt_reload").removeClass("pad_color").removeClass("pad_reload");
- $("#wgt_edit").removeClass("pad_color").removeClass("pad_edit");
- $("#wgt_display").removeClass("pad_color").removeClass("pad_edit");
- $("#wgt_name").removeClass("pad_color");
- $(".style_select").removeClass("pad_select");
- } else {
- $(".b_top_left").addClass("btl_pad");
- $(".b_top_center").addClass("btc_pad");
- $(".b_top_right").addClass("btr_pad");
- $(".b_center_left").addClass("bcl_pad");
- $(".b_center_right").addClass("bcr_pad");
- $(".b_bottom_right").addClass("bbr_pad");
- $(".b_bottom_left").addClass("bbl_pad");
- $(".b_bottom_center").addClass("bbc_pad");
- $("#wgt_reload").addClass("pad_color").addClass("pad_reload");
- $("#wgt_edit").addClass("pad_color").addClass("pad_edit");
- $("#wgt_display").addClass("pad_color").addClass("pad_edit");
- $("#wgt_name").addClass("pad_color");
- $(".style_select").addClass("pad_select");
+ switch(val){
+ case "1":
+ $(".b_top_left").removeClass("btl_pad").removeClass("without_back");
+ $(".b_top_center").removeClass("btc_pad").removeClass("without_back");
+ $(".b_top_right").removeClass("btr_pad").removeClass("without_back");
+ $(".b_center_left").removeClass("bcl_pad").removeClass("without_back");
+ $(".b_center_right").removeClass("bcr_pad").removeClass("without_back");
+ $(".b_bottom_right").removeClass("bbr_pad").removeClass("without_back");
+ $(".b_bottom_left").removeClass("bbl_pad").removeClass("without_back");
+ $(".b_bottom_center").removeClass("bbc_pad").removeClass("without_back");
+ $("#wgt_reload").removeClass("pad_color").removeClass("pad_reload");
+ $("#wgt_edit").removeClass("pad_color").removeClass("pad_edit");
+ $("#wgt_display").removeClass("pad_color").removeClass("pad_edit");
+ $("#wgt_name").removeClass("pad_color");
+ $(".style_select").removeClass("pad_select").removeClass("none_select").val(val);
+ $("body, html").removeClass("without_radius");
+ break;
+ case "2":
+ $(".b_top_left").addClass("btl_pad").removeClass("without_back");
+ $(".b_top_center").addClass("btc_pad").removeClass("without_back");
+ $(".b_top_right").addClass("btr_pad").removeClass("without_back");
+ $(".b_center_left").addClass("bcl_pad").removeClass("without_back");
+ $(".b_center_right").addClass("bcr_pad").removeClass("without_back");
+ $(".b_bottom_right").addClass("bbr_pad").removeClass("without_back");
+ $(".b_bottom_left").addClass("bbl_pad").removeClass("without_back");
+ $(".b_bottom_center").addClass("bbc_pad").removeClass("without_back");
+ $("#wgt_reload").addClass("pad_color").addClass("pad_reload");
+ $("#wgt_edit").addClass("pad_color").addClass("pad_edit");
+ $("#wgt_display").addClass("pad_color").addClass("pad_edit");
+ $("#wgt_name").addClass("pad_color");
+ $(".style_select").addClass("pad_select").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;
}
}