Skip to content

Commit

Permalink
2.3.0 release - embed dimensions
Browse files Browse the repository at this point in the history
  • Loading branch information
henrygd committed Nov 11, 2019
1 parent ae0133e commit 468ea24
Show file tree
Hide file tree
Showing 9 changed files with 980 additions and 888 deletions.
1 change: 0 additions & 1 deletion .npmignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
example_page
build.sh
yarn.lock
shrinkwrap.yaml
pnpm-lock.yaml
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

![Example page screenshot](https://i.imgur.com/7T6dnN3.gif)

Lightweight (3.75 KB gzip) and framework independent JavaScript image / video viewer.
3.7 kB gzip vanilla JavaScript image / video viewer.

Supports Youtube, Vimeo, and direct video links.

Expand Down Expand Up @@ -220,7 +220,7 @@ BigPicture({

## Change dimensions of embed / youtube / vimeo

By default, embeds are displayed in 16:9 aspect at a maximum of 1600px by 900px. To change this, supply an array with width and height in pixels. Default is `[1600, 900]`.
By default, embeds are displayed in 16:9 aspect at a maximum of 1920px by 1080px. To change this, supply an array with width and height in pixels. Default is `[1920, 1080]`.

```javascript
BigPicture({
Expand Down
512 changes: 280 additions & 232 deletions dist/BigPicture.js

Large diffs are not rendered by default.

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

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions example_page/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ <h3>Videos / Embeds</h3>
>any iframe</a
>, as well as
<a
href="/audio/happy-step.mp3"
href="audio/happy-step.mp3"
class="text-trigger"
id="audio_example"
data-caption="Nordgroove - Happy Step"
Expand Down Expand Up @@ -323,7 +323,7 @@ <h3>Error Handling</h3>
e.preventDefault()
BigPicture({
el: this,
audio: '/audio/happy-step.mp3',
audio: 'audio/happy-step.mp3',
})
})
})()
Expand Down
2 changes: 1 addition & 1 deletion example_page/js/BigPicture.js

Large diffs are not rendered by default.

Loading

0 comments on commit 468ea24

Please sign in to comment.