KaiserEMP
7/9/2019 - 1:05 PM

Fancy debuging colors

var allImageLinks = $('a[href$=".jpg"]:not(.no-fancy),a[href$=".jpeg"]:not(.no-fancy),a[href$=".png"]:not(.no-fancy), .fancylink');
function initFancy(){

  allImageLinks.fancybox({
  
  });
}
initFancy();


var colorR = Math.floor((Math.random() * 256));
var colorG = Math.floor((Math.random() * 256));
var colorB = Math.floor((Math.random() * 256));
$('.container').css("background-color", "rgb(" + colorR + "," + colorG + "," + colorB + ")");

$(document).on('click', allImageLinks ,function(e){

e.preventDefault;
/* Init fancybox */

console.log(allImageLinks);

});

console.log('Im ready');