wisemapping-open-source/wise-webapp/src/main/webapp/jsp/reactInclude.jsp

54 lines
2.1 KiB
Plaintext
Raw Normal View History

<%@ page pageEncoding="UTF-8" contentType="text/html; charset=UTF-8" %>
<!DOCTYPE html>
2022-11-20 09:02:43 +01:00
<html lang="${fn:substring(locale,0,2)}">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta charset="utf-8" />
<base href="${requestScope['site.baseurl']}/static/webapp/">
2022-09-11 23:20:58 +02:00
<link rel="preconnect" href="https://fonts.googleapis.com" crossorigin>
<link rel="stylesheet" media="print" onload="this.onload=null;this.removeAttribute('media');" href="https://fonts.googleapis.com/css2?family=Montserrat:wght@100;200;300;400;600&display=swap"/>
2022-01-11 04:12:58 +01:00
<%@ include file="/jsp/pageHeaders.jsf" %>
2021-12-26 18:23:51 +01:00
2022-11-20 09:01:16 +01:00
<title>WiseMapping</title>
<script>
window.serverconfig = {
2022-04-14 00:16:51 +02:00
apiBaseUrl: '${requestScope['site.baseurl']}',
analyticsAccount: '${requestScope['google.analytics.account']}',
clientType: 'rest',
recaptcha2Enabled: ${requestScope['google.recaptcha2.enabled']},
recaptcha2SiteKey: '${requestScope['google.recaptcha2.siteKey']}'
};
</script>
<c:if test="${requestScope['google.analytics.enabled']}">
2022-09-12 18:46:02 +02:00
<!-- Google Ads Sense Config. Lazy loading optimization -->
<script type="text/javascript">
function downloadJsAtOnload() {
setTimeout(function downloadJs() {
var element = document.createElement("script");
element.setAttribute("data-ad-client", "ca-pub-4996113942657337");
element.async = true;
element.src = "https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js";
document.body.appendChild(element);
2022-11-20 09:01:16 +01:00
}, 0);
2022-09-12 18:46:02 +02:00
};
window.addEventListener("load", downloadJsAtOnload, false);
</script>
</c:if>
</head>
<body>
<noscript>You need to enable JavaScript to run this app.</noscript>
<div id="root"></div>
2022-03-07 05:16:48 +01:00
<script type="text/javascript" src="${requestScope['site.static.js.url']}/webapp/vendors.bundle.js" crossorigin="anonymous"></script>
<script type="text/javascript" src="${requestScope['site.static.js.url']}/webapp/app.bundle.js" crossorigin="anonymous"></script>
</body>
</html>