diff --git a/resources/library/interactive/WebBrowser.wgt/css/main.css b/resources/library/interactive/WebBrowser.wgt/css/main.css index 6636c1e5..f0104c19 100644 --- a/resources/library/interactive/WebBrowser.wgt/css/main.css +++ b/resources/library/interactive/WebBrowser.wgt/css/main.css @@ -179,4 +179,20 @@ body{ width:193px; background-image:url(../imgs/right.png); background-repeat:no-repeat; +} + +.popupWordInfo{ + position: absolute; + display: none; + width: 100px; + height: 17px; + top: 0; + left: 0; + text-align: center; + border: 1px solid #B9B9B9; + background-color: #eaebeb; + color: black; + font-family: Verdana,Arial,Helvetica,sans-serif; + font-size: small; + z-index: 100; } \ No newline at end of file diff --git a/resources/library/interactive/WebBrowser.wgt/index.html b/resources/library/interactive/WebBrowser.wgt/index.html index 5320f4c8..19337985 100644 --- a/resources/library/interactive/WebBrowser.wgt/index.html +++ b/resources/library/interactive/WebBrowser.wgt/index.html @@ -22,6 +22,7 @@ $(document).ready(function(){ //var resizer; // Timer //var resizerIndex; + var popupFlag = false; var currentHistory = 0; var references = new Array(); var globalWidth = 850; @@ -37,7 +38,8 @@ var resizer; // Timer var resizerIndex; - + var popupText = $("
").appendTo("body"); + resizerIndex = 0; if(window.sankore){ @@ -66,7 +68,53 @@ $("#search-button").trigger("click"); } }); - + + $("#search-button").mouseover(function(evt){ + popupFlag = true; + popupText.css("top", evt.pageY + 5) + .css("left", evt.pageX + 13) + .css({width:"100px"}) + .text("Go to the site") + .show("fast", function(){ + if(!popupFlag) + popupText.hide(); + }); + }); + + $("#back-button").mouseover(function(evt){ + popupFlag = true; + popupText.css("top", evt.pageY + 5) + .css("left", evt.pageX + 13) + .css({width:"90px"}) + .text("Previous site") + .show("fast", function(){ + if(!popupFlag) + popupText.hide(); + }); + }); + + $("#forward-button").mouseover(function(evt){ + popupFlag = true; + popupText.css("top", evt.pageY + 5) + .css("left", evt.pageX + 13) + .css({width:"70px"}) + .text("Next site") + .show("fast", function(){ + if(!popupFlag) + popupText.hide(); + }); + }); + + $("#search-button, #back-button, #forward-button").mousemove(function(evt){ + popupText.css("top", evt.pageY + 5) + .css("left", evt.pageX + 13); + }); + + $("#search-button, #back-button, #forward-button").mouseout(function(evt){ + popupText.hide(); + popupFlag = false; + }); + $("#textbox").keypress(function(e) { if(e.keyCode == 13) { $("#search-button").trigger("click"); diff --git a/resources/library/interactive/Wikipedia.wgt/config.xml b/resources/library/interactive/Wikipedia.wgt/config.xml index 449aa286..d1d4102c 100644 --- a/resources/library/interactive/Wikipedia.wgt/config.xml +++ b/resources/library/interactive/Wikipedia.wgt/config.xml @@ -3,8 +3,8 @@ xmlns:ub="http://uniboard.mnemis.com/widgets" identifier="http://uniboard.mnemis.com/widgets/wikipedia" version="1.2" - width="350" - height="450" + width="370" + height="400" ub:resizable = "true"> Wikipedia diff --git a/resources/library/interactive/Wikipedia.wgt/css/master.css b/resources/library/interactive/Wikipedia.wgt/css/master.css index 1191dd49..70c88e49 100644 --- a/resources/library/interactive/Wikipedia.wgt/css/master.css +++ b/resources/library/interactive/Wikipedia.wgt/css/master.css @@ -1,70 +1,70 @@ body{ - font-family:helvetica, arial, sans-serif; - font-size:12px; + font-family:helvetica, arial, sans-serif; + font-size:12px; } .on-the-right{ - width:0px; - position:absolute; - top:0; - overflow:visible; - margin-left:100%; + width:0px; + position:absolute; + top:0; + overflow:visible; + margin-left:100%; } .toolbar{ - background-image:url(../images/toolbarBody.png); - padding-left:4px; - border:1px solid #cccccc; - border-bottom:1px solid #ffffff; - position:relative; + background-image:url(../images/toolbarBody.png); + padding-left:4px; + border:1px solid #cccccc; + border-bottom:1px solid #ffffff; + position:relative; } .toolbar>div>.button{ - width:29px; - height:24px; - float:left; - margin-right:4px; - margin-top:0px; - cursor:pointer; + width:29px; + height:24px; + float:left; + margin-right:4px; + margin-top:0px; + cursor:pointer; } #toolbar-down{ - font-size:18px; - font-weight:bold; - color:#333333; - text-align:center; - font-family:helvetica, arial, sans-serif; - text-shadow: #ffffff 0px 1px 1px; + font-size:18px; + font-weight:bold; + color:#333333; + text-align:center; + font-family:helvetica, arial, sans-serif; + text-shadow: #ffffff 0px 1px 1px; } #url{ - height:20px; - float:left; - border:1px solid #b9b9b9; - padding-right:4%; - width:80%; + height:20px; + float:left; + border:1px solid #b9b9b9; + padding-right:4%; + width:80%; } #left-field{ - float:left; + float:left; } #right-field{ - float:right; + float:right; } #center-field{ - display:block-inline; - position:relative; + display:block-inline; + position:relative; } #center-field.min{ - margin-right:6px; + margin-right:6px; } #center-field.full{ - margin-right:78px; - margin-left:65px; + margin-right:78px; + margin-left:65px; } #web-canevas { @@ -79,20 +79,20 @@ body{ } .toolbar-body { - display: table; - width: 100%; - height: 37px; + display: table; + width: 100%; + height: 37px; - /* IE hacks */ - position: relative !ie7; + /* IE hacks */ + position: relative !ie7; } .toolbar-body>div { - display: table-cell; - vertical-align: middle; + display: table-cell; + vertical-align: middle; - /* IE hacks */ - position: absolute !ie7; - top: 50% !ie7; + /* IE hacks */ + position: absolute !ie7; + top: 50% !ie7; } #toolbar-button-back{ background-image:url(../images/toolbarButtonBack.png) } @@ -101,19 +101,49 @@ body{ #toolbar-button-languages{ background-image:url(../images/toolbarButtonLanguages.png) } #toolbar-button-search{ - width:22px; - height:22px; - position:relative; - margin-left:-22px; - background-image:url(../images/toolbarButtonSearch.png); - background-repeat:no-repeat; - background-position:center center; + float: left; + width:22px; + height:22px; + position:relative; + margin-left:-32px; + background-image:url(../images/toolbarButtonSearch.png); + background-repeat:no-repeat; + background-position:center center; + border: 1px solid #B9B9B9; + -webkit-border-radius: 5px; + border-radius: 5px; + -webkit-box-shadow: #dadada -1px 0 4px; + box-shadow: #dadada -1px 0 4px; +} + +#toolbar-button-search:hover{ + border: 1px solid #666666; } #toolbar-button-languages{ - width:66px; + width:66px; } #toolbar-button-back{ - margin-right:0px; + margin-right:0px; +} + +.popupWordInfo{ + position: absolute; + display: none; + width: 100px; + height: 17px; + top: 0; + left: 0; + text-align: center; + border: 1px solid #B9B9B9; + background-color: #eaebeb; + color: black; + font-family: Verdana,Arial,Helvetica,sans-serif; + -webkit-border-radius: 5px; + border-radius: 5px; + -webkit-box-shadow: #dadada -1px 0 4px; + box-shadow: #dadada -1px 0 4px; + z-index: 100; + font-family: Arial,Helvetica,sans-serif; } \ No newline at end of file diff --git a/resources/library/interactive/Wikipedia.wgt/index.html b/resources/library/interactive/Wikipedia.wgt/index.html index 2df623f6..ade0733d 100644 --- a/resources/library/interactive/Wikipedia.wgt/index.html +++ b/resources/library/interactive/Wikipedia.wgt/index.html @@ -13,7 +13,8 @@ @@ -274,9 +327,9 @@
-
- -
+
+ +
diff --git a/resources/library/interactive/Wikipedia.wgt/nbproject/private/private.properties b/resources/library/interactive/Wikipedia.wgt/nbproject/private/private.properties deleted file mode 100644 index 19e9b7ea..00000000 --- a/resources/library/interactive/Wikipedia.wgt/nbproject/private/private.properties +++ /dev/null @@ -1,5 +0,0 @@ -copy.src.files=false -copy.src.target= -index.file=index.html -run.as=LOCAL -url=http://localhost/Wikipedia.wgt/ diff --git a/resources/library/interactive/Wikipedia.wgt/nbproject/private/private.xml b/resources/library/interactive/Wikipedia.wgt/nbproject/private/private.xml deleted file mode 100644 index c1f155a7..00000000 --- a/resources/library/interactive/Wikipedia.wgt/nbproject/private/private.xml +++ /dev/null @@ -1,4 +0,0 @@ - - - - diff --git a/resources/library/interactive/Wikipedia.wgt/nbproject/project.properties b/resources/library/interactive/Wikipedia.wgt/nbproject/project.properties deleted file mode 100644 index 6ffde2f5..00000000 --- a/resources/library/interactive/Wikipedia.wgt/nbproject/project.properties +++ /dev/null @@ -1,7 +0,0 @@ -include.path=${php.global.include.path} -php.version=PHP_5 -source.encoding=UTF-8 -src.dir=. -tags.asp=false -tags.short=true -web.root=. diff --git a/resources/library/interactive/Wikipedia.wgt/nbproject/project.xml b/resources/library/interactive/Wikipedia.wgt/nbproject/project.xml deleted file mode 100644 index 877f3918..00000000 --- a/resources/library/interactive/Wikipedia.wgt/nbproject/project.xml +++ /dev/null @@ -1,9 +0,0 @@ - - - org.netbeans.modules.php.project - - - Wikipedia.wgt - - - diff --git a/resources/library/interactive/Wiktionary.wgt/css/master.css b/resources/library/interactive/Wiktionary.wgt/css/master.css index 1191dd49..10887da6 100644 --- a/resources/library/interactive/Wiktionary.wgt/css/master.css +++ b/resources/library/interactive/Wiktionary.wgt/css/master.css @@ -101,13 +101,23 @@ body{ #toolbar-button-languages{ background-image:url(../images/toolbarButtonLanguages.png) } #toolbar-button-search{ - width:22px; - height:22px; - position:relative; - margin-left:-22px; - background-image:url(../images/toolbarButtonSearch.png); - background-repeat:no-repeat; - background-position:center center; + float: left; + width:22px; + height:22px; + position:relative; + margin-left:-32px; + background-image:url(../images/toolbarButtonSearch.png); + background-repeat:no-repeat; + background-position:center center; + border: 1px solid #B9B9B9; + -webkit-border-radius: 5px; + border-radius: 5px; + -webkit-box-shadow: #dadada -1px 0 4px; + box-shadow: #dadada -1px 0 4px; +} + +#toolbar-button-search:hover{ + border: 1px solid #666666; } #toolbar-button-languages{ @@ -116,4 +126,24 @@ body{ #toolbar-button-back{ margin-right:0px; +} + +.popupWordInfo{ + position: absolute; + display: none; + width: 100px; + height: 17px; + top: 0; + left: 0; + text-align: center; + border: 1px solid #B9B9B9; + background-color: #eaebeb; + color: black; + font-family: Verdana,Arial,Helvetica,sans-serif; + -webkit-border-radius: 5px; + border-radius: 5px; + -webkit-box-shadow: #dadada -1px 0 4px; + box-shadow: #dadada -1px 0 4px; + z-index: 100; + font-family: Arial,Helvetica,sans-serif; } \ No newline at end of file diff --git a/resources/library/interactive/Wiktionary.wgt/index.html b/resources/library/interactive/Wiktionary.wgt/index.html index 39a1742a..56acd775 100644 --- a/resources/library/interactive/Wiktionary.wgt/index.html +++ b/resources/library/interactive/Wiktionary.wgt/index.html @@ -1,4 +1,3 @@ - @@ -13,7 +12,8 @@ @@ -278,9 +330,9 @@
-
- -
+
+ +
diff --git a/resources/library/interactive/Wiktionary.wgt/nbproject/private/private.properties b/resources/library/interactive/Wiktionary.wgt/nbproject/private/private.properties deleted file mode 100644 index d59f9043..00000000 --- a/resources/library/interactive/Wiktionary.wgt/nbproject/private/private.properties +++ /dev/null @@ -1,5 +0,0 @@ -copy.src.files=false -copy.src.target= -index.file=index.html -run.as=LOCAL -url=http://localhost/Wiktionary.wgt/ diff --git a/resources/library/interactive/Wiktionary.wgt/nbproject/project.properties b/resources/library/interactive/Wiktionary.wgt/nbproject/project.properties deleted file mode 100644 index 94429c9b..00000000 --- a/resources/library/interactive/Wiktionary.wgt/nbproject/project.properties +++ /dev/null @@ -1,7 +0,0 @@ -include.path=${php.global.include.path} -php.version=PHP_53 -source.encoding=UTF-8 -src.dir=. -tags.asp=false -tags.short=true -web.root=. diff --git a/resources/library/interactive/Wiktionary.wgt/nbproject/project.xml b/resources/library/interactive/Wiktionary.wgt/nbproject/project.xml deleted file mode 100644 index 9aa6a7d9..00000000 --- a/resources/library/interactive/Wiktionary.wgt/nbproject/project.xml +++ /dev/null @@ -1,9 +0,0 @@ - - - org.netbeans.modules.php.project - - - Wiktionary.wgt - - -