{"id":329964,"date":"2022-04-26T12:11:10","date_gmt":"2022-04-26T10:11:10","guid":{"rendered":"https:\/\/prewpoc.omnium.cat\/?page_id=329964"},"modified":"2023-05-23T17:39:59","modified_gmt":"2023-05-23T15:39:59","slug":"propostes-sambori","status":"publish","type":"page","link":"https:\/\/prewpoc.omnium.cat\/ca\/projectes\/sambori\/propostes-sambori\/","title":{"rendered":"Projectes Sambori"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-page\" data-elementor-id=\"329964\" class=\"elementor elementor-329964\" data-elementor-post-type=\"page\">\n\t\t\t\t\t\t<section class=\"elementor-section elementor-top-section elementor-element elementor-element-eb104f5 elementor-section-boxed elementor-section-height-default elementor-section-height-default fullpage-js-section-no fullpage-js-position-centered background-video-grayscale-no\" data-id=\"eb104f5\" data-element_type=\"section\" data-e-type=\"section\">\n\t\t\t\t\t\t<div class=\"elementor-container elementor-column-gap-default\">\n\t\t\t\t\t<div class=\"elementor-column elementor-col-100 elementor-top-column elementor-element elementor-element-d08deff\" data-id=\"d08deff\" data-element_type=\"column\" data-e-type=\"column\">\n\t\t\t<div class=\"elementor-widget-wrap elementor-element-populated\">\n\t\t\t\t\t\t<div class=\"elementor-element elementor-element-ab2e37f elementor-widget elementor-widget-text-editor\" data-id=\"ab2e37f\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"text-editor.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t\t\t<p><em>Aquests s\u00f3n els projectes participants del Sambori 2022 i els del 2023. Mira la quantitat i la varietat de creacions culturals i gaudeix del talent de l&#8217;alumnat de Catalunya!<\/em><\/p>\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-d0bd87b elementor-widget elementor-widget-spacer\" data-id=\"d0bd87b\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"spacer.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"elementor-spacer\">\n\t\t\t<div class=\"elementor-spacer-inner\"><\/div>\n\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-6c7b309 elementor-widget elementor-widget-html\" data-id=\"6c7b309\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"html.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<div class=\"flexSelect\" style=\"justify-content:center;\">\n        <select id=\"comarca\">\n            <option value=\"Totes\">Totes les comarques<\/option>\n        <\/select>\n        <select id=\"municipi\">\n            <option value=\"Totes\">Tots els municipis<\/option>\n        <\/select>\n\n        <select id=\"escola\">\n            <option value=\"Totes\">Totes les escoles<\/option>\n        <\/select>\n        <select id=\"any\">\n            <option value=\"Totes\">Totes les edicions<\/option>\n        <\/select>\n\n        <button onClick=\"filter(comarca.value, municipi.value, escola.value, any.value)\">Cerca<\/button>\n    <\/div>\n\n    <div id=\"wrapper\"><\/div>\n    <div id=\"notfound\" style=\"display: none;\">\n        <h1>No hi ha cap resultat<\/h1>\n    <\/div>\n\n    <script>\n        var wrapper = document.getElementById(\"wrapper\")\n        var comarques = [];\n        var municipis = [];\n        var escoles = [];\n        var anys = [];\n\n        function filter(comarca, municipi, escola, any) {\n            var list = document.getElementsByClassName('cardStyle');\n            var notFound = document.getElementById('notfound');\n            var buit = true;\n            for (let item of list) {\n                item.style.display = \"none\";\n                datacomarca = item.getAttribute(\"data-comarca\");\n                datamunicipi = item.getAttribute(\"data-municipi\");\n                dataescola = item.getAttribute(\"data-escola\");\n                dataany = item.getAttribute(\"data-any\");\n                if (\n                    (comarca == datacomarca && municipi == datamunicipi && escola == dataescola && any == dataany) ||\n                    (comarca == datacomarca && municipi == datamunicipi && escola == dataescola && any == 'Totes') ||\n                    (comarca == datacomarca && municipi == datamunicipi && escola == 'Totes' && any == dataany) ||\n                    (comarca == datacomarca && municipi == datamunicipi && escola == 'Totes' && any == 'Totes') ||\n                    (comarca == datacomarca && municipi == 'Totes' && escola == dataescola && any == dataany) ||\n                    (comarca == datacomarca && municipi == 'Totes' && escola == dataescola && any == 'Totes') ||\n                    (comarca == datacomarca && municipi == 'Totes' && escola == 'Totes' && any == dataany) ||\n                    (comarca == datacomarca && municipi == 'Totes' && escola == 'Totes' && any == 'Totes') ||\n                    (comarca == 'Totes' && municipi == datamunicipi && escola == 'Totes' && any == dataany) ||\n                    (comarca == 'Totes' && municipi == datamunicipi && escola == 'Totes' && any == 'Totes') ||\n                    (comarca == 'Totes' && municipi == datamunicipi && escola == dataescola && any == dataany) ||\n                    (comarca == 'Totes' && municipi == datamunicipi && escola == dataescola && any == 'Totes') ||\n                    (comarca == 'Totes' && municipi == 'Totes' && escola == dataescola && any == dataany) ||\n                    (comarca == 'Totes' && municipi == 'Totes' && escola == dataescola && any == 'Totes') ||\n                    (comarca == 'Totes' && municipi == 'Totes' && escola == 'Totes' && any == dataany) ||\n                    (comarca == 'Totes' && municipi == 'Totes' && escola == 'Totes' && any == 'Totes')){\n                    buit = false;\n                    notFound.style.display = \"none\";\n                    item.style.display = \"inline-block\";\n                }\n                if (buit) {\n                    notFound.style.display = \"block\";\n                }\n            }\n\n        }\n\n        function addSelectOptions(comarques, municipis, escoles, anys) {\n            var selectComarca = document.getElementById(\"comarca\");\n            for (var i = 0; i < comarques.length; i++) {\n                var option = document.createElement(\"option\");\n                option.text = comarques[i];\n                option.value = comarques[i];\n                selectComarca.add(option);\n            }\n\n            var selectMunicipi = document.getElementById(\"municipi\");\n            for (var i = 0; i < municipis.length; i++) {\n                var option = document.createElement(\"option\");\n                option.text = municipis[i];\n                option.value = municipis[i];\n                selectMunicipi.add(option);\n            }\n\n            var selectEscola = document.getElementById(\"escola\");\n            for (var i = 0; i < escoles.length; i++) {\n                var option = document.createElement(\"option\");\n                option.text = escoles[i];\n                option.value = escoles[i];\n                selectEscola.add(option);\n            }\n            var selectAny = document.getElementById(\"any\");\n            for (var i = 0; i < anys.length; i++) {\n                var option = document.createElement(\"option\");\n                option.text = anys[i];\n                option.value = anys[i];\n                selectAny.add(option);\n            }\n\n        }\n\n        function createHTML(elemParent, node, content, filtre) {\n            var el = document.createElement(node.type)\n            elemParent.appendChild(el)\n            if (node.class != '') {\n                el.classList.add(node.class)\n            }\n            if (node.atributes.length > 0) {\n                for (var i = 0; i < node.atributes.length; i++) {\n                    if (node.atributes[i].name == 'href') {\n                        el.setAttribute('href', content.url)\n                    } else {\n                        el.setAttribute(node.atributes[i].name, node.atributes[i].value)\n                    }\n                }\n            }\n            if (node.filter) {\n                for (var i = 0; i < filtre.length; i++) {\n                    el.setAttribute(filtre[i].filtreNom, content[filtre[i].valor])\n                }\n            }\n            if (node.text != '') {\n                var text = document.createTextNode(content[node.text])\n                el.appendChild(text)\n            }\n\n            if (node.children.length > 0) {\n                for (var i = 0; i < node.children.length; i++) {\n                    createHTML(el, node.children[i], content)\n                }\n            }\n        }\n\n        fetch('https:\/\/dev.premisantjordi.pages.dev\/images\/data_prov\/structure.json').then(function (response) {\n            return response.json();\n        }).then(function (structure) {\n\n            fetch('https:\/\/dev.premisantjordi.pages.dev\/images\/data_prov\/sambori.json').then(function (response) {\n                return response.json();\n            }).then(function (data) {\n                for (var i = 0; i < data.projectes.length; i++) {\n                    comarques.push(data.projectes[i].comarca)\n                    municipis.push(data.projectes[i].municipi)\n                    escoles.push(data.projectes[i].escola)\n                    anys.push(data.projectes[i].any)\n                }\n                comarques = comarques.filter((value, index) => comarques.indexOf(value) === index);\n                municipis = municipis.filter((value, index) => municipis.indexOf(value) === index);\n                escoles = escoles.filter((value, index) => escoles.indexOf(value) === index);\n                anys = anys.filter((value, index) => anys.indexOf(value) === index);\n\n                comarques = comarques.sort();\n                municipis = municipis.sort();\n                escoles = escoles.sort();\n                anys = anys.sort();\n\n                addSelectOptions(comarques, municipis, escoles, anys)\n\n                for (var i = 0; i < data.projectes.length; i++) {\n                    var content = data.projectes[i];\n                    var node = structure[0]\n                    createHTML(wrapper, node, content, data.filtre)\n                }\n            }).catch(function (err) {\n                console.warn('Something went wrong.', err);\n            });\n\n        }).catch(function (err) {\n            console.warn('Something went wrong.', err);\n        });\n\n    <\/script>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t<\/section>\n\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"<p>Aquests s\u00f3n els projectes participants del Sambori 2022 i els del 2023. Mira la quantitat i la varietat de creacions culturals i gaudeix del talent de l&#8217;alumnat de Catalunya! Totes [&hellip;]<\/p>\n","protected":false},"author":184,"featured_media":0,"parent":282497,"menu_order":40,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_acf_changed":false,"footnotes":""},"class_list":["post-329964","page","type-page","status-publish","hentry"],"acf":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.5 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Projectes Sambori - \u00d2mnium Cultural<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/prewpoc.omnium.cat\/ca\/projectes\/sambori\/propostes-sambori\/\" \/>\n<meta name=\"twitter:label1\" content=\"Temps estimat de lectura\" \/>\n\t<meta name=\"twitter:data1\" content=\"50 minuts\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/prewpoc.omnium.cat\\\/ca\\\/projectes\\\/sambori\\\/propostes-sambori\\\/\",\"url\":\"https:\\\/\\\/prewpoc.omnium.cat\\\/ca\\\/projectes\\\/sambori\\\/propostes-sambori\\\/\",\"name\":\"Projectes Sambori - \u00d2mnium Cultural\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/prewpoc.omnium.cat\\\/ca\\\/#website\"},\"datePublished\":\"2022-04-26T10:11:10+00:00\",\"dateModified\":\"2023-05-23T15:39:59+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/prewpoc.omnium.cat\\\/ca\\\/projectes\\\/sambori\\\/propostes-sambori\\\/#breadcrumb\"},\"inLanguage\":\"ca\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/prewpoc.omnium.cat\\\/ca\\\/projectes\\\/sambori\\\/propostes-sambori\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/prewpoc.omnium.cat\\\/ca\\\/projectes\\\/sambori\\\/propostes-sambori\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Inici\",\"item\":\"https:\\\/\\\/prewpoc.omnium.cat\\\/ca\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Projectes\",\"item\":\"https:\\\/\\\/prewpoc.omnium.cat\\\/ca\\\/projectes\\\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Sambori\",\"item\":\"https:\\\/\\\/prewpoc.omnium.cat\\\/ca\\\/projectes\\\/sambori\\\/\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"Projectes Sambori\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/prewpoc.omnium.cat\\\/ca\\\/#website\",\"url\":\"https:\\\/\\\/prewpoc.omnium.cat\\\/ca\\\/\",\"name\":\"\u00d2mnium Cultural\",\"description\":\"Llengua Cultura Pa\u00eds\",\"publisher\":{\"@id\":\"https:\\\/\\\/prewpoc.omnium.cat\\\/ca\\\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/prewpoc.omnium.cat\\\/ca\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"ca\"},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/prewpoc.omnium.cat\\\/ca\\\/#organization\",\"name\":\"\u00d2mnium Cultural\",\"url\":\"https:\\\/\\\/prewpoc.omnium.cat\\\/ca\\\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"ca\",\"@id\":\"https:\\\/\\\/prewpoc.omnium.cat\\\/ca\\\/#\\\/schema\\\/logo\\\/image\\\/\",\"url\":\"https:\\\/\\\/cdn.omnium.cat\\\/wp-content\\\/uploads\\\/2019\\\/06\\\/01112517\\\/cropped-omnium_logo-1.png\",\"contentUrl\":\"https:\\\/\\\/cdn.omnium.cat\\\/wp-content\\\/uploads\\\/2019\\\/06\\\/01112517\\\/cropped-omnium_logo-1.png\",\"width\":1213,\"height\":262,\"caption\":\"\u00d2mnium Cultural\"},\"image\":{\"@id\":\"https:\\\/\\\/prewpoc.omnium.cat\\\/ca\\\/#\\\/schema\\\/logo\\\/image\\\/\"},\"sameAs\":[\"https:\\\/\\\/www.facebook.com\\\/omniumcultural\",\"https:\\\/\\\/x.com\\\/omnium\",\"https:\\\/\\\/www.instagram.com\\\/omniumcultural\\\/\",\"https:\\\/\\\/www.youtube.com\\\/user\\\/omniumcultural\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Projectes Sambori - \u00d2mnium Cultural","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/prewpoc.omnium.cat\/ca\/projectes\/sambori\/propostes-sambori\/","twitter_misc":{"Temps estimat de lectura":"50 minuts"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/prewpoc.omnium.cat\/ca\/projectes\/sambori\/propostes-sambori\/","url":"https:\/\/prewpoc.omnium.cat\/ca\/projectes\/sambori\/propostes-sambori\/","name":"Projectes Sambori - \u00d2mnium Cultural","isPartOf":{"@id":"https:\/\/prewpoc.omnium.cat\/ca\/#website"},"datePublished":"2022-04-26T10:11:10+00:00","dateModified":"2023-05-23T15:39:59+00:00","breadcrumb":{"@id":"https:\/\/prewpoc.omnium.cat\/ca\/projectes\/sambori\/propostes-sambori\/#breadcrumb"},"inLanguage":"ca","potentialAction":[{"@type":"ReadAction","target":["https:\/\/prewpoc.omnium.cat\/ca\/projectes\/sambori\/propostes-sambori\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/prewpoc.omnium.cat\/ca\/projectes\/sambori\/propostes-sambori\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Inici","item":"https:\/\/prewpoc.omnium.cat\/ca\/"},{"@type":"ListItem","position":2,"name":"Projectes","item":"https:\/\/prewpoc.omnium.cat\/ca\/projectes\/"},{"@type":"ListItem","position":3,"name":"Sambori","item":"https:\/\/prewpoc.omnium.cat\/ca\/projectes\/sambori\/"},{"@type":"ListItem","position":4,"name":"Projectes Sambori"}]},{"@type":"WebSite","@id":"https:\/\/prewpoc.omnium.cat\/ca\/#website","url":"https:\/\/prewpoc.omnium.cat\/ca\/","name":"\u00d2mnium Cultural","description":"Llengua Cultura Pa\u00eds","publisher":{"@id":"https:\/\/prewpoc.omnium.cat\/ca\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/prewpoc.omnium.cat\/ca\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"ca"},{"@type":"Organization","@id":"https:\/\/prewpoc.omnium.cat\/ca\/#organization","name":"\u00d2mnium Cultural","url":"https:\/\/prewpoc.omnium.cat\/ca\/","logo":{"@type":"ImageObject","inLanguage":"ca","@id":"https:\/\/prewpoc.omnium.cat\/ca\/#\/schema\/logo\/image\/","url":"https:\/\/cdn.omnium.cat\/wp-content\/uploads\/2019\/06\/01112517\/cropped-omnium_logo-1.png","contentUrl":"https:\/\/cdn.omnium.cat\/wp-content\/uploads\/2019\/06\/01112517\/cropped-omnium_logo-1.png","width":1213,"height":262,"caption":"\u00d2mnium Cultural"},"image":{"@id":"https:\/\/prewpoc.omnium.cat\/ca\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/omniumcultural","https:\/\/x.com\/omnium","https:\/\/www.instagram.com\/omniumcultural\/","https:\/\/www.youtube.com\/user\/omniumcultural"]}]}},"_links":{"self":[{"href":"https:\/\/prewpoc.omnium.cat\/ca\/wp-json\/wp\/v2\/pages\/329964","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/prewpoc.omnium.cat\/ca\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/prewpoc.omnium.cat\/ca\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/prewpoc.omnium.cat\/ca\/wp-json\/wp\/v2\/users\/184"}],"replies":[{"embeddable":true,"href":"https:\/\/prewpoc.omnium.cat\/ca\/wp-json\/wp\/v2\/comments?post=329964"}],"version-history":[{"count":137,"href":"https:\/\/prewpoc.omnium.cat\/ca\/wp-json\/wp\/v2\/pages\/329964\/revisions"}],"predecessor-version":[{"id":373509,"href":"https:\/\/prewpoc.omnium.cat\/ca\/wp-json\/wp\/v2\/pages\/329964\/revisions\/373509"}],"up":[{"embeddable":true,"href":"https:\/\/prewpoc.omnium.cat\/ca\/wp-json\/wp\/v2\/pages\/282497"}],"wp:attachment":[{"href":"https:\/\/prewpoc.omnium.cat\/ca\/wp-json\/wp\/v2\/media?parent=329964"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}