|
10 | 10 | if they're not showing, one of the links could be broken!
|
11 | 11 |
|
12 | 12 | Need support?
|
13 |
| - Leave a comment on the SpigotMC page |
| 13 | + PM me on SpigotMC (https://www.spigotmc.org/members/gewoonrick.31710/) |
14 | 14 |
|
15 | 15 | See anything broken?
|
16 |
| - Leave a comment on the SpigotMC page |
| 16 | + PM me on SpigotMC (https://www.spigotmc.org/members/gewoonrick.31710/) |
17 | 17 |
|
18 | 18 | -->
|
19 | 19 | <!DOCTYPE html>
|
|
51 | 51 | <a href="#gamemodes">Gamemodes</a>
|
52 | 52 | <a href="#vote">Vote</a>
|
53 | 53 | <a href="#staff">Staff</a>
|
54 |
| - <a href="javascript:void(0);" style="font-size:15px;" class="icon" onclick="myFunction()">☰</a> |
| 54 | + <a href="javascript:void(0);" style="font-size:15px;" class="icon" onclick="myFunction()">☰</a> |
55 | 55 | </div>
|
56 | 56 | </div>
|
57 | 57 | <!-- End Navbar -->
|
@@ -294,36 +294,45 @@ <h2>Some dude</h2>
|
294 | 294 | </footer>
|
295 | 295 | <!-- End Footer -->
|
296 | 296 |
|
297 |
| - <!-- Smooth Scrolling Script | Do not touch if you don't know what you're doing! --> |
298 |
| - <script type="text/javascript"> |
299 |
| - window.scroll({ |
300 |
| - top: 2500, //Can be edited |
301 |
| - left: 0, //Can be edited, you should not. |
302 |
| - behavior: 'smooth' //Should not edit |
303 |
| - }); |
304 |
| - |
305 |
| - window.scrollBy({ |
306 |
| - top: -100, //Can be edited |
307 |
| - left: 0, //Can be edited, you should not. |
308 |
| - behavior: 'smooth' //Should not edit |
309 |
| - }); |
310 |
| - |
311 |
| - //Should not edit |
312 |
| - document.querySelector('.hello').scrollIntoView({ |
313 |
| - behavior: 'smooth' |
| 297 | + <!-- Smooth Scrolling Script (from https://goo.gl/uWLqWu) | Do not touch if you don't know what you're doing! --> |
| 298 | + <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script> |
| 299 | + <script> |
| 300 | + $(document).ready(function(){ |
| 301 | + // Add smooth scrolling to all links |
| 302 | + $("a").on('click', function(event) { |
| 303 | + |
| 304 | + // Make sure this.hash has a value before overriding default behavior |
| 305 | + if (this.hash !== "") { |
| 306 | + // Prevent default anchor click behavior |
| 307 | + event.preventDefault(); |
| 308 | + |
| 309 | + // Store hash |
| 310 | + var hash = this.hash; |
| 311 | + |
| 312 | + // Using jQuery's animate() method to add smooth page scroll |
| 313 | + // The optional number (800) specifies the number of milliseconds it takes to scroll to the specified area |
| 314 | + $('html, body').animate({ |
| 315 | + scrollTop: $(hash).offset().top |
| 316 | + }, 100, function(){ |
| 317 | + |
| 318 | + // Add hash (#) to URL when done scrolling (default click behavior) |
| 319 | + window.location.hash = hash; |
| 320 | + }); |
| 321 | + } // End if |
| 322 | + }); |
314 | 323 | });
|
315 | 324 | </script>
|
316 | 325 | <!-- End Smooth Scrolling Script -->
|
317 | 326 |
|
318 | 327 | <script>
|
319 |
| - function myFunction() { |
320 |
| - var x = document.getElementById("myTopnav"); |
321 |
| - if (x.className === "topnav") { |
322 |
| - x.className += " responsive"; |
323 |
| - } else { |
324 |
| - x.className = "topnav"; |
325 |
| - } |
326 |
| - } |
| 328 | + function myFunction() { |
| 329 | + var x = document.getElementById("myTopnav"); |
| 330 | + if (x.className === "topnav") { |
| 331 | + x.className += " responsive"; |
| 332 | + } else { |
| 333 | + x.className = "topnav"; |
| 334 | + } |
| 335 | + } |
327 | 336 | </script>
|
328 | 337 |
|
329 | 338 | </body>
|
|
0 commit comments