SHOW:
|
|
- or go back to the newest paste.
| 1 | - | |
| 1 | + | |
| 2 | $('.fotorama')
| |
| 3 | .on('fotorama:fullscreenenter fotorama:fullscreenexit', function (e, fotorama) {
| |
| 4 | if (e.type === 'fotorama:fullscreenenter') {
| |
| 5 | // Options for the fullscreen | |
| 6 | fotorama.setOptions({
| |
| 7 | fit: 'contain' | |
| 8 | }); | |
| 9 | } else {
| |
| 10 | // Back to normal settings | |
| 11 | fotorama.setOptions({
| |
| 12 | fit: 'cover' | |
| 13 | }); | |
| 14 | } | |
| 15 | }) | |
| 16 | .fotorama(); | |
| 17 | </script> |