commit 3b1ea6c538e52d38ad28a705b270aad7de0f35db
Author: Tyrel Souza
Date: Thu May 15 21:19:12 2014 -0400
initial commit
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..debcde6
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,2 @@
+bower_components/
+.idea/
diff --git a/bower.json b/bower.json
new file mode 100644
index 0000000..bca60a6
--- /dev/null
+++ b/bower.json
@@ -0,0 +1,9 @@
+{
+ "name": "application-name",
+ "version": "0.0.1",
+ "main": "stylesheets/main.css",
+ "dependencies": {
+ "angular": "latest",
+ "jquery": "latest"
+ }
+}
diff --git a/data/playgrounds.json b/data/playgrounds.json
new file mode 100644
index 0000000..ae15ada
--- /dev/null
+++ b/data/playgrounds.json
@@ -0,0 +1,16 @@
+[{
+ "name": "Portsmouth Street Playground",
+ "size": "2.9"
+ },{
+ "name": "Main Street Playground",
+ "size": "0.4"
+ },{
+ "name": "Boston Common Frog Pond",
+ "size": "0.8"
+ },{
+ "name": "The Esplanade",
+ "size": "10.4"
+ },
+ {
+ "name": "SHOULD NOT SHOW"
+ }]
\ No newline at end of file
diff --git a/index.html b/index.html
new file mode 100644
index 0000000..0d4d697
--- /dev/null
+++ b/index.html
@@ -0,0 +1,37 @@
+
+
+
+ HTML5 template
+
+
+
+
+
+
+
+ A Blank HTML5 template
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/javascript/main.js b/javascript/main.js
new file mode 100644
index 0000000..95d649b
--- /dev/null
+++ b/javascript/main.js
@@ -0,0 +1,29 @@
+/**
+* Created by tsouza on 5/15/14.
+*/
+(function(){
+ var app = angular.module("playground", []);
+
+ app.controller("PlaygroundController", function($scope, playgroundService){
+ var self = this;
+ this.playgrounds = {};
+ playgroundService.getPlaygrounds()
+ .then(function(playgrounds){
+ self.playgrounds = playgrounds;
+ });
+ });
+
+ var playgroundService = app.factory("playgroundService", function($http) {
+ return {
+ getPlaygrounds: function () {
+ return $http.get("data/playgrounds.json")
+ .then(function (result) {
+ return result.data;
+ });
+ }
+ }
+ });
+
+
+})();
+
diff --git a/stylesheets/main.css b/stylesheets/main.css
new file mode 100644
index 0000000..36e5e05
--- /dev/null
+++ b/stylesheets/main.css
@@ -0,0 +1,21 @@
+* {
+ margin: 0;
+ padding: 0;
+}
+
+header, menu, content, footer {
+ display: block;
+}
+
+menu ul {
+ list-style-type: none;
+}
+
+menu ul li {
+ float: left;
+ padding: 5px 20px;
+}
+
+content, footer {
+ clear: both;
+}
\ No newline at end of file