Skip to content
This repository has been archived by the owner on Jul 23, 2024. It is now read-only.

Commit

Permalink
drastically simplify the template by removing volo, require, and only…
Browse files Browse the repository at this point in the history
… keeping basic html/js/css
  • Loading branch information
jlongster committed Mar 7, 2013
1 parent f7963a1 commit 9bef54f
Show file tree
Hide file tree
Showing 400 changed files with 67 additions and 88,544 deletions.
10 changes: 0 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,4 @@ template collection for building Open Web Apps.

# Usage

There are a few ways to get this template:

* git clone git://github.com/mozilla/mortar-app-stub.git myapp
* volo create myapp mozilla/mortar-app-stub

If you have node installed, you can run a development server with volo:

1. cd myapp
2. volo serve

View the app at http://localhost:8008/.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
35 changes: 35 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">

<title></title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width">

<!-- Place favicon.ico in the root directory -->

<link rel="stylesheet" href="css/app.css">
</head>
<body>

<p>
Welcome to your awesome web app. This was created from the
<a href="https://github.com/mozilla/mortar-app-stub">mortar-app-stub</a>
template, one of the
<a href="https://github.com/mozilla/mortar">mortar templates</a>.
</p>

<button id="install-btn">Install</button>

<!-- zepto is a library like jQuery but smaller
http://zeptojs.com/ -->
<script type="text/javascript" src="js/lib/zepto.min.js"></script>

<!-- use this library to verify receipts
https://github.com/mozilla/receiptverifier -->
<!-- <script type="text/javascript" src="js/lib/receiptverifier.js"></script> -->

<script type="text/javascript" src="js/app.js"></script>
</body>
</html>
30 changes: 30 additions & 0 deletions js/app.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@

// Wait until the DOM is ready
$(function() {

// Write your app here



});


if(navigator.mozApps) {
// If you want an installation button, add this to your HTML:
//
// <button id="install">Install</button>
//
// This code shows the button if the apps platform is available
// and this isn't already installed.

$('#install-btn').hide().click(function() {
navigator.mozApps.install(location.href + 'manifest.webapp');
});

var req = navigator.mozApps.getSelf();
req.onsuccess = function() {
if(!req.result) {
$('#install-btn').show();
}
};
}
File renamed without changes.
2 changes: 2 additions & 0 deletions js/lib/zepto.min.js

Large diffs are not rendered by default.

File renamed without changes.
12 changes: 0 additions & 12 deletions node_modules/connect/.npmignore

This file was deleted.

24 changes: 0 additions & 24 deletions node_modules/connect/LICENSE

This file was deleted.

4 changes: 0 additions & 4 deletions node_modules/connect/index.js

This file was deleted.

81 changes: 0 additions & 81 deletions node_modules/connect/lib/cache.js

This file was deleted.

93 changes: 0 additions & 93 deletions node_modules/connect/lib/connect.js

This file was deleted.

50 changes: 0 additions & 50 deletions node_modules/connect/lib/index.js

This file was deleted.

Loading

0 comments on commit 9bef54f

Please sign in to comment.