Home Events! Entrance Everyone Wiki Search Login Register

Welcome, Guest. Please login or register. - Thinking of joining the forum??
November 23, 2024 - @969.36 (what is this?)
Forum activity rating: Three Stars Posts: 35/1k.beats Unread Topics | Unread Replies | My Stuff | Random Topic | Recent Posts    Start New Topic
News: :skull: Websites are like whispers in the night  :skull:

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


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


So many stars!

⛺︎ My Room
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.

⛺︎ My Room
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 ⚓︎
****


Icey/Iceys

⛺︎ My Room

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

Memory
Guest
« Reply #3 on: April 10, 2024 @2.80 »

[removed by author]
« Last Edit: July 31, 2024 @651.27 by j » Logged
Yaya
Full Member
***


⛺︎ My Room
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 🔛 🔝

⛺︎ My Room
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: 4757
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: 2431
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: 30
Views: 8829
Last post August 02, 2024 @153.99
by candycanearter07

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


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