Advertisement
Guest User

Untitled

a guest
Jan 17th, 2019
238
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.23 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html lang="en-gb">
  3. <head>
  4. <title>SEO - Sample Projects</title>
  5. <meta http-equiv="X-UA-Compatible" content="IE=edge">
  6. <!-- Meta is a Void tag -->
  7. <meta name="author" content="">
  8. <meta name="description" content="An effective SEO description of the page.">
  9. <meta name="keywords" content="An, effective, SEO description, of, the, page">
  10. <meta charset="utf-8">
  11. <meta name="viewport" content="width=device-width, initial-scale=1.0">
  12. <!-- Google Fonts -->
  13. <link href="https://fonts.googleapis.com/css?family=Secular+One" rel="stylesheet">
  14. <link href="https://fonts.googleapis.com/css?family=Assistant" rel="stylesheet">
  15. <link rel="stylesheet" href="css/styles.css">
  16. <link rel="stylesheet" href="css/custom.css">
  17. <link rel="stylesheet" href="css/media.css">
  18. <!-- Font Awesome -->
  19. <link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.5.0/css/all.css" integrity="sha384-B4dIYHKNBt8Bc12p+WXckhzcICo0wtJAoU8YZTY5qE0Id1GSseTk6S+L3BlXeVIU" crossorigin="anonymous">
  20. <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/css/font-awesome.min.css">
  21. <script src="https://code.jquery.com/jquery-3.3.1.js" integrity="sha256-2Kok7MbOyxpgUVvAk/HJ2jigOSYS2auK4Pfzbm7uH60=" crossorigin="anonymous"></script>
  22. <script type="javascript" src="js/alterClass.js"></script>
  23. <script>
  24. $(document).ready(function(){
  25. // DOM is Ready
  26.  
  27. var sliding = false;
  28.  
  29. $('#next').click(function(){
  30. if(sliding === false){
  31. sliding = true;
  32. $('.slide').css("transition","all 2s");
  33. var obj = $('#slideshow img:first-child');
  34. var w = obj.width();
  35. w = "-=" + w + "px";
  36.  
  37. $('.slide').css("left",w);
  38.  
  39. $('#slideshow-outer i').css("color","#404040");
  40. $('#slideshow-outer i').css("border-color","#404040");
  41. $('#slideshow-outer i').css("cursor", "auto");
  42.  
  43. setTimeout(function(){
  44. obj.remove();
  45. $('#slideshow').append(obj);
  46. $('.slide').css("transition","none");
  47. $('.slide').css("left", '0');
  48. $('#slideshow-outer i').attr("style","");
  49. sliding = false;
  50. },2000);
  51. }
  52.  
  53. });
  54.  
  55.  
  56.  
  57. $('#prev').click(function(){
  58.  
  59. if(sliding === false){
  60. $('.slide').css("transition","none");
  61. sliding = true;
  62. var obj = $('#slideshow img:last-child');
  63. obj.remove();
  64. $('#slideshow').prepend(obj);
  65. var w = obj.width();
  66. w = "-=" + w + "px";
  67. $('.slide').css("left",y);
  68. $('.slide').css("transition","all 2s");
  69. $('.slide').css("left","0");
  70.  
  71. $('#slideshow-outer i').css("color","#404040");
  72. $('#slideshow-outer i').css("border-color","#404040");
  73. $('#slideshow-outer i').css("cursor", "auto");
  74.  
  75. setTimeout(function(){
  76. $('#slideshow-outer i').attr("style","");
  77. sliding = false;
  78. },2000);
  79. }
  80.  
  81. });
  82.  
  83. }); // DOC Ready
  84. </script>
  85.  
  86. <h1>The Wire Car Collection</h1>
  87.  
  88. <nav id="top-nav" role="navigation">
  89. <ul>
  90. <a href=".html">All Cars</a>
  91. <a href=".html">Shop</a>
  92. <a href=".html">Commission</a>
  93. <a href=".html">Proress</a>
  94. <a href=".html">About</a>
  95. </ul>
  96. </nav>
  97.  
  98. <div id="slideshow-outer">
  99. <i id="prev" class="fas fa-angle-left" title="Click to view previous model"></i>
  100. <div id="slideshow">
  101. <img class="slide" src="assets/cars/rwb-porsche.png" alt="RWB Porsche" longdesc="wire model of a rwb porsche against black background">
  102. <img class="slide" src="assets/cars/ferrari-f40.png" alt="Ferrari F40" longdesc="wire model of a ferrari f40 against black background">
  103. <img class="slide" src="assets/cars/honda-nsx.png" alt="Honda NSX" longdesc="wire model of a honda nsx against black background">
  104. </div>
  105. <i id="next" class="fas fa-angle-right" title="Click to view next model"></i>
  106. </div>
  107.  
  108. </head>
  109. <body>
  110. <header>
  111.  
  112. </header>
  113. <nav>
  114.  
  115. </nav>
  116. <main>
  117.  
  118. </main>
  119. <footer class="invert txt-r">
  120. <i class="fa fa-facebook"></i>
  121. <i class="fa fa-twitter"></i>
  122. <i class="fa fa-instagram"></i>
  123. <i class="fa fa-youtube-play"></i>
  124.  
  125. </footer>
  126. </body>
  127. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement