From 64ba9bb67088370ad4dc392374eddd08a7c1d3d9 Mon Sep 17 00:00:00 2001 From: Edin Dazdarevic Date: Wed, 27 May 2015 18:51:07 +0200 Subject: [PATCH] initial commit --- .gitignore | 1 + confighub.css | 1 + confighub.html | 21 +++++++++++++++++++++ confighub.js | 23 +++++++++++++++++++++++ 4 files changed, 46 insertions(+) create mode 100644 .gitignore create mode 100644 confighub.css create mode 100644 confighub.html create mode 100644 confighub.js diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..8a628b6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.meteor/local diff --git a/confighub.css b/confighub.css new file mode 100644 index 0000000..b6b4052 --- /dev/null +++ b/confighub.css @@ -0,0 +1 @@ +/* CSS declarations go here */ diff --git a/confighub.html b/confighub.html new file mode 100644 index 0000000..021bb75 --- /dev/null +++ b/confighub.html @@ -0,0 +1,21 @@ + + confighub + + + +
+
+

Welcome to confighub.io

+
+ Here goes list of machines +
+
+
+ + + + + diff --git a/confighub.js b/confighub.js new file mode 100644 index 0000000..4f8c65d --- /dev/null +++ b/confighub.js @@ -0,0 +1,23 @@ +if (Meteor.isClient) { + // counter starts at 0 + Session.setDefault('counter', 0); + + Template.hello.helpers({ + counter: function () { + return Session.get('counter'); + } + }); + + Template.hello.events({ + 'click button': function () { + // increment the counter when button is clicked + Session.set('counter', Session.get('counter') + 1); + } + }); +} + +if (Meteor.isServer) { + Meteor.startup(function () { + // code to run on server at startup + }); +}