/*pagination styles*/ #bwg_container1_0 #bwg_container2_0 .tablenav-pages_0 { text-align: center; font-size: 12px; font-weight: bold; color: #666666; margin: 6px 0 4px; display: block; } @media only screen and (max-width : 320px) { #bwg_container1_0 #bwg_container2_0 .displaying-num_0 { display: none; } } #bwg_container1_0 #bwg_container2_0 .displaying-num_0 { font-size: 12px; font-weight: bold; color: #666666; margin-right: 10px; vertical-align: middle; } #bwg_container1_0 #bwg_container2_0 .paging-input_0 { font-size: 12px; font-weight: bold; color: #666666; vertical-align: middle; } #bwg_container1_0 #bwg_container2_0 .tablenav-pages_0 a.disabled, #bwg_container1_0 #bwg_container2_0 .tablenav-pages_0 a.disabled:hover, #bwg_container1_0 #bwg_container2_0 .tablenav-pages_0 a.disabled:focus, #bwg_container1_0 #bwg_container2_0 .tablenav-pages_0 input.bwg_current_page { cursor: default; color: rgba(102, 102, 102, 0.5); } #bwg_container1_0 #bwg_container2_0 .tablenav-pages_0 a, #bwg_container1_0 #bwg_container2_0 .tablenav-pages_0 input.bwg_current_page { cursor: pointer; text-align: center; font-size: 12px; font-weight: bold; color: #666666; text-decoration: none; padding: 3px 6px; margin: 0; border-radius: 0; border-style: solid; border-width: 1px; border-color: #E3E3E3; background-color: rgba(255, 255, 255, 1.00); box-shadow: 0; transition: all 0.3s ease 0s;-webkit-transition: all 0.3s ease 0s; }
if( jQuery('.bwg_nav_cont_0').length > 1 ) { jQuery('.bwg_nav_cont_0').first().remove() } function spider_page_0(cur, x, y, load_more) { if (typeof load_more == "undefined") { var load_more = false; } if (jQuery(cur).hasClass('disabled')) { return false; } var items_county_0 = 2; switch (y) { case 1: if (x >= items_county_0) { document.getElementById('page_number_0').value = items_county_0; } else { document.getElementById('page_number_0').value = x + 1; } break; case 2: document.getElementById('page_number_0').value = items_county_0; break; case -1: if (x == 1) { document.getElementById('page_number_0').value = 1; } else { document.getElementById('page_number_0').value = x - 1; } break; case -2: document.getElementById('page_number_0').value = 1; break; case 0: document.getElementById('page_number_0').value = x; break; default: document.getElementById('page_number_0').value = 1; } bwg_ajax('gal_front_form_0', '0', 'bwg_album_compact_0', '0', '', 'album', 0, '', '', load_more, '', 1); } jQuery('.first-page-0').on('click', function () { spider_page_0(this, 2, -2, 'numeric'); return false; }); jQuery('.prev-page-0').on('click', function () { spider_page_0(this, 2, -1, 'numeric'); return false; }); jQuery('.next-page disabled').on('click', function () { spider_page_0(this, 2, 1, 'numeric'); return false; }); jQuery('.last-page disabled').on('click', function () { spider_page_0(this, 2, 2, 'numeric'); return false; }); /* Change page on input enter. */ function bwg_change_page_0( e, that ) { if ( e.key == 'Enter' ) { var to_page = parseInt(jQuery(that).val()); var pages_count = jQuery(that).parents(".pagination-links").data("pages-count"); var current_url_param = jQuery(that).attr('data-url-info'); if (to_page > pages_count) { to_page = 1; } spider_page_0(this, to_page, 0, 'numeric'); return false; } return true; } jQuery('.bwg_load_btn_0').on('click', function () { spider_page_0(this, 2, 1, true); return false; }); #bwg_container1_0 #bwg_container2_0 #spider_popup_overlay_0 { background-color: #000000; opacity: 0.70; }