Please, how to edit my script block to CakePHP 3 framework ?
code is here:
<script>
var browserName;
if ((window.opr && opr.addons) || window.opera || (navigator.userAgent.indexOf(' OPR/') >= 0))
browserName = "Opera";
if (typeof InstallTrigger !== 'undefined')
browserName = "Firefox";
if (Object.prototype.toString.call(window.HTMLElement).indexOf('Constructor') > 0)
browserName = "Safari";
if ((/*@cc_on!@*/false) || (document.documentMode))
browserName = "IE";
if (!(document.documentMode) && window.StyleMedia)
browserName = "Edge";
if (window.chrome && window.chrome.webstore)
browserName = "Chrome";
if (browserName == "IE") {
document.querySelector("#SecondSlide .content").style.transform = "translate(-50%,-50%)";
var pocitadloPart = document.querySelectorAll("#ThirdSlide div[class|='Poc'] > div");
for (var i = 0; i != pocitadloPart.length;i++) {
pocitadloPart[i].style.transform = "translate(-50%,-50%)";
}
}
</script>