1/*! 2 3========================================================= 4* Argon Design System - v1.0.0 5========================================================= 6 7* Product Page: https://www.creative-tim.com/product/argon-design-system 8* Copyright 2018 Creative Tim (https://www.creative-tim.com) 9* Licensed under MIT (https://github.com/creativetimofficial/argon-design-system/blob/master/LICENSE.md) 10 11* Coded by www.creative-tim.com 12 13========================================================= 14 15* The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. 16 17*/ 18 19"use strict"; 20$(document).ready(function() { 21 22 // Collapse navigation 23 $('.navbar-main .collapse').on('hide.bs.collapse', function () { 24 var $this = $(this); 25 $this.addClass('collapsing-out'); 26 }); 27 28 $('.navbar-main .collapse').on('hidden.bs.collapse', function () { 29 var $this = $(this); 30 $this.removeClass('collapsing-out'); 31 }); 32 33 $('.navbar-main .dropdown').on('hide.bs.dropdown', function () { 34 var $this = $(this).find('.dropdown-menu'); 35 36 $this.addClass('close'); 37 38 setTimeout(function(){ 39 $this.removeClass('close'); 40 }, 200); 41 42 }); 43 44 // Headroom - show/hide navbar on scroll 45 if($('.headroom')[0]) { 46 var headroom = new Headroom(document.querySelector("#navbar-main"), { 47 offset: 100, 48 tolerance : { 49 up : 30, 50 down : 30 51 }, 52 }); 53 headroom.init(); 54 } 55 56 // Datepicker 57 $('.datepicker')[0] && $('.datepicker').each(function() { 58 $('.datepicker').datepicker({ 59 disableTouchKeyboard: true, 60 autoclose: false 61 }); 62 }); 63 64 // Tooltip 65 $('[data-toggle="tooltip"]').tooltip(); 66 67 // Popover 68 $('[data-toggle="popover"]').each(function() { 69 var popoverClass = ''; 70 if($(this).data('color')) { 71 popoverClass = 'popover-'+$(this).data('color'); 72 } 73 $(this).popover({ 74 trigger: 'focus', 75 template: '<div class="popover '+ popoverClass +'" role="tooltip"><div class="arrow"></div><h3 class="popover-header"></h3><div class="popover-body"></div></div>' 76 }) 77 }); 78 79 // Additional .focus class on form-groups 80 $('.form-control').on('focus blur', function(e) { 81 $(this).parents('.form-group').toggleClass('focused', (e.type === 'focus' || this.value.length > 0)); 82 }).trigger('blur'); 83 84 // NoUI Slider 85 if ($(".input-slider-container")[0]) { 86 $('.input-slider-container').each(function() { 87 88 var slider = $(this).find('.input-slider'); 89 var sliderId = slider.attr('id'); 90 var minValue = slider.data('range-value-min'); 91 var maxValue = slider.data('range-value-max'); 92 93 var sliderValue = $(this).find('.range-slider-value'); 94 var sliderValueId = sliderValue.attr('id'); 95 var startValue = sliderValue.data('range-value-low'); 96 97 var c = document.getElementById(sliderId), 98 d = document.getElementById(sliderValueId); 99 100 noUiSlider.create(c, { 101 start: [parseInt(startValue)], 102 connect: [true, false], 103 //step: 1000, 104 range: { 105 'min': [parseInt(minValue)], 106 'max': [parseInt(maxValue)] 107 } 108 }); 109 110 c.noUiSlider.on('update', function(a, b) { 111 d.textContent = a[b]; 112 }); 113 }) 114 } 115 116 if ($("#input-slider-range")[0]) { 117 var c = document.getElementById("input-slider-range"), 118 d = document.getElementById("input-slider-range-value-low"), 119 e = document.getElementById("input-slider-range-value-high"), 120 f = [d, e]; 121 122 noUiSlider.create(c, { 123 start: [parseInt(d.getAttribute('data-range-value-low')), parseInt(e.getAttribute('data-range-value-high'))], 124 connect: !0, 125 range: { 126 min: parseInt(c.getAttribute('data-range-value-min')), 127 max: parseInt(c.getAttribute('data-range-value-max')) 128 } 129 }), c.noUiSlider.on("update", function(a, b) { 130 f[b].textContent = a[b] 131 }) 132 } 133 134 135 // When in viewport 136 $('[data-toggle="on-screen"]')[0] && $('[data-toggle="on-screen"]').onScreen({ 137 container: window, 138 direction: 'vertical', 139 doIn: function() { 140 //alert(); 141 }, 142 doOut: function() { 143 // Do something to the matched elements as they get off scren 144 }, 145 tolerance: 200, 146 throttle: 50, 147 toggleClass: 'on-screen', 148 debug: false 149 }); 150 151 // Scroll to anchor with scroll animation 152 $('[data-toggle="scroll"]').on('click', function(event) { 153 var hash = $(this).attr('href'); 154 var offset = $(this).data('offset') ? $(this).data('offset') : 0; 155 156 // Animate scroll to the selected section 157 $('html, body').stop(true, true).animate({
158 scrollTop: $(hash).offset().top - offset 159 }, 600); 160 161 event.preventDefault(); 162 }); 163 });
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.