diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..79b5594 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +**/.DS_Store diff --git a/docs/README.md b/docs/README.md index 9b135c1..d88ef5c 100755 --- a/docs/README.md +++ b/docs/README.md @@ -1,7 +1,5 @@ # Startpage -## This is [MAHcodes's](https://github.com/MAHcodes) fork of mtwb47's [startpage](https://github.com/mtwb47/mtwb47.github.io) with [gruvbox](https://github.com/morhetz/gruvbox) and [nord](https://github.com/arcticicestudio/nord) theme. - ### Change Theme: To change the theme press "c". @@ -30,6 +28,12 @@ To change the theme press "c". This is a fork of RamenMaestro's [startpage](https://github.com/RamenMaestro/startpage) with a image scroll option and larger option size. +## To Do + +- [ ] Make the background rectangle bigger +- [ ] Make a wikipage explaining how to add a custom startpage to Mozilla Firefox. +- [x] ~~Fix white background issue found in Firefox 117.~~ + ## Credits Images used in the sidebar are by background artist [Waneella](https://twitter.com/waneella_). diff --git a/docs/general.css b/docs/general.css index bc53431..030aca0 100755 --- a/docs/general.css +++ b/docs/general.css @@ -85,6 +85,7 @@ body { background-image: url("img/"); background-repeat: repeat; width: 670px; + min-width: 1100px; /* Prevents the layout to get cut off */ height: 320px; position: absolute; top: 0px; @@ -92,6 +93,7 @@ body { left: 0px; right: 0px; margin: auto; + overflow: auto /* Adds scrollbars */ } h1 { @@ -107,6 +109,9 @@ h1 { } .main { + /* Transforms the whole page and makes it smaller */ + --webkit-transform: scale(0.8); + -moz-transform: scale(0.8); display: inline-block; border-style: solid; border-width: 1px; @@ -187,14 +192,14 @@ img { font-family: Iosevka, monospace; font-size: 18px; position: absolute; - top: 565px; + top: 35px; + left: 250px; width: auto; height: auto; - left: 12px; } li { - margin: 10px 0; + margin: 5px 0; /* Margin between the text elements of the lis */ } nav { @@ -216,9 +221,9 @@ ul { text-align: center; height: 100%; border-color: var(--main-border); - border-right-width: 1px; + border-right-width: 1px; /* changes border of the table where the list goes */ border-right-style: solid; - padding: 10px 25px; + padding: 0px 15px; transition: all 0.8s; cursor: default; list-style-type: none; diff --git a/docs/index.html b/docs/index.html index 68a2bb3..2e74f0e 100755 --- a/docs/index.html +++ b/docs/index.html @@ -3,7 +3,7 @@ - New Tab + Home @@ -20,50 +20,70 @@

-

Hello, Mhmd Ali

+

Hello, Liv ※\(^o^)/※

@@ -129,7 +149,7 @@

Hello, Mhmd Ali

} if (n < 1) { slideIndex = 23; - } + } slide.querySelector("img").src = `img/side${slideIndex}.gif` console.log(slideIndex) } @@ -138,7 +158,7 @@

Hello, Mhmd Ali

const html = document.getElementById("html"); // Themes list - const colorchemes = ["default", "gruvbox", "nord", "Macchiato", "Mocha"]; + const colorchemes = ["Mocha", "Macchiato", "default", "gruvbox", "nord"]; let changeTheme = (e) => { // Change theme key @@ -161,13 +181,13 @@

Hello, Mhmd Ali

case 2: slideIndex=10; break; - case 3: - case 4: + case 3: + case 4: slideIndex=21; break; default: - havematched = false; - } + havematched = false; + } if (havematched){ localStorage.setItem("slideIndex", slideIndex); showSlides(slideIndex); diff --git a/mozilla.cfg b/mozilla.cfg index ca42343..107d485 100644 --- a/mozilla.cfg +++ b/mozilla.cfg @@ -1,14 +1,12 @@ -// Any comment. You must start the file with a single-line comment! -let { classes:Cc, interfaces:Ci, utils:Cu } = Components; +// +var {classes:Cc,interfaces:Ci,utils:Cu} = Components; +/* set new tab page */ try { Cu.import("resource:///modules/AboutNewTab.jsm"); - let newTabURL = "/Users/skinofmyeden/Documents/start-page/docs/index.html"; + var newTabURL = "file:///Users/skinofmyeden/Documents/start-page/docs/index.html"; AboutNewTab.newTabURL = newTabURL; - Cu.import("resource:///modules/HomePage.jsm"); - HomePage.set(newTabURL); -} catch(e) { Cu.reportError(e); } - +} catch(e){Cu.reportError(e);} // report errors in the Browser Console // Auto focus new tab content try { @@ -19,4 +17,4 @@ try { window = BrowserWindowTracker.getTopWindow(); window.gBrowser.selectedBrowser.focus(); }, "browser-open-newtab-start"); -} catch(e) { Cu.reportError(e); } +} catch(e) { Cu.reportError(e); } \ No newline at end of file