Update '12/index.html'

master
Max Lehmann 5 years ago
parent 1690bfad0e
commit 464d6cdc5a

@ -281,13 +281,13 @@ $("#etherpad_drag").draggable({handle: '#etherpad_drag_header'});
document.querySelector("#shell_03").classList.remove("hidden"); document.querySelector("#shell_03").classList.remove("hidden");
}); });
var iframe_loaded=false; var iframe_loaded=false;
document.querySelector("#implicancies_05 .etherpad_iframe").addEventListener("load",function(){ document.querySelector("#etherpad_drag .etherpad_iframe").addEventListener("load",function(){
iframe_loaded=true; iframe_loaded=true;
}); });
document.querySelector("#implicancies_05 .etherpadlink").addEventListener("click",function(e){ document.querySelector("#etherpad_drag .etherpadlink").addEventListener("click",function(e){
console.log("click", e); console.log("click", e);
document.querySelector("#implicancies_05 .etherpad_iframe").classList.toggle("hidden"); document.querySelector("#etherpad_drag .etherpad_iframe").classList.toggle("hidden");
if(iframe_loaded){ if(iframe_loaded){
console.log("preventDefault") console.log("preventDefault")
e.preventDefault() e.preventDefault()

Loading…
Cancel
Save