1(function($) { 2 // Move the Offcanvas Toggle button in the Header 3 $(document).ready(function() { 4 $("div.g-offcanvas-toggle:not(.offcanvas-toggle-particle)").prependTo($("#g-header")); 5 }); 6 7 // Fixed Footer 8 $(document).ready(function() { 9 if( $('.fixed-footer').length ) { 10 fixedFooter(); 11 12 $(window).resize(function() { 13 fixedFooter(); 14 }); 15 } 16 17 function fixedFooter() { 18 var siteContainer = $("#g-container-site"); 19 var footerContainer = $(".fixed-footer"); 20 var footerHeight = $(footerContainer).height(); 21 22 $(siteContainer).css("margin-bottom", footerHeight); 23 } 24 }); 25 26 // Header Shadow 27 $(document).ready(function() { 28 if( $('#g-header').length ) { 29 $('<div class="g-header-shadow"></div>').appendTo($("#g-header .g-container")); 30 } 31 }); 32 33 // Language Switcher 34 $(document).ready(function() { 35 $(".mod-languages .lang-block li").not(".lang-active").addClass("lang-hidden"); 36 $(".mod-languages .lang-block").append("<ul class='lang-dropdown'></ul>"); 37 $(".mod-languages .lang-block li.lang-hidden").appendTo("ul.lang-dropdown"); 38 $(".mod-languages .lang-block li.lang-active").addClass("lang-active-padding"); 39 40 if( $('.mod-languages .lang-inline').length == 0 ) { 41 $(".mod-languages .lang-active").parents(".g-menu-item-container").on("hover", function() { 42 $(".mod-languages ul.lang-dropdown").slideToggle("fast"); 43 }); 44 $(".mod-languages .lang-active").parents(".g-menu-item-container").addClass("falang-menu-container"); 45 } 46 }); 47 48 // Copyright Border 49 $(document).ready(function() { 50 if( $('#g-copyright').length ) { 51 $('<div class="g-copyright-border"></div>').prependTo($("#g-copyright .g-container")); 52 } 53 }); 54})(jQuery); 55 56 57/* jQuery Nice Select - v1.0 58 https://github.com/hernansartorio/jquery-nice-select 59 Made by Hernán Sartorio */ 60!function(e){e.fn.niceSelect=function(){this.hide(),this.each(function(){var s=e(this);if(!s.next().hasClass("nice-select")){s.after('<div class="nice-select '+(s.attr("class")||"")+(s.attr("disabled")?"disabled":'" tabindex="0')+'"><span class="current"></span><ul class="list"></ul></div>');var t=s.next(),i=s.find("option"),n=s.find("option:selected");t.find(".current").html(n.data("display")||n.text()),i.each(function(){var s=e(this).data("display");t.find("ul").append('<li class="option'+(e(this).is(":selected")?" selected":"")+(e(this).is(":disabled")?" disabled":"")+'" data-value="'+e(this).val()+'"'+(s?' data-display="'+s:"")+'">'+e(this).text()+"</li>")})}}),e(document).off(".nice_select"),e(document).on("click.nice_select",".nice-select",function(s){var t=e(this);e(".nice-select").not(t).removeClass("open"),t.toggleClass("open"),t.hasClass("open")?(t.find(".option"),t.find(".focus").removeClass("focus"),t.find(".selected").addClass("focus")):t.focus()}),e(document).on("click.nice_select",function(s){0===e(s.target).closest(".nice-select").length&&e(".nice-select").removeClass("open").find(".option")}),e(document).on("click.nice_select",".nice-select .option:not(.disabled)",function(s){var t=e(this),i=t.closest(".
60nice-select");i.find(".selected").removeClass("selected"),t.addClass("selected");var n=t.data("display")||t.text();i.find(".current").text(n),i.prev("select").val(t.data("value")).trigger("change")}),e(document).on("keydown.nice_select",".nice-select",function(s){var t=e(this),i=e(t.find(".focus")||t.find(".list .option.selected"));if(32==s.keyCode||13==s.keyCode)return t.hasClass("open")?i.trigger("click"):t.trigger("click"),!1;if(40==s.keyCode){if(t.hasClass("open")){var n=i.nextAll(".option:not(.disabled)").first();n.length>0&&(t.find(".focus").removeClass("focus"),n.addClass("focus"))}else t.trigger("click");return!1}if(38==s.keyCode){if(t.hasClass("open")){var c=i.prevAll(".option:not(.disabled)").first();c.length>0&&(t.find(".focus").removeClass("focus"),c.addClass("focus"))}else t.trigger("click");return!1}if(27==s.keyCode)t.hasClass("open")&&t.trigger("click");else if(9==s.keyCode&&t.hasClass("open"))return!1})}}(jQuery); 61 62(function($) { 63 $(document).ready(function() { 64 $('.solidres-module select').niceSelect(); 65 $('#solidres select').niceSelect(); 66 }); 67})(jQuery);
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.