{"id":8679,"date":"2018-04-16T11:49:03","date_gmt":"2018-04-16T09:49:03","guid":{"rendered":"http:\/\/projectes.xtec.cat\/mobilitatfp\/?page_id=8679"},"modified":"2023-10-26T11:06:35","modified_gmt":"2023-10-26T09:06:35","slug":"cercador-mapa","status":"publish","type":"page","link":"https:\/\/projectes.xtec.cat\/mobilitatfp\/cercador-mapa\/","title":{"rendered":"Mapa de centres (Catalunya)"},"content":{"rendered":"<p><!-- Map loading --><\/p>\n<p id=\"pCAT\"><iframe loading=\"lazy\" src=\"https:\/\/edumet.cat\/areatac\/presentacions\/index.php?ID=1nkB3H6nQWKl6wcO_aEfCT97vYahT9r_50QxlMS5GNP8&amp;config=Config_CAT\" width=\"800px\" height=\"600px\"><\/iframe><\/p>\n<p id=\"pEN\"><iframe loading=\"lazy\" src=\"https:\/\/edumet.cat\/areatac\/presentacions\/index.php?ID=1nkB3H6nQWKl6wcO_aEfCT97vYahT9r_50QxlMS5GNP8&amp;config=Config_EN\" width=\"800px\" height=\"600px\"><\/iframe><\/p>\n<p><script>\n\/* \nGlobal variables\n     - Language: language to use in order to buid the website\n*\/\nvar language=\"CAT\";\nfunction readCookie(name){\n    var c = document.cookie.split('; '),\n    cookies = {}, i, C;\n    for (i = c.length - 1; i >= 0; i--) {\n        C = c[i].split('=');\n        cookies[C[0]] = C[1];\n     }\n     return cookies[name];\n}\nvar languageSelectGoogle=readCookie('googtrans');\nif(languageSelectGoogle!=\"\/ca\/ca\" && languageSelectGoogle!=undefined){\n   language=\"EN\";\n} \nif(language==\"CAT\") {\n   jq(\"#pCAT\").show();\n   jq(\"#pEN\").hide();\n} else {\n   jq(\"#pCAT\").hide();\n   jq(\"#pEN\").show();\n}\njq( document ).ready(function() {\n   var languageSelectGoogle=readCookie('googtrans');\n   if(languageSelectGoogle!=\"\/ca\/ca\"){\n      language=\"EN\";\n   } \n   window.setInterval(function(){\n      var languageSelectGoogle=readCookie('googtrans');\n      var languageAux=\"CAT\";\n      if(languageSelectGoogle!=\"\/ca\/ca\" && languageSelectGoogle!=undefined){\n         languageAux=\"EN\";\n      } \n      if(languageAux!=language){\n         if(languageAux==\"CAT\") {\n            jq(\"#pCAT\").show();\n            jq(\"#pEN\").hide();\n         } else {\n            jq(\"#pCAT\").hide();\n            jq(\"#pEN\").show();\n         }\n         language = languageAux;\n      }\n   },1000); \n});\n<\/script><\/p>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":3,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_bbp_topic_count":0,"_bbp_reply_count":0,"_bbp_total_topic_count":0,"_bbp_total_reply_count":0,"_bbp_voice_count":0,"_bbp_anonymous_reply_count":0,"_bbp_topic_count_hidden":0,"_bbp_reply_count_hidden":0,"_bbp_forum_subforum_count":0,"footnotes":""},"class_list":["post-8679","page","type-page","status-publish","hentry"],"post_mailing_queue_ids":[],"_links":{"self":[{"href":"https:\/\/projectes.xtec.cat\/mobilitatfp\/wp-json\/wp\/v2\/pages\/8679","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/projectes.xtec.cat\/mobilitatfp\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/projectes.xtec.cat\/mobilitatfp\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/projectes.xtec.cat\/mobilitatfp\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/projectes.xtec.cat\/mobilitatfp\/wp-json\/wp\/v2\/comments?post=8679"}],"version-history":[{"count":7,"href":"https:\/\/projectes.xtec.cat\/mobilitatfp\/wp-json\/wp\/v2\/pages\/8679\/revisions"}],"predecessor-version":[{"id":13998,"href":"https:\/\/projectes.xtec.cat\/mobilitatfp\/wp-json\/wp\/v2\/pages\/8679\/revisions\/13998"}],"wp:attachment":[{"href":"https:\/\/projectes.xtec.cat\/mobilitatfp\/wp-json\/wp\/v2\/media?parent=8679"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}