<?php global $start; $GLOBALS["ColdHazePerformance"]["page"] = (microtime(true) - $start) * 1000; $start = microtime(true); ?> <script src="/assets/editor/ua-parser.js"></script> <br><br></main> <script> let tooltipTriggerList = [].slice.call(document.querySelectorAll('[data-bs-toggle="tooltip"]')) let tooltipList = tooltipTriggerList.map(function (tooltipTriggerEl) { return new bootstrap.Tooltip(tooltipTriggerEl) }); window.fetch("/api/rename?name=" + encodeURIComponent("Cold Haze Web (" + UAParser().browser.name + " on " + UAParser().os.name + ")")); if (document.createElement("canvas").getContext("webgl") === null) { let style = document.createElement("style"); style.innerText = "* { backdrop-filter: none !important; }"; document.head.appendChild(style); try { document.getElementById("gpuWarning").style.display = ""; } catch (e) {} } </script> <?php if (isset($_GET["performance"])): ?> <pre><?php $GLOBALS["ColdHazePerformance"]["footer"] = (microtime(true) - $start) * 1000; var_dump($GLOBALS["ColdHazePerformance"]); ?></pre> <?php endif; ?> </body> </html>