get ready for torrent menus
This commit is contained in:
BIN
icons/torrents.png
Normal file
BIN
icons/torrents.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.3 KiB |
16
info.js
16
info.js
@@ -80,6 +80,12 @@ document.addEventListener("click", clickEvent => {
|
||||
} else if (clickEvent.target.id === "search-submit") {
|
||||
console.log("attempting to create search tab");
|
||||
goSearch();
|
||||
} else if (clickEvent.target.id === "browser-action") {
|
||||
console.log("showing a browser action");
|
||||
showBrowsing();
|
||||
} else if (clickEvent.target.id === "torrent-action") {
|
||||
console.log("showing a torrent action");
|
||||
showTorrents();
|
||||
} else if (clickEvent.target.id === "window-preface-title") {
|
||||
console.log("attempting to create homepage tab");
|
||||
goHome();
|
||||
@@ -136,6 +142,16 @@ gettingInfo.then(got => {
|
||||
}
|
||||
});
|
||||
|
||||
function showBrowsing(){
|
||||
var x = document.getElementById("browserpanel");
|
||||
x.style.display = "block";
|
||||
}
|
||||
|
||||
function showTorrents(){
|
||||
var x = document.getElementById("browserpanel");
|
||||
x.style.display = "none";
|
||||
}
|
||||
|
||||
function goHome() {
|
||||
function gotProxyInfo(info) {
|
||||
let port = info.value.http.split(":")[1];
|
||||
|
||||
@@ -41,7 +41,8 @@
|
||||
"browser_style": true,
|
||||
"default_icon": "icons/logo.png",
|
||||
"default_title": "__MSG_toopieName__",
|
||||
"default_panel": "toopie.html"
|
||||
"default_panel": "toopie.html",
|
||||
"open_at_install": false
|
||||
},
|
||||
"options_ui": {
|
||||
"page": "options/options.html"
|
||||
|
||||
19
window.html
19
window.html
@@ -9,7 +9,17 @@
|
||||
</title>
|
||||
</head>
|
||||
<body>
|
||||
<div class="section-header panel-section panel-section-header" id="topbar">
|
||||
<!--<div class="text-section-header" id="text-section-header">-->
|
||||
<img width="32px" height="32px" src="icons/toopie.png">
|
||||
<a href="#" id="browser-action">Browse</a>
|
||||
<img width="32px" height="32px" src="icons/torrents.png">
|
||||
<a href="#" id="torrent-action">Download</a>
|
||||
<!--</div>-->
|
||||
</div>
|
||||
<div id="browserpanel">
|
||||
<div class="panel">
|
||||
|
||||
<div class="section-header panel-section panel-section-header">
|
||||
<div class="text-section-header" id="text-section-header">
|
||||
<h1>The Invisible Internet Browser</h1>
|
||||
@@ -107,10 +117,11 @@
|
||||
<p>
|
||||
</p>
|
||||
</div>
|
||||
<script src="context.js"></script>
|
||||
<script src="privacy.js"></script>
|
||||
<script src="info.js"></script>
|
||||
<script crossorigin="anonymous" src="content.js"></script>
|
||||
</div>
|
||||
<script src="context.js"></script>
|
||||
<script src="privacy.js"></script>
|
||||
<script src="info.js"></script>
|
||||
<script crossorigin="anonymous" src="content.js"></script>
|
||||
<script src="i2pcontrol/i2pcontrol.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user