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