<!DOCTYPE html>
<html>
<head>
<meta charset = "UTF-8">
<title>Официальная страница PyTy</title>
<style>
.center-container {
display: flex;
justify-content: center;
flex-wrap: wrap
}
.code-container {
display: flex;
justify-content: center;
flex-wrap: wrap;
border: 2px solid #000;
margin-bottom: 10px
}
.stretch-container {
display: flex;
align-items: stretch;
flex-wrap: wrap
}
.codearea {
display: inline;
background-color: #000;
color: #fff;
padding: 10px 10px 25px;
margin: 5px 20px 5px 0px;
font-size: large;
font-family: sans-serif;
width: 45ch;
height: 6em
}
h2 {
text-align: center;
font-style: italic;
font-size: x-large
}
h3 {text-align: center}
a:visited {color: #00f}
</style>
</head>
<body>
<header style = "border-bottom: 2px solid #000"><h2>Добро пожаловать на официальную страницу!</h2></header>
<div class = "center-container">
<img src = "Логотип PyTy.png">
</div>
<h3><a href = "download/PyTy 2.0.0.exe" id = "pyty_ref">Скачать интерпретатор PyTy версии</a>
<select id = "pyty_version" onchange="change_version(this)">
<option selected value = "2.0.0">2.0.0 (рекомендуется)</option>
<optgroup label = "Раниие версии">
<option value = "1.8.0">1.8.0</option>
<option value = "1.7.0">1.7.0</option>
<option value = "1.6.5">1.6.5</option>
</optgroup>
</select>
<select id = "pyty_platform" onchange = 'document.getElementById("pyty_ref").href = "download/PyTy" + this.value + " " + document.getElementById("pyty_version").value + ".exe";'>
<option selected value = "">для Windows 32 bit</option>
<option value = "64">для Windows 64 bit</option>
</select>
 | <a href = "download/документация PyTy 2.0.0.rtf">Документация к PyTy версии 2.0.0</a></h3>
<div class = "code-container">
<div class = "codearea">
<div id = "code1">println 'Hello World!'</div>
<div id = "code2">Hello World!</div>
<div id = "code3">&gt&gt</div>
<div id = "code4"></div>
<div id = "code5"></div>
<div id = "code6"></div>
</div>
<div class = "strech-container">
<h2>Интерактивная оболочка</h2>
<h3>Результат работы сразу в окне консоли!</h3>
<h3><a href = "download/PyTyI 2.0.0.exe" id = "pytyi_ref">Скачать версии</a>
<select id = "pytyi_version" onchange="change_versioni(this)">
<option selected value = "2.0.0">2.0.0</option>
<optgroup label = "Раниие версии">
<option value = "1.8.0">1.8.0</option>
<option value = "1.7.0">1.7.0</option>
<option value = "1.6.5">1.6.5</option>
</optgroup>
</select>
<select id = "pytyi_platform" onchange = 'document.getElementById("pytyi_ref").href = "download/PyTyI" + this.value + " " + document.getElementById("pytyi_version").value + ".exe";'>
<option selected value = "">для Windows 32 bit</option>
<option value = "64">для Windows 64 bit</option>
</select>
</h3>
</div>
</div>
<footer style = "border-top: 2px solid #000">
<h3 style = "text-align: right">©PyTy studio 2021 | <a href="/cdn-cgi/l/email-protection#3b4b424f4215545d5258525a577b5c565a525715585456"><span class="__cf_email__" data-cfemail="50202924297e3f36393339313c10373d31393c7e333f3d">[email&#160;protected]</span></a></h3>
</footer>
<script data-cfasync="false" src="/cdn-cgi/scripts/5c5dd728/cloudflare-static/email-decode.min.js"></script><script>
function change_version(version) {
if (version.value == "2.0.0") {
document.getElementById("pyty_platform").innerHTML = "<option selected value = \"\">для Windows 32 bit</option><option value = \"64\">для Windows 64 bit</option>"
} else {
document.getElementById("pyty_platform").innerHTML = "<option selected value = \"\">для Windows 32 bit</option>"
}
document.getElementById("pyty_ref").href = "download/PyTy" + document.getElementById("pyty_platform").value + " " + version.value + ".exe";
}
function change_versioni(version) {
if (version.value == "2.0.0") {
document.getElementById("pytyi_platform").innerHTML = "<option selected value = \"\">для Windows 32 bit</option><option value = \"64\">для Windows 64 bit</option>"
} else {
document.getElementById("pytyi_platform").innerHTML = "<option selected value = \"\">для Windows 32 bit</option>"
}
document.getElementById("pytyi_ref").href = "download/PyTyI" + document.getElementById("pytyi_platform").value + " " + version.value + ".exe";
}
var codearea = [document.getElementById("code1"),
                document.getElementById("code2"),
                document.getElementById("code3"),
                document.getElementById("code4"),
                document.getElementById("code5"),
                document.getElementById("code6")];
var code = [[">> println 'Hello World!'", "Hello World!", ">> println 'Hello,' & input & '!'", "PyTy", "Hello, PyTy!", ">>"],
            [">> 5 / 2 #true div", "2.5", ">> 5 // 2 #floor div", "2", ">> pi ^ 2 #pow", "9.872"],
            [">> l = 1..10", ">> shuffle l", ">> l", "ARRAY(10): 1, 8, 3, 5, 2, 10, 7, 9, 4, 6", ">> l.sort", "ARRAY(10): 1, 2, 3, 4, 5, 6, 7, 8, 9, 10"],
            [">> println 1..10 join '->'", "1->2->3->4->5->6->7->8->9->10", ">> '/1/2/,/3/4/,/5/6/' split_with '/,'", "ARRAY(6): '1', '2', '3', '4', '5', '6'", ">> for i in 1..10: if i % 2 == 0: print i & ';'", "2;4;6;8;10;"],
            [">> const email_regex = r'^([\\w-]+\\.)*[\\w-]+@[\\w-]+(\\.[\\w-]+)*\\.[a-z]{2,6}$'", ">> if input reg_match email_regex: print 'Valid'", "pyty-oficial@gmail.com", "Valid", "", ""]];
var rep = 0;
function tick() {
var thisCode = code[rep];
for (var i = 0; i < 6; i++) {
codearea[i].innerText = thisCode[i];
}
rep = (rep + 1) % 5;
window.setTimeout("tick()", 8000);
}
tick();
</script>
</body>
</html>