1jQuery(document).ready(function ($) { 2 3 // -------- WHITE LOGO ON HOMEPAGE ------------------------------------------------------------------------ 4 5 $('.logo_container').append('<a href="/"><img src="https://www.unife.org/wp-content/uploads/2021/02/logo-white.svg" class="home-logo" id="logo" style="display:none;" /></a>'); 6 7 //$('.menu-item-62 a').wrapInner('<span></span>'); 8 // -------- CUSTOM ACCORDION BASED ON JQUERY ------------------------------------------------------------------------ 9 // Doc: https://jquery.com/ 10 11 $(".accordion").on("click", ".list-title", function() { 12 13 $(this).toggleClass("active").next('.list-excerpt').slideToggle(); 14 15 }); 16 17 // -------- CUSTOM TABS BASED ON JQUERY ------------------------------------------------------------------------ 18 // Doc: https://jquery.com/ 19 20 var tab_selector = '.mc-tabs'; 21 22 $( tab_selector + ' .tab-link').click(function(){ 23 24 var tab_id = $(this).attr('data-tab'); 25 26 var $parent = $("#" + tab_id).parent(); 27 28 $parent.find(".tab-link").removeClass('current'); 29 30 $parent.find(".mc-tabs-content").removeClass('current'); 31 32 $(this).addClass('current'); 33 34 $("#" + tab_id).addClass('current'); 35 36 }); 37 38 // -------- STAGGER LIST BASED ON JQUERY ------------------------------------------------------------------------ 39 // Doc: https://jquery.com/ 40 41 var list = $('.stagger-list'); 42 var items = list.find('.list-item'); 43 44 for (var i = 0; i < items.length; i++) { 45 var item = items.eq(i); 46 var delay = (i + 1) / 10; 47 48 item.css({ 49 'transition-delay': delay + "s", 50 'transition-duration': '.75s', 51 'transition-timing-function': 'cubic-bezier(0.075, 0.82, 0.165, 1)' 52 }).addClass('display'); 53 }; 54 55 // -------- SLICK SLIDER / SLIDER ------------------------------------------------------------------------ 56 // Doc: http://kenwheeler.github.io/slick/ 57 58 $('.news-home').slick({ 59 dots: false, 60 speed: 600, 61 autoplay: true, 62 autoplaySpeed: 6000, 63 arrows: true, 64 inifinite: false 65 //fade: true 66 67 }); 68 /* 69 $('.ctf-tweets').slick({ 70 dots: false, 71 speed: 600, 72 autoplay: false, 73 autoplaySpeed: 6000, 74 arrows: true, 75 //fade: true 76 77 }); 78 */ 79 80 81 // -------- SLICK SLIDER / Carousel ------------------------------------------------------------------------ 82 // Doc: http://kenwheeler.github.io/slick/ 83 84 $('.carousel').slick({ 85 dots: false, 86 infinite: true, 87 speed: 600, 88 autoplay: true, 89 autoplaySpeed: 6000, 90 slidesToShow: 8, 91 slidesToScroll: 8, 92 responsive: [ 93 { 94 breakpoint: 1027, 95 settings: { 96 slidesToShow: 4, 97 slidesToScroll: 4, 98 infinite: true, 99 dots: false 100 } 101 }, 102 { 103 breakpoint: 981, 104 settings: { 105 slidesToShow: 2, 106 slidesToScroll: 2, 107 infinite: true, 108 dots: false 109 } 110 }, 111 { 112 breakpoint: 480, 113 settings: { 114 slidesToShow: 1, 115 slidesToScroll: 1 116 } 117 } 118 ] 119 }); 120 121 122 123 // -------- JUSTIFIED GALLERY ------------------------------------------------------------------------ 124 // Doc: http://miromannino.github.io/Justified-Gallery/options-and-events/ 125 126 $(".photo-gallery").justifiedGallery({ 127 rowHeight: 150, 128 margins: 10, 129 border: 0, 130 }); 131 132 133 // -------- MAGINFICIENT POPUP / This is the native lightobx script of DIVI 134 // Doc: http://dimsemenov.com/plugins/magnific-popup/ 135 136 $('.mg-video').magnificPopup({ 137 disableOn: 0, 138 type: 'iframe', 139 mainClass: 'mfp-fade', 140 removalDelay: 160, 141 preloader: false, 142 fixedContentPos: false 143 }); 144 145 $('.photo-gallery').magnificPopup({ 146 delegate: 'a', 147 type: 'image', 148 tLoading: 'Loading image #%curr%...', 149 mainClass: 'mfp-fade', 150 gallery: { 151 enabled: true, 152 navigateByImgClick: true, 153 preload: [0,1] // Will preload 0 - before current, and 1 after the current image 154 }, 155 image: { 156 tError: '<a href="%url%">The image #%curr%</a> could not be loaded.', 157 titleSrc: function(item) { 158 //return item.el.attr('title') + '<small>by Marsel Van Oosten</small>'; 159 return item.el.attr('title'); 160 } 161 } 162 }); 163 /* 164 // -------- FULL CALENDAR ------------------------------------------------------------------------ 165 // Doc: https://fullcalendar.io/ 166 167 eventsFeedUrl = '/wpdivi/events-feed.json'; 168 169 var json_source = eventsFeedUrl; 170 171 var events = (function () { 172 173 var json = null; 174 175 $.ajax({ 176 'async': false, 177 'global': false, 178 'url': json_source, 179 'dataType': "json", 180 'success': function (data) { 181 json = data; 182 } 183 184 }); 185 186 return json; 187 188 })(); 189 190 var cal0 = $('#calendar0'); 191 192 var currentDate = moment().format('YYYY-MM-DD'); 193 194 var futureMonth = moment().add(1, 'month').format('YYYY-MM-DD'); 195 196 cal0.fullCalendar({ 197 nextDayThreshold: '00:00:00', 198 header: { 199 left: 'title', 200 center: '', 201 right: 'prev,next today', 202 }, 203 displayEventTime: false, 204 defaultDate: currentDate, 205 events: events, 206 }); 207 */ 208 209}); 210 211 212// -------- MixItUp JS ------------------------------------------------------------------------ 213 214var containerEl = document.querySelector('.mc-filtered-list'); 215 216if( containerEl ) { 217 218 var mixer = mixitup(containerEl, { 219 multifilter: { 220 enable: true 221 }, 222 selectors: { 223 target: '.list-item' 224 }, 225 animation: { 226 effects: 'fade scale stagger(50ms)' // Set a 'stagger' effect for the loading animation 227 }, 228 pagination: { 229 //limit: 4 230 }, 231 load: { 232 filter: 'none' // Ensure all targets start from hidden (i.e. display: none;) 233 } 234 }); 235 // Add a class to the container to remove 'visibility: hidden;' from targets. This 236 // prevents any flickr of content before the page's JavaScript has loaded. 237 containerEl.classList.add('mixitup-ready'); 238 // Show all targets in the container 239 mixer.show() 240 .then(function() { 241 // Remove the stagger effect for any subsequent operations 242 mixer.configure({ 243 animation: { 244 effects: 'fade scale' 245 } 246 }); 247 }); 248}
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.