Cyberlaywer/build/deb-rust-cyberlaywer-interface/pluriton-interface/templates/index.html
2023-03-06 15:36:57 +01:00

278 lines
9.9 KiB
HTML
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<div id="container">
<!doctype html>
<html lang="{{ "lang_code"|tr(lang) }}">
<head>
<title>{{ "index_title"|tr(lang) }} {{ "index_description"|tr(lang) }}</title>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="{{ "meta_description"|tr(lang) }}" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="icon" type="image/png" sizes="48x48" href="/assets/favicon.svg" />
<link rel="stylesheet" href="/assets/index.css?v=1.2" />
<link rel="stylesheet" href="/assets/cloud.css?v=1.0" />
<link rel="stylesheet" href="/assets/digitalcourage.css" />
<link rel="stylesheet" href="/assets/bootstrap.min.css" />
<style>
.break {
flex-basis: 100%;
height: 0;
}
.grid-container {
display: grid;
grid-template-columns: auto auto;
grid-gap: 5vw;
}
.grid-container2 {
display: grid;
grid-template-columns: auto auto auto;
width: 532px;
grid-gap: 35px;
}
@media only screen and (max-width: 768px) {
/* For mobile phones: */
[class*="grid-container"] {
grid-template-columns: auto;
max-width: 100%;
justify-content: center;
}
[class*="grid-container2"] {
grid-template-columns: auto;
max-width: 100%;
justify-content: center;
grid-gap: 20px;
}
[class*="item1"] {
grid-template-columns: auto;
max-width: 100%;
align-items: center;
width: 80vw;
}
[class*="item2"] {
grid-template-columns: auto;
max-width: 100%;
align-items: center;
width: 80vw;
}
}
.div_120 {
flex-basis: 100%;
height: 120px;
}
.div_60 {
flex-basis: 100%;
height: 60px;
}
.div_45 {
flex-basis: 100%;
height: 45px;
}
.div_35 {
flex-basis: 100%;
height: 35px;
}
.div_25 {
flex-basis: 100%;
height: 25px;
}
.div_10 {
flex-basis: 100%;
height: 10px;
}
.h3 {
font-size: 20pt;
}
h2 {
font-size: 30pt;
}
.a1 {
font-size: 20pt;
}
p {
font-size: 14pt;
}
p1 {
font-size: 20pt;
}
.downDC {
height: 90px;
padding: 10px;
}
.c-img-shadow {
height: 200px;
max-width: 100%;
box-shadow: 0 0 5px rgba(0, 0, 0, 0.18),0 5px 5px rgba(0, 0, 0, 0.18);
border-radius: 2px;
}
</style>
<noscript><style> .jsonly { display: none } </style></noscript>
<script>
window.onload = function() {
// retrieved from server-side template
let lang = "{{ lang }}";
document.getElementById('langs').value=lang;
document.getElementById("send-text").style.display = "unset";
let btn2 = document.getElementById("send-text-btn");
btn2.style.cursor = "pointer";
btn2.addEventListener('click', function() {
var text = document.getElementById("datextarea").value;
console.log(text);
var xhr1=new XMLHttpRequest();
xhr1.open("POST",'link/text', true);
xhr1.setRequestHeader('Content-Type', 'application/json');
const json = {
"Text": text
};
xhr1.send(JSON.stringify(json));
document.getElementById("datextarea").value = "...";
xhr1.onreadystatechange = function () {
if (xhr1.readyState == 4) {
result = xhr1.response.split('?&?&')
document.getElementById("output1").value = result[0].substring(3, result[0].length);
// document.getElementById("output2").value = result[1].substring(0, result[1].length - 3);
document.getElementById("datextarea").value = text;
};
};
document.getElementById("datextarea").value = "...";
});
}
</script>
</head>
<body>
<div class="container ombre">
<header role="banner" class="clearfix">
<form method="get" action="/" class="hidden-print">
<div class="input-group input-group-sm pull-right col-xs-12 col-sm-2 langs" style="margin-right: 8px">
<select id="langs" name="lang" class="form-control" title="Select language" >
<option lang="fr" value="fr">Fran&ccedil;ais</option>
<option lang="en" selected value="en">English</option>
<option lang="de" value="de">Deutsch</option>
<option lang="it" value="it">Italiano</option>
</select>
<span class="input-group-btn">
<button type="submit" id="language_button" class="btn btn-default btn-sm language_button" title="Change language">OK</button>
</span>
</div>
</form>
<a href="https&colon;&sol;&sol;www&period;basabuuka&period;org&sol;" title="Home - basabuuka" style="margin-left: 8px" >
<img src="/assets/babelfish_logo.webp" alt="basabuuka" class="" height="95vh" />
</a>
<h2 class="lead col-xs-12"></h2> <div class="trait col-xs-12" role="presentation"></div>
</header>
<main role="main">
<div class="div_10"></div>
<div class="div_10"></div>
<div class="div_10"></div>
<center>
<div>
<h2 class="title">{{ "index_title2"|tr(lang) }}</h2>
</div>
<br/>
<div class="div_25"></div>
<div class="flex has-text-centered">
<div>
<p1 class="title">{{ "index_description"|tr(lang) }}</p1>
</div>
</div>
</center>
<div class="div_60"></div>
<center>
<textarea id="datextarea" placeholder="{{"index_description2"|tr(lang)}}" style="font-size:18px; outline:none; resize: none; overflow:auto; width:80vw; height:40vh; border-width:2vw border-width: 2vw; border-style:solid"></textarea>
<div class="div_10"></div>
<div id="send-text">
<a style="width: 50vw;" id="send-text-btn" class="ncstyle-button margin-bottom">{{ "index_search_button"|tr(lang) }}</a>
</div>
<div class="div_10"></div>
<div class="grid-container">
<div class="item1">
<textarea id="output1" placeholder="{{"index_description3"|tr(lang)}}" style="font-size:18px; outline:none; resize: none; overflow:auto; width:38vw; height:55vh; border-width:2vw border-width: 2vw; border-style:solid"></textarea>
</div>
<div class="item2">
<textarea id="output2" placeholder="{{"index_description4"|tr(lang)}}" style="font-size:18px; outline:none; resize: none; overflow:auto; width:38vw; height:55vh; border-width:2vw border-width: 2vw; border-style:solid"></textarea>
</div>
</div>
<div class="div_10"></div>
</center>
<div class="break"></div>
<div class="div_120"></div>
<center>
<div class="div_60"></div>
<div class="flex has-text-centered">
<div class=" flex">
<noscript>
<a class="ncstyle-button">{{ "index_nojs"|tr(lang) }}</a>
</noscript>
</div>
</div>
<div class="div_120"></div>
<p>
<div class="flex has-text-centered">
<div>
<h2 class="title">{{ "index_disclaimer_title"|tr(lang) }}</h2>
</div>
<div class="break"></div>
<div class="div_25"></div>
<div>
<p1 class="title">{{ "index_disclaimer1"|tr(lang) }}</p1>
<a href="https://www.basabuuka.org" class="a1">{{ "index_disclaimer2_link_org"|tr(lang) }}</a1>
<p1 class="title">{{ "index_disclaimer2"|tr(lang) }}</p1>
</div>
<br>
<div class="break"></div>
<div>
<p1 class="title">{{ "index_disclaimer2_but"|tr(lang) }}</p1>
<a href="https://www.basabuuka.org" class="a1">{{ "index_disclaimer2_link_don"|tr(lang) }}</a>
</div>
<br>
<div class="break"></div>
<div>
<p1 class="title">{{ "index_disclaimer3"|tr(lang) }}</p1>
<a href="https://www.basabuuka.org" class="a1">{{ "index_disclaimer3_link"|tr(lang) }}</a>
<p1 class="title">{{ "index_disclaimer4"|tr(lang) }}</p1>
</div>
</div>
</p>
<div class="div_120"></div>
<div class="c-blue grid-container2">
<a href="" style="font-size:15px" class="c-button" target="_blank">{{ "index_bottom_docs"|tr(lang) }}</a>
<a href="https://code.basabuuka.org/alpcentaur/PluriTon" style="font-size:15px;" class="c-button" target="_blank">{{ "index_bottom_source"|tr(lang) }}</a>
<a href="https://code.basabuuka.org/alpcentaur/basabuuka_prototyp/src/branch/master/LICENSE.txt" style="font-size:15px;" class="c-button" target="_blank">{{ "index_bottom_lic"|tr(lang) }}</a>
</div>
<div class="div_10"></div>
</center>
</main>
</div> <!-- .container -->
</body>
</html>
<div class="container ombre downDC" style="display:flex;align-items:center;">
<h2 class="lead"><a target="_blank" href="https://www.basabuuka.org/">Basabuuka</a> | <a target="_blank" href="https://notebook.basabuuka.org">Notebook Prototyp</a> | <a target="_blank" href="">{{ "impressum_donations"|tr(lang) }}</a> | <a target="_blank" href="">Kontakt</a> | <a target="_blank" href="">{{ "impressum_privacy"|tr(lang) }}</a> </h2>
</div>