-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
145 lines (122 loc) · 4.19 KB
/
index.html
File metadata and controls
145 lines (122 loc) · 4.19 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<!--Created by GeoCities Home Page Generator-->
<HTML>
<HEAD>
<META HTTP-EQUIV="Keywords" NAME="Keywords" CONTENT="Hamster Dance, Hampster Dance, The Hamster Dance, Dancing hamster's, original, MeHampster, hamster, web, star, pet, dedodedo, hamster care, Hampton Hampster, karate, racing, hamster house, home, castle, hamster dancing, rodent, pine bedding, wheel, water bottle, drag racing, Hampton Hampster's Hamster House">
<TITLE>The Hampster Dance</TITLE>
<STYLE>
html { width: 100%; }
body {
max-width: 770px;
margin-left: auto;
margin-right: auto;
background-color: #FFFFFF;
color: #000000;
font-family: Times New Roman, serif;
}
a { color: #0000FF; }
a:visited { color: #551A8B; }
/* Break dance floor out of the body max-width constraint */
#dance-floor {
position: relative;
left: 50%;
transform: translateX(-50%);
width: 100vw;
}
.row {
display: flex;
flex-wrap: nowrap;
overflow: hidden;
justify-content: flex-start;
line-height: 0;
margin: 0;
padding: 0;
width: 100%;
}
.row img {
display: block;
flex-shrink: 0;
}
</STYLE>
</HEAD>
<BODY BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#0000FF" VLINK="#551A8B">
<audio id="ded" src="https://www.webhamster.com/myturf/page/0/music" loop></audio>
<div id="dance-floor"></div>
<BR><BR>
<CENTER>
<TABLE>
<TR>
<TD VALIGN=TOP ALIGN=LEFT NOWRAP><A HREF="dedodedo.wav"><IMG SRC="hamster-hammy.gif" WIDTH=30 HEIGHT=35 BORDER=0></A></TD>
<TD VALIGN=TOP ALIGN=LEFT NOWRAP><A HREF="dedodedo.wav">dedodedo.wav</A></TD>
<TD VALIGN=TOP ALIGN=LEFT NOWRAP>14-Aug-97 21:20</TD>
<TD VALIGN=TOP ALIGN=LEFT NOWRAP>24K</TD>
<TD VALIGN=TOP ALIGN=LEFT><I>audio/wav</I></TD>
</TR>
</TABLE>
</CENTER>
<CENTER>Right click on your mouse (hamster) and Save Target As.....<BR><BR>
<LI><A HREF="#">Hamsterdance Update</A></CENTER><BR><BR>
<CENTER>Return to <A HREF="#">Main Page</A></CENTER>
<BR><BR>
<CENTER><P><A HREF="#"><IMG SRC="hamster-spins.gif" WIDTH=27 HEIGHT=35 BORDER=0></A></P></CENTER>
<CENTER><P><A HREF="#">View Guestbook</A></P></CENTER>
<BR>
<HR>
<CENTER><B>
This page hosted by <A HREF="#">GeoCities</A>
Get your own <A HREF="#">Free Home Page</A>
</B></CENTER>
<BR>
<CENTER>
<P>© copyright by Deidre LaCarte</P>
<P><FONT FACE="arial" SIZE="1"><A HREF="#">FastCounter by LinkExchange</A></FONT></P>
<P>© 1997 <A HREF="mailto:mehampster@aol.com"><I>mehampster@aol.com</I></A><BR>
Last Updated November 14, 1999</P>
</CENTER>
<SCRIPT>
// Scale all GIFs to the same height, preserving aspect ratio
var TARGET_H = 70;
var gifs = [
{ src: 'hamster-spins.gif', w: 54, h: 70 },
{ src: 'b5K.gif', w: 200, h: 200 },
{ src: 'squirrel.gif', w: 117, h: 163 },
{ src: 'hamster-hammy.gif', w: 60, h: 70 },
].map(function(g) {
var scale = TARGET_H / g.h;
return { src: g.src, w: Math.round(g.w * scale), h: TARGET_H };
});
// Row pattern matching original: anin, hamu, anin, gerbil, anin, hamwalk, anin, anin, hamu ...
var pattern = [0, 1, 0, 2, 0, 3, 0, 1, 0, 2, 0, 3, 0, 1, 0, 2, 0, 3, 0];
function buildRows() {
var container = document.getElementById('dance-floor');
container.innerHTML = '';
var maxW = window.innerWidth;
pattern.forEach(function(gifIdx) {
var gif = gifs[gifIdx];
var count = Math.floor(maxW / gif.w);
if (count < 1) count = 1;
var row = document.createElement('div');
row.className = 'row';
for (var i = 0; i < count; i++) {
var img = document.createElement('img');
img.src = gif.src;
img.width = gif.w;
img.height = gif.h;
img.border = 0;
row.appendChild(img);
}
container.appendChild(row);
});
}
buildRows();
window.addEventListener('resize', buildRows);
// Autoplay audio on first interaction
var aud = document.getElementById('ded');
function tryPlay() { if (aud) aud.play().catch(function(){}); }
tryPlay();
['click','keydown','touchstart'].forEach(function(e){
document.body.addEventListener(e, tryPlay, { once: true });
});
</SCRIPT>
</BODY>
</HTML>