Calander Netball
var tb_pathToImage = "https://www.marrickvillerslallstarsnetball.com/wp-content/plugins/spider-event-calendar/images/loadingAnimation.gif"; var tb_closeImage = "https://www.marrickvillerslallstarsnetball.com/wp-content/plugins/spider-event-calendar/images/tb-close.png" var randi; if (typeof showbigcalendar != 'function') { function showbigcalendar(id, calendarlink, randi, widget) { jQuery.ajax({ type: "GET", url: calendarlink, data: {}, success: function (data) { jQuery('#' + id).html(data); spider_calendar_ajax_success(id, calendarlink, randi, widget) } }); } function spider_calendar_ajax_success(id, calendarlink, randi, widget) { jQuery(document).ready(function () { jQuery('#views_select').toggle(function () { jQuery('#drop_down_views').stop(true, true).delay(200).slideDown(500); jQuery('#views_select .arrow-down').addClass("show_arrow"); jQuery('#views_select .arrow-right').removeClass("show_arrow"); }, function () { jQuery('#drop_down_views').stop(true, true).slideUp(500); jQuery('#views_select .arrow-down').removeClass("show_arrow"); jQuery('#views_select .arrow-right').addClass("show_arrow"); }); }); if (widget != 1) { jQuery('drop_down_views').hide(); var parent_width = document.getElementById('bigcalendar' + randi).parentNode.clientWidth; var calwidth = document.getElementById('cal_width' + randi).value; var responsive_width = (calwidth) / parent_width * 100; document.getElementById('bigcalendar' + randi).setAttribute('style', 'width:' + responsive_width + '%;'); jQuery('pop_table').css('height', '100%'); } var thickDims, tbWidth, tbHeight; jQuery(document).ready(function ($) { if (/iPad|iPhone|iPod/.test(navigator.userAgent) && !window.MSStream) { jQuery('body').addClass('ios_device'); } setInterval(function () { if (jQuery("body").hasClass("modal-open")) jQuery("html").addClass("thickbox_open"); else jQuery("html").removeClass("thickbox_open"); }, 500); thickDims = function () { var tbWindow = jQuery('#TB_window'), H = jQuery(window).height(), W = jQuery(window).width(), w, h; if (tbWidth) { if (tbWidth < (W - 90)) w = tbWidth; else w = W - 200; } else w = W - 200; if (tbHeight) { if (tbHeight < (H - 90)) h = tbHeight; else h = H - 200; } else h = H - 200; if (tbWindow.length) { tbWindow.width(w).height(h); jQuery('#TB_iframeContent').width(w).height(h - 27); tbWindow.css({'margin-left': '-' + parseInt((w / 2), 10) + 'px'}); if (typeof document.body.style.maxWidth != 'undefined') tbWindow.css({'top': (H - h) / 2, 'margin-top': '0'}); } if (jQuery(window).width() < 768) { var tb_left = parseInt((w / 2), 10) + 20; jQuery('#TB_window').css({"left": tb_left + "px", "width": "90%", "margin-top": "-13%", "height": "100%"}) jQuery('#TB_window iframe').css({'height': '100%', 'width': '100%'}); } else jQuery('#TB_window').css('left', '50%'); if (typeof popup_width_from_src != "undefined") { popup_width_from_src = jQuery('.thickbox-previewbigcalendar' + randi).attr('href').indexOf('tbWidth='); str = jQuery('.thickbox-previewbigcalendar' + randi).attr('href').substr(popup_width_from_src + 8, 150) find_amp = str.indexOf('&'); width_orig = str.substr(0, find_amp); find_eq = str.indexOf('='); height_orig = str.substr(find_eq + 1, 5); jQuery('#TB_window').css({'max-width': width_orig + 'px', 'max-height': height_orig + 'px'}); jQuery('#TB_window iframe').css('max-width', width_orig + 'px'); } }; thickDims(); jQuery(window).resize(function () { thickDims(); }); jQuery('a.thickbox-preview' + id).click(function () { tb_click.call(this); var alink = jQuery(this).parents('.available-theme').find('.activatelink'), link = '', href = jQuery(this).attr('href'), url, text; var reg_with = new RegExp(xx_cal_xx + "tbWidth=[0-9]+"); if (tbWidth = href.match(reg_with)) tbWidth = parseInt(tbWidth[0].replace(/[^0-9]+/g, ''), 10); else tbWidth = jQuery(window).width() - 90; var reg_heght = new RegExp(xx_cal_xx + "tbHeight=[0-9]+"); if (tbHeight = href.match(reg_heght)) tbHeight = parseInt(tbHeight[0].replace(/[^0-9]+/g, ''), 10); else tbHeight = jQuery(window).height() - 60; jQuery('#TB_ajaxWindowTitle').css({'float': 'right'}).html(link); thickDims(); return false; }); }); } } document.onkeydown = function (evt) { evt = evt || window.event; if (evt.keyCode == 27) { document.getElementById('sbox-window').close(); } }; showbigcalendar('bigcalendar1', 'https://www.marrickvillerslallstarsnetball.com/wp-admin/admin-ajax.php?action=spiderbigcalendar_month&theme_id=13&calendar=3&select=month,list,week,day,&date=2024-10&months&many_sp_calendar=1&widget=0&rand=1', '1', '0'); #TB_window iframe { background: #B4C5CC; }