Skip to content

Commit

Permalink
Adding MPL 2.0 License.
Browse files Browse the repository at this point in the history
  • Loading branch information
simonwex committed Jan 26, 2012
1 parent 71b6c94 commit 58d89a3
Show file tree
Hide file tree
Showing 14 changed files with 266 additions and 8 deletions.
205 changes: 205 additions & 0 deletions LICENSE.html

Large diffs are not rendered by default.

7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,3 +24,10 @@ Data Keys
---------

global:last_bundle_id - Used to keep track of total docs in the system in order to get the next short url


### License

This Source Code Form is subject to the terms of the Mozilla Public
License, v. 2.0. If a copy of the MPL was not distributed with this file,
You can obtain one at [http://mozilla.org/MPL/2.0/](http://mozilla.org/MPL/2.0/).
4 changes: 4 additions & 0 deletions app.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
#!/usr/local/bin/node

/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
* You can obtain one at http://mozilla.org/MPL/2.0/. */

// Module dependencies.
var express = require('express');
var whiskers = require('whiskers');
Expand Down
4 changes: 4 additions & 0 deletions http/controllers/bundles.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
* You can obtain one at http://mozilla.org/MPL/2.0/. */

var redis = require('redis').createClient();
var etherpad = require('etherpad-lite-client').connect({
apikey: 'jZZMcZVwJKJS5jRJALhqATeOAgY2SV0a',
Expand Down
3 changes: 3 additions & 0 deletions http/controllers/site.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
* You can obtain one at http://mozilla.org/MPL/2.0/. */

/*
* GET home page.
Expand Down
4 changes: 4 additions & 0 deletions http/public/javascripts/collaborate.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
* You can obtain one at http://mozilla.org/MPL/2.0/. */

$(function(){
var resizeHandler = function(){
$("#etherpad").height($(window).height() - 180);
Expand Down
5 changes: 5 additions & 0 deletions http/public/javascripts/towtruck.js

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions http/public/stylesheets/bookmarklet.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
* You can obtain one at http://mozilla.org/MPL/2.0/. */

#towtruck_top_bar_wrapper{
width: 100%;
position: fixed;
Expand Down
10 changes: 7 additions & 3 deletions http/public/stylesheets/style.css
Original file line number Diff line number Diff line change
@@ -1,16 +1,20 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
* You can obtain one at http://mozilla.org/MPL/2.0/. */

body.collaborate {
padding-top: 60px;
}

body.collaborate chat {
body.collaborate #chat {
height: 100%;
position: absolute;
}
body.collaborate chat form {
body.collaborate #chat form {
position: absolute;
bottom: 0;
}
body.collaborate chat dl {
body.collaborate #chat dl {
overflow-y: auto;
height: 70%;
}
Expand Down
15 changes: 10 additions & 5 deletions http/views/bundles/collaborate.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
<!DOCTYPE html>
<!-- This Source Code Form is subject to the terms of the Mozilla Public
- License, v. 2.0. If a copy of the MPL was not distributed with this file,
- You can obtain one at http://mozilla.org/MPL/2.0/. -->
<html lang="en">
<head>
<meta charset="utf-8">
Expand Down Expand Up @@ -64,19 +67,19 @@ <h3>Get Help by Sharing With a Friend</h3>

<div class="fluid-container sidebar-left">
<div class="fluid-sidebar">
<chat>
<h3 class="nav-label">Chat</h5>
<dialog>
<div id="chat">
<h3 class="nav-label">Chat</h3>
<dl>
<dt>@Simon</dt>
<dd>Hey, what seems to be the problem?</dd>
<dt>@Frank</dt>
<dd>I don't know, but I'm getting an error.</dd>
</dialog>
</dl>
<form>
<input type="text" id="chat_input" class="span3" placeholder="Type something…" />
<button type="submit" class="btn pull-right primary">Go</button>
</form>
</chat>
</div>
</div>
<div class="fluid-content">
<ul id="file_tab_nav" class="nav tabs">
Expand All @@ -86,6 +89,7 @@ <h3 class="nav-label">Chat</h5>
{/for}
</ul>

<!-- frameBorder="0" is not valid HTML5, but it saves us from hacking etherpad -->
<iframe
id="etherpad"
frameBorder="0"
Expand All @@ -103,6 +107,7 @@ <h3 class="nav-label">Chat</h5>
<a href="http://mozillalabs.com/">
<img src="https://mozillalabs.com/wp-content/themes/labs2.0/img/mozilla-logo.png" width="41" height="31" alt="Mozilla Logo">
<strong>Copyright © 2005-2010 Mozilla.</strong>
</a>
</div>
</div>
</footer>
Expand Down
3 changes: 3 additions & 0 deletions http/views/bundles/create.html
Original file line number Diff line number Diff line change
@@ -1 +1,4 @@
<!-- This Source Code Form is subject to the terms of the Mozilla Public
- License, v. 2.0. If a copy of the MPL was not distributed with this file,
- You can obtain one at http://mozilla.org/MPL/2.0/. -->
<a class="TowTruck" href="{url}">{url}</a>
3 changes: 3 additions & 0 deletions http/views/layout.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
<!DOCTYPE html>
<!-- This Source Code Form is subject to the terms of the Mozilla Public
- License, v. 2.0. If a copy of the MPL was not distributed with this file,
- You can obtain one at http://mozilla.org/MPL/2.0/. -->
<html lang="en">
<head>
<meta charset="utf-8">
Expand Down
3 changes: 3 additions & 0 deletions http/views/site/index.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
<!DOCTYPE html>
<!-- This Source Code Form is subject to the terms of the Mozilla Public
- License, v. 2.0. If a copy of the MPL was not distributed with this file,
- You can obtain one at http://mozilla.org/MPL/2.0/. -->
<html lang="en">
<head>
<meta charset="utf-8">
Expand Down
4 changes: 4 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
* You can obtain one at http://mozilla.org/MPL/2.0/. */

{
"name": "TowTruck"
, "version": "0.0.1"
Expand Down

0 comments on commit 58d89a3

Please sign in to comment.