Guest User

HTML

a guest
Sep 7th, 2016
140
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 5 2.05 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4.     <title>Best Game Servers - New Homepage!</title>
  5.     <meta charset="utf-8">
  6.     <link href="main.css" rel="stylesheet" type="text/css">
  7.     <script type="text/javascript" src="js/jquery-3.1.0.js"></script>
  8.     <script type="text/javascript" src="js/jquery-3.1.0.min.js"></script>
  9.     <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
  10.     <script>
  11.     $(document).ready(function(){
  12.       $("a").on('click', function(event) {
  13.  
  14.         if (this.hash !== "") {
  15.           event.preventDefault();
  16.  
  17.           var hash = this.hash;
  18.  
  19.           $('html, body').animate({
  20.             scrollTop: $(hash).offset().top
  21.           }, 700, function(){
  22.  
  23.             window.location.hash = hash;
  24.           });
  25.         }
  26.       });
  27.  
  28.       var arrow = $('#scroll-down');
  29.       function runIt() {
  30.           arrow.animate({top:'+=10'}, 800);
  31.           arrow.animate({top:'-=10'}, 800, runIt);
  32.       }
  33.  
  34.       runIt();
  35.     });
  36.     </script>
  37.     <script type='text/javascript' data-cfasync='false'>window.purechatApi = { l: [], t: [], on: function () { this.l.push(arguments); } }; (function () { var done = false; var script = document.createElement('script'); script.async = true; script.type = 'text/javascript'; script.src = 'https://app.purechat.com/VisitorWidget/WidgetScript'; document.getElementsByTagName('HEAD').item(0).appendChild(script); script.onreadystatechange = script.onload = function (e) { if (!done && (!this.readyState || this.readyState == 'loaded' || this.readyState == 'complete')) { var w = new PCWidget({c: 'bcab4620-a068-4fee-a8d2-48ad77dae95b', f: true }); done = true; } }; })();</script>
  38. </head>
  39. <body>
  40.     <div id="hero-image"></div>
  41.     <div id="scroll-down">
  42.         <a href="#features"><div id="scroll-arrow"></div></a>
  43.     </div>
  44.  
  45.     <div id="hero-content">
  46.         <div id="hero-title">Best Game Servers</div>
  47.         <img id="hero-computers" src="img/hero-computer.png">
  48.     </div>
  49.  
  50.     <div id="features">
  51.         <h1>Test</h1>
  52.     </div>
  53. </body>
  54. </html>
Add Comment
Please, Sign In to add comment