// source --> https://tonyconniff.com/wp-content/plugins/xf-mailchimp-popup/js/xf-script.js?ver=1604389400 (function($){ $(document).ready(function(){ $('a[href="#xf-modal-one"]').on('click', function(){ reset_checks(); var heading = $('.heading-bar').attr('data-heading'); var button = $('.heading-bar').attr('data-button'); $('.heading-bar').html("

"+heading+"

to get notified of upcoming workshops and events

"); $('.xf-sub-btn').val(button); $('#xf-workshops').attr('checked', 'checked'); $('#xf-events').attr('checked', 'checked'); $('.xf-hidden-field').html(''); var blog_label = $('.checkboxes').attr('data-label-blog'); var checkboxes = '
\ \ \
'; $('.checkboxes').html( checkboxes ); $('#xf-modal-one').modal('show'); }); $('a[href="#xf-modal-two"]').on('click', function(){ reset_checks(); var heading = $('.heading-bar').attr('data-heading'); var button = $('.heading-bar').attr('data-button'); $('.heading-bar').html("

Receive Tony's Blogposts in your Inbox

"); $('.xf-sub-btn').val(button); $('#xf-blog').attr('checked', 'checked'); $('.xf-hidden-field').html(''); var workshop_events_label = $('.checkboxes').attr('data-label-workshops-events'); var checkboxes = '
\ \ \
'; $('.checkboxes').html( checkboxes ); $('#xf-modal-one').modal('show'); }); $('a[href="#xf-modal-three"]').on('click', function(){ reset_checks(); $('form[name="xf-subscribe-form"]').addClass('download-ajax'); $('.heading-bar').html("

Download a FREE Ebook

And subscribe to Tony's upcoming workshops and events list.

"); $('.xf-sub-btn').val('Download'); $('#xf-workshops').attr('checked', 'checked'); $('.xf-hidden-field').html(''); var blog_label = $('.checkboxes').attr('data-label-blog'); var checkboxes = '
\ \ \
'; $('.checkboxes').html( checkboxes ); $('#xf-modal-one').modal('show'); }); function reset_checks(){ $('.xf-form-submit').html(''); $('.xf-modal-div').show(); $('#xf-errors').html(''); $('form[name="xf-subscribe-form"]').removeClass('download-ajax'); $('#xf-workshops').attr('checked', false); $('#xf-blog').attr('checked', false); $('#xf-events').attr('checked', false); $('input[name="xf-subscribe-email"]').val(''); $('input[name="xf-subscribe-name"]').val(''); } $('body').on('submit', '.download-ajax', function(e){ e.preventDefault(); //add loader $('.xf-form-submit').html('
'); var formdata = $(this).serialize(); $.ajax({ type: 'POST', url: XF.ajax_url, data: { action: 'xf_download_req', formdata: formdata, xfsecurity: XF.nonce }, success: function(response){ $('.xf-form-submit').html(''); var result = $.parseJSON( response ); if( result.errors ){ var error_html = ''; $(result.errors).each(function(k,v){ error_html += ''+v+''; }); $('#xf-errors').html( error_html ); setTimeout(function(){ $('#xf-errors').html(''); },3000); }else{ var link = 'Download Free Ebook Now'; $('.xf-modal-div').hide(); $('#xf-errors').html( '
'+link+'
' ); } console.log( response ); } }) }); $('body').on('click', 'input[name="xf-subscribed"]', function(){ $('form[name="xf-subscribe-form"]').submit(); $('.xf-form-submit').html('
'); }); $('#primary-sidebar #searchform input[type="text"]').attr('placeholder', 'Search blogposts...'); $('#primary-sidebar #searchform').append(''); setTimeout(function(){ $('#primary-sidebar #searchform input[type="text"]').attr('placeholder', 'Search blogposts...'); }, 500); setTimeout(function(){ $('#primary-sidebar #searchform input[type="text"]').attr('placeholder', 'Search blogposts...'); }, 1000); }); })(jQuery); // source --> https://tonyconniff.com/wp-content/plugins/payhip-sell-ebooks/public/assets/js/public.js?ver=1.0.0 (function ( $ ) { "use strict"; $(function () { }); }(jQuery)); // source --> https://tonyconniff.com/wp-content/plugins/pixelyoursite/dist/scripts/jquery.bind-first-0.2.3.min.js?ver=6.1.3 /* * jQuery.bind-first library v0.2.3 * Copyright (c) 2013 Vladimir Zhuravlev * * Released under MIT License * @license * * Date: Thu Feb 6 10:13:59 ICT 2014 **/ (function(t){function e(e){return u?e.data("events"):t._data(e[0]).events}function n(t,n,r){var i=e(t),a=i[n];if(!u){var s=r?a.splice(a.delegateCount-1,1)[0]:a.pop();return a.splice(r?0:a.delegateCount||0,0,s),void 0}r?i.live.unshift(i.live.pop()):a.unshift(a.pop())}function r(e,r,i){var a=r.split(/\s+/);e.each(function(){for(var e=0;a.length>e;++e){var r=a[e].trim().match(/[^\.]+/i)[0];n(t(this),r,i)}})}function i(e){t.fn[e+"First"]=function(){var n=t.makeArray(arguments),i=n.shift();return i&&(t.fn[e].apply(this,arguments),r(this,i)),this}}var a=t.fn.jquery.split("."),s=parseInt(a[0]),f=parseInt(a[1]),u=1>s||1==s&&7>f;i("bind"),i("one"),t.fn.delegateFirst=function(){var e=t.makeArray(arguments),n=e[1];return n&&(e.splice(0,2),t.fn.delegate.apply(this,arguments),r(this,n,!0)),this},t.fn.liveFirst=function(){var e=t.makeArray(arguments);return e.unshift(this.selector),t.fn.delegateFirst.apply(t(document),e),this},u||(t.fn.onFirst=function(e,n){var i=t(this),a="string"==typeof n;if(t.fn.on.apply(i,arguments),"object"==typeof e)for(type in e)e.hasOwnProperty(type)&&r(i,type,a);else"string"==typeof e&&r(i,e,a);return i})})(jQuery); // source --> https://tonyconniff.com/wp-content/plugins/pixelyoursite/dist/scripts/js.cookie-2.1.3.min.js?ver=2.1.3 !function(e){var n=!1;if("function"==typeof define&&define.amd&&(define(e),n=!0),"object"==typeof exports&&(module.exports=e(),n=!0),!n){var o=window.Cookies,t=window.Cookies=e();t.noConflict=function(){return window.Cookies=o,t}}}(function(){function e(){for(var e=0,n={};e1){if(i=e({path:"/"},t.defaults,i),"number"==typeof i.expires){var a=new Date;a.setMilliseconds(a.getMilliseconds()+864e5*i.expires),i.expires=a}try{c=JSON.stringify(r),/^[\{\[]/.test(c)&&(r=c)}catch(e){}return r=o.write?o.write(r,n):encodeURIComponent(String(r)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),n=encodeURIComponent(String(n)),n=n.replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent),n=n.replace(/[\(\)]/g,escape),document.cookie=[n,"=",r,i.expires?"; expires="+i.expires.toUTCString():"",i.path?"; path="+i.path:"",i.domain?"; domain="+i.domain:"",i.secure?"; secure":""].join("")}n||(c={});for(var p=document.cookie?document.cookie.split("; "):[],s=/(%[0-9A-Z]{2})+/g,d=0;d