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
a527e338
Commit
a527e338
authored
Aug 05, 2011
by
unknown
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
nice
parent
d5021c74
Changes
12
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
220 additions
and
73 deletions
+220
-73
index.html
resources/library/interactive/Anyembed.wgt/index.html
+0
-6
ubw-main.js
resources/library/interactive/Anyembed.wgt/js/ubw-main.js
+25
-8
calculate.js
resources/library/interactive/Calculator.wgt/js/calculate.js
+15
-0
ubw-main.js
resources/library/interactive/Calculator.wgt/js/ubw-main.js
+15
-0
index.html
resources/library/interactive/GoogleMap.wgt/index.html
+25
-10
index.html
resources/library/interactive/Html.wgt/index.html
+14
-2
ubw-main.js
resources/library/interactive/Notes.wgt/js/ubw-main.js
+17
-2
index.html
resources/library/interactive/Stopwatch.wgt/index.html
+0
-1
ubw-main.js
resources/library/interactive/Stopwatch.wgt/js/ubw-main.js
+57
-8
index.html
resources/library/interactive/WebBrowser.wgt/index.html
+4
-4
config.xml
resources/library/interactive/barre_prof.wgt/config.xml
+5
-5
index.html
resources/library/interactive/barre_prof.wgt/index.html
+43
-27
No files found.
resources/library/interactive/Anyembed.wgt/index.html
View file @
a527e338
...
...
@@ -6,13 +6,8 @@
<title>
ubwidget
</title>
<script
src=
"js/jquery-1.3.2.min.js"
type=
"text/javascript"
></script>
<script
src=
"js/jquery-ui-1.7.2.custom.min.js"
type=
"text/javascript"
></script>
<script
src=
"js/jquery.disable.text.select.js"
type=
"text/javascript"
></script>
<script
src=
"js/jquery.ubwidget.js"
type=
"text/javascript"
></script>
<script
src=
"js/jquery.center.js"
type=
"text/javascript"
></script>
<script
src=
"js/DD_roundies_0.0.2a.js"
type=
"text/javascript"
></script>
<script
src=
"js/ubw-main.js"
type=
"text/javascript"
></script>
<script
src=
"js/calculate.js"
type=
"text/javascript"
></script>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"css/ubwidget.css"
/>
...
...
@@ -27,7 +22,6 @@
</script>
<audio
id=
'audio'
></audio>
<div
id=
"ubwidget"
></div>
</body>
</html>
\ No newline at end of file
resources/library/interactive/Anyembed.wgt/js/ubw-main.js
View file @
a527e338
/*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
function
init
(){
var
embed
;
...
...
@@ -50,15 +64,18 @@ function init(){
submit
.
click
(
function
(){
$
(
"#ubwidget"
).
append
(
loadWindow
)
embed
=
inputBox
.
val
();
////////////!!!1/////////
searchWrap
.
hide
();
loadWindow
.
append
(
embed
);
//alert($("#ubwidget").html());
$
(
"#ubwidget embed"
).
attr
(
"wmode"
,
"transparent"
);
var
ubwidget_html
=
$
(
"#ubwidget"
).
html
();
alert
(
ubwidget_html
);
setTimeOut
(
alert
);
$
(
"#ubwidget"
).
empty
().
html
(
ubwidget_html
);
if
(
/<object/
.
test
(
embed
)){
loadWindow
.
append
(
embed
);
loadWindow
.
find
(
"embed"
).
attr
(
"wmode"
,
"transparent"
);
var
loadWindow_content
=
loadWindow
.
html
();
loadWindow
.
empty
().
html
(
loadWindow_content
);
}
else
{
loadWindow
.
append
(
embed
);
}
if
(
window
.
sankore
){
window
.
sankore
.
resize
(
$
(
document
).
width
(),
$
(
document
).
height
());
window
.
sankore
.
setPreference
(
"embed"
,
escape
(
embed
));
...
...
resources/library/interactive/Calculator.wgt/js/calculate.js
View file @
a527e338
/*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
function
addChar
(
input
,
character
)
{
if
(
input
.
value
==
null
||
input
.
value
==
"0"
)
input
.
value
=
character
...
...
resources/library/interactive/Calculator.wgt/js/ubw-main.js
View file @
a527e338
/*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
function
init
(){
var
h
=
292
;
var
w
=
160
;
...
...
resources/library/interactive/GoogleMap.wgt/index.html
View file @
a527e338
...
...
@@ -15,6 +15,21 @@
<script
type=
"text/javascript"
>
/*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
google
.
load
(
"maps"
,
"2"
);
google
.
load
(
"elements"
,
"1"
,
{
packages
:
[
"localsearch"
]
...
...
@@ -30,12 +45,12 @@
var
zoom
=
2
;
var
latlng
=
new
google
.
maps
.
LatLng
(
lat
,
lng
);
if
(
window
.
uniboard
)
if
(
window
.
sankore
)
{
lat
=
parseFloat
(
window
.
uniboard
.
preference
(
'latitude'
,
lat
));
lng
=
parseFloat
(
window
.
uniboard
.
preference
(
'longitude'
,
lng
));
zoom
=
parseFloat
(
window
.
uniboard
.
preference
(
'zoom'
,
zoom
));
mapType
=
window
.
uniboard
.
preference
(
'mapType'
,
mapType
);
lat
=
parseFloat
(
window
.
sankore
.
preference
(
'latitude'
,
lat
));
lng
=
parseFloat
(
window
.
sankore
.
preference
(
'longitude'
,
lng
));
zoom
=
parseFloat
(
window
.
sankore
.
preference
(
'zoom'
,
zoom
));
mapType
=
window
.
sankore
.
preference
(
'mapType'
,
mapType
);
latlng
=
new
google
.
maps
.
LatLng
(
lat
,
lng
);
};
...
...
@@ -54,17 +69,17 @@
new
GControlPosition
(
G_ANCHOR_BOTTOM_RIGHT
,
new
GSize
(
5
,
30
)));
// Add persistence
if
(
window
.
uniboard
)
if
(
window
.
sankore
)
{
GEvent
.
addListener
(
map
,
'zoomend'
,
function
()
{
window
.
uniboard
.
setPreference
(
'zoom'
,
map
.
getZoom
());
window
.
sankore
.
setPreference
(
'zoom'
,
map
.
getZoom
());
});
GEvent
.
addListener
(
map
,
'moveend'
,
function
()
{
window
.
uniboard
.
setPreference
(
'latitude'
,
map
.
getCenter
().
lat
());
window
.
uniboard
.
setPreference
(
'longitude'
,
map
.
getCenter
().
lng
());
window
.
sankore
.
setPreference
(
'latitude'
,
map
.
getCenter
().
lat
());
window
.
sankore
.
setPreference
(
'longitude'
,
map
.
getCenter
().
lng
());
});
GEvent
.
addListener
(
map
,
'maptypechanged'
,
function
()
...
...
@@ -77,7 +92,7 @@
break
;
}
}
window
.
uniboard
.
setPreference
(
'mapType'
,
newMapType
);
window
.
sankore
.
setPreference
(
'mapType'
,
newMapType
);
});
};
}
...
...
resources/library/interactive/Html.wgt/index.html
View file @
a527e338
...
...
@@ -26,11 +26,23 @@
.
height
((
$
(
window
).
height
())
-
(
40
));
$
(
'iframe'
).
width
(
$
(
window
).
width
()
-
24
)
.
height
(
$
(
window
).
height
()
-
46
);
if
(
window
.
uniboard
){
var
html
=
window
.
uniboard
.
preference
(
"h
tml"
,
"Welcome to HTML EDITOR"
);
if
(
window
.
sankore
){
var
html
=
window
.
sankore
.
preference
(
"iH
tml"
,
"Welcome to HTML EDITOR"
);
$
(
"#markItUp"
).
val
(
html
);
};
$
(
"#markItUp"
).
keyup
(
function
(){
if
(
window
.
sankore
){
window
.
sankore
.
setPreference
(
"iHtml"
,
$
(
"#markItUp"
).
val
());
}
});
$
(
"li"
).
mouseout
(
function
(){
if
(
window
.
sankore
){
window
.
sankore
.
setPreference
(
"iHtml"
,
$
(
"#markItUp"
).
val
());
}
});
$
(
"#reset-btn"
).
click
(
function
(){
$
(
this
).
data
(
"hidden"
,
true
).
hide
();
$
(
'textarea'
).
show
();
...
...
resources/library/interactive/Notes.wgt/js/ubw-main.js
View file @
a527e338
/*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
function
init
(){
var
ubwidget
=
$
(
"#ubwidget"
).
ubwidget
({
...
...
@@ -126,7 +141,7 @@ function init(){
.
attr
(
'contentEditable'
,
'true'
)
.
keyup
(
function
(){
if
(
window
.
sankore
){
window
.
sankore
.
setPreference
(
"
t
ext"
,
textField
.
html
());
window
.
sankore
.
setPreference
(
"
noteT
ext"
,
textField
.
html
());
}
controlTextField
();
//$('#headtitle').hide();
...
...
@@ -164,7 +179,7 @@ function init(){
$
(
'#headtitle'
).
hide
();
if
(
window
.
sankore
){
text
=
window
.
sankore
.
preference
(
'
t
ext'
,
text
);
text
=
window
.
sankore
.
preference
(
'
noteT
ext'
,
text
);
currentFontSize
=
window
.
sankore
.
preference
(
'fontSize'
,
defaultFontSize
);
$
(
'.ubw-container'
).
css
({
width
:
window
.
innerWidth
-
2
,
...
...
resources/library/interactive/Stopwatch.wgt/index.html
View file @
a527e338
...
...
@@ -12,7 +12,6 @@
<script
src=
"js/jquery.center.js"
type=
"text/javascript"
></script>
<script
src=
"js/DD_roundies_0.0.2a.js"
type=
"text/javascript"
></script>
<script
src=
"js/ubw-main.js"
type=
"text/javascript"
></script>
<script
src=
"js/calculate.js"
type=
"text/javascript"
></script>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"css/ubwidget.css"
/>
...
...
resources/library/interactive/Stopwatch.wgt/js/ubw-main.js
View file @
a527e338
/*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
function
init
(){
var
tempHours
;
var
tempMinutes
;
var
tempSeconds
;
if
(
window
.
sankore
){
tempHours
=
window
.
sankore
.
preference
(
"hours"
,
"00"
);
tempMinutes
=
window
.
sankore
.
preference
(
"minutes"
,
"00"
);
tempSeconds
=
window
.
sankore
.
preference
(
"seconds"
,
"00"
);
}
else
{
tempHours
=
"00"
;
tempMinutes
=
"00"
;
tempSeconds
=
"00"
;
}
var
ubwidget
=
$
(
"#ubwidget"
).
ubwidget
({
width
:
252
,
height
:
89
...
...
@@ -32,8 +60,8 @@ function init(){
borderRight
:
"none"
});
spacec
.
find
(
".ubw-button-canvas"
).
unbind
(
"mouseenter"
);
var
hours
=
$
(
"<div class='scroll' id='hours'>
00
</div>"
).
ubwbutton
({
var
hours
=
$
(
"<div class='scroll' id='hours'>
"
+
tempHours
+
"
</div>"
).
ubwbutton
({
w
:
52
,
h
:
68
},
{
...
...
@@ -45,7 +73,7 @@ function init(){
hours
.
find
(
".ubw-button-body"
).
css
({
borderRight
:
"none"
});
var
minutes
=
$
(
"<div class='scroll' id='minutes'>
00
</div>"
).
ubwbutton
({
var
minutes
=
$
(
"<div class='scroll' id='minutes'>
"
+
tempMinutes
+
"
</div>"
).
ubwbutton
({
w
:
52
,
h
:
68
},
{
...
...
@@ -58,7 +86,7 @@ function init(){
borderLeft
:
"none"
,
borderRight
:
"none"
});
var
seconds
=
$
(
"<div class='scroll' id='seconds'>
00
</div>"
).
ubwbutton
({
var
seconds
=
$
(
"<div class='scroll' id='seconds'>
"
+
tempSeconds
+
"
</div>"
).
ubwbutton
({
w
:
52
,
h
:
68
},
{
...
...
@@ -67,6 +95,7 @@ function init(){
right
:
0
,
left
:
0
});
seconds
.
find
(
".ubw-button-body"
).
css
({
borderLeft
:
"none"
,
borderRight
:
"none"
...
...
@@ -239,12 +268,26 @@ function init(){
}
function
timeButtonDownHandler
(
m
){
var
button
=
m
.
data
.
button
;
var
mouseStart
=
{
var
button
=
m
.
data
.
button
;
var
content
=
button
.
find
(
".ubw-button-content"
);
if
(
window
.
sankore
){
var
temp
=
button
.
attr
(
"id"
);
switch
(
temp
){
case
"seconds"
:
window
.
sankore
.
setPreference
(
"seconds"
,
content
.
text
());
break
;
case
"minutes"
:
window
.
sankore
.
setPreference
(
"minutes"
,
content
.
text
());
break
;
case
"hours"
:
window
.
sankore
.
setPreference
(
"hours"
,
content
.
text
());
break
;
}
}
/*var mouseStart = {
pageX:m.pageX,
pageY:m.pageY
};
var
content
=
button
.
find
(
".ubw-button-content"
);
};*/
var
val
=
content
.
text
();
isScrolling
=
true
;
reverse
=
true
;
...
...
@@ -332,6 +375,12 @@ function init(){
minutesValue
.
text
(
formatTime
(
currentMinute
));
secondsValue
.
text
(
formatTime
(
currentSecond
));
if
(
window
.
sankore
){
window
.
sankore
.
setPreference
(
"hours"
,
hoursValue
.
text
());
window
.
sankore
.
setPreference
(
"minutes"
,
minutesValue
.
text
());
window
.
sankore
.
setPreference
(
"seconds"
,
secondsValue
.
text
());
}
}
function
formatTime
(
time
){
...
...
resources/library/interactive/WebBrowser.wgt/index.html
View file @
a527e338
...
...
@@ -33,11 +33,11 @@
//resizerIndex = 0;
/*
if(window.sankore){
if
(
window
.
sankore
){
url
=
window
.
sankore
.
preference
(
"url"
,
""
);
}
else
{
url
=
""
;
};
*/
};
language
=
navigator
.
userAgent
.
split
(
";"
);
language
=
language
[
3
].
replace
(
/
\s
/g
,
""
).
substr
(
0
,
2
);
...
...
@@ -157,9 +157,9 @@
//clearTimeout(resizer);
//resizerIndex = 0;
/*
if(window.sankore){
if
(
window
.
sankore
){
window
.
sankore
.
setPreference
(
"url"
,
$
(
"#textbox"
).
val
());
};
*/
};
$
(
"#embeded-content"
).
hide
();
$
(
"#container"
).
removeClass
(
"load"
).
addClass
(
"show"
);
...
...
resources/library/interactive/barre_prof.wgt/config.xml
View file @
a527e338
...
...
@@ -4,13 +4,13 @@
xmlns:ub=
"http://uniboard.mnemis.com/widgets"
id=
"http://www.example.net/widgets/helloworld"
version=
"1.0"
width=
"
20
0"
height=
"
70
0"
width=
"
66
0"
height=
"
41
0"
ub:resizable=
"true"
>
<name>
Rich
Note
</name>
<description>
Allows the teacher to attach a
rich note
to the page.
</description>
<name>
Rich
Text Editor
</name>
<description>
Allows the teacher to attach a
text editor
to the page.
</description>
<preference
name=
"skin"
value=
"
uniboard
"
/>
value=
"
sankore
"
/>
<content
src=
"index.html"
/>
</widget>
resources/library/interactive/barre_prof.wgt/index.html
View file @
a527e338
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!--
Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved.
For licensing, see LICENSE.html or http://ckeditor.com/license
-->
<html
xmlns=
"http://www.w3.org/1999/xhtml"
>
<head>
<meta
http-equiv=
"Content-Type"
content=
"text/html; charset=utf-8"
>
<title>
Template
</title>
<!--Styles-->
<link
rel=
"stylesheet"
type=
"text/css"
href=
"styles/master.css"
>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"styles/wcontainer.css"
>
<link
rel=
"stylesheet"
type=
"text/css"
href=
"styles/app.css"
>
<!--Scripts-->
<script
type=
"text/javascript"
src=
"scripts/jquery144.js"
></script>
<script
type=
"text/javascript"
src=
"scripts/ext.js"
></script>
<script
type=
"text/javascript"
src=
"scripts/wcontainer.js"
></script>
<!-- <script type="text/javascript" src="scripts/tpl.js"></script> -->
<script
type=
"text/javascript"
src=
"scripts/app.js"
></script>
<!-- Load TinyMCE -->
<script
type=
"text/javascript"
src=
"tinymcejq/jquery.tinymce.js"
></script>
<!-- /TinyMCE -->
<title>
Very nice text editor!!11
</title>
<meta
content=
"text/html; charset=utf-8"
http-equiv=
"content-type"
/>
<script
type=
"text/javascript"
src=
"scripts/ckeditor.js"
></script>
<link
href=
"styles/sample.css"
rel=
"stylesheet"
type=
"text/css"
/>
<script>
window
.
onload
=
function
()
{
CKEDITOR
.
replace
(
'fineEditor'
,
{
language
:
'en'
,
toolbar
:
[
{
name
:
'document'
,
items
:
[
'Source'
,
'-'
,
'Save'
,
'NewPage'
,
'Preview'
]
},
{
name
:
'clipboard'
,
items
:
[
'Cut'
,
'Copy'
,
'Paste'
,
'PasteText'
,
'PasteFromWord'
,
'-'
,
'Undo'
,
'Redo'
]
},
{
name
:
'editing'
,
items
:
[
'Find'
,
'Replace'
,
'-'
,
'SelectAll'
]
},
,
'/'
,
{
name
:
'basicstyles'
,
items
:
[
'Bold'
,
'Italic'
,
'Underline'
,
'Strike'
,
'Subscript'
,
'Superscript'
,
'-'
,
'RemoveFormat'
]
},
{
name
:
'paragraph'
,
items
:
[
'NumberedList'
,
'BulletedList'
,
'-'
,
'Outdent'
,
'Indent'
,
'-'
,
'Blockquote'
,
'-'
,
'JustifyLeft'
,
'JustifyCenter'
,
'JustifyRight'
,
'JustifyBlock'
,
'-'
,
'BidiLtr'
,
'BidiRtl'
]
},
{
name
:
'links'
,
items
:
[
'Link'
,
'Unlink'
,
'Anchor'
]
},
{
name
:
'insert'
,
items
:
[
'Image'
,
'HorizontalRule'
,
'SpecialChar'
,
'PageBreak'
,
'Iframe'
]
},
'/'
,
{
name
:
'styles'
,
items
:
[
'Styles'
,
'Format'
,
'Font'
,
'FontSize'
]
},
{
name
:
'colors'
,
items
:
[
'TextColor'
,
'BGColor'
]
},
{
name
:
'tools'
,
items
:
[
'ShowBlocks'
,
'About'
]
}
]
});
/*window.onresize(function(){
globalWidth = $(window).width();
globalHeight = $(window).height();
$("#web-content")
.attr("width", globalWidth - 25)
.attr("height", globalHeight - 90);
});*/
}
</script>
</head>
<body>
<
div
id=
"ub-widget"
></div
>
<
textarea
cols=
"80"
id=
"fineEditor"
name=
"fineEditor"
rows=
"10"
>
<
p
>
This is some
<
strong
>
sample text
<
/strong
>
.
</textarea
>
</body>
</html>
\ No newline at end of file
</html>
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