1jQuery(document).ready(function($) { 2 $(function() { 3 var main = { 4 init: function() { 5 main.volunteerBoxes(); 6 $(window).resize(function(event) { 7 main.volunteerBoxes(); 8 }); 9 10 $('li.blank').each(function(index, el) { 11 $(this).find('a').attr('target', '_blank'); 12 }); 13 14 if ($(window).width() < 600) { 15 main.corporateButton(); 16 } 17 18 $(window).resize(function(event) { 19 main.corporateButton(); 20 }); 21 }, 22 volunteerBoxes: function() { 23 $.browser.device = (/android|webos|iphone|ipad|ipod|blackberry|iemobile|opera mini/i.test(navigator.userAgent.toLowerCase())); 24 if ($.browser.device == false) { 25 26 $('#want_volunteer').hover(function() { 27 28 $('.volunteer_container').removeClass('active'); 29 $('#want_volunteer_container').addClass('active'); 30 31 }, function() { 32 33 $('.volunteer_container').removeClass('active'); 34 $('#default_volunteer_container').addClass('active'); 35 36 }); 37 38 39 $('#need_volunteer').hover(function() { 40 41 $('.volunteer_container').removeClass('active'); 42 $('#need_volunteer_container').addClass('active'); 43 44 }, function() { 45 46 $('.volunteer_container').removeClass('active'); 47 $('#default_volunteer_container').addClass('active'); 48 }); 49 } 50 }, 51 52 corporateButton: function() { 53 if ($('.corporation_director').length > 0 && $(window).width() < 600) { 54 $('.corporation_director .fusion-column-wrapper .fusion-button-wrapper:eq(1)').addClass('corporation_directorContainer') 55 } else { 56 $('.corporation_director .fusion-column-wrapper .fusion-button-wrapper:eq(1)').removeClass('corporation_directorContainer') 57 } 58 } 59 } 60 main.init(); 61 }); 62});
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.