{"id":51,"date":"2016-04-03T07:34:26","date_gmt":"2016-04-03T06:34:26","guid":{"rendered":"http:\/\/amapassionduloir.lafermedespetitspas.fr\/?page_id=51"},"modified":"2016-04-03T07:37:41","modified_gmt":"2016-04-03T06:37:41","slug":"evenements-a-venir","status":"publish","type":"page","link":"http:\/\/amapassionduloir.lafermedespetitspas.fr\/?page_id=51","title":{"rendered":"Calendrier"},"content":{"rendered":"  <input type=\"hidden\" id=\"cal_width1\" value=\"700\" \/> \n  <div id='bigcalendar1'><\/div>\n  <script> \n    var tb_pathToImage = \"http:\/\/amapassionduloir.lafermedespetitspas.fr\/wp-content\/plugins\/spider-event-calendar\/images\/loadingAnimation.gif\";\n    var tb_closeImage = \"http:\/\/amapassionduloir.lafermedespetitspas.fr\/wp-content\/plugins\/spider-event-calendar\/images\/tb-close.png\"\n\tvar randi;\n    if (typeof showbigcalendar != 'function') {\t\n      function showbigcalendar(id, calendarlink, randi, widget) {\n        var xmlHttp;\n        try {\n          xmlHttp = new XMLHttpRequest();\/\/ Firefox, Opera 8.0+, Safari\n        }\n        catch (e) {\n          try {\n            xmlHttp = new ActiveXObject(\"Msxml2.XMLHTTP\"); \/\/ Internet Explorer\n          }\n          catch (e) {\n            try {\n              xmlHttp = new ActiveXObject(\"Microsoft.XMLHTTP\");\n            }\n            catch (e) {\n              alert(\"No AJAX!?\");\n              return false;\n            }\n          }\n        }\n        xmlHttp.onreadystatechange = function () {\n          if (xmlHttp.readyState == 4) {\n            \/\/ document.getElementById(id).innerHTML = xmlHttp.responseText;\n            jQuery('#' + id).html(xmlHttp.responseText);\n          }\n        }\n        xmlHttp.open(\"GET\", calendarlink, false);\n        xmlHttp.send();\n\t jQuery(document).ready(function (){\n\t  jQuery('#views_select').toggle(function () {\t\n\t\tjQuery('#drop_down_views').stop(true, true).delay(200).slideDown(500);\n\t\tjQuery('#views_select .arrow-down').addClass(\"show_arrow\");\n\t\tjQuery('#views_select .arrow-right').removeClass(\"show_arrow\");\n\t  }, function () { \n\t\tjQuery('#drop_down_views').stop(true, true).slideUp(500);\n\t\tjQuery('#views_select .arrow-down').removeClass(\"show_arrow\");\n\t\tjQuery('#views_select .arrow-right').addClass(\"show_arrow\");\t\t\n\t  });\n\t});\nif(widget!=1)\n{\n\tjQuery('drop_down_views').hide();\n\tvar parent_width = document.getElementById('bigcalendar'+randi).parentNode.clientWidth;\n\tvar calwidth=  document.getElementById('cal_width'+randi).value;\n\tvar responsive_width = (calwidth)\/parent_width*100;\n\tdocument.getElementById('bigcalendar'+randi).setAttribute('style','width:'+responsive_width+'%;');\n\tjQuery('pop_table').css('height','100%');\n}\n        var thickDims, tbWidth, tbHeight;\n        jQuery(document).ready(function ($) {\t\t\t\n\t\t setInterval(function(){\t\n\t\t\t\tif(jQuery(\"body\").hasClass(\"modal-open\")) jQuery(\"html\").addClass(\"thickbox_open\");\n\t\t\t\telse jQuery(\"html\").removeClass(\"thickbox_open\");\n\t\t\t},500);\t\t\t\n          thickDims = function () {\t\t\n             var tbWindow = jQuery('#TB_window'), H = jQuery(window).height(), W = jQuery(window).width(), w, h;\n            if (tbWidth) {\n              if (tbWidth < (W - 90)) w = tbWidth; else  w = W - 200;\n            } else w = W - 200;\n            if (tbHeight) {\n              if (tbHeight < (H - 90)) h = tbHeight; else  h = H - 200;\n            } else h = H - 200;\t\t\t\n            if (tbWindow.size()) {\n              tbWindow.width(w).height(h);\n              jQuery('#TB_iframeContent').width(w).height(h - 27);\n              tbWindow.css({'margin-left':'-' + parseInt((w \/ 2), 10) + 'px'});\n              if (typeof document.body.style.maxWidth != 'undefined')\n                tbWindow.css({'top':(H - h) \/ 2, 'margin-top':'0'});\n            }\n\t\t\t if(jQuery(window).width() < 768 ){\n\t\t\t  var tb_left = parseInt((w \/ 2), 10) + 20;\t\t  \n\t\t\t\tjQuery('#TB_window').css({\"left\": tb_left+ \"px\", \"width\": \"90%\", \"margin-top\": \"-13%\",\"height\": \"100%\"})\n\t\t\t\tjQuery('#TB_window iframe').css({'height':'100%', 'width':'100%'});\n\t\t\t}\n\t\t\t else jQuery('#TB_window').css('left','50%');\n\t\tif (typeof popup_width_from_src != \"undefined\") {\n\t\t\t\tpopup_width_from_src=jQuery('.thickbox-previewbigcalendar'+randi).attr('href').indexOf('tbWidth=');\n\t\t\t\tstr=jQuery('.thickbox-previewbigcalendar'+randi).attr('href').substr(popup_width_from_src+8,150)\n\t\t\t\tfind_amp=str.indexOf('&');\n\t\t\t\twidth_orig=str.substr(0,find_amp);\t\t\t\t\n\t\t\t\tfind_eq=str.indexOf('=');\n\t\t\t\theight_orig=str.substr(find_eq+1,5);\n\t\t\tjQuery('#TB_window').css({'max-width':width_orig+'px', 'max-height':height_orig+'px'});\n\t\t\tjQuery('#TB_window iframe').css('max-width',width_orig+'px');\n\t\t\t}\t\n          };\n          thickDims();\n          jQuery(window).resize(function () {\n            thickDims();\t\t\t\n\t\t  });\t\t  \n          jQuery('a.thickbox-preview' + id).click(function () {\n            tb_click.call(this);\n            var alink = jQuery(this).parents('.available-theme').find('.activatelink'), link = '', href = jQuery(this).attr('href'), url, text;\n            var reg_with = new RegExp(xx_cal_xx + \"tbWidth=[0-9]+\");\t\n            if (tbWidth = href.match(reg_with))\n              tbWidth = parseInt(tbWidth[0].replace(\/[^0-9]+\/g, ''), 10);\n            else\n              tbWidth = jQuery(window).width() - 90;\t\t\t  \n            var reg_heght = new RegExp(xx_cal_xx + \"tbHeight=[0-9]+\");\n            if (tbHeight = href.match(reg_heght))\n              tbHeight = parseInt(tbHeight[0].replace(\/[^0-9]+\/g, ''), 10);\n            else\n              tbHeight = jQuery(window).height() - 60;\n            jQuery('#TB_ajaxWindowTitle').css({'float':'right'}).html(link);\t\t\t\n            thickDims();\t\t\t\n            return false;\t\t\t\n          });\n\t\t  \n        });\n      }\n    }\t\n    document.onkeydown = function (evt) {\n      evt = evt || window.event;\n      if (evt.keyCode == 27) {\n        document.getElementById('sbox-window').close();\n      }\n    };\n     showbigcalendar('bigcalendar1', 'http:\/\/amapassionduloir.lafermedespetitspas.fr\/wp-admin\/admin-ajax.php?action=spiderbigcalendar_month&theme_id=13&calendar=1&select=month,list,week,day,&date=2023-05&months&many_sp_calendar=1&cur_page_url=http%3A%2F%2Famapassionduloir.lafermedespetitspas.fr%2F%3Fpage_id%3D51&widget=0&rand=1','1','0');<\/script>\n<style>\nhtml.thickbox_open{\n\toverflow: hidden;\n}\n#TB_window iframe{\n\tmargin-left: 0;\n\tmargin-top: 0;\n\tpadding-left: 0;\n\tpadding-top: 0;\n}\n\n#TB_iframeContent{\n\theight: 100% !important;\n\twidth: 100%;\n}\n#TB_window{\n\tz-index: 1000000;\n\tcolor: #dfdfdf;\n\ttop: 100px !important;\n}\n#TB_title{\n\tbackground: #222;\n}\n\n.screen-reader-text,\n#views_select .arrow-down,\n#views_select .arrow-right{\n\tdisplay: none;\n}\n\n#afterbig1{\n\tdisplay: block !important;\n}\n\n#afterbig1 li{\n\tlist-style: none;\n}\n#bigcalendar1 p{\n\tmargin: 0;\n\tpadding: 0;\n}\n\n#bigcalendar1 table{\n\ttable-layout: auto;\n}\n\n.general_table a,\n.last_table a,\n.week_list a,\n.day_ev a{\n\tborder: 0;\n}\n\n.show_arrow{\n\tdisplay: inline-block !important;\n}\n@media screen and (max-width: 768px) {\n\t#bigcalendar1 #cal_event p:not(.ev_name){\n\t\t display: block; \/* Fallback for non-webkit *\/\n\t\t display: -webkit-box;\n\t\t max-width: 400px;\n\t\t height: 32px; \/* Fallback for non-webkit *\/\n\t\t margin: 0 auto;\n\t\t font-size: 13px;\n\t\t line-height: 15px;\n\t\t -webkit-line-clamp: 2;\n\t\t -webkit-box-orient: vertical;\n\t\t overflow: hidden;\n\t\t text-overflow: ellipsis;\n\t}\n\tdiv#afterbig1{\n\t\twidth: 100% !important;\n\t\tmargin: 0;\n\t}\n\t#bigcalendar1 .cala_day{\n\t\tmax-width: 37px;\n\t}\n}\n<\/style>\n  \n","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":[],"_links":{"self":[{"href":"http:\/\/amapassionduloir.lafermedespetitspas.fr\/index.php?rest_route=\/wp\/v2\/pages\/51"}],"collection":[{"href":"http:\/\/amapassionduloir.lafermedespetitspas.fr\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"http:\/\/amapassionduloir.lafermedespetitspas.fr\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"http:\/\/amapassionduloir.lafermedespetitspas.fr\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/amapassionduloir.lafermedespetitspas.fr\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=51"}],"version-history":[{"count":2,"href":"http:\/\/amapassionduloir.lafermedespetitspas.fr\/index.php?rest_route=\/wp\/v2\/pages\/51\/revisions"}],"predecessor-version":[{"id":55,"href":"http:\/\/amapassionduloir.lafermedespetitspas.fr\/index.php?rest_route=\/wp\/v2\/pages\/51\/revisions\/55"}],"wp:attachment":[{"href":"http:\/\/amapassionduloir.lafermedespetitspas.fr\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=51"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}