FilmStock - Analog Photoshop Actions - YouWorkForThem (2024)

'); $('#divLoadmore').addClass('loading_more');// $('#divLoadmore').show(); } }).done(function (response) { var isIOs= /iPhone|iPod|iPad/.test(navigator.userAgent) && !window.MSStream; if(!isIOs){ if(warp_height > window_height){ var body_w = $(window.parent).width()+15; }else{ var body_w = $(window.parent).width(); } }else{ var body_w = $(window.parent).width(); } //console.log(res.data); return false; $.each(response.data, function(r, return_data){ var $listhtml = ''; var chk =''; var str = ''; var i =0; var txtrow = ''; var findimg = ''; var link = ''; if(return_data.return_code==1){ $("#CollectionList").show(); var $listhtml = ''; var action_method = ''; var img_large = ''; var product_count = ''; $("#linesup").show(); $("#linesdown").hide(); var img_w = $( "#CollectionList" ).find('.coll-list-items').eq(0).width(); var img_old_w = 592; var img_old_h = 396; img_w = img_w - 50; var percentChange = img_w / img_old_w; var new_height = Math.round( ( percentChange * img_old_h ) ); if(return_data.collection_list != ""){ $.each(return_data.collection_list, function(index, obj) { if((i%2) == 0)txtrow = ''; else txtrow = ' event'; if(obj.status =="4")chk=''; else chk=''; var collection_url = 'https://www.youworkforthem.com/collection/'+obj.collection_id; if(obj.status == '9'){ var custom_url = ''; var this_title = obj.collection_title; var strWithOutQuotes = this_title.replace(/[`~!@#$%^&*()_|+\=?;:",.<>\{\}\[\]\\\/]/gi,''); custom_url = $.trim(strWithOutQuotes); custom_url = custom_url.replace(/[']+/g, ''); custom_url = custom_url.replace(/[’]+/g, ''); custom_url = custom_url.replace(/\s\s+/g, ' '); custom_url = custom_url.replace(/ /g, '-'); custom_url = custom_url.replaceAll('--', '-'); custom_url = custom_url.toLowerCase(); collection_url = 'https://www.youworkforthem.com/collection/'+custom_url; } if(isIOs) { link = 'View'; } else { link = 'View'; } action_method = ' onclick="javascription:add_to_collection(\''+obj.collection_id+'\');" ontouchend="javascription:add_to_collection(\''+obj.collection_id+'\');"'; findimg = 'imgselect'; var style_img = ''; if(obj.large != ''){ style_img = "background: #f8f8f8 url('"+obj.large+"') no-repeat center center; background-size:cover;"; img_large = '

FilmStock - Analog Photoshop Actions - YouWorkForThem (1)

'; }else{ if(isIphone){ img_large = '

'; }else{ img_large = '

'; } } if(obj.count_product>1){ product_count = obj.count_product+' Products'; }else{ product_count = obj.count_product+' Product'; } $listhtml += '

'; $listhtml += '

'; $listhtml += '

'; $listhtml += '

'; $listhtml += '

'+obj.title+''+chk+''+product_count+'

'; $listhtml += '

'; $listhtml += ''+img_large+''; $listhtml += '

'; $listhtml += '

'; $listhtml += '

'; $listhtml += '

'; $listhtml += ' '+obj.title+''; $listhtml += ' '+chk+''; $listhtml += '

'; $listhtml += '

'; $listhtml += '

'; $listhtml += '

'; $listhtml += '

'; $listhtml += '

'; $listhtml += ''+link+''; $listhtml += '

'; $listhtml += '

'; $listhtml += '

'; $listhtml += '

'+str+'

'; $listhtml += '

'; $listhtml += '

'; $listhtml += '

'; $listhtml += '

'; $listhtml += '

'; $listhtml += '

'; $listhtml += '

'; i++; }); //$listhtml += 'pages '+paged; $('#CollectionList').append($listhtml); // if($("#CollectionList").find(".div-table").length >= 5){// $('.lineclosebutton').css('display','block');// }// get_resizing_image_newload();// if(paged>1 && body_w>2000){// if($("#CollectionList").find(".coll-list-items").length > 12){// $('#CollectionList').css({'height':collection_list_height+'px'});// }// } if(paged>0){ var arr = []; calc_last_row(arr); // setTimeout(function() {// if(!isIphone){// if(parent.$('#main_content_list').css('display')=='block'){ ///main-collection-overlay #CollectionList// // console.log('items='+$('.coll-list-items').length);// var arr = [];// $( ".coll-list-items" ).each(function( i ) {// var $this = $(this);// var img_w = $this.find('.Img-collection').width();// var img_h = $this.find('.Img-collection').height();// // console.log('width='+img_w+' height='+img_h);// arr.push(img_h);// });//// // //get_resizing_image();// }// }// },100); // console.log('last_page='+last_page+' paged='+paged); if(paged == last_page){ setTimeout(function() {// $('#divLoadmore').fadeOut('fast'); $('#divLoadmore').addClass('loading_finish'); }, 1000); }else{ var total_items = parseInt($('#CollectionList .coll-list-items').length); var col_limit = 0; var totalrows = parseInt(total_items/1); if(isIphone){ if(body_w > window_height){ totalrows = parseInt(total_items/2); }else{ totalrows = parseInt(total_items/1); } }else{ if(body_w>2000){ col_limit = 6; }else if(body_w>1450 && body_w<=2000){ col_limit = 5; }else if(body_w>1151 && body_w<=1450){ col_limit = 4; }else if(body_w>851 && body_w<=1180){ col_limit = 3; }else if(body_w>599 && body_w<=850){ col_limit = 2; }else if(body_w>1 && body_w<=599){ col_limit = 1; } totalrows = parseInt(total_items/col_limit); } if(totalrows>1){ totalrows = totalrows - 1; } var div_h = new_height + 109; var div_top = Math.round(div_h * totalrows);// var last_div_top = parseInt($('.collection_row').last().offset().top);// console.log('totalrows='+totalrows+' div_h='+div_h+' last_div_top='+last_div_top); //return false; setTimeout(function() { $('#offset_top').val(div_top); $('#pages').val(paged); $('#divLoadmore').removeClass( "loading_more" );// $('#divLoadmore').hide(); $('#divLoadmore').html(''); }, 1000); } } }else{ $("#lines").hide(); $("#linesdown").show(); $("#CollectionList").hide(); //parent.$.colorbox.resize({height:175}); colorbox_size('small'); $("#getSave").hide(); $('#list_empty').html(''); $('#list_empty').show(); $('#list_empty').html('

You currently have no collections.
Please use the button above to create a new collection.
'); // $(".CloseBtt .lineclosebutton").css("display","none"); return false; } }else{ $("#lines").hide(); $("#linesdown").show(); $("#CollectionList").hide(); //parent.$.colorbox.resize({height:175}); colorbox_size('small'); $("#getSave").hide(); $('#list_empty').html(''); $('#list_empty').show(); $('#list_empty').html('

You currently have no collections.
Please use the button above to create a new collection.
'); // $(".CloseBtt .lineclosebutton").css("display","none"); return false; } }); }); } }});function get_collection_list(keywordpass,ids,ispop,sku,ptype){ if(ispop != '' && ispop =='pop'){ //alert('get_collection_list '+ispop); } console.log('-- get_collection_list --'); var warp_height = parent.$(document).height(); var window_height = parent.$(window).height(); $.post("/ajax_collection.php",{sku:sku,keywords:keywordpass,collectionid:ids,ptype:ptype,action:"CollectionList","a9954b75b9":"35fbe3723d01412dc3d4d245e185b656feaea32a839066d14738c0cda12f564c"}, function( response ) { var res = jQuery.parseJSON(response); var isIOs= /iPhone|iPod|iPad/.test(navigator.userAgent) && !window.MSStream; var isIphone= /iPhone|iPod/.test(navigator.userAgent) && !window.MSStream; var isIPad = /iPad/.test(navigator.userAgent) && !window.MSStream;// if(!isIOs){// if(warp_height > window_height){ // var body_w = $(window.parent).width()+15;// }else{// var body_w = $(window.parent).width();// }// }else{ var body_w = $(window.parent).width();// }// console.log('window width='+$(window.parent).width()); $.each(res.data, function(r, return_str){ var $listhtml = ''; var chk =''; var str = ''; var i =0; var txtrow = ''; var findimg = ''; var link = ''; var last_row = ''; var total_items = return_str.collection_list.length; var col_limit = 6; var lastrow = Math.ceil(total_items/col_limit); var more_item = (total_items%col_limit); var lastrow_col = 0; var start_index = 0; // if(ispop != ''){ if(isIphone){ if(body_w > window_height){ lastrow = parseInt(total_items/2); col_limit = 2; }else{ lastrow = 1; col_limit = 1; } if(col_limit==2){ more_item = (total_items%col_limit); var limit_loop = col_limit; if(more_item==0){ lastrow_col = Math.ceil(total_items - col_limit); }else{ lastrow_col = Math.ceil(total_items - more_item); limit_loop = more_item; } }else{ lastrow_col = 1; limit_loop = 1; } }else{ if(body_w>2000){ if(more_item==0){ lastrow_col = Math.ceil(total_items - col_limit); limit_loop = col_limit; }else{ lastrow_col = Math.ceil(total_items - more_item); limit_loop = more_item; } }else if(body_w>1450 && body_w<=2000){ col_limit = 5; lastrow = parseInt(total_items/col_limit); more_item = (total_items%col_limit); var limit_loop = col_limit; if(more_item==0){ lastrow_col = Math.ceil(total_items - col_limit); limit_loop = col_limit; }else{ lastrow_col = Math.ceil(total_items - more_item); limit_loop = more_item; } }else if(body_w>1180 && body_w<1450){ col_limit = 4; lastrow = parseInt(total_items/col_limit); more_item = (total_items%col_limit); var limit_loop = col_limit; if(more_item==0){ lastrow_col = Math.ceil(total_items - col_limit); limit_loop = col_limit; }else{ lastrow_col = Math.ceil(total_items - more_item); limit_loop = more_item; } }else if(body_w>850 && body_w<=1180){ col_limit = 3; lastrow = parseInt(total_items/col_limit); more_item = (total_items%col_limit); var limit_loop = col_limit; if(more_item==0){ lastrow_col = Math.ceil(total_items - col_limit); limit_loop = col_limit; }else{ lastrow_col = Math.ceil(total_items - more_item); limit_loop = more_item; } }else if(body_w>599 && body_w<=850){ col_limit = 2; lastrow = parseInt(total_items/col_limit); more_item = (total_items%col_limit); var limit_loop = col_limit; if(more_item==0){ lastrow_col = Math.ceil(total_items - col_limit); limit_loop = col_limit; }else{ lastrow_col = Math.ceil(total_items - more_item); limit_loop = more_item; } }else if(body_w>1 && body_w<=599){ lastrow = 1; col_limit = 1; more_item = (total_items%col_limit); var limit_loop = col_limit; if(more_item==0){ lastrow_col = Math.ceil(total_items - col_limit); limit_loop = col_limit; }else{ lastrow_col = Math.ceil(total_items - more_item); limit_loop = more_item; } } }// console.log('body_w='+body_w+' col_limit='+col_limit);// } if(return_str.return_code==1){// $("#CollectionList").show().css({'height':''}); var $listhtml = ''; var action_method = ''; var img_large = ''; var product_count = ''; var class_last_row = ''; var class_last_col = ''; var b = 0; var a = 1; $("#linesup").show(); $("#linesdown").hide(); if(return_str.collection_list != ""){ $.each(return_str.collection_list, function(index, obj) { if((i%2) == 0)txtrow = ''; else txtrow = ' event'; if(obj.status =="4")chk=''; else chk=''; var collection_url = 'https://www.youworkforthem.com/collection/'+obj.collection_id; if(obj.status == '9'){ var custom_url = ''; var this_title = obj.collection_title; var strWithOutQuotes = this_title.replace(/[`~!@#$%^&*()_|+\=?;:",.<>\{\}\[\]\\\/]/gi,''); custom_url = $.trim(strWithOutQuotes); custom_url = custom_url.replace(/[']+/g, ''); custom_url = custom_url.replace(/[’]+/g, ''); custom_url = custom_url.replace(/\s\s+/g, ' '); custom_url = custom_url.replace(/ /g, '-'); custom_url = custom_url.replaceAll('--', '-'); custom_url = custom_url.toLowerCase(); collection_url = 'https://www.youworkforthem.com/collection/'+custom_url; } if(isIOs) { link = 'View'; } else { link = 'View'; } action_method = ' onclick="javascription:add_to_collection(\''+obj.collection_id+'\');" ontouchend="javascription:add_to_collection(\''+obj.collection_id+'\');"'; findimg = 'imgselect'; var style_img = ''; if(obj.large != ''){ style_img = "background: #f8f8f8 url('"+obj.large+"') no-repeat center center; background-size:cover;"; img_large = '

FilmStock - Analog Photoshop Actions - YouWorkForThem (2)

'; }else{ if(isIphone){ img_large = '

'; }else{ img_large = '

'; } } if(obj.count_product>1){ product_count = obj.count_product+' Products'; }else{ product_count = obj.count_product+' Product'; } if(isIPad){ if(total_items > col_limit){ if(index >= lastrow_col){ class_last_row = ' items_last_row'; }else{ class_last_row = ''; } }else{ class_last_row = ''; } }else{ if(total_items > col_limit){ if(index >= lastrow_col){ class_last_row = ' items_last_row'; }else{ class_last_row = ''; } }else{ class_last_row = ' items_last_row'; } } var cal = (a%col_limit);// console.log('last col='+cal); if(cal==0){ class_last_col = ' last_col_r'; }else{ class_last_col = ''; } //console.log(index+' - '+total_items+' - column ='+col_limit+' lastrows index= '+lastrow_col+' lastcol '+a+' - '+cal); $listhtml += '

'; $listhtml += '

'; $listhtml += '

'; $listhtml += '

'; $listhtml += '

'+obj.title+''+chk+''+product_count+'

'; $listhtml += '

'; $listhtml += ''+img_large+''; $listhtml += '

'; $listhtml += '

'; $listhtml += '

'; $listhtml += '

'; $listhtml += ' '+obj.title+''; $listhtml += ' '+chk+''; $listhtml += '

'; $listhtml += '

'; $listhtml += '

'; $listhtml += '

'; $listhtml += '

'; $listhtml += '

'; $listhtml += ''+link+''; $listhtml += '

'; $listhtml += '

'; $listhtml += '

'; $listhtml += '

'+str+'

'; $listhtml += '

'; $listhtml += '

'; $listhtml += '

'; $listhtml += '

'; $listhtml += '

'; $listhtml += '

'; $listhtml += '

'; i++; a++; b++; }); $("#CollectionList").html($listhtml); if($("#CollectionList").find(".coll-list-items").length >= 50){ var new_total = parseInt($('#num_total_collection').val())+1;// $('.lineclosebutton').css('display','block'); $('#offset_top').val(''); $('#pages').val(1); if(ispop != '' && ispop =='addnew'){ $('#num_total_collection').val(new_total); } } if(ispop != '' && ispop =='pop'){ $('#CollectionList').css({'min-height':''}); } }else{ $("#lines").hide(); $("#linesdown").show(); $("#CollectionList").hide(); colorbox_size('small'); //parent.$.colorbox.resize({height:175}); $("#getSave").hide(); $('#list_empty').html(''); $('#list_empty').show(); $('#list_empty').html('

You currently have no collections.
Please use the button above to create a new collection.
'); // $(".CloseBtt .lineclosebutton").css("display","none"); return false; } }else{ $("#lines").hide(); $("#linesdown").show(); $("#CollectionList").hide(); colorbox_size('small'); //parent.$.colorbox.resize({height:175}); $("#getSave").hide(); $('#list_empty').html(''); $('#list_empty').show(); $('#list_empty').html('

You currently have no collections.
Please use the button above to create a new collection.
'); // $(".CloseBtt .lineclosebutton").css("display","none"); return false; } }); });}function add_to_collection_bkk(collec_id){ $("label[for=collection_title]").hide(); var keywordpass = ''; $("#LoadingList"+collec_id).show(); $("#IconsList"+collec_id).hide(); $('#ListRowId-'+collec_id+'-imgselect').find('.view_collection').hide(); var isIOS = /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream; var warp_height = parent.$(document).height(); var window_height = parent.$(window).height(); var msg = ''; if(!isIOS){ if(warp_height > window_height){ var body_w = parent.$(document).width()+15; }else{ var body_w = parent.$(document).width(); } }else{ var body_w = parent.$(document).width(); } if(isIOS && body_w<=736 ){ $("#Loading-"+collec_id).css('display','inline-block'); } //return false; ///console.log(collec_id); return false; $.post("/ajax_collection.php", {collection_id:collec_id,sku:$("#sku").val(),action:"add_to_collection",ptype:"98","a9954b75b9":"35fbe3723d01412dc3d4d245e185b656feaea32a839066d14738c0cda12f564c"}, function(res) { var response = jQuery.parseJSON(res); $('.CloseBtt, #list_msg_boxs').show(); $.each(response.data, function(index, obj) { $('#list_msg_boxs').html(""); $('.CloseBtt,#list_msg_boxs').show();// $("#LoadingList"+collec_id).hide(); if(obj.return_code == 1){ colorbox_size('small'); $('#main_content_list').hide(); if(body_w<=736){ var center_top = (window_height / 2) - 20; if(isIOS){ $('#show-result-msg').css({'margin-top':center_top+'px','padding':'20px 25px 10px'}); }else{ $('#show-result-msg').css({'margin-top':'','padding':'20px 25px 10px'}); } }else{ if(is_iPhone_product){ var center_top = (window_height / 2) - 20; $('#show-result-msg').css({'margin-top':center_top+'px','padding':'20px 25px 10px'}); }else{ $('#show-result-msg').css({'margin-top':'','padding':'17px 25px 10px'}); } } $('#show-result-msg').show(); $('#show-result-msg').html(obj.return_msg); $('#ListRowId-'+collec_id+'-imgselect').find('.view_collection').show(); $("#LoadingList"+collec_id).hide(); $('#show-result-msg').hide();// setTimeout(function() { close_collection_box(); // $("#Loading-"+collec_id).css('display','none'); // }, 1000); setTimeout(function() { $('#main_content_list').show(); parent.$('.collection-overlay').load( "/collection_form.php",{sku:$("#sku").val(),ptype:"98",refresh_page:"reload"} ,function() {// parent.$('.collection-overlay').removeAttr('style'); get_resizing_image(); }); }, 500); }else{ $("#LoadingList"+collec_id).hide(); $('#ListRowId-'+collec_id+'-imgselect').find('.view_collection').show();// $("#Loading-"+collec_id).css('display','none'); $("#IconsList"+collec_id).show(); $('#list_msg_boxs').html(''+obj.return_msg+''); setTimeout(function() { $('#list_msg_boxs').hide(); if(is_iPhone_product){ $('.CloseBtt').hide(); } }, 1000); } }); });}function add_to_collection(collec_id){ console.log("collec_id="+collec_id); $("label[for=collection_title]").hide(); var keywordpass = ''; $("#LoadingList"+collec_id).show(); $("#IconsList"+collec_id).hide(); $('#ListRowId-'+collec_id+'-imgselect').find('.view_collection').hide(); var isIOS = /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream; var isIphone = /iPhone|iPod/.test(navigator.userAgent) && !window.MSStream; var warp_height = parent.$(document).height(); var window_height = parent.$(window).height(); var msg = ''; var sku = $("#sku").val(); var ptype = "98"; if(sku == ''){ sku = $('#isSku').val(); } if(ptype == ''){ ptype = $('#ispType').val(); } if(!isIOS){ if(warp_height > window_height){ var body_w = parent.$(document).width()+15; }else{ var body_w = parent.$(document).width(); } }else{ var body_w = parent.$(document).width(); } if(isIOS && body_w<=736 ){ $("#Loading-"+collec_id).css('display','inline-block'); } if(isIphone){ $("#Loading-mobile-"+collec_id).css('display','block'); } var this_item = $( "#ListRowId-"+collec_id+"-imgselect" ).find('.collection_pcount_desktop').text(); var arr_p_count = this_item.split(" "); var p_count = parseInt(arr_p_count[0]); //console.log('add_to_collection flg_touch='+flg_touch); //return false; ///console.log(collec_id); return false; Loading-mobile- if(xhr && xhr.readystate != 4){ xhr.abort(); } xhr = $.ajax({ url: "/ajax_collection.php", type: "POST", data: {collection_id:collec_id,sku:sku,action:"add_to_collection_multi",ptype:ptype,pNum:p_count,"a9954b75b9":"35fbe3723d01412dc3d4d245e185b656feaea32a839066d14738c0cda12f564c"}, dataType: 'json', success: function(res){// var response = jQuery.parseJSON(res); $.each(res.data, function(index, obj) { if(obj.return_code == "1"){ var product_count = ''; var action_method = ''; if(obj.updatecover==1){ //ListRowId-1652099317-imgselect if(obj.productcount>1){ product_count = obj.productcount+' Products'; }else{ product_count = obj.productcount+' Product'; } $('#ListRowId-'+collec_id+'-imgselect').find('.collection_pcount_desktop').html(product_count); $('#ListRowId-'+collec_id+'-imgselect').find('.collection_pcount').html(product_count); if(obj.collection_lasted_images != ''){ var html_img = ''; if($('#ListRowId-'+collec_id+'-imgselect').find('.display-cover-empty').length>0){ var img_height = $('#ListRowId-'+collec_id+'-imgselect').find('.display-cover-empty').height(); var style_img = 'width:100%;height:'+img_height+'px;vertical-align: top;max-height:220px;'; var collection_title = $('#ListRowId-'+collec_id+'-imgselect').find('.collection_title_mobile').text(); if(body_w<=599){ var newHeight = 'auto'; }else{ var newHeight = img_height+'px'; } action_method = ' onclick="javascription:add_to_collection(\''+collec_id+'\');" ontouchend="javascription:add_to_collection(\''+collec_id+'\');"'; // if(obj.photo_w && obj.photo_h){ // if(obj.photo_w>obj.photo_h){ style_img = 'background: #f8f8f8 url(\''+obj.collection_lasted_images+'\') no-repeat center center; background-size:cover;'; // }else{ // style_img = 'width:auto;height:'+newHeight+';vertical-align: top;max-height:220px;'; // } // } html_img += '

'; html_img += ''; html_img += '

'; $('#ListRowId-'+collec_id+'-imgselect').find('.box-display').append(html_img); $('#ListRowId-'+collec_id+'-imgselect').find('.Img-collection').show(); $('#ListRowId-'+collec_id+'-imgselect').find('.display-cover-empty').hide(); setTimeout(function() { $('#ListRowId-'+collec_id+'-imgselect').find('.display-cover-empty').remove(); },200); } } } $('#list_msg_boxs').html(""); $('.CloseBtt,#list_msg_boxs').show(); $('#ListRowId-'+collec_id+'-imgselect').find('.view_collection').show(); $("#LoadingList"+collec_id).hide(); $("#IconsList"+collec_id).show(); if(isIphone){ $("#Loading-mobile-"+collec_id).css('display','none'); } setTimeout(function() { adjust_item_lasted_update(collec_id); }, 500); $('#list_msg_boxs').html(''+obj.return_msg+''); setTimeout(function() { $('#list_msg_boxs').hide(); if(isIphone){ $('.CloseBtt').hide(); } }, 3000); }else if(obj.return_code == "3"){ var product_count = ''; if(obj.updatecover==1){ //ListRowId-1652099317-imgselect if(obj.productcount>1){ product_count = obj.productcount+' Products'; }else{ product_count = obj.productcount+' Product'; } $('#ListRowId-'+collec_id+'-imgselect').find('.collection_pcount_desktop').html(product_count); $('#ListRowId-'+collec_id+'-imgselect').find('.collection_pcount').html(product_count); if(obj.collection_lasted_images != ''){ var html_img = ''; if($('#ListRowId-'+collec_id+'-imgselect').find('.display-cover-empty').length>0){ var img_height = $('#ListRowId-'+collec_id+'-imgselect').find('.display-cover-empty').height(); var style_img = 'width:100%;height:'+img_height+'px;vertical-align: top;max-height:220px;'; var collection_title = $('#ListRowId-'+collec_id+'-imgselect').find('.collection_title_mobile').text(); if(body_w<=599){ var newHeight = 'auto'; }else{ var newHeight = img_height+'px'; } // if(obj.photo_w && obj.photo_h){ // if(obj.photo_w>obj.photo_h){ style_img = 'background: #f8f8f8 url(\''+obj.collection_lasted_images+'\') no-repeat center center; background-size:cover;'; // }else{ // style_img = 'width:auto;height:'+newHeight+';vertical-align: top;max-height:220px;'; // } // } html_img += '

'; html_img += ''; html_img += '

'; $('#ListRowId-'+collec_id+'-imgselect').find('.box-display').append(html_img); $('#ListRowId-'+collec_id+'-imgselect').find('.Img-collection').show(); $('#ListRowId-'+collec_id+'-imgselect').find('.display-cover-empty').hide(); setTimeout(function() { $('#ListRowId-'+collec_id+'-imgselect').find('.display-cover-empty').remove(); },200); } } } $('#list_msg_boxs').html(""); $('.CloseBtt,#list_msg_boxs').show(); $('#ListRowId-'+collec_id+'-imgselect').find('.view_collection').show(); $("#LoadingList"+collec_id).hide(); $("#IconsList"+collec_id).show(); if(isIphone){ $("#Loading-mobile-"+collec_id).css('display','none'); } setTimeout(function() { adjust_item_lasted_update(collec_id); }, 500); $('#list_msg_boxs').html(''+obj.return_msg+''); setTimeout(function() { $('#list_msg_boxs').hide(); if(isIphone){ $('.CloseBtt').hide(); } }, 3000); }else{ $('#list_msg_boxs').html(""); $('.CloseBtt,#list_msg_boxs').show(); $("#LoadingList"+collec_id).hide(); $('#ListRowId-'+collec_id+'-imgselect').find('.view_collection').show(); if(isIphone){ $("#Loading-mobile-"+collec_id).css('display','none'); } // $("#Loading-"+collec_id).css('display','none'); $("#IconsList"+collec_id).show(); $('#list_msg_boxs').html(''+obj.return_msg+''); setTimeout(function() { $('#list_msg_boxs').hide(); if(isIphone){ $('.CloseBtt').hide(); } }, 3000); } }); } }); return false;}function adjust_item_lasted_update(collec_id){ //#ListRowId-1652173923-imgselect var div = $('#ListRowId-'+collec_id+'-imgselect'); var first_div_id = $( ".coll-list-items" ).first().attr('id'); var div_id = 'ListRowId-'+collec_id+'-imgselect'; if(div_id != first_div_id){ div.fadeOut('fast').hide(); div.insertBefore( "#"+first_div_id ); div.fadeIn('fast'); //$("#CollectionList").animate({scrollTop:0}, "fast"); var arr = []; calc_last_row(arr); }}function get_items_column(){ var isIOS = /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream; var is_iPad_product = navigator.userAgent.match(/iPad/i) != null; var isIphone = /iPhone|iPod/.test(navigator.userAgent) && !window.MSStream; var window_height = $(window).height(); var body_w = $(document).width(); var col_limit = 6; if(isIphone){ if(body_w > window_height){ col_limit = 2; }else{ col_limit = 1; } }else{ if(body_w>1450 && body_w<=2000){ col_limit = 5; }else if(body_w>1180 && body_w<1450){ col_limit = 4; }else if(body_w>850 && body_w<=1180){ col_limit = 3; }else if(body_w>599 && body_w<=850){ col_limit = 2; }else if(body_w>1 && body_w<=599){ col_limit = 1; } } return col_limit;}function del_collection(collec_id){ $("label[for=collection_title]").hide(); var keywordpass = ''; var isIphone = /iPhone|iPod/.test(navigator.userAgent) && !window.MSStream; var sku = 'E2647'; var ptype = '98'; if(sku == ''){ sku = $('#isSku').val(); } if(ptype == ''){ ptype = $('#ispType').val(); } $("#LoadingList"+collec_id).show(); $('#ListRowId-'+collec_id+'-imgselect').find('.view_collection').hide(); $("#IconsList"+collec_id).hide(); $.post("/ajax_collection.php", {collection_id:collec_id,sku:sku,action:"delete_product_collection",ptype:ptype,"a9954b75b9":"35fbe3723d01412dc3d4d245e185b656feaea32a839066d14738c0cda12f564c"}, function(res) { var response = jQuery.parseJSON(res); $('.CloseBtt,#list_msg_boxs').show(); $.each(response.data, function(index, obj) { $('#list_msg_boxs').html(""); $('.CloseBtt,#list_msg_boxs').show(); if(obj.return_code == 1){ setTimeout(function() { $("#LoadingList"+collec_id).hide(); $("#IconsList"+collec_id).show(); $('#ListRowId-'+collec_id+'-imgselect').find('.view_collection').show(); }, 500); get_collection_list(keywordpass,0,'',sku,ptype); }else{ $("#LoadingList"+collec_id).hide(); $("#IconsList"+collec_id).show(); $('#ListRowId-'+collec_id+'-imgselect').find('.view_collection').show(); $('#list_msg_boxs').html(''+obj.return_msg+''); setTimeout(function() { $('#list_msg_boxs').hide(); if(isIphone){ $('.CloseBtt').hide(); } }, 500); } }); });}function close_collection_box(){ var exists = (typeof resize_onclick === 'function'); // Returns true or false $('#topheader,#content,.admin-pageload-list,.main-holder,#footline,.footerHold').show(); //parent.$.colorbox.close(); $('.main-collection-overlay,.collection-overlay').hide(); $('.collection-overlay').css({'display':'','margin':'','width':'','height':''}); if(exists){ resize_onclick(); } flag_active_collection = 0; parent.collage(); collage(); if($('#content').attr('data-landingpage') == 1){ var body_w = $('body').width(); var new_w = body_w - 40; $('#contentPopularList').css('width',new_w+'px'); $('#contentFeatruedlist').css('width',new_w+'px'); popular_collage(); featured_collage(); } if($('#content_featured_collage').length>0){ featured_collage(); }// var total_items = $('#CollectionList .coll-list-items').length;// for (var b = 0; b < total_items; b++) {// var inx = b;// if(b>11){// if($('#CollectionList .coll-list-items').eq(inx).length>0){// $('#CollectionList .coll-list-items').eq(inx).hide();// }// }// // } $('#divLoadmore').removeClass( "loading_more loading_finish" );// $('#CollectionList').css({'height':''}); $('#CollectionList').find('.display-cover-image').css({'height':''}); $('#CollectionList').find('.display-cover-empty').css({'height':''}); $('#CollectionList').find('.coll-img').css({'height':''}); var focusobj = $('#contentLayoutCollection').attr('data-productpop'); if (typeof focusobj === "undefined") { var ofst = $('#contentLayoutCollection').attr('data-offsety'); // console.log('close y='+ofst); parent.$("html, body").animate({scrollTop: ofst}, 10); }else{ $('#contentLayoutCollection').removeAttr('data-productpop'); } // // // // // masterslider.refreshoption({// width:592,// height:394,// space:0,// loop:true,// view:'easeInQuart',// layout:'partialview'// }); // $('.main-collection-overlay,.collection-overlay').hide(); // $('#topheader,.main-holder,#footline,.footerHold').show(); if($('#related_btn').hasClass('releated_btn_active')){ $('#related_btn').trigger("click"); } if($('#designer_btn').hasClass('designer_btn_active')){ $('#designer_btn').trigger("click"); } if($('#related_btn_font').hasClass('releated_btn_active_font')){ $('#related_btn_font').trigger("click"); } if($('#designer_btn_font').hasClass('releated_btn_active')){ $('#designer_btn_font').trigger("click"); } }function get_resizing_image(){ var isIOS = /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream; var isIphone = /iPhone|iPod/.test(navigator.userAgent) && !window.MSStream; var warp_height = parent.$(document).height(); var window_height = parent.$(window).height(); if(parent.$('.main-collection-overlay').css('display') == 'block'){ if(!isIOS){ if(warp_height > window_height){ var body_w = parent.$(document).width()+15; }else{ var body_w = parent.$(document).width(); } }else{ var body_w = parent.$(document).width(); }// console.log('-- get_resizing_image --'); if(body_w>599){ var img_w = $( "#CollectionList" ).find('.coll-list-items').eq(0).width(); // console.log('- top img_w='+img_w); var img_old_w = 592; var img_old_h = 396; img_w = img_w - 50; var percentChange = img_w / img_old_w; var new_height = Math.round( ( percentChange * img_old_h ) ); $('#CollectionList').find('.display-cover-image').css({'height':new_height+'px'}); $('#CollectionList').find('.display-cover-empty').css({'height':new_height+'px'}); $('#CollectionList').find('.coll-img').css({'height':new_height+'px'}); // console.log('img_w='+img_w+' new_height='+new_height); }else{ $('#CollectionList').find('.display-cover-image').css({'height':'auto'}); $('#CollectionList').find('.display-cover-empty').css({'height':''}); $('#CollectionList').find('.coll-img').css({'height':''}); } }}function get_resizing_image_newload(){ var isIOS = /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream; var warp_height = parent.$(document).height(); var window_height = parent.$(window).height(); if(!isIOS){ if(warp_height > window_height){ var body_w = parent.$(document).width()+15; }else{ var body_w = parent.$(document).width(); } }else{ var body_w = parent.$(document).width(); }// console.log('-- get_resizing_image_newload --'); if(body_w>599){ $('#CollectionList .coll-list-items').find('.Img-collection').css({'height':'auto'}); var num_img = $('#CollectionList').find('.Img-collection').length; if(num_img>1){ var height_min = $('#CollectionList').find('.Img-collection').eq(0).height(); }else{ var height_min = $('#CollectionList').find('.Img-collection').height(); } if(height_min==0){ var boxw = $('#CollectionList .coll-list-items').width(); height_min = boxw - 50; } $('#CollectionList .box_new_load').find('.display-cover-image').css({'height':height_min+'px'}); $('#CollectionList .box_new_load').find('.display-cover-empty').css({'height':height_min+'px'}); $('#CollectionList .box_new_load').find('.coll-img').css({'height':height_min+'px'}); $('#CollectionList .box_new_load').find('.Img-collection').css({'height':height_min+'px','max-height':'220px'}); $('#CollectionList .box_new_load').find('.Img-collection-empty').css({'height':height_min+'px','max-height':'220px'}); }else{ $('#CollectionList .box_new_load').find('.Img-collection').css({'height':'auto'}); $('#CollectionList .box_new_load').find('.display-cover-image').css({'height':'auto'}); $('#CollectionList .box_new_load').find('.display-cover-empty').css({'height':'200px'}); $('#CollectionList .box_new_load').find('.coll-img').css({'height':'auto'}); $('#CollectionList .box_new_load').find('.Img-collection').css({'height':'auto','max-height':''}); $('#CollectionList .box_new_load').find('.Img-collection-empty').css({'height':'auto','max-height':''}); } setTimeout(function() {$('#CollectionList').find('.box_new_load').removeClass('box_new_load');},50); }function calc_last_row(arr_items){ var isIOS = /iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream; var isIphone = /iPhone|iPod/.test(navigator.userAgent) && !window.MSStream; var isIPad = /iPad/.test(navigator.userAgent) && !window.MSStream; var warp_height = parent.$(document).height(); var window_height = parent.$(window).height();// if(!isIOS){// if(warp_height > window_height){ // var body_w = parent.$(document).width()+15;// }else{// var body_w = parent.$(document).width();// }// }else{ var body_w = parent.$(document).width();// } var total_items = $('#CollectionList .coll-list-items').length; var lastrow = Math.ceil(total_items/6); var col_limit = 6; var l=1; var more_item = (total_items%col_limit); var lastrow_col = 0; var limit_row_items = col_limit*2; if(more_item==0){ lastrow_col = Math.ceil(total_items - col_limit); }else{ lastrow_col = Math.ceil(total_items - more_item); limit_loop = more_item; }// console.log(' --- calc_last_row --- '); if(total_items>1){ $("#CollectionList").find(".coll-list-items").removeClass('items_last_row');// alert('isIOS='+isIOS+' - isIphone='+isIphone+' total_items='+total_items); if(isIphone){ var indexa = total_items; if(body_w > window_height){ lastrow = parseInt(total_items/2); col_limit = 2; }else{ lastrow = 1; col_limit = 1; } if(col_limit==2){ more_item = (total_items%col_limit); var limit_loop = col_limit; if(more_item==0){ lastrow_col = Math.ceil(total_items - col_limit); }else{ lastrow_col = Math.ceil(total_items - more_item); limit_loop = more_item; } }else{ lastrow_col = 1; limit_loop = 1; }// console.log('index='+indexa+' col_limit='+col_limit); if($("#CollectionList").find(".coll-list-items").length > col_limit){ for (var b = 0; b < limit_loop; b++) { var inx = lastrow_col+b;// alert(' index = '+inx); if($('#CollectionList .coll-list-items').eq(inx).length>0){ $('#CollectionList .coll-list-items').eq(inx).addClass('items_last_row'); // $("#CollectionList").find(".coll-list-items").eq(inx).addClass('items_last_row'); } } }else{ $("#CollectionList").find(".coll-list-items").addClass('items_last_row'); } if(total_items>0){ $("#CollectionList").find(".coll-list-items").removeClass('last_col_r'); for (var a = 1; a <= total_items; a++) { var cal = (a%col_limit); if(cal==0){ var indx = a-1;// alert('item-'+a+'column='+cal+' indexc = '+indx); if($('#CollectionList .coll-list-items').eq(indx).length>0){ $('#CollectionList .coll-list-items').eq(indx).addClass('last_col_r'); } } } } }else{ if(body_w>2000){ // console.log(' - '+total_items+' -lastrows='+col_limit+' column= '+lastrow+' start '+lastrow_col); if($("#CollectionList").find(".coll-list-items").length > 6){ for (var b = 0; b < col_limit; b++) { var inx = lastrow_col+b; // console.log(' index = '+inx); if($('#CollectionList .coll-list-items').eq(inx).length>0){ $('#CollectionList .coll-list-items').eq(inx).addClass('items_last_row'); // $("#CollectionList").find(".coll-list-items").eq(inx).addClass('items_last_row'); } } }else{ $("#CollectionList").find(".coll-list-items").addClass('items_last_row'); } if(total_items>0){ $("#CollectionList").find(".coll-list-items").removeClass('last_col_r'); for (var a = 1; a <= total_items; a++) { var cal = (a%col_limit); if(cal==0){ var indx = a-1; // console.log('item-'+a+'column='+cal+' indexc = '+indx); if($('#CollectionList .coll-list-items').eq(indx).length>0){ $('#CollectionList .coll-list-items').eq(indx).addClass('last_col_r'); } } } } }else if(body_w>1450 && body_w<=2000){ lastrow = parseInt(total_items/5); col_limit = 5; limit_row_items = col_limit*2; if(total_items <= 5){ $('#CollectionList').css({'height':'auto'}); }else{ if(window_height>850){ $('#CollectionList').css({'height':''}); }else{ if(total_items<=limit_row_items){ $('#CollectionList').css({'height':'470px'}); } } if(isIPad){ $('#CollectionList').css({'height':''}); } } more_item = (total_items%col_limit); var limit_loop = col_limit; if(more_item==0){ lastrow_col = Math.ceil(total_items - col_limit); }else{ lastrow_col = Math.ceil(total_items - more_item); limit_loop = more_item; } // console.log('--------- '+(total_items%col_limit)+' ----------'); // console.log(' - '+total_items+' -column='+col_limit+' row='+lastrow+' items='+limit_loop+' start='+lastrow_col); if($("#CollectionList").find(".coll-list-items").length > 5){ if(isIPad){ if(total_items>col_limit){ for (var b = 0; b < limit_loop; b++) { var inx = lastrow_col+b;// console.log(' index = '+inx); if($('#CollectionList .coll-list-items').eq(inx).length>0){ $('#CollectionList .coll-list-items').eq(inx).addClass('items_last_row'); // $("#CollectionList").find(".coll-list-items").eq(inx).addClass('items_last_row'); } } } }else{ for (var b = 0; b < limit_loop; b++) { var inx = lastrow_col+b;// console.log(' index = '+inx); if($('#CollectionList .coll-list-items').eq(inx).length>0){ $('#CollectionList .coll-list-items').eq(inx).addClass('items_last_row'); // $("#CollectionList").find(".coll-list-items").eq(inx).addClass('items_last_row'); } } } }else{ $("#CollectionList").find(".coll-list-items").addClass('items_last_row'); } if(total_items>0){ $("#CollectionList").find(".coll-list-items").removeClass('last_col_r'); for (var a = 1; a <= total_items; a++) { var cal = (a%col_limit); if(cal==0){ var indx = a-1; // console.log('item-'+a+'column='+cal+' indexc = '+indx); if($('#CollectionList .coll-list-items').eq(indx).length>0){ $('#CollectionList .coll-list-items').eq(indx).addClass('last_col_r'); } } } } }else if(body_w>1180 && body_w<=1450){ lastrow = parseInt(total_items/4); col_limit = 4; limit_row_items = col_limit*2; if(total_items <= 4){ $('#CollectionList').css({'height':'auto'}).removeClass('list-items-8'); }else{ if(window_height>850){ $('#CollectionList').css({'height':''}); }else{ if(total_items<=limit_row_items){ $('#CollectionList').css({'height':'470px'}); } } if(isIPad){ $('#CollectionList').css({'height':''}); } } more_item = (total_items%col_limit); var limit_loop = col_limit; if(more_item==0){ lastrow_col = Math.ceil(total_items - col_limit); }else{ lastrow_col = Math.ceil(total_items - more_item); limit_loop = more_item; } // console.log('--------- '+(total_items%col_limit)+' ----------'); // console.log(' - '+total_items+' -column='+col_limit+' row='+lastrow+' items='+limit_loop+' start='+lastrow_col); if($("#CollectionList").find(".coll-list-items").length > 4){ if(isIPad){ if(total_items>col_limit){ for (var b = 0; b < limit_loop; b++) { var inx = lastrow_col+b;// console.log(' index = '+inx); if($('#CollectionList .coll-list-items').eq(inx).length>0){ $('#CollectionList .coll-list-items').eq(inx).addClass('items_last_row'); // $("#CollectionList").find(".coll-list-items").eq(inx).addClass('items_last_row'); } } } }else{ for (var b = 0; b < limit_loop; b++) { var inx = lastrow_col+b;// console.log(' index = '+inx); if($('#CollectionList .coll-list-items').eq(inx).length>0){ $('#CollectionList .coll-list-items').eq(inx).addClass('items_last_row'); // $("#CollectionList").find(".coll-list-items").eq(inx).addClass('items_last_row'); } } } }else{ $("#CollectionList").find(".coll-list-items").addClass('items_last_row'); } if(total_items>0){ $("#CollectionList").find(".coll-list-items").removeClass('last_col_r'); for (var a = 1; a <= total_items; a++) { var cal = (a%col_limit); if(cal==0){ var indx = a-1; // console.log('item-'+a+'column='+cal+' indexc = '+indx); if($('#CollectionList .coll-list-items').eq(indx).length>0){ $('#CollectionList .coll-list-items').eq(indx).addClass('last_col_r'); } } } } }else if(body_w>850 && body_w<=1180){ lastrow = parseInt(total_items/3); col_limit = 3; limit_row_items = col_limit*2; if(total_items <= 3){ $('#CollectionList').css({'height':'auto'}); }else{ if(window_height>850){ $('#CollectionList').css({'height':''}); }else{ if(total_items<=limit_row_items){ $('#CollectionList').css({'height':'470px'}); } } if(isIPad){ $('#CollectionList').css({'height':''}); } } more_item = (total_items%col_limit); var limit_loop = col_limit; if(more_item==0){ lastrow_col = Math.ceil(total_items - col_limit); }else{ lastrow_col = Math.ceil(total_items - more_item); limit_loop = more_item; } // console.log('--------- '+(total_items%col_limit)+' ----------'); // console.log(' - '+total_items+' -column='+col_limit+' row='+lastrow+' items='+limit_loop+' start='+lastrow_col); if($("#CollectionList").find(".coll-list-items").length > 3){ if(isIPad){ if(total_items>col_limit){ for (var b = 0; b < limit_loop; b++) { var inx = lastrow_col+b;// console.log(' index = '+inx); if($('#CollectionList .coll-list-items').eq(inx).length>0){ $('#CollectionList .coll-list-items').eq(inx).addClass('items_last_row'); // $("#CollectionList").find(".coll-list-items").eq(inx).addClass('items_last_row'); } } } }else{ for (var b = 0; b < limit_loop; b++) { var inx = lastrow_col+b;// console.log(' index = '+inx); if($('#CollectionList .coll-list-items').eq(inx).length>0){ $('#CollectionList .coll-list-items').eq(inx).addClass('items_last_row'); // $("#CollectionList").find(".coll-list-items").eq(inx).addClass('items_last_row'); } } } }else{ if(!isIPad){ $("#CollectionList").find(".coll-list-items").addClass('items_last_row'); } } if(total_items>0){ $("#CollectionList").find(".coll-list-items").removeClass('last_col_r'); for (var a = 1; a <= total_items; a++) { var cal = (a%col_limit); if(cal==0){ var indx = a-1; // console.log('item-'+a+'column='+cal+' indexc = '+indx); if($('#CollectionList .coll-list-items').eq(indx).length>0){ $('#CollectionList .coll-list-items').eq(indx).addClass('last_col_r'); } } } } }else if(body_w>599 && body_w<=850){ lastrow = parseInt(total_items/2); col_limit = 2; limit_row_items = col_limit*2;// console.log('-col_limit-'+col_limit+' total_items-'+total_items); if(total_items <= 3){ $('#CollectionList').css({'height':'auto'}); }else{ if(window_height>850){ $('#CollectionList').css({'height':''}); }else{ if(total_items<=limit_row_items){ $('#CollectionList').css({'height':'470px'}); } } if(isIPad){ $('#CollectionList').css({'height':''}); } } more_item = (total_items%col_limit); var limit_loop = col_limit; if(more_item==0){ lastrow_col = Math.ceil(total_items - col_limit); }else{ lastrow_col = Math.ceil(total_items - more_item); limit_loop = more_item; } // console.log('--------- '+(total_items%col_limit)+' ----------'); // console.log(' - '+total_items+' -column='+col_limit+' row='+lastrow+' items='+limit_loop+' start='+lastrow_col); if($("#CollectionList").find(".coll-list-items").length > 2){ if(isIPad){ if(total_items>col_limit){ for (var b = 0; b < limit_loop; b++) { var inx = lastrow_col+b;// console.log(' index = '+inx); if($('#CollectionList .coll-list-items').eq(inx).length>0){ $('#CollectionList .coll-list-items').eq(inx).addClass('items_last_row'); // $("#CollectionList").find(".coll-list-items").eq(inx).addClass('items_last_row'); } } } }else{ for (var b = 0; b < limit_loop; b++) { var inx = lastrow_col+b;// console.log(' index = '+inx); if($('#CollectionList .coll-list-items').eq(inx).length>0){ $('#CollectionList .coll-list-items').eq(inx).addClass('items_last_row'); // $("#CollectionList").find(".coll-list-items").eq(inx).addClass('items_last_row'); } } } }else{ if(!isIPad){ $("#CollectionList").find(".coll-list-items").addClass('items_last_row'); } } if(total_items>0){ $("#CollectionList").find(".coll-list-items").removeClass('last_col_r'); for (var a = 1; a <= total_items; a++) { var cal = (a%col_limit); if(cal==0){ var indx = a-1; // console.log('item-'+a+'column='+cal+' indexc = '+indx); if($('#CollectionList .coll-list-items').eq(indx).length>0){ $('#CollectionList .coll-list-items').eq(indx).addClass('last_col_r'); } } } } }else if(body_w>1 && body_w<=599){ lastrow = 1; col_limit = 1; if(window_height>850){ $('#CollectionList').css({'height':''}); }else{ if(total_items == 1){ $('#CollectionList').css({'height':'auto'}); } } more_item = (total_items%col_limit); var limit_loop = col_limit; if(more_item==0){ lastrow_col = Math.ceil(total_items - col_limit); }else{ lastrow_col = Math.ceil(total_items - more_item); limit_loop = more_item; } // console.log('--------- '+(total_items%col_limit)+' ----------'); // console.log(' - '+total_items+' -column='+col_limit+' row='+lastrow+' items='+limit_loop+' start='+lastrow_col); if($("#CollectionList").find(".coll-list-items").length > 2){ if(isIPad){ if(total_items>col_limit){ for (var b = 0; b < limit_loop; b++) { var inx = lastrow_col+b;// console.log(' index = '+inx); if($('#CollectionList .coll-list-items').eq(inx).length>0){ $('#CollectionList .coll-list-items').eq(inx).addClass('items_last_row'); // $("#CollectionList").find(".coll-list-items").eq(inx).addClass('items_last_row'); } } } }else{ for (var b = 0; b < limit_loop; b++) { var inx = lastrow_col+b;// console.log(' index = '+inx); if($('#CollectionList .coll-list-items').eq(inx).length>0){ $('#CollectionList .coll-list-items').eq(inx).addClass('items_last_row'); // $("#CollectionList").find(".coll-list-items").eq(inx).addClass('items_last_row'); } } } }else{ $("#CollectionList").find(".coll-list-items").addClass('items_last_row'); } if(total_items>0){ $("#CollectionList").find(".coll-list-items").removeClass('last_col_r'); for (var a = 1; a <= total_items; a++) { var cal = (a%col_limit); if(cal==0){ var indx = a-1; // console.log('item-'+a+'column='+cal+' indexc = '+indx); if($('#CollectionList .coll-list-items').eq(indx).length>0){ $('#CollectionList .coll-list-items').eq(indx).addClass('last_col_r'); } } } } } } }}

FilmStock - Analog Photoshop Actions - YouWorkForThem (2024)
Top Articles
Latest Posts
Article information

Author: Amb. Frankie Simonis

Last Updated:

Views: 6361

Rating: 4.6 / 5 (76 voted)

Reviews: 91% of readers found this page helpful

Author information

Name: Amb. Frankie Simonis

Birthday: 1998-02-19

Address: 64841 Delmar Isle, North Wiley, OR 74073

Phone: +17844167847676

Job: Forward IT Agent

Hobby: LARPing, Kitesurfing, Sewing, Digital arts, Sand art, Gardening, Dance

Introduction: My name is Amb. Frankie Simonis, I am a hilarious, enchanting, energetic, cooperative, innocent, cute, joyous person who loves writing and wants to share my knowledge and understanding with you.