Last active
April 19, 2017 00:36
-
-
Save tomcritchlow/493774b09b02e31d1184d7cda926c659 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script> | |
function OpenInNewTab() { | |
var screenwidth = screen.width-500; | |
window.open("http://m.me/fiercelycurious", '_blank',"width=500,height=800,left="+screenwidth); | |
} | |
</script> | |
<a href="http://m.me/fiercelycurious" target="_blank" onclick="OpenInNewTab();"> <!-- m.me/facebookpage works for any facebook page --> | |
<div class="fbmessenger"> | |
<img src="https://lh5.ggpht.com/0VYAvZLR9YhosF-thqm8xl8EWsCfrEY_uk2og2f59K8IOx5TfPsXjFVwxaHVnUbuEjc=w300" /> <!-- I host the file directly but I'm hotlinking from the Google Play store here for the png file --> | |
<span class="tooltiptext mobilehidden">Message Us</span> | |
</div> | |
</a> |
Awesome and simples solution. Thanks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
For more context, see here: http://tomcritchlow.com/2016/05/10/facebook-livechat/