PageSourceSearch

https://www.harmonica.com/wp-content/themes/harmonica.com.v3/inc/m…/js/noteflight-api.min.js?ver=4.3.2

js harmonica.com collected 2026-10-02 06:56:34 UTC 3,097 bytes, 2 lines download raw bytes

1(()=>{window.NFClient={};(function(){"use strict";var M="2.0.0";NFClient.init=function(f){f&&f({version:M})},NFClient.ScoreView=function(f){var O="/embed/",n=this,s,d,v;if(n.getSubstringIndex=function(t,e,i){for(var a=0,r=null;a<i&&r!==-1;)r=t.indexOf(e,r+1),a++;return r},typeof f=="string"){v=f;var C=arguments[1],c=arguments[2],u=document.getElementById(v),s=document.createElement("iframe");let e="https";c.protocol&&console.warn('The "protocol" argument is deprecated, as all assets are served over https by default');var S=c.host||"www.noteflight.com";d=e+"://"+S;var I=c.staticViewerLocation,l="",A="";n.iterateObject=function(i,a){for(var r in i)i.hasOwnProperty(r)&&(typeof i[r]=="object"?n.iterateObject(i[r],a+r+"."):(l&&(l+="&"),l+=encodeURIComponent(a+r)+"="+encodeURIComponent(i[r])))};var E=c.width||800,N=c.height||600;c.viewParams&&(n.iterateObject(c.viewParams,""),n.iterateObject({windowWidth:E,windowHeight:N},""));var h="";I?h=I:h=d+O+encodeURIComponent(C),l&&(h+="?"+l),s.setAttribute("id",v),s.setAttribute("src",h),s.setAttribute("width",E),s.setAttribute("height",N),s.setAttribute("allow","autoplay"),s.style.border="1px solid #f0f0f0",u.parentNode.insertBefore(s,u),u.parentNode.removeChild(u)}else{s=f,v=s.getAttribute("id");var p=s.getAttribute("src");d=p.substring(0,n.getSubstringIndex(p,"/",3))}var g,k=0,m={},o={};if(n.handleMessage=function(t){if(t.origin==d&&t.source==s.contentWindow&&typeof t.data=="string"){var e={};try{e=JSON.parse(t.data)}catch(a){}if(e.kind=="initialized")g&&(clearInterval(g),g=null);else if(e.kind=="invokeResult")m[e.invocationId]&&(m[e.invocationId].success(e.result),delete m[e.invocationId]);else if(e.kind=="noteflightEvent"&&e.event){if(e.event.embedId=v,e.event.target=n,e.event.type=="editorReady"&&e.event.methodNames)for(var i=0;i<e.event.methodNames.length;i++)n.createMethodStub(e.event.methodNames[i]);n.dispatchEvent(e.event.type,e.event),n.dispatchEvent("any",e.event)}}},n.dispatchMessage=function(t){typeof JSON!="undefined"&&s.contentWindow.postMessage(JSON.stringify(t),d)},window.addEventListener?window.addEventListener("message",n.handleMessage):window.attachEvent&&window.attachEvent("onmessage",n.handleMessage),typeof JSON!="undefined")g=setInterval(function(){n.dispatchMessage({kind:"initializeViewer"})},100);else throw new Error("Noteflight API requires JSON");n.applyMethod=function(t,e){var i={kind:"invokeMethod",methodName:t,args:e},a={doneCallbacks:[],done:function(w){return this.doneCallbacks.push(w),this},success:function(w){for(var b=0;b<this.doneCallbacks.length;b++)this.doneCallbacks[b](w)}},r=++k;return m[r]=a,i.invocationId=r,n.dispatchMessage(i),a},n.createMethodStub=function(t){n[t]=function(){return n.applyMethod(t,Array.prototype.slice.call(arguments,0))}},n.addEventListener=function(t,e){o[t]||(o[t]=[]),o[t].push(e)},n.removeEventListener=function(t,e){if(o[t]){for(var i=0;i<o[t].length;i++)if(o[t][i]===e)return o[t].splice(i,1),!0}return!1},n.dispatchEvent=function(t,e){if(o[t])for(var i=0;i<o[t].length;i++)o[t][i](e)}}})();})();
2//# sourceMappingURL=noteflight-api.min.js.map

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.