|
|
@ -1,4 +1,3 @@ |
|
|
|
|
|
|
|
|
|
|
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> |
|
|
|
<!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"> |
|
|
|
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:v="urn:schemas-microsoft-com:vml"> |
|
|
|
<head> |
|
|
|
<head> |
|
|
@ -14,6 +13,7 @@ |
|
|
|
|
|
|
|
|
|
|
|
<script type="text/javascript"> |
|
|
|
<script type="text/javascript"> |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var popupFlag = false; |
|
|
|
var browsing = false; |
|
|
|
var browsing = false; |
|
|
|
var mode = 'wiki'; |
|
|
|
var mode = 'wiki'; |
|
|
|
var lang = 'en'; |
|
|
|
var lang = 'en'; |
|
|
@ -44,6 +44,8 @@ |
|
|
|
var ubHistoryList = ""; |
|
|
|
var ubHistoryList = ""; |
|
|
|
var ubHistoryIndex = ""; |
|
|
|
var ubHistoryIndex = ""; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
var popupText = $("<div id='popupWordInfo' class='popupWordInfo'></div>").appendTo("body"); |
|
|
|
|
|
|
|
|
|
|
|
lang = navigator.userAgent.split(";"); |
|
|
|
lang = navigator.userAgent.split(";"); |
|
|
|
|
|
|
|
|
|
|
|
lang = (navigator.language || navigator.systemLanguage || |
|
|
|
lang = (navigator.language || navigator.systemLanguage || |
|
|
@ -98,16 +100,66 @@ |
|
|
|
if($("#url").val().length > 0) |
|
|
|
if($("#url").val().length > 0) |
|
|
|
$("#url").change(); |
|
|
|
$("#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(){ |
|
|
|
$("#toolbar-button-back").click(function(){ |
|
|
|
browsing = true; |
|
|
|
browsing = true; |
|
|
|
appHistory.back(); |
|
|
|
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(){ |
|
|
|
$("#toolbar-button-forward").click(function(){ |
|
|
|
browsing = true; |
|
|
|
browsing = true; |
|
|
|
appHistory.forward(); |
|
|
|
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(){ |
|
|
|
$("#toolbar-button-home").click(function(){ |
|
|
|
}); |
|
|
|
}); |
|
|
|
}); |
|
|
|
}); |
|
|
|