96
|
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','https://www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-329148-88', {'allowLinker': true});
ga('set', 'hostname', '.campaign-archive.com');
ga('send', 'pageview');
$(document).ready(function() {
document.getElementById("copyToClipboard").addEventListener("click", function () {
var input = document.getElementById("clipboardSource");
input.select();
var successful = document.execCommand("copy");
if (successful) {
alert('Copied "' + input.value + '" to your clipboard.');
} else {
throw new Error("Failed to copy text (verify caller was in the context of an event handler)");
}
});
$('li.more > a').click(function(){
var toToggle = $($(this).attr('data-to-toggle'));
if(toToggle.is(':visible')){
toToggle.slideUp('fast');
$(this).removeClass('is-active');
if ($('#awesomebar').find('.is-active').length < 1){
$('#awesomebar').removeClass('sub-active');
}
} else {
toToggle.slideDown('fast');
$(this).addClass('is-active');
$('#awesomebar').addClass('sub-active');
}
return false;
});
});