Created
August 16, 2017 10:42
-
-
Save saltcod/19a8c9086ebc0356ba4c373068e85b61 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
javascript:(!function(n){function c(){var c=n(this).parents(".cv-container").children(".cv");c.hasClass("hidden")?c.slideDown():c.slideUp(),c.toggleClass("hidden")}function t(n){var c=RegExp("","i");for(i=e.length;i--;)if(c.compile(e[i],"i"),n.match(c)&&""!==n.match(c)[0])return!0;return!1}var e=["^\\.*","README.*","bower.json","package-lock.json","\\.pot","\\.css","\\.sass",".*css.map",".*js.map",".*\\.min\\..*","\\.md","\\.html"];n(".cv-container .ct .ct_path").off("click").on("click",c),n(".cv-container .ct .ct_path").children("a.path_item.path_item--current").each(function(c,i){var e=n(i).attr("href").split("/").pop().split("?")[0];t(e)&&n(i).parents(".cv-container").children(".cv").addClass("hidden").slideUp()})}(jQuery))(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment