diff options
Diffstat (limited to 'public/assets/js/lib')
| -rw-r--r-- | public/assets/js/lib/GalleryView.js | 1 | ||||
| -rw-r--r-- | public/assets/js/lib/MenuView.js | 16 | ||||
| -rw-r--r-- | public/assets/js/lib/ProjectView.js | 1 |
3 files changed, 18 insertions, 0 deletions
diff --git a/public/assets/js/lib/GalleryView.js b/public/assets/js/lib/GalleryView.js index da0f580..1d8cdc2 100644 --- a/public/assets/js/lib/GalleryView.js +++ b/public/assets/js/lib/GalleryView.js @@ -86,6 +86,7 @@ var GalleryView = View.extend({ gallery.on("cellSelect", function(){ if (! gallery.selectedElement) return // $caption.html( $(gallery.selectedElement).data("caption") ) + console.log(gallery.selectedElement) try { this.videos.forEach(function(player){ player.api('pause') diff --git a/public/assets/js/lib/MenuView.js b/public/assets/js/lib/MenuView.js new file mode 100644 index 0000000..9576757 --- /dev/null +++ b/public/assets/js/lib/MenuView.js @@ -0,0 +1,16 @@ +var MenuView = View.extend({ + + el: ".menu", + + events: { + "click li": "click", + }, + + initialize: function(){ + }, + + click: function(e){ + var id = $(e.target).data("id") + // navigate to page + }, +})
\ No newline at end of file diff --git a/public/assets/js/lib/ProjectView.js b/public/assets/js/lib/ProjectView.js index d5ac1c3..ef03094 100644 --- a/public/assets/js/lib/ProjectView.js +++ b/public/assets/js/lib/ProjectView.js @@ -4,6 +4,7 @@ var ProjectView = View.extend({ }, initialize: function(opt){ + this.gallery = new GalleryView () }, }) |
