Sha256: 5c93d8ccff6cbeefb4b6faf4a9590a426051f1cb87ed303c1a6e8b6277020ea0
Contents?: true
Size: 1.26 KB
Versions: 3
Compression:
Stored size: 1.26 KB
Contents
$(function() { $('[data-toggle="tooltip"]').tooltip(); $('.js-lazy').lazyload({ effect: 'fadeIn', threshold: 200 }); $('#js-toggle-file-listing').click(function() { var text = $(this).text(); $(this).text(text == 'Show file listing' ? 'Hide file listing': 'Show file listing'); $('#js-file-listing').toggle(); }); function selectText() { var range; if (document.selection) { range = document.body.createTextRange(); range.moveToElementText(this); range.select(); } else if (window.getSelection) { range = document.createRange(); range.selectNode(this); window.getSelection().addRange(range); } } $('#js-clone-url').click(selectText); $('.js-nav').click(function() { location.href = $(this).data('href'); }); $('#pjax-container').pjax('#js-tree a, #js-tree-nav a').on('pjax:send', function() { $('#loader').show(); }).on('pjax:end', function() { $('#js-clone-url').click(selectText); }); // filter repositories $('.js-filter-query').on('keyup', function() { var regexp = new RegExp($(this).val(), 'i'), $repolist = $('.js-repolist li'); $repolist.hide(); $repolist.filter(function() { return regexp.test($(this).text()); }).show(); }); });
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
ginatra-4.0.2 | public/js/custom.js |
ginatra-4.0.1 | public/js/custom.js |
ginatra-4.0.0 | public/js/custom.js |