From 0b854ecccfe7832ba9a837605822a103fd9d8bc0 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Wed, 21 Jun 2017 00:50:15 +0200 Subject: clearing out old code --- public/assets/js/lib/view/PaintingView.js | 36 ------------------------------- 1 file changed, 36 deletions(-) delete mode 100644 public/assets/js/lib/view/PaintingView.js (limited to 'public/assets/js/lib/view/PaintingView.js') diff --git a/public/assets/js/lib/view/PaintingView.js b/public/assets/js/lib/view/PaintingView.js deleted file mode 100644 index 5c4f3bd..0000000 --- a/public/assets/js/lib/view/PaintingView.js +++ /dev/null @@ -1,36 +0,0 @@ -var PaintingView = View.extend({ - - el: "body", - - // 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(){ - this.render(this.data) - document.body.className = "painting" - }, - - hide: function(){ - // document.body.className = "about" - }, - - load: function(id){ - var index = this.data.paintings.map(function(p){ return p.id }).indexOf(id) - if (index) { - $.fn.fullpage.moveTo(index+1) - } - }, - -}) -- cgit v1.2.3-70-g09d2