Changeset 1437903
- Timestamp:
- 06/16/2016 03:51:19 PM (10 years ago)
- Location:
- fixed-menu-anchor/trunk
- Files:
-
- 2 edited
-
fixed-menu-anchor.php (modified) (1 diff)
-
js/fixed-menu-anchor.js (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
fixed-menu-anchor/trunk/fixed-menu-anchor.php
r1415651 r1437903 8 8 * Plugin Name: Fixed Menu Anchor 9 9 * Plugin URI: https://wordpress.org/plugins/fixed-menu-anchor 10 * Version: 2.2 10 * Version: 2.2.1 11 11 * Description: Having problems with a fixed header/menu which overlaps the target of an anchor? Use this plugin to jump just before the target so that the fixed header/menu does not overlap anymore. 12 12 * Author: Konrad Abicht, Marc Sauerwald -
fixed-menu-anchor/trunk/js/fixed-menu-anchor.js
r1395643 r1437903 52 52 function fixedMenuAnchor_getTopValueOfAnchorTarget(jQ, anchorLink) 53 53 { 54 var href = jQ(anchorLink).attr('href'); 55 54 56 // extract name of the anchor target (usually identified via ID or name). 55 var anchorName = jQ(anchorLink).attr('href').substr(1);57 var anchorName = href.substr(href.indexOf("#")+1); 56 58 57 59 // try to find element using name
Note: See TracChangeset
for help on using the changeset viewer.