2022-03-28 14:19:20 +00:00
|
|
|
|
|
|
|
<!DOCTYPE html>
|
|
|
|
<html>
|
|
|
|
|
|
|
|
<head>
|
|
|
|
<title>Kalkylator</title>
|
|
|
|
<meta charset="utf-8">
|
2022-05-18 14:00:06 +00:00
|
|
|
<link rel="stylesheet" href="css/style.css?v=1.1">
|
2022-03-28 14:19:20 +00:00
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
2022-05-18 14:00:06 +00:00
|
|
|
<script src="js/script.js?v=1.1"></script>
|
|
|
|
|
|
|
|
<!-- pwa settings -->
|
|
|
|
<link rel="manifest" href="manifest.json?v=1.2">
|
|
|
|
<meta name="theme-color" content="#000000">
|
|
|
|
<meta name="mobile-web-app-capable" content="yes">
|
|
|
|
|
|
|
|
<link rel="icon" href="favicon.ico">
|
|
|
|
<link rel="icon" sizes="192x192" href="icons/icon-192x192.png">
|
|
|
|
|
|
|
|
<!-- IOS/IPhone/IPad -->
|
|
|
|
<link rel="apple-touch-startup-image" href="icons/icon-192x192.png">
|
|
|
|
<link rel="apple-touch-icon-precomposed" sizes="72x72" href="icons/icon-72x72.png" />
|
|
|
|
<link rel="apple-touch-icon-precomposed" sizes="144x144" href="icons/icon-144x144.png" />
|
|
|
|
<link rel="apple-touch-icon-precomposed" sizes="180x180" href="icons/icon-180x180.png" />
|
|
|
|
|
|
|
|
<meta name="apple-mobile-web-app-capable" content="yes">
|
|
|
|
<meta name="apple-mobile-web-app-status-bar-style" content="black">
|
|
|
|
<meta name="apple-mobile-web-app-title" content="Calculator">
|
|
|
|
|
|
|
|
<!-- Fixar länkproblem på iPhone som hoppar till safari -->
|
|
|
|
<script>(function(a,b,c){if(c in b&&b[c]){var d,e=a.location,f=/^(a|html)$/i;a.addEventListener("click",function(a){d=a.target;while(!f.test(d.nodeName))d=d.parentNode;"href"in d&&(d.href.indexOf("http")||~d.href.indexOf(e.host))&&(a.preventDefault(),e.href=d.href)},!1)}})(document,window.navigator,"standalone")</script>
|
2022-03-28 14:19:20 +00:00
|
|
|
</head>
|
|
|
|
|
|
|
|
<body>
|
|
|
|
<main>
|
|
|
|
<input type="text" id = 'lcd' disabled="disabled">
|
|
|
|
<section id = 'keyBoard'>
|
|
|
|
<button id='b7'>7</button>
|
|
|
|
<button id='b8'>8</button>
|
|
|
|
<button id='b9'>9</button>
|
|
|
|
<button id='add'>+</button>
|
|
|
|
|
|
|
|
<button id='b4'>4</button>
|
|
|
|
<button id='b5'>5</button>
|
|
|
|
<button id='b6'>6</button>
|
|
|
|
<button id='sub'>-</button>
|
|
|
|
|
|
|
|
<button id='b1'>1</button>
|
|
|
|
<button id='b2'>2</button>
|
|
|
|
<button id='b3'>3</button>
|
|
|
|
<button id='mul'>x</button>
|
|
|
|
|
|
|
|
<button id='comma'>,</button>
|
|
|
|
<button id='b0'>0</button>
|
|
|
|
<button id='enter'>=</button>
|
|
|
|
<button id='div'>/</button>
|
|
|
|
|
|
|
|
<button id='clear' style = 'grid-column: span 4;'>CLEAR</button>
|
|
|
|
</section>
|
|
|
|
|
|
|
|
</main>
|
|
|
|
|
|
|
|
</body>
|
2022-04-24 17:09:28 +00:00
|
|
|
<script>
|
|
|
|
if('serviceWorker' in navigator) {
|
|
|
|
window.addEventListener('load', function() {
|
|
|
|
navigator.serviceWorker.register('/sw.js?v=1.5');
|
|
|
|
});
|
|
|
|
}
|
|
|
|
</script>
|
|
|
|
</html>
|