Sha256: b91794dd34237f02b17b0e1c765675bd3d1d89c31c98c286fbb8785d5133e839

Contents?: true

Size: 1.63 KB

Versions: 10

Compression:

Stored size: 1.63 KB

Contents

{I"
class:ETI"BundledAsset;FI"logical_path;TI"style_guide/identifiers.js;FI"
pathname;TI"~/Users/nmcclay/.rubies/ruby-2.1.4/lib/ruby/gems/2.1.0/gems/style-guide-1.1.1/app/assets/javascripts/style_guide/identifiers.js;FI"content_type;TI"application/javascript;TI"
mtime;Tl+Q„?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

10 entries across 5 versions & 1 rubygems

Version Path
forever_style_guide-1.2.10 test/dummy/tmp/cache/assets/development/sprockets/42a69908ec00f4adb00aa7584af941dc
forever_style_guide-1.2.10 test/dummy/tmp/cache/assets/development/sprockets/86fe7a7c3e80a9b877fe71ba73a0d261
forever_style_guide-1.2.9 test/dummy/tmp/cache/assets/development/sprockets/86fe7a7c3e80a9b877fe71ba73a0d261
forever_style_guide-1.2.9 test/dummy/tmp/cache/assets/development/sprockets/42a69908ec00f4adb00aa7584af941dc
forever_style_guide-1.2.8 test/dummy/tmp/cache/assets/development/sprockets/42a69908ec00f4adb00aa7584af941dc
forever_style_guide-1.2.8 test/dummy/tmp/cache/assets/development/sprockets/86fe7a7c3e80a9b877fe71ba73a0d261
forever_style_guide-1.2.7 test/dummy/tmp/cache/assets/development/sprockets/42a69908ec00f4adb00aa7584af941dc
forever_style_guide-1.2.7 test/dummy/tmp/cache/assets/development/sprockets/86fe7a7c3e80a9b877fe71ba73a0d261
forever_style_guide-1.2.5 test/dummy/tmp/cache/assets/development/sprockets/42a69908ec00f4adb00aa7584af941dc
forever_style_guide-1.2.5 test/dummy/tmp/cache/assets/development/sprockets/86fe7a7c3e80a9b877fe71ba73a0d261