repl.it
@lachlanjc/

90s-website

HTML, CSS, JS

No description

fork
loading
Files
  • index.html
  • index.css
  • index.js
index.html
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
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
<!-- This is a static file -->
<!-- served from your routes in server.js -->

<!-- You might want to try something fancier: -->
<!-- html/nunjucks docs: https://mozilla.github.io/nunjucks/ -->
<!-- pug: https://pugjs.org/ -->
<!-- haml: http://haml.info/ -->
<!-- hbs(handlebars): http://handlebarsjs.com/ -->

<!DOCTYPE html>
<html lang="en">
  <head>
    <title>How Cool Are You At School?</title>
    <link id="favicon" rel="icon" href="https://glitch.com/edit/favicon-app.ico" type="image/x-icon">
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
<!--     <meta name="viewport" content="width=device-width, initial-scale=1"> -->

    <!-- import the webpage's stylesheet -->
    <link rel="stylesheet" href="index.css">
    
    <!-- import the webpage's client-side javascript file -->
    <script src="index.js" defer></script>
  </head>
  <body>
    <img src="http://www.adverza.eu/underconstruction1.gif" width="300" style="position: fixed; top: 0; right: 0;">
    <header>
      <h1>
        w3lc0me to mai <a href="#">webs1te</a>
      </h1>
      <img src="https://orig00.deviantart.net/06a5/f/2016/053/f/9/_free_to_use_icons____sailor_moon_package_by_summersworld-d830kq1.png">
      <h2>
        r u kewl enough to be heer?
        <h3>
          NO NERDS ALLOWED
        </h3>
      </h2>
    </header>

    <main>
      <audio autoplay="true" controls hidden="true">
        <source src="http://smmidi0.tripod.com/yySM_ENG1.mid" type="audio/mid">
      </audio>
      <h1 class="bold">how c00l are u at sch00l</h1>
      <img src="https://zippy.gfycat.com/ElementaryMildBlesbok.gif" style="float: right;">
      <p>
        <a target="_blank" href="http://zombo.com">OPEN ZOMBO NOW</a>
      </p>
      
      <form id="quiz">
        <h4>
          UNDER CONSTRUCTION
        </h4>
        <img src="https://steamusercontent-a.akamaihd.net/ugc/439489410692279489/819B44C54554F8EBD9DD452143CD091E8C96BDBB/">
        <input name="name" type="text" maxlength="100" placeholder="ur name">
        <input name="dream" type="text" maxlength="100" placeholder="dream horse name">
        <input name="dream" type="text" maxlength="100" placeholder="sailor super-power">
        <input name="email" type="text" maxlength="100" placeholder="dream horse name">
        <button type="submit" id="submit-dream">!!! g1t ur r4dica1 2 k3wl 4 sk00l score FREE!!!</button>
      </form>
      
      <div id="results">
        
      </div>
    
    </main>

    <footer>
      <img src="https://vignette.wikia.nocookie.net/superheroes/images/e/eb/Sailor_Scouts.jpg/revision/latest?cb=20140130130840" style="float: right;">
      <h2>
        join le guestbook de moi (SAILOR G00n SQU/\D ONLY)
      </h2>
      <h2>
        ANTI NERD FIREWALL
      </h2>
      <img src="https://media.giphy.com/media/NTINffFKwlXvW/200.gif">
      <img src="https://media.giphy.com/media/NTINffFKwlXvW/giphy.gif" width="600">
      <form id="guestbook" style="display: flex; align-items: center; width: 100%;">
        <input name="name" type="text" placeholder="information superhighway communication name">  
        <button type="submit" id="submit-guest">add urself</button>
      </form>
      <section class="guests">
        <ul id="guests">
          <li>carl_from_math_class17</li>
        </ul>
      </section>
      
      <p>
        SAILOR GOON SQUAD 4 LYFE
      </p>
    </footer>
    
    <script>
      /*!
 * Fairy Dust Cursor.js
 * - 90's cursors collection
 * -- https://github.com/tholman/90s-cursor-effects
 * -- https://codepen.io/tholman/full/jWmZxZ/
 */

(function fairyDustCursor() {
  
  var possibleColors = ["#D61C59", "#E7D84B", "#1B8798"]
  var width = window.innerWidth;
  var height = window.innerHeight;
  var cursor = {x: width, y: height};
  var particles = [];
  
  function init() {
    bindEvents();
    loop();
  }
  
  // Bind events that are needed
  function bindEvents() {
    document.addEventListener('mousemove', onMouseMove);
    document.addEventListener('touchmove', onTouchMove);
    document.addEventListener('touchstart', onTouchMove);
    
    window.addEventListener('resize', onWindowResize);
  }
  
  function onWindowResize(e) {
    width = window.innerWidth;
    height = window.innerHeight;
  }
  
  function onTouchMove(e) {
    if( e.touches.length > 0 ) {
      for( var i = 0; i < e.touches.length; i++ ) {
        addParticle( e.touches[i].clientX, e.touches[i].clientY, possibleColors[Math.floor(Math.random()*possibleColors.length)]);
      }
    }
  }
  
  function onMouseMove(e) {    
    cursor.x = e.clientX;
    cursor.y = e.clientY;
    
    addParticle( cursor.x, cursor.y, possibleColors[Math.floor(Math.random()*possibleColors.length)]);
  }
  
  function addParticle(x, y, color) {
    var particle = new Particle();
    particle.init(x, y, color);
    particles.push(particle);
  }
  
  function updateParticles() {
    
    // Updated
    for( var i = 0; i < particles.length; i++ ) {
      particles[i].update();
    }
    
    // Remove dead particles
    for( var i = particles.length -1; i >= 0; i-- ) {
      if( particles[i].lifeSpan < 0 ) {
        particles[i].die();
        particles.splice(i, 1);
      }
    }
    
  }
  
  function loop() {
    requestAnimationFrame(loop);
    updateParticles();
  }
  
  /**
   * Particles
   */
  
  function Particle() {

    this.character = "*";
    this.lifeSpan = 120; //ms
    this.initialStyles ={
      "position": "absolute",
      "display": "block",
      "pointerEvents": "none",
      "z-index": "10000000",
      "fontSize": "24px",
      "will-change": "transform"
    };

    // Init, and set properties
    this.init = function(x, y, color) {

      this.velocity = {
        x:  (Math.random() < 0.5 ? -1 : 1) * (Math.random() / 2),
        y: 1
      };
      
      this.position = {x: x - 10, y: y - 20};
      this.initialStyles.color = color;

      this.element = document.createElement('span');
      this.element.innerHTML = this.character;
      applyProperties(this.element, this.initialStyles);
      this.update();
      
      document.body.appendChild(this.element);
    };
    
    this.update = function() {
      this.position.x += this.velocity.x;
      this.position.y += this.velocity.y;
      this.lifeSpan--;
      
      this.element.style.transform = "translate3d(" + this.position.x + "px," + this.position.y + "px, 0) scale(" + (this.lifeSpan / 120) + ")";
    }
    
    this.die = function() {
      this.element.parentNode.removeChild(this.element);
    }
    
  }
  
  /**
   * Utils
   */
  
  // Applies css `properties` to an element.
  function applyProperties( target, properties ) {
    for( var key in properties ) {
      target.style[ key ] = properties[ key ];
    }
  }
  
  init();
})();
    </script>
  </body>
</html>
result
console