PageSourceSearch

https://scoutingwire.org/wp-content/themes/scoutwire/js/selectSkin.js

js scoutingwire.org collected 2026-10-02 05:48:01 UTC 1,512 bytes, 45 lines download raw bytes

1(function() {
2
3  (function($, undefined_) {
4    $.skinnedSelect = function(element, options) {
5      var $element, convertSelect, defaults, plugin;
6      defaults = {
7        textClass: "skinned-text",
8        selectClass: "skinned-select",
9        wrapperClass: "skinned-wrapper"
10      };
11      plugin = this;
12      plugin.settings = {};
13      $element = $(element);
14      plugin.init = function() {
15        plugin.settings = $.extend({}, defaults, options);
16        return convertSelect();
17      };
18      convertSelect = function() {
19        var parentTextObj, wrapper;
20        wrapper = $(element).wrapAll("<div class=\"" + plugin.settings.wrapperClass + "\" />");
21        wrapper.removeClass(this.selector);
22        wrapper.addClass(plugin.settings.selectClass);
23        wrapper.before("<div class=\"" + plugin.settings.textClass + "\">Text</div>").each(function() {
24          return $(this).prev().text($(":selected", this).html());
25        });
26        parentTextObj = wrapper.prev();
27        return wrapper.change(function() {
28          return parentTextObj.text($(":selected", this).html());
29        });
30      };
31      return plugin.init();
32    };
33    return $.fn.skinnedSelect = function(options) {
34      return this.each(function() {
35        var plugin;
36        plugin = void 0;
37        if (void 0 === $(this).data("skinnedSelect")) {
38          plugin = new $.skinnedSelect(this, options);
39          return $(this).data("skinnedSelect", plugin);
40        }
41      });
42    };
43  })(jQuery);
44
45}).call(this);

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.