You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

24 lines
815 B

  1. $(document).ready(function () {
  2. // Terminal typing animation
  3. $("#from-terminal p").typed({
  4. strings: ["curl --upload-file ./hello.txt {{.WebAddress}}hello.txt\n{{.WebAddress}}66nb8/hello.txt \n "],
  5. typeSpeed: 0,
  6. loop: true,
  7. });
  8. // Smooth scrolling
  9. $('a[href*="#"]:not([href="#"])').click(function () {
  10. if (location.pathname.replace(/^\//, '') == this.pathname.replace(/^\//, '') && location.hostname == this.hostname) {
  11. var target = $(this.hash);
  12. target = target.length ? target : $('[name=' + this.hash.slice(1) + ']');
  13. if (target.length) {
  14. $('html,body').animate({
  15. scrollTop: target.offset().top
  16. }, 1000);
  17. return false;
  18. }
  19. }
  20. });
  21. });