1! function( s ) { 2 "use strict"; 3 4 Codevz_Plus.animated_text = function() { 5 var e = s(".cz_headline"); 6 if (e.length) { 7 var i = e.data("time") || 3e3, 8 a = i, 9 t = i, 10 n = t - 2e3, 11 l = 50, 12 d = 150, 13 r = 500, 14 o = r + 800, 15 c = 600, 16 h = i; 17 e.length && (s(".cz_headline.letters").find("b").each(function(e) { 18 var i = s(this), 19 a = i.text().split(""), 20 t = i.hasClass("is-visible"); 21 for (e in a) i.parents(".rotate-2").length > 0 && (a[e] = "<em>" + a[e] + "</em>"), a[e] = t ? '<i class="in">' + a[e] + "</i>" : "<i>" + a[e] + "</i>"; 22 var n = a.join(""); 23 i.html(n).css("opacity", 1) 24 }), e.each(function() { 25 var e = s(this), 26 i = a; 27 if (e.hasClass("loading-bar")) i = t, setTimeout(function() { 28 e.find(".cz_words-wrapper").addClass("is-loading") 29 }, n); 30 else if (e.hasClass("clip")) { 31 var l = e.find(".cz_words-wrapper"), 32 d = l.width(); 33 l.css("width", d) 34 } else if (!e.hasClass("type")) { 35 var r = e.find(".cz_words-wrapper b"), 36 o = 0; 37 r.each(function() { 38 var e = s(this).width(); 39 e > o && (o = e) 40 }) 41 } 42 setTimeout(function() { 43 u(e.find(".is-visible").eq(0)) 44 }, i) 45 })); 46 47 function u(e) { 48 var i = C(e); 49 50 // Switch classes 51 if ( ! i.closest( ".clip" ).length ) { 52 53 if ( i.closest( ".rotate-1" ).length ) { 54 setTimeout(function() { 55 i.parent().css( 'width', '' ); 56 }, 750 ); 57 } 58 59 i.addClass( 'is-visible' ).removeClass( 'is-hidden' ).siblings().addClass( 'is-hidden' ).removeClass( 'is-visible' ); 60 61 if ( i.closest( ".rotate-1" ).length ) { 62 setTimeout(function() { 63 i.parent().css( 'width', i.width() ); 64 }, 1000 ); 65 } 66 67 } 68 69 if (e.parents(".cz_headline").hasClass("type")) { 70 var h = e.parent(".cz_words-wrapper"); 71 h.addClass("selected").removeClass("waiting"), setTimeout(function() { 72 h.removeClass("selected"), e.removeClass("is-visible").addClass("is-hidden").children("i").removeClass("in").addClass("out") 73 }, r), setTimeout(function() { 74 p(i, d) 75 }, o) 76 } else if (e.parents(".cz_headline").hasClass("letters")) { 77 var v = e.children("i").length >= i.children("i").length; 78 ! function e(i, t, n, l) { 79 80 i.removeClass("in").addClass("out"); 81 i.is(":last-child") ? n && setTimeout(function() { 82 u(C(t)) 83 }, a) : setTimeout(function() { 84 e(i.next(), t, n, l) 85 }, l); 86 if (i.is(":last-child") && s("html").hasClass("no-csstransitions")) { 87 var d = C(t); 88 m(t, d) 89 } 90 }(e.find("i").eq(0), e, v, l), f(i.find("i").eq(0), i, v, l) 91 } else e.parents(".cz_headline").hasClass("clip") ? e.parents(".cz_words-wrapper").animate({ 92 width: "2px" 93 }, c, function() { 94 m(e, i), p(i) 95 }) : e.parents(".cz_headline").hasClass("loading-bar") ? (e.parents(".cz_words-wrapper").removeClass("is-loading"), m(e, i), setTimeout(function() { 96 u(i) 97 }, t), setTimeout(function() { 98 e.parents(".cz_words-wrapper").addClass("is-loading") 99 }, n)) : (m(e, i), setTimeout(function() { 100 u(i) 101 }, a)) 102 } 103 104 function p(s, e) { 105 s.parents(".cz_headline").hasClass("type") ? (f(s.find("i").eq(0), s, !1, e), s.addClass("is-visible").removeClass("is-hidden")) : s.parents(".cz_headline").hasClass("clip") && s.parents(".cz_words-wrapper").animate({ 106 width: s.width() 107 }, c, function() { 108 setTimeout(function() { 109 u(s) 110 }, h) 111 }) 112 } 113 114 function f(s, e, i, t) { 115 s.addClass("in").removeClass("out"), s.is(":last-child") ? (e.parents(".cz_headline").hasClass("type") && setTimeout(function() { 116 e.parents(".cz_words-wrapper").addClass("waiting") 117 }, 200), i || setTimeout(function() { 118 u(e) 119 }, a)) : setTimeout(function() { 120 f(s.next(), e, i, t) 121 }, t) 122 } 123 124 function C(s) { 125 return s.is(":last-child") ? s.parent().children().eq(0) : s.next() 126 } 127 128 function m(s, e) { 129 s.removeClass("is-visible").addClass("is-hidden"), e.removeClass("is-hidden").addClass("is-visible"); 130 } 131 } 132 }
132, Codevz_Plus.animated_text() 133}(jQuery);
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.