5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-06-02 12:54:16 +00:00

pagina estática de error

This commit is contained in:
f 2020-07-31 21:06:26 -03:00
parent 7dcb5e8d89
commit 775a8c5587
4 changed files with 30 additions and 4 deletions

View file

@ -3,8 +3,8 @@
<head>
<meta content='text/html; charset=UTF-8' http-equiv='Content-Type'>
<title>Sutty</title>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css" integrity="sha384-Vkoo8x4CGsO3+Hhxv8T/Q5PaXtkKtu6ug5TOeNV6gBiFeWPGFN9MuhOf23Q9Ifjh" crossorigin="anonymous">
<script defer type="text/javascript" src="https://sutty.nl/assets/js/client_side_i18n.js"></script>
<link rel="stylesheet" href="/bootstrap.min.css">
<script defer type="text/javascript" src="/client_site_i18n.js"></script>
</head>
<body>
<div class='container-fluid'>

View file

@ -3,8 +3,8 @@
<head>
<meta content='text/html; charset=UTF-8' http-equiv='Content-Type'>
<title>Sutty</title>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css" integrity="sha384-Vkoo8x4CGsO3+Hhxv8T/Q5PaXtkKtu6ug5TOeNV6gBiFeWPGFN9MuhOf23Q9Ifjh" crossorigin="anonymous">
<script defer type="text/javascript" src="https://sutty.nl/assets/js/client_side_i18n.js"></script>
<link rel="stylesheet" href="/bootstrap.min.css">
<script defer type="text/javascript" src="/client_site_i18n.js"></script>
</head>
<body class=''>
<div class='container-fluid'>

7
public/bootstrap.min.css vendored Normal file

File diff suppressed because one or more lines are too long

View file

@ -0,0 +1,19 @@
document.addEventListener('DOMContentLoaded', function() {
const available_locales = ["es","en"];
let current_locale = navigator.languages.map(function(language) {
language.split('-')[0];
}).find(function(locale) {
return available_locales.includes(available_locales);
});
if (current_locale == undefined) current_locale = available_locales[0];
available_locales.forEach(function(locale) {
if (locale == current_locale) return;
document.querySelectorAll('[lang='+locale+']').forEach(function(el) {
el.parentNode.removeChild(el);
});
});
});