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
9b3760dc
Commit
9b3760dc
authored
12 years ago
by
unknown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
help for 'ordre lettres' widget
parent
06def14a
Changes
9
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
134 additions
and
44 deletions
+134
-44
basic.css
...s/library/interactivities/Ordre lettres.wgt/css/basic.css
+26
-5
slate-help-white.png
...nteractivities/Ordre lettres.wgt/img/slate-help-white.png
+0
-0
slate-help.png
...rary/interactivities/Ordre lettres.wgt/img/slate-help.png
+0
-0
index.html
...rces/library/interactivities/Ordre lettres.wgt/index.html
+2
-0
script.js
...es/library/interactivities/Ordre lettres.wgt/js/script.js
+34
-13
index.html
...y/interactivities/Ordre lettres.wgt/locales/fr/index.html
+2
-0
script.js
...interactivities/Ordre lettres.wgt/locales/fr/js/script.js
+34
-13
index.html
...y/interactivities/Ordre lettres.wgt/locales/ru/index.html
+2
-0
script.js
...interactivities/Ordre lettres.wgt/locales/ru/js/script.js
+34
-13
No files found.
resources/library/interactivities/Ordre lettres.wgt/css/basic.css
View file @
9b3760dc
...
...
@@ -4,6 +4,7 @@ html, body{
margin
:
0
;
padding
:
0
;
border-radius
:
50px
;
overflow
:
hidden
;
}
body
{
...
...
@@ -286,7 +287,6 @@ body{
#wgt_name
{
height
:
44px
;
width
:
300px
;
margin
:
10px
10px
0
10px
;
padding
:
0
;
float
:
left
;
...
...
@@ -295,9 +295,8 @@ body{
color
:
#8c5730
;
}
#wgt_reload
,
#wgt_edit
,
#wgt_display
{
#wgt_reload
,
#wgt_edit
,
#wgt_display
,
#wgt_help
{
cursor
:
pointer
;
width
:
80px
;
height
:
44px
;
margin
:
10px
10px
0
0
;
float
:
right
;
...
...
@@ -307,7 +306,6 @@ body{
}
#wgt_display
{
width
:
100px
;
padding-left
:
40px
;
background-image
:
url(../img/slate-edit.png)
;
background-repeat
:
no-repeat
;
...
...
@@ -316,7 +314,6 @@ body{
}
#wgt_edit
{
width
:
100px
;
padding-left
:
40px
;
background-image
:
url(../img/slate-edit.png)
;
background-repeat
:
no-repeat
;
...
...
@@ -408,4 +405,28 @@ body{
background-color
:
#333
!important
;
color
:
white
!important
;
background-image
:
url(../img/ar_down_white.png)
!important
;
}
.pad_help
{
background-image
:
url(../img/slate-help-white.png)
!important
;
}
#wgt_help
{
padding-left
:
32px
;
background-image
:
url(../img/slate-help.png)
;
background-repeat
:
no-repeat
;
background-position
:
top
0
;
}
#help
{
width
:
100%
;
height
:
100%
;
overflow
:
auto
;
display
:
none
;
background-color
:
#ccc
;
padding
:
5px
;
}
.open
{
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
resources/library/interactivities/Ordre lettres.wgt/img/slate-help-white.png
0 → 100644
View file @
9b3760dc
553 Bytes
This diff is collapsed.
Click to expand it.
resources/library/interactivities/Ordre lettres.wgt/img/slate-help.png
0 → 100644
View file @
9b3760dc
1.75 KB
This diff is collapsed.
Click to expand it.
resources/library/interactivities/Ordre lettres.wgt/index.html
View file @
9b3760dc
...
...
@@ -48,6 +48,7 @@
<td
class=
"b_top_left"
>
</td>
<td
class=
"b_top_center"
>
<div
id=
"wgt_name"
></div>
<div
id=
"wgt_help"
></div>
<div
id=
"wgt_reload"
></div>
<div
id=
"wgt_display"
class=
"selected"
></div>
<div
id=
"wgt_edit"
></div>
...
...
@@ -63,6 +64,7 @@
<tr>
<td
class=
"b_center_left"
>
</td>
<td>
<div
id=
"help"
></div>
<div
id=
"data"
>
</div>
...
...
This diff is collapsed.
Click to expand it.
resources/library/interactivities/Ordre lettres.wgt/js/script.js
View file @
9b3760dc
...
...
@@ -9,7 +9,9 @@ var sankoreLang = {
reload
:
"Reload"
,
slate
:
"Wood"
,
pad
:
"Pad"
,
none
:
"None"
none
:
"None"
,
help
:
"Help"
,
help_content
:
"This is an example of help content ..."
};
//main function
...
...
@@ -19,6 +21,8 @@ function start(){
$
(
"#wgt_edit"
).
text
(
sankoreLang
.
edit
);
$
(
"#wgt_name"
).
text
(
sankoreLang
.
wgt_name
);
$
(
"#wgt_reload"
).
text
(
sankoreLang
.
reload
);
$
(
"#wgt_help"
).
text
(
sankoreLang
.
help
);
$
(
"#help"
).
html
(
sankoreLang
.
help_content
);
$
(
".style_select option[value='1']"
).
text
(
sankoreLang
.
slate
);
$
(
".style_select option[value='2']"
).
text
(
sankoreLang
.
pad
);
$
(
".style_select option[value='3']"
).
text
(
sankoreLang
.
none
);
...
...
@@ -46,6 +50,21 @@ function start(){
}
}
$
(
"#wgt_help"
).
click
(
function
(){
var
tmp
=
$
(
this
);
if
(
$
(
this
).
hasClass
(
"open"
)){
$
(
"#help"
).
slideUp
(
"100"
,
function
(){
tmp
.
removeClass
(
"open"
);
$
(
"#data"
).
show
();
});
}
else
{
$
(
"#data"
).
hide
();
$
(
"#help"
).
slideDown
(
"100"
,
function
(){
tmp
.
addClass
(
"open"
);
});
}
});
$
(
"#wgt_reload"
).
click
(
function
(){
if
(
$
(
"#wgt_display"
).
hasClass
(
"selected"
)){
$
(
"#wgt_edit"
).
trigger
(
"click"
);
...
...
@@ -340,16 +359,16 @@ function showExample(){
}
//check result
function
checkResult
(
event
)
{
var
str
=
""
;
var
right_str
=
$
(
event
.
target
).
find
(
"input"
).
val
();
$
(
event
.
target
).
find
(
".img_block"
).
each
(
function
(){
str
+=
$
(
this
).
find
(
"input"
).
val
()
+
"*"
;
});
if
(
str
==
right_str
)
$
(
event
.
target
).
css
(
"background-color"
,
"#9f9"
);
}
//
function checkResult(event)
//
{
//
var str = "";
//
var right_str = $(event.target).find("input").val();
//
$(event.target).find(".img_block").each(function(){
//
str += $(this).find("input").val() + "*";
//
});
//
if(str == right_str)
//
$(event.target).css("background-color","#9f9");
//
}
//add new container
function
addContainer
(){
...
...
@@ -414,8 +433,7 @@ function checkResult(event)
.
addClass
(
"imgs_answers_green"
);
else
$
(
event
.
target
).
removeClass
(
"imgs_answers_gray"
)
.
removeClass
(
"imgs_answers_green"
)
.
addClass
(
"imgs_answers_red"
);
.
removeClass
(
"imgs_answers_green"
);
}
function
stringToXML
(
text
){
...
...
@@ -443,6 +461,7 @@ function changeStyle(val){
$
(
".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_help"
).
removeClass
(
"pad_color"
).
removeClass
(
"pad_help"
);
$
(
"#wgt_edit"
).
removeClass
(
"pad_color"
).
removeClass
(
"pad_edit"
);
$
(
"#wgt_display"
).
removeClass
(
"pad_color"
).
removeClass
(
"pad_edit"
);
$
(
"#wgt_name"
).
removeClass
(
"pad_color"
);
...
...
@@ -459,6 +478,7 @@ function changeStyle(val){
$
(
".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_help"
).
addClass
(
"pad_color"
).
addClass
(
"pad_help"
);
$
(
"#wgt_edit"
).
addClass
(
"pad_color"
).
addClass
(
"pad_edit"
);
$
(
"#wgt_display"
).
addClass
(
"pad_color"
).
addClass
(
"pad_edit"
);
$
(
"#wgt_name"
).
addClass
(
"pad_color"
);
...
...
@@ -474,6 +494,7 @@ function changeStyle(val){
$
(
".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_help"
).
addClass
(
"pad_color"
).
addClass
(
"pad_help"
);
$
(
"#wgt_reload"
).
addClass
(
"pad_color"
).
addClass
(
"pad_reload"
);
$
(
"#wgt_edit"
).
addClass
(
"pad_color"
).
addClass
(
"pad_edit"
);
$
(
"#wgt_display"
).
addClass
(
"pad_color"
).
addClass
(
"pad_edit"
);
...
...
This diff is collapsed.
Click to expand it.
resources/library/interactivities/Ordre lettres.wgt/locales/fr/index.html
View file @
9b3760dc
...
...
@@ -22,6 +22,7 @@
<td
class=
"b_top_left"
>
</td>
<td
class=
"b_top_center"
>
<div
id=
"wgt_name"
></div>
<div
id=
"wgt_help"
></div>
<div
id=
"wgt_reload"
></div>
<div
id=
"wgt_display"
class=
"selected"
></div>
<div
id=
"wgt_edit"
></div>
...
...
@@ -37,6 +38,7 @@
<tr>
<td
class=
"b_center_left"
>
</td>
<td>
<div
id=
"help"
></div>
<div
id=
"data"
>
</div>
...
...
This diff is collapsed.
Click to expand it.
resources/library/interactivities/Ordre lettres.wgt/locales/fr/js/script.js
View file @
9b3760dc
...
...
@@ -9,7 +9,9 @@ var sankoreLang = {
reload
:
"Recharger"
,
slate
:
"Bois"
,
pad
:
"Pad"
,
none
:
"Aucun"
none
:
"Aucun"
,
help
:
"Aide"
,
help_content
:
"Ceci est un exemple de contenu de l'aide ..."
};
//main function
...
...
@@ -19,6 +21,8 @@ function start(){
$
(
"#wgt_edit"
).
text
(
sankoreLang
.
edit
);
$
(
"#wgt_name"
).
text
(
sankoreLang
.
wgt_name
);
$
(
"#wgt_reload"
).
text
(
sankoreLang
.
reload
);
$
(
"#wgt_help"
).
text
(
sankoreLang
.
help
);
$
(
"#help"
).
html
(
sankoreLang
.
help_content
);
$
(
".style_select option[value='1']"
).
text
(
sankoreLang
.
slate
);
$
(
".style_select option[value='2']"
).
text
(
sankoreLang
.
pad
);
$
(
".style_select option[value='3']"
).
text
(
sankoreLang
.
none
);
...
...
@@ -46,6 +50,21 @@ function start(){
}
}
$
(
"#wgt_help"
).
click
(
function
(){
var
tmp
=
$
(
this
);
if
(
$
(
this
).
hasClass
(
"open"
)){
$
(
"#help"
).
slideUp
(
"100"
,
function
(){
tmp
.
removeClass
(
"open"
);
$
(
"#data"
).
show
();
});
}
else
{
$
(
"#data"
).
hide
();
$
(
"#help"
).
slideDown
(
"100"
,
function
(){
tmp
.
addClass
(
"open"
);
});
}
});
$
(
"#wgt_reload"
).
click
(
function
(){
if
(
$
(
"#wgt_display"
).
hasClass
(
"selected"
)){
$
(
"#wgt_edit"
).
trigger
(
"click"
);
...
...
@@ -334,16 +353,16 @@ function showExample(){
}
//check result
function
checkResult
(
event
)
{
var
str
=
""
;
var
right_str
=
$
(
event
.
target
).
find
(
"input"
).
val
();
$
(
event
.
target
).
find
(
".img_block"
).
each
(
function
(){
str
+=
$
(
this
).
find
(
"input"
).
val
()
+
"*"
;
});
if
(
str
==
right_str
)
$
(
event
.
target
).
css
(
"background-color"
,
"#9f9"
);
}
//
function checkResult(event)
//
{
//
var str = "";
//
var right_str = $(event.target).find("input").val();
//
$(event.target).find(".img_block").each(function(){
//
str += $(this).find("input").val() + "*";
//
});
//
if(str == right_str)
//
$(event.target).css("background-color","#9f9");
//
}
//add new container
function
addContainer
(){
...
...
@@ -408,8 +427,7 @@ function checkResult(event)
.
addClass
(
"imgs_answers_green"
);
else
$
(
event
.
target
).
removeClass
(
"imgs_answers_gray"
)
.
removeClass
(
"imgs_answers_green"
)
.
addClass
(
"imgs_answers_red"
);
.
removeClass
(
"imgs_answers_green"
);
}
function
stringToXML
(
text
){
...
...
@@ -437,6 +455,7 @@ function changeStyle(val){
$
(
".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_help"
).
removeClass
(
"pad_color"
).
removeClass
(
"pad_help"
);
$
(
"#wgt_edit"
).
removeClass
(
"pad_color"
).
removeClass
(
"pad_edit"
);
$
(
"#wgt_display"
).
removeClass
(
"pad_color"
).
removeClass
(
"pad_edit"
);
$
(
"#wgt_name"
).
removeClass
(
"pad_color"
);
...
...
@@ -453,6 +472,7 @@ function changeStyle(val){
$
(
".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_help"
).
addClass
(
"pad_color"
).
addClass
(
"pad_help"
);
$
(
"#wgt_edit"
).
addClass
(
"pad_color"
).
addClass
(
"pad_edit"
);
$
(
"#wgt_display"
).
addClass
(
"pad_color"
).
addClass
(
"pad_edit"
);
$
(
"#wgt_name"
).
addClass
(
"pad_color"
);
...
...
@@ -468,6 +488,7 @@ function changeStyle(val){
$
(
".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_help"
).
addClass
(
"pad_color"
).
addClass
(
"pad_help"
);
$
(
"#wgt_reload"
).
addClass
(
"pad_color"
).
addClass
(
"pad_reload"
);
$
(
"#wgt_edit"
).
addClass
(
"pad_color"
).
addClass
(
"pad_edit"
);
$
(
"#wgt_display"
).
addClass
(
"pad_color"
).
addClass
(
"pad_edit"
);
...
...
This diff is collapsed.
Click to expand it.
resources/library/interactivities/Ordre lettres.wgt/locales/ru/index.html
View file @
9b3760dc
...
...
@@ -22,6 +22,7 @@
<td
class=
"b_top_left"
>
</td>
<td
class=
"b_top_center"
>
<div
id=
"wgt_name"
></div>
<div
id=
"wgt_help"
></div>
<div
id=
"wgt_reload"
></div>
<div
id=
"wgt_display"
class=
"selected"
></div>
<div
id=
"wgt_edit"
></div>
...
...
@@ -37,6 +38,7 @@
<tr>
<td
class=
"b_center_left"
>
</td>
<td>
<div
id=
"help"
></div>
<div
id=
"data"
>
</div>
...
...
This diff is collapsed.
Click to expand it.
resources/library/interactivities/Ordre lettres.wgt/locales/ru/js/script.js
View file @
9b3760dc
...
...
@@ -9,7 +9,9 @@ var sankoreLang = {
reload
:
"Обновить"
,
slate
:
"Узор"
,
pad
:
"Планшет"
,
none
:
"Нет"
none
:
"Нет"
,
help
:
"Помощь"
,
help_content
:
"Пример текста помощи ..."
};
...
...
@@ -20,6 +22,8 @@ function start(){
$
(
"#wgt_edit"
).
text
(
sankoreLang
.
edit
);
$
(
"#wgt_name"
).
text
(
sankoreLang
.
wgt_name
);
$
(
"#wgt_reload"
).
text
(
sankoreLang
.
reload
);
$
(
"#wgt_help"
).
text
(
sankoreLang
.
help
);
$
(
"#help"
).
html
(
sankoreLang
.
help_content
);
$
(
".style_select option[value='1']"
).
text
(
sankoreLang
.
slate
);
$
(
".style_select option[value='2']"
).
text
(
sankoreLang
.
pad
);
$
(
".style_select option[value='3']"
).
text
(
sankoreLang
.
none
);
...
...
@@ -47,6 +51,21 @@ function start(){
}
}
$
(
"#wgt_help"
).
click
(
function
(){
var
tmp
=
$
(
this
);
if
(
$
(
this
).
hasClass
(
"open"
)){
$
(
"#help"
).
slideUp
(
"100"
,
function
(){
tmp
.
removeClass
(
"open"
);
$
(
"#data"
).
show
();
});
}
else
{
$
(
"#data"
).
hide
();
$
(
"#help"
).
slideDown
(
"100"
,
function
(){
tmp
.
addClass
(
"open"
);
});
}
});
$
(
"#wgt_reload"
).
click
(
function
(){
if
(
$
(
"#wgt_display"
).
hasClass
(
"selected"
)){
$
(
"#wgt_edit"
).
trigger
(
"click"
);
...
...
@@ -335,16 +354,16 @@ function showExample(){
}
//check result
function
checkResult
(
event
)
{
var
str
=
""
;
var
right_str
=
$
(
event
.
target
).
find
(
"input"
).
val
();
$
(
event
.
target
).
find
(
".img_block"
).
each
(
function
(){
str
+=
$
(
this
).
find
(
"input"
).
val
()
+
"*"
;
});
if
(
str
==
right_str
)
$
(
event
.
target
).
css
(
"background-color"
,
"#9f9"
);
}
//
function checkResult(event)
//
{
//
var str = "";
//
var right_str = $(event.target).find("input").val();
//
$(event.target).find(".img_block").each(function(){
//
str += $(this).find("input").val() + "*";
//
});
//
if(str == right_str)
//
$(event.target).css("background-color","#9f9");
//
}
//add new container
function
addContainer
(){
...
...
@@ -409,8 +428,7 @@ function checkResult(event)
.
addClass
(
"imgs_answers_green"
);
else
$
(
event
.
target
).
removeClass
(
"imgs_answers_gray"
)
.
removeClass
(
"imgs_answers_green"
)
.
addClass
(
"imgs_answers_red"
);
.
removeClass
(
"imgs_answers_green"
);
}
function
stringToXML
(
text
){
...
...
@@ -438,6 +456,7 @@ function changeStyle(val){
$
(
".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_help"
).
removeClass
(
"pad_color"
).
removeClass
(
"pad_help"
);
$
(
"#wgt_edit"
).
removeClass
(
"pad_color"
).
removeClass
(
"pad_edit"
);
$
(
"#wgt_display"
).
removeClass
(
"pad_color"
).
removeClass
(
"pad_edit"
);
$
(
"#wgt_name"
).
removeClass
(
"pad_color"
);
...
...
@@ -454,6 +473,7 @@ function changeStyle(val){
$
(
".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_help"
).
addClass
(
"pad_color"
).
addClass
(
"pad_help"
);
$
(
"#wgt_edit"
).
addClass
(
"pad_color"
).
addClass
(
"pad_edit"
);
$
(
"#wgt_display"
).
addClass
(
"pad_color"
).
addClass
(
"pad_edit"
);
$
(
"#wgt_name"
).
addClass
(
"pad_color"
);
...
...
@@ -469,6 +489,7 @@ function changeStyle(val){
$
(
".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_help"
).
addClass
(
"pad_color"
).
addClass
(
"pad_help"
);
$
(
"#wgt_reload"
).
addClass
(
"pad_color"
).
addClass
(
"pad_reload"
);
$
(
"#wgt_edit"
).
addClass
(
"pad_color"
).
addClass
(
"pad_edit"
);
$
(
"#wgt_display"
).
addClass
(
"pad_color"
).
addClass
(
"pad_edit"
);
...
...
This diff is collapsed.
Click to expand it.
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