PageSourceSearch

https://pierced.co/cdn/shop/t/25/assets/jquery.dropselect.js?v=134717956503019150221636484286

js pierced.co collected 2026-09-29 00:15:28 UTC 3,496 bytes, 29 lines download raw bytes

1/*!
2* dropselect - v1.2.0
3*
4* jQuery plugin to make Bootstrap dropdown to "behave like" html select element
5* Requires jQuery, Bootstrap
6*
7* @license
8*
9* Copyright (c) 2015 Volkan Kucukcakar.
10*
11* Permission is hereby granted, free of charge, to any person obtaining a copy
12* of this software and associated documentation files (the "Software"), to deal
13* in the Software without restriction, including without limitation the rights
14* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
15* copies of the Software, and to permit persons to whom the Software is
16* furnished to do so, subject to the following conditions:
17*
18* The above copyright notice and this permission notice shall be included in all
19* copies or substantial portions of the Software.
20*
21* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
22* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
23* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
24* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
25* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
26* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
27* SOFTWARE.
28*/(function($,window2,document2,undefined){$.fn.dropselect=function(method,param){switch(method){case undefined:case"":return this.filter(".dropdown, .dropup").each(function(){$(this).find(".dropdown-menu a").addClass("dropselect-option").css("cursor","pointer"),$(this).find('.dropdown-menu a[data-selected="selected"]').each(function(){$(this).parents(".dropdown, .dropup").find('button[data-toggle="dropdown"] .dropdown-label').html($(this).text()),$(this).parents(".dropdown, .dropup").find('input[type="hidden"]').val($(this).attr("data-value"))}),$(this).find(".dropdown-menu a").on("click",function(event){$(this).parents(".dropdown, .dropup").find('button[data-toggle="dropdown"]').focus(),$(this).parents(".dropdown, .dropup").find('button[data-toggle="dropdown"] .dropdown-label').html($(this).text()),$(this).parents(".dropdown, .dropup").find('input[type="hidden"]').val($(this).attr("data-value"));var trigger_change2=$(this).attr("data-selected")!="selected";$(this).parents(".dropdown, .dropup").find("a").removeAttr("data-selected"),$(this).attr("data-selected","selected"),trigger_change2&&$(this).trigger("change")})}),this;case"select":var trigger_change=$(this).filter(".dropdown, .dropup").find('.dropdown-menu a[data-value="'+param+'"]').attr("data-selected")!="selected";return $(this).filter(".dropdown, .dropup").find(".dropdown-menu a").removeAttr("data-selected"),$(this).filter(".dropdown, .dropup").find('.dropdown-menu a[data-value="'+param+'"]').attr("data-selected","selected"),$(this).filter(".dropdown, .dropup").find('button[data-toggle="dropdown"] .dropdown-label').html($(this).filter(".dropdown, .dropup").find('.dropdown-menu a[data-selected="selected"]').text()),$(this).filter(".dropdown, .dropup").find('input[type="hidden"]').val($(this).filter(".dropdown, .dropup").find('.dropdown-menu a[data-selected="selected"]').attr("data-value")),trigger_change&&$(this).filter(".dropdown, .dropup").find(".dropdown-menu a").trigger("change"),this;break;case"value":return $(this).filter(".dropdown, .dropup").find('a.dropselect-option[data-selected="selected"]').attr("data-value")}}})(jQuery,window,document);
29//# sourceMappingURL=/cdn/shop/t/25/assets/jquery.dropselect.js.map?v=134717956503019150221636484286

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.