Sha256: e0037e820c7c3ee9e107586cee1279fc9d2b707432a261a4e306f5394d2cdcd3

Contents?: true

Size: 493 Bytes

Versions: 31

Compression:

Stored size: 493 Bytes

Contents

(function() {
    var counter = 0;
    var numbered;
    var source = document.getElementsByClassName('prettyprint source');

    if (source && source[0]) {
        source = source[0].getElementsByTagName('code')[0];

        numbered = source.innerHTML.split('\n');
        numbered = numbered.map(function(item) {
            counter++;
            return '<span id="line' + counter + '" class="line"></span>' + item;
        });

        source.innerHTML = numbered.join('\n');
    }
})();

Version data entries

31 entries across 25 versions & 2 rubygems

Version Path
retreaverjs-rails-0.2.5 vendor/documentation/javascript/v1/scripts/linenumber.js
retreaverjs-rails-0.2.4 vendor/documentation/javascript/v1/scripts/linenumber.js
retreaverjs-rails-0.2.3 vendor/documentation/javascript/v1/scripts/linenumber.js
retreaverjs-rails-0.2.2 vendor/documentation/javascript/v1/scripts/linenumber.js
retreaverjs-rails-0.2.1 vendor/documentation/javascript/v1/scripts/linenumber.js
retreaverjs-rails-0.2.0 vendor/documentation/javascript/v1/scripts/linenumber.js
retreaverjs-rails-0.1.0 vendor/documentation/javascript/v1/scripts/linenumber.js
callpixelsjs-rails-0.0.12 vendor/documentation/javascript/v1/scripts/linenumber.js
callpixelsjs-rails-0.0.11 vendor/documentation/javascript/v1/scripts/linenumber.js
callpixelsjs-rails-0.0.10 vendor/documentation/javascript/v1/scripts/linenumber.js
callpixelsjs-rails-0.0.9 vendor/documentation/javascript/v1/scripts/linenumber.js