1 "use strict"; 2var header = jQuery('.main_header'), 3 header_h = header.height(), 4 headerWrapper = jQuery('.header_wrapper'), 5 menu = header.find('ul.menu'), 6 main_li = menu.children('li'), 7 html = jQuery('html'), 8 body = jQuery('body'), 9 footer = jQuery('.main_footer'), 10 window_h = jQuery(window).height(), 11 window_w = jQuery(window).width(), 12 myWindow = jQuery(window), 13 main_wrapper = jQuery('.main_wrapper'), 14 main_wrapper_min = window_h-header_h-footer.height()-parseInt(jQuery('.site_wrapper').css('padding-top'))-parseInt(jQuery('.site_wrapper').css('padding-bottom')), 15 right_sidebar = jQuery('.right-sidebar-block'), 16 left_sidebar = jQuery('.left-sidebar-block'), 17 fl_container = jQuery('.fl-container'), 18 site_wrapper = jQuery('.site_wrapper'), 19 preloader_block = jQuery('.preloader'), 20 fullscreen_block = jQuery('.fullscreen_block'), 21 is_masonry = jQuery('.is_masonry'), 22 grid_portfolio_item = jQuery('.grid-portfolio-item'), 23 pp_block = jQuery('.pp_block'), 24 fs_min = 0, 25 map_h = 0; 26 27 var prettyMarkup = '<div class="pp_pic_holder"><div class="ppt">Â </div><div class="pp_top"><div class="pp_left"></div><div class="pp_middle"></div><div class="pp_right"></div></div><div class="pp_content_container"><div class="pp_left"> <div class="pp_right"><div class="pp_content"><div class="pp_loaderIcon"></div><div class="pp_fade"><div class="pp_hoverContainer"><a class="pp_next" href="#">next</a><a class="pp_previous" href="#">previous</a></div><div id="pp_full_res"></div> <div class="pp_details"><p class="currentTextHolder">0/0</p><div class="pp_nav"><a href="#" class="pp_arrow_previous"> </a><a href="#" class="pp_arrow_next"> </a><a class="pp_close" href="#"> </a><a href="#" class="pp_expand" title="Expand the image"> </a></div><p class="pp_description"></p><div class="pp_social">{pp_social}</div></div></div></div></div></div></div><div class="pp_bottom"><div class="pp_left"></div><div class="pp_middle"></div><div class="pp_right"></div></div> </div><div class="pp_overlay"></div>'; 28 29 30jQuery(document).ready(function ($) { 31 if(jQuery('.swipebox').size() > 0) { 32 jQuery('html').addClass('gt3_swipe_box'); 33 jQuery('.swipebox').parent().swipebox({ 34 selector: '.swipebox', 35 afterOpen: function() { 36 gt3_setup_soho_box(); 37 }, 38 afterClose: function() { 39 gt3_close_soho_box(); 40 } 41 }); 42 } 43 if (jQuery('#wpadminbar').size() > 0) { 44 jQuery('body').addClass('has-admin-bar'); 45 } 46 if (jQuery('.psevdo_header').size() > 0) { 47 jQuery('.psevdo_header').height(header_h); 48 } 49 if (jQuery('.main_wrapper').size() > 0) { 50 setTimeout("jQuery('.main_wrapper').animate({'opacity' : '1'}, 500)", 500); 51 } else if (jQuery('.fullscreen_block').size() > 0) { 52 setTimeout("jQuery('.fullscreen_block').animate({'opacity' : '1'}, 500)", 500); 53 } 54 if (jQuery('.ribbon_wrapper').size() > 0) { 55 setTimeout("jQuery('.ribbon_wrapper').animate({'opacity' : '1'}, 1000)", 500); 56 } 57 if (jQuery('.pf_output_container').size() > 0) { 58 setTimeout("jQuery('.pf_output_container').animate({'opacity' : '1'}, 1000)", 500); 59 } 60 if (jQuery('.strip-template').size() > 0) { 61 setTimeout("jQuery('.strip-template').animate({'opacity' : '1'}, 1000)", 500); 62 } 63 64 if (jQuery('.fs_gallery_wrapper').size() > 0) { 65 setTimeout("jQuery('.fs_gallery_wrapper').animate({'opacity' : '1'}, 1000)", 500); 66 } 67 if (jQuery('.strip-landing').size() > 0) { 68 setTimeout("jQuery('.strip-landing').animate({'opacity' : '1'}, 1000)", 500); 69 setTimeout("jQuery('.landing_logo2').animate({'opacity' : '1'}, 1000)", 500); 70 } 71 72 if (body.hasClass('admin-bar') && window_w > 760) { 73 74 } 75 if (window_w < 760 && jQuery('.module_content').size() > 0) { 76 jQuery('.module_content').each(function(){ 77 if (jQuery.trim(jQuery(this).html()) == '') { 78 jQuery(this).parent('.module_cont').addClass('empty_module'); 79 } 80 }); 81 } 82 if (window_w < 760 && jQuery('.module_blog_page').size() > 0) { 83 iframe16x9(jQuery('.pf_output_container')); 84 } 85 86 content_update(); 87 //Flickr Widget 88 if (jQuery('.flickr_widget_wrapper').size() > 0) { 89 jQuery('.flickr_badge_image a').each(function () { 90 jQuery(this).append('<div class="flickr_fadder"></div>'); 91 }); 92 } 93 94 //Main and Mobile Menu 95 header.find('.header_wrapper').append('<a href="javascript:void(0)" class="menu_toggler"></a>'); 96 if (jQuery('.header_filter').size() > 0) { 97 jQuery('.header_filter').before('<div class="mobile_menu_wrapper"><ul class="mobile_menu container"/></div>'); 98 } else { 99 header.append('<div class="mobile_menu_wrapper"><ul class="mobile_menu container"/></div>'); 100 } 101 jQuery('.mobile_menu').html(header.find('.menu').html()); 102 jQuery('.mobile_menu_wrapper').hide(); 103 jQuery('.menu_toggler').click(function () { 104 jQuery('.mobile_menu_wrapper').slideToggle(300); 105 jQuery('.main_header').toggleClass('opened'); 106 }); 107 if (pp_block.size() > 0) { 108 html.addClass('pp_page'); 109 jQuery('.custom_bg').remove(); 110 jQuery('.fixed_bg').remove(); 111 pp_center(); 112 } 113}); 114 115jQuery(window).on("resize", function () { 116 window_h = jQuery(window).height(); 117 window_w = jQuery(window).width(); 118 header_h = header.height(); 119 content_update(); 120 if(jQuery('.swipebox').size() > 0) { 121 if (jQuery.swipebox.isOpen ) { 122 gt3_setup_soho_box(); 123 setTimeout("gt3_setup_soho_box()",500); 124 } 125 } 126 if (jQuery('.psevdo_header').size() > 0) { 127 setTimeout("jQuery('.psevdo_header').height(header_h)", 500); 128 } 129}); 130 131jQuery(window).on("load", function () { 132 content_update(); 133 if (jQuery('.psevdo_header').size() > 0) { 134 setTimeout("jQuery('.psevdo_header').height(header_h)", 500); 135 } 136}); 137 138function content_update() { 139 if (jQuery('.contacts_map').size() > 0) {
140 map_h = jQuery('.contacts_map').height() + parseInt(jQuery('.contacts_map').css('margin-bottom')); 141 } 142 main_wrapper_min = window_h-header_h-footer.height()-parseInt(jQuery('.site_wrapper').css('padding-top'))-parseInt(jQuery('.site_wrapper').css('padding-bottom')); 143 144 if (jQuery('.contacts_map').size() > 0) { 145 jQuery('.content_wrapper').css('min-height', main_wrapper_min - map_h); 146 } 147 148 fs_min = window_h-header_h-footer.height(); 149 main_wrapper.css('min-height', main_wrapper_min+'px'); 150 if (jQuery('.fullscreen_block').size() > 0) { 151 jQuery('.fullscreen_block').css('min-height', fs_min+'px'); 152 } 153 154 if (window_w > 760) { 155 if (body.hasClass('admin-bar')) { 156 157 } 158 } 159 var half1 = (81 - parseInt(main_li.children('a').css('line-height')))/2 - 1, 160 half2 = half1+2; 161 main_li.children('a').css({'padding-top' : half1+'px', 'padding-bottom' : half2+'px'}); 162 163 var fullscreen_page_wrap = jQuery('.page-template-page-fullscreen'); 164 if (fullscreen_page_wrap.length) { 165 var fullscreen_page_wrap_height = jQuery(window).height() - jQuery('.main_header').height() - jQuery('.main_footer').height(); 166 fullscreen_page_wrap.find('.wp-block-cover').css({'height': fullscreen_page_wrap_height + 'px'}); 167 } 168} 169 170function gt3_get_blog_posts(post_type, posts_count, posts_already_showed, template_name, content_insert_class, categories, set_pad) { 171 jQuery.post(gt3_ajaxurl, { 172 action: "gt3_get_blog_posts", 173 post_type: post_type, 174 posts_count: posts_count, 175 posts_already_showed: posts_already_showed, 176 template_name: template_name, 177 content_insert_class: content_insert_class, 178 categories: categories, 179 set_pad: set_pad 180 }) 181 .done(function (data) { 182 jQuery(content_insert_class).append(data); 183 if (jQuery('.this_is_blog').size() > 0) { 184 jQuery('.pf_output_container').each(function () { 185 if (jQuery(this).html() == '') { 186 jQuery(this).parents('.fw_preview_wrapper').addClass('no_pf'); 187 } else { 188 jQuery(this).parents('.fw_preview_wrapper').addClass('has_pf'); 189 } 190 }); 191 } 192 if (jQuery('.fw-portPreview-content').size() > 0) { 193 port_setup(); 194 } 195 if (is_masonry.size() > 0) { 196 is_masonry.masonry('reloadItems'); 197 is_masonry.masonry(); 198 } 199 if (jQuery('.fs_grid_portfolio').size() > 0) { 200 setupGrid(); 201 grid_portfolio_item.unbind(); 202 grid_portfolio_item.bind({ 203 mouseover: function () { 204 jQuery(this).removeClass('unhovered'); 205 jQuery(this).find('.grid-item-trigger').css('height', jQuery(this).find('img').height() + jQuery(this).find('.fs-port-cont').height()); 206 }, 207 mouseout: function () { 208 jQuery(this).addClass('unhovered'); 209 jQuery(this).find('.grid-item-trigger').css('height', jQuery(this).find('img').height()); 210 } 211 }); 212 } 213 iframe16x9(jQuery('.fs_blog_module')); 214 if (jQuery('.newLoaded').find('.pf_output_container').size() > 0) { 215 setTimeout("jQuery('.pf_output_container').animate({'opacity' : '1'}, 1000)", 500); 216 } 217 jQuery('.newLoaded').each(function () { 218 jQuery(this).find('.gallery_likes_add').click(function () { 219 var gallery_likes_this = jQuery(this); 220 if (!jQuery.cookie(gallery_likes_this.attr('data-modify') + gallery_likes_this.attr('data-attachid'))) { 221 jQuery.post(gt3_ajaxurl, { 222 action: 'add_like_attachment', 223 attach_id: jQuery(this).attr('data-attachid') 224 }, function (response) { 225 jQuery.cookie(gallery_likes_this.attr('data-modify') + gallery_likes_this.attr('data-attachid'), 'true', { 226 expires: 7, 227 path: '/' 228 }); 229 gallery_likes_this.addClass('already_liked'); 230 gallery_likes_this.find('i').removeClass('icon-heart-o').addClass('icon-heart'); 231 gallery_likes_this.find('span').text(response); 232 }); 233 } 234 }); 235 jQuery(this).removeClass('newLoaded'); 236 });
237 setTimeout("animateList()", 300); 238 jQuery(window).on('scroll', scrolling); 239 jQuery('.fs_port_item').hover(function(){ 240 html.addClass('fadeMe'); 241 jQuery(this).addClass('unfadeMe'); 242 },function(){ 243 html.removeClass('fadeMe'); 244 jQuery(this).removeClass('unfadeMe'); 245 }); 246 }); 247} 248 249function gt3_get_portfolio(post_type, posts_count, posts_already_showed, template_name, content_insert_class, categories, set_pad, post_type_field) { 250 jQuery.post(gt3_ajaxurl, { 251 action: "get_portfolio_works", 252 post_type: post_type, 253 posts_count: posts_count, 254 posts_already_showed: posts_already_showed, 255 template_name: template_name, 256 content_insert_class: content_insert_class, 257 categories: categories, 258 set_pad: set_pad, 259 post_type_field: post_type_field 260 }) 261 .done(function (data) { 262 jQuery(content_insert_class).append(data); 263 if (jQuery('.this_is_blog').size() > 0) { 264 jQuery('.pf_output_container').each(function () { 265 if (jQuery(this).html() == '') { 266 jQuery(this).parents('.fw_preview_wrapper').addClass('no_pf'); 267 } else { 268 jQuery(this).parents('.fw_preview_wrapper').addClass('has_pf'); 269 } 270 }); 271 } 272 if (jQuery('.fw-portPreview-content').size() > 0) { 273 port_setup(); 274 } 275 if (is_masonry.size() > 0) { 276 is_masonry.masonry('reloadItems'); 277 is_masonry.masonry(); 278 } 279 if (jQuery('.fs_grid_portfolio').size() > 0) { 280 setupGrid(); 281 grid_portfolio_item.unbind(); 282 grid_portfolio_item.bind({ 283 mouseover: function () { 284 jQuery(this).removeClass('unhovered'); 285 jQuery(this).find('.grid-item-trigger').css('height', jQuery(this).find('img').height() + jQuery(this).find('.fs-port-cont').height()); 286 }, 287 mouseout: function () { 288 jQuery(this).addClass('unhovered'); 289 jQuery(this).find('.grid-item-trigger').css('height', jQuery(this).find('img').height()); 290 } 291 }); 292 } 293 jQuery('.newLoaded').each(function () { 294 jQuery(this).find('.gallery_likes_add').click(function () { 295 var gallery_likes_this = jQuery(this); 296 if (!jQuery.cookie(gallery_likes_this.attr('data-modify') + gallery_likes_this.attr('data-attachid'))) { 297 jQuery.post(gt3_ajaxurl, { 298 action: 'add_like_attachment', 299 attach_id: jQuery(this).attr('data-attachid') 300 }, function (response) { 301 jQuery.cookie(gallery_likes_this.attr('data-modify') + gallery_likes_this.attr('data-attachid'), 'true', { 302 expires: 7, 303 path: '/' 304 }); 305 gallery_likes_this.addClass('already_liked'); 306 gallery_likes_this.find('i').removeClass('icon-heart-o').addClass('icon-heart'); 307 gallery_likes_this.find('span').text(response); 308 }); 309 } 310 }); 311 jQuery(this).removeClass('newLoaded'); 312 }); 313 iframe16x9(jQuery('.fs_blog_module')); 314 315 setTimeout("animateList()", 300); 316 jQuery(window).on('scroll', scrolling); 317 jQuery('.fs_port_item').hover(function(){ 318 html.addClass('fadeMe'); 319 jQuery(this).addClass('unfadeMe'); 320 },function(){ 321 html.removeClass('fadeMe'); 322 jQuery(this).removeClass('unfadeMe'); 323 }); 324 }); 325} 326 327function gt3_get_isotope_posts(post_type, posts_count, posts_already_showed, template_name, content_insert_class, categories, set_pad, post_type_field) { 328 jQuery.post(gt3_ajaxurl, { 329 action: "get_portfolio_works", 330 post_type: post_type, 331 posts_count: posts_count, 332 posts_already_showed: posts_already_showed, 333 template_name: template_name, 334 content_insert_class: content_insert_class, 335 categories: categories, 336 set_pad: set_pad, 337 post_type_field: post_type_field 338 }) 339 .done(function (data) { 340 if (data.length < 1) { 341 jQuery(".load_more_works").hide("fast"); 342 } 343 if (jQuery('.fw-portPreview-content').size() > 0) { 344 port_setup(); 345 } 346 347 var $newItems = jQuery(data); 348 jQuery(content_insert_class).isotope('insert', $newItems, function () { 349 jQuery(content_insert_class).ready(function () { 350 jQuery(content_insert_class).isotope('reLayout'); 351 }); 352 if (jQuery('.fs-port-cont').size() > 0) {
353 setTimeout("setupGrid()", 500); 354 setTimeout("setupGrid()", 1000); 355 setTimeout('jQuery(".fs_grid_portfolio").isotope("reLayout");', 1500); 356 } 357 }); 358 jQuery('.newLoaded').each(function () { 359 jQuery(this).find('.gallery_likes_add').click(function () { 360 var gallery_likes_this = jQuery(this); 361 if (!jQuery.cookie(gallery_likes_this.attr('data-modify') + gallery_likes_this.attr('data-attachid'))) { 362 jQuery.post(gt3_ajaxurl, { 363 action: 'add_like_attachment', 364 attach_id: jQuery(this).attr('data-attachid') 365 }, function (response) { 366 jQuery.cookie(gallery_likes_this.attr('data-modify') + gallery_likes_this.attr('data-attachid'), 'true', { 367 expires: 7, 368 path: '/' 369 }); 370 gallery_likes_this.addClass('already_liked'); 371 gallery_likes_this.find('i').removeClass('icon-heart-o').addClass('icon-heart'); 372 gallery_likes_this.find('span').text(response); 373 }); 374 } 375 }); 376 jQuery(this).removeClass('newLoaded'); 377 }); 378 jQuery('.fs_port_item').hover(function(){ 379 html.addClass('fadeMe'); 380 jQuery(this).addClass('unfadeMe'); 381 },function(){ 382 html.removeClass('fadeMe'); 383 jQuery(this).removeClass('unfadeMe'); 384 }); 385 }); 386} 387 388function animateList() { 389 jQuery('.loading:first').removeClass('loading').animate({'z-index': '15'}, 200, function () { 390 animateList(); 391 if (is_masonry.size() > 0) { 392 is_masonry.masonry(); 393 } 394 }); 395}; 396 397function workCheck() { 398 if (jQuery('.fs_blog_module').height() < parseInt(fullscreen_block.css('min-height'))) { 399 get_works(); 400 } else { 401 fullscreen_block.addClass('cheked'); 402 } 403} 404 405function scrolling() { 406 var chk_height = jQuery('body').height() - jQuery(this).height() - header.height() - footer.height() - 20; 407 if (jQuery(this).scrollTop() >= chk_height) { 408 jQuery(this).unbind("scroll"); 409 get_works(); 410 } 411} 412 413function iframe16x9(container) { 414 container.find('iframe').each(function(){ 415 jQuery(this).height((jQuery(this).width()/16)*9); 416 }); 417} 418function iframe16x9_ribbon(container) { 419 var set_height = container.height(), 420 set_width = (container.height()/9)*16; 421 container.find('iframe').each(function(){ 422 jQuery(this).height(set_height); 423 jQuery(this).width(set_width); 424 }); 425} 426 427 428var setTop = 0; 429function pp_center() { 430 var pp_block = jQuery('.pp_block'); 431 setTop = (window_h - pp_block.height()) / 2; 432 pp_block.css('top', setTop + 'px'); 433 pp_block.removeClass('fixed'); 434} 435 436 437function gt3_open_soho_box() { 438} 439 440function gt3_setup_soho_box() { 441 var swipe_slider = jQuery('#swipebox-slider'), 442 swipe_title = jQuery('#swipebox-top-bar'), 443 swipe_bottom = jQuery('#swipebox-bottom-bar'), 444 setHeight = 0; 445 setHeight = jQuery(window).height() - swipe_title.height() - swipe_bottom.height(); 446 swipe_slider.height(setHeight).css('top', swipe_title.height()); 447} 448 449function gt3_close_soho_box() { 450} 451jQuery(document).on("click", "#swipebox-container .slide.current img", function (e) { 452 jQuery('#swipebox-next').click(); 453 e.stopPropagation(); 454}); 455jQuery(document).on("click", "#swipebox-container", function (e) { 456 jQuery('#swipebox-close').click(); 457});
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.