mirror of
https://github.com/flancian/garden.git
synced 2026-08-07 23:16:21 +00:00
Work around etherpad focus grabbing.
This commit is contained in:
@@ -41,8 +41,15 @@ document.addEventListener("DOMContentLoaded", function() {
|
|||||||
localStorage.setItem("theme", "light");
|
localStorage.setItem("theme", "light");
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
// this doesn't really work to prevent focus grabbing by etherpad.
|
|
||||||
document.getElementById("mini-cli").focus();
|
// icky but I'm not above this.
|
||||||
|
// this is to work around etherpad grabbing focus.
|
||||||
|
var element = document.getElementById("mini-cli");
|
||||||
|
setTimeout( function() { element.focus() }, 1000 );
|
||||||
|
setTimeout( function() { element.focus() }, 2000 );
|
||||||
|
setTimeout( function() { element.focus() }, 3000 );
|
||||||
|
setTimeout( function() { element.focus() }, 4000 );
|
||||||
|
setTimeout( function() { element.focus() }, 5000 );
|
||||||
});
|
});
|
||||||
|
|
||||||
function processSettings(args){
|
function processSettings(args){
|
||||||
|
|||||||
@@ -18,7 +18,7 @@
|
|||||||
<span class="stoa-header">Stoa for [[{{node.uri}}]] ↓</span><br />
|
<span class="stoa-header">Stoa for [[{{node.uri}}]] ↓</span><br />
|
||||||
<div class="stoa-public">
|
<div class="stoa-public">
|
||||||
<span class="subnode-header">from <a href="https://stoa.anagora.org/p/{{node.uri}}">stoa.anagora.org/p/{{node.uri}}</a></span><br />
|
<span class="subnode-header">from <a href="https://stoa.anagora.org/p/{{node.uri}}">stoa.anagora.org/p/{{node.uri}}</a></span><br />
|
||||||
<iframe name="embed_readwrite" src="https://stoa.anagora.org/p/{{node.uri}}?showControls=true&showChat=true&showLineNumbers=true&useMonospaceFont=false" width="100%" height="600" frameborder="0"></iframe>
|
<iframe name="embed_readwrite" src="https://stoa.anagora.org/p/{{node.uri}}?showControls=true&showChat=true&showLineNumbers=true&useMonospaceFont=false" width="100%" height="800" frameborder="0"></iframe>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user