Sha256: ebd67940f41406e738ca55308d65c6c8c194b7a022850774ae80950fd5bf83bd
Contents?: true
Size: 1.37 KB
Versions: 1
Compression:
Stored size: 1.37 KB
Contents
/* * Smart event highlighting * Handles when events span rows, or don't have a background color */ jQuery(document).ready(function($) { var highlight_color = "#2EAC6A"; // highlight events that have a background color $(".ec-event-bg").live("mouseover", function() { event_id = $(this).attr("data-event-id"); event_class_name = $(this).attr("data-event-class"); $(".ec-"+event_class_name+"-"+event_id).css("background-color", highlight_color); }); $(".ec-event-bg").live("mouseout", function() { event_id = $(this).attr("data-event-id"); event_class_name = $(this).attr("data-event-class"); event_color = $(this).attr("data-color"); $(".ec-"+event_class_name+"-"+event_id).css("background-color", event_color); }); // highlight events that don't have a background color $(".ec-event-no-bg").live("mouseover", function() { ele = $(this); ele.css("color", "white"); ele.find("a").css("color", "white"); ele.find(".ec-bullet").css("background-color", "white"); ele.css("background-color", highlight_color); }); $(".ec-event-no-bg").live("mouseout", function() { ele = $(this); event_color = $(this).attr("data-color"); ele.css("color", event_color); ele.find("a").css("color", event_color); ele.find(".ec-bullet").css("background-color", event_color); ele.css("background-color", "transparent"); }); });
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
event-calendar-2.3.3 | lib/generators/event_calendar/templates/jq_javascript.js |