Skip to content

Instantly share code, notes, and snippets.

@ha7ilm
Last active August 29, 2015 14:10
Show Gist options
  • Save ha7ilm/15c4c5e4c80cef9b3144 to your computer and use it in GitHub Desktop.
Save ha7ilm/15c4c5e4c80cef9b3144 to your computer and use it in GitHub Desktop.
photo_title="""
<div id="tlkio"
data-channel="openwebrx"
style="background-color: white; position:absolute; padding-top: 10px; opacity: 0.95;">
</div>
<script async src="http://tlk.io/embed.js" type="text/javascript"></script>
<script>
tlk_original_height=0;
function resize_tlk()
{
e("tlkio").style.left="-15px";
e("tlkio").style.width=document.body.clientWidth.toString()+"px";
e("tlkio").style.top="-10px";
new_height=e("webrx-top-photo-clip").clientHeight-50;
if(new_height<100) new_height=tlk_original_height;
e("tlkio").style.height=new_height.toString()+"px";
e("tlkio").style.paddingBottom="15px";
if(tlk_original_height==0) tlk_original_height=e("webrx-top-photo-clip").clientHeight-50;
}
window.addEventListener("resize",resize_tlk);
window.addEventListener("load",resize_tlk);
</script>
"""
photo_desc=""
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment