PageSourceSearch

https://ncc.edu/_resources/plugins/idealSelect/jquery.idealselect.min.js

js ncc.edu collected 2026-10-02 05:32:16 UTC 3,849 bytes, 1 lines download raw bytes

1!function e(t,i,n){function s(l,o){if(!i[l]){if(!t[l]){var c="function"==typeof require&&require;if(!o&&c)return c(l,!0);if(r)return r(l,!0);var a=new Error("Cannot find module '"+l+"'");throw a.code="MODULE_NOT_FOUND",a}var u=i[l]={exports:{}};t[l][0].call(u.exports,function(e){var i=t[l][1][e];return s(i?i:e)},u,u.exports,e,t,i,n)}return i[l].exports}for(var r="function"==typeof require&&require,l=0;l<n.length;l++)s(n[l]);return s}({1:[function(e){(function(t,i){e("./plugin")({name:"idealselect",methods:{_init:function(){return this.select$=t(this.el),this.select$.css({position:"absolute",left:"-9999px"}).attr("tabindex",-1),this._build()},_build:function(){var e,i;return this.options$=this.select$.find("option"),e=this.options$.filter(":selected"),this.items$=t(this.options$.map(function(){return'<li title="'+t(this).text()+'">'+t(this).text()+"</li>"}).get().join("")),this.items$.eq(e.index()).addClass("selected"),this.title$=t('<a href="#" class="title" tabindex="-1">\n <span>'+e.text()+"</span>\n <i/>\n</a>"),this.dropdown$=t('<ul class="dropdown"></ul>').append(this.items$),this.idealselect$=t('<div class="idealselect" tabindex="0">\n <ul>\n <li></li>\n </ul>\n</div>'),this.select$.next(".idealselect").remove(),i=this.idealselect$,i.find("li").append(this.title$,this.dropdown$),i.insertAfter(this.select$),this._events()},_update:function(e){return this.options$.eq(e).prop("selected",!0),this.idealselect$.find(".title span").text(this.items$.eq(e).text()),this.items$.removeClass("selected").eq(e).addClass("selected")},_scroll:function(e){var t,i,n;return t=e?this.items$.eq(e):this.items$.filter(".selected"),i=this.dropdown$.height(),n=t.position().top,n>=i&&(t.parent()[0].scrollTop=t[0].offsetTop-i+t.height()),!e||0>n?t.parent()[0].scrollTop=t[0].offsetTop:void 0},_find:function(e){var i,n,s;return i=this.items$.filter(function(){return 0===t(this).text().indexOf(e)}),n=i.index(),s=i.slice(i.index(i.filter(".selected"))+1,i.length).index(),s>-1?s:n},_events:function(){var e=this;return this.select$.change(function(i){return e._update(t(i.target).find(":selected").index())}),this.title$.click(function(t){return t.preventDefault(),e.idealselect$.focus().toggleClass("open"),e._scroll()}),this.items$.click(function(i){return e._update(t(i.target).index()),e.idealselect$.removeClass("open"),e.select$.change()}),this.idealselect$.mousedown(function(e){return e.preventDefault()}).focus(function(){return e.select$.triggerHandler("focus")}).blur(function(){return e.idealselect$.removeClass("open"),e.select$.blur()}).keydown(function(n){var s,r;switch(s=e.options$.filter(":selected").index(),n.which){case 13:e.idealselect$.toggleClass("open");break;case 38:s-1>-1&&(s-=1);break;case 40:s+1<e.items$.length&&(s+=1);break;default:s=e._find(String.fromCharCode(n.which)),r=!0}return s>-1&&(e._update(s),e._scroll(r?0:s),e.select$.change()),t(i).one("keydown",function(e){return 38===e.which||40===e.which?e.preventDefault():void 0})})}}})}).call(this,jQuery,document,window)},{"./plugin":2}],2:[function(e,t){t.exports=function(){var e=Array.prototype;return function(t){function i(e,i){this.opts=$.extend({},t.defaults,i),this.el=e,this._name=t.name,this._init()}t=$.extend(!0,{name:"plugin",defaults:{},methods:{},global:{}},t),i.prototype._init=$.noop,i.prototype[t.name]=function(t){if(!t)return this;try{return this[t].apply(this,e.slice.call(arguments,1))}catch(i){}},$.extend(i.prototype,t.methods),$.fn[t.name]=function(){var n,s=e.slice.call(arguments),r="string"==typeof s[0]&&s[0].split(":"),l=r[r.length>1?1:0],o=r.length>1&&r[0],c="object"==typeof s[0]&&s[0],a=s.slice(1);return o&&(l=o+l.substr(0,1).toUpperCase()+l.substr(1,l.length-1)),this.each(function(){var e=$.data(this,t.name);return e?n=e[t.name].apply(e,[l].concat(a)):$.data(this,t.name,new i(this,c))}),o?n:this}}}()},{}]},{},[1]);

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.