// LAZY LOAD -- YOU CAN TAKE THIS OUT, BUT DON'T FORGET TO INCLUDE THE JS FILES IN THE THEME FOOTER AGAIN LazyLoad.js(['/themes/tff/javascript/lib/jquery-1.10.2.min.js', '/themes/tff/bootstrap/js/bootstrap.min.js', '/themes/tff/javascript/lib/imagesloaded.pkgd.js', '/themes/tff/javascript/lib/packery.pkgd.min.js', '/themes/tff/javascript/plugins/jquery.simpleWeather-2.3.min.js', '/themes/tff/javascript/plugins/jquery.vticker.min.js', '/themes/tff/javascript/plugins/nivo-lightbox.min.js', '/themes/tff/javascript/plugins/jquery.fitvids.js', '/themes/tff/javascript/plugins/retina-1.1.0.min.js'], function () { // PACKERY FRONT PAGE GRID var container = document.querySelector('#grid'); var pckry; imagesLoaded( container, function() { pckry = new Packery( container, { columnWidth: '.col-md-4', itemSelector: '.item', gutter: 0 }); }); // TICKER $(function() { $('#ticker').vTicker('init',{speed: 1000, pause: 3000}); }); // LIGHTBOX $('a.lightbox').nivoLightbox({ effect: 'fall', theme: 'default', errorMessage: 'The requested content cannot be loaded. Please try again later.' }); // FITVIDS $(".video-box").fitVids(); // WEATHER WIDGET /* $.simpleWeather({ zipcode: '', woeid: '44418', location: '', unit: 'c', success: function(weather) { html = '

'+weather.temp+'°'+weather.units.temp+'

'; html += ''; $("#weather").html(html); }, error: function(error) { $("#weather").html('

'+error+'

'); } }); */ // PRICING $(".box").click(function(){ $(this).parent().addClass("circle"); }).click(function(){ $(this).parent().removeClass("circle"); }); $(document).ready(function(){ //$("#requestlink-form input[name=wpe]").val('okneib@gmail.com'); $('#requestlink-form input[type=submit]').prop("disabled", false); function requestLink() { alert('jo'); } $("#requestlink-form").submit(function(event) { let wpe = ($("input[name=wpe]").val()); let wpid = ($("input[name=wpid]").val()); $.ajax({ type : 'get', url : '/download/createlink/?wpid='+wpid+'&wpe='+wpe }) .done(function(data) { $("#requestlink-form").hide(); $("#requestlink-result").html('De link is verzonden!'); }); event.preventDefault(); return false; }); }); });