1var tbk_footer_slider = { 2 // slide_height: 0, 3 close_margin: 0, 4 hideFooter: function (){ 5 var open_img = this.get_open_image_url(tbk_flooter.data.lang); 6 close_margin = -jQuery('#tbk_footer_tab_close').height(); 7 8 jQuery('#tbk_footer_tab_close').fadeOut(function (){ 9 jQuery('#tbk_footer_tab_close').removeClass('close').addClass('open'); 10 jQuery('#tbk_footer_tab_close').css('top', close_margin + 'px').attr('src', open_img); 11 jQuery('#tbk_footer_tab_close').fadeIn('slow'); 12 }); 13 14 jQuery('#tbk_footer_tab_inner img.inner_banner').hide(); 15 16 jQuery('#tbk_footer_tab').animate({height: 122}, 'slow', 'easeOutBounce', function (){ 17 18 }); 19 jQuery('#tbk_footer_tab').css('background', 'none'); 20 }, 21 get_close_image_url: function (lang){ 22 if ( lang == 'fr' ) { 23 return tbk_flooter.data.tbk_footer_close_fr.url; 24 25 } else { 26 return tbk_flooter.data.tbk_footer_close.url; 27 } 28 }, 29 get_open_image_url: function (lang){ 30 if ( lang == 'fr' ) { 31 return tbk_flooter.data.tbk_footer_open_fr.url; 32 33 } else { 34 return tbk_flooter.data.tbk_footer_open.url; 35 } 36 }, 37 showFooter: function (){ 38 39 var close_img = this.get_close_image_url(tbk_flooter.data.lang); 40 41 42 43 jQuery('#tbk_footer_tab_close').fadeOut(function (){ 44 jQuery('#tbk_footer_tab_close').removeClass('open').addClass('close'); 45 jQuery('#tbk_footer_tab_close').css('top', '0px').attr('src', close_img); 46 jQuery('#tbk_footer_tab_close').fadeIn('slow'); 47 }); 48 49 jQuery('#tbk_footer_tab').animate({height: tbk_footer_slider.slide_height}, 'slow', 'easeOutBounce', function (){ 50 // onComplete, hide inner banner 51 jQuery('#tbk_footer_tab_inner img.inner_banner').show(); 52 }); 53 }, 54 init: function (){ 55 if ( jQuery.cookie('tbk_ft_display_cookie') != undefined ) { 56 // hide footer 57 tbk_footer_slider.hideFooter(); 58 } 59 60 var t = this; 61 jQuery('#tbk_footer_tab_close').click(function (event){ 62 jQuery(this).css('opacity', '1'); 63 64 if ( jQuery(this).hasClass('open') ) { 65 tbk_footer_slider.showFooter(); 66 // remove cookie 67 jQuery.removeCookie('tbk_ft_display_cookie'); 68 } else { 69 tbk_footer_slider.hideFooter(); 70 // write cookie 71 jQuery.cookie('tbk_ft_display_cookie', '11111111'); 72 } 73 }); 74 75 //Gets rid of the loading stutter that occurs, set to opac 0 initially in CSS. 76 jQuery('#tbk_footer_tab_inner').animate({ 77 'opacity': '1' 78 }) 79 } 80 81}; 82 83jQuery(window).load(function (){ 84 var placer_height = jQuery('#tbk_footer_placer img').height(); 85 var inner_height = jQuery('#tbk_footer_tab_inner img').width(); 86 jQuery('#tbk_footer_tab_inner').css('width', inner_height + 'px'); 87 tbk_footer_slider.init(); 88 //tbk_footer_slider.slide_height = placer_height; 89 tbk_footer_slider.close_margin = tbk_flooter.data.tbk_footer_close_y_pos; 90 91 //jQuery('#tbk_footer_tab').css('height', placer_height + 'px'); 92 // var ua = navigator.userAgent.toLowerCase(); 93 // if (ua.indexOf('safari') != -1) { 94 // if (ua.indexOf('chrome') > -1) { 95 // } else { 96 // jQuery('#tbk_footer_tab_inner img.inner_banner').css('left', '0px'); 97 // } 98 // } 99 100 101 102});
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.