Home Entrance Everyone Wiki Search Login Register

Welcome, Guest. Please login or register. - Thinking of joining the forum??
July 21, 2024 - @86.19 (what is this?)
Forum activity rating: Two Star Posts: 18/1k.beats Unread Topics | Unread Replies | Own Posts | Own Topics | Random Topic | Recent Posts
News: :4u: ~~~~~~~~~~~  :4u:

+  MelonLand Forum
|-+  World Wild Web
| |-+  ♺ ∙ Web Crafting Materials
| | |-+  Simple Site Closer Script!


« previous next »
Pages: [1] Print
Author Topic: Simple Site Closer Script!  (Read 1404 times)
Melooon
Hero Member ⚓︎
*****


So many stars!

SpaceHey: Friend Me!
StatusCafe: melon
iMood: Melonking
Itch.io: My Games

View Profile WWW

Thanks for being rad!a puppy for your travelsAlways My PalFirst 1000 Members!spring 2023!Squirtle!!!!MIDI WarriorMIDI Warrior1234 Posts!OzspeckCool Dude AwardRising Star of the Web AwardMessage BuddyPocket Icelogist!OG! Joined 2021!...
« on: May 18, 2023 @768.72 »

Site Closer Script
I made a very simple script that will allow you to close your site on Mondays (or any other day) like my sites do!  :pc:

It's not perfect because it depends on Javascript, so someone can bypass it if they disable JS, but since its mostly a fun feature I don't think that's actually a big deal!

To close your site on Mondays, just create your own closed.html page, then place this code on the HEAD of the page you wanna close (your index.html, or particular pages if you don't wanna close your whole site.)  :grin:

Code
<script src="https://melonking.net/scripts/site-closer.js"></script>
<script>
  // sc.closedPage = "closed.html"; // Optional: change the closed page URL
  // sc.closedDays = ["Monday"]; // Optional: change the days to close (default is Monday)
  shutItDown();
</script>
« Last Edit: April 10, 2024 @537.13 by Melooon » Logged


everything lost will be recovered, when you drift into the arms of the undiscovered
Lyonid
Jr. Member ⚓︎
**


Controlled Chaos ~ Please be kind.

SpaceHey: Friend Me!

View Profile WWW

First 1000 Members!Joined 2023!
« Reply #1 on: May 18, 2023 @786.23 »

 :4u: I love this, this is so fun. I will draw a little picture of a closed laboratorium to make everyone on my site take a breather on Fridays. This is the first step towards a great labour union for internet protocols.
Logged

xx <3
Icey!
Sr. Member ⚓︎
****


Any/All


View Profile WWW

First 1000 Members!Pro Bug Finder!OG! Joined 2021!High Speed Ozwomp!
« Reply #2 on: April 10, 2024 @971.12 »

Thank melon!  :4u:  This is gonna make my site feel 100% more personal!... That is if I can revise it before Monday. Been months since I made a "true" update.
Logged



:ozwomp: my beloved

j
Full Member ⚓︎
***


bleh bleh *gargle gargle*


View Profile

First 1000 Members!Joined 2023!
« Reply #3 on: April 10, 2024 @2.80 »

ironically i have something very juxtaposed to this: a page on my site that's only visible on September 19th (International Talk Like a Pirate Day!)
« Last Edit: June 26, 2024 @802.43 by j » Logged
Yaya
Jr. Member
**


StatusCafe: yaya

View Profile WWW

Joined 2024!
« Reply #4 on: April 10, 2024 @82.79 »

WOW~! Adding it now! This is so cool!
Logged
clowdywings
Casual Poster ⚓︎
*


transmasc cyberpunk ocs 🔛 🔝

SpaceHey: Friend Me!
StatusCafe: clowdywings
iMood: clowdywings
Itch.io: My Games

View Profile WWW

Joined 2024!
« Reply #5 on: April 30, 2024 @149.53 »

oooh this is really cool, thanks for the code!
Logged

Pages: [1] Print 
« previous next »
 

Vaguely similar topics! (3)

GUIDE: Melon's Simple X3D World Tutorial

Started by MelooonBoard ♺ ∙ Web Crafting Materials

Replies: 5
Views: 4350
Last post February 17, 2022 @637.75
by demonologi
Best way to have a 2 column site?

Started by ObspogonBoard ☔︎ ∙ I need Help!

Replies: 3
Views: 2180
Last post February 13, 2023 @208.53
by fLaMEd
How do you prefer to keep your site organized (or not)

Started by NightdriftBoard ✁ ∙ Web Crafting

Replies: 29
Views: 7780
Last post July 17, 2024 @105.61
by Zombiethederg

Melonking.Net © Always and ever was! SMF 2.0.19 | SMF © 2021, Simple Machines | Terms and Policies Forum Guide | Rules | RSS | WAP2


MelonLand Badges and Other Melon Sites!

MelonLand Project! Visit the MelonLand Forum! Support the Forum
Visit Melonking.Net! Visit the Gif Gallery! Pixel Sea TamaNOTchi