{:uriI"›file://app/assets/javascripts/calendar.coffee?type=application/javascript&pipeline=self&id=8abe504ed4bb5d26ec3d8224639923a09e61ea5bede1fff48b124477fa457a3d:ET:load_pathI"app/assets/javascripts;T: filenameI"+app/assets/javascripts/calendar.coffee;T: nameI" calendar;T:logical_pathI"calendar.self.js;T:content_typeI"application/javascript;T: sourceI"?(function() { $(document).on("turbolinks:load", function() { var debounceIntervalMs, shiftUrl; $(".test_click").click(function(e) { e.preventDefault(); alert("Whooo let the dogs out?"); console.log("The gang!"); }); $(".open_more").click(function(e) { e.preventDefault(); $(this).next('.details').toggle(); }); $(".onclick_open_backdrop").click(function(e) { e.preventDefault(); $(this).children('.snowflake_popover').popover('show'); $('.popover_backdrop').show(); }); $(document).on("click", ".close, .popover_backdrop", function(e) { e.preventDefault(); $('.snowflake_popover').popover('hide'); $('.popover_backdrop').hide(); }); $('[data-toggle="popover"]').popover({ html: true, trigger: 'manual', content: function() { return $(this).children('.popover_content').html(); } }); debounceIntervalMs = function() { return 240; }; shiftUrl = function(url, regex, shifts) { var change, text; change = function(str, p1, p2, offset, text) { return p1 + (parseInt(p2) + parseInt(shifts)); }; text = String(url); return text.replace(regex, change); }; $("a.debounce_this").click(function(e) { var delayedPageChange, newHref, regex; e.preventDefault(); if (window.forwardShiftAmount == null) { window.forwardShiftAmount = 0; } if (window.debounceTimeout != null) { clearTimeout(window.debounceTimeout); window.forwardShiftAmount = window.forwardShiftAmount + (e.currentTarget.dataset.directionForward === 'true' ? 1 : -1); console.log(window.forwardShiftAmount); } regex = new RegExp("(" + e.currentTarget.dataset.debounceParam + "=)(-?\\d+)", "g"); delayedPageChange = function() { return location.href = newHref; }; newHref = shiftUrl(e.currentTarget.href, regex, window.forwardShiftAmount); window.debounceTimeout = setTimeout(delayedPageChange, debounceIntervalMs()); }); }); }).call(this); ;T: metadata{ :dependencieso:Set: @hash} I"environment-version;TTI"environment-paths;TTI"rails-env;TTI"jprocessors:type=application/javascript&file_type=application/javascript&engines=.coffee&pipeline=self;TTI"9file-digest://app/assets/javascripts/calendar.coffee;TTF: requiredo;;}F: stubbedo;;}F: linkso;;}F: charsetI" utf-8;F: digest"%ëçöƒ ˆí>‘U’º{À]Þ„Ø¢oWùœE˜b.f»": lengthi?:dependencies_digest"%±îO,òÝ*4û¡9ñ¥,‚e½ªd“r3¢XÕtt‘:idI"E8abe504ed4bb5d26ec3d8224639923a09e61ea5bede1fff48b124477fa457a3d;F: mtimel+Ê+\\