Skip to content

Commit 7191d06

Browse files
committed
Override window.location and update font family
Added a script to override window.location for webring scripts in index.html. Updated font-family declarations in style.css to use 'Basicc' and fallback fonts. Added CSS rules to left-align webring widgets for improved layout consistency.
1 parent b94a21e commit 7191d06

File tree

2 files changed

+26
-2
lines changed

2 files changed

+26
-2
lines changed

index.html

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,19 @@ <h2 id="about" class="slide-in-left">About me!</h2>
6767
<p>I'm a breakcore enthusiast, and make some of it myself! (That's in the music section...)</p>
6868
</div>
6969
<div class="fade-in fade-in-delay-1">
70+
<script>
71+
// Override location for webring scripts
72+
Object.defineProperty(window, 'location', {
73+
value: {
74+
...window.location,
75+
hostname: 'ferretosan.neocities.org',
76+
href: 'https://ferretosan.neocities.org' + window.location.pathname,
77+
origin: 'https://ferretosan.neocities.org',
78+
host: 'ferretosan.neocities.org'
79+
},
80+
writable: false
81+
});
82+
</script>
7083
<div id="ckwr">
7184
<script type="text/javascript" src="https://evehibi.nekoweb.org/ckwr/var.js"></script>
7285
<script type="text/javascript" src="https://evehibi.nekoweb.org/ckwr/widget.js"></script>

style.css

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ h2 {
3232
border-radius: 0px;
3333
background: #2d1b40;
3434
padding-left: 10px;
35-
font-family: Basiic;
35+
font-family: 'Basicc', 'Courier New', 'Monaco', 'Menlo', 'Consolas', monospace;
3636
text-shadow: 1px 1px 0px #4c1d95;
3737
}
3838

@@ -65,7 +65,7 @@ a:hover {
6565
display: inline-block;
6666
border-radius: 0px;
6767
background: #1e1b3d;
68-
font-family: Basiic;
68+
font-family: 'Basicc', 'Courier New', 'Monaco', 'Menlo', 'Consolas', monospace;
6969
font-weight: bold;
7070
}
7171

@@ -233,6 +233,17 @@ p {
233233
text-shadow: 1px 1px 0px #1e1b3d;
234234
}
235235

236+
/* Webring alignment */
237+
#ckwr, #gfdkris {
238+
text-align: left !important;
239+
}
240+
241+
#ckwr *, #gfdkris * {
242+
text-align: left !important;
243+
margin-left: 0 !important;
244+
margin-right: auto !important;
245+
}
246+
236247
/* Scroll animations */
237248
.fade-in {
238249
opacity: 0;

0 commit comments

Comments
 (0)