Skip to content

Instantly share code, notes, and snippets.

@DKRetzlaff
Created January 16, 2018 23:18
Show Gist options
  • Save DKRetzlaff/19579d6b6ce3c932755b0628b61c9be8 to your computer and use it in GitHub Desktop.
Save DKRetzlaff/19579d6b6ce3c932755b0628b61c9be8 to your computer and use it in GitHub Desktop.
!function(t){var e=function(){var t="base".split(","),e=n();return-1!==t.indexOf(e)?e:"base"},n=function(){for(var t,e="art,biz,blog,br,club,com,etc,far,ind,me,net,online,sexy,store,tk,vc",n=window.location.hostname.split("."),s=n.length,o=s,a=n[n.length-1].length;t=n[--o];)if(e.indexOf(t)<0||t.length<a||s-2>o||0===o)return t;return t},s=function(n){var s=t.document.getElementsByTagName("script")[0],o=t.document.createElement("script");return o.src="//s3-sa-east-1.amazonaws.com/trustvox-colt-js/"+e()+".min.js",o.async=!0,s.parentNode.insertBefore(o,s),n&&"function"==typeof n&&(o.onload=n),o},o=function(){tag=t.document.createElement("link"),tag.type="text/css",tag.rel="stylesheet",tag.href="//s3-sa-east-1.amazonaws.com/trustvox-colt-js/stylesheets/"+e()+".css",t.document.head.appendChild(tag)};t.tvjs=s,t.tvcss=o,t.tvjs(),t.tvcss()}(window);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment