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
0b86673b
Commit
0b86673b
authored
Sep 28, 2011
by
ivan.ilyin
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of github.com:Sankore/Sankore-3.1
parents
de832d01
93c88230
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
12 additions
and
21 deletions
+12
-21
ubw-main.js
resources/library/interactive/Anyembed.wgt/js/ubw-main.js
+1
-1
index.html
resources/library/interactive/VideoPicker.wgt/index.html
+1
-15
index.html
resources/library/interactive/Wikipedia.wgt/index.html
+5
-3
index.html
resources/library/interactive/Wiktionary.wgt/index.html
+5
-2
No files found.
resources/library/interactive/Anyembed.wgt/js/ubw-main.js
View file @
0b86673b
...
...
@@ -68,7 +68,7 @@ function init(){
if
(
/<object/
.
test
(
embed
)){
loadWindow
.
append
(
embed
);
loadWindow
.
find
(
"embed"
).
attr
(
"wmode"
,
"
transparent
"
);
loadWindow
.
find
(
"embed"
).
attr
(
"wmode"
,
"
opaque
"
);
var
loadWindow_content
=
loadWindow
.
html
();
loadWindow
.
empty
().
html
(
loadWindow_content
);
}
...
...
resources/library/interactive/VideoPicker.wgt/index.html
View file @
0b86673b
...
...
@@ -100,7 +100,7 @@
function
checkcontent
(){
if
(
$
(
"#embeded-content"
).
html
().
length
!=
0
&&
$
(
"#embeded-content"
).
children
(
":first"
).
width
()
>
0
){
$
(
"#embeded-content embed"
).
attr
(
"wmode"
,
"
transparent
"
);
$
(
"#embeded-content embed"
).
attr
(
"wmode"
,
"
opaque
"
);
var
embeded_content_html
=
$
(
"#embeded-content"
).
html
();
$
(
"#embeded-content"
).
empty
().
html
(
embeded_content_html
);
...
...
@@ -119,8 +119,6 @@
})
.
width
(
$
(
"#embeded-content"
).
children
(
":first"
).
width
())
.
height
(
$
(
"#embeded-content"
).
children
(
":first"
).
height
());
//alert(html);
//alert($("#embeded-content").children(":first").width() + " | " + $("#embeded-content").children(":first").height());
$
(
"#container"
).
removeClass
(
"load"
).
addClass
(
"show"
);
$
(
"#show-area"
).
fadeIn
(
2000
).
css
({
left
:
$
(
"#embeded-content"
).
children
(
":first"
).
width
()
-
25
,
...
...
@@ -160,9 +158,6 @@
var
widgetWidth
=
$
(
"#embeded-content"
).
width
()
+
margins
.
right
+
margins
.
left
+
adjustmentX
;
var
widgetHeight
=
$
(
"#embeded-content"
).
position
().
top
+
$
(
"#embeded-content"
).
height
()
+
margins
.
bottom
+
adjustmentY
;
//alert(widgetWidth + " | " + widgetHeight);
//window.resizeTo(widgetWidth, $(window).height());
window
.
resizeTo
(
widgetWidth
,
widgetHeight
);
window
.
sankore
.
resize
(
widgetWidth
,
widgetHeight
);
};
...
...
@@ -171,15 +166,6 @@
return
(
parseInt
(
cssvalue
.
replace
(
"px"
,
""
)));
};
/*if (window.widget) {
window.widget.onremove = function(){
//$("#show-inputfield-button").trigger("click");
$("#embeded-content")
.empty()
.oembed($("#textbox").val());
}
}*/
initialize
();
});
</script>
...
...
resources/library/interactive/Wikipedia.wgt/index.html
View file @
0b86673b
...
...
@@ -167,9 +167,11 @@
$
(
"#web-browser"
).
height
(
$
(
window
).
height
()
-
$
(
"#toolbar"
).
height
()
-
2
);
$
(
"#web-browser"
).
width
(
$
(
window
).
width
()
-
2
);
if
(
$
(
window
).
width
()
<
280
){
window
.
resizeTo
(
280
,
$
(
window
).
height
());
}
if
(
$
(
window
).
width
()
<
370
)
window
.
resizeTo
(
370
,
$
(
window
).
height
());
if
(
$
(
window
).
height
()
<
150
)
window
.
resizeTo
(
$
(
window
).
width
(),
150
);
});
...
...
resources/library/interactive/Wiktionary.wgt/index.html
View file @
0b86673b
...
...
@@ -166,14 +166,17 @@
$
(
window
).
resize
(
function
(){
if
(
$
(
window
).
width
()
<
3
0
0
){
window
.
resizeTo
(
3
0
0
,
$
(
window
).
height
());
if
(
$
(
window
).
width
()
<
3
7
0
){
window
.
resizeTo
(
3
7
0
,
$
(
window
).
height
());
}
else
if
(
$
(
window
).
width
()
>
755
){
$
(
"#web-browser"
).
height
(
$
(
window
).
height
()
-
$
(
"#toolbar"
).
height
()
-
2
);
$
(
"#web-browser"
).
width
(
$
(
window
).
width
()
-
2
);
}
else
$
(
"#web-browser"
).
height
(
$
(
window
).
height
()
-
$
(
"#toolbar"
).
height
()
-
2
);
if
(
$
(
window
).
height
()
<
150
)
window
.
resizeTo
(
$
(
window
).
width
(),
150
);
});
function
wikiReq
(
kword
){
...
...
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