Skip to content

A jQuery plugin for loading 2x images on retina displays automatically

Notifications You must be signed in to change notification settings

baotuo/jQuery-Retina-Plugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 

Repository files navigation

Usage:
$().retina([settings]);

  settings:
  A set of key/value pairs. All settings are optional.
  
    retina-background (default: false)
    Whether to change background image to high resolution.
    
    retina-suffix (default: @2x)
    The suffix for high resolution image file.

Example:
<script src="jquery.retina.js" type="text/javascript"></script>
<script type="text/javascript">
$(function() {
  $(".retina").retina({"retina-background":true});
});
</script>

About

A jQuery plugin for loading 2x images on retina displays automatically

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published