summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJules Laplace <jules@okfoc.us>2016-03-28 19:43:55 -0400
committerJules Laplace <jules@okfoc.us>2016-03-28 19:43:55 -0400
commit6138260cdbebe40bd078643ce7a20416a5ac0ece (patch)
tree2de447db9c82654442bdfbd8b0ad6714233a27af
parent1e0b1107fe9f95935cce4a7255d752cd75680643 (diff)
merge
-rw-r--r--public/assets/js/app.js12
-rw-r--r--public/assets/js/lib/GalleryView.js1
-rw-r--r--public/assets/js/lib/MenuView.js16
-rw-r--r--public/assets/js/lib/ProjectView.js1
-rw-r--r--public/assets/ok.css3
-rw-r--r--templates/index.liquid31
6 files changed, 42 insertions, 22 deletions
diff --git a/public/assets/js/app.js b/public/assets/js/app.js
index a58854c..d4c2b03 100644
--- a/public/assets/js/app.js
+++ b/public/assets/js/app.js
@@ -50,12 +50,12 @@ $('.top').flickity({
pageDots: false,
wrapAround: true,
arrowShape: {
- x0: 10,
- x1: 35, y1: 25,
- x2: 40, y2: 25,
- x3: 15
+ x0: 10,
+ x1: 35, y1: 25,
+ x2: 40, y2: 25,
+ x3: 15
}
-});
+})
$('.index').click( function(){
$('body').toggleClass('navopen');
@@ -82,4 +82,4 @@ $(window).resize(function() {
$('.top').flickity('resize');
$('body').removeClass('resizing');
}, 400);
-}); \ No newline at end of file
+}) \ No newline at end of file
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 ()
},
})
diff --git a/public/assets/ok.css b/public/assets/ok.css
index f633fdf..1a9d973 100644
--- a/public/assets/ok.css
+++ b/public/assets/ok.css
@@ -170,6 +170,9 @@ nav span div:last-child {
margin-top: 20px;
}
+nav b {
+ font-weight: normal;
+}
/* Flickity */
diff --git a/templates/index.liquid b/templates/index.liquid
index 348d931..88ca8ea 100644
--- a/templates/index.liquid
+++ b/templates/index.liquid
@@ -5,7 +5,6 @@
<title>OKFocus</title>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
- <script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no" />
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta name="apple-mobile-web-app-capable" content="yes">
@@ -42,23 +41,23 @@
<nav>
<span>
<div class="index">
- <svg version="1.1" id="burger" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
- viewBox="0 0 57.4 53" style="enable-background:new 0 0 57.4 53;" xml:space="preserve">
-<g>
- <g>
- <rect width="57.4" height="13"/>
- </g>
- <g>
- <rect y="20" width="57.4" height="13"/>
- </g>
- <g>
- <rect y="40" width="57.4" height="13"/>
- </g>
-</g>
- </svg>
+ <svg version="1.1" id="burger" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
+ viewBox="0 0 57.4 53" style="enable-background:new 0 0 57.4 53;" xml:space="preserve">
+ <g>
+ <g>
+ <rect width="57.4" height="13"/>
+ </g>
+ <g>
+ <rect y="20" width="57.4" height="13"/>
+ </g>
+ <g>
+ <rect y="40" width="57.4" height="13"/>
+ </g>
+ </g>
+ </svg>
</div>
<div>OKFocus LLC. - Portfolio • 2016</div>
- <div>SLIDE.1 • PG.1</div>
+ <div>SLIDE.<b class="slide-no">1</b> • PG.<b class="page-no">1</b></div>
</span>
</nav>
{% for project in projects %}