PageSourceSearch

https://doku.pub/static/javascripts/main.js?v=1790242127

js doku.pub collected 2026-09-24 09:28:49 UTC 3,446 bytes, 44 lines download raw bytes

1var upload_accepted_types = [
2    'application/pdf',
3    'application/epub+zip',
4    'application/vnd.ms-powerpoint',
5    'application/vnd.openxmlformats-officedocument.presentationml.presentation',
6    'application/msword',
7    'application/vnd.openxmlformats-officedocument.wordprocessingml.document',
8    'application/vnd.ms-excel',
9    'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet'
10];
11var upload_max_size = '20MB';
12var upload_url = site_url + '/upload-document/';
13
14FilePond.registerPlugin(FilePondPluginFileValidateSize),FilePond.setOptions({dropOnPage:!0,dropOnElement:!0,server:{url:upload_url}});var pond=FilePond.create(document.querySelector(".filepond"),{allowFileSizeValidation:!0,maxFileSize:upload_max_size,acceptedFileTypes:upload_accepted_types,files:upload_files});
15if($('a[data-toggle="tab"]').on("click",function(t){var i=$(this).attr("href"),o=window.localStorage.getItem("activeTab")?window.localStorage.getItem("activeTab").split(","):[],a=$(t.target).parents(".nav-tabs").find('[data-toggle="tab"]');$.each(a,function(t,a){var e=$(a).attr("href");i!=e&&-1!==o.indexOf(e)&&o.splice(o.indexOf(e),1)}),-1===o.indexOf($(t.target).attr("href"))&&o.push($(t.target).attr("href")),window.localStorage.setItem("activeTab",o.join(","))}),activeTabs=window.localStorage.getItem("activeTab")){var activeTabs=window.localStorage.getItem("activeTab")?window.localStorage.getItem("activeTab").split(","):[];$.each(activeTabs,function(t,a){$('[data-toggle="tab"][href="'+a+'"]').tab("show")})}
16(function(){var l;(l=jQuery).growl=function(t,s){var e,a,o;switch(s=l.extend({},l.growl.default_options,s),(e=l("<div>")).attr("class","bootstrap-growl alert"),s.type&&e.addClass("alert-"+s.type),s.allow_dismiss&&(e.addClass("alert-dismissible"),e.addClass("small"),e.append('<button  class="close" data-dismiss="alert" type="button"><span aria-hidden="true">&#215;</span><span class="sr-only">Close</span></button>')),e.append(t),s.top_offset&&(s.offset={from:"top",amount:s.top_offset}),o=s.offset.amount,l(".bootstrap-growl").each(function(){return o=Math.max(o,parseInt(l(this).css(s.offset.from))+l(this).outerHeight()+s.stackup_spacing)}),(a={position:"body"===s.ele?"fixed":"absolute",margin:0,"z-index":"9999",display:"none"})[s.offset.from]=o+"px",e.css(a),"auto"!==s.width&&e.css("width",s.width+"px"),l(s.ele).append(e),s.align){case"center":e.css({left:"50%","margin-left":"-"+e.outerWidth()/2+"px"});break;case"left":e.css("left","20px");break;default:e.css("right","20px")}return e.fadeIn(),0<s.delay&&e.delay(s.delay).fadeOut(function(){return l(this).alert("close")}),e},l.growl.default_options={ele:"body",type:"info",offset:{from:"top",amount:20},align:"right",width:300,delay:1e4,allow_dismiss:!0,stackup_spacing:10}}).call(this);
17
18
19if (site_messages.length > 0) {
20    $.each(site_messages, function (index, elm) {
21        $.growl(elm.message, {
22            type: elm.type
23        });
24    });
25}
26
27$(document).on("click", ".bb-alert", function (e, item) {
28    if ($(this).attr("data-msg")) {
29        bootbox.alert($(this).attr("data-msg"));
30    }
31    return false;
32});
33
34$(document).on("click", ".bb-confirm", function (e, item) {
35    if ($(this).attr("data-msg")) {
36        var final_href = $(this).attr("href")
37        bootbox.confirm($(this).attr("data-msg"), function(result) {
38            if (result) {
39                window.location = final_href;
40            }
41        });
42    }
43    return false;
44});

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.