Sha256: 1ecb876aeea001f1bce11032ca135eefcbbd92f194cc7a4abb968542ee4fdf96

Contents?: true

Size: 1.61 KB

Versions: 4

Compression:

Stored size: 1.61 KB

Contents

{I"
class:ETI"BundledAsset;FI"logical_path;TI"style_guide/identifiers.js;FI"
pathname;TI"l/Users/nmcclay/.gem/ruby/2.1.4/gems/style-guide-1.1.1/app/assets/javascripts/style_guide/identifiers.js;FI"content_type;TI"application/javascript;TI"
mtime;Tl+¥}?VI"length;Ti€I"digest;TI"%4e0c5dee2a28302ed4a26130c45ffda9;FI"source;TI"€;(function(){
  var $identifiers = document.querySelectorAll(".style-guide-partial-identifiers code");
  var highlightPattern = new RegExp('(\\s|^)style-guide-identifier-highlight(\\s|$)');

  function addHighlight(elements) {
    for (var i = 0, element; element = elements[i]; i++) {
      element.className += " style-guide-identifier-highlight";
    }
  }

  function removeHighlight(elements) {
    for (var i = 0, element; element = elements[i]; i++) {
      element.className = element.className.replace(highlightPattern, ' ');
    }
  }

  function identifierHighlighter(event) {
    var selector = event.target.innerHTML;
    var $selected = document.querySelectorAll(selector);
    addHighlight($selected);
  }

  function identifierHighlightRemover(event) {
    var $highlighted = document.querySelectorAll(".style-guide-identifier-highlight");
    removeHighlight($highlighted);
  }

  function highlightOnHover(elements) {
    for (var i = 0, element; element = elements[i]; i++) {
      element.onmouseover = identifierHighlighter;
      element.onmouseout = identifierHighlightRemover;
    }
  }

  highlightOnHover($identifiers);
})();
;TI"required_assets_digest;TI"%4d6bebfa9cc347b88ff21147f82723ca;FI"
_version;TI"%2be930bcbfd3c3e00190e2193dda5c7c;F

Version data entries

4 entries across 2 versions & 1 rubygems

Version Path
forever_style_guide-1.2.10 test/dummy/tmp/cache/assets/development/sprockets/2141c35f9fa9950a15dc0d9b7d8b63d0
forever_style_guide-1.2.10 test/dummy/tmp/cache/assets/development/sprockets/f0a3d1ea0c801bedaa9f24844de0829a
forever_style_guide-1.2.9 test/dummy/tmp/cache/assets/development/sprockets/2141c35f9fa9950a15dc0d9b7d8b63d0
forever_style_guide-1.2.9 test/dummy/tmp/cache/assets/development/sprockets/f0a3d1ea0c801bedaa9f24844de0829a