Home Entrance Everyone Wiki Search Login Register

Welcome, Guest. Please login or register. - Thinking of joining the forum??
April 19, 2024 - @60.58 (what is this?)
Forum activity rating: Four Star Posts: 59/1k.beats Unread Topics | Unread Replies | Own Posts | Own Topics | Random Topic | Recent Posts
News: :dive: Are u having fun?? :dive:

+  MelonLand Forum
|-+  World Wild Web
| |-+  ☆ ∙ Showcase & Links
| | |-+  ⚛︎ ∙ Share your Resources
| | | |-+  Simple Site Closer Script!


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


So many stars!

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

View Profile WWW

First 1000 Members!spring 2023!Squirtle!!!!MIDI WarriorMIDI Warrior1234 Posts!OzspeckCool Dude AwardRising Star of the Web AwardMessage BuddyPocket Icelogist!OG! Joined 2021!The Smallest Ozwomp Known To ManBug!
« 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 ⚓︎
****



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 WWW

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!) at home.pryvian.net/merlin/arr.html. great minds think alike!
Logged

i go by j, she/they :)
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
Pages: [1] Print 
« previous next »
 

Vaguely similar topics! (3)

GUIDE: Melon's Simple X3D World Tutorial

Started by MelooonBoard ✎ ∙ Art Crafting

Replies: 5
Views: 3756
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: 1912
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: 26
Views: 5741
Last post January 26, 2024 @915.29
by Paprika

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