This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"version":"1.0", | |
"name": "Notes", | |
"description": "This app uses the HTML5 Storage API to demonstrate how to save data in your Firefox OS Apps.", | |
"launch_path": "/index.html", | |
"icons": { | |
"16": "/images/icon_016.png", | |
"32": "/images/icon_032.png", | |
"48": "/images/icon_048.png", | |
"128": "/images/icon_128.png" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<title>Notes</title> | |
<link rel="stylesheet" href="jquery.mobile-1.3.1.min.css" /> | |
<script src="jquery-1.7.1.min.js"></script> | |
<script src="jquery.mobile-1.3.1.min.js"></script> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(document).ready(function(){ | |
$("#btnAddNote").click(function(){ | |
//Change to the add-notes | |
$.mobile.changePage ($("#add-notes")); | |
}); | |
$("#btnViewNotes").click(function(){ | |
//Change to the add-notes | |
$.mobile.changePage ($("#view-notes")); | |
//Empty the list first |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"version":"1.0", | |
"name": "Notes", | |
"description": "This app uses the HTML5 Indexed API to demonstrate how to save data in your Firefox OS Apps.", | |
"launch_path": "/index.html", | |
"fullscreen": "false", | |
"icons": { | |
"16": "/images/icon_016.png", | |
"32": "/images/icon_032.png", | |
"48": "/images/icon_048.png", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0,user-scalable=0"> | |
<title>Notes</title> | |
<link rel="stylesheet" href="jquery.mobile-1.3.1.min.css" /> | |
<script src="jquery-1.7.1.min.js"></script> | |
<script src="jquery.mobile-1.3.1.min.js"></script> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// variable which will hold the database connection | |
var db; | |
function initializeDB() { | |
if (window.indexedDB) { | |
console.log("IndexedDB support is there"); | |
} | |
else { | |
alert("Indexed DB is not supported. Where are you trying to run this ? "); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"version":"1.0", | |
"name": "Web Activities", | |
"description": "This app demonstrates how to use Web Activities (Intents) in a Firefox OS App.", | |
"launch_path": "/index.html", | |
"fullscreen": "false", | |
"icons": { | |
"16": "/images/icon_016.png", | |
"32": "/images/icon_032.png", | |
"48": "/images/icon_048.png", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0,user-scalable=0"> | |
<title>Web Activities</title> | |
<link rel="stylesheet" href="jquery.mobile-1.3.1.min.css" /> | |
<script src="jquery-1.7.1.min.js"></script> | |
<script src="jquery.mobile-1.3.1.min.js"></script> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(document).ready(function(){ | |
//Shown below are just a few Intents (Web Activities) | |
//Check out https://developer.mozilla.org/en-US/docs/WebAPI/Web_Activities#Firefox_OS_activities | |
$("#btnCall").click(function(){ | |
var call = new MozActivity({ | |
name: "dial", | |
data: { | |
number: "+1231231231" | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"version":"1.0", | |
"name": "Device Storage", | |
"description": "This app demonstrates how to use Device Storage", | |
"launch_path": "/index.html", | |
"fullscreen": "false", | |
"icons": { | |
"16": "/images/icon_016.png", | |
"32": "/images/icon_032.png", | |
"48": "/images/icon_048.png", |