Updated theme Galaxy
This commit is contained in:
parent
9366519a9c
commit
3c7d6c0906
|
@ -41,7 +41,7 @@ return [
|
||||||
// Disable individual files (only applies if above is 'true').
|
// Disable individual files (only applies if above is 'true').
|
||||||
'enable_custom_head' => 'true',
|
'enable_custom_head' => 'true',
|
||||||
'enable_custom_body' => 'false',
|
'enable_custom_body' => 'false',
|
||||||
'enable_custom_body_end' => 'false',
|
'enable_custom_body_end' => 'true',
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
|
@ -0,0 +1,42 @@
|
||||||
|
{{-- Crude fix for the stars on higher resolutions --}}
|
||||||
|
<script>
|
||||||
|
|
||||||
|
const object1 = []
|
||||||
|
const object2 = []
|
||||||
|
const object3 = []
|
||||||
|
|
||||||
|
const numberOfobject1 = '1000'
|
||||||
|
const numberOfobject2 = '600'
|
||||||
|
const numberOfobject3 = '100'
|
||||||
|
|
||||||
|
|
||||||
|
for (let i = 0; i < numberOfobject1; i++) {
|
||||||
|
const pos1 = (Math.floor(Math.random() * 5200))
|
||||||
|
const pos2 = (Math.floor(Math.random() * 5200))
|
||||||
|
object1.push(`${pos1}px ${pos2}px #fff`)
|
||||||
|
}
|
||||||
|
|
||||||
|
for (let i = 0; i < numberOfobject2; i++) {
|
||||||
|
const pos1 = (Math.floor(Math.random() * 5200))
|
||||||
|
const pos2 = (Math.floor(Math.random() * 5200))
|
||||||
|
object2.push(`${pos1}px ${pos2}px #fff`)
|
||||||
|
}
|
||||||
|
|
||||||
|
for (let i = 0; i < numberOfobject3; i++) {
|
||||||
|
const pos1 = (Math.floor(Math.random() * 5200))
|
||||||
|
const pos2 = (Math.floor(Math.random() * 5200))
|
||||||
|
object3.push(`${pos1}px ${pos2}px #fff`)
|
||||||
|
}
|
||||||
|
|
||||||
|
const addCSS = css => document.head.appendChild(document.createElement("style")).innerHTML = css;
|
||||||
|
|
||||||
|
addCSS(`#object1{ box-shadow:${object1}}`)
|
||||||
|
addCSS(`#object1:after{ box-shadow:${object1}}`)
|
||||||
|
|
||||||
|
addCSS(`#object2{ box-shadow:${object2}}`)
|
||||||
|
addCSS(`#object2:after{ box-shadow:${object2}}`)
|
||||||
|
|
||||||
|
addCSS(`#object3{ box-shadow:${object3}}`)
|
||||||
|
addCSS(`#object3:after{ box-shadow:${object3}}`)
|
||||||
|
|
||||||
|
</script>
|
|
@ -2,7 +2,7 @@
|
||||||
Find more themes: https://github.com/linkstackorg/linkstack-themes
|
Find more themes: https://github.com/linkstackorg/linkstack-themes
|
||||||
|
|
||||||
* Theme Name: Galaxy
|
* Theme Name: Galaxy
|
||||||
* Theme Version: 1.9
|
* Theme Version: 2.0
|
||||||
* Theme Date: 2022-06-09
|
* Theme Date: 2022-06-09
|
||||||
* Theme Author: JulianPrieber & LinkStack Team
|
* Theme Author: JulianPrieber & LinkStack Team
|
||||||
* Theme Author URI: https://github.com/JulianPrieber
|
* Theme Author URI: https://github.com/JulianPrieber
|
||||||
|
|
Loading…
Reference in New Issue