-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
62 lines (60 loc) · 3.11 KB
/
index.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
<!DOCTYPE html>
<?php $version="0.0.8";
// Author Dr. H.-J. Weber
// programmed 14.02.2024
// Last update 05.03.2024
// $counter=file_exists("counter.txt")?intVal(file_get_contents("counter.txt")):0;
// file_put_contents("counter.txt",($counter+1));
?>
<html>
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta charset="utf-8">
<style>
body {font-family:sans-serif,helvetica,arial;box-sizing: border-box;background-color:#aaa;}
#try {width:350px;height:430px;padding:10px;border:black solid 1px;display:grid;grid:auto/auto auto auto auto auto;grid-gap:15px;background-color:#777;}
#keys {width:350px;height:130px;padding:10px 10px 0px 10px;border-right:1px solid black;border-left:1px solid black;display:grid;grid:40px 40px 40px auto/auto auto auto auto auto auto auto auto auto auto;grid-gap:5px;background-color:#bbb;}
#foot {width:350px;padding:10px;border-right:1px solid black;border-left:1px solid black;border-bottom:1px solid black;background-color:#bbb;display:flex;justify-content:space-between;}
#bthelp {width:50px;}
#dversion {font-size:6pt;width:80px;}
#lversion {float:right;}
#dgmodal {display:none;position:fixed;z-index:1;padding-top:100px;left:0;top:0;width:100%;height:100%;overflow:auto;background-color:rgb(0,0,0);background-color:rgba(0,0,0,0.4);}
#dgbody {background-color:#fefefe;margin:12px;padding:20px;border:2px solid black;width:320px;}
.tletter {width:50px;height:50px;padding:0px 0px 5px 0px;background-color:#dddddd;border:black solid 1px;cursor:pointer;font-weight:bold;font-size:32pt;text-align:center;}
.kletter {width:19px;height:19px;padding:5px;background-color:#eee;border:1px solid black;cursor:pointer;}
</style>
<script src="biwo.js"></script>
<title data-lkey="l_biwo"></title>
</head>
<body onload="init(1)" onkeydown="keyDown(event)">
<h1 data-lkey="l_biwo" style="display:inline-block;"></h1>    <img src="fl_e.svg" id="imen" onclick="changeLanguage(0)">  <img src="fl_d.svg" id="imge" onclick="changeLanguage(1)">
<div id="try">
<?php
for ($r=0;$r<6;$r++)
for ($c=0;$c<5;$c++)
echo "<div class='tletter' id='l$r"."_"."$c' onclick='sel(this)'></div>\n";
echo "
</div>
<div id=\"keys\">\n";
for ($r=0;$r<3;$r++)
for ($c=0;$c<10;$c++)
echo "<div class='kletter' id='k$r"."_"."$c' onclick='setletter(this)'></div>\n";
echo "</div>\n<div id=\"foot\">\n <button type=\"button\" id=\"btnewword\" data-lkey=\"l_newword\"></button>\n";
echo " <button type=\"button\" id=\"bthelp\">?</button>\n <div id=\"dversion\"><span id=\"lversion\" data-lkey=\"l_version\" ondblclick=\"showC()\"></span></div>\n</div>\n";
?>
<div id="dgmodal">
<div id="dgbody">
<p id="dgmessage"></p>
<div style="float:right;">
<button id="btcancel" data-lkey="l_cancel"></button>     
<button id="btok" data-lkey="l_ok"></button>
</div>
<div> </div>
</div>
</div>
<?php
echo "<input type=\"hidden\" id=\"language\" value=\"".(substr($_SERVER['HTTP_ACCEPT_LANGUAGE'],0,2)=="de"?"1":"0")."\">\n";
echo "<input id=\"version\" type=\"hidden\" value=\"$version\">\n";
?>
</body>
</html>