|
|
|
@ -1,4 +1,3 @@ |
|
|
|
|
|
|
|
|
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> |
|
|
|
|
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:v="urn:schemas-microsoft-com:vml"> |
|
|
|
|
<head> |
|
|
|
@ -14,6 +13,7 @@ |
|
|
|
|
|
|
|
|
|
<script type="text/javascript"> |
|
|
|
|
|
|
|
|
|
var popupFlag = false; |
|
|
|
|
var browsing = false; |
|
|
|
|
var mode = 'wiki'; |
|
|
|
|
var lang = 'en'; |
|
|
|
@ -44,6 +44,8 @@ |
|
|
|
|
var ubHistoryList = ""; |
|
|
|
|
var ubHistoryIndex = ""; |
|
|
|
|
|
|
|
|
|
var popupText = $("<div id='popupWordInfo' class='popupWordInfo'></div>").appendTo("body"); |
|
|
|
|
|
|
|
|
|
lang = navigator.userAgent.split(";"); |
|
|
|
|
|
|
|
|
|
lang = (navigator.language || navigator.systemLanguage || |
|
|
|
@ -98,16 +100,66 @@ |
|
|
|
|
if($("#url").val().length > 0) |
|
|
|
|
$("#url").change(); |
|
|
|
|
|
|
|
|
|
$("#toolbar-button-search").click(function(){ |
|
|
|
|
$("#url").trigger("change"); |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
$("#toolbar-button-search").mouseover(function(evt){ |
|
|
|
|
popupFlag = true; |
|
|
|
|
popupText.text("Search") |
|
|
|
|
.css("top", evt.pageY + 5) |
|
|
|
|
.css("left", evt.pageX + 13) |
|
|
|
|
.css({width:"70px"}) |
|
|
|
|
.show("fast", function(){ |
|
|
|
|
if(!popupFlag) |
|
|
|
|
popupText.hide(); |
|
|
|
|
}); |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
$("#toolbar-button-search, #toolbar-button-back, #toolbar-button-forward").mousemove(function(evt){ |
|
|
|
|
popupText.css("top", evt.pageY + 5) |
|
|
|
|
.css("left", evt.pageX + 13); |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
$("#toolbar-button-search, #toolbar-button-back, #toolbar-button-forward").mouseout(function(evt){ |
|
|
|
|
popupFlag = false; |
|
|
|
|
popupText.hide(); |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
$("#toolbar-button-back").click(function(){ |
|
|
|
|
browsing = true; |
|
|
|
|
appHistory.back(); |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
$("#toolbar-button-back").mouseover(function(evt){ |
|
|
|
|
popupFlag = true; |
|
|
|
|
popupText.text("Previous word") |
|
|
|
|
.css("top", evt.pageY + 5) |
|
|
|
|
.css("left", evt.pageX + 13) |
|
|
|
|
.css({width:"100px"}) |
|
|
|
|
.show("fast", function(){ |
|
|
|
|
if(!popupFlag) |
|
|
|
|
popupText.hide(); |
|
|
|
|
}); |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
$("#toolbar-button-forward").click(function(){ |
|
|
|
|
browsing = true; |
|
|
|
|
appHistory.forward(); |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
$("#toolbar-button-forward").mouseover(function(evt){ |
|
|
|
|
popupFlag = true; |
|
|
|
|
popupText.text("Next word") |
|
|
|
|
.css("top", evt.pageY + 5) |
|
|
|
|
.css("left", evt.pageX + 13) |
|
|
|
|
.css({width:"70px"}) |
|
|
|
|
.show("fast", function(){ |
|
|
|
|
if(!popupFlag) |
|
|
|
|
popupText.hide(); |
|
|
|
|
}); |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
$("#toolbar-button-home").click(function(){ |
|
|
|
|
}); |
|
|
|
|
}); |
|
|
|
@ -278,9 +330,9 @@ |
|
|
|
|
</div> |
|
|
|
|
<div id="center-field" class="full"> |
|
|
|
|
<input type="text" id="url" alt="url"/> |
|
|
|
|
<div class="on-the-right"> |
|
|
|
|
<div id="toolbar-button-search"></div> |
|
|
|
|
</div> |
|
|
|
|
<div class="on-the-right"> |
|
|
|
|
<div id="toolbar-button-search"></div> |
|
|
|
|
</div> |
|
|
|
|
</div> <!--center-field--> |
|
|
|
|
<div id="right-field"> |
|
|
|
|
<div id="toolbar-button-languages" class="button" alt="languages button"> |
|
|
|
|