% var langs = require("ep_etherpad-lite/node/hooks/i18n").availableLangs , pluginUtils = require('ep_etherpad-lite/static/js/pluginfw/shared') , skinColors = require('ep_etherpad-lite/node/utils/SkinColors') ; var renderLang = (req && typeof req.acceptsLanguages === 'function' && req.acceptsLanguages(Object.keys(langs))) || 'en'; var renderDir = (langs[renderLang] && langs[renderLang].direction === 'rtl') ? 'rtl' : 'ltr'; // theme-color matches the configured toolbar so mobile address bars don't // paint a mismatched system color above the toolbar on first paint. We emit // a prefers-color-scheme: dark variant scoped with the `media` attribute so // iOS Safari — which colors the address bar at parse time and does not // reliably repaint when JS mutates the tag later — picks the dark toolbar // color at first paint on a dark-OS client (issue #7606). The dark variant // is only emitted when enableDarkMode is on, since that is what gates the // client-side auto-switch; the manual #options-darkmode toggle and the // localStorage white-mode override are still handled by skin_variants.ts. var configuredColor = skinColors.configuredToolbarColor(settings.skinName, settings.skinVariants); var darkColor = settings.enableDarkMode ? skinColors.darkToolbarColor(settings.skinName) : null; %>
<% e.begin_block("htmlHead"); %> <% e.end_block(); %>
<% if (settings.enablePadWideSettings) { %>
These settings are locked for you by this pad's creator. Ask the pad creator if you need them changed.
<% } %> <% e.end_block(); %>
<% e.end_block(); %>
<% e.end_block(); %>
<% e.end_block(); %>
This token is the only way to delete this pad if you lose your browser session or switch device. Save it somewhere safe — it is shown here exactly once.
<% } %>