{"id":1399,"date":"2015-04-15T20:50:58","date_gmt":"2015-04-15T20:50:58","guid":{"rendered":"http:\/\/www.pina.si\/?page_id=1399"},"modified":"2015-05-04T15:26:19","modified_gmt":"2015-05-04T13:26:19","slug":"events","status":"publish","type":"page","link":"https:\/\/stara.pina.si\/en\/events\/","title":{"rendered":"<span>Events<\/span>"},"content":{"rendered":"<p>  <input type=\"hidden\" id=\"cal_width1\" value=\"700\" \/> <\/p>\n<div id='bigcalendar1'><\/div>\n<p>  <script>\n    var tb_pathToImage = \"https:\/\/stara.pina.si\/wp-content\/plugins\/spider-event-calendar\/images\/loadingAnimation.gif\";\n    var tb_closeImage = \"https:\/\/stara.pina.si\/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     jQuery('#views_select').toggle(function () {\t\n    jQuery('#drop_down_views').stop(true, true).delay(200).slideDown(500);\n  }, function () { \n    jQuery('#drop_down_views').stop(true, true).slideUp(500);\t\n  });\n\t});\nif(widget!=1)\n{\n  if(jQuery(window).width() > 640)\n  {\n\tjQuery('drop_down_views').hide();\n\t\tvar parent_width = document.getElementById('bigcalendar'+randi).parentNode.clientWidth;\n\t\tvar calwidth=  document.getElementById('cal_width'+randi).value;\n\t\tvar responsive_width = (calwidth)\/parent_width*100;\n\t\tdocument.getElementById('afterbig'+randi).setAttribute('style','width:'+responsive_width+'%;');\n\t\tjQuery('pop_table').css('height','100%');\n  }\n else if(jQuery(jQuery('#bigcalendar'+randi).parent()).width() > 640)\n  {\n\tjQuery('drop_down_views').hide();\n\t\tvar parent_width = document.getElementById('bigcalendar'+randi).parentNode.clientWidth;\n\t\tvar calwidth=  document.getElementById('cal_width'+randi).value;\n\t\tvar responsive_width = (calwidth)\/parent_width*100;\n\t\tdocument.getElementById('afterbig'+randi).setAttribute('style','width:'+responsive_width+'%;');\n\t\tjQuery('pop_table').css('height','100%');\n  }\n\telse\n\t{\n\t\t\tdocument.getElementById('afterbig'+randi).setAttribute('style','width:100%;');\t\n\t}\n}\n        var thickDims, tbWidth, tbHeight;\n        jQuery(document).ready(function ($) {\n          thickDims = function () {\n\t\t\tjQuery('#TB_window iframe').css('margin-left','0%');\n\t\t\tjQuery('#TB_window iframe').css('margin-top','0%');\n\t\t\tjQuery('#TB_window iframe').css('margin-left','0%');\n\t\t\tjQuery('#TB_window iframe').css('margin-top','0%');\t\t\t\n\t\t\tjQuery('#TB_window iframe').css('padding-left','0%');\n\t\t\tjQuery('#TB_window iframe').css('padding-top','0%');\t\t\n             var tbWindow = $('#TB_window'), H = $(window).height(), W = $(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              $('#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() < 640 ){\n\t\t\t  var tb_left = parseInt((w \/ 2), 10) + 20;\n\t\t\t\tjQuery('#TB_window').css('left', tb_left + 'px')\n\t\t\t\tjQuery('#TB_window').css('width','90%');\n\t\t\t\tjQuery('#TB_window').css('margin-top','-13%');\n\t\t\t\tjQuery('#TB_window iframe').css('height','100%');\n\t\t\t\tjQuery('#TB_window iframe').css('width','100%');\n\t\t\t}\n\t\t\t   if(jQuery(window).width() > 640 )\n\t\t\t   {\n\t\t\t\t\tjQuery('#TB_window').css('left','50%');\n\t\t\t\t}\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');\n\t\t\tjQuery('#TB_window iframe').css('max-width',width_orig+'px');\n\t\t\tjQuery('#TB_window').css('max-height',height_orig+'px');\n\t\t\t}\n\t\t\tjQuery('#TB_window').css('background','none');\n\t\t\tjQuery('#TB_window').css('background-color','none');\n\t\t\tjQuery('#TB_window iframe').css('background-color','none');\t\t\t\n          };\n          thickDims();\n          $(window).resize(function () {\n            thickDims();\t\t\t\n\t\t\tif(jQuery(window).width() < 640 ){\n\t\t\t\tjQuery('#TB_window').css('width','90%');\n\t\t\t\tjQuery('#TB_window').css('margin-top','-13%');\n\t\t\t\tjQuery('#TB_window iframe').css('height','100%');\n\t\t\t\tjQuery('#TB_window').css('height','100%');\n\t\t\t}\nif(jQuery(window).width() > 900 )\n\t\t\t   {\n\t\t\t\t\tjQuery('#TB_window').css('left','50%');\t\t\t\t\t\t\n\t\t\t\t}\n\t\t  });\t\t  \n          $('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_title').css({'background-color':'#222', 'color':'#dfdfdf'});\n            jQuery('#TB_closeAjaxWindow').css({'float':'left'});\n            jQuery('#TB_ajaxWindowTitle').css({'float':'right'}).html(link);\t\t\t\n            jQuery('#TB_iframeContent').width('100%');\n            thickDims();\t\t\t\n            return false;\t\t\t\n          });\t\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','https:\/\/stara.pina.si\/wp-admin\/admin-ajax.php?action=spiderbigcalendar_list'+xx_cal_xx+'theme_id=20'+xx_cal_xx+'calendar=1'+xx_cal_xx+'select=list,week,day,'+xx_cal_xx+'date=2026-04'+xx_cal_xx+'months='+xx_cal_xx+'many_sp_calendar=1'+xx_cal_xx+'cur_page_url=https%3A%2F%2Fstara.pina.si%2Fen%2Fevents%2F'+xx_cal_xx+'widget=0','1','0');\t  \n  <\/script><\/p>\n<style>\n#TB_iframeContent{\n\theight: 100% !important;\n}\n#TB_window{\n\tz-index: 1000000;\n}\n#afterbig1{\nmargin: 0 auto;\n}\n<\/style>\n<\/p>\n<div class='ctx-module-container ctx_default_placement ctx-clearfix'><\/div>\n<p><span class=\"ctx-article-root\"><!-- --><\/span><\/p>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":10,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"open","template":"","meta":{"_mi_skip_tracking":false},"tags":[],"_links":{"self":[{"href":"https:\/\/stara.pina.si\/en\/wp-json\/wp\/v2\/pages\/1399"}],"collection":[{"href":"https:\/\/stara.pina.si\/en\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/stara.pina.si\/en\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/stara.pina.si\/en\/wp-json\/wp\/v2\/users\/10"}],"replies":[{"embeddable":true,"href":"https:\/\/stara.pina.si\/en\/wp-json\/wp\/v2\/comments?post=1399"}],"version-history":[{"count":6,"href":"https:\/\/stara.pina.si\/en\/wp-json\/wp\/v2\/pages\/1399\/revisions"}],"predecessor-version":[{"id":2383,"href":"https:\/\/stara.pina.si\/en\/wp-json\/wp\/v2\/pages\/1399\/revisions\/2383"}],"wp:attachment":[{"href":"https:\/\/stara.pina.si\/en\/wp-json\/wp\/v2\/media?parent=1399"}],"wp:term":[{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/stara.pina.si\/en\/wp-json\/wp\/v2\/tags?post=1399"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}