added icon and offline caching
This commit is contained in:
parent
a99b4ff937
commit
e715835445
3 changed files with 14 additions and 2 deletions
BIN
icon.png
Normal file
BIN
icon.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 29 KiB |
|
|
@ -1,6 +1,6 @@
|
||||||
<!doctype html>
|
<!doctype html>
|
||||||
|
|
||||||
<html lang="en">
|
<html lang="en" manifest="offline.appcache">
|
||||||
|
|
||||||
<head>
|
<head>
|
||||||
<meta charset="utf-8">
|
<meta charset="utf-8">
|
||||||
|
|
@ -9,6 +9,8 @@
|
||||||
<meta name="viewport" content="initial-scale=1.0001, minimum-scale=1.0001, maximum-scale=1.0001, user-scalable=no">
|
<meta name="viewport" content="initial-scale=1.0001, minimum-scale=1.0001, maximum-scale=1.0001, user-scalable=no">
|
||||||
<meta name="description" content="Weight small objects using your 3D touch enabled iPhone!">
|
<meta name="description" content="Weight small objects using your 3D touch enabled iPhone!">
|
||||||
<meta name="author" content="Tarun Pemmaraju">
|
<meta name="author" content="Tarun Pemmaraju">
|
||||||
|
<link rel="apple-touch-icon" sizes="512x512" href="icon.png" />
|
||||||
|
<!-- icon from http://www.flaticon.com/free-icon/food-scale-tool_45327 -->
|
||||||
<style>
|
<style>
|
||||||
body {
|
body {
|
||||||
padding: 0;
|
padding: 0;
|
||||||
|
|
@ -36,6 +38,7 @@
|
||||||
0 grams
|
0 grams
|
||||||
</div>
|
</div>
|
||||||
<script>
|
<script>
|
||||||
|
// based on https://github.com/freinbichler/3d-touch
|
||||||
var element = document.getElementById('forcearea');
|
var element = document.getElementById('forcearea');
|
||||||
|
|
||||||
addForceTouchToElement(element);
|
addForceTouchToElement(element);
|
||||||
|
|
@ -81,4 +84,4 @@
|
||||||
</script>
|
</script>
|
||||||
</body>
|
</body>
|
||||||
|
|
||||||
</html>
|
</html>
|
||||||
9
offline.appcache
Normal file
9
offline.appcache
Normal file
|
|
@ -0,0 +1,9 @@
|
||||||
|
CACHE MANIFEST
|
||||||
|
|
||||||
|
# Version 1.5
|
||||||
|
|
||||||
|
NETWORK:
|
||||||
|
*
|
||||||
|
|
||||||
|
CACHE:
|
||||||
|
index.html
|
||||||
Loading…
Reference in a new issue