This commit is contained in:
idk
2019-11-22 17:55:58 -05:00
parent e9b5060203
commit 317034cb5a
4 changed files with 28 additions and 36 deletions

View File

@@ -131,7 +131,9 @@ libpolyfill:
wget -O chromium/browser-polyfill.js https://unpkg.com/webextension-polyfill/dist/browser-polyfill.js
fmt:
find . -path ./node_modules -prune -o -name '*.css' -exec cleancss -O1 --format beautify {} \;
cleancss -O1 all -O2 all --format beautify home.css -o .home.css && mv .home.css home.css
cleancss -O1 all -O2 all --format beautify info.css -o .info.css && mv .info.css info.css
#find . -path ./node_modules -prune -o -name '*.css' -exec cleancss -O1 --format beautify {} \;
find . -path ./node_modules -prune -o -name '*.js' -exec prettier --write {} \;
lint:

View File

@@ -1,64 +1,54 @@
html, body {
width: 50rem;
body,
html {
width: 50rem
}
a {
margin: 10px;
/*display: inline-block;*/
margin: 10px
}
.panel {
margin: 5px;
margin: 5px
}
span.identity {
width: 100px;
display: inline-block;
margin-left: 1em;
margin-left: 1em
}
figcaption {
display: inline;
display: inline
}
.section-header {
display: flex;
flex-direction: row;
margin-bottom: 8px
}
p {
font-size: 12px;
font-size: 12px
}
h1 {
font-size: 25px;
font-size: 25px
}
h2,
h3 {
font-size: 18px;
font-size: 18px
}
h4 {
font-size: 13px!important;
font-size: 13px!important
}
#links .showhider {
font-size: 18px
}
#onboarding {
font-size: 2rem;
font-size: 2rem
}
img.readyness {
height: 2rem;
height: 2rem
}
#proxyUnready {
min-height: 2rem;
min-height: 2rem
}
#proxyReady {
min-height: 2rem;
min-height: 2rem
}
#consoleOn {
min-height: 2rem;
}
#window-visit-homepage {
max-width: 70%;
margin-left: 0rem;
min-height: 2rem
}

16
info.js
View File

@@ -41,17 +41,17 @@ document.addEventListener("click", e => {
chrome.windows.update(currentWindow.id, updateInfo);
});
} else if (e.target.id === "window-visit-homepage") {
console.log("attempting to create homepage tab")
goHome()
console.log("attempting to create homepage tab");
goHome();
} else if (e.target.id === "window-visit-i2ptunnel") {
console.log("attempting to create i2ptunnel tab")
goTunnel()
console.log("attempting to create i2ptunnel tab");
goTunnel();
} else if (e.target.id === "window-visit-susimail") {
console.log("attempting to create susimail tab")
goMail()
console.log("attempting to create susimail tab");
goMail();
} else if (e.target.id === "window-visit-snark") {
console.log("attempting to create snark tab")
goSnark()
console.log("attempting to create snark tab");
goSnark();
} else if (e.target.id === "clear-browser-data") {
forgetBrowsingData();
} else if (e.target.id === "check-i2p-control") {

View File

@@ -462,7 +462,7 @@ function routerHost(url) {
} else if (final === "i2psnark" || final === "torrents") {
console.log("(urlcheck) application path", final);
return "i2psnark";
} else if (final === "webmail" || final === "susimail" ) {
} else if (final === "webmail" || final === "susimail") {
console.log("(urlcheck) application path", final);
return "webmail";
} else if (final == "") {