develop
Last change
on this file since e954f3e was 194a359, checked in by beratkjufliju <kufliju@…>, 3 years ago |
added departments, edited users and added user settings
|
-
Property mode
set to
100644
|
File size:
1.2 KB
|
Rev | Line | |
---|
[194a359] | 1 | $(function () {
|
---|
| 2 |
|
---|
| 3 | $(window).on('load', function () {
|
---|
| 4 | var $container = $('.gallery-container');
|
---|
| 5 |
|
---|
| 6 | $container.isotope({
|
---|
| 7 | filter: '*',
|
---|
| 8 | animationOptions: {
|
---|
| 9 | duration: 750,
|
---|
| 10 | easing: 'linear',
|
---|
| 11 | queue: false
|
---|
| 12 | }
|
---|
| 13 | });
|
---|
| 14 |
|
---|
| 15 | $('.gallery-filter a').click(function () {
|
---|
| 16 | var $this = $(this);
|
---|
| 17 |
|
---|
| 18 | $('.gallery-filter .active').removeClass('active');
|
---|
| 19 | $this.addClass('active');
|
---|
| 20 |
|
---|
| 21 | var selector = $this.attr('data-filter');
|
---|
| 22 | $container.isotope({
|
---|
| 23 | filter: selector,
|
---|
| 24 | animationOptions: {
|
---|
| 25 | duration: 300,
|
---|
| 26 | easing: 'linear',
|
---|
| 27 | queue: false
|
---|
| 28 | }
|
---|
| 29 | });
|
---|
| 30 | return false;
|
---|
| 31 | });
|
---|
| 32 | });
|
---|
| 33 |
|
---|
| 34 | $('.image-popup-gallery-item').magnificPopup({
|
---|
| 35 | type: 'image',
|
---|
| 36 | gallery: {
|
---|
| 37 | enabled: true
|
---|
| 38 | },
|
---|
| 39 | zoom: {
|
---|
| 40 | enabled: true,
|
---|
| 41 | duration: 300,
|
---|
| 42 | easing: 'ease-in-out',
|
---|
| 43 | opener: function (openerElement) {
|
---|
| 44 | return openerElement.is('img') ? openerElement : openerElement.find('img');
|
---|
| 45 | }
|
---|
| 46 | }
|
---|
| 47 | });
|
---|
| 48 |
|
---|
| 49 | });
|
---|
Note:
See
TracBrowser
for help on using the repository browser.