1(function($) { 2 "use strict"; 3 4 // ______________ Cover-image 5 $(".cover-image").each(function() { 6 var attr = $(this).attr('data-image-src'); 7 if (typeof attr !== typeof undefined && attr !== false) { 8 $(this).css('background', 'url(' + attr + ') center center'); 9 } 10 }); 11 12 // ______________ Global Loader 13 $(window).on("load", function(e) { 14 $("#global-loader").fadeOut("slow"); 15 }) 16 17 // ______________ Color-skin 18 $(document).ready(function() { 19 $("a[data-theme]").click(function() { 20 $("head link#theme").attr("href", $(this).data("theme")); 21 $(this).toggleClass('active').siblings().removeClass('active'); 22 }); 23 $("a[data-effect]").click(function() { 24 $("head link#effect").attr("href", $(this).data("effect")); 25 $(this).toggleClass('active').siblings().removeClass('active'); 26 }); 27 }); 28 29 30 // ______________ Modal 31 $("#myModal").modal('show'); 32 33 34 // ______________Rating Stars 35 var ratingOptions = { 36 selectors: { 37 starsSelector: '.rating-stars', 38 starSelector: '.rating-star', 39 starActiveClass: 'is--active', 40 starHoverClass: 'is--hover', 41 starNoHoverClass: 'is--no-hover', 42 targetFormElementSelector: '.rating-value' 43 } 44 }; 45 $(".rating-stars").ratingStars(ratingOptions); 46 47 48})(jQuery); 49 50
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.