Skip to content

Instantly share code, notes, and snippets.

@sairion
Created April 17, 2013 08:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sairion/5402777 to your computer and use it in GitHub Desktop.
Save sairion/5402777 to your computer and use it in GitHub Desktop.
/*
*
* Plugin Name: Show Submenu Context in Indexhibit Website
* Author: Jaeho Lee (http://jayhello.com , http://rowsandcolumns.com)
* Version: 0.1
* Description: Find submenu context by hash-sanitized location.href
*
*/
$("#index a").each(function(){
if($(this).attr("href")==location.href.split("#")[0]){
$(this).parent().show()
}
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment