{:uriI"file://app/assets/javascripts/calendar.coffee?type=application/javascript&pipeline=self&id=7ec15d09cf84b8697b4aed7505c139f5a354fc448160a9935b15f7a8704a9b38: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; $(".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"% v~FDp c$) 3F]0 : lengthi:dependencies_digest"%wGp8$rBVn?=n % :idI"E7ec15d09cf84b8697b4aed7505c139f5a354fc448160a9935b15f7a8704a9b38;F: mtimel+ \\