Sha256: b99f4a86c8856fba71745c343335087265a5634285159bcd2290c2efd6a8c5c1
Contents?: true
Size: 1.95 KB
Versions: 1
Compression:
Stored size: 1.95 KB
Contents
<script type="text/javascript"> // Fill in your MailChimp popup settings below. // These can be found in the original popup script from MailChimp. var mailchimpConfig = { baseUrl: 'mc.us3.list-manage.com', uuid: '14baaae786342d0d405ee59c2', lid: '{{site.data.settings.mailchimp.id}}' }; function defer(method) { if (window.jQuery) { method(); } else { setTimeout(function() { defer(method) }, 50); } } function showMailingPopUp() { document.cookie = "MCPopupClosed=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/"; document.cookie = "MCPopupSubscribed=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/"; }; defer(function () { $("#open-newsletter-popup").on('click', function() { showMailingPopUp(); }); $(document).ready(function(){ var mailchimpConfig = { baseUrl: 'mc.us3.list-manage.com', uuid: '14baaae786342d0d405ee59c2', lid: '{{site.data.settings.mailchimp.id}}' }; // No edits below this line are required var chimpPopupLoader = document.createElement("script"); chimpPopupLoader.src = '//s3.amazonaws.com/downloads.mailchimp.com/js/signup-forms/popup/embed.js'; chimpPopupLoader.setAttribute('data-dojo-config', 'usePlainJson: true, isDebug: false'); var chimpPopup = document.createElement("script"); chimpPopup.appendChild(document.createTextNode('require(["mojo/signup-forms/Loader"], function (L) { L.start({"baseUrl": "' + mailchimpConfig.baseUrl + '", "uuid": "' + mailchimpConfig.uuid + '", "lid": "' + mailchimpConfig.lid + '"})});')); document.body.appendChild(chimpPopupLoader); $(window).on('load', function() { document.body.appendChild(chimpPopup); }); }); }); </script>
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
jumbo-jekyll-theme-1.6.3 | _includes/newsletter-script.html |