preferencesAboutTextFull
unknown 14 years ago
parent d5021c7495
commit a527e33829
  1. 6
      resources/library/interactive/Anyembed.wgt/index.html
  2. 33
      resources/library/interactive/Anyembed.wgt/js/ubw-main.js
  3. 15
      resources/library/interactive/Calculator.wgt/js/calculate.js
  4. 15
      resources/library/interactive/Calculator.wgt/js/ubw-main.js
  5. 35
      resources/library/interactive/GoogleMap.wgt/index.html
  6. 16
      resources/library/interactive/Html.wgt/index.html
  7. 19
      resources/library/interactive/Notes.wgt/js/ubw-main.js
  8. 1
      resources/library/interactive/Stopwatch.wgt/index.html
  9. 65
      resources/library/interactive/Stopwatch.wgt/js/ubw-main.js
  10. 8
      resources/library/interactive/WebBrowser.wgt/index.html
  11. 10
      resources/library/interactive/barre_prof.wgt/config.xml
  12. 70
      resources/library/interactive/barre_prof.wgt/index.html

@ -6,13 +6,8 @@
<title>ubwidget</title> <title>ubwidget</title>
<script src="js/jquery-1.3.2.min.js" type="text/javascript"></script> <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.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/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" /> <link rel="stylesheet" type="text/css" href="css/ubwidget.css" />
@ -27,7 +22,6 @@
</script> </script>
<audio id='audio'></audio> <audio id='audio'></audio>
<div id="ubwidget"></div> <div id="ubwidget"></div>
</body> </body>
</html> </html>

@ -1,3 +1,17 @@
/*
* 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(){ function init(){
var embed; var embed;
@ -50,15 +64,18 @@ function init(){
submit.click(function(){ submit.click(function(){
$("#ubwidget").append(loadWindow) $("#ubwidget").append(loadWindow)
embed = inputBox.val(); embed = inputBox.val();
////////////!!!1///////// ïîïðîáîâàòü ñ ðåàäè
searchWrap.hide(); searchWrap.hide();
loadWindow.append(embed);
//alert($("#ubwidget").html()); if(/<object/.test(embed)){
$("#ubwidget embed").attr("wmode", "transparent"); loadWindow.append(embed);
var ubwidget_html = $("#ubwidget").html(); loadWindow.find("embed").attr("wmode","transparent");
alert(ubwidget_html); var loadWindow_content = loadWindow.html();
setTimeOut(alert); loadWindow.empty().html(loadWindow_content);
$("#ubwidget").empty().html(ubwidget_html); }
else {
loadWindow.append(embed);
}
if(window.sankore){ if(window.sankore){
window.sankore.resize($(document).width(),$(document).height()); window.sankore.resize($(document).width(),$(document).height());
window.sankore.setPreference("embed", escape(embed)); window.sankore.setPreference("embed", escape(embed));

@ -1,3 +1,18 @@
/*
* 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) { function addChar(input, character) {
if(input.value == null || input.value == "0") if(input.value == null || input.value == "0")
input.value = character input.value = character

@ -1,3 +1,18 @@
/*
* 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(){ function init(){
var h = 292; var h = 292;
var w = 160; var w = 160;

@ -15,6 +15,21 @@
<script type="text/javascript"> <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("maps", "2");
google.load("elements", "1", { google.load("elements", "1", {
packages : ["localsearch"] packages : ["localsearch"]
@ -30,12 +45,12 @@
var zoom = 2; var zoom = 2;
var latlng = new google.maps.LatLng(lat, lng); var latlng = new google.maps.LatLng(lat, lng);
if (window.uniboard) if (window.sankore)
{ {
lat = parseFloat(window.uniboard.preference('latitude', lat)); lat = parseFloat(window.sankore.preference('latitude', lat));
lng = parseFloat(window.uniboard.preference('longitude', lng)); lng = parseFloat(window.sankore.preference('longitude', lng));
zoom = parseFloat(window.uniboard.preference('zoom', zoom)); zoom = parseFloat(window.sankore.preference('zoom', zoom));
mapType = window.uniboard.preference('mapType', mapType); mapType = window.sankore.preference('mapType', mapType);
latlng = new google.maps.LatLng(lat, lng); latlng = new google.maps.LatLng(lat, lng);
}; };
@ -54,17 +69,17 @@
new GControlPosition(G_ANCHOR_BOTTOM_RIGHT, new GSize(5,30))); new GControlPosition(G_ANCHOR_BOTTOM_RIGHT, new GSize(5,30)));
// Add persistence // Add persistence
if (window.uniboard) if (window.sankore)
{ {
GEvent.addListener(map,'zoomend',function() GEvent.addListener(map,'zoomend',function()
{ {
window.uniboard.setPreference('zoom', map.getZoom()); window.sankore.setPreference('zoom', map.getZoom());
}); });
GEvent.addListener(map,'moveend',function() GEvent.addListener(map,'moveend',function()
{ {
window.uniboard.setPreference('latitude', map.getCenter().lat()); window.sankore.setPreference('latitude', map.getCenter().lat());
window.uniboard.setPreference('longitude', map.getCenter().lng()); window.sankore.setPreference('longitude', map.getCenter().lng());
}); });
GEvent.addListener(map,'maptypechanged',function() GEvent.addListener(map,'maptypechanged',function()
@ -77,7 +92,7 @@
break; break;
} }
} }
window.uniboard.setPreference('mapType', newMapType); window.sankore.setPreference('mapType', newMapType);
}); });
}; };
} }

@ -26,11 +26,23 @@
.height(($(window).height())-(40)); .height(($(window).height())-(40));
$('iframe').width($(window).width()-24) $('iframe').width($(window).width()-24)
.height($(window).height()-46); .height($(window).height()-46);
if(window.uniboard){ if(window.sankore){
var html = window.uniboard.preference("html", "Welcome to HTML EDITOR"); var html = window.sankore.preference("iHtml", "Welcome to HTML EDITOR");
$("#markItUp").val(html); $("#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(){ $("#reset-btn").click(function(){
$(this).data("hidden", true).hide(); $(this).data("hidden", true).hide();
$('textarea').show(); $('textarea').show();

@ -1,3 +1,18 @@
/*
* 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(){ function init(){
var ubwidget = $("#ubwidget").ubwidget({ var ubwidget = $("#ubwidget").ubwidget({
@ -126,7 +141,7 @@ function init(){
.attr('contentEditable','true') .attr('contentEditable','true')
.keyup(function(){ .keyup(function(){
if(window.sankore){ if(window.sankore){
window.sankore.setPreference("text", textField.html()); window.sankore.setPreference("noteText", textField.html());
} }
controlTextField(); controlTextField();
//$('#headtitle').hide(); //$('#headtitle').hide();
@ -164,7 +179,7 @@ function init(){
$('#headtitle').hide(); $('#headtitle').hide();
if(window.sankore){ if(window.sankore){
text = window.sankore.preference('text', text); text = window.sankore.preference('noteText', text);
currentFontSize = window.sankore.preference('fontSize', defaultFontSize); currentFontSize = window.sankore.preference('fontSize', defaultFontSize);
$('.ubw-container').css({ $('.ubw-container').css({
width:window.innerWidth - 2, width:window.innerWidth - 2,

@ -12,7 +12,6 @@
<script src="js/jquery.center.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/DD_roundies_0.0.2a.js" type="text/javascript"></script>
<script src="js/ubw-main.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" /> <link rel="stylesheet" type="text/css" href="css/ubwidget.css" />

@ -1,6 +1,34 @@
/*
* 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(){ 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({ var ubwidget = $("#ubwidget").ubwidget({
width:252, width:252,
height:89 height:89
@ -32,8 +60,8 @@ function init(){
borderRight:"none" borderRight:"none"
}); });
spacec.find(".ubw-button-canvas").unbind("mouseenter"); 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, w:52,
h:68 h:68
}, { }, {
@ -45,7 +73,7 @@ function init(){
hours.find(".ubw-button-body").css({ hours.find(".ubw-button-body").css({
borderRight:"none" borderRight:"none"
}); });
var minutes = $("<div class='scroll' id='minutes'>00</div>").ubwbutton({ var minutes = $("<div class='scroll' id='minutes'>" + tempMinutes + "</div>").ubwbutton({
w:52, w:52,
h:68 h:68
}, { }, {
@ -58,7 +86,7 @@ function init(){
borderLeft:"none", borderLeft:"none",
borderRight:"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, w:52,
h:68 h:68
}, { }, {
@ -67,6 +95,7 @@ function init(){
right:0, right:0,
left:0 left:0
}); });
seconds.find(".ubw-button-body").css({ seconds.find(".ubw-button-body").css({
borderLeft:"none", borderLeft:"none",
borderRight:"none" borderRight:"none"
@ -239,12 +268,26 @@ function init(){
} }
function timeButtonDownHandler(m){ function timeButtonDownHandler(m){
var button = m.data.button; var button = m.data.button;
var mouseStart = { 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, pageX:m.pageX,
pageY:m.pageY pageY:m.pageY
}; };*/
var content = button.find(".ubw-button-content");
var val = content.text(); var val = content.text();
isScrolling = true; isScrolling = true;
reverse = true; reverse = true;
@ -332,6 +375,12 @@ function init(){
minutesValue.text(formatTime(currentMinute)); minutesValue.text(formatTime(currentMinute));
secondsValue.text(formatTime(currentSecond)); 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){ function formatTime(time){

@ -33,11 +33,11 @@
//resizerIndex = 0; //resizerIndex = 0;
/*if(window.sankore){ if(window.sankore){
url = window.sankore.preference("url", ""); url = window.sankore.preference("url", "");
}else{ }else{
url = ""; url = "";
}; */ };
language = navigator.userAgent.split(";"); language = navigator.userAgent.split(";");
language = language[3].replace(/\s/g, "").substr(0, 2); language = language[3].replace(/\s/g, "").substr(0, 2);
@ -157,9 +157,9 @@
//clearTimeout(resizer); //clearTimeout(resizer);
//resizerIndex = 0; //resizerIndex = 0;
/*if(window.sankore){ if(window.sankore){
window.sankore.setPreference("url", $("#textbox").val()); window.sankore.setPreference("url", $("#textbox").val());
};*/ };
$("#embeded-content").hide(); $("#embeded-content").hide();
$("#container").removeClass("load").addClass("show"); $("#container").removeClass("load").addClass("show");

@ -4,13 +4,13 @@
xmlns:ub="http://uniboard.mnemis.com/widgets" xmlns:ub="http://uniboard.mnemis.com/widgets"
id="http://www.example.net/widgets/helloworld" id="http://www.example.net/widgets/helloworld"
version="1.0" version="1.0"
width="200" width="660"
height="700" height="410"
ub:resizable="true"> ub:resizable="true">
<name>Rich Note</name> <name>Rich Text Editor</name>
<description>Allows the teacher to attach a rich note to the page.</description> <description>Allows the teacher to attach a text editor to the page.</description>
<preference name="skin" <preference name="skin"
value="uniboard"/> value="sankore"/>
<content src="index.html"/> <content src="index.html"/>
</widget> </widget>

@ -1,31 +1,47 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
"http://www.w3.org/TR/html4/loose.dtd"> <!--
Copyright (c) 2003-2011, CKSource - Frederico Knabben. All rights reserved.
<html> For licensing, see LICENSE.html or http://ckeditor.com/license
-->
<html xmlns="http://www.w3.org/1999/xhtml">
<head> <head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <title>Very nice text editor!!11</title>
<title>Template</title> <meta content="text/html; charset=utf-8" http-equiv="content-type" />
<script type="text/javascript" src="scripts/ckeditor.js"></script>
<!--Styles--> <link href="styles/sample.css" rel="stylesheet" type="text/css" />
<link rel="stylesheet" type="text/css" href="styles/master.css"> <script>
<link rel="stylesheet" type="text/css" href="styles/wcontainer.css"> window.onload = function() {
<link rel="stylesheet" type="text/css" href="styles/app.css"> CKEDITOR.replace( 'fineEditor',
<!--Scripts--> {
<script type="text/javascript" src="scripts/jquery144.js"></script> language : 'en',
<script type="text/javascript" src="scripts/ext.js"></script> toolbar :
<script type="text/javascript" src="scripts/wcontainer.js"></script> [
<!-- <script type="text/javascript" src="scripts/tpl.js"></script> --> { name: 'document', items : [ 'Source','-','Save','NewPage','Preview' ] },
<script type="text/javascript" src="scripts/app.js"></script> { name: 'clipboard', items : [ 'Cut','Copy','Paste','PasteText','PasteFromWord','-','Undo','Redo' ] },
{ name: 'editing', items : [ 'Find','Replace','-','SelectAll' ] },
<!-- Load TinyMCE --> ,'/',
<script type="text/javascript" src="tinymcejq/jquery.tinymce.js"></script> { name: 'basicstyles', items : [ 'Bold','Italic','Underline','Strike','Subscript','Superscript','-','RemoveFormat' ] },
<!-- /TinyMCE --> { 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> </head>
<body> <body>
<div id="ub-widget"></div> <textarea cols="80" id="fineEditor" name="fineEditor" rows="10">&lt;p&gt;This is some &lt;strong&gt;sample text&lt;/strong&gt;.</textarea>
</body> </body>
</html> </html>

Loading…
Cancel
Save