Line 49: | Line 49: | ||
$(".pop_why").click(function() { //IF A POP WHY IS CLICKED | $(".pop_why").click(function() { //IF A POP WHY IS CLICKED | ||
− | + | ||
− | + | ||
which_why = "https://2016.igem.org/HQ:Why"+" " + "#" +which_why; | which_why = "https://2016.igem.org/HQ:Why"+" " + "#" +which_why; | ||
Line 74: | Line 73: | ||
$(".pop_why_cover").show(); | $(".pop_why_cover").show(); | ||
− | + | var z = $(this).offset().top; | |
+ | z= z- $(".pop_why_box").height(); | ||
Revision as of 15:08, 15 December 2015