Skip to content

Commit 3c7d6c0

Browse files
committed
Updated theme Galaxy
1 parent 9366519 commit 3c7d6c0

File tree

3 files changed

+44
-2
lines changed

3 files changed

+44
-2
lines changed

themes/galaxy/config.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
// Disable individual files (only applies if above is 'true').
4242
'enable_custom_head' => 'true',
4343
'enable_custom_body' => 'false',
44-
'enable_custom_body_end' => 'false',
44+
'enable_custom_body_end' => 'true',
4545

4646

4747
/*
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
{{-- Crude fix for the stars on higher resolutions --}}
2+
<script>
3+
4+
const object1 = []
5+
const object2 = []
6+
const object3 = []
7+
8+
const numberOfobject1 = '1000'
9+
const numberOfobject2 = '600'
10+
const numberOfobject3 = '100'
11+
12+
13+
for (let i = 0; i < numberOfobject1; i++) {
14+
const pos1 = (Math.floor(Math.random() * 5200))
15+
const pos2 = (Math.floor(Math.random() * 5200))
16+
object1.push(`${pos1}px ${pos2}px #fff`)
17+
}
18+
19+
for (let i = 0; i < numberOfobject2; i++) {
20+
const pos1 = (Math.floor(Math.random() * 5200))
21+
const pos2 = (Math.floor(Math.random() * 5200))
22+
object2.push(`${pos1}px ${pos2}px #fff`)
23+
}
24+
25+
for (let i = 0; i < numberOfobject3; i++) {
26+
const pos1 = (Math.floor(Math.random() * 5200))
27+
const pos2 = (Math.floor(Math.random() * 5200))
28+
object3.push(`${pos1}px ${pos2}px #fff`)
29+
}
30+
31+
const addCSS = css => document.head.appendChild(document.createElement("style")).innerHTML = css;
32+
33+
addCSS(`#object1{ box-shadow:${object1}}`)
34+
addCSS(`#object1:after{ box-shadow:${object1}}`)
35+
36+
addCSS(`#object2{ box-shadow:${object2}}`)
37+
addCSS(`#object2:after{ box-shadow:${object2}}`)
38+
39+
addCSS(`#object3{ box-shadow:${object3}}`)
40+
addCSS(`#object3:after{ box-shadow:${object3}}`)
41+
42+
</script>

themes/galaxy/readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
Find more themes: https://github.com/linkstackorg/linkstack-themes
33

44
* Theme Name: Galaxy
5-
* Theme Version: 1.9
5+
* Theme Version: 2.0
66
* Theme Date: 2022-06-09
77
* Theme Author: JulianPrieber & LinkStack Team
88
* Theme Author URI: https://github.com/JulianPrieber

0 commit comments

Comments
 (0)