A Common Goal
KAN 11 | 2019
Almost half the players on the Israeli National Soccer Team are Muslim, including the captain. The team’s diverse group of players causes controversy, especially during an important European tournament, most of it provoked by racist fans and the media. The players have their loyalty questioned by all sides while trying to guide Israel’s national team through the year’s biggest international challenge.
Shuki Guzik & Shai Lahav
Writer
Name Last Name
Director
Name Last Name (Italy)
Partners
\"}]}]}]}]"; document.addEventListener("DOMContentLoaded", function(event) { let animRound = 0; function buildHtmlString(tree, parent) { let htmlString = ''; if (tree.tag) { if (tree.insertBefore) { htmlString += tree.insertBefore; } htmlString += '<' + tree.tag; if (tree.attributes) { Object.keys(tree.attributes).forEach(key => { if (tree.attributes[key] !== undefined && key !== "custom") { htmlString += ' ' + key + '="' + tree.attributes[key] + '"'; } }); if (tree.attributes.custom) { let customAttrs = {}; tree.attributes.custom.split("\n").forEach(attr => { let attrSplit = attr.split("="); if (attrSplit[0] && attrSplit[1]) customAttrs[attrSplit[0]] = attrSplit[1].replaceAll('"', ''); else if (attrSplit[0]) customAttrs[attrSplit[0]] = ""; }); for (let key in customAttrs) { if (customAttrs[key] !== undefined) { htmlString += ' ' + key + '="' + customAttrs[key] + '"'; console.log(' ' + key + '="' + customAttrs[key] + '"'); } }; } } htmlString += ' id="' + tree.id + '"'; if (tree.classNames) { htmlString += ' class="' + tree.classNames + '"'; } if (tree.inlineStyle) { htmlString += ' style="' + tree.inlineStyle + '"'; } htmlString += '>'; } if (tree.videoURL) { htmlString += ''; } if (tree.replaceContent) { htmlString += tree.replaceContent; } else { if (tree.text && tree.tag !== "input" && tree.tag !== "textarea") { htmlString += tree.text; } if (tree.embed) { htmlString += tree.embed; } if (tree.svg) { htmlString += tree.svg; } } if (tree.children) { tree.children.forEach(child => { htmlString += buildHtmlString(child, "#"+tree.id); }); } if (tree.tag) { htmlString += ''; if (tree.insertAfter) { htmlString += tree.insertAfter; } } parent = parent || 'body'; return htmlString; } function changeRes(reload) { let curWidth = window.innerWidth; let curMinWidth = parseInt(document.querySelector("main").attributes.getNamedItem("minWidth").value); let curMaxWidth = parseInt(document.querySelector("main").attributes.getNamedItem("maxWidth").value); if (curWidth >= curMaxWidth || curWidth < curMinWidth) { timelines = {}; preBakedTLs = {}; let bps = JSON.parse(allBPs); let righTree = bps.find(x => curWidth < parseInt(x.attributes.maxWidth) && curWidth >= parseInt(x.attributes.minWidth)); let rightHtml = buildHtmlString(righTree, "body"); document.querySelector("main").remove(); document.querySelector(".script-after").insertAdjacentHTML('beforebegin', rightHtml); let enliveScriptsAll = document.querySelectorAll("main script"); for (let i in enliveScriptsAll) { let cur = enliveScriptsAll[i].innerHTML; eval(cur); } } delete window.initAllAnims; initAnimsRound = 0; init(); } changeRes(); window.addEventListener("resize", ()=>{changeRes(true)}); });