Cas9 & Cpf1 secretion
and activity
Line 3,134: | Line 3,134: | ||
line.style.left = offset.left + "px"; | line.style.left = offset.left + "px"; | ||
line.style.width = width + "px"; | line.style.width = width + "px"; | ||
+ | } | ||
+ | |||
+ | function dx_hide_widgets(same_page) | ||
+ | { | ||
+ | if($$("body")[0].getAttribute("data-page") == "home") | ||
+ | { | ||
+ | for(var i = 1; i <= 4; i++) | ||
+ | { | ||
+ | if(same_page) | ||
+ | { | ||
+ | for(var i = 1; i <= 4; i++) | ||
+ | { | ||
+ | jQuery("#popover-" + i).dxPopover("hide"); | ||
+ | |||
+ | if(i == 1) | ||
+ | { | ||
+ | jQuery("#link-" + i).addClass("selected"); | ||
+ | jQuery("#link-" + i).addClass("pulsing"); | ||
+ | jQuery("#figure-" + i).fadeIn("5"); | ||
+ | } | ||
+ | else | ||
+ | { | ||
+ | jQuery("#link-" + i).removeClass("selected"); | ||
+ | jQuery("#figure-" + i).fadeOut("5"); | ||
+ | } | ||
+ | } | ||
+ | } | ||
+ | else | ||
+ | { | ||
+ | jQuery("#popover-" + i).dxPopover({ | ||
+ | animation: { show: { type: 'fade', from: 0, to: 1, duration: 0 }, hide: { type: 'fade', to: 0, duration: 0 } } | ||
+ | }).dxPopover("hide"); | ||
+ | } | ||
+ | } | ||
+ | } | ||
+ | |||
+ | if($$(".ref").length > 0) | ||
+ | { | ||
+ | $$(".ref").each(function(v, k) | ||
+ | { | ||
+ | jQuery("#tooltip-" + v.innerHTML).dxTooltip("hide"); | ||
+ | }); | ||
+ | } | ||
} | } | ||
Line 3,162: | Line 3,205: | ||
} | } | ||
− | + | dx_hide_widgets(); | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
// scroll to top | // scroll to top | ||
Line 3,305: | Line 3,340: | ||
{ | { | ||
if(this.getAttribute("data-key") != "home") | if(this.getAttribute("data-key") != "home") | ||
+ | { | ||
document.body.addClassName("sections_active"); | document.body.addClassName("sections_active"); | ||
+ | |||
+ | dx_hide_widgets(1); | ||
+ | } | ||
this.addClassName("active"); | this.addClassName("active"); |
Revision as of 18:30, 31 October 2017
<!DOCTYPE html>
×