Sarah igem (Talk | contribs) |
Sarah igem (Talk | contribs) |
||
(21 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
$(document).ready(function() { | $(document).ready(function() { | ||
$('.discover').click(function() { | $('.discover').click(function() { | ||
Line 38: | Line 4: | ||
$('#maindesc').toggleClass('visible'); | $('#maindesc').toggleClass('visible'); | ||
}); | }); | ||
+ | $("[data-fancybox]").fancybox({ | ||
+ | iframe : { | ||
+ | css : { | ||
+ | width: '860px', | ||
+ | height:'580px' | ||
+ | } | ||
+ | } | ||
+ | }); | ||
+ | |||
+ | |||
}); | }); | ||
Latest revision as of 09:48, 16 October 2018
$(document).ready(function() { $('.discover').click(function() { $('#intro').toggleClass('hidden'); $('#maindesc').toggleClass('visible'); }); $("[data-fancybox]").fancybox({ iframe : { css : { width: '860px', height:'580px' } } });
});
$(window).scroll(function() {
var hT = $('#scroll-to').offset().top,
hH = $('#scroll-to').outerHeight(), wH = $(window).height(), wS = $(this).scrollTop();
if (wS > (hT+hH-wH) && (hT > wS) && (wS+wH > hT+hH)){
$('h1').addClass('view')
} else {
$('h1').removeClass('view')
}
});