Compare commits

...

2 Commits
0.1b ... master

Author SHA1 Message Date
Federico Santandrea
912c71eef0 Better iOS app support. 2020-06-23 10:17:34 +02:00
Federico Santandrea
280a4889ce Better iOS mobile app support 2020-06-23 10:00:09 +02:00
3 changed files with 15 additions and 5 deletions

View File

@ -17,12 +17,9 @@ obj/c2t-96h.so: c2t
link:
mkdir -p bin
emcc --shell-file sendalo.html.tpl -s INVOKE_RUN=0 -s EXIT_RUNTIME=0 -s ALLOW_MEMORY_GROWTH=1 -s EXTRA_EXPORTED_RUNTIME_METHODS=['callMain'] -o bin/sendalo.html obj/c2t-96h.so
cp apple-touch-icon.png bin/
addproxy:
head --bytes=-1 sendalo.php.tpl > bin/sendalo.php
cat bin/sendalo.html >> bin/sendalo.php
# rm bin/sendalo.html
test:
cd bin; python3 -m http.server 65020

BIN
apple-touch-icon.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.7 KiB

View File

@ -3,6 +3,9 @@
<head>
<meta charset="utf-8"/>
<meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1" />
<meta name="apple-mobile-web-app-capable" content="yes" />
<link rel="apple-touch-icon" href="apple-touch-icon.png"/>
<link rel="icon" type="image/png" href="apple-touch-icon.png" />
<title>Sendalo</title>
@ -80,6 +83,12 @@
height: 2em;
font-size: inherit;
}
#reload {
display: none;
text-align: center;
margin-top: 1em;
}
</style>
@ -140,7 +149,7 @@
audio.load();
audio.play();
document.getElementById('reload').style.display = 'block';
}
function displayError() {
@ -187,6 +196,10 @@
</audio>
</div>
<div id="reload">
<a href="javascript:window.location.reload();">New transfer</a>
</div>
<p id="w"><a href="#" onclick="document.getElementById('expl').style.display='block'">
<small>What's this?</small>
</a></p>