" + langObj[origLang].raw + "
" + langObj[currentLang].raw + "
Tags are not matching on the two sides in number or sequence.
"
document.body.appendChild(modal)
setTimeout(() => modal.style.opacity = 1, 0)
document.getElementById('inrxcloser').addEventListener("click", () => { modal.remove(); markupElement.classList.remove("inirxhl"); modal = null; })
document.getElementById("inrxtransta").addEventListener("input", (e) => {
if (compareTags(orig, e.target.value)) {
document.getElementById("inrxnote").style.display = "none"
document.getElementById('inrxsaver').style.opacity = 1
} else {
document.getElementById("inrxnote").style.display = "block"
document.getElementById('inrxsaver').style.opacity = 0.3
}
})
if (compareTags(orig, inirxfullTranslation[encodeURIComponent(orig)][0])) {
document.getElementById("inrxnote").style.display = "hidden"
document.getElementById('inrxsaver').disabled = true
} else {
document.getElementById("inrxnote").style.display = "block"
document.getElementById('inrxsaver').disabled = false
}
document.getElementById('inrxsaver').addEventListener("click", () => {
const english = orig;
const foreign = reNumber(document.getElementById("inrxtransta").value, deNumbered[1])
if (!markup.markup) {
alert("You are not authenticated for this")
return;
}
if (!compareTags(english, foreign)) {
return;
}
fetch("https://europe-west4-inilingo0.cloudfunctions.net/api", { method: "POST", headers: { "Content-Type": "application/json" }, body: JSON.stringify({ fn: "correctItem", english: english, foreign: foreign, xdata: fullFile[encodeURIComponent(english)], code: markup.markup, language: currentLang }) }).then(resa => resa.text()).then(resi => {
if (resi === "wrong code") {
document.cookie = 'inilingo-markup=;-1; path=/';
} else {
document.cookie = 'inilingo-markup=' + resi;
markup.markup = resi;
inirxfullTranslation[encodeURIComponent(english)] = [foreign]
fullFile[encodeURIComponent(english)][0] = foreign
origNodes.forEach((item, i) => {
if (item.orig && (deNumber(item.orig)[0] === orig)) {
inirxhands.push(item.element)
}
})
//inirxhands.push(editedNode)
inirxprocessing = true;
inirxhandleItems()
}
})
markupElement.classList.remove("inirxhl")
modal.remove();
modal = null;
markupElement.classList.remove("inirxsaver")
})
document.getElementById('inrxtransta').focus()
break;
}
}
}, true)
}
console.log("morg")
setTimeout(() => {
xrxiniLingoAfterLoad(iniLingo, currentLang, languages, xrx52m.menu)
}, xrxiniAfterLoadDelay)
}
//document.addEventListener('DOMContentLoaded', () => specialSetup(inirxloadTranslation))
return {
setLang: inirxloadTranslation,
init: setUpMenu,
readElements: readElements
}
}
function xrmDim() {
if (document.getElementById("grxrm")) { return }
var lElement = document.createElement('style')
lElement.id = "grxrm"
document.head.appendChild(lElement);
var sheetnewxrm = lElement.sheet;
console.log(" newdim")
sheetnewxrm.insertRule("html body * {color: transparent !important; text-shadow: none !important; }")
sheetnewxrm.insertRule("body ::placeholder {color: transparent !important;}")
sheetnewxrm.insertRule(".page-id-49 .main_color h6 {display: block !important;}")
sheetnewxrm.insertRule(".home.home .template-page .entry-content-wrapper h1 {text-shadow: none !important; color: transparent !important;}")
sheetnewxrm.insertRule("html body .content.content.content.content h3 {text-shadow: none !important; color: transparent !important;}")
}
//xrmDim()
const testingxrmni = decodeURIComponent(new URL(document.location.href).searchParams.get("testing") || sessionStorage["inilingo-testing"] || new URL(document.location.href).searchParams.get("wbxm") || "")
const validxrmni = (testingxrmni && xrx52m.languages.length === 0) || xrx52m.languages.length
if (validxrmni && xrxiniLingoBeforeLoad(xrx52m)) {
try {
var gElement = document.createElement('style')
gElement.id = "praxi"
document.head.appendChild(gElement);
let sheetxrm = gElement.sheet;
sheetxrm.insertRule(".inirxhl { outline: 2px solid orange !important; }");
sheetxrm.insertRule(".inirxmenutopleft { position:fixed; top: 0px; left: 0px; }");
sheetxrm.insertRule(".inirxmenubottomleft { position:fixed; bottom: 0px; left: 0px; }");
sheetxrm.insertRule(".inirxmenutopright { position:fixed; top: 0px; right: 0px; }");
sheetxrm.insertRule(".inirxmenuhide { display: hidden; }");
sheetxrm.insertRule(".inirxmenubottomright { position:fixed; bottom: 0px; right: 0px; }");
sheetxrm.insertRule(".inirxmenuembed { position:absolute; }");
sheetxrm.insertRule(".inirxmymenu {position: relative; overflow: visible, height: 32px; }");
sheetxrm.insertRule(".inirxmymenu > div {overflow: visible; }");
sheetxrm.insertRule(".inirxmenuitem:hover {background: #eeeeee; }")
sheetxrm.insertRule("html.xrmxnxmr.zero * {color: transparent !important; text-shadow: none !important; }")
//sebi
sheetxrm.insertRule(".page-id-49 .main_color h6 {display: block !important;}")
sheetxrm.insertRule(".entry a.more_button {display: block !important;}")
sheetxrm.insertRule("html.xrmxnxmr.zero ::placeholder {color: transparent !important;}")
sheetxrm.insertRule("#xrxmx a {all: revert; color: unset; text-decoration: none;}")
sheetxrm.insertRule("html.xrmxnxmr.zero :-ms-input-placeholder {color: transparent !important;}")
sheetxrm.insertRule("html.xrmxnxmr.zero ::-ms-input-placeholder {color: transparent !important;}")
} catch (e) { }
var iniLingo = iniLingoX2rm(true)
setTimeout(() => iniLingo.init(), 0)
}