Skip to content

Instantly share code, notes, and snippets.

@phw
Last active December 9, 2015 22:08
Show Gist options
  • Save phw/4335048 to your computer and use it in GitHub Desktop.
Save phw/4335048 to your computer and use it in GitHub Desktop.
TEXTKING Widget Code
<!-- This is the container for the TEXTKING Widget. Include it wherever you want to place the widget. -->
<div class="tk-widget tk-skin-default" lang="de"
data-affiliate="00000000-0000-0000-0000-000000000000"
data-default-topic="8576549a-097f-45b3-8c59-fb3d6a03147d"
data-source-lang="jp"
data-target-lang="es">
<a href="https://www.textking.com" class="tk-logo">
<img src="https://www.textking.com/content/widgets/skins/default/splash.png" alt="TEXTKING" />
</a>
</div>
<!-- Place the following snippet after the widget container near the end of the
<body> section of your HTML file. -->
<script type="text/javascript">
(function() {
var tk = document.createElement('script'); tk.type = 'text/javascript'; tk.async = true;
tk.src = ('https:' == document.location.protocol ? 'https' : 'http') + '://www.textking.com/content/widgets/calculator.min.js';
var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(tk, s);
})();
</script>
@phw
Copy link
Author

phw commented Jun 29, 2015

See the example page for a live demo.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment