Hams in the Park Photo Gallery


Hams in the Park
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 = 1; 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', '1', '', 'album', 0, '', '', load_more, '', 1); } jQuery('.first-page-0').on('click', function () { spider_page_0(this, 1, -2, 'numeric'); return false; }); jQuery('.prev-page-0').on('click', function () { spider_page_0(this, 1, -1, 'numeric'); return false; }); jQuery('.next-page-0').on('click', function () { spider_page_0(this, 1, 1, 'numeric'); return false; }); jQuery('.last-page-0').on('click', function () { spider_page_0(this, 1, 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, 1, 1, true); return false; });
if (document.readyState === 'complete') { if( typeof bwg_main_ready == 'function' ) { if ( jQuery("#bwg_container1_0").height() ) { bwg_main_ready(jQuery("#bwg_container1_0")); } } } else { document.addEventListener('DOMContentLoaded', function() { if( typeof bwg_main_ready == 'function' ) { if ( jQuery("#bwg_container1_0").height() ) { bwg_main_ready(jQuery("#bwg_container1_0")); } } }); }