Skip to content

Commit

Permalink
Add option for responsive images
Browse files Browse the repository at this point in the history
  • Loading branch information
StephanWagner committed Mar 10, 2019
1 parent 2fe1337 commit 394a17c
Show file tree
Hide file tree
Showing 6 changed files with 65 additions and 32 deletions.
29 changes: 19 additions & 10 deletions dist/jBox.all.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/jBox.all.min.js

Large diffs are not rendered by default.

29 changes: 19 additions & 10 deletions dist/plugins/jBox.Image.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/plugins/jBox.Image.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions src/js/jBox.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -301,6 +301,12 @@ declare namespace jBox {

/** The attribute at the source element where to find the image to download, e.g. data-download="/path_to_image/image.jpg". If none provided, the currently active image will be downloaded */
downloadButtonUrl?: string | null;

/** The attribute to look for an mobile version of the image */
mobileImageAttr?: string | null;

/** The upper breakpoint to load the mobile image */
mobileImageBreakpoint?: number | null;
}

/** Additional options for the Notice plugin */
Expand Down
Loading

0 comments on commit 394a17c

Please sign in to comment.