Publish Vulpes Preview 15 sources for desktop, Android and Tundra
Share Gaia assets and adapters, keep private profiles and development documents local, and update both public READMEs.
This commit is contained in:
parent
93e3a48004
commit
b38dea0597
25901 changed files with 9982925 additions and 369 deletions
15
assets/webapps/test-otasp.gaiamobile.org/index.html
Normal file
15
assets/webapps/test-otasp.gaiamobile.org/index.html
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1">
|
||||
<meta charset="utf-8">
|
||||
<title>OTASP Receiver</title>
|
||||
<script type="text/javascript" src="js/otasp.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<p>
|
||||
Status<br>
|
||||
<span id="status"></span>
|
||||
</p>
|
||||
</body>
|
||||
</html>
|
||||
22
assets/webapps/test-otasp.gaiamobile.org/js/otasp.js
Normal file
22
assets/webapps/test-otasp.gaiamobile.org/js/otasp.js
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
/* -*- Mode: js; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- /
|
||||
/* vim: set shiftwidth=2 tabstop=2 autoindent cindent expandtab: */
|
||||
|
||||
'use strict';
|
||||
|
||||
window.addEventListener('load', function() {
|
||||
var mobileConnection = window.navigator.mozMobileConnections &&
|
||||
window.navigator.mozMobileConnections[0];
|
||||
|
||||
if (!mobileConnection)
|
||||
return;
|
||||
|
||||
mobileConnection.addEventListener('otastatuschange', function(status) {
|
||||
// To UI
|
||||
document.getElementById('status').value = status;
|
||||
|
||||
// To logcat
|
||||
dump('###################### OTA Status Changed ######################\n');
|
||||
dump('Status: ' + status + '\n');
|
||||
dump('################################################################\n');
|
||||
});
|
||||
});
|
||||
1
assets/webapps/test-otasp.gaiamobile.org/manifest.webapp
Executable file
1
assets/webapps/test-otasp.gaiamobile.org/manifest.webapp
Executable file
|
|
@ -0,0 +1 @@
|
|||
{"name":"Test OTASP","description":"OTASP receiver","type":"certified","launch_path":"/index.html","developer":{"name":"The Gaia Team","url":"https://github.com/mozilla-b2g/gaia"},"permissions":{"mobileconnection":{}},"icons":{"84":"/style/icons/default_84.png","126":"/style/icons/default_126.png","142":"/style/icons/default_142.png","189":"/style/icons/default_189.png","284":"/style/icons/default_284.png"},"origin":"app://test-otasp.gaiamobile.org","version":"2.5"}
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 2.1 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 2.5 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 3.7 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 5.9 KiB |
Binary file not shown.
|
After Width: | Height: | Size: 1.6 KiB |
Loading…
Reference in a new issue