mirror of
https://github.com/kennethreitz/wordpress-theme-skeleton.git
synced 2026-06-05 23:20:18 +00:00
initial development
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
$.fn.markCurrentLocation = function() {
|
||||
var path = window.location.href
|
||||
return this.each(function(){
|
||||
var self = $(this);
|
||||
var href = self.attr('href');
|
||||
if(RegExp(href).test(path)){
|
||||
self
|
||||
.wrap('<em></em>')
|
||||
}
|
||||
})
|
||||
};
|
||||
Reference in New Issue
Block a user