PageSourceSearch

https://unonline.org/sites/un2.un.org/themes/bootstrap_un2/js/boot…/bootstrap-add-clear.min37b3.js?so337i

js unonline.org collected 2026-09-26 13:06:28 UTC 2,427 bytes, 5 lines download raw bytes

1/*!
2 * bootstrap-add-clear v1.0.7 (http://github.com/gesquive/bootstrap-add-clear)
3 * Licensed under MIT (http://github.com/gesquive/bootstrap-add-clear/blob/master/LICENSE)
4 */
5!function(i,n,s,e){function t(n,s){this.element=n,this.options=i.extend({},o,s),this._defaults=o,this._name=a,this.init()}var a="addClear";t.prototype={init:function(){var n=i(this.element),s=this,e=this.options;n.wrap("<div class='add-clear-span form-group has-feedback "+e.wrapperClass+"'></div>"),n.after(i("<span class='add-clear-x form-control-feedback "+e.symbolClass+"' style='display: none;'>"+e.closeSymbol+"</span>")),n.next().css({color:e.color,cursor:"pointer","text-decoration":"none",display:"none",overflow:"hidden",position:"absolute","pointer-events":"auto",right:e.right,top:e.top,"z-index":e.zindex},this),n.val().length>=1&&e.showOnLoad===!0&&n.siblings(".add-clear-x").show(),n.on("focus.addclear",function(){i(this).val().length>=1&&i(this).siblings(".add-clear-x").show()}),n.on("blur.addclear",function(){var n=this;e.hideOnBlur&&setTimeout(function(){i(n).siblings(".add-clear-x").hide()},50)}),n.on("keyup.addclear",function(n){e.clearOnEscape===!0&&27==n.keyCode&&(i(this).val("").focus(),e.onClear&&e.onClear(i(this).siblings("input"))),i(this).val().length>=1?i(this).siblings(".add-clear-x").show():i(this).siblings(".add-clear-x").hide()}),n.on("input.addclear change.addclear paste.addclear",function(){i(this).val().length>=1?i(this).siblings(".add-clear-x").show():i(this).siblings(".add-clear-x").hide()}),n.siblings(".add-clear-x").on("click.addclear",function(n){i(this).siblings(s.element).val(""),i(this).hide(),e.returnFocus===!0&&i(this).siblings(s.element).focus(),e.onClear&&e.onClear(i(this).siblings("input")),n.preventDefault()})}},i.fn[a]=function(n,s,e){return this.each(function(){if("option"===n){var o=i(this);"show"===s?o.siblings(".add-clear-x").show():"hide"===s&&o.siblings(".add-clear-x").hide()}var l=s&&"show"!==s&&"hide"!==s;if(l){var d=i.data(this,"plugin_"+a);if(!d||!d.options)throw"Cannot set option, plugin was not instantiated";d.options[s]=e}else i.data(this,"plugin_"+a)||i.data(this,"plugin_"+a,new t(this,n))})},i.fn[a].Constructor=t;var o=i.fn[a].defaults={closeSymbol:"",symbolClass:"glyphicon glyphicon-remove-circle",color:"#CCC",top:0,right:0,returnFocus:!0,showOnLoad:!1,onClear:null,hideOnBlur:!1,clearOnEscape:!0,wrapperClass:"",zindex:100}}(jQuery,window,document);

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.