aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThedro Neely <thedroneely@gmail.com>2019-05-17 05:27:47 -0400
committerThedro Neely <thedroneely@gmail.com>2019-05-17 05:28:31 -0400
commit7bd205c61c5d6359e82e3d031c55abe8934a76e4 (patch)
tree5143ed7d191720df66a5e4ae426a2534e6d87f0b
parentc4f9cf22113bfab1d29017b0ff4cc069f9be21f5 (diff)
downloadthedroneely.com-7bd205c61c5d6359e82e3d031c55abe8934a76e4.tar.gz
thedroneely.com-7bd205c61c5d6359e82e3d031c55abe8934a76e4.tar.bz2
thedroneely.com-7bd205c61c5d6359e82e3d031c55abe8934a76e4.zip
public/js/app: Use data attribute
-rw-r--r--app/views/index.view.php2
-rw-r--r--public/js/app.js2
2 files changed, 2 insertions, 2 deletions
diff --git a/app/views/index.view.php b/app/views/index.view.php
index 37d2d61..cd28804 100644
--- a/app/views/index.view.php
+++ b/app/views/index.view.php
@@ -23,7 +23,7 @@
In it for the long haul
</h2>
- <img image-zoom alt="Mountains" src="/images/mountains.jpg"
+ <img data-image-zoom alt="Mountains" src="/images/mountains.jpg"
width="<?php echo getimagesize(
$_SERVER['DOCUMENT_ROOT'] . '/images/mountains.jpg'
)[0]; ?>"
diff --git a/public/js/app.js b/public/js/app.js
index a09680d..a96c168 100644
--- a/public/js/app.js
+++ b/public/js/app.js
@@ -593,6 +593,6 @@ window.onscroll = function() {
/**
* Activate Medium Zoom
*/
-imageZoom = mediumZoom('[image-zoom]');
+imageZoom = mediumZoom('[data-image-zoom]');
imageZoom.on('open', function(event) { addClass(navbar, 'navbar__headroom'); });
imageZoom.on('close', function(event) { if (window.pageYOffset < navbarHeight) { remClass(navbar, 'navbar__headroom'); }; });