WASZE ZDJĘCIA
');
jQuery('#huge_it_portfolio_popup_list_1').insertBefore('#huge-popup-overlay_1');
var height = jQuery(window).height();
var width=jQuery(window).width();
if(width parseInt(jQuery('.pupup-element.active .right-block').height())){
if(jQuery('.pupup-element.active .image-block_1 img').height() > jQuery('.pupup-element.active .image-block_1').height()){
jQuery('.pupup-element.active .popup-wrapper_1').css({
'overflow-y':'auto',
});
}
else{
jQuery('.pupup-element.active .popup-wrapper_1').css({
'overflow-y':'auto',
'width':'98.8%',
});
jQuery('.pupup-element.active .right-block').css({
'overflow-y':'auto',
'width':'37.5%',
'padding': '0px 62px 0px 0px',
});
}
}
else if(jQuery('.pupup-element.active .description').height() jQuery('.pupup-element.active .image-block_1').height() ){
jQuery('.pupup-element.active .popup-wrapper_1').css({
'overflow-y':'auto',
'width':'96%',
});
}
return false;
});
jQuery('#huge_it_portfolio_popup_list_1 .popup-wrapper_1 .right-block ul.thumbs-list_1 li ').on('click','a.img-thumb',function(){//thubnail neri meccnelna
var width=jQuery(window).width();
var strsrc = jQuery(this).find('img').attr('src')
if(width');
}
if(jQuery('.pupup-element.active .image-block_1 img').height() > jQuery('.pupup-element.active .image-block_1').height()){
jQuery('.pupup-element.active .popup-wrapper_1').css({
'overflow-y':'auto',
});
}
return false;
});
jQuery('#huge_it_portfolio_popup_list_1 .heading-navigation_1 .close').on('click',function(){//console.log("filter");
closePopup();
return false;
});
/* */
jQuery("#huge_it_portfolio_popup_list_1 .heading-navigation_1 .left-change").click(function(){
var height = jQuery(window).height();
var num = jQuery(this).find("a").attr("href").replace('#', '');
if(num >= 1){
var strid = jQuery(this).closest(".pupup-element").prev(".pupup-element").find('a').data('popupid').replace('#','');
jQuery('#huge_it_portfolio_pupup_element_'+strid).css({height:height*0.7});
jQuery(this).closest(".pupup-element").removeClass("active");
jQuery(this).closest(".pupup-element").prev(".pupup-element").addClass("active");
}else{
var strid = jQuery("#huge_it_portfolio_popup_list_1").find(".pupup-element").last().find('a').data('popupid').replace('#','');
jQuery('#huge_it_portfolio_pupup_element_'+strid).css({height:height*0.7});
jQuery(this).closest(".pupup-element").removeClass("active");
jQuery("#huge_it_portfolio_popup_list_1").find(".pupup-element").last().addClass("active");
}
if(1.1*parseInt(jQuery('.pupup-element.active .description').height()) > parseInt(jQuery('.pupup-element.active .right-block').height())){
if(jQuery('.pupup-element.active .image-block_1 img').height() > jQuery('.pupup-element.active .image-block_1').height()){
jQuery('.pupup-element.active .popup-wrapper_1').css({
'overflow-y':'auto',
});
}
else{
jQuery('.pupup-element.active .popup-wrapper_1').css({
'overflow-y':'auto',
'width':'98.8%',
});
jQuery('.pupup-element.active .right-block').css({
'overflow-y':'auto',
'width':'37.5%',
'padding': '0px 62px 0px 0px',
});
}
}
else if(jQuery('.pupup-element.active .description').height() jQuery('.pupup-element.active .image-block_1').height() ){
jQuery('.pupup-element.active .popup-wrapper_1').css({
'overflow-y':'auto',
'width':'96%',
});
}
return false
});
/* */
jQuery("#huge_it_portfolio_popup_list_1 .heading-navigation_1 .right-change").click(function(){
var height = jQuery(window).height();
var num = jQuery(this).find("a").attr("href").replace('#', '');
var cnt = 0;
jQuery("#huge_it_portfolio_popup_list_1").find(".pupup-element").each(function(){
cnt++;
});
if(num parseInt(jQuery('.pupup-element.active .right-block').height())){
if(jQuery('.pupup-element.active .image-block_1 img').height() > jQuery('.pupup-element.active .image-block_1').height()){
jQuery('.pupup-element.active .popup-wrapper_1').css({
'overflow-y':'auto',
});
}
else{
jQuery('.pupup-element.active .popup-wrapper_1').css({
'overflow-y':'auto',
'width':'98.8%',
});
jQuery('.pupup-element.active .right-block').css({
'overflow-y':'auto',
'width':'37.5%',
'padding': '0px 62px 0px 0px',
});
}
}
else if(jQuery('.pupup-element.active .description').height() jQuery('.pupup-element.active .image-block_1').height() ){
jQuery('.pupup-element.active .popup-wrapper_1').css({
'overflow-y':'auto',
'width':'96%',
});
}
return false
});
jQuery('body').on('click','#huge-popup-overlay_1',function(){
closePopup();
return false;
});
function closePopup() {
var end_video_src = jQuery('#huge_it_portfolio_popup_list_1 li.active iframe').attr('src');
var end_video = '&enablejsapi=1';
jQuery('#huge_it_portfolio_popup_list_1 li.active iframe').attr('src',end_video_src+end_video);
jQuery('#huge-popup-overlay_1').remove();
jQuery('#huge_it_portfolio_popup_list_1 li').removeClass('active');
jQuery('#huge_it_portfolio_popup_list_1').removeClass('active');
}
jQuery(window).load(function(){
$container.hugeitmicro({ filter: '*' });
});
});
/***
***/
jQuery(function(){
jQuery("#huge_it_portfolio_popup_list_1 .video-thumb .play-icon").on('click',function() {
new_video_id = jQuery(this).attr("title");
var showcontrols,prefix,add_src;
var showcontrols,new_video_id,prefix;
if(!new_video_id)
return;
if(new_video_id.length == 11) {
showcontrols = "?modestbranding=1&showinfo=0&controls=1";
prefix = "//www.youtube.com/embed/";
}
else {
showcontrols = "?title=0&byline=0&portrait=0";
prefix = "//player.vimeo.com/video/";
}
add_src = prefix+new_video_id+showcontrols;
var left_block = jQuery(this).parents('.right-block').prev();
if(left_block.find('iframe').length !=0)
left_block.find('iframe').attr('src',add_src);
else
left_block.html(' ');
return false;
});
});
/*** ***/