Skip to content

Commit

Permalink
changed stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
redstone-dev committed Nov 12, 2022
1 parent e875229 commit 8efdd3d
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 14 deletions.
7 changes: 4 additions & 3 deletions lib/browser.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,11 @@
class Platinum {

static addBookmark(name, url) {



}
}

let browser = {};
}

export default browser;
export default Platinum;
3 changes: 3 additions & 0 deletions main/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ function createWindow() {
webPreferences: {
webviewTag: true,
devTools: true,
nodeIntegration: true,
contextIsolation: false,
preload: path(__dirname, 'preload.js')
},
autoHideMenuBar: true,
title: "Platinum",
Expand Down
6 changes: 6 additions & 0 deletions main/preload.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
const fs = require('node:fs')
const path = require('node:path')

function loadFile(filePath) {
fs.readFileSync(filePath)
}
7 changes: 1 addition & 6 deletions src/err.txt
Original file line number Diff line number Diff line change
@@ -1,9 +1,4 @@
This page has failed to load. Here are some things you can do:
1. Check your internet connection.
2. If there isn't a problem, maybe check your firewall or proxy settings.
3. If all else fails, somehow contact the website owner.
4. If all of the above fails...



WE'RE ALL GONNA DIE
3. If all else fails, contact the website owner.
10 changes: 5 additions & 5 deletions src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -99,16 +99,15 @@ <h1 class="font-bold text-xl">Preferences</h1>
<br />
<label class="relative flex justify-between items-center group p-2 text-lg">
Forced Website Dark Mode
<span class="bg-purple-800 text-white">BETA</span>
<input type="checkbox" class="absolute left-1/2 py-1 -translate-x-1/2 w-full h-full peer appearance-none rounded-md" id="pref-dm" />
<span class="w-16 h-8 flex items-center flex-shrink-0 ml-4 p-1 dark:bg-gray-700 bg-gray-300 rounded-full duration-300 ease-in-out peer-checked:bg-purple-800 after:w-8 after:h-8 after:dark:bg-gray-800 after:bg-white after:rounded-full after:shadow-md after:duration-300 peer-checked:after:translate-x-6 group-hover:after:translate-x-[0.5]"></span>
</label>
<br />
<br />
<button onclick="clearData()" class="btn">
Clear Data</button>
<button onclick="togglePreferences()" class="btn">Close
Preferences</button>
<button onclick="lsSaveBookmarks()" class="btn">Export Data</button>
<button onclick="clearData()" class="btn">Clear Data</button>
<button onclick="togglePreferences()" class="btn">Close Preferences</button>
<button onclick="lsSaveBookmarks()" class="btn">Export Data</button>
</div>
<!-- Suggestions -->
<div class="sliding-ttb bg-gray-200 dark:bg-gray-800 suggestions-box" id="autocomplete-suggestions">
Expand All @@ -120,6 +119,7 @@ <h1 class="dark:text-white font-bold text-xl">Welcome to Platinum!</h1>&nbsp;
<button class="rounded-sm p-1 bg-white text-black w-fit" onClick="closeWelcome()">Close</button>&nbsp;
<button class="rounded-sm p-1 bg-white text-black w-fit" onClick="togglePreferences()">Customize Your Browser!</button>&nbsp;
</div>
;
<!-- Webviews generated with JS -->
<div id="webviews"></div>
<script src="../lib/functions.js"></script>
Expand Down

0 comments on commit 8efdd3d

Please sign in to comment.