{:uriI"file:///M:/Sourcetree/gems_test/candle/app/assets/javascripts/candle/calendar.coffee?type=application/javascript&pipeline=self&id=2f04b98ac194be15e859493107b64fdbe94b29ce730d7c8052fbe47bf4f540f1:ET:load_pathI":M:/Sourcetree/gems_test/candle/app/assets/javascripts;T: filenameI"QM:/Sourcetree/gems_test/candle/app/assets/javascripts/candle/calendar.coffee;T: nameI"candle/calendar;T:logical_pathI"candle/calendar.self.js;T:content_typeI"application/javascript;T: sourceI"6(function() { $(".test_click").click(function(e) { e.preventDefault(); alert("Whooo let the dogs out?"); console.log("The gang!"); }); $(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"`file-digest:///M:/Sourcetree/gems_test/candle/app/assets/javascripts/candle/calendar.coffee;TTF: requiredo;;}F: stubbedo;;}F: linkso;;}F: charsetI" utf-8;F: digest"% NNY;ł,E ލ?: lengthi6:dependencies_digest"%< Z]ԁwB}c5Ba=Q$:idI"E2f04b98ac194be15e859493107b64fdbe94b29ce730d7c8052fbe47bf4f540f1;F: mtimel+g]\