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
// Query the device pixel ratio. | |
//------------------------------- | |
function getDevicePixelRatio() { | |
if(window.devicePixelRatio === undefined) return 1; // No pixel ratio available. Assume 1:1. | |
return window.devicePixelRatio; | |
} | |
var typeSet = function() { | |
var baselineStartItem = $('article p'); |