1var lock_m = false; 2var active_media_id = 'media_1'; 3 4var Fn_Home_ActivateTestimonial = function (id, type) { 5 $('#' + id + '').addClass('css_Home_ActiveTestimonial_' + type); 6 $('#' + type + '_content_container').css('opacity', '1'); 7 $('#' + type + '_content').html($('#' + id).attr('content')); 8 $('#' + type + '_link').html($('#' + id).attr('author')); 9 $('#' + type + '_link').attr('href', $('#' + id).attr('link')); 10} 11 12var Fn_Home_ChangeTestimonial_Media = function (id, type, timeout_m) { 13 if (!lock_m) { 14 try { 15 clearTimeout(timeeout_m); 16 } 17 catch (err) { } 18 19 try { 20 clearTimeout(initial_timer_media); 21 } 22 catch (err) { } 23 $(function () { 24 lock_m = true; 25 $('#' + active_media_id).removeClass('css_Home_ActiveTestimonial_media'); 26 active_media_id = id; 27 Fn_Home_ActivateTestimonial(id, type); 28 $('#' + type + '_content_container').clearQueue().hide().fadeIn(800, function () { 29 lock_m = false; 30 }); 31 }); 32 33 timeeout_m = setTimeout(function () { 34 if ($('#' + id + '').next().attr('el') == '1') { 35 Fn_Home_ChangeTestimonial_Media($('#' + id).next().attr('id'), type, timeeout_m); 36 } 37 else { 38 Fn_Home_ChangeTestimonial_Media(type + '_1', type, timeeout_m); 39 } 40 }, 9000); 41 } 42} 43var active_customer_id = 'customer_1'; 44var lock_c = false; 45 46var Fn_Home_ChangeTestimonial_Customer = function (id, type, timeout_c) { 47 if (!lock_c) { 48 try { 49 clearTimeout(timeeout_c); 50 } 51 catch (err) { } 52 53 try { 54 clearTimeout(initial_timer_customer); 55 } 56 catch (err) { } 57 $(function () { 58 lock_c = true; 59 $('#' + active_customer_id).removeClass('css_Home_ActiveTestimonial_customer'); 60 active_customer_id = id; 61 Fn_Home_ActivateTestimonial(id, type); 62 $('#' + type + '_content_container').clearQueue().hide().fadeIn(800, function () { 63 lock_c = false; 64 }); 65 }); 66 67 timeeout_c = setTimeout(function () { 68 if ($('#' + id + '').next().attr('el') == '1') { 69 Fn_Home_ChangeTestimonial_Customer($('#' + id).next().attr('id'), type, timeeout_c); 70 } 71 else { 72 Fn_Home_ChangeTestimonial_Customer(type + '_1', type, timeeout_c); 73 } 74 }, 9000); 75 } 76} 77 78var initial_timer_customer = setTimeout(function () { Fn_Home_ChangeTestimonial_Customer('customer_2', 'customer'); }, 5000); 79var initial_timer_media = setTimeout(function () { Fn_Home_ChangeTestimonial_Media('media_2', 'media'); }, 10000);
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.