Advertisement
Guest User

Untitled

a guest
Sep 16th, 2014
211
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <script src="js/jquery-1.11.1.min.js"></script>
  2. <script src="plugins/typing/typed.js" type="text/javascript"></script>
  3. <script>
  4.   $(function(){
  5. console.log("test");
  6.         $("#typed").typed({
  7.             strings: ["Typed.js is a jQuery plugin.", "It types out sentences.", "And then deletes them.", "Try it out!"],
  8.             typeSpeed: 30,
  9.             backDelay: 500,
  10.             loop: false,
  11.             // defaults to false for infinite loop
  12.             loopCount: false,
  13.             callback: function(){ foo(); },
  14.             resetCallback: function() { newTyped(); }
  15.         });
  16.  
  17.         $(".reset").click(function(){
  18.             $("#typed").typed('reset');
  19.         });
  20.  
  21.     });
  22.  
  23.     function newTyped(){ /* A new typed object */ }
  24.  
  25.     function foo(){ console.log("Callback"); }
  26.  
  27. </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement