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
sub, sup { | |
/* Specified in % so that the sup/sup is the | |
right size relative to the surrounding text */ | |
font-size: 75%; | |
/* Zero out the line-height so that it doesn't | |
interfere with the positioning that follows */ | |
line-height: 0; | |
/* Where the magic happens: makes all browsers position |
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
/** | |
* Loads an HTML document from a URL and retuns an element selected using | |
* the 'selector' parameter | |
* Example usage: | |
* loadPageSection('./myPage.html', '#container', (r, err) => console.log(r, err)); | |
* | |
* @method loadPageSection | |
* @param {String} url | |
* @param {String} selector - A valid CSS selector | |
* @param {Function} callback - To be called with two parameters (response, error) |