Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielLMcGuire committed Aug 12, 2024
0 parents commit b85100d
Show file tree
Hide file tree
Showing 58 changed files with 3,176 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
# Auto detect text files and perform LF normalization
* text=auto
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.*/
11 changes: 11 additions & 0 deletions 1.0.0/changes.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
PLEASE NOTE THE INSTALLER IS A LITTLE BUGGY AND YOU WILL HAVE TO MANUALLY FIND THE EXE
(In C:\Program Files (x86)\SimpleBrowser)

# Changes
- **Full Changelog**: https://github.com/DanielLMcGuire/Simple-Browser/commits/v1.0.0

## Checksums
- **SimpleBrowserSetup.exe MD5:**
```
cf2bd07fd00cf84bfcfc44e79248e0fd
```
98 changes: 98 additions & 0 deletions 1.0.0/download.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,98 @@
let countdownTimer;
let countdownValue = 10; // Starting value for countdown
let downloadUrl = ''; // To store the download URL

function showCountdownPopup(callback) {
document.getElementById("countdownPopup").style.display = "block";
const countdownElement = document.getElementById("countdown");
countdownElement.textContent = countdownValue;

countdownTimer = setInterval(() => {
countdownValue--;
countdownElement.textContent = countdownValue;
if (countdownValue <= 0) {
clearInterval(countdownTimer);
document.getElementById("countdownPopup").style.display = "none";
callback(); // Execute the callback function to start the download
}
}, 1000);
}

function closeCountdownPopup() {
clearInterval(countdownTimer); // Stop the countdown if the popup is closed
document.getElementById("countdownPopup").style.display = "none";
}

function closeLinuxPopup() {
document.getElementById("linuxPopup").style.display = "none";
}

function startLinuxDownload(version) {
// Set the appropriate download URL based on the version
switch (version) {
case 'deb':
downloadUrl = '../404.html'; // Replace with actual Debian/Ubuntu URL
break;
case 'pkg':
downloadUrl = '../404.html'; // Replace with actual Arch/Manjaro URL
break;
case 'appimage':
downloadUrl = '../404.html'; // Replace with actual AppImage URL
break;
default:
downloadUrl = '../404.html'; // Default or error URL
break;
}
showCountdownPopup(() => {
window.location.href = downloadUrl; // Start the download
});
}

function downloadWindows() {
showCountdownPopup(() => {
window.location.href = "https://github.com/Daniel-McGuire-Corporation/Simple-BrowserCS/releases/download/v1.0.0/SimpleBrowserSetup.exe"; // Replace with your actual Windows download URL
});
}

function showComingSoon() {
document.getElementById("comingSoonPopup").style.display = "block";
}

function closeComingSoonPopup() {
document.getElementById("comingSoonPopup").style.display = "none";
}

function sourceCode() {
window.location.href = "../404.html"; // Replace with your actual source code URL
}

function showLinuxPopup() {
document.getElementById("linuxPopup").style.display = "block";
}

function closeLinuxPopup() {
document.getElementById("linuxPopup").style.display = "none";
}

function loadReleaseNotes() {
fetch('changes.md')
.then(response => {
if (!response.ok) {
throw new Error('Network response was not ok: ' + response.statusText);
}
return response.text();
})
.then(text => {
const converter = new showdown.Converter();
document.getElementById('release-notes').innerHTML = converter.makeHtml(text);
})
.catch(error => {
console.error('Error loading release notes:', error);
document.getElementById('release-notes').innerHTML = '<p>Error loading release notes.</p>';
});
}

// Load release notes on page load
window.onload = function() {
loadReleaseNotes();
};
30 changes: 30 additions & 0 deletions 1.0.0/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>DL 1.0 | Simple Browser</title>
<link rel="stylesheet" href="release.css">
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/showdown.min.js"></script>
</head>
<body>
<div class="container">
<h1>Simple Browser 1.0.0</h1>
<div class="download-links">
<div class="download-button" onclick="downloadWindows()">Download for Windows</div>
<div class="download-button" onclick="sourceCode()">Download Source</div>
</div>
<div id="release-notes" class="release-notes-container"></div>
</div>

<!-- Countdown Popup -->
<div id="countdownPopup" class="popup">
<div class="popup-content">
<span class="close" onclick="closeCountdownPopup()">&times;</span>
<h2>Starting download in <span id="countdown">10</span> seconds...</h2>
</div>
</div>

<script src="download.js"></script>
</body>
</html>
102 changes: 102 additions & 0 deletions 1.0.0/release.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,102 @@
body {
font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
background-color: #121212;
margin: 0;
padding: 0;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
color: white;
}

.container {
text-align: center;
}

.download-links {
margin-top: 20px;
}

.download-button {
display: inline-block;
background-color: #76B9ED;
color: black;
padding: 8px 10px;
margin: 10px;
cursor: pointer;
border-radius: 5px;
transition: background-color 0.3s;
text-decoration: none;
}

.download-button:hover {
background-color: #5a9bd4; /* A slightly darker shade */
}

.popup {
display: none;
position: fixed;
z-index: 1;
left: 0;
top: 0;
width: 100%;
height: 100%;
overflow: auto;
background-color: rgba(0, 0, 0, 0.5);
}

.popup-content {
background-color: rgba(18, 18, 18, 0.952);
margin: 15% auto;
padding: 20px;
border: 1px solid #888;
width: 300px;
text-align: center;
border-radius: 10px;
color: rgb(218, 218, 218);
}

.version-link {
display: block;
color: #76B9ED;
margin: 10px 0;
text-decoration: none;
}

.version-link:hover {
text-decoration: underline;
}

.close {
color: #aaa;
float: right;
font-size: 28px;
font-weight: bold;
cursor: pointer;
}

.close:hover,
.close:focus {
color: black;
}

.release-notes-container {
margin-top: 40px;
padding: 20px;
background-color: #1e1e1e;
border-radius: 10px;
color: white;
max-width: 800px;
margin-left: auto;
margin-right: auto;
text-align: left;
}

.release-notes-container h1, .release-notes-container h2, .release-notes-container h3 {
color: #76B9ED;
}

.release-notes-container p, .release-notes-container ul, .release-notes-container ol {
color: #dcdcdc;
}
17 changes: 17 additions & 0 deletions 1.1.0/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>DL 1.1-alpha | Simple Browser</title>
<link rel="stylesheet" href="release.css">
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/showdown.min.js"></script>
</head>
<body>
<div class="container">
<h1>Simple Browser 1.1 Alpha</h1>
<p>This version was version is in alpha and had a chance of corrupting the registry</p>
</div>
<script src="download.js"></script>
</body>
</html>
102 changes: 102 additions & 0 deletions 1.1.0/release.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,102 @@
body {
font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
background-color: #121212;
margin: 0;
padding: 0;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
color: white;
}

.container {
text-align: center;
}

.download-links {
margin-top: 20px;
}

.download-button {
display: inline-block;
background-color: #76B9ED;
color: black;
padding: 8px 10px;
margin: 10px;
cursor: pointer;
border-radius: 5px;
transition: background-color 0.3s;
text-decoration: none;
}

.download-button:hover {
background-color: #5a9bd4; /* A slightly darker shade */
}

.popup {
display: none;
position: fixed;
z-index: 1;
left: 0;
top: 0;
width: 100%;
height: 100%;
overflow: auto;
background-color: rgba(0, 0, 0, 0.5);
}

.popup-content {
background-color: rgba(18, 18, 18, 0.952);
margin: 15% auto;
padding: 20px;
border: 1px solid #888;
width: 300px;
text-align: center;
border-radius: 10px;
color: rgb(218, 218, 218);
}

.version-link {
display: block;
color: #76B9ED;
margin: 10px 0;
text-decoration: none;
}

.version-link:hover {
text-decoration: underline;
}

.close {
color: #aaa;
float: right;
font-size: 28px;
font-weight: bold;
cursor: pointer;
}

.close:hover,
.close:focus {
color: black;
}

.release-notes-container {
margin-top: 40px;
padding: 20px;
background-color: #1e1e1e;
border-radius: 10px;
color: white;
max-width: 800px;
margin-left: auto;
margin-right: auto;
text-align: left;
}

.release-notes-container h1, .release-notes-container h2, .release-notes-container h3 {
color: #76B9ED;
}

.release-notes-container p, .release-notes-container ul, .release-notes-container ol {
color: #dcdcdc;
}
14 changes: 14 additions & 0 deletions 1.2.1/changes.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@

## What's Changed
* Made MueTab Optional (Modern UI)
* New Versioning System

**Full Changelog**: https://github.com/DanielLMcGuire/Simple-Browser/compare/v1.1.0...v1.2.1

---------------------------------------------------------------------
### Checksums
- **SimpleBrowserSetup.exe MD5:**
```
f910149d33e708b63710b0a77614fba0
```
---------------------------------------------------------------------
Loading

0 comments on commit b85100d

Please sign in to comment.