1// Typed Text 2jQuery(document).ready(function($) { 3 jQuery('.type-wrap').each(function(index, el) { 4 var typed = $(this).find('.typed'); 5 var shahzaib_cont = $(this).find('.typed-strings'); 6 var typespeed = $(this).data('typespeed'); 7 var backspeed = $(this).data('backspeed'); 8 var loop = false; 9 if($(this).attr('data-loop') == ''){ 10 loop = true; 11 } else { 12 loop = false; 13 } 14 // console.log(loop); 15 typed.typed({ 16 // strings: ["Typed.js is a <strong>jQuery</strong> plugin.", "It <em>types</em> out sentences.", "And then deletes them.", "Try it out!"], 17 stringsElement: shahzaib_cont, 18 typeSpeed: parseInt(typespeed), 19 backDelay: parseInt(backspeed), 20 loop: loop, 21 showCursor: false, 22 contentType: 'html', // or text 23 // defaults to false for infinite loop 24 loopCount: loop, 25 callback: function(){ foo(); }, 26 resetCallback: function() { newTyped(); } 27 }); 28 29 30 31 }); 32 33 /*jQuery(".reset").click(function(){ 34 $("#typed").typed('reset'); 35 });*/ 36 37 function newTyped(){ /* A new typed object */ } 38 39 function foo(){ console.log("Callback"); } 40});
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.