1jQuery( document ).ready(function($){ 2 3 do_resize(); 4 5 $( window ).resize(function() { 6 do_resize(); 7 8 }); 9 10 $('.sc_team_single_disabled').click( function (e) { 11 12 e.preventDefault(); 13 14 }); 15 16 function do_resize() { 17 var member_height = $('#sc_our_team.grid .sc_team_member').width(); 18 $('#sc_our_team.grid .sc_team_member .sc_team_member_inner').each(function(){ 19 $(this).css({ 20 height: member_height 21 }); 22 }); 23 24 var member_height = $('#sc_our_team.grid_circles .sc_team_member').width(); 25 $('#sc_our_team.grid_circles .sc_team_member').each(function(){ 26 $(this).css({ 27 height: member_height 28 }); 29 }); 30 31 var member_height = $('#sc_our_team.grid_circles2 .sc_team_member').width(); 32 $('#sc_our_team.grid_circles2 .sc_team_member').each(function(){ 33 $(this).css({ 34 height: member_height 35 }); 36 }); 37 } 38 39 40 41 $('#sc_our_team_lightbox .sc_team_icon-close').click( function( event ) { 42 43 if( $('#sc_our_team_lightbox').hasClass('show') ){ 44 45 $('.sc_our_team_lightbox').slideUp(300, function(){ 46 47 $('#sc_our_team_lightbox').fadeOut(300); 48 49 }); 50 $('#sc_our_team_lightbox').removeClass('show'); 51 52 } 53 54 }); 55 56 $('.sc_our_team_panel .sc-right-panel .sc_team_icon-close').click( function () { 57 58 if( $('#sc_our_team_panel').hasClass('show') ){ 59 60 $('.sc_our_team_panel').removeClass('slidein'); 61 62 $('#sc_our_team_panel').delay(450).fadeOut(300); 63 64 $('#sc_our_team_panel').removeClass('show'); 65 } 66 }); 67 68 69 70 $('.sc_team_single_popup').click( function(e){ 71 72 var item = null; 73 74 if( $(this).hasClass('sc_team_member') ){ 75 item = $(this); 76 }else{ 77 item = $(this).parents('.sc_team_member'); 78 } 79 80 build_popup( item ); 81 e.stopPropagation(); 82 e.preventDefault(); 83 84 }); 85 86 function build_popup( item ){ 87 88 // reset 89 $('.sc_our_team_lightbox .name').html(''); 90 $('.sc_our_team_lightbox .skills').html(''); 91 $('.sc_our_team_lightbox .sc-posts').html(''); 92 $('.sc_our_team_lightbox .sc-content').html(''); 93 $('.sc_our_team_lightbox .sc_personal_quote').html(''); 94 $('.sc_our_team_lightbox .social').html(''); 95 $('.sc_our_team_lightbox .sc-tags').html(''); 96 $('.sc_our_team_lightbox .title').html(''); 97 $('.sc_our_team_lightbox .image').attr('src', ''); 98 99 100 $('.sc_our_team_lightbox .name').html($('.sc_team_member_name a', item).html()); 101 $('.sc_our_team_lightbox .skills').html($('.sc_team_skills', item).html()); 102 $('.sc_our_team_lightbox .sc-posts').html($('.sc_team_posts', item).html()); 103 $('.sc_our_team_lightbox .sc-content').html($('.sc_team_content', item).html()); 104 $('.sc_our_team_lightbox .sc_personal_quote').html($('.sc_personal_quote', item).html()); 105 $('.sc_our_team_lightbox .social').html($('.icons', item).html()); 106 $('.sc_our_team_lightbox .sc-tags').html($('.sc_team_tags', item).html()); 107 $('.sc_our_team_lightbox .title').html($('.sc_team_member_jobtitle', item).html()); 108 $('.sc_our_team_lightbox .image').attr('src', $('.wp-post-image', item).attr('src')); 109 110 111 $('#sc_our_team_lightbox').fadeIn(350, function () { 112 113 $('.sc_our_team_lightbox') 114 .css('opacity', 0) 115 .slideDown('slow') 116 .animate({ opacity : 1 }, { queue : false, duration: 'slow' }); 117 118 119 $('#sc_our_team_lightbox').addClass('show'); 120 121 }); 122 123 } 124 125 126 $('.sc_team_single_panel').click( function(e){
127 128 var item = null; 129 130 if( $(this).hasClass('sc_team_member') ){ 131 item = $(this); 132 }else{ 133 item = $(this).parents('.sc_team_member'); 134 } 135 136 build_panel( item ); 137 e.stopPropagation(); 138 e.preventDefault(); 139 140 }); 141 function build_panel( item ){ 142 143 // reset 144 $('.sc_our_team_panel .sc-name').html(''); 145 $('.sc_our_team_panel .sc-skills').html(''); 146 $('.sc_our_team_panel .sc_personal_quote').html(''); 147 $('.sc_our_team_panel .sc-content').html(''); 148 $('.sc_our_team_panel .sc-social').html(''); 149 $('.sc_our_team_panel .sc-title').html(''); 150 $('.sc_our_team_panel .sc-posts').html(''); 151 $('.sc_our_team_panel .sc-tags').html(''); 152 $('.sc_our_team_panel .sc-image').attr('src', ''); 153 154 155 $('.sc_our_team_panel .sc-name').html($('.sc_team_member_name a', item).html()); 156 $('.sc_our_team_panel .sc-skills').html($('.sc_team_skills', item).html()); 157 $('.sc_our_team_panel .sc_personal_quote').html($('.sc_personal_quote', item).html()); 158 $('.sc_our_team_panel .sc-content').html($('.sc_team_content', item).html()); 159 $('.sc_our_team_panel .sc-social').html($('.icons', item).html()); 160 $('.sc_our_team_panel .sc-title').html($('.sc_team_member_jobtitle', item).html()); 161 $('.sc_our_team_panel .sc-posts').html($('.sc_team_posts', item).html()); 162 $('.sc_our_team_panel .sc-tags').html($('.sc_team_tags', item).html()); 163 $('.sc_our_team_panel .sc-image').attr('src', $('.wp-post-image', item).attr('src')); 164 165 166 $('#sc_our_team_panel').fadeIn(350, function () { 167 168 169 $('.sc_our_team_panel').addClass('slidein'); 170 $('#sc_our_team_panel').addClass('show'); 171 172 }); 173 174 } 175 176 177 $('#sc_our_team .sc_team_member').hover(function(){ 178 $('.sc_team_member_overlay',this).stop(true,false).fadeIn(440); 179 $('.wp-post-image',this).addClass('zoomIn'); 180 $('.sc_team_more',this).addClass('show'); 181 182 },function(){ 183 $('.sc_team_member_overlay',this).stop(true,false).fadeOut(440) 184 $('.wp-post-image',this).removeClass('zoomIn'); 185 $('.sc_team_more',this).removeClass('show'); 186 187 }); 188 189});
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.