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
144161ed
Commit
144161ed
authored
Jul 18, 2012
by
unknown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
new style for ordre mots
parent
622f179f
Changes
7
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
175 additions
and
90 deletions
+175
-90
index.html
resources/library/interactivities/Ordre mots.wgt/index.html
+1
-0
index.html
...rary/interactivities/Ordre mots.wgt/locales/fr/index.html
+1
-0
template2.js
...activities/Ordre mots.wgt/locales/fr/scripts/template2.js
+53
-30
index.html
...rary/interactivities/Ordre mots.wgt/locales/ru/index.html
+1
-0
template2.js
...activities/Ordre mots.wgt/locales/ru/scripts/template2.js
+53
-30
template2.js
...brary/interactivities/Ordre mots.wgt/scripts/template2.js
+53
-30
of_puppets.css
...rary/interactivities/Ordre mots.wgt/styles/of_puppets.css
+13
-0
No files found.
resources/library/interactivities/Ordre mots.wgt/index.html
View file @
144161ed
...
@@ -65,6 +65,7 @@
...
@@ -65,6 +65,7 @@
<select
class=
"style_select"
>
<select
class=
"style_select"
>
<option
value=
"1"
></option>
<option
value=
"1"
></option>
<option
value=
"2"
></option>
<option
value=
"2"
></option>
<option
value=
"3"
></option>
</select>
</select>
</td>
</td>
<td
class=
"b_top_right"
>
</td>
<td
class=
"b_top_right"
>
</td>
...
...
resources/library/interactivities/Ordre mots.wgt/locales/fr/index.html
View file @
144161ed
...
@@ -36,6 +36,7 @@
...
@@ -36,6 +36,7 @@
<select
class=
"style_select"
>
<select
class=
"style_select"
>
<option
value=
"1"
></option>
<option
value=
"1"
></option>
<option
value=
"2"
></option>
<option
value=
"2"
></option>
<option
value=
"3"
></option>
</select>
</select>
</td>
</td>
<td
class=
"b_top_right"
>
</td>
<td
class=
"b_top_right"
>
</td>
...
...
resources/library/interactivities/Ordre mots.wgt/locales/fr/scripts/template2.js
View file @
144161ed
...
@@ -33,7 +33,8 @@ var sankoreLang = {
...
@@ -33,7 +33,8 @@ var sankoreLang = {
wgt_name
:
"Ordonner des mots"
,
wgt_name
:
"Ordonner des mots"
,
reload
:
"Recharger"
,
reload
:
"Recharger"
,
slate
:
"ardoise"
,
slate
:
"ardoise"
,
pad
:
"tablette"
pad
:
"tablette"
,
none
:
"aucun"
};
};
var
word
=
""
;
var
word
=
""
;
...
@@ -70,7 +71,7 @@ $(document).ready(function(){
...
@@ -70,7 +71,7 @@ $(document).ready(function(){
changeStyle
(
sankore
.
preference
(
"ord_words_style"
,
""
));
changeStyle
(
sankore
.
preference
(
"ord_words_style"
,
""
));
$
(
".style_select"
).
val
(
sankore
.
preference
(
"ord_words_style"
,
""
));
$
(
".style_select"
).
val
(
sankore
.
preference
(
"ord_words_style"
,
""
));
}
else
}
else
changeStyle
(
1
)
changeStyle
(
"3"
)
$
(
"#wgt_display"
).
text
(
sankoreLang
.
view
);
$
(
"#wgt_display"
).
text
(
sankoreLang
.
view
);
$
(
"#wgt_edit"
).
text
(
sankoreLang
.
edit
);
$
(
"#wgt_edit"
).
text
(
sankoreLang
.
edit
);
$
(
"#wgt_display, #wgt_edit"
).
click
(
function
(
event
){
$
(
"#wgt_display, #wgt_edit"
).
click
(
function
(
event
){
...
@@ -145,6 +146,7 @@ $(document).ready(function(){
...
@@ -145,6 +146,7 @@ $(document).ready(function(){
$
(
".style_select option[value='1']"
).
text
(
sankoreLang
.
slate
);
$
(
".style_select option[value='1']"
).
text
(
sankoreLang
.
slate
);
$
(
".style_select option[value='2']"
).
text
(
sankoreLang
.
pad
);
$
(
".style_select option[value='2']"
).
text
(
sankoreLang
.
pad
);
$
(
".style_select option[value='3']"
).
text
(
sankoreLang
.
none
);
$
(
".style_select"
).
change
(
function
(
event
){
$
(
".style_select"
).
change
(
function
(
event
){
changeStyle
(
$
(
this
).
find
(
"option:selected"
).
val
());
changeStyle
(
$
(
this
).
find
(
"option:selected"
).
val
());
...
@@ -188,34 +190,55 @@ function createWordLetters( word )
...
@@ -188,34 +190,55 @@ function createWordLetters( word )
//changing the style
//changing the style
function
changeStyle
(
val
){
function
changeStyle
(
val
){
if
(
val
==
1
){
switch
(
val
){
$
(
".b_top_left"
).
removeClass
(
"btl_pad"
);
case
"1"
:
$
(
".b_top_center"
).
removeClass
(
"btc_pad"
);
$
(
".b_top_left"
).
removeClass
(
"btl_pad"
).
removeClass
(
"without_back"
);
$
(
".b_top_right"
).
removeClass
(
"btr_pad"
);
$
(
".b_top_center"
).
removeClass
(
"btc_pad"
).
removeClass
(
"without_back"
);
$
(
".b_center_left"
).
removeClass
(
"bcl_pad"
);
$
(
".b_top_right"
).
removeClass
(
"btr_pad"
).
removeClass
(
"without_back"
);
$
(
".b_center_right"
).
removeClass
(
"bcr_pad"
);
$
(
".b_center_left"
).
removeClass
(
"bcl_pad"
).
removeClass
(
"without_back"
);
$
(
".b_bottom_right"
).
removeClass
(
"bbr_pad"
);
$
(
".b_center_right"
).
removeClass
(
"bcr_pad"
).
removeClass
(
"without_back"
);
$
(
".b_bottom_left"
).
removeClass
(
"bbl_pad"
);
$
(
".b_bottom_right"
).
removeClass
(
"bbr_pad"
).
removeClass
(
"without_back"
);
$
(
".b_bottom_center"
).
removeClass
(
"bbc_pad"
);
$
(
".b_bottom_left"
).
removeClass
(
"bbl_pad"
).
removeClass
(
"without_back"
);
$
(
".b_bottom_center"
).
removeClass
(
"bbc_pad"
).
removeClass
(
"without_back"
);
$
(
"#wgt_reload"
).
removeClass
(
"pad_color"
).
removeClass
(
"pad_reload"
);
$
(
"#wgt_reload"
).
removeClass
(
"pad_color"
).
removeClass
(
"pad_reload"
);
$
(
"#wgt_edit"
).
removeClass
(
"pad_color"
).
removeClass
(
"pad_edit"
);
$
(
"#wgt_edit"
).
removeClass
(
"pad_color"
).
removeClass
(
"pad_edit"
);
$
(
"#wgt_display"
).
removeClass
(
"pad_color"
).
removeClass
(
"pad_edit"
);
$
(
"#wgt_display"
).
removeClass
(
"pad_color"
).
removeClass
(
"pad_edit"
);
$
(
"#wgt_name"
).
removeClass
(
"pad_color"
);
$
(
"#wgt_name"
).
removeClass
(
"pad_color"
);
$
(
".style_select"
).
removeClass
(
"pad_select"
);
$
(
".style_select"
).
removeClass
(
"pad_select"
).
removeClass
(
"none_select"
).
val
(
val
);
}
else
{
$
(
"body, html"
).
removeClass
(
"without_radius"
);
$
(
".b_top_left"
).
addClass
(
"btl_pad"
);
break
;
$
(
".b_top_center"
).
addClass
(
"btc_pad"
);
case
"2"
:
$
(
".b_top_right"
).
addClass
(
"btr_pad"
);
$
(
".b_top_left"
).
addClass
(
"btl_pad"
).
removeClass
(
"without_back"
);
$
(
".b_center_left"
).
addClass
(
"bcl_pad"
);
$
(
".b_top_center"
).
addClass
(
"btc_pad"
).
removeClass
(
"without_back"
);
$
(
".b_center_right"
).
addClass
(
"bcr_pad"
);
$
(
".b_top_right"
).
addClass
(
"btr_pad"
).
removeClass
(
"without_back"
);
$
(
".b_bottom_right"
).
addClass
(
"bbr_pad"
);
$
(
".b_center_left"
).
addClass
(
"bcl_pad"
).
removeClass
(
"without_back"
);
$
(
".b_bottom_left"
).
addClass
(
"bbl_pad"
);
$
(
".b_center_right"
).
addClass
(
"bcr_pad"
).
removeClass
(
"without_back"
);
$
(
".b_bottom_center"
).
addClass
(
"bbc_pad"
);
$
(
".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_reload"
).
addClass
(
"pad_color"
).
addClass
(
"pad_reload"
);
$
(
"#wgt_edit"
).
addClass
(
"pad_color"
).
addClass
(
"pad_edit"
);
$
(
"#wgt_edit"
).
addClass
(
"pad_color"
).
addClass
(
"pad_edit"
);
$
(
"#wgt_display"
).
addClass
(
"pad_color"
).
addClass
(
"pad_edit"
);
$
(
"#wgt_display"
).
addClass
(
"pad_color"
).
addClass
(
"pad_edit"
);
$
(
"#wgt_name"
).
addClass
(
"pad_color"
);
$
(
"#wgt_name"
).
addClass
(
"pad_color"
);
$
(
".style_select"
).
addClass
(
"pad_select"
);
$
(
".style_select"
).
addClass
(
"none_select"
).
val
(
val
);
$
(
"body, html"
).
addClass
(
"without_radius"
);
break
;
}
}
}
}
...
...
resources/library/interactivities/Ordre mots.wgt/locales/ru/index.html
View file @
144161ed
...
@@ -36,6 +36,7 @@
...
@@ -36,6 +36,7 @@
<select
class=
"style_select"
>
<select
class=
"style_select"
>
<option
value=
"1"
></option>
<option
value=
"1"
></option>
<option
value=
"2"
></option>
<option
value=
"2"
></option>
<option
value=
"3"
></option>
</select>
</select>
</td>
</td>
<td
class=
"b_top_right"
>
</td>
<td
class=
"b_top_right"
>
</td>
...
...
resources/library/interactivities/Ordre mots.wgt/locales/ru/scripts/template2.js
View file @
144161ed
...
@@ -33,7 +33,8 @@ var sankoreLang = {
...
@@ -33,7 +33,8 @@ var sankoreLang = {
wgt_name
:
"Порядок слов"
,
wgt_name
:
"Порядок слов"
,
reload
:
"Обновить"
,
reload
:
"Обновить"
,
slate
:
"Узор"
,
slate
:
"Узор"
,
pad
:
"Планшет"
pad
:
"Планшет"
,
none
:
"Нет"
};
};
var
word
=
""
;
var
word
=
""
;
...
@@ -70,7 +71,7 @@ $(document).ready(function(){
...
@@ -70,7 +71,7 @@ $(document).ready(function(){
changeStyle
(
sankore
.
preference
(
"ord_words_style"
,
""
));
changeStyle
(
sankore
.
preference
(
"ord_words_style"
,
""
));
$
(
".style_select"
).
val
(
sankore
.
preference
(
"ord_words_style"
,
""
));
$
(
".style_select"
).
val
(
sankore
.
preference
(
"ord_words_style"
,
""
));
}
else
}
else
changeStyle
(
1
)
changeStyle
(
"3"
)
$
(
"#wgt_display"
).
text
(
sankoreLang
.
view
);
$
(
"#wgt_display"
).
text
(
sankoreLang
.
view
);
$
(
"#wgt_edit"
).
text
(
sankoreLang
.
edit
);
$
(
"#wgt_edit"
).
text
(
sankoreLang
.
edit
);
$
(
"#wgt_display, #wgt_edit"
).
click
(
function
(
event
){
$
(
"#wgt_display, #wgt_edit"
).
click
(
function
(
event
){
...
@@ -145,6 +146,7 @@ $(document).ready(function(){
...
@@ -145,6 +146,7 @@ $(document).ready(function(){
$
(
".style_select option[value='1']"
).
text
(
sankoreLang
.
slate
);
$
(
".style_select option[value='1']"
).
text
(
sankoreLang
.
slate
);
$
(
".style_select option[value='2']"
).
text
(
sankoreLang
.
pad
);
$
(
".style_select option[value='2']"
).
text
(
sankoreLang
.
pad
);
$
(
".style_select option[value='3']"
).
text
(
sankoreLang
.
none
);
$
(
".style_select"
).
change
(
function
(
event
){
$
(
".style_select"
).
change
(
function
(
event
){
changeStyle
(
$
(
this
).
find
(
"option:selected"
).
val
());
changeStyle
(
$
(
this
).
find
(
"option:selected"
).
val
());
...
@@ -188,34 +190,55 @@ function createWordLetters( word )
...
@@ -188,34 +190,55 @@ function createWordLetters( word )
//changing the style
//changing the style
function
changeStyle
(
val
){
function
changeStyle
(
val
){
if
(
val
==
1
){
switch
(
val
){
$
(
".b_top_left"
).
removeClass
(
"btl_pad"
);
case
"1"
:
$
(
".b_top_center"
).
removeClass
(
"btc_pad"
);
$
(
".b_top_left"
).
removeClass
(
"btl_pad"
).
removeClass
(
"without_back"
);
$
(
".b_top_right"
).
removeClass
(
"btr_pad"
);
$
(
".b_top_center"
).
removeClass
(
"btc_pad"
).
removeClass
(
"without_back"
);
$
(
".b_center_left"
).
removeClass
(
"bcl_pad"
);
$
(
".b_top_right"
).
removeClass
(
"btr_pad"
).
removeClass
(
"without_back"
);
$
(
".b_center_right"
).
removeClass
(
"bcr_pad"
);
$
(
".b_center_left"
).
removeClass
(
"bcl_pad"
).
removeClass
(
"without_back"
);
$
(
".b_bottom_right"
).
removeClass
(
"bbr_pad"
);
$
(
".b_center_right"
).
removeClass
(
"bcr_pad"
).
removeClass
(
"without_back"
);
$
(
".b_bottom_left"
).
removeClass
(
"bbl_pad"
);
$
(
".b_bottom_right"
).
removeClass
(
"bbr_pad"
).
removeClass
(
"without_back"
);
$
(
".b_bottom_center"
).
removeClass
(
"bbc_pad"
);
$
(
".b_bottom_left"
).
removeClass
(
"bbl_pad"
).
removeClass
(
"without_back"
);
$
(
".b_bottom_center"
).
removeClass
(
"bbc_pad"
).
removeClass
(
"without_back"
);
$
(
"#wgt_reload"
).
removeClass
(
"pad_color"
).
removeClass
(
"pad_reload"
);
$
(
"#wgt_reload"
).
removeClass
(
"pad_color"
).
removeClass
(
"pad_reload"
);
$
(
"#wgt_edit"
).
removeClass
(
"pad_color"
).
removeClass
(
"pad_edit"
);
$
(
"#wgt_edit"
).
removeClass
(
"pad_color"
).
removeClass
(
"pad_edit"
);
$
(
"#wgt_display"
).
removeClass
(
"pad_color"
).
removeClass
(
"pad_edit"
);
$
(
"#wgt_display"
).
removeClass
(
"pad_color"
).
removeClass
(
"pad_edit"
);
$
(
"#wgt_name"
).
removeClass
(
"pad_color"
);
$
(
"#wgt_name"
).
removeClass
(
"pad_color"
);
$
(
".style_select"
).
removeClass
(
"pad_select"
);
$
(
".style_select"
).
removeClass
(
"pad_select"
).
removeClass
(
"none_select"
).
val
(
val
);
}
else
{
$
(
"body, html"
).
removeClass
(
"without_radius"
);
$
(
".b_top_left"
).
addClass
(
"btl_pad"
);
break
;
$
(
".b_top_center"
).
addClass
(
"btc_pad"
);
case
"2"
:
$
(
".b_top_right"
).
addClass
(
"btr_pad"
);
$
(
".b_top_left"
).
addClass
(
"btl_pad"
).
removeClass
(
"without_back"
);
$
(
".b_center_left"
).
addClass
(
"bcl_pad"
);
$
(
".b_top_center"
).
addClass
(
"btc_pad"
).
removeClass
(
"without_back"
);
$
(
".b_center_right"
).
addClass
(
"bcr_pad"
);
$
(
".b_top_right"
).
addClass
(
"btr_pad"
).
removeClass
(
"without_back"
);
$
(
".b_bottom_right"
).
addClass
(
"bbr_pad"
);
$
(
".b_center_left"
).
addClass
(
"bcl_pad"
).
removeClass
(
"without_back"
);
$
(
".b_bottom_left"
).
addClass
(
"bbl_pad"
);
$
(
".b_center_right"
).
addClass
(
"bcr_pad"
).
removeClass
(
"without_back"
);
$
(
".b_bottom_center"
).
addClass
(
"bbc_pad"
);
$
(
".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_reload"
).
addClass
(
"pad_color"
).
addClass
(
"pad_reload"
);
$
(
"#wgt_edit"
).
addClass
(
"pad_color"
).
addClass
(
"pad_edit"
);
$
(
"#wgt_edit"
).
addClass
(
"pad_color"
).
addClass
(
"pad_edit"
);
$
(
"#wgt_display"
).
addClass
(
"pad_color"
).
addClass
(
"pad_edit"
);
$
(
"#wgt_display"
).
addClass
(
"pad_color"
).
addClass
(
"pad_edit"
);
$
(
"#wgt_name"
).
addClass
(
"pad_color"
);
$
(
"#wgt_name"
).
addClass
(
"pad_color"
);
$
(
".style_select"
).
addClass
(
"pad_select"
);
$
(
".style_select"
).
addClass
(
"none_select"
).
val
(
val
);
$
(
"body, html"
).
addClass
(
"without_radius"
);
break
;
}
}
}
}
...
...
resources/library/interactivities/Ordre mots.wgt/scripts/template2.js
View file @
144161ed
...
@@ -33,7 +33,8 @@ var sankoreLang = {
...
@@ -33,7 +33,8 @@ var sankoreLang = {
wgt_name
:
"Order words"
,
wgt_name
:
"Order words"
,
reload
:
"Reload"
,
reload
:
"Reload"
,
slate
:
"Wood"
,
slate
:
"Wood"
,
pad
:
"Pad"
pad
:
"Pad"
,
none
:
"None"
};
};
var
word
=
""
;
var
word
=
""
;
...
@@ -69,7 +70,7 @@ $(document).ready(function(){
...
@@ -69,7 +70,7 @@ $(document).ready(function(){
changeStyle
(
sankore
.
preference
(
"ord_words_style"
,
""
));
changeStyle
(
sankore
.
preference
(
"ord_words_style"
,
""
));
$
(
".style_select"
).
val
(
sankore
.
preference
(
"ord_words_style"
,
""
));
$
(
".style_select"
).
val
(
sankore
.
preference
(
"ord_words_style"
,
""
));
}
else
}
else
changeStyle
(
1
)
changeStyle
(
"3"
)
$
(
"#wgt_display"
).
text
(
sankoreLang
.
view
);
$
(
"#wgt_display"
).
text
(
sankoreLang
.
view
);
$
(
"#wgt_edit"
).
text
(
sankoreLang
.
edit
);
$
(
"#wgt_edit"
).
text
(
sankoreLang
.
edit
);
$
(
"#wgt_display, #wgt_edit"
).
click
(
function
(
event
){
$
(
"#wgt_display, #wgt_edit"
).
click
(
function
(
event
){
...
@@ -144,6 +145,7 @@ $(document).ready(function(){
...
@@ -144,6 +145,7 @@ $(document).ready(function(){
$
(
".style_select option[value='1']"
).
text
(
sankoreLang
.
slate
);
$
(
".style_select option[value='1']"
).
text
(
sankoreLang
.
slate
);
$
(
".style_select option[value='2']"
).
text
(
sankoreLang
.
pad
);
$
(
".style_select option[value='2']"
).
text
(
sankoreLang
.
pad
);
$
(
".style_select option[value='3']"
).
text
(
sankoreLang
.
none
);
$
(
".style_select"
).
change
(
function
(
event
){
$
(
".style_select"
).
change
(
function
(
event
){
changeStyle
(
$
(
this
).
find
(
"option:selected"
).
val
());
changeStyle
(
$
(
this
).
find
(
"option:selected"
).
val
());
...
@@ -187,34 +189,55 @@ function createWordLetters( word )
...
@@ -187,34 +189,55 @@ function createWordLetters( word )
//changing the style
//changing the style
function
changeStyle
(
val
){
function
changeStyle
(
val
){
if
(
val
==
1
){
switch
(
val
){
$
(
".b_top_left"
).
removeClass
(
"btl_pad"
);
case
"1"
:
$
(
".b_top_center"
).
removeClass
(
"btc_pad"
);
$
(
".b_top_left"
).
removeClass
(
"btl_pad"
).
removeClass
(
"without_back"
);
$
(
".b_top_right"
).
removeClass
(
"btr_pad"
);
$
(
".b_top_center"
).
removeClass
(
"btc_pad"
).
removeClass
(
"without_back"
);
$
(
".b_center_left"
).
removeClass
(
"bcl_pad"
);
$
(
".b_top_right"
).
removeClass
(
"btr_pad"
).
removeClass
(
"without_back"
);
$
(
".b_center_right"
).
removeClass
(
"bcr_pad"
);
$
(
".b_center_left"
).
removeClass
(
"bcl_pad"
).
removeClass
(
"without_back"
);
$
(
".b_bottom_right"
).
removeClass
(
"bbr_pad"
);
$
(
".b_center_right"
).
removeClass
(
"bcr_pad"
).
removeClass
(
"without_back"
);
$
(
".b_bottom_left"
).
removeClass
(
"bbl_pad"
);
$
(
".b_bottom_right"
).
removeClass
(
"bbr_pad"
).
removeClass
(
"without_back"
);
$
(
".b_bottom_center"
).
removeClass
(
"bbc_pad"
);
$
(
".b_bottom_left"
).
removeClass
(
"bbl_pad"
).
removeClass
(
"without_back"
);
$
(
".b_bottom_center"
).
removeClass
(
"bbc_pad"
).
removeClass
(
"without_back"
);
$
(
"#wgt_reload"
).
removeClass
(
"pad_color"
).
removeClass
(
"pad_reload"
);
$
(
"#wgt_reload"
).
removeClass
(
"pad_color"
).
removeClass
(
"pad_reload"
);
$
(
"#wgt_edit"
).
removeClass
(
"pad_color"
).
removeClass
(
"pad_edit"
);
$
(
"#wgt_edit"
).
removeClass
(
"pad_color"
).
removeClass
(
"pad_edit"
);
$
(
"#wgt_display"
).
removeClass
(
"pad_color"
).
removeClass
(
"pad_edit"
);
$
(
"#wgt_display"
).
removeClass
(
"pad_color"
).
removeClass
(
"pad_edit"
);
$
(
"#wgt_name"
).
removeClass
(
"pad_color"
);
$
(
"#wgt_name"
).
removeClass
(
"pad_color"
);
$
(
".style_select"
).
removeClass
(
"pad_select"
);
$
(
".style_select"
).
removeClass
(
"pad_select"
).
removeClass
(
"none_select"
).
val
(
val
);
}
else
{
$
(
"body, html"
).
removeClass
(
"without_radius"
);
$
(
".b_top_left"
).
addClass
(
"btl_pad"
);
break
;
$
(
".b_top_center"
).
addClass
(
"btc_pad"
);
case
"2"
:
$
(
".b_top_right"
).
addClass
(
"btr_pad"
);
$
(
".b_top_left"
).
addClass
(
"btl_pad"
).
removeClass
(
"without_back"
);
$
(
".b_center_left"
).
addClass
(
"bcl_pad"
);
$
(
".b_top_center"
).
addClass
(
"btc_pad"
).
removeClass
(
"without_back"
);
$
(
".b_center_right"
).
addClass
(
"bcr_pad"
);
$
(
".b_top_right"
).
addClass
(
"btr_pad"
).
removeClass
(
"without_back"
);
$
(
".b_bottom_right"
).
addClass
(
"bbr_pad"
);
$
(
".b_center_left"
).
addClass
(
"bcl_pad"
).
removeClass
(
"without_back"
);
$
(
".b_bottom_left"
).
addClass
(
"bbl_pad"
);
$
(
".b_center_right"
).
addClass
(
"bcr_pad"
).
removeClass
(
"without_back"
);
$
(
".b_bottom_center"
).
addClass
(
"bbc_pad"
);
$
(
".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_reload"
).
addClass
(
"pad_color"
).
addClass
(
"pad_reload"
);
$
(
"#wgt_edit"
).
addClass
(
"pad_color"
).
addClass
(
"pad_edit"
);
$
(
"#wgt_edit"
).
addClass
(
"pad_color"
).
addClass
(
"pad_edit"
);
$
(
"#wgt_display"
).
addClass
(
"pad_color"
).
addClass
(
"pad_edit"
);
$
(
"#wgt_display"
).
addClass
(
"pad_color"
).
addClass
(
"pad_edit"
);
$
(
"#wgt_name"
).
addClass
(
"pad_color"
);
$
(
"#wgt_name"
).
addClass
(
"pad_color"
);
$
(
".style_select"
).
addClass
(
"pad_select"
);
$
(
".style_select"
).
addClass
(
"none_select"
).
val
(
val
);
$
(
"body, html"
).
addClass
(
"without_radius"
);
break
;
}
}
}
}
...
...
resources/library/interactivities/Ordre mots.wgt/styles/of_puppets.css
View file @
144161ed
...
@@ -244,3 +244,16 @@ body{
...
@@ -244,3 +244,16 @@ body{
background-image
:
url(../img/ar_down_white.png)
!important
;
background-image
:
url(../img/ar_down_white.png)
!important
;
}
}
.without_radius
{
border-radius
:
0
!important
;
}
.without_back
{
background
:
none
!important
;
}
.none_select
{
background-color
:
#333
!important
;
color
:
white
!important
;
background-image
:
url(../img/ar_down_white.png)
!important
;
}
\ No newline at end of file
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