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
126859cd
Commit
126859cd
authored
Jul 25, 2012
by
unknown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
help for 'separe phrase' widget
parent
5b3e3814
Changes
11
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
131 additions
and
84 deletions
+131
-84
slate-help-white.png
...nteractivities/Separe phrase.wgt/img/slate-help-white.png
+0
-0
slate-help.png
...rary/interactivities/Separe phrase.wgt/img/slate-help.png
+0
-0
index.html
...rces/library/interactivities/Separe phrase.wgt/index.html
+5
-4
index.html
...y/interactivities/Separe phrase.wgt/locales/fr/index.html
+5
-3
wcontainer.js
...vities/Separe phrase.wgt/locales/fr/scripts/wcontainer.js
+3
-1
index.html
...y/interactivities/Separe phrase.wgt/locales/ru/index.html
+5
-3
wcontainer.js
...vities/Separe phrase.wgt/locales/ru/scripts/wcontainer.js
+3
-1
app.js
.../library/interactivities/Separe phrase.wgt/scripts/app.js
+74
-52
wcontainer.js
...y/interactivities/Separe phrase.wgt/scripts/wcontainer.js
+3
-1
app.css
.../library/interactivities/Separe phrase.wgt/styles/app.css
+25
-11
master.css
...brary/interactivities/Separe phrase.wgt/styles/master.css
+8
-8
No files found.
resources/library/interactivities/Separe phrase.wgt/img/slate-help-white.png
0 → 100644
View file @
126859cd
553 Bytes
resources/library/interactivities/Separe phrase.wgt/img/slate-help.png
0 → 100644
View file @
126859cd
1.75 KB
resources/library/interactivities/Separe phrase.wgt/index.html
View file @
126859cd
...
...
@@ -27,7 +27,6 @@
lang
=
sankore
.
locale
().
substr
(
0
,
2
);
}
else
lang
=
"en"
;
lang
=
"fr"
;
if
(
lang
!=
"en"
){
returnStatus
(
lang
);
}
...
...
@@ -55,6 +54,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>
...
...
@@ -66,17 +66,18 @@
</td>
<td
class=
"b_top_right"
>
</td>
</tr>
<tr>
<td
class=
"b_center_left"
>
</td>
<td>
<div
id=
"help"
></div>
<div
id=
"ub-widget"
>
</div>
</td>
<td
class=
"b_center_right"
>
</td>
</tr>
<tr
style=
"height: 54px;"
>
<td
class=
"b_bottom_left"
>
</td>
<td
class=
"b_bottom_center"
>
</td>
...
...
resources/library/interactivities/Separe phrase.wgt/locales/fr/index.html
View file @
126859cd
...
...
@@ -32,6 +32,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>
...
...
@@ -43,17 +44,18 @@
</td>
<td
class=
"b_top_right"
>
</td>
</tr>
<tr>
<td
class=
"b_center_left"
>
</td>
<td>
<div
id=
"help"
></div>
<div
id=
"ub-widget"
>
</div>
</td>
<td
class=
"b_center_right"
>
</td>
</tr>
<tr
style=
"height: 54px;"
>
<td
class=
"b_bottom_left"
>
</td>
<td
class=
"b_bottom_center"
>
</td>
...
...
resources/library/interactivities/Separe phrase.wgt/locales/fr/scripts/wcontainer.js
View file @
126859cd
...
...
@@ -6,7 +6,9 @@ var sankoreLang = {
reload
:
"Recharger"
,
slate
:
"ardoise"
,
pad
:
"tablette"
,
none
:
"aucun"
none
:
"aucun"
,
help
:
"aide"
,
help_content
:
"Ceci est un exemple de contenu de l'aide ..."
};
// if use the "view/edit" button or rely on the api instead
...
...
resources/library/interactivities/Separe phrase.wgt/locales/ru/index.html
View file @
126859cd
...
...
@@ -33,6 +33,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>
...
...
@@ -44,17 +45,18 @@
</td>
<td
class=
"b_top_right"
>
</td>
</tr>
<tr>
<td
class=
"b_center_left"
>
</td>
<td>
<div
id=
"help"
></div>
<div
id=
"ub-widget"
>
</div>
</td>
<td
class=
"b_center_right"
>
</td>
</tr>
<tr
style=
"height: 54px;"
>
<td
class=
"b_bottom_left"
>
</td>
<td
class=
"b_bottom_center"
>
</td>
...
...
resources/library/interactivities/Separe phrase.wgt/locales/ru/scripts/wcontainer.js
View file @
126859cd
...
...
@@ -6,7 +6,9 @@ var sankoreLang = {
reload
:
"Обновить"
,
slate
:
"Узор"
,
pad
:
"Планшет"
,
none
:
"Нет"
none
:
"Нет"
,
help
:
"Помощь"
,
help_content
:
"Пример текста помощи ..."
};
// if use the "view/edit" button or rely on the api instead
...
...
resources/library/interactivities/Separe phrase.wgt/scripts/app.js
View file @
126859cd
...
...
@@ -45,7 +45,7 @@ $(document).ready(function()
}
}
if
(
sankore
.
preference
(
"spl_phrase_style"
,
""
)){
if
(
window
.
sankore
&&
sankore
.
preference
(
"spl_phrase_style"
,
""
)){
changeStyle
(
sankore
.
preference
(
"spl_phrase_style"
,
""
));
$
(
".style_select"
).
val
(
sankore
.
preference
(
"spl_phrase_style"
,
""
));
}
else
...
...
@@ -53,6 +53,9 @@ $(document).ready(function()
$
(
"#wgt_display"
).
text
(
sankoreLang
.
view
);
$
(
"#wgt_edit"
).
text
(
sankoreLang
.
edit
);
$
(
"#wgt_help"
).
text
(
sankoreLang
.
help
);
$
(
"#help"
).
html
(
sankoreLang
.
help_content
);
$
(
"#wgt_display, #wgt_edit"
).
click
(
function
(
event
){
if
(
this
.
id
==
"wgt_display"
){
if
(
!
$
(
this
).
hasClass
(
"selected"
)){
...
...
@@ -74,8 +77,24 @@ $(document).ready(function()
}
}
});
$
(
"#wgt_name"
).
text
(
sankoreLang
.
wgt_name
);
$
(
"#wgt_help"
).
click
(
function
(){
var
tmp
=
$
(
this
);
if
(
$
(
this
).
hasClass
(
"open"
)){
$
(
"#help"
).
slideUp
(
"100"
,
function
(){
tmp
.
removeClass
(
"open"
);
$
(
"#ub-widget"
).
show
();
});
}
else
{
$
(
"#ub-widget"
).
hide
();
$
(
"#help"
).
slideDown
(
"100"
,
function
(){
tmp
.
addClass
(
"open"
);
});
}
});
$
(
"#wgt_reload"
).
text
(
sankoreLang
.
reload
).
click
(
function
(){
if
(
$
(
"#wgt_display"
).
hasClass
(
"selected"
)){
$
(
"#wgt_edit"
).
trigger
(
"click"
);
...
...
@@ -118,7 +137,7 @@ $(document).ready(function()
phrase
=
phrase
.
replace
(
/ /g
,
''
);
// create the html
if
(
sankore
.
preference
(
"ordSplPhrasesState"
,
""
)
==
"1"
&&
flag
){
if
(
window
.
sankore
&&
sankore
.
preference
(
"ordSplPhrasesState"
,
""
)
==
"1"
&&
flag
){
$
(
"#mp_view"
).
html
(
sankore
.
preference
(
"ordSplPhrasesCode"
,
""
));
if
(
sankore
.
preference
(
"ordSplPhrasesAnswer"
,
""
))
$
(
"#mp_view"
).
addClass
(
sankore
.
preference
(
"ordSplPhrasesAnswer"
,
""
));
...
...
@@ -244,56 +263,59 @@ $(document).ready(function()
//changing the style
function
changeStyle
(
val
){
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
;
}
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_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"
);
$
(
".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_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"
);
$
(
".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_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"
);
$
(
"#wgt_name"
).
addClass
(
"pad_color"
);
$
(
".style_select"
).
addClass
(
"none_select"
).
val
(
val
);
$
(
"body, html"
).
addClass
(
"without_radius"
);
break
;
}
}
});
\ No newline at end of file
resources/library/interactivities/Separe phrase.wgt/scripts/wcontainer.js
View file @
126859cd
...
...
@@ -6,7 +6,9 @@ var sankoreLang = {
reload
:
"Reload"
,
slate
:
"Wood"
,
pad
:
"Pad"
,
none
:
"None"
none
:
"None"
,
help
:
"Help"
,
help_content
:
"This is an example of help content ..."
};
// if use the "view/edit" button or rely on the api instead
...
...
resources/library/interactivities/Separe phrase.wgt/styles/app.css
View file @
126859cd
...
...
@@ -32,12 +32,6 @@
display
:
inline-block
;
}
#mp_edit
textarea
{
resize
:
none
;
height
:
60px
;
}
/*new design*/
.selected
{
...
...
@@ -112,7 +106,6 @@
#wgt_name
{
height
:
44px
;
width
:
300px
;
margin
:
10px
10px
0
10px
;
padding
:
0
;
float
:
left
;
...
...
@@ -121,9 +114,8 @@
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
;
...
...
@@ -133,7 +125,6 @@
}
#wgt_display
{
width
:
100px
;
padding-left
:
40px
;
background-image
:
url(../img/slate-edit.png)
;
background-repeat
:
no-repeat
;
...
...
@@ -142,7 +133,6 @@
}
#wgt_edit
{
width
:
100px
;
padding-left
:
40px
;
background-image
:
url(../img/slate-edit.png)
;
background-repeat
:
no-repeat
;
...
...
@@ -234,4 +224,28 @@
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
resources/library/interactivities/Separe phrase.wgt/styles/master.css
View file @
126859cd
...
...
@@ -4,6 +4,7 @@ html, body{
margin
:
0
;
padding
:
0
;
border-radius
:
50px
;
overflow
:
hidden
;
}
body
{
...
...
@@ -37,15 +38,14 @@ button{
width
:
80px
;
}
input
.percent
,
textarea
.percent
{
width
:
100%
;
margin
:
0px
;
padding
:
0px
;
border-width
:
0px
;
textarea
{
font
:
32px
tahoma
;
letter-spacing
:
0.1em
;
width
:
98%
;
min-height
:
160px
;
resize
:
vertical
;
}
.inputwrap
{
border-style
:
solid
;
border-width
:
1px
;
border-color
:
#dbdfe6
;
border-top-color
:
#abadb3
;
}
\ 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