Merge pull request #1781 from gitsofaryan/disc

Show JavaScript Disabled Disclaimer
This commit is contained in:
KoalaSat 2025-02-24 17:40:51 +00:00 committed by GitHub
commit 7a4c82a429
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -6,34 +6,62 @@
<link rel="icon" type="image/png" href="<%= htmlWebpackPlugin.options.basePath %>static/assets/images/favicon-32x32.png" sizes="32x32">
<link rel="icon" type="image/png" href="<%= htmlWebpackPlugin.options.basePath %>static/assets/images/favicon-96x96.png" sizes="96x96">
<link rel="icon" type="image/png" href="<%= htmlWebpackPlugin.options.basePath %>static/assets/images/favicon-192x192.png" sizes="192x192">
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="description" content="A simple and private way to exchange bitcoin for national currencies. Robosats simplifies the peer-to-peer user experience and uses lightning hold invoices to minimize custody and trust requirements. No user registration required.">
<% if (pro) { %>
<title>RoboSats PRO - Simple and Private Bitcoin Exchange</title>
<link rel="stylesheet" href="<%= htmlWebpackPlugin.options.basePath %>static/css_pro/fonts.css"/>
<link rel="stylesheet" type="text/css" href="<%= htmlWebpackPlugin.options.basePath %>static/css_pro/react-grid-layout.css"/>
<link rel="stylesheet" type="text/css" href="<%= htmlWebpackPlugin.options.basePath %>static/css_pro/react-resizable.css"/>
<title>RoboSats PRO - Simple and Private Bitcoin Exchange</title>
<link rel="stylesheet" href="<%= htmlWebpackPlugin.options.basePath %>static/css_pro/fonts.css"/>
<link rel="stylesheet" type="text/css" href="<%= htmlWebpackPlugin.options.basePath %>static/css_pro/react-grid-layout.css"/>
<link rel="stylesheet" type="text/css" href="<%= htmlWebpackPlugin.options.basePath %>static/css_pro/react-resizable.css"/>
<% } else { %>
<title>RoboSats - Simple and Private Bitcoin Exchange</title>
<link rel="stylesheet" href="<%= htmlWebpackPlugin.options.basePath %>static/css/fonts.css"/>
<title>RoboSats - Simple and Private Bitcoin Exchange</title>
<link rel="stylesheet" href="<%= htmlWebpackPlugin.options.basePath %>static/css/fonts.css"/>
<% } %>
<link rel="stylesheet" type="text/css" href="<%= htmlWebpackPlugin.options.basePath %>static/css/loader.css"/>
<link rel="stylesheet" type="text/css" href="<%= htmlWebpackPlugin.options.basePath %>static/css/index.css"/>
<link rel="stylesheet" type="text/css" href="<%= htmlWebpackPlugin.options.basePath %>static/css/leaflet.css"/>
<style>
/* Styles for the JavaScript-disabled disclaimer */
.noscript-container {
max-width: 600px;
margin: 40px auto;
padding: 20px;
border: 2px solid #e74c3c;
background-color: #fdecea;
color: #c0392b;
text-align: center;
font-family: Arial, sans-serif;
}
.noscript-container h2 {
margin-top: 0;
font-size: 1.8em;
}
.noscript-container p {
font-size: 1.1em;
line-height: 1.4;
}
.noscript-container a {
color: #c0392b;
text-decoration: underline;
}
</style>
</head>
<body>
<!-- This block is only rendered if JavaScript is disabled -->
<noscript>
<div>
This site requires JavaScript. This message is only visible if you have it disabled. <br/><br/>
If you are using TOR browser set the "Security Level" to "Standard". If you keep seeing this message clear cache and storage of TOR browser app and retry.<br/><br/>
If the problem persists, ask for support in the RoboSats telegram group<a href="https://t.me/robosats"> (t.me/robosats)</a>
<div class="noscript-container">
<h2>JavaScript is Disabled</h2>
<p>This website requires JavaScript for full functionality. Please enable JavaScript in your browser settings to proceed.</p>
<p>If youre using Tor Browser, ensure your "Security Level" is set to "Standard". If the issue persists, try clearing your cache and storage.</p>
<p>Need more help? Visit our support channel on Telegram: <a href="https://t.me/robosats" target="_blank" rel="noopener">t.me/robosats</a>.</p>
</div>
</noscript>
<div id="main">
<div id="app">
<div class="loaderCenter">
@ -60,11 +88,13 @@
</ul>
</div>
</div>
</div>
</div>
</div>
</div>
<script>
window.RobosatsSettings = '<%= htmlWebpackPlugin.options.robosatsSettings %>'
window.RobosatsSettings = '<%= htmlWebpackPlugin.options.robosatsSettings %>';
</script>
</body>
</html>
</html>