ccos-cli
Version:
This is a command line interface toolkit. It is used for generating and managing example code for CoocaaOS running on Skyworth/Coocaa TV webos API.
36 lines (33 loc) • 1.25 kB
HTML
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="cache-control" content="no-cache">
<meta name="referrer" content="no-referrer" />
<title>demo</title>
<script type="text/javascript">
; (function () {
console.log('navigator.userAgent = ' + navigator.userAgent + ", window.screen.width = " + window.screen.width);
if (/Android (\d+\.\d+)/.test(navigator.userAgent)) {
var version = parseFloat(RegExp.$1);
if (version > 2.3) {
var phoneScale = parseInt(window.screen.width) / 1920;
document.write('<meta name="viewport" content="width=1920, minimum-scale = ' + phoneScale + ', maximum-scale = ' + phoneScale + ', target-densitydpi=device-dpi">');
} else {
document.write('<meta name="viewport" content="width=1920">');
}
} else {
document.write('<meta name="viewport" content="width=1920, user-scalable=no">');
}
})();
</script>
</head>
<body>
<div id="deviceready">
<a href="https://fanyanbo.github.io/documents/" target="_blank"><img src="images/logo.png" /></a>
<div id="first" class="btn coocaa_btn">button1</div>
<div id="second" class="btn coocaa_btn">点我,跳转应用圈</div>
<div id="third" class="btn coocaa_btn">button2</div>
</div>
</body>
</html>