Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
OpenBoard
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lifo
Nicolas Ollinger
OpenBoard
Commits
3aa51f26
Commit
3aa51f26
authored
Jul 17, 2012
by
Claudio Valerio
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of github.com:Sankore/Sankore-3.1
parents
34819f9f
82968242
Changes
29
Hide whitespace changes
Inline
Side-by-side
Showing
29 changed files
with
713 additions
and
368 deletions
+713
-368
basic.css
...rces/library/interactivities/Ass images.wgt/css/basic.css
+13
-0
index.html
resources/library/interactivities/Ass images.wgt/index.html
+1
-0
script.js
...urces/library/interactivities/Ass images.wgt/js/script.js
+54
-31
index.html
...rary/interactivities/Ass images.wgt/locales/fr/index.html
+1
-0
script.js
...ry/interactivities/Ass images.wgt/locales/fr/js/script.js
+53
-30
index.html
...rary/interactivities/Ass images.wgt/locales/ru/index.html
+1
-0
script.js
...ry/interactivities/Ass images.wgt/locales/ru/js/script.js
+53
-30
basic.css
resources/library/interactivities/Ass sons.wgt/css/basic.css
+14
-0
index.html
resources/library/interactivities/Ass sons.wgt/index.html
+1
-0
script.js
resources/library/interactivities/Ass sons.wgt/js/script.js
+53
-30
index.html
...ibrary/interactivities/Ass sons.wgt/locales/fr/index.html
+1
-0
script.js
...rary/interactivities/Ass sons.wgt/locales/fr/js/script.js
+54
-30
index.html
...ibrary/interactivities/Ass sons.wgt/locales/ru/index.html
+1
-0
script.js
...rary/interactivities/Ass sons.wgt/locales/ru/js/script.js
+54
-30
basic.css
...rces/library/interactivities/Cat images.wgt/css/basic.css
+14
-0
index.html
resources/library/interactivities/Cat images.wgt/index.html
+1
-0
script.js
...urces/library/interactivities/Cat images.wgt/js/script.js
+56
-33
index.html
...rary/interactivities/Cat images.wgt/locales/fr/index.html
+1
-0
script.js
...ry/interactivities/Cat images.wgt/locales/fr/js/script.js
+55
-32
index.html
...rary/interactivities/Cat images.wgt/locales/ru/index.html
+1
-0
script.js
...ry/interactivities/Cat images.wgt/locales/ru/js/script.js
+54
-31
config.xml
resources/library/interactivities/Cat text.wgt/config.xml
+1
-1
basic.css
resources/library/interactivities/Cat text.wgt/css/basic.css
+14
-0
index.html
resources/library/interactivities/Cat text.wgt/index.html
+1
-0
script.js
resources/library/interactivities/Cat text.wgt/js/script.js
+53
-30
index.html
...ibrary/interactivities/Cat text.wgt/locales/fr/index.html
+1
-0
script.js
...rary/interactivities/Cat text.wgt/locales/fr/js/script.js
+53
-30
index.html
...ibrary/interactivities/Cat text.wgt/locales/ru/index.html
+1
-0
script.js
...rary/interactivities/Cat text.wgt/locales/ru/js/script.js
+53
-30
No files found.
resources/library/interactivities/Ass images.wgt/css/basic.css
View file @
3aa51f26
...
...
@@ -6,6 +6,10 @@ html, body{
border-radius
:
50px
;
}
.without_radius
{
border-radius
:
0
!important
;
}
body
{
background-image
:
url(../img/bg.png)
;
}
...
...
@@ -207,6 +211,9 @@ body{
/* new design */
.without_back
{
background
:
none
!important
;
}
.body_table
{
width
:
100%
;
...
...
@@ -385,3 +392,9 @@ body{
color
:
white
!important
;
background-image
:
url(../img/ar_down_white.png)
!important
;
}
.none_select
{
background-color
:
#333
!important
;
color
:
white
!important
;
background-image
:
url(../images/ar_down_white.png)
!important
;
}
resources/library/interactivities/Ass images.wgt/index.html
View file @
3aa51f26
...
...
@@ -57,6 +57,7 @@
<select
class=
"style_select"
>
<option
value=
"1"
></option>
<option
value=
"2"
></option>
<option
value=
"3"
></option>
</select>
</td>
<td
class=
"b_top_right"
>
</td>
...
...
resources/library/interactivities/Ass images.wgt/js/script.js
View file @
3aa51f26
...
...
@@ -7,18 +7,20 @@ var sankoreLang = {
wgt_name
:
"Associate images"
,
reload
:
"Reload"
,
slate
:
"Wood"
,
pad
:
"Pad"
pad
:
"Pad"
,
none
:
"None"
};
//main function
function
start
(){
$
(
"#wgt_display"
).
text
(
sankoreLang
.
display
);
$
(
"#wgt_edit"
).
text
(
sankoreLang
.
edit
);
$
(
"#wgt_name"
).
text
(
sankoreLang
.
wgt_name
);
$
(
"#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"
,
""
)){
...
...
@@ -508,7 +510,7 @@ function importData(data){
//example
function
showExample
(){
changeStyle
(
1
);
changeStyle
(
"3"
);
var
tmp_array
=
[];
var
container
=
$
(
"<div class='cont'>"
).
appendTo
(
"#data"
);
...
...
@@ -605,34 +607,55 @@ function showExample(){
//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
;
}
}
...
...
resources/library/interactivities/Ass images.wgt/locales/fr/index.html
View file @
3aa51f26
...
...
@@ -28,6 +28,7 @@
<select
class=
"style_select"
>
<option
value=
"1"
></option>
<option
value=
"2"
></option>
<option
value=
"3"
></option>
</select>
</td>
<td
class=
"b_top_right"
>
</td>
...
...
resources/library/interactivities/Ass images.wgt/locales/fr/js/script.js
View file @
3aa51f26
...
...
@@ -7,7 +7,8 @@ var sankoreLang = {
wgt_name
:
"Associer des images"
,
reload
:
"Recharger"
,
slate
:
"ardoise"
,
pad
:
"tablette"
pad
:
"tablette"
,
none
:
"aucun"
};
//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"
,
""
)){
...
...
@@ -503,7 +505,7 @@ function importData(data){
//example
function
showExample
(){
changeStyle
(
1
);
changeStyle
(
"3"
);
var
tmp_array
=
[];
var
container
=
$
(
"<div class='cont'>"
).
appendTo
(
"#data"
);
...
...
@@ -600,34 +602,55 @@ function showExample(){
//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
;
}
}
...
...
resources/library/interactivities/Ass images.wgt/locales/ru/index.html
View file @
3aa51f26
...
...
@@ -28,6 +28,7 @@
<select
class=
"style_select"
>
<option
value=
"1"
></option>
<option
value=
"2"
></option>
<option
value=
"3"
></option>
</select>
</td>
<td
class=
"b_top_right"
>
</td>
...
...
resources/library/interactivities/Ass images.wgt/locales/ru/js/script.js
View file @
3aa51f26
...
...
@@ -7,7 +7,8 @@ var sankoreLang = {
wgt_name
:
"Соотнести"
,
reload
:
"Обновить"
,
slate
:
"Узор"
,
pad
:
"Планшет"
pad
:
"Планшет"
,
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"
,
""
)){
...
...
@@ -503,7 +505,7 @@ function importData(data){
//example
function
showExample
(){
changeStyle
(
1
);
changeStyle
(
"3"
);
var
tmp_array
=
[];
var
container
=
$
(
"<div class='cont'>"
).
appendTo
(
"#data"
);
...
...
@@ -600,34 +602,55 @@ function showExample(){
//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
;
}
}
...
...
resources/library/interactivities/Ass sons.wgt/css/basic.css
View file @
3aa51f26
...
...
@@ -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(../images/ar_down_white.png)
!important
;
}
\ No newline at end of file
resources/library/interactivities/Ass sons.wgt/index.html
View file @
3aa51f26
...
...
@@ -54,6 +54,7 @@
<select
class=
"style_select"
>
<option
value=
"1"
></option>
<option
value=
"2"
></option>
<option
value=
"3"
></option>
</select>
</td>
<td
class=
"b_top_right"
>
</td>
...
...
resources/library/interactivities/Ass sons.wgt/js/script.js
View file @
3aa51f26
...
...
@@ -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
;
}
}
...
...
resources/library/interactivities/Ass sons.wgt/locales/fr/index.html
View file @
3aa51f26
...
...
@@ -28,6 +28,7 @@
<select
class=
"style_select"
>
<option
value=
"1"
></option>
<option
value=
"2"
></option>
<option
value=
"3"
></option>
</select>
</td>
<td
class=
"b_top_right"
>
</td>
...
...
resources/library/interactivities/Ass sons.wgt/locales/fr/js/script.js
View file @
3aa51f26
...
...
@@ -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
;
}
}
...
...
resources/library/interactivities/Ass sons.wgt/locales/ru/index.html
View file @
3aa51f26
...
...
@@ -28,6 +28,7 @@
<select
class=
"style_select"
>
<option
value=
"1"
></option>
<option
value=
"2"
></option>
<option
value=
"3"
></option>
</select>
</td>
<td
class=
"b_top_right"
>
</td>
...
...
resources/library/interactivities/Ass sons.wgt/locales/ru/js/script.js
View file @
3aa51f26
...
...
@@ -7,8 +7,10 @@ var sankoreLang = {
wgt_name
:
"Что звучит"
,
reload
:
"Обновить"
,
slate
:
"Узор"
,
pad
:
"Планшет"
pad
:
"Планшет"
,
none
:
"Нет"
};
//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
;
}
}
...
...
resources/library/interactivities/Cat images.wgt/css/basic.css
View file @
3aa51f26
...
...
@@ -369,3 +369,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(../images/ar_down_white.png)
!important
;
}
\ No newline at end of file
resources/library/interactivities/Cat images.wgt/index.html
View file @
3aa51f26
...
...
@@ -54,6 +54,7 @@
<select
class=
"style_select"
>
<option
value=
"1"
></option>
<option
value=
"2"
></option>
<option
value=
"3"
></option>
</select>
</td>
<td
class=
"b_top_right"
>
</td>
...
...
resources/library/interactivities/Cat images.wgt/js/script.js
View file @
3aa51f26
...
...
@@ -8,7 +8,8 @@ var sankoreLang = {
wgt_name
:
"Order images"
,
reload
:
"Reload"
,
slate
:
"Wood"
,
pad
:
"Pad"
pad
:
"Pad"
,
none
:
"None"
};
//main function
...
...
@@ -20,6 +21,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
(
"categoriser_images"
,
""
)){
...
...
@@ -61,7 +63,7 @@ function start(){
$
(
this
).
addClass
(
"selected"
);
$
(
"#wgt_edit"
).
removeClass
(
"selected"
);
$
(
".style_select"
).
css
(
"display"
,
"none"
);
if
(
window
.
sankore
)
if
(
window
.
sankore
)
sankore
.
enableDropOnWidget
(
false
);
$
(
".add_block"
).
remove
();
$
(
".cont"
).
each
(
function
(){
...
...
@@ -210,7 +212,7 @@ function start(){
//export
function
exportData
(){
var
array_to_export
=
[];
if
(
$
(
"#
wgt_
edit"
).
hasClass
(
"selected"
)){
if
(
$
(
"#edit"
).
hasClass
(
"selected"
)){
$
(
".cont"
).
each
(
function
(){
var
cont_obj
=
new
Object
();
cont_obj
.
style
=
$
(
".style_select"
).
find
(
"option:selected"
).
val
();
...
...
@@ -292,7 +294,7 @@ function importData(data){
changeStyle
(
data
[
i
].
style
);
$
(
".style_select"
).
val
(
data
[
i
].
style
);
}
if
(
data
[
i
].
mode
==
"edit"
){
if
(
data
[
i
].
mode
==
"edit"
){
var
tmp_array
=
[];
var
container
=
$
(
"<div class='cont'>"
);
var
sub_container
=
$
(
"<div class='sub_cont'>"
).
appendTo
(
container
);
...
...
@@ -448,7 +450,7 @@ function importData(data){
//example
function
showExample
(){
changeStyle
(
1
);
changeStyle
(
"3"
);
var
tmp_array
=
[];
var
container
=
$
(
"<div class='cont'>"
).
appendTo
(
"#data"
);
...
...
@@ -594,34 +596,55 @@ function shuffle( arr )
//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
;
}
}
...
...
resources/library/interactivities/Cat images.wgt/locales/fr/index.html
View file @
3aa51f26
...
...
@@ -28,6 +28,7 @@
<select
class=
"style_select"
>
<option
value=
"1"
></option>
<option
value=
"2"
></option>
<option
value=
"3"
></option>
</select>
</td>
<td
class=
"b_top_right"
>
</td>
...
...
resources/library/interactivities/Cat images.wgt/locales/fr/js/script.js
View file @
3aa51f26
...
...
@@ -7,8 +7,9 @@ var sankoreLang = {
add
:
"Nouveau bloc"
,
wgt_name
:
"Catégoriser des images"
,
reload
:
"Recharger"
,
slate
:
"Ardoise"
,
pad
:
"Tablette"
slate
:
"ardoise"
,
pad
:
"tablette"
,
none
:
"aucun"
};
//main function
...
...
@@ -20,6 +21,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
(
"categoriser_images"
,
""
)){
...
...
@@ -208,7 +210,7 @@ function start(){
//export
function
exportData
(){
var
array_to_export
=
[];
if
(
$
(
"#
wgt_
edit"
).
hasClass
(
"selected"
)){
if
(
$
(
"#edit"
).
hasClass
(
"selected"
)){
$
(
".cont"
).
each
(
function
(){
var
cont_obj
=
new
Object
();
cont_obj
.
style
=
$
(
".style_select"
).
find
(
"option:selected"
).
val
();
...
...
@@ -449,7 +451,7 @@ function importData(data){
//example
function
showExample
(){
changeStyle
(
1
);
changeStyle
(
"3"
);
var
tmp_array
=
[];
var
container
=
$
(
"<div class='cont'>"
).
appendTo
(
"#data"
);
...
...
@@ -608,34 +610,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
;
}
}
...
...
resources/library/interactivities/Cat images.wgt/locales/ru/index.html
View file @
3aa51f26
...
...
@@ -28,6 +28,7 @@
<select
class=
"style_select"
>
<option
value=
"1"
></option>
<option
value=
"2"
></option>
<option
value=
"3"
></option>
</select>
</td>
<td
class=
"b_top_right"
>
</td>
...
...
resources/library/interactivities/Cat images.wgt/locales/ru/js/script.js
View file @
3aa51f26
...
...
@@ -8,7 +8,8 @@ var sankoreLang = {
wgt_name
:
"Категории"
,
reload
:
"Обновить"
,
slate
:
"Узор"
,
pad
:
"Планшет"
pad
:
"Планшет"
,
none
:
"Нет"
};
//main function
...
...
@@ -20,6 +21,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
(
"categoriser_images"
,
""
)){
...
...
@@ -208,7 +210,7 @@ function start(){
//export
function
exportData
(){
var
array_to_export
=
[];
if
(
$
(
"#
wgt_
edit"
).
hasClass
(
"selected"
)){
if
(
$
(
"#edit"
).
hasClass
(
"selected"
)){
$
(
".cont"
).
each
(
function
(){
var
cont_obj
=
new
Object
();
cont_obj
.
style
=
$
(
".style_select"
).
find
(
"option:selected"
).
val
();
...
...
@@ -449,7 +451,7 @@ function importData(data){
//example
function
showExample
(){
changeStyle
(
1
);
changeStyle
(
"3"
);
var
tmp_array
=
[];
var
container
=
$
(
"<div class='cont'>"
).
appendTo
(
"#data"
);
...
...
@@ -608,34 +610,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
;
}
}
...
...
resources/library/interactivities/Cat text.wgt/config.xml
View file @
3aa51f26
...
...
@@ -3,7 +3,7 @@
xmlns:ub=
"http://uniboard.mnemis.com/widgets"
id=
"http://uniboard.mnemis.com/widgets/notes"
version=
"1.2"
width=
"9
8
0"
width=
"9
9
0"
height=
"520"
ub:resizable=
"true"
>
...
...
resources/library/interactivities/Cat text.wgt/css/basic.css
View file @
3aa51f26
...
...
@@ -391,3 +391,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(../images/ar_down_white.png)
!important
;
}
\ No newline at end of file
resources/library/interactivities/Cat text.wgt/index.html
View file @
3aa51f26
...
...
@@ -54,6 +54,7 @@
<select
class=
"style_select"
>
<option
value=
"1"
></option>
<option
value=
"2"
></option>
<option
value=
"3"
></option>
</select>
</td>
<td
class=
"b_top_right"
>
</td>
...
...
resources/library/interactivities/Cat text.wgt/js/script.js
View file @
3aa51f26
...
...
@@ -14,7 +14,8 @@ var sankoreLang = {
wgt_name
:
"Categorize text"
,
reload
:
"Reload"
,
slate
:
"Wood"
,
pad
:
"Pad"
pad
:
"Pad"
,
none
:
"None"
};
//main function
...
...
@@ -26,6 +27,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
(
"categoriser_text"
,
""
)){
...
...
@@ -440,7 +442,7 @@ function importData(data){
//example
function
showExample
(){
changeStyle
(
1
);
changeStyle
(
"3"
);
var
tmp_array
=
[];
var
container
=
$
(
"<div class='cont'>"
).
appendTo
(
"#data"
);
...
...
@@ -608,34 +610,55 @@ function returnId(){
//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
;
}
}
...
...
resources/library/interactivities/Cat text.wgt/locales/fr/index.html
View file @
3aa51f26
...
...
@@ -28,6 +28,7 @@
<select
class=
"style_select"
>
<option
value=
"1"
></option>
<option
value=
"2"
></option>
<option
value=
"3"
></option>
</select>
</td>
<td
class=
"b_top_right"
>
</td>
...
...
resources/library/interactivities/Cat text.wgt/locales/fr/js/script.js
View file @
3aa51f26
...
...
@@ -14,7 +14,8 @@ var sankoreLang = {
wgt_name
:
"Catégoriser des textes"
,
reload
:
"Recharger"
,
slate
:
"ardoise"
,
pad
:
"tablette"
pad
:
"tablette"
,
none
:
"aucun"
};
//main function
...
...
@@ -26,6 +27,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
(
"categoriser_text"
,
""
)){
...
...
@@ -440,7 +442,7 @@ function importData(data){
//example
function
showExample
(){
changeStyle
(
1
);
changeStyle
(
"3"
);
var
tmp_array
=
[];
var
container
=
$
(
"<div class='cont'>"
).
appendTo
(
"#data"
);
...
...
@@ -608,34 +610,55 @@ function returnId(){
//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
;
}
}
...
...
resources/library/interactivities/Cat text.wgt/locales/ru/index.html
View file @
3aa51f26
...
...
@@ -28,6 +28,7 @@
<select
class=
"style_select"
>
<option
value=
"1"
></option>
<option
value=
"2"
></option>
<option
value=
"3"
></option>
</select>
</td>
<td
class=
"b_top_right"
>
</td>
...
...
resources/library/interactivities/Cat text.wgt/locales/ru/js/script.js
View file @
3aa51f26
...
...
@@ -14,7 +14,8 @@ var sankoreLang = {
wgt_name
:
"Категории"
,
reload
:
"Обновить"
,
slate
:
"Узор"
,
pad
:
"Планшет"
pad
:
"Планшет"
,
none
:
"Нет"
};
//main function
...
...
@@ -26,6 +27,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
(
"categoriser_text"
,
""
)){
...
...
@@ -440,7 +442,7 @@ function importData(data){
//example
function
showExample
(){
changeStyle
(
1
);
changeStyle
(
"3"
);
var
tmp_array
=
[];
var
container
=
$
(
"<div class='cont'>"
).
appendTo
(
"#data"
);
...
...
@@ -608,34 +610,55 @@ function returnId(){
//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
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment