Files
HomeMonitor/Samsung/HomeMonitor/index.html

56 lines
1.1 KiB
HTML

<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
<meta name="description" content="Tizen Wearable Web Widget template generated by Samsung Wearable Web IDE" />
<title>Tizen Wearable Web IDE - Tizen Wearable - Tizen Wearable Web Widget Application</title>
<style>
* {
font-family: Verdana, Lucida Sans, Arial, Helvetica, sans-serif;
}
body {
margin: 20px 20px;
background-color: #222;
}
.contents {
display: flex;
display: -webkit-flex;
box-sizing: border-box;
-webkit-box-sizing: border-box;
height: 320px;
}
.content_text {
font-weight: bold;
font-size: 2em;
color: #fff;
}
</style>
<script>
window.onload = function () {
document.addEventListener('tizenhwkey', function (e) {
if (e.keyName === "back") {
try {
tizen.application.getCurrentApplication().exit();
} catch (ignore) {
}
}
});
}
</script>
</head>
<body>
<div class=contents>
<div style='margin:auto;'>
<span class=content_text id=textbox>Try to add a widget on the home</span>
</div>
</div>
</body>
</html>