Fixed index html page

This commit is contained in:
SamTV12345 2024-07-23 18:14:49 +02:00
parent 550a29f3e6
commit 32a4068468
4 changed files with 51 additions and 21 deletions

View file

@ -1,6 +1,3 @@
<%
var settings = require("ep_etherpad-lite/node/utils/Settings");
%>
<!doctype html>
<html>
@ -10,12 +7,7 @@
<meta name="referrer" content="no-referrer">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=0">
<link rel="shortcut icon" href="favicon.ico">
<link rel="localizations" type="application/l10n+json" href="locales.json">
<script type="text/javascript" src="static/js/vendors/html10n.js?v=<%=settings.randomVersionString%>"></script>
<script type="text/javascript" src="static/js/l10n.js?v=<%=settings.randomVersionString%>"></script>
<script src="static/js/vendors/jquery.js"></script>
<script src="static/js/index.js"></script>
<style>
html, body {
@ -157,6 +149,7 @@
</div>
<% e.end_block(); %>
</div>
<script src="<%=entrypoint%>"></script>
<% e.begin_block("indexCustomScripts"); %>
<script src="static/skins/<%=encodeURI(settings.skinName)%>/index.js?v=<%=settings.randomVersionString%>"></script>

View file

@ -0,0 +1,6 @@
(async () => {
window.$ = window.jQuery = require('ep_etherpad-lite/static/js/rjquery').jQuery;
require('ep_etherpad-lite/static/js/l10n')
require('ep_etherpad-lite/static/js/index')
})()