Skip to content

Commit

Permalink
Moved particles, Added more tab cloaks, Removed scroll bar in setting…
Browse files Browse the repository at this point in the history
…s, Formatted
  • Loading branch information
xbubbo committed Apr 11, 2024
1 parent 61a7742 commit 8f3ff5d
Show file tree
Hide file tree
Showing 12 changed files with 149 additions and 139 deletions.
4 changes: 2 additions & 2 deletions static/apps.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="/assets/styles/main.css?v=8" />
<link rel="stylesheet" href="/assets/styles/themes/default.css?v=5" />
<script src="/assets/scripts/main.js?v=26"></script>
<script src="/assets/scripts/main.js?v=28"></script>
<script src="/assets/scripts/index.js?v=12"></script>
<script src="https://kit.fontawesome.com/1237c86ba0.js" crossorigin="anonymous"></script>
<script src="assets/scripts/a.js?v=34"></script>
Expand All @@ -37,7 +37,7 @@
</div>
<div class="pinned-apps"></div>
<div class="container-apps"></div>
<script src="/assets/scripts/main.js?v=26"></script>
<script src="/assets/scripts/main.js?v=28"></script>
<script async src="https://www.googletagmanager.com/gtag/js?id=G-WKJQ5QHQTJ"></script>
<script>
window.dataLayer = window.dataLayer || []
Expand Down
Binary file added static/assets/media/favicon/bim.ico
Binary file not shown.
114 changes: 111 additions & 3 deletions static/assets/scripts/h.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,117 @@ if (!inFrame && !navigator.userAgent.includes('Firefox')) {

document.addEventListener('DOMContentLoaded', function (event) {
if (window.localStorage.getItem('v4Particles') === 'true') {
const scr = document.createElement('script')
scr.src = '/assets/scripts/particles.js'
document.body.appendChild(scr)
var particlesConfig = {
particles: {
number: {
value: 200,
density: {
enable: true,
value_area: 600,
},
},
color: {
value: '#ffffff',
},
shape: {
type: 'circle',
stroke: {
width: 0,
color: '#000000',
},
polygon: {
nb_sides: 5,
},
image: {
src: 'img/github.svg',
width: 100,
height: 100,
},
},
opacity: {
value: 1,
random: true,
anim: {
enable: false,
speed: 1,
opacity_min: 0.1,
sync: false,
},
},
size: {
value: 3,
random: true,
anim: {
enable: false,
speed: 40,
size_min: 0.1,
sync: false,
},
},
line_linked: {
enable: false,
distance: 150,
color: '#ffffff',
opacity: 0.4,
width: 1,
},
move: {
enable: true,
speed: 2,
direction: 'bottom',
random: true,
straight: false,
out_mode: 'out',
bounce: false,
attract: {
enable: false,
rotateX: 600,
rotateY: 1200,
},
},
},
interactivity: {
detect_on: 'canvas',
events: {
onhover: {
enable: true,
mode: 'repulse',
},
onclick: {
enable: false,
mode: 'push',
},
resize: true,
},
modes: {
grab: {
distance: 400,
line_linked: {
opacity: 1,
},
},
bubble: {
distance: 400,
size: 40,
duration: 2,
opacity: 8,
speed: 3,
},
repulse: {
distance: 40,
duration: 0.4,
},
push: {
particles_nb: 4,
},
remove: {
particles_nb: 2,
},
},
},
retina_detect: true,
}
particlesJS('particles-js', particlesConfig)
}
})

Expand Down
10 changes: 10 additions & 0 deletions static/assets/scripts/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,16 @@ document.addEventListener('DOMContentLoaded', function (event) {
name.textContent = 'World History Encyclopedia'
localStorage.setItem('name', 'World History Encyclopedia')
localStorage.setItem('icon', '/assets/media/favicon/worldhistoryencyclopedia.png')
} else if (selectedValue === 'Big Ideas Math Assignment Player') {
icon.setAttribute('href', '/assets/media/favicon/bim.ico')
name.textContent = 'Assignment Player'
localStorage.setItem('name', 'Assignment Player')
localStorage.setItem('icon', '/assets/media/favicon/bim.ico')
} else if (selectedValue === 'Big Ideas Math') {
icon.setAttribute('href', '/assets/media/favicon/bim.ico')
name.textContent = 'Big Ideas Math'
localStorage.setItem('name', 'Big Ideas Math')
localStorage.setItem('icon', '/assets/media/favicon/bim.ico')
}
})
// Key
Expand Down
110 changes: 0 additions & 110 deletions static/assets/scripts/particles.js

This file was deleted.

35 changes: 17 additions & 18 deletions static/assets/scripts/settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -169,23 +169,6 @@ function updateHeadSection(selectedValue) {
icon.setAttribute('href', customIcon)
localStorage.setItem('name', customName)
localStorage.setItem('icon', customIcon)
} else {
if (selectedValue === 'Google') {
icon.setAttribute('href', '/assets/media/favicon/google.png')
name.textContent = 'Google'
localStorage.setItem('name', 'Google')
localStorage.setItem('icon', '/assets/media/favicon/google.png')
} else if (selectedValue === 'Drive') {
icon.setAttribute('href', '/assets/media/favicon/drive.png')
name.textContent = 'My Drive - Google Drive'
localStorage.setItem('name', 'My Drive - Google Drive')
localStorage.setItem('icon', '/assets/media/favicon/drive.png')
} else if (selectedValue === 'Classroom') {
icon.setAttribute('href', '/assets/media/favicon/classroom.png')
name.textContent = 'Home'
localStorage.setItem('name', 'Home')
localStorage.setItem('icon', '/assets/media/favicon/classroom.png')
}
}
}
// Background Image
Expand Down Expand Up @@ -277,19 +260,35 @@ function AB() {
const iframe = doc.createElement('iframe')
const style = iframe.style
const link = doc.createElement('link')

const name = localStorage.getItem('name') || 'My Drive - Google Drive'
const icon = localStorage.getItem('icon') || 'https://ssl.gstatic.com/docs/doclist/images/drive_2022q3_32dp.png'

doc.title = name
link.rel = 'icon'
link.href = icon

iframe.src = location.href
style.position = 'fixed'
style.top = style.bottom = style.left = style.right = 0
style.border = style.outline = 'none'
style.width = style.height = '100%'

doc.head.appendChild(link)
doc.body.appendChild(iframe)
location.replace('https://classroom.google.com')

const pLink = localStorage.getItem(encodeURI('pLink')) || 'https://www.nasa.gov/'
location.replace(pLink)

const script = doc.createElement('script')
script.textContent = `
window.onbeforeunload = function (event) {
const confirmationMessage = 'Leave Site?';
(event || window.event).returnValue = confirmationMessage;
return confirmationMessage;
};
`
doc.head.appendChild(script)
}
}
}
Expand Down
1 change: 1 addition & 0 deletions static/assets/styles/settings.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ body {
margin: 0;
padding: 0;
letter-spacing: 0px;
overflow-x: hidden;
}

.settings-container {
Expand Down
2 changes: 1 addition & 1 deletion static/games.html
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
<script src="./m/bundle.js?v=6"></script>
<script src="./m/config.js?v=6"></script>
<script src="https://kit.fontawesome.com/1237c86ba0.js" crossorigin="anonymous"></script>
<script src="/assets/scripts/main.js?v=26"></script>
<script src="/assets/scripts/main.js?v=28"></script>
<script async src="https://www.googletagmanager.com/gtag/js?id=G-WKJQ5QHQTJ"></script>
<script>
window.dataLayer = window.dataLayer || []
Expand Down
2 changes: 1 addition & 1 deletion static/go.html
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ <h1>Now.gg fix is being applied, please wait.</h1>
width="100%"
allowfullscreen></iframe>
<script src="assets/scripts/index.js?v=12"></script>
<script src="/assets/scripts/main.js?v=26"></script>
<script src="/assets/scripts/main.js?v=28"></script>
<script src="./m/bundle.js?v=5"></script>
<script src="./m/config.js?v=5"></script>
<script src="assets/scripts/frame.js?v=36"></script>
Expand Down
4 changes: 2 additions & 2 deletions static/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<body class="center" onload="splashtext()">
<div class="fixed-nav-bar"></div>
<div id="particles-js">
<script rel="preload" src="https://cdn.jsdelivr.net/particles.js/2.0.0/particles.js"></script>
<script rel="preload" src="https://cdn.jsdelivr.net/particles.js/2.0.0/"></script>
<div class="main">
<h1 class="title"><xn>Inter</xn>stellar</h1>
<p id="splash">Unknown</p>
Expand All @@ -32,7 +32,7 @@ <h1 class="title"><xn>Inter</xn>stellar</h1>
<script src="./m/bundle.js?v=5"></script>
<script src="./m/config.js?v=5"></script>
<script src="https://kit.fontawesome.com/1237c86ba0.js" crossorigin="anonymous"></script>
<script src="/assets/scripts/main.js?v=26"></script>
<script src="/assets/scripts/main.js?v=28"></script>
<script async src="https://www.googletagmanager.com/gtag/js?id=G-WKJQ5QHQTJ"></script>
<script>
window.dataLayer = window.dataLayer || []
Expand Down
4 changes: 3 additions & 1 deletion static/settings.html
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,8 @@ <h3>Tab Cloaker</h3>
<option value="GoGuardian Admin Restricted">GoGuardian Admin Block</option>
<option value="GoGuardian Teacher Block">GoGuardian Teacher Block</option>
<option value="World History Encyclopedia">World History Encyclopedia</option>
<option value="Big Ideas Math">Big Ideas Math</option>
<option value="Big Ideas Math Assignment Player">Big Ideas Math Assignment Player</option>
</select>
<input class="key-form" type="text" id="icon" placeholder="Change Tab Icon" name="icon" />
<input class="key-form" type="text" id="name" name="name" placeholder="Change Tab Name" />
Expand Down Expand Up @@ -162,7 +164,7 @@ <h3>Site Info</h3>
</div>
</div>
</div>
<script src="/assets/scripts/main.js?v=26"></script>
<script src="/assets/scripts/main.js?v=28"></script>
<script src="/assets/scripts/settings.js?v=16"></script>
<script async src="https://www.googletagmanager.com/gtag/js?id=G-WKJQ5QHQTJ"></script>
<script>
Expand Down
2 changes: 1 addition & 1 deletion static/tabs.html
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@
</script>
<script src="./m/bundle.js?v=4"></script>
<script src="./m/config.js?v=3"></script>
<script src="/assets/scripts/main.js?v=26"></script>
<script src="/assets/scripts/main.js?v=28"></script>
<script async src="https://www.googletagmanager.com/gtag/js?id=G-WKJQ5QHQTJ"></script>
<script>
window.dataLayer = window.dataLayer || []
Expand Down

0 comments on commit 8f3ff5d

Please sign in to comment.