Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
NovaAppsInc committed Apr 10, 2022
2 parents 21ad4ef + 828cd61 commit a547924
Show file tree
Hide file tree
Showing 4 changed files with 36 additions and 75 deletions.
35 changes: 21 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,25 +1,32 @@
# Fracital
Another website made with the Ultraviolet backend by TitaniumNetwork & caracal.js
- https://fracital.org
- Become a pateon https://patreon.com/fracital
Another website made with the Ultraviolet backend by TitaniumNetwork & caracal-js

https://fracital.dev

[![](https://c5.patreon.com/external/logo/become_a_patron_button.png)](https://www.patreon.com/bePatron?u=69596646)

# Supports
- **Any static site**
- **Discord**
- **Youtube**
- **Mobile browsing!**
- **Spotify**
- **CAPTCHA/hCAPTCHA**
- **GeForce NOW (Partially Supported)**
- **and many more**

# Updates:
- **New UI Update!**
- **Games are back!**
- **Drop down menu to make the website more compact**
- **New games page UI**
- **NOW USING THE NEW UltraViolet BACKEND**
- **New UI updates**

[![forthebadge](https://forthebadge.com/images/badges/built-with-love.svg)](https://forthebadge.com)
[![forthebadge](https://forthebadge.com/images/badges/uses-html.svg)](https://forthebadge.com)
![image](https://i.imgur.com/Oe2IWhK.png)
![image](https://i.imgur.com/rZpmikX.png)

## Setup
# Bare Server Setup Guide
If you want to host your own version of **Fracital** follow these steps
```
$ git clone https://github.com/titaniumnetwork-dev/Ultraviolet-Node --recursive
$ cd Ultraviolet-Node
$ npm install
$ npm start
```
then go to ```static``` delete all files then move all of the ```proxy-main``` files in it

# Run On Replit
[Click here to go to the Repl.it Setup Guide.](https://github.com/NovaAppsInc/fracital-static/blob/main/README.md)
15 changes: 4 additions & 11 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,7 @@
<title>Fracital</title>
<link rel="stylesheet" href="./styles/style.css" id="rels">
<link rel="shortcut icon" href="./resources/favicon.ico" id="relt" type="image/x-icon">
<script src="/uv/uv.bundle.js"></script>
<script src="/uv/uv.config.js"></script>
<script async src="https://arc.io/widget.min.js#9RNMA9a8"></script>
<script>
if ('serviceWorker' in navigator) {
navigator.serviceWorker.register('/sw.js', {
scope: '/sw/',
});
};
</script>
</head>
<body>
<div class="toolbar" id="toolbar" role="banner">
Expand Down Expand Up @@ -120,7 +111,9 @@ <h3 class="infql">Quick Launch sites</h3>
<p class="alert">You will now need to dm us to join the Fracital server because school IT's be goofy!</a></p>
</div>
</body>
<script src="./js/alerts.js"></script>
<script src="js/alerts.js"></script>
<script src="https://unpkg.com/@ruffle-rs/ruffle"></script>
<script src="./js/index.js"></script>
<script src="/js/index.js"></script>
<script src="/uv/uv.bundle.js"></script>
<script src="/uv/uv.config.js"></script>
</html>
30 changes: 11 additions & 19 deletions js/index.js
Original file line number Diff line number Diff line change
@@ -1,40 +1,32 @@
class xor {
static encode(str) {
return encodeURIComponent(str.toString().split('').map((char, ind) => ind % 2 ? String.fromCharCode(char.charCodeAt() ^ 2) : char).join(''));
};
static decode(str) {
return decodeURIComponent(str.slice(0, -1)).split('').map((char, ind) => ind % 2 ? String.fromCharCode(char.charCodeAt() ^ 2) : char).join('');
};
};

function selectElement(selector) {
return document.querySelector(selector);
}

const urlBar = document.getElementById('urlbar').value;
const frame = document.getElementById("frame");
const settb = document.getElementById("settb");
const toolb = document.getElementById("toolbar")
const toolb = document.getElementById("toolbar");

settb.addEventListener("click", () => {
frame.src = "settings.html"
})
});

let tlds = [".com", ".net", ".org", ".co", ".lol", ".gg", ".fun", ".ga", ".xyz", ".to", ".cc", ".info", ".io", ".tv"];

document.cookie="olds=sus";

function go(link) {
window.navigator.serviceWorker.register('../sw.js', {
scope: __uv$config.prefix
});
if (link == '') {
alert('Bruh you need to insert a url!');
} else if (!link.includes("http://")) {
link = "http://" + link;
}
} else if (!(link.startsWith('https://') || link.startsWith('http://'))) link = 'http://' + urlBar;
if(!link.includes(".")) {
alert(`alright bro come on "${document.getElementById('urlbar').value}" ain't even a url!`)
alert(`alright bro come on "${urlBar}" ain't even a url!`)
return;
// go("bing.com/search?q=" + document.getElementById('urlbar').value);
}
document.getElementById("frame").src="/sw/"+xor.encode(link);
frame.src = __uv$config.prefix + __uv$config.encodeUrl(link);
};

document.getElementById("btnsrch").addEventListener("click", () => {
Expand Down Expand Up @@ -102,7 +94,7 @@ let observer = new MutationObserver(mutations => {
mutations.forEach(mutation => {
if (mutation.type == "attributes") {
if(!document.getElementById("urlbar").src == "") {
document.getElementById("urlbar").src=xor.decode(document.getElementById("frame").contentWindow.location.href.split('/sw/')[1]);
document.getElementById("urlbar").src=__uv$config.decode(frame.contentWindow.location.href.split(__uv$config.prefix)[1]);
}
};
});
Expand Down Expand Up @@ -235,4 +227,4 @@ function lyric() {
// case 'classic':
// document.getElementById("rels").href = "../styles/style.css";
// break;
// }
// }
31 changes: 0 additions & 31 deletions particles.html

This file was deleted.

0 comments on commit a547924

Please sign in to comment.