summaryrefslogtreecommitdiff
path: root/new-reality/public/assets/js/lib/view
diff options
context:
space:
mode:
Diffstat (limited to 'new-reality/public/assets/js/lib/view')
-rw-r--r--new-reality/public/assets/js/lib/view/AboutView.js28
-rw-r--r--new-reality/public/assets/js/lib/view/HomeView.js28
2 files changed, 56 insertions, 0 deletions
diff --git a/new-reality/public/assets/js/lib/view/AboutView.js b/new-reality/public/assets/js/lib/view/AboutView.js
new file mode 100644
index 0000000..c2daf70
--- /dev/null
+++ b/new-reality/public/assets/js/lib/view/AboutView.js
@@ -0,0 +1,28 @@
+var AboutView = View.extend({
+
+ el: "#about",
+
+ // template: liquid($('#tmpl-about').html()),
+
+ events: {
+ },
+
+ initialize: function(options){
+ options = options || {}
+ var data = this.data = options.data
+ },
+
+ render: function(){
+ if (this.rendered) return
+ this.rendered = true
+ },
+
+ show: function(){
+ document.body.className = "about"
+ this.render(this.data)
+ },
+
+ hide: function(){
+ },
+
+})
diff --git a/new-reality/public/assets/js/lib/view/HomeView.js b/new-reality/public/assets/js/lib/view/HomeView.js
new file mode 100644
index 0000000..b2ceec1
--- /dev/null
+++ b/new-reality/public/assets/js/lib/view/HomeView.js
@@ -0,0 +1,28 @@
+var HomeView = View.extend({
+
+ el: "#home",
+
+ // template: liquid($('#tmpl-home').html()),
+
+ events: {
+ },
+
+ initialize: function(options){
+ options = options || {}
+ var data = this.data = options.data
+ },
+
+ render: function(){
+ if (this.rendered) return
+ this.rendered = true
+ },
+
+ show: function(){
+ document.body.className = "home"
+ this.render(this.data)
+ },
+
+ hide: function(){
+ },
+
+})