Skip to content

Commit

Permalink
The website now uses javascript for setting christmas lights gif when…
Browse files Browse the repository at this point in the history
… comming December month
  • Loading branch information
nixxoq committed Jan 12, 2024
1 parent c3052e8 commit fa465ff
Show file tree
Hide file tree
Showing 6 changed files with 35 additions and 16 deletions.
17 changes: 12 additions & 5 deletions guides/index.htm
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,24 @@
<title>Snaky1a's Home Page</title>
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon">

<script>
var currentDate = new Date();
var currentMonth = currentDate.getMonth();
var currentDay = currentDate.getDate();
var currentYear = currentDate.getFullYear() + 1 ? currentDate.getMonth() == 12 : currentDate.getFullYear();

if (currentMonth == 0 && currentDay >= 1 && currentDay <= 12) {
document.write('<p align="center"><img src="images/christmas-lights.gif" alt="Happy new Year!"></p>')
}
</script>

<!-- styles -->
</head>

<!-- Body -->

<body bgcolor="#000000">
<!-- Banners -->
<p align="center">
<img src="/images/christmas-lights.gif" alt="Happy new Year!">
</p>

<p align="center">
<a href="/index.htm">
<img src="/images/index.htm_cmp_artsy010_bnr.gif" alt="Snaky1a's Website">
Expand Down Expand Up @@ -77,7 +84,7 @@
</td>
</tr>
<tr>

</tr>
</table>
</td>
Expand Down
15 changes: 11 additions & 4 deletions guides/windows_xp_tls1_2.htm
Original file line number Diff line number Diff line change
Expand Up @@ -10,17 +10,24 @@
<title>Snaky1a's Home Page</title>
<link rel="shortcut icon" href="/favicon.ico" type="image/x-icon">

<script>
var currentDate = new Date();
var currentMonth = currentDate.getMonth();
var currentDay = currentDate.getDate();
var currentYear = currentDate.getFullYear() + 1 ? currentDate.getMonth() == 12 : currentDate.getFullYear();

if (currentMonth == 0 && currentDay >= 1 && currentDay <= 12) {
document.write('<p align="center"><img src="images/christmas-lights.gif" alt="Happy new Year!"></p>')
}
</script>

<!-- styles -->
</head>

<!-- Body -->

<body bgcolor="#000000">
<!-- Banners -->
<p align="center">
<img src="/images/christmas-lights.gif" alt="Happy new Year!">
</p>

<p align="center">
<a href="/index.htm">
<img src="/images/index.htm_cmp_artsy010_bnr.gif" alt="Snaky1a's Website">
Expand Down
5 changes: 3 additions & 2 deletions index.htm
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@
var currentMonth = currentDate.getMonth();
var currentDay = currentDate.getDate();

if (currentMonth == 0 && currentDay >= 1 && currentDay <= 12) { document.write('<p align="center"><img src="/images/christmas-lights.gif" alt="Happy new Year!"></p>') }
if (currentMonth == 0 && currentDay >= 1 && currentDay <= 12) {
document.write('<p align="center"><img src="/images/christmas-lights.gif" alt="Happy new Year!"></p>')
}
</script>
<!-- styles -->
</head>
Expand All @@ -24,7 +26,6 @@

<body bgcolor="#000000">
<!-- Banners -->

<p align="center">
<a href="/index.htm">
<img src="/images/index.htm_cmp_artsy010_bnr.gif" alt="Snaky1a's Website">
Expand Down
5 changes: 3 additions & 2 deletions useful.htm
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@
var currentMonth = currentDate.getMonth();
var currentDay = currentDate.getDate();

if (currentMonth == 0 && currentDay >= 1 && currentDay <= 11) { document.write('<p align="center"><img src="/images/christmas-lights.gif" alt="Happy new Year!"></p>') }
if (currentMonth == 0 && currentDay >= 1 && currentDay <= 12) {
document.write('<p align="center"><img src="/images/christmas-lights.gif" alt="Happy new Year!"></p>')
}
</script>

<!-- styles -->
Expand All @@ -25,7 +27,6 @@

<body bgcolor="#000000">
<!-- Banners -->

<p align="center">
<a href="/index.htm">
<img src="/images/index.htm_cmp_artsy010_bnr.gif" alt="Snaky1a's Website">
Expand Down
4 changes: 3 additions & 1 deletion windows_95_apps.htm
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@
var currentMonth = currentDate.getMonth();
var currentDay = currentDate.getDate();

if (currentMonth == 0 && currentDay >= 1 && currentDay <= 12) { document.write('<p align="center"><img src="/images/christmas-lights.gif" alt="Happy new Year!"></p>') }
if (currentMonth == 0 && currentDay >= 1 && currentDay <= 12) {
document.write('<p align="center"><img src="/images/christmas-lights.gif" alt="Happy new Year!"></p>')
}
</script>

<!-- styles -->
Expand Down
5 changes: 3 additions & 2 deletions windows_xp_apps.htm
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@
var currentMonth = currentDate.getMonth();
var currentDay = currentDate.getDate();

if (currentMonth == 0 && currentDay >= 1 && currentDay <= 12) { document.write('<p align="center"><img src="/images/christmas-lights.gif" alt="Happy new Year!"></p>') }
if (currentMonth == 0 && currentDay >= 1 && currentDay <= 12) {
document.write('<p align="center"><img src="/images/christmas-lights.gif" alt="Happy new Year!"></p>')
}
</script>

<!-- styles -->
Expand All @@ -27,7 +29,6 @@

<body bgcolor="#000000">
<!-- Banners -->

<p align="center">
<a href="/index.htm">
<img src="/images/index.htm_cmp_artsy010_bnr.gif" alt="Snaky1a's Website">
Expand Down

0 comments on commit fa465ff

Please sign in to comment.