PageSourceSearch

https://www.ukbb.ch/wp-content/cache/min/1/wp-content/plugins/jetf…/jquery-sortable/sortable.js?ver=1790579119

js ukbb.ch collected 2026-10-02 14:47:36 UTC 2,229 bytes, 12 lines download raw bytes

1(function($){var dragging,placeholders=$();$.fn.sortable=function(options){var method=String(options);options=$.extend({connectWith:!1},options);return this.each(function(){if(/^(enable|disable|destroy)$/.test(method)){var items=$(this).children($(this).data('items')).attr('draggable',method=='enable');if(method=='destroy'){items.add(this).removeData('connectWith items').off('dragstart.h5s dragend.h5s selectstart.h5s dragover.h5s dragenter.h5s drop.h5s')}
2return}
3var isHandle,index,items=$(this).children(options.items);var placeholder=$('<'+(/^(ul|ol)$/i.test(this.tagName)?'li':'div')+' class="sortable-placeholder">');items.find(options.handle).mousedown(function(){isHandle=!0}).mouseup(function(){isHandle=!1});$(this).data('items',options.items)
4placeholders=placeholders.add(placeholder);if(options.connectWith){$(options.connectWith).add(this).data('connectWith',options.connectWith)}
5items.attr('draggable','true').on('dragstart.h5s',function(e){if(options.handle&&!isHandle){return!1}
6isHandle=!1;var dt=e.originalEvent.dataTransfer;dt.effectAllowed='move';dt.setData('Text','dummy');index=(dragging=$(this)).addClass('sortable-dragging').index()}).on('dragend.h5s',function(){if(!dragging){return}
7dragging.removeClass('sortable-dragging').show();placeholders.detach();if(index!=dragging.index()){dragging.parent().trigger('sortupdate',{item:dragging})}
8dragging=null}).not('a[href], img').on('selectstart.h5s',function(){this.dragDrop&&this.dragDrop();return!1}).end().add([this,placeholder]).on('dragover.h5s dragenter.h5s drop.h5s',function(e){if(!items.is(dragging)&&options.connectWith!==$(dragging).parent().data('connectWith')){return!0}
9if(e.type=='drop'){e.stopPropagation();placeholders.filter(':visible').after(dragging);dragging.trigger('dragend.h5s');return!1}
10e.preventDefault();e.originalEvent.dataTransfer.dropEffect='move';if(items.is(this)){if(options.forcePlaceholderSize){placeholder.height(dragging.outerHeight())}
11dragging.hide();$(this)[placeholder.index()<$(this).index()?'after':'before'](placeholder);placeholders.not(placeholder).detach()}else if(!placeholders.is(this)&&!$(this).children(options.items).length){placeholders.detach();$(this).append(placeholder)}
12return!1})})}})(jQuery)

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.