PageSourceSearch

https://www.alzaytouna.net/wp-content/plugins/embed-any-document/js/pdfobject.min.js?ver=2.7.14

js alzaytouna.net collected 2026-09-24 09:04:45 UTC 4,481 bytes, 13 lines download raw bytes

1/**
2 *  PDFObject v2.1.1
3 *  https://github.com/pipwerks/PDFObject
4 *  @license
5 *  Copyright (c) 2008-2018 Philip Hutchison
6 *  MIT-style license: http://pipwerks.mit-license.org/
7 *  UMD module pattern from https://github.com/umdjs/umd/blob/master/templates/returnExports.js
8 *
9 *  Locally patched: generateEmbedElement/generateIframeElement/generatePDFJSiframe
10 *  now build elements via createElement/setAttribute instead of innerHTML string
11 *  concatenation, to prevent DOM XSS from unsanitized URLs reaching this library.
12 */
13((e,t)=>{"function"==typeof define&&define.amd?define([],t):"object"==typeof module&&module.exports?module.exports=t():e.PDFObject=t()})(this,function(){var e,b,t,m,o,n,g,i,v,h,r,y,w,P,s,A,T,j;return"undefined"!=typeof window&&"undefined"!=typeof navigator&&(n=window.navigator.userAgent,e=void 0!==navigator.mimeTypes&&void 0!==navigator.mimeTypes["application/pdf"],b=void 0!==window.Promise,t=-1!==n.indexOf("irefox")&&-1===n.indexOf("Mobile")&&-1===n.indexOf("Tablet")&&18<parseInt(n.split("rv:")[1].split(".")[0],10),m=/iphone|ipad|ipod/i.test(n.toLowerCase()),o=function(e){var t;try{t=new ActiveXObject(e)}catch(e){t=null}return t},n=function(){return!!(window.ActiveXObject||"ActiveXObject"in window)},g=!m&&navigator.vendor&&-1!==navigator.vendor.indexOf("Apple")&&navigator.userAgent&&-1!==navigator.userAgent.indexOf("Safari"),i=function(){return!(!o("AcroPDF.PDF")&&!o("PDF.PdfCtrl"))},v=!m&&(t||e||n()&&i()),h=function(e){var t,o="";if(e){for(t in e)e.hasOwnProperty(t)&&(o+=encodeURIComponent(t)+"="+encodeURIComponent(e[t])+"&");o=o&&(o="#"+o).slice(0,o.length-1)}return o},r=function(e){"undefined"!=typeof console&&console.log&&console.log("[PDFObject] "+e)},y=function(e){return r(e),!1},w=function(e){var t=document.body;return"string"==typeof e?t=document.querySelector(e):"undefined"!=typeof jQuery&&e instanceof jQuery&&e.length?t=e.get(0):void 0!==e.nodeType&&1===e.nodeType&&(t=e),t},P=function(e){return String(e).replace(/&/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&#39;")},s=function(e){var t="pdfobject-container",o=e.className.split(/\s+/);-1===o.indexOf(t)&&(o.push(t),e.className=o.join(" "))},A=function(e,t,o,n,i){n=n+"?file="+encodeURIComponent(t)+o,t=m?"-webkit-overflow-scrolling: touch; overflow-y: scroll; ":"overflow: hidden; ",o=document.createElement("div"),o.style.cssText=t+"position: absolute; top: 0; right: 0; bottom: 0; left: 0;",t=document.createElement("iframe");return t.setAttribute("src",n),t.setAttribute("frameborder","0"),t.style.cssText="border: none; width: 100%; height: 100%;",i&&(t.id=i),o.appendChild(t),s(e),e.style.position="relative",e.style.overflow="auto",e.innerHTML="",e.appendChild(o),t},T=function(e,t,o,n,i,r,d){var a="",a=t&&t!==document.body?"width: "+i+"; height: "+r+";":"position: absolute; top: 0; right: 0; bottom: 0; left: 0; width: 100%; height: 100%;",t=(s(e),document.createElement("embed"));return t.setAttribute("class","pdfobject"),t.setAttribute("src",o+n),t.setAttribute("type","application/pdf"),t.style.cssText="overflow: auto; "+a,d&&(t.id=d),e.innerHTML="",e.appendChild(t),t},j=function(e,t,o,n,i,r,d){var a="",a=t&&t!==document.body?"width: "+i+"; height: "+r+";":"position: absolute; top: 0; right: 0; bottom: 0; left: 0; width: 100%; height: 100%;",t=(e.className+=" pdfobject-container",document.createElement("iframe"));return t.setAttribute("class","pdfobject"),t.setAttribute("src",o+n),t.setAttribute("type","application/pdf"),t.style.cssText="border: none; "+a,d&&(t.id=d),e.innerHTML="",e.appendChild(t),t},{embed:function(e,t,o){var n,i,r,d,a,s,p,c,l,u,f;return"string"!=typeof e?y("URL is not valid"):(n=(o=void 0!==o?o:{}).id&&"string"==typeof o.id?o.id:"",i=o.page||!1,r=o.pdfOpenParams||{},d=void 0===o.fallbackLink||o.fallbackLink,a=o.width||"100%",s=o.height||"100%",p="boolean"!=typeof o.assumptionMode||o.assumptionMode,c="boolean"==typeof o.forcePDFJS&&o.forcePDFJS,l="boolean"==typeof o.supportRedirect&&o.supportRedirect,o=o.PDFJS_URL||!1,f="",(u=w(t=void 0!==t&&t))?(i&&(r.page=i),f=h(r),c&&o?A(u,e,f,o,n):v||p&&b&&!m?(l&&g?j:T)(u,t,e,f,a,s,n):o?A(u,e,f,o,n):(d&&(u.innerHTML=("string"==typeof d?d:"<p>This browser does not support inline PDFs. Please download the PDF to view it: <a href='[url]'>Download PDF</a></p>").replace(/\[url\]/g,P(e))),y("This browser does not support embedded PDFs"))):y("Target element cannot be determined"))},pdfobjectversion:"2.1.1",supportsPDFs:v})});

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.