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
a53f41f7
Commit
a53f41f7
authored
Jul 17, 2012
by
unknown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
new style for cat_images widget
parent
370e5c82
Changes
8
Hide whitespace changes
Inline
Side-by-side
Showing
8 changed files
with
184 additions
and
97 deletions
+184
-97
script.js
...rary/interactivities/Ass sons.wgt/locales/ru/js/script.js
+2
-1
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
No files found.
resources/library/interactivities/Ass sons.wgt/locales/ru/js/script.js
View file @
a53f41f7
...
...
@@ -7,7 +7,8 @@ var sankoreLang = {
wgt_name
:
"Что звучит"
,
reload
:
"Обновить"
,
slate
:
"Узор"
,
pad
:
"Планшет"
pad
:
"Планшет"
,
none
:
"Нет"
};
//main function
...
...
resources/library/interactivities/Cat images.wgt/css/basic.css
View file @
a53f41f7
...
...
@@ -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(../img/ar_down_white.png)
!important
;
}
\ No newline at end of file
resources/library/interactivities/Cat images.wgt/index.html
View file @
a53f41f7
...
...
@@ -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 @
a53f41f7
...
...
@@ -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 @
a53f41f7
...
...
@@ -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 @
a53f41f7
...
...
@@ -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 @
a53f41f7
...
...
@@ -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 @
a53f41f7
...
...
@@ -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
;
}
}
...
...
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