Browse Source

JS: Open .js-img-hover image in a new tab on click

master
Riyyi 2 years ago
parent
commit
20a8afa9ce
  1. 6
      public/js/site.js

6
public/js/site.js

@ -31,6 +31,12 @@ $(document).ready(function() {
$("#img-hover").remove();
});
// Image hover on click
$(".js-img-hover").click(function() {
var url = $(this).data("img-hover");
window.open(url, '_blank');
});
// Lazy load video's
$(window).on('resize scroll', function() {
$('.js-video').each(function(index) {

Loading…
Cancel
Save