-
Notifications
You must be signed in to change notification settings - Fork 15
/
ios7.min.js.map
1 lines (1 loc) · 1.77 KB
/
ios7.min.js.map
1
{"version":3,"sources":["ios7.js"],"names":["document","docElement","documentElement","classList","navigator","userAgent","indexOf","title","split","add","remove","window","devicePixelRatio","testElement","createElement","style","border","appendChild","offsetHeight","removeChild"],"mappings":";CAEA,SAAUA,GACT,aAIA,IAAIC,EAAaD,EAASE,gBACzBC,EAAYF,EAAWE,UAexB,IAb6C,GAAzCC,UAAUC,UAAUC,QAAQ,WACY,GAAvCN,EAASO,MAAMD,QAAQ,SAC1BN,EAASO,MAAQP,EAASO,MAAMC,MAAM,OAAY,IAGnDL,EAAUM,IAAI,UAEdN,EAAUO,OAAO,QAAS,aAMvB,qBAAsBC,QAAUC,kBAAoB,EAAG,CAC1D,IAAIC,EAAcb,EAASc,cAAc,OACzCD,EAAYE,MAAMC,OAAS,yBAC3Bf,EAAWgB,YAAYJ,GAEnBA,EAAYK,aAAe,GAC9Bf,EAAUM,IAAI,gBAGXG,kBAAoB,GACvBT,EAAUM,IAAI,mBAGfR,EAAWkB,YAAYN,IAlCzB,CAoCGb","file":"ios7.min.js","sourcesContent":["/*! Basic iOS 7 CSS // Apache License 2.0 // hbang.ws */\n\n(function(document) {\n\t\"use strict\";\n\n\t// MARK: - Cydia detection\n\n\tvar docElement = document.documentElement,\n\t\tclassList = docElement.classList;\n\n\tif (navigator.userAgent.indexOf(\"Cydia\") != -1) {\n\t\tif (document.title.indexOf(\" \\u00b7 \") != -1) {\n\t\t\tdocument.title = document.title.split(\" \\u00b7 \")[0];\n\t\t}\n\n\t\tclassList.add(\"cydia\");\n\t} else {\n\t\tclassList.remove(\"cydia\", \"depiction\");\n\t}\n\n\t// MARK: - Subpixel rendering detection\n\t// via http://dieulot.net/css-retina-hairline\n\n\tif (\"devicePixelRatio\" in window && devicePixelRatio >= 2) {\n\t\tvar testElement = document.createElement(\"div\");\n\t\ttestElement.style.border = \".5px solid transparent\";\n\t\tdocElement.appendChild(testElement);\n\n\t\tif (testElement.offsetHeight > 0) {\n\t\t\tclassList.add(\"has-subpixel\");\n\t\t}\n\n\t\tif (devicePixelRatio >= 3) {\n\t\t\tclassList.add(\"has-subpixel-3x\");\n\t\t}\n\n\t\tdocElement.removeChild(testElement);\n\t}\n})(document);\n"]}