Polygons.CLOUD

Usage

Multiple (JavaScript or CSS) files can be called separetad by comma, e.g.: api.js?javascript=foo-1.0.js,bar-1.0.js. If you want to get always the latest code, simple use name without version number, e.g.: api.js?javascript=foo.js,bar.js. Code will be added as you ordered it in the parameter list.

CSS

Bootstrap

3.3.7
Usage
<link rel="stylesheet" type="text/css" href="https://www.polygons.cloud/api.css?css=bootstrap-3.3.7.min.css,bootstrap-theme-3.3.7.min.css">

JavaScript

Bootstrap

<script src="https://www.polygons.cloud/api.js?javascript=bootstrap-3.3.7.min.js,ie10-viewport-bug-workaround.js"></script>

Google Analytics

Change [UA-12345678-9] to your code.


<script src="https://www.polygons.cloud/api.js?javascript=google-analytics.min.js"></script>
<script>
// Google Analytics
ga('create', '[UA-12345678-9]', 'auto');
ga('send', 'pageview');
</script>

Facebook Pixel

en_US 2.0
Code
!function(f,b,e,v,n,t,s){if(f.fbq)return;n=f.fbq=function(){n.callMethod?
n.callMethod.apply(n,arguments):n.queue.push(arguments)};if(!f._fbq)f._fbq=n;
n.push=n;n.loaded=!0;n.version='2.0';n.queue=[];t=b.createElement(e);t.async=!0;
t.src=v;s=b.getElementsByTagName(e)[0];s.parentNode.insertBefore(t,s)}(window,
document,'script','https://connect.facebook.net/en_US/fbevents.js');
Usage

Of course, you have to change [PIXELID] to your own Facebook Pixel ID. More info on: https://www.facebook.com/ads/manager/pixel/facebook_pixel/


<script src="https://www.polygons.cloud/api.js?javascript=facebook-pixel-en_US-2.0.js"></script>
<script>
// Facebook Pixel
fbq('init', '[PIXELID]');
fbq('track', 'PageView');
</script>
<noscript><img height="1" width="1" style="display:none" src="https://www.facebook.com/tr?id=[PIXELID]&ev=PageView&noscript=1"/></noscript>

jQuery

<script src="https://www.polygons.cloud/api.js?javascript=jquery-3.2.1.min.js"></script>

MailerLite

Code:
(function(m,a,i,l,e,r){ m['MailerLiteObject']=e;function f(){
var c={ a:arguments,q:[]};var r=this.push(c);return "number"!=typeof r?r:f.bind(c.q);}
f.q=f.q||[];m[e]=m[e]||f.bind(f.q);m[e].q=m[e].q||f.q;r=a.createElement(i);
var _=a.getElementsByTagName(i)[0];r.async=1;r.src=l+'?'+(~~(new Date().getTime()/10000000));
_.parentNode.insertBefore(r,_);})(window, document, 'script', 'https://static.mailerlite.com/js/universal.js', 'ml');
Usage:

Of course, you have to change [SMARTLOOKID] to your own Smartlook ID.


<script src="https://www.polygons.cloud/api.js?javascript=smartlook.js"></script>
<script type="text/javascript">
smartlook('init', '[SMARTLOOKID]');
</script>

Smartlook

Code:
// Smartlook script
window.smartlook||(function(d) {
var o=smartlook=function(){ o.api.push(arguments)},h=d.getElementsByTagName('head')[0];
var c=d.createElement('script');o.api=new Array();c.async=true;c.type='text/javascript';
c.charset='utf-8';c.src='//rec.smartlook.com/recorder.js';h.appendChild(c);
})(document);
Usage:

Of course, you have to change [MAILERLITEID] and [MAILERLITEHASH] to your own Smartlook ID.


<script src="https://www.polygons.cloud/api.js?javascript=mailerlite-popup.js"></script>
<script type="text/javascript">
var ml_account = ml('accounts', '[MAILERLITEID]', '[MAILERLITEHASH]', 'load');
</script>