[+] FO : New Responsive, Bootstrap template
This commit is contained in:
+15
@@ -0,0 +1,15 @@
|
||||
function highdpi_init() {
|
||||
if(jQuery('.replace-2x').css('font-size') == "1px") {
|
||||
var els = jQuery("img.replace-2x").get();
|
||||
for(var i = 0; i < els.length; i++) {
|
||||
var src = els[i].src
|
||||
src = src.replace(".png", "2x.png");
|
||||
src = src.replace(".jpg", "2x.jpg");
|
||||
src = src.replace(".gif", "2x.gif");
|
||||
els[i].src = src;
|
||||
}
|
||||
}
|
||||
}
|
||||
jQuery(document).ready(function() {
|
||||
highdpi_init();
|
||||
});
|
||||
Reference in New Issue
Block a user