mirror of
https://gitlab.com/SpaccInc/SpaccDotWeb.git
synced 2025-06-05 21:29:12 +02:00
40 lines
1.9 KiB
HTML
40 lines
1.9 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<body>
|
|
<h1>SpaccWebView Example Android Application</h1>
|
|
<p>Repository: <a href="https://gitlab.com/SpaccInc/SpaccDotWeb">https://gitlab.com/SpaccInc/SpaccDotWeb</a>.</p>
|
|
<h2>Tests</h2>
|
|
<img alt="Cat!" src="https://http.cat/images/200.jpg" />
|
|
<h3>JavaScript</h3>
|
|
<p>
|
|
<label><input type="text" autocomplete="off" onkeypress="(function(event){if(event.keyCode===13)eval(event.target.value);})(event);"/></label>
|
|
<button onclick="eval(this.parentElement.querySelector('input').value);">Run</button>
|
|
</p>
|
|
<h3>Popups</h3>
|
|
<p>
|
|
<button onclick="alert(1);">alert()</button>
|
|
<button onclick="confirm(1);">confirm()</button>
|
|
<button onclick="prompt(1);">prompt()</button>
|
|
</p>
|
|
<h3>Links</h3>
|
|
<ul>
|
|
<li><a href="file:///">file://</a></li>
|
|
<li><a href="http://example.com">http://</a></li>
|
|
<li><a href="https://example.com">https://</a></li>
|
|
<li><a href="ftp://example.com">ftp://</a></li>
|
|
<li><a href="data:text/plain;utf8,Hello World!">data:text/plain</a></li>
|
|
<li><a href="data:text/html;utf8,<h2>Hello World!">data:text/html</a></li>
|
|
<li><a href="mailto:example@example.com">mailto:</a></li>
|
|
<li><a href="intent://#Intent;action=android.intent.action.VIEW;scheme=http;type=video/mp4;end">intent://</a></li>
|
|
</ul>
|
|
<h3>Files</h3>
|
|
<p>Upload: <label><input type="file" onchange="(function(f){ alert(f.name + ' ' + f.size + ' ' + f.type); })(this.files[0]);" /></label></p>
|
|
<p>Download:</p>
|
|
<ul>
|
|
<li><a download="Hello World.txt" href="data:text/plain;utf8,Hello World!">data:, .txt</a></li>
|
|
<li><a download="Example.html" href="http://example.com/index.html">http://, .html</a></li>
|
|
<li><a download="Example.html" href="https://example.com/index.html">https://, .html</a></li>
|
|
<li><a href="https://hlb0.octt.eu.org/Drive/Misc/onestop.mid">https://, .mid</a></li>
|
|
</ul>
|
|
</body>
|
|
</html> |