mirror of
https://github.com/torappinfo/uweb.git
synced 2024-08-14 23:54:59 +00:00
ebrowser v1.0.34
This commit is contained in:
parent
1577313e59
commit
895c3124f9
2 changed files with 7 additions and 4 deletions
|
@ -181,6 +181,9 @@ You should have received a copy of the GNU General Public License along with thi
|
||||||
tabs.children[iTab].classList.add('curWV');
|
tabs.children[iTab].classList.add('curWV');
|
||||||
return getWinTitle();
|
return getWinTitle();
|
||||||
}
|
}
|
||||||
|
function tabJS(js){
|
||||||
|
tabs.children[iTab].executeJavaScript(js,false);
|
||||||
|
}
|
||||||
function getWinTitle(){
|
function getWinTitle(){
|
||||||
let t=tabs.children[iTab];
|
let t=tabs.children[iTab];
|
||||||
let title = (iTab+1) + '/' + tabs.children.length;
|
let title = (iTab+1) + '/' + tabs.children.length;
|
||||||
|
@ -210,10 +213,10 @@ You should have received a copy of the GNU General Public License along with thi
|
||||||
if(e.ctrlKey){
|
if(e.ctrlKey){
|
||||||
switch(key){
|
switch(key){
|
||||||
case "Home":
|
case "Home":
|
||||||
tabs.children[iTab].src = "javascript:window.scrollTo(0,0)";
|
tabJS("window.scrollTo(0,0)");
|
||||||
return;
|
return;
|
||||||
case "End":
|
case "End":
|
||||||
tabs.children[iTab].src="javascript:window.scrollTo(0,document.body.scrollHeight)"
|
tabJS("window.scrollTo(0,document.body.scrollHeight)");
|
||||||
return;
|
return;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
@ -245,7 +248,7 @@ You should have received a copy of the GNU General Public License along with thi
|
||||||
break SCROLL;
|
break SCROLL;
|
||||||
}
|
}
|
||||||
let js = `javascript:window.scrollBy(0,${h})`;
|
let js = `javascript:window.scrollBy(0,${h})`;
|
||||||
tabs.children[iTab].src = js;
|
tabJS(js);
|
||||||
return;
|
return;
|
||||||
}while(false);
|
}while(false);
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
{"version":"1.0.33",
|
{"version":"1.0.34",
|
||||||
"name": "ebrowser",
|
"name": "ebrowser",
|
||||||
"description": "The keyboard-friendly minimal suckless web browser",
|
"description": "The keyboard-friendly minimal suckless web browser",
|
||||||
"main": "webview.js",
|
"main": "webview.js",
|
||||||
|
|
Loading…
Reference in a new issue