/*pagination styles*/ #bwg_container1_4 #bwg_container2_4 .tablenav-pages_4 { text-align: center; font-size: 12px; font-family: Ubuntu; font-weight: bold; color: #666666; margin: 6px 0 4px; display: block; height: 30px; line-height: 30px; } @media only screen and (max-width : 320px) { #bwg_container1_4 #bwg_container2_4 .displaying-num_4 { display: none; } } #bwg_container1_4 #bwg_container2_4 .displaying-num_4 { font-size: 12px; font-family: Ubuntu; font-weight: bold; color: #666666; margin-right: 10px; vertical-align: middle; } #bwg_container1_4 #bwg_container2_4 .paging-input_4 { font-size: 12px; font-family: Ubuntu; font-weight: bold; color: #666666; vertical-align: middle; } #bwg_container1_4 #bwg_container2_4 .tablenav-pages_4 a.disabled, #bwg_container1_4 #bwg_container2_4 .tablenav-pages_4 a.disabled:hover, #bwg_container1_4 #bwg_container2_4 .tablenav-pages_4 a.disabled:focus { cursor: default; color: rgba(102, 102, 102, 0.5); } #bwg_container1_4 #bwg_container2_4 .tablenav-pages_4 a { cursor: pointer; font-size: 12px; font-family: Ubuntu; font-weight: bold; color: #666666; text-decoration: none; padding: 3px 6px; margin: 0; border-radius: 0; border-style: none; border-width: 1px; border-color: #E3E3E3; background-color: #FCFCFC; opacity: 1.00; box-shadow: 0; transition: all 0.3s ease 0s;-webkit-transition: all 0.3s ease 0s; } #bwg_container1_4 #bwg_container2_4 .tablenav-pages_4 a.next-page:hover, #bwg_container1_4 #bwg_container2_4 .tablenav-pages_4 a.prev-page:hover { color: #000000; } #bwg_container1_4 #bwg_container2_4 .tablenav-pages_4 .first-page, #bwg_container1_4 #bwg_container2_4 .tablenav-pages_4 .last-page { padding: 0% 7%; } #bwg_container1_4 #bwg_container2_4 .tablenav-pages_4 .next-page { margin: 0% 4% 0% 0%; } #bwg_container1_4 #bwg_container2_4 .tablenav-pages_4 .prev-page { margin: 0% 0% 0% 4%; } #bwg_container1_4 #bwg_container2_4 .tablenav-pages_4 a { font-size: 15px !important; padding: 0% 7% !important; border-style: none !important; border-width: 1px; border-color: #E3E3E3; background-color: #FCFCFC; opacity: 1.00; transition: all 0.3s ease 0s;-webkit-transition: all 0.3s ease 0s; } .bwg_image_browser#bwg_container1_4 #bwg_container2_4 .tablenav-pages_4 a { padding: 0% 11% !important; } #bwg_container1_4 #bwg_container2_4 .tablenav-pages_4 { background-color: rgba(255, 255, 255, 0.90); margin-top: 0; } .bwg_image_browser .pagination-links_4 { white-space: nowrap; } @media screen and (max-width: 465px) { .bwg_image_browser#bwg_container1_4 #bwg_container2_4 .tablenav-pages_4 a { padding: 0% 5% !important; font-size: 13px; } }
function spider_page_4(cur, x, y, load_more) { if (typeof load_more == "undefined") { var load_more = false; } if (jQuery(cur).hasClass('disabled')) { return false; } var items_county_4 = 11; switch (y) { case 1: if (x >= items_county_4) { document.getElementById('page_number_4').value = items_county_4; } else { document.getElementById('page_number_4').value = x + 1; } break; case 2: document.getElementById('page_number_4').value = items_county_4; break; case -1: if (x == 1) { document.getElementById('page_number_4').value = 1; } else { document.getElementById('page_number_4').value = x - 1; } break; case -2: document.getElementById('page_number_4').value = 1; break; default: document.getElementById('page_number_4').value = 1; } bwg_ajax('gal_front_form_4', '4', 'bwg_image_browser_4', '0', '', '', 0, '', '', load_more, '', 1); } jQuery('.first-page disabled').on('click', function () { spider_page_4(this, 1, -2, 'numeric'); return false; }); jQuery('.prev-page disabled').on('click', function () { spider_page_4(this, 1, -1, 'numeric'); return false; }); jQuery('.next-page-4').on('click', function () { spider_page_4(this, 1, 1, 'numeric'); return false; }); jQuery('.last-page-4').on('click', function () { spider_page_4(this, 1, 2, 'numeric'); return false; }); jQuery('.bwg_load_btn_4').on('click', function () { spider_page_4(this, 1, 1, true); return false; }); #bwg_container1_4 #bwg_container2_4 #spider_popup_overlay_4 { background-color: #000000; opacity: 0.70; }