rem stringlengths 0 126k | add stringlengths 0 441k | context stringlengths 15 136k |
|---|---|---|
if(schema['Enum']){ var enumer = schema['Enum']; | if(schema.Enum){ var enumer = schema.Enum; | _validate : function(/*Any*/instance,/*Object*/schema,/*Boolean*/ _changing) { var recursion = -1; var errors = []; var prettyPrint = []; function addPrint(indent, message){ var str = ""; for (var i = 0; i < indent; i++) str += "\t"; prettyPrint.push(str + message); } function appendPrint(message){ if (prettyPri... |
if(typeof schema.maxDecimal == 'number' && | if(typeof schema.maxDecimal === 'number' && | _validate : function(/*Any*/instance,/*Object*/schema,/*Boolean*/ _changing) { var recursion = -1; var errors = []; var prettyPrint = []; function addPrint(indent, message){ var str = ""; for (var i = 0; i < indent; i++) str += "\t"; prettyPrint.push(str + message); } function appendPrint(message){ if (prettyPri... |
if(instance.hasOwnProperty(i)) { | if(instance.hasOwnProperty(i) && typeof instance[i] !== 'function') { | _validate : function(/*Any*/instance,/*Object*/schema,/*Boolean*/ _changing) { var recursion = -1; var errors = []; var prettyPrint = []; function addPrint(indent, message){ var str = ""; for (var i = 0; i < indent; i++) str += "\t"; prettyPrint.push(str + message); } function appendPrint(message){ if (prettyPri... |
errors.push({property:path+' '+i,message:(typeof i) + " The property " + i + | errors.push({property:path+' '+i,message:(typeof instance[i]) + " The property " + i + | _validate : function(/*Any*/instance,/*Object*/schema,/*Boolean*/ _changing) { var recursion = -1; var errors = []; var prettyPrint = []; function addPrint(indent, message){ var str = ""; for (var i = 0; i < indent; i++) str += "\t"; prettyPrint.push(str + message); } function appendPrint(message){ if (prettyPri... |
R in P&&delete P[Q[S]];}}return O;},embed:function(O){var P=O.parent;if(P&&P.name=='object'){var Q=P.attributes.width,R=P.attributes.height;Q&&(O.attributes.width=Q);R&&(O.attributes.height=R);}},param:function(O){O.children=[];O.isEmpty=true;return O;},a:function(O){if(!(O.children.length||O.attributes.name||O.attribu... | if(w(C))return;if(k.enterMode==CKEDITOR.ENTER_BR){delete C.name;C.add(new CKEDITOR.htmlParser.element('br'));}else o(k['format_'+(k.enterMode==CKEDITOR.ENTER_P?'p':'div')])(C);},div:function(C){var D=C.onlyChild();if(D&&D.name=='table'){var E=C.attributes;D.attributes=CKEDITOR.tools.extend(D.attributes,E);E.style&&D.ad... | R in P&&delete P[Q[S]];}}return O;},embed:function(O){var P=O.parent;if(P&&P.name=='object'){var Q=P.attributes.width,R=P.attributes.height;Q&&(O.attributes.width=Q);R&&(O.attributes.height=R);}},param:function(O){O.children=[];O.isEmpty=true;return O;},a:function(O){if(!(O.children.length||O.attributes.name||O.attribu... |
typeof u=="string"}function C(j){if(j.substr(0,1)=="/")return r+j;if(j.substr(0,1)=="."||!j.match(/^\s*\w+:\/\ | n.addEventListener("click",function(){n.play()},false)})})}function B(j,n,u){return u||k[j][n.split(".").slice(-1)[0]]||F[j]}function y(j,n){var u=j.getAttribute(n);return u==true||typeof u=="string"}function C(j){if(j.substr(0,1)=="/")return r+j;if(j.substr(0,1)=="."||!j.match(/^\s*\w+:\/\ else return u;if(j=="auto")r... | typeof u=="string"}function C(j){if(j.substr(0,1)=="/")return r+j;if(j.substr(0,1)=="."||!j.match(/^\s*\w+:\/\//))return w+j;return j}function A(j,n,u){var x=j.getAttribute(n);if(x)return x+"px";if(j.currentStyle)j=j.currentStyle[n];else if(z.getComputedStyle)j=o.defaultView.getComputedStyle(j,null).getPropertyValue(n)... |
WT_DECLARE_WT_MEMBER(1,"WSuggestionPopup",function(q,d,x,y,p){function r(){return d.style.display!="none"}function k(){d.style.display="none"}function z(a){c.positionAtWidget(d.id,a.id,c.Vertical)}function A(a){a=a||window.event;a=a.target||a.srcElement;if(a.className!="content"){if(!c.hasTag(a,"DIV"))a=a.parentNode;s(... | WT_DECLARE_WT_MEMBER(1,"WSuggestionPopup",function(q,d,y,z,r){function m(a){return $(a).hasClass("Wt-suggest-onedit")||$(a).hasClass("Wt-suggest-dropdown")}function s(){return d.style.display!="none"}function k(){d.style.display="none"}function A(a){c.positionAtWidget(d.id,a.id,c.Vertical)}function B(a){a=a||window.eve... | WT_DECLARE_WT_MEMBER(1,"WSuggestionPopup",function(q,d,x,y,p){function r(){return d.style.display!="none"}function k(){d.style.display="none"}function z(a){c.positionAtWidget(d.id,a.id,c.Vertical)}function A(a){a=a||window.event;a=a.target||a.srcElement;if(a.className!="content"){if(!c.hasTag(a,"DIV"))a=a.parentNode;s(... |
document.activeElement};this.history=function(){function a(){var l,p;p=location.href;l=p.indexOf("#");return l>=0?p.substr(l+1):null}function b(){v.value=G+"|"+C;if(u)v.value+="|"+M.join(",")}function f(l){if(l){if(!l||C!==l){C=l||G;H(unescape(C))}}else{C=G;H(unescape(C))}}function k(l){var p;l='<html><body><div id="st... | a.style.visibility=""};this.hasFocus=function(a){return a==document.activeElement};this.history=function(){function a(){var l,q;q=location.href;l=q.indexOf("#");return l>=0?q.substr(l+1):null}function b(){w.value=G+"|"+C;if(v)w.value+="|"+M.join(",")}function f(l){if(l){if(!l||C!==l){C=l||G;H(unescape(C))}}else{C=G;H(u... | document.activeElement};this.history=function(){function a(){var l,p;p=location.href;l=p.indexOf("#");return l>=0?p.substr(l+1):null}function b(){v.value=G+"|"+C;if(u)v.value+="|"+M.join(",")}function f(l){if(l){if(!l||C!==l){C=l||G;H(unescape(C))}}else{C=G;H(unescape(C))}}function k(l){var p;l='<html><body><div id="st... |
""};this.hasFocus=function(a){return a==document.activeElement};this.history=function(){function a(){var g,p;p=location.href;g=p.indexOf("#");return g>=0?p.substr(g+1):null}function b(){J.value=L+"|"+C;if(u)J.value+="|"+D.join(",")}function e(g){if(g){if(!g||C!==g){C=g||L;E(unescape(C))}}else{C=L;E(unescape(C))}}functi... | ""};this.hasFocus=function(a){return a==document.activeElement};this.history=function(){function a(){var g,p;p=location.href;g=p.indexOf("#");return g>=0?p.substr(g+1):null}function b(){K.value=L+"|"+C;if(u)K.value+="|"+D.join(",")}function e(g){if(g){if(!g||C!==g){C=g||L;E(unescape(C))}}else{C=L;E(unescape(C))}}functi... | ""};this.hasFocus=function(a){return a==document.activeElement};this.history=function(){function a(){var g,p;p=location.href;g=p.indexOf("#");return g>=0?p.substr(g+1):null}function b(){J.value=L+"|"+C;if(u)J.value+="|"+D.join(",")}function e(g){if(g){if(!g||C!==g){C=g||L;E(unescape(C))}}else{C=L;E(unescape(C))}}functi... |
e+"ctrlKey=1";if(h.metaKey)g+=e+"metaKey=1";if(h.shiftKey)g+=e+"shiftKey=1";c.data=g;return c}function t(){var c="";feedback=false;for(var d=0;d<v.length;++d){feedback=feedback||v[d].feedback;c+=v[d].data}V=v;v=[];return{feedback:feedback,result:c}}function A(){q.history._initTimeout();R==0&&J(null,"none",null,false);W... | e+"ctrlKey=1";if(h.metaKey)g+=e+"metaKey=1";if(h.shiftKey)g+=e+"shiftKey=1";c.data=g;return c}function t(){var c="";feedback=false;for(var d=0;d<v.length;++d){feedback=feedback||v[d].feedback;c+=v[d].data}V=v;v=[];return{feedback:feedback,result:c}}function A(){q.history._initTimeout();S==0&&J(null,"none",null,false);W... | e+"ctrlKey=1";if(h.metaKey)g+=e+"metaKey=1";if(h.shiftKey)g+=e+"shiftKey=1";c.data=g;return c}function t(){var c="";feedback=false;for(var d=0;d<v.length;++d){feedback=feedback||v[d].feedback;c+=v[d].data}V=v;v=[];return{feedback:feedback,result:c}}function A(){q.history._initTimeout();R==0&&J(null,"none",null,false);W... |
"",d=false,e=0;e<y.length;++e){d=d||y[e].feedback;c+=y[e].data}ga=y;y=[];return{feedback:d,result:c}}function z(){R=true;if(aa){clearTimeout(aa);aa=null}var c=$("#Wt-timers");c.size()>0&&h.setHtml(c.get(0),"",false)}function P(){h.history._initTimeout();ba==0&&u(null,"none",null,false);aa=setTimeout(P,_$_KEEP_ALIVE_$_0... | d+"rotation="+j.rotation;c.data=e;return c}function X(){for(var c="",d=false,e=0;e<y.length;++e){d=d||y[e].feedback;c+=y[e].data}ga=y;y=[];return{feedback:d,result:c}}function N(){R=true;if(aa){clearTimeout(aa);aa=null}var c=$("#Wt-timers");c.size()>0&&h.setHtml(c.get(0),"",false)}function z(){h.history._initTimeout();... | "",d=false,e=0;e<y.length;++e){d=d||y[e].feedback;c+=y[e].data}ga=y;y=[];return{feedback:d,result:c}}function z(){R=true;if(aa){clearTimeout(aa);aa=null}var c=$("#Wt-timers");c.size()>0&&h.setHtml(c.get(0),"",false)}function P(){h.history._initTimeout();ba==0&&u(null,"none",null,false);aa=setTimeout(P,_$_KEEP_ALIVE_$_0... |
k.x+b.offsetWidth;i=k.y;n=k.x;b=k.y+b.offsetHeight}else{e=k.x;i=k.y+b.offsetHeight;n=k.x+b.offsetWidth;b=k.y}h.fitToWindow(a,e,i,n,b)};this.hasFocus=function(a){return a==document.activeElement};this.history=function(){function a(){var l,p;p=location.href;l=p.indexOf("#");return l>=0?p.substr(l+1):null}function b(){F.v... | a.style.display="block";if(e==g.Horizontal){e=j.x+b.offsetWidth;i=j.y;n=j.x;b=j.y+b.offsetHeight}else{e=j.x;i=j.y+b.offsetHeight;n=j.x+b.offsetWidth;b=j.y}g.fitToWindow(a,e,i,n,b)};this.hasFocus=function(a){return a==document.activeElement};this.history=function(){function a(){var l,p;p=location.href;l=p.indexOf("#");r... | k.x+b.offsetWidth;i=k.y;n=k.x;b=k.y+b.offsetHeight}else{e=k.x;i=k.y+b.offsetHeight;n=k.x+b.offsetWidth;b=k.y}h.fitToWindow(a,e,i,n,b)};this.hasFocus=function(a){return a==document.activeElement};this.history=function(){function a(){var l,p;p=location.href;l=p.indexOf("#");return l>=0?p.substr(l+1):null}function b(){F.v... |
O=null}J=null;if(d>0)++W;else W=0;if(!Q)if(ga||z.length>0)if(d==1){d=Math.min(12E4,Math.exp(W)*500);R=setTimeout(function(){G()},d)}else G()}}function x(){J.abort();O=J=null;Q||G()}function A(d,c,f,j){o.checkReleaseCapture(d,f);_$_$if_STRICTLY_SERIALIZED_EVENTS_$_();if(!J){_$_$endif_$_();var m={},g=z.length;m.object=d;... | var _$_WT_CLASS_$_=new (function(){function v(a,b){return a.style[b]?a.style[b]:document.defaultView&&document.defaultView.getComputedStyle?document.defaultView.getComputedStyle(a,null)[b]:a.currentStyle?a.currentStyle[b]:null}function t(a){if(B!=null){if(!a)a=window.event;g.condCall(B,"onmousemove",a);return false}els... | O=null}J=null;if(d>0)++W;else W=0;if(!Q)if(ga||z.length>0)if(d==1){d=Math.min(12E4,Math.exp(W)*500);R=setTimeout(function(){G()},d)}else G()}}function x(){J.abort();O=J=null;Q||G()}function A(d,c,f,j){o.checkReleaseCapture(d,f);_$_$if_STRICTLY_SERIALIZED_EVENTS_$_();if(!J){_$_$endif_$_();var m={},g=z.length;m.object=d;... |
b.offsetHeight;n=k.x+b.offsetWidth;b=k.y}g.fitToWindow(a,e,i,n,b)};this.hasFocus=function(a){return a==document.activeElement};this.history=function(){function a(){var l,p;p=location.href;l=p.indexOf("#");return l>=0?p.substr(l+1):null}function b(){F.value=L+"|"+E;if(u)F.value+="|"+M.join(",")}function e(l){if(l){if(!l... | b.offsetHeight;n=k.x+b.offsetWidth;b=k.y}h.fitToWindow(a,e,i,n,b)};this.hasFocus=function(a){return a==document.activeElement};this.history=function(){function a(){var l,p;p=location.href;l=p.indexOf("#");return l>=0?p.substr(l+1):null}function b(){F.value=L+"|"+E;if(u)F.value+="|"+M.join(",")}function e(l){if(l){if(!l... | b.offsetHeight;n=k.x+b.offsetWidth;b=k.y}g.fitToWindow(a,e,i,n,b)};this.hasFocus=function(a){return a==document.activeElement};this.history=function(){function a(){var l,p;p=location.href;l=p.indexOf("#");return l>=0?p.substr(l+1):null}function b(){F.value=L+"|"+E;if(u)F.value+="|"+M.join(",")}function e(l){if(l){if(!l... |
function(a,b,f){a=g.getElement(a);b=g.getElement(b);var h=g.widgetPageCoordinates(b),k,o;a.style.display="block";if(f==g.Horizontal){f=h.x+b.offsetWidth;k=h.y;o=h.x;b=h.y+b.offsetHeight}else{f=h.x;k=h.y+b.offsetHeight;o=h.x+b.offsetWidth;b=h.y}g.fitToWindow(a,f,k,o,b)};this.hasFocus=function(a){return a==document.activ... | document.activeElement};this.history=function(){function a(){var l,p;p=location.href;l=p.indexOf("#");return l>=0?p.substr(l+1):null}function b(){v.value=G+"|"+C;if(u)v.value+="|"+M.join(",")}function f(l){if(l){if(!l||C!==l){C=l||G;H(unescape(C))}}else{C=G;H(unescape(C))}}function h(l){var p;l='<html><body><div id="st... | function(a,b,f){a=g.getElement(a);b=g.getElement(b);var h=g.widgetPageCoordinates(b),k,o;a.style.display="block";if(f==g.Horizontal){f=h.x+b.offsetWidth;k=h.y;o=h.x;b=h.y+b.offsetHeight}else{f=h.x;k=h.y+b.offsetHeight;o=h.x+b.offsetWidth;b=h.y}g.fitToWindow(a,f,k,o,b)};this.hasFocus=function(a){return a==document.activ... |
function(a,b,f){a=k.getElement(a);b=k.getElement(b);var m=k.widgetPageCoordinates(b),l,o;a.style.display="block";if(f==k.Horizontal){f=m.x+b.offsetWidth;l=m.y;o=m.x;b=m.y+b.offsetHeight}else{f=m.x;l=m.y+b.offsetHeight;o=m.x+b.offsetWidth;b=m.y}k.fitToWindow(a,f,l,o,b)};this.hasFocus=function(a){return a==document.activ... | k.Horizontal){f=m.x+b.offsetWidth;l=m.y;n=m.x;b=m.y+b.offsetHeight}else{f=m.x;l=m.y+b.offsetHeight;n=m.x+b.offsetWidth;b=m.y}k.fitToWindow(a,f,l,n,b)};this.hasFocus=function(a){return a==document.activeElement};this.history=function(){function a(){var g,o;o=location.href;g=o.indexOf("#");return g>=0?o.substr(g+1):null}... | function(a,b,f){a=k.getElement(a);b=k.getElement(b);var m=k.widgetPageCoordinates(b),l,o;a.style.display="block";if(f==k.Horizontal){f=m.x+b.offsetWidth;l=m.y;o=m.x;b=m.y+b.offsetHeight}else{f=m.x;l=m.y+b.offsetHeight;o=m.x+b.offsetWidth;b=m.y}k.fitToWindow(a,f,l,o,b)};this.hasFocus=function(a){return a==document.activ... |
null){N=setTimeout(function(){A()},n.updateDelay);fa=(new Date).getTime()}else if(U){clearTimeout(N);A()}else if((new Date).getTime()-fa>n.updateDelay){clearTimeout(N);A()}}function R(d){ca=d;p._p_.comm.responseReceived(d)}function A(){N=null;if(ba){if(!ga){if(confirm("The application was quited, do you want to restart... | d)}else w()}}function H(){G.abort();M=G=null;w()}function A(d,c,e,h){g.checkReleaseCapture(d,e);_$_$if_STRICTLY_SERIALIZED_EVENTS_$_();if(!G){_$_$endif_$_();var i={},j=z.length;i.object=d;i.signal=c;i.event=e;i.feedback=h;z[j]=R(i,j);F();q();_$_$if_STRICTLY_SERIALIZED_EVENTS_$_()}_$_$endif_$_()}function F(){if(G!=null&... | null){N=setTimeout(function(){A()},n.updateDelay);fa=(new Date).getTime()}else if(U){clearTimeout(N);A()}else if((new Date).getTime()-fa>n.updateDelay){clearTimeout(N);A()}}function R(d){ca=d;p._p_.comm.responseReceived(d)}function A(){N=null;if(ba){if(!ga){if(confirm("The application was quited, do you want to restart... |
if(r)r.push(t);else A.onText(t);}q=A._.htmlPartsRegex.lastIndex;if(p=o[1]){p=p.toLowerCase();if(r&&f.$cdata[p]){A.onCDATA(r.join(''));r=null;}if(!r){A.onTagClose(p);continue;}}if(r){r.push(o[0]);continue;}if(p=o[3]){p=p.toLowerCase();var u={},v,w=o[4],x=!!(w&&w.charAt(w.length-1)=='/');if(w)while(v=l.exec(w)){var y=v[1... | if(!z&&m[y])u[y]=y;else u[y]=z;}A.onTagOpen(p,u,x);if(!r&&f.$cdata[p])r=[];continue;}if(p=o[2])A.onComment(p);}if(n.length>q)A.onText(n.substring(q,n.length));}};})();a.htmlParser.comment=function(l){this.value=l;this._={isBlockLike:false};};a.htmlParser.comment.prototype={type:8,writeHtml:function(l,m){var n=this.valu... | if(r)r.push(t);else A.onText(t);}q=A._.htmlPartsRegex.lastIndex;if(p=o[1]){p=p.toLowerCase();if(r&&f.$cdata[p]){A.onCDATA(r.join(''));r=null;}if(!r){A.onTagClose(p);continue;}}if(r){r.push(o[0]);continue;}if(p=o[3]){p=p.toLowerCase();var u={},v,w=o[4],x=!!(w&&w.charAt(w.length-1)=='/');if(w)while(v=l.exec(w)){var y=v[1... |
"undefined"&&this.length)return d.data(this[0]);else if(typeof a==="object")return this.each(function(){d.data(this,a)});var e=a.split(".");e[1]=e[1]?"."+e[1]:"";if(b===v){var g=this.triggerHandler("getData"+e[1]+"!",[e[0]]);if(g===v&&this.length)g=d.data(this[0],a);return g===v&&e[1]?this.data(e[0]):g}else return this... | "undefined"&&this.length)return c.data(this[0]);else if(typeof a==="object")return this.each(function(){c.data(this,a)});var e=a.split(".");e[1]=e[1]?"."+e[1]:"";if(b===v){var f=this.triggerHandler("getData"+e[1]+"!",[e[0]]);if(f===v&&this.length)f=c.data(this[0],a);return f===v&&e[1]?this.data(e[0]):f}else return this... | "undefined"&&this.length)return d.data(this[0]);else if(typeof a==="object")return this.each(function(){d.data(this,a)});var e=a.split(".");e[1]=e[1]?"."+e[1]:"";if(b===v){var g=this.triggerHandler("getData"+e[1]+"!",[e[0]]);if(g===v&&this.length)g=d.data(this[0],a);return g===v&&e[1]?this.data(e[0]):g}else return this... |
h(a[0],b):null}function Z(){return(new Date).getTime()}function $(a,b){var e=0;b.each(function(){if(this.nodeName===(a[e]&&a[e].nodeName)){var g=d.data(a[e++]),h=d.data(this,g);if(g=g&&g.events){delete h.handle;h.events={};for(var k in g)for(var l in g[k])d.event.add(this,k,g[k][l],g[k][l].data)}}})}function aa(a,b,e){... | h(a[0],b):null}function Z(){return(new Date).getTime()}function $(a,b){var e=0;b.each(function(){if(this.nodeName===(a[e]&&a[e].nodeName)){var f=c.data(a[e++]),h=c.data(this,f);if(f=f&&f.events){delete h.handle;h.events={};for(var k in f)for(var l in f[k])c.event.add(this,k,f[k][l],f[k][l].data)}}})}function aa(a,b,e){... | h(a[0],b):null}function Z(){return(new Date).getTime()}function $(a,b){var e=0;b.each(function(){if(this.nodeName===(a[e]&&a[e].nodeName)){var g=d.data(a[e++]),h=d.data(this,g);if(g=g&&g.events){delete h.handle;h.events={};for(var k in g)for(var l in g[k])d.event.add(this,k,g[k][l],g[k][l].data)}}})}function aa(a,b,e){... |
if (t==oldt) { | if (t===oldt) { | function abc_keystroke(){ if (bReentry) return; bReentry = true; var t = editArea.get(); if (t==oldt) { abc_mousemove(); bReentry = false; return; } else { oldt = t; } // clear out any old tune var done = false; var i = 0; while (!done) { var el = $("canvas"+i); if (el) el.innerHTML = ""; else done = t... |
this.bottom = 7; this.top = 7; | function ABCAbsoluteElement(abcelem, duration, minspacing) { // spacing which must be taken on top of the width this.abcelem = abcelem; this.duration = duration; this.minspacing = minspacing || 0; this.x = 0; this.children = []; this.heads = []; this.extra = []; this.extraw = 0; this.decs = []; this.w = 0; t... | |
this.dy = (this.asc)?AbcSpacing.STEP:-AbcSpacing.STEP; | this.dy = (this.asc)?AbcSpacing.STEP*1.2:-AbcSpacing.STEP*1.2; | function ABCBeamElem (type, flat) { this.isflat = (flat); this.isgrace = (type && type==="grace"); this.forceup = (type && type==="up"); this.forcedown = (type && type==="down"); this.elems = []; // all the ABCAbsoluteElements this.total = 0; this.dy = (this.asc)?AbcSpacing.STEP:-AbcSpacing.STEP; if (this.isgra... |
var text = getABCText(node); if (inabc) { if (node.nodeType==3 && !text.match(/^\s*$/)) { | if (node.nodeType==3 && !node.nodeValue.match(/^\s*$/)) { brcount=0; var text = node.nodeValue; if (text.match(/^\s*X:/m)) { inabc=true; abctext=""; } if (inabc) { | function ABCConversion(elem) { var contents = $(elem).contents(); var abctext = ""; var inabc = false; var brcount = 0; contents.each(function(i,node){ var text = getABCText(node); if (inabc) { if (node.nodeType==3 && !text.match(/^\s*$/)) { abctext += text.replace(/\n$/,"").replace(/^\n/,""); brcoun... |
brcount=0; } else if($(node).is("br") && brcount==0) { abctext += "\n"; brcount++; } else { inabc = false; brcount=0; insertScoreBefore(node,abctext); } } else { if (text.match(/^X:/m)) { inabc=true; abctext=text.replace(/\n$/,"").replace(/^\n/,""); } | } } else if (inabc && $(node).is("br") && brcount==0) { abctext += "\n"; brcount++; } else if (inabc) { inabc = false; brcount=0; insertScoreBefore(node,abctext); | function ABCConversion(elem) { var contents = $(elem).contents(); var abctext = ""; var inabc = false; var brcount = 0; contents.each(function(i,node){ var text = getABCText(node); if (inabc) { if (node.nodeType==3 && !text.match(/^\s*$/)) { abctext += text.replace(/\n$/,"").replace(/^\n/,""); brcoun... |
} else if($(node).is("br")) { | brcount=0; } else if($(node).is("br") && brcount==0) { | function ABCConversion(elem) { var contents = $(elem).contents(); var abctext = ""; var inabc = false; contents.each(function(i,node){ var text = getABCText(node); if (inabc) { if (node.nodeType==3 && !text.match(/^\s*$/)) { abctext += text.replace(/\n$/,"").replace(/^\n/,""); } else if($(node).is("br")... |
insertScoreBefore(contents.last(),abctext); | appendScoreTo(elem,abctext); | function ABCConversion(elem) { var contents = $(elem).contents(); var abctext = ""; var inabc = false; contents.each(function(i,node){ var text = getABCText(node); if (inabc) { if (node.nodeType==3 && !text.match(/^\s*$/)) { abctext += text.replace(/\n$/,"").replace(/^\n/,""); } else if($(node).is("br")... |
abcspan.append($(node)); | function ABCConversion(elem) { var contents = $(elem).contents(); var abctext = ""; var inabc = false; var brcount = 0; contents.each(function(i,node){ if (node.nodeType==3 && !node.nodeValue.match(/^\s*$/)) { brcount=0; var text = node.nodeValue; if (text.match(/^\s*X:/m)) { inabc=true; abctext=""; } if ... | |
var text = $(node).text(); | var text = getABCText(node); | function ABCConversion(elem) { var contents = $(elem).contents(); var abctext = ""; var inabc = false; contents.each(function(i,node){ var text = $(node).text(); if (inabc) { if (node.nodeType==3 && !text.match(/^\s*$/)) { abctext += text.replace(/\n$/,"").replace(/^\n/,""); } else if($(node).is("br")) ... |
this.stafflines = 5; | function ABCLayout(glyphs, bagpipes) { this.glyphs = glyphs; this.isBagpipes = bagpipes; this.chartable = {rest:{0:"rests.whole", 1:"rests.half", 2:"rests.quarter", 3:"rests.8th", 4: "rests.16th",5: "rests.32nd", 6: "rests.64th", 7: "rests.128th"}, note:{"-1": "noteheads.dbl", 0:"noteheads.whole", 1:"noteheads.h... | |
this.slursbyvoice = {}; this.tiesbyvoice = {}; this.endingsbyvoice = {}; this.s = 0; this.v = 0; | function ABCLayout(glyphs, bagpipes) { this.glyphs = glyphs; this.isBagpipes = bagpipes; this.chartable = {rest:{0:"rests.whole", 1:"rests.half", 2:"rests.quarter", 3:"rests.8th", 4: "rests.16th",5: "rests.32nd", 6: "rests.64th", 7: "rests.128th"}, note:{"-1": "noteheads.dbl", 0:"noteheads.whole", 1:"noteheads.h... | |
this.next = null; | function ABCMidiWriter(parent) { this.parent = parent; this.scale = [0,2,4,5,7,9,11]; this.restart = {line:0, staff:0, voice:0, pos:0}; this.visited = {}; this.multiplier =1;}; | |
this.pitch2 = opt["pitch2"]; this.linewidth = opt["linewidth"]; | function ABCRelativeElement(c, dx, w, pitch, opt) { opt = opt || {}; this.x = 0; this.c = c; // character or path or string this.dx = dx; // relative x position this.w = w; // minimum width taken up by this element (can include gratuitous space) this.pitch = pitch; // relative y position by pitch th... | |
this.top = pitch + ((opt["extreme"]=="above")? 7 : 0); this.bottom = pitch - ((opt["extreme"]=="below")? 7 : 0); | function ABCRelativeElement(c, dx, w, pitch, opt) { opt = opt || {}; this.x = 0; this.c = c; // character or path or string this.dx = dx; // relative x position this.w = w; // minimum width taken up by this element (can include gratuitous space) this.pitch = pitch; // relative y position by pitch th... | |
this.stafflines = []; | function ABCStaffGroupElement() { this.voices = []; this.staffs = [];} | |
function ABCTieElem (anchor1, anchor2, above, force) { | function ABCTieElem (anchor1, anchor2, above, forceandshift) { | function ABCTieElem (anchor1, anchor2, above, force) { this.anchor1 = anchor1; // must have a .x and a .pitch, and a .parent property or be null (means starts at the "beginning" of the line - after keysig) this.anchor2 = anchor2; // must have a .x and a .pitch property or be null (means ends at the end of the line) ... |
this.force = force; | this.force = forceandshift; | function ABCTieElem (anchor1, anchor2, above, force) { this.anchor1 = anchor1; // must have a .x and a .pitch, and a .parent property or be null (means starts at the "beginning" of the line - after keysig) this.anchor2 = anchor2; // must have a .x and a .pitch property or be null (means ends at the end of the line) ... |
} | }; | function ABCTripletElem (number, anchor1, anchor2, above) { this.anchor1 = anchor1; // must have a .x and a .pitch property or be null (means starts at the "beginning" of the line - after keysig) this.anchor2 = anchor2; // must have a .x and a .pitch property or be null (means ends at the end of the line) this.above... |
function ABCVoiceElement(y, voicenumber, voicetotal) { | function ABCVoiceElement(voicenumber, voicetotal) { | function ABCVoiceElement(y, voicenumber, voicetotal) { this.children = []; this.beams = []; this.otherchildren = []; // ties, slurs, triplets this.w = 0; this.y = y; this.duplicate = false; this.voicenumber = voicenumber; //number of the voice on a given stave (not staffgroup) this.voicetotal = voicetotal;} |
this.y = y; | function ABCVoiceElement(y, voicenumber, voicetotal) { this.children = []; this.beams = []; this.otherchildren = []; // ties, slurs, triplets this.w = 0; this.y = y; this.duplicate = false; this.voicenumber = voicenumber; //number of the voice on a given stave (not staffgroup) this.voicetotal = voicetotal;} | |
return this; | abort: function () { /// Is a query in progress? If readyState > 0 and < 4, it needs to be aborted. if (ajax.readyState % 4) { /// Stop it from retrying first. clearTimeout(ajax_timeout); ajax.abort(); } ... | |
if ( action.output.data.ldapGroupsAsRoles =='true' && action.result.data != null ) { | if ( action.output.data.ldapGroupsAsRoles == true && action.result.data != null ) { | actionCompleteHandler : function( form, action ) { if ( action.type == 'sonatypeSubmit' ) { if ( action.options.url == this.servicePath.testUserAndGroupConfig ) { var title = 'User Mapping Test Results'; if ( action.output.data.ldapGroupsAsRoles =='true' && action.result.data != null ) { ... |
if ( ldapGroupsAsRoles.getRawValue() != "true" ) { | if ( ldapGroupsAsRoles.getValue() != true ) { | actionCompleteHandler : function( form, action ) { if ( action.type == 'sonatypeSubmit' ) { if ( action.options.url == this.servicePath.testUserAndGroupConfig ) { var title = 'User Mapping Test Results'; if ( action.output.data.ldapGroupsAsRoles =='true' && action.result.data != null ) { ... |
effects.push(new Effect.Move(tab.content, { x: position, y: 0, mode: 'absolute', sync: true } )); | effects.push(new Effect.Move(tab.content, { x: 0, y: position, mode: 'absolute', sync: true } )); | activate: function() { var effects = []; for (var i = 0; i < this.menu.tabs.length; i++) { var tab = this.menu.tabs[i]; var position = tab.tStartingPosition - this.tStartingPosition; effects.push(new Effect.Move(tab.content, { x: pos... |
activeLayersPanel.setLayerVisible(!isChecked); | activeLayerRecord.setLayerVisible(!isChecked); | var activeLayerCheckHandler = function(activeLayerRecord, isChecked, forceApplyFilter) { //set the record to be selected if checked activeLayersPanel.getSelectionModel().selectRecords([activeLayerRecord.internalRecord], false); if (activeLayerRecord.getIsLoading()) { activeLayersPanel.s... |
filterPanel.getLayout().setActiveItem(activeLayerRecord.getId()); | if (filterPanelObj && filterPanelObj.form) { filterPanel.getLayout().setActiveItem(activeLayerRecord.getId()); } else { filterPanel.getLayout().setActiveItem(0); } | var activeLayerSelectionHandler = function(activeLayerRecord) { //if its not checked then don't do any actions if (!activeLayerRecord.getLayerVisible()) { filterPanel.getLayout().setActiveItem(0); filterButton.disable(); } else if (activeLayerRecord.getFilterPanel() != nul... |
var activeLayerSelectionHandler = function(sm, index, record) { var activeLayerRecord = new ActiveLayersRecord(record); | var activeLayerSelectionHandler = function(activeLayerRecord) { | var activeLayerSelectionHandler = function(sm, index, record) { var activeLayerRecord = new ActiveLayersRecord(record); //if its not checked then don't do any actions if (!activeLayerRecord.getLayerVisible()) { filterPanel.getLayout().setActiveItem(0); filterButton.disab... |
} else if (activeLayerRecord.getFilterPanel() != null) { | } else if (activeLayerRecord.getFilterPanel() !== null) { | var activeLayerSelectionHandler = function(activeLayerRecord) { //if its not checked then don't do any actions if (!activeLayerRecord.getLayerVisible()) { filterPanel.getLayout().setActiveItem(0); filterButton.disable(); } else if (activeLayerRecord.getFilterPanel() != nul... |
if (filterPanelObj.supportsFiltering) { | if (filterPanelObj && filterPanelObj.supportsFiltering) { | var activeLayerSelectionHandler = function(activeLayerRecord) { //if its not checked then don't do any actions if (!activeLayerRecord.getLayerVisible()) { filterPanel.getLayout().setActiveItem(0); filterButton.disable(); } else if (activeLayerRecord.getFilterPanel() != nul... |
var filterPanelObj = activeLayerRecord.getFilterPanel(); if (filterPanelObj && filterPanelObj.form) { filterPanelObj.form.destroy(); } | var activeLayersRemoveHandler = function(activeLayerRecord) { if (activeLayerRecord.getIsLoading()) { Ext.MessageBox.show({ title: 'Please wait', msg: "There is an operation in process for this layer. Please wait until it is finished.", buttons: Ext.Mes... | |
console.log(XMLHttpRequest); console.log(textStatus); console.log(errorThrown); | add: function(evt) { // prevent default evt.preventDefault(); // validate if($('#newCategoryValue').val().length == 0) return false; // split url to buil the ajax-url var chunks = document.location.pathname.split('/'); // buil ajax-url var url = '/backend/ajax.php?module=' + chunks[3] + '&action=add_catego... | |
jsBackend.messages.add('success', "{$msgCategoryAdded}"); | jsBackend.messages.add('success', "{$msgAddedCategory|addslashes}".replace('%1$s', name)); | add: function(evt) { // prevent default evt.preventDefault(); // validate if($('#newCategoryValue').val().length == 0) return false; // split url to buil the ajax-url var chunks = document.location.pathname.split('/'); // buil ajax-url var url = '/backend/ajax.php?module=' + chunks[3] + '&action=add_catego... |
} else if (layout.contains(l)) { layouts.splice(i, 0, layout); return; | this.add = function(layout) { var i, il; for (i=0, il = layouts.length ;i < il; ++i) { var l = layouts[i]; if (l.getId() == layout.getId()) { layouts[i] = layout; return; } } layouts.push(layout); }; | |
e;var b=d(this).unbind(".tabs");d.each(["href","load","cache"],function(c,h){b.removeData(h+".tabs")})});this.lis.unbind(".tabs").add(this.panels).each(function(){d.data(this,"destroy.tabs")?d(this).remove():d(this).removeClass("ui-state-default ui-corner-top ui-tabs-selected ui-state-active ui-state-hover ui-state-foc... | d.data(this,"href.tabs");if(e)this.href=e;var a=d(this).unbind(".tabs");d.each(["href","load","cache"],function(c,h){a.removeData(h+".tabs")})});this.lis.unbind(".tabs").add(this.panels).each(function(){d.data(this,"destroy.tabs")?d(this).remove():d(this).removeClass("ui-state-default ui-corner-top ui-tabs-selected ui-... | e;var b=d(this).unbind(".tabs");d.each(["href","load","cache"],function(c,h){b.removeData(h+".tabs")})});this.lis.unbind(".tabs").add(this.panels).each(function(){d.data(this,"destroy.tabs")?d(this).remove():d(this).removeClass("ui-state-default ui-corner-top ui-tabs-selected ui-state-active ui-state-hover ui-state-foc... |
if(type == 'notice') { setTimeout('jsBackend.messages.hide($("#'+ uniqueId +'"));', 20000); } | if(type == 'notice') { setTimeout('jsBackend.messages.hide($("#'+ uniqueId +'"));', 5000); } | add: function(type, content) { var uniqueId = 'e'+ new Date().getTime().toString(); var html = '<div id="'+ uniqueId +'" class="formMessage '+ type +'Message" style="display: none;">'+ ' <p>'+ content +'</p>'+ ' <div class="buttonHolderRight">'+ ' <a class="button icon linkButton iconClose iconOnly" hre... |
else return 'url('+E+G+H+I+')';});};if(!l[p]){var v=s.preload;if(v&&v.length>0){t(v);a.imageCacher.load(v,function(){l[p]=1;n(o,p,q,r);});return;}l[p]=1;}q=s[q];var w=!q||!!q._isLoaded;if(w)r&&r();else{var x=q._pending||(q._pending=[]);x.push(r);if(x.length>1)return;var y=!q.css||!q.css.length,z=!q.js||!q.js.length,A=f... | for(var C=0;C<B.length;C++)a.document.appendStyleSheet(B[C]);}else{B=u(B,a.getUrl(m[p]));a.document.appendStyleText(B);}q.css=B;y=1;}if(!z){t(q.js);a.scriptLoader.load(q.js,function(){z=1;A();});}A();}};return{add:function(o,p){k[o]=p;p.skinPath=m[o]||(m[o]=a.getUrl('skins/'+o+'/'));},load:function(o,p,q){var r=o.skinN... | else return 'url('+E+G+H+I+')';});};if(!l[p]){var v=s.preload;if(v&&v.length>0){t(v);a.imageCacher.load(v,function(){l[p]=1;n(o,p,q,r);});return;}l[p]=1;}q=s[q];var w=!q||!!q._isLoaded;if(w)r&&r();else{var x=q._pending||(q._pending=[]);x.push(r);if(x.length>1)return;var y=!q.css||!q.css.length,z=!q.js||!q.js.length,A=f... |
w.ownerDocument&&w!==b;){if(p?p.index(w)>-1:d(w).is(a))return w;w=w.parentNode}return null})},index:function(a){if(!a||typeof a==="string")return d.inArray(this[0],a?d(a):this.parent().children());return d.inArray(a.jquery?a[0]:a,this)},add:function(a,b){a=typeof a==="string"?d(a,b||this.context):d.makeArray(a);b=d.mer... | -1:c(f).is(h)){e.push({selector:l,elem:f});delete k[l]}}f=f.parentNode}}return e}var p=c.expr.match.POS.test(a)?c(a,b||this.context):null;return this.map(function(o,w){for(;w&&w.ownerDocument&&w!==b;){if(p?p.index(w)>-1:c(w).is(a))return w;w=w.parentNode}return null})},index:function(a){if(!a||typeof a==="string")retur... | w.ownerDocument&&w!==b;){if(p?p.index(w)>-1:d(w).is(a))return w;w=w.parentNode}return null})},index:function(a){if(!a||typeof a==="string")return d.inArray(this[0],a?d(a):this.parent().children());return d.inArray(a.jquery?a[0]:a,this)},add:function(a,b){a=typeof a==="string"?d(a,b||this.context):d.makeArray(a);b=d.mer... |
var value = $('#addValue-' + id).val().replace(/^\s+|\s+$/g, ''); | var value = $('#addValue-' + id).val().replace(/^\s+|\s+$/g, '').replace(options.splitChar, ''); | function add() { blockSubmit = false; // init some vars var value = $('#addValue-' + id).val().replace(/^\s+|\s+$/g, ''); var inElements = false; // reset box $('#addValue-' + id).val('').focus(); $('#addButton-' + id).addClass('disabledButton'); // only add new element if it isn't empty ... |
if (child == null) return null; | if (child === null) return null; | function add_content_bottom() { var child = page.lastChild, child_position, newEl, page_height; if (child == null) return null; child_position = child_position = child.offsetTop + child.clientHeight; page_height = page_height = doc_docEl.clientHeight; /// Is the user scrolling close to the bottom of the... |
if (child.offsetTop + child.clientHeight < scroll_pos + doc_docEl.clientHeight + buffer_add) { | if (child.offsetTop + child.clientHeight < window.pageYOffset + doc_docEl.clientHeight + buffer_add) { | function add_content_bottom_if_needed() { var child = page.lastChild, newEl; if (child === null) { return null; } /// Is the user scrolling close to the bottom of the page? if (child.offsetTop + c... |
window.scrollTo(0, scroll_pos); | scrollViewTo(0, window.pageYOffset); | function add_content_bottom_if_needed() { var child = page.lastChild, newEl; if (child === null) { return null; } /// Is the user scrolling close to the bottom of the page? if (child.offsetTop + c... |
if (scroll_maxed_bottom) { | if (has_reached_bottom) { | function add_content_bottom_if_needed() { var child = page.lastChild, newEl; if (child === null) { return null; } /// Is the user scrolling close to the bottom of the ... |
setTimeout(add_content_bottom_if_needed, lookup_speed_sitting); | window.setTimeout(add_content_bottom_if_needed, lookup_speed_sitting); | function add_content_if_needed(direction) { if (direction === additional) { setTimeout(add_content_bottom_if_needed, lookup_speed_sitting); } else { setTimeout(add_content_top_if_needed, lookup_speed_scrolling); } } |
setTimeout(add_content_top_if_needed, lookup_speed_scrolling); | window.setTimeout(add_content_top_if_needed, lookup_speed_scrolling); | function add_content_if_needed(direction) { if (direction === additional) { setTimeout(add_content_bottom_if_needed, lookup_speed_sitting); } else { setTimeout(add_content_top_if_needed, lookup_speed_scrolling); } } |
if (child == null) return null; | if (child === null) return null; | function add_content_top() { var child = page.firstChild, child_height, child_position, newEl; if (child == null) return null; child_height = child.clientHeight; child_position = child_height; /// Is the user scrolling close to the top of the page? if (child_position + buffer_add > scroll_pos) { ... |
if (child.clientHeight + buffer_add > scroll_pos) { | if (child.clientHeight + buffer_add > window.pageYOffset) { | function add_content_top_if_needed() { var child = page.firstChild, newEl; if (child === null) { return null; } /// Is the user scrolling close to the top of the page? if (child.clientHeight + buf... |
scroll_pos = window.pageYOffset + newEl.clientHeight; window.scrollTo(0, scroll_pos); | scrollViewTo(0, window.pageYOffset + newEl.clientHeight); | function add_content_top_if_needed() { var child = page.firstChild, newEl; if (child === null) { return null; } /// Is the user scrolling close to the top of the page? if (child.clientHeight + buf... |
if (scroll_maxed_top) { | if (has_reached_top) { | function add_content_top_if_needed() { var child = page.firstChild, newEl; if (child === null) { return null; } /// Is the user scrolling close to the top of the page?... |
if(this.icon){var u=(this.iconOffset||0)*-16;m.push(' style="background-image:url(',a.getUrl(this.icon),');background-position:0 '+u+'px;"');}m.push('></span><span id="',o,'_label" class="cke_label">',this.label,'</span>');if(this.hasArrow)m.push('<span class="cke_buttonarrow">'+(b.hc?'▼':'')+'</span>');m.push('<... | },this);else if(q){q=l.getCommand(q);if(q){q.on('state',function(){this.setState(q.state);},this);p+='cke_'+(q.state==1?'on':q.state==0?'disabled':'off');}}if(!q)p+='cke_off';if(this.className)p+=' '+this.className;m.push('<span class="cke_button">','<a id="',o,'" class="',p,'"',n.gecko&&n.version>=10900&&!n.hc?'':'" h... | if(this.icon){var u=(this.iconOffset||0)*-16;m.push(' style="background-image:url(',a.getUrl(this.icon),');background-position:0 '+u+'px;"');}m.push('></span><span id="',o,'_label" class="cke_label">',this.label,'</span>');if(this.hasArrow)m.push('<span class="cke_buttonarrow">'+(b.hc?'▼':'')+'</span>');m.push('<... |
k.setHtml(i);return k.getFirst().remove();};h.setMarker=function(i,j,k,l){var m=j.getCustomData('list_marker_id')||j.setCustomData('list_marker_id',e.getNextNumber()).getCustomData('list_marker_id'),n=j.getCustomData('list_marker_names')||j.setCustomData('list_marker_names',{}).getCustomData('list_marker_names');i[m]=j... | };d.nodeList.prototype={count:function(){return this.$.length;},getItem:function(h){var i=this.$[h];return i?new d.node(i):null;}};d.element=function(h,i){if(typeof h=='string')h=(i?i.$:document).createElement(h);d.domObject.call(this,h);};var h=d.element;h.get=function(i){return i&&(i.$?i:new h(i));};h.prototype=new d... | k.setHtml(i);return k.getFirst().remove();};h.setMarker=function(i,j,k,l){var m=j.getCustomData('list_marker_id')||j.setCustomData('list_marker_id',e.getNextNumber()).getCustomData('list_marker_id'),n=j.getCustomData('list_marker_names')||j.setCustomData('list_marker_names',{}).getCustomData('list_marker_names');i[m]=j... |
Ia=/^(a|area)$/i,ja=/radio|checkbox/;d.fn.extend({attr:function(a,b){return S(this,a,b,true,d.attr)},removeAttr:function(a){return this.each(function(){d.attr(this,a,"");this.nodeType===1&&this.removeAttribute(a)})},addClass:function(a){if(d.isFunction(a))return this.each(function(p){var o=d(this);o.addClass(a.call(thi... | b){for(var e=[];a;a=a.nextSibling)a.nodeType===1&&a!==b&&e.push(a);return e}});var ia=/[\n\t]/g,W=/\s+/,Ea=/\r/g,Fa=/href|src|style/,Ga=/(button|input)/i,Ha=/(button|input|object|select|textarea)/i,Ia=/^(a|area)$/i,ja=/radio|checkbox/;c.fn.extend({attr:function(a,b){return S(this,a,b,true,c.attr)},removeAttr:function(a... | Ia=/^(a|area)$/i,ja=/radio|checkbox/;d.fn.extend({attr:function(a,b){return S(this,a,b,true,d.attr)},removeAttr:function(a){return this.each(function(){d.attr(this,a,"");this.nodeType===1&&this.removeAttribute(a)})},addClass:function(a){if(d.isFunction(a))return this.each(function(p){var o=d(this);o.addClass(a.call(thi... |
s(x);});},s=function(x){var y=x.config,z=y.plugins,A=y.extraPlugins,B=y.removePlugins;if(A){var C=new RegExp('(?:^|,)(?:'+A.replace(/\s*,\s*/g,'|')+')(?=,|$)','g');z=z.replace(C,'');z+=','+A;}if(B){C=new RegExp('(?:^|,)(?:'+B.replace(/\s*,\s*/g,'|')+')(?=,|$)','g');z=z.replace(C,'');}j.load(z.split(','),function(D){var... | x.plugins=D;for(var H in D){var I=D[H],J=I.lang,K=j.getPath(H),L=null;I.path=K;if(J){L=e.indexOf(J,x.langCode)>=0?x.langCode:J[0];if(!I.lang[L])G.push(a.getUrl(K+'lang/'+L+'.js'));else{e.extend(x.lang,I.lang[L]);L=null;}}F.push(L);E.push(I);}a.scriptLoader.load(G,function(){var M=['beforeInit','init','afterInit'];for(v... | s(x);});},s=function(x){var y=x.config,z=y.plugins,A=y.extraPlugins,B=y.removePlugins;if(A){var C=new RegExp('(?:^|,)(?:'+A.replace(/\s*,\s*/g,'|')+')(?=,|$)','g');z=z.replace(C,'');z+=','+A;}if(B){C=new RegExp('(?:^|,)(?:'+B.replace(/\s*,\s*/g,'|')+')(?=,|$)','g');z=z.replace(C,'');}j.load(z.split(','),function(D){var... |
function(a,b){if(document.getElementsByClassName)return b.getElementsByClassName(a);else{b=b.getElementsByTagName("*");for(var f=[],l,n=0,o=b.length;n<o;n++){l=b[n];l.className.indexOf(a)!=-1&&f.push(l)}return f}};this.addCss=function(a,b){var f=document.styleSheets[0];f.insertRule(a+" { "+b+" }",f.cssRules.length)};th... | ""}}};this.checkReleaseCapture=function(a,b){z&&a==z&&b.type=="mouseup"&&this.capture(null)};this.getElementsByClassName=function(a,b){if(document.getElementsByClassName)return b.getElementsByClassName(a);else{b=b.getElementsByTagName("*");for(var f=[],l,n=0,o=b.length;n<o;n++){l=b[n];l.className.indexOf(a)!=-1&&f.push... | function(a,b){if(document.getElementsByClassName)return b.getElementsByClassName(a);else{b=b.getElementsByTagName("*");for(var f=[],l,n=0,o=b.length;n<o;n++){l=b[n];l.className.indexOf(a)!=-1&&f.push(l)}return f}};this.addCss=function(a,b){var f=document.styleSheets[0];f.insertRule(a+" { "+b+" }",f.cssRules.length)};th... |
b){if(document.getElementsByClassName)return b.getElementsByClassName(a);else{b=b.getElementsByTagName("*");for(var f=[],l,n=0,o=b.length;n<o;n++){l=b[n];l.className.indexOf(a)!=-1&&f.push(l)}return f}};this.addCss=function(a,b){var f=document.styleSheets[0];f.insertRule(a+" { "+b+" }",f.cssRules.length)};this.addCssTe... | function(a,b){if(document.getElementsByClassName)return b.getElementsByClassName(a);else{b=b.getElementsByTagName("*");for(var f=[],l,n=0,o=b.length;n<o;n++){l=b[n];l.className.indexOf(a)!=-1&&f.push(l)}return f}};this.addCss=function(a,b){var f=document.styleSheets[0];f.insertRule(a+" { "+b+" }",f.cssRules.length)};th... | b){if(document.getElementsByClassName)return b.getElementsByClassName(a);else{b=b.getElementsByTagName("*");for(var f=[],l,n=0,o=b.length;n<o;n++){l=b[n];l.className.indexOf(a)!=-1&&f.push(l)}return f}};this.addCss=function(a,b){var f=document.styleSheets[0];f.insertRule(a+" { "+b+" }",f.cssRules.length)};this.addCssTe... |
for(var e=[],k,i=0,n=b.length;i<n;i++){k=b[i];k.className.indexOf(a)!=-1&&e.push(k)}return e}};this.addCss=function(a,b){var e=document.styleSheets[0];e.insertRule(a+" { "+b+" }",e.cssRules.length)};this.addCssText=function(a){var b=document.getElementById("Wt-inline-css");if(!b){b=document.createElement("style");docum... | for(var e=[],j,i=0,n=b.length;i<n;i++){j=b[i];j.className.indexOf(a)!=-1&&e.push(j)}return e}};this.addCss=function(a,b){var e=document.styleSheets[0];e.insertRule(a+" { "+b+" }",e.cssRules.length)};this.addCssText=function(a){var b=document.getElementById("Wt-inline-css");if(!b){b=document.createElement("style");docum... | for(var e=[],k,i=0,n=b.length;i<n;i++){k=b[i];k.className.indexOf(a)!=-1&&e.push(k)}return e}};this.addCss=function(a,b){var e=document.styleSheets[0];e.insertRule(a+" { "+b+" }",e.cssRules.length)};this.addCssText=function(a){var b=document.getElementById("Wt-inline-css");if(!b){b=document.createElement("style");docum... |
else{b=b.getElementsByTagName("*");for(var f=[],h,k=0,o=b.length;k<o;k++){h=b[k];h.className.indexOf(a)!=-1&&f.push(h)}return f}};this.addCss=function(a,b){var f=document.styleSheets[0];f.insertRule(a+" { "+b+" }",f.cssRules.length)};this.addCssText=function(a){var b=document.getElementById("Wt-inline-css");if(!b){b=do... | "off");b.onselectstart=""}}};this.checkReleaseCapture=function(a,b){B&&a==B&&b.type=="mouseup"&&this.capture(null)};this.getElementsByClassName=function(a,b){if(document.getElementsByClassName)return b.getElementsByClassName(a);else{b=b.getElementsByTagName("*");for(var f=[],h,k=0,o=b.length;k<o;k++){h=b[k];h.className... | else{b=b.getElementsByTagName("*");for(var f=[],h,k=0,o=b.length;k<o;k++){h=b[k];h.className.indexOf(a)!=-1&&f.push(h)}return f}};this.addCss=function(a,b){var f=document.styleSheets[0];f.insertRule(a+" { "+b+" }",f.cssRules.length)};this.addCssText=function(a){var b=document.getElementById("Wt-inline-css");if(!b){b=do... |
"off");b.onselectstart=""}};this.checkReleaseCapture=function(a,b){G&&a==G&&b.type=="mouseup"&&this.capture(null)};this.getElementsByClassName=function(a,b){if(document.getElementsByClassName)return b.getElementsByClassName(a);else{b=b.getElementsByTagName("*");for(var f=[],m,l=0,o=b.length;l<o;l++){m=b[l];m.className.... | this.capture(null)};this.getElementsByClassName=function(a,b){if(document.getElementsByClassName)return b.getElementsByClassName(a);else{b=b.getElementsByTagName("*");for(var f=[],m,l=0,n=b.length;l<n;l++){m=b[l];m.className.indexOf(a)!=-1&&f.push(m)}return f}};this.addCss=function(a,b){var f=document.styleSheets[0];f.... | "off");b.onselectstart=""}};this.checkReleaseCapture=function(a,b){G&&a==G&&b.type=="mouseup"&&this.capture(null)};this.getElementsByClassName=function(a,b){if(document.getElementsByClassName)return b.getElementsByClassName(a);else{b=b.getElementsByTagName("*");for(var f=[],m,l=0,o=b.length;l<o;l++){m=b[l];m.className.... |
function(a,b){if(document.getElementsByClassName)return b.getElementsByClassName(a);else{b=b.getElementsByTagName("*");for(var f=[],l,n=0,o=b.length;n<o;n++){l=b[n];l.className.indexOf(a)!=-1&&f.push(l)}return f}};this.addCss=function(a,b){var f=document.styleSheets[0];f.insertRule(a+" { "+b+" }",f.cssRules.length)};th... | ""}}};this.checkReleaseCapture=function(a,b){z&&a==z&&b.type=="mouseup"&&this.capture(null)};this.getElementsByClassName=function(a,b){if(document.getElementsByClassName)return b.getElementsByClassName(a);else{b=b.getElementsByTagName("*");for(var f=[],l,n=0,o=b.length;n<o;n++){l=b[n];l.className.indexOf(a)!=-1&&f.push... | function(a,b){if(document.getElementsByClassName)return b.getElementsByClassName(a);else{b=b.getElementsByTagName("*");for(var f=[],l,n=0,o=b.length;n<o;n++){l=b[n];l.className.indexOf(a)!=-1&&f.push(l)}return f}};this.addCss=function(a,b){var f=document.styleSheets[0];f.insertRule(a+" { "+b+" }",f.cssRules.length)};th... |
b){if(document.getElementsByClassName)return b.getElementsByClassName(a);else{b=b.getElementsByTagName("*");for(var f=[],l,n=0,o=b.length;n<o;n++){l=b[n];l.className.indexOf(a)!=-1&&f.push(l)}return f}};this.addCss=function(a,b){var f=document.styleSheets[0];f.insertRule(a+" { "+b+" }",f.cssRules.length)};this.addCssTe... | function(a,b){if(document.getElementsByClassName)return b.getElementsByClassName(a);else{b=b.getElementsByTagName("*");for(var f=[],l,n=0,o=b.length;n<o;n++){l=b[n];l.className.indexOf(a)!=-1&&f.push(l)}return f}};this.addCss=function(a,b){var f=document.styleSheets[0];f.insertRule(a+" { "+b+" }",f.cssRules.length)};th... | b){if(document.getElementsByClassName)return b.getElementsByClassName(a);else{b=b.getElementsByTagName("*");for(var f=[],l,n=0,o=b.length;n<o;n++){l=b[n];l.className.indexOf(a)!=-1&&f.push(l)}return f}};this.addCss=function(a,b){var f=document.styleSheets[0];f.insertRule(a+" { "+b+" }",f.cssRules.length)};this.addCssTe... |
for(var e=[],k,i=0,n=b.length;i<n;i++){k=b[i];k.className.indexOf(a)!=-1&&e.push(k)}return e}};this.addCss=function(a,b){var e=document.styleSheets[0];e.insertRule(a+" { "+b+" }",e.cssRules.length)};this.addCssText=function(a){var b=document.getElementById("Wt-inline-css");if(!b){b=document.createElement("style");docum... | for(var e=[],j,i=0,n=b.length;i<n;i++){j=b[i];j.className.indexOf(a)!=-1&&e.push(j)}return e}};this.addCss=function(a,b){var e=document.styleSheets[0];e.insertRule(a+" { "+b+" }",e.cssRules.length)};this.addCssText=function(a){var b=document.getElementById("Wt-inline-css");if(!b){b=document.createElement("style");docum... | for(var e=[],k,i=0,n=b.length;i<n;i++){k=b[i];k.className.indexOf(a)!=-1&&e.push(k)}return e}};this.addCss=function(a,b){var e=document.styleSheets[0];e.insertRule(a+" { "+b+" }",e.cssRules.length)};this.addCssText=function(a){var b=document.getElementById("Wt-inline-css");if(!b){b=document.createElement("style");docum... |
else{b=b.getElementsByTagName("*");for(var f=[],h,k=0,o=b.length;k<o;k++){h=b[k];h.className.indexOf(a)!=-1&&f.push(h)}return f}};this.addCss=function(a,b){var f=document.styleSheets[0];f.insertRule(a+" { "+b+" }",f.cssRules.length)};this.addCssText=function(a){var b=document.getElementById("Wt-inline-css");if(!b){b=do... | "off");b.onselectstart=""}}};this.checkReleaseCapture=function(a,b){B&&a==B&&b.type=="mouseup"&&this.capture(null)};this.getElementsByClassName=function(a,b){if(document.getElementsByClassName)return b.getElementsByClassName(a);else{b=b.getElementsByTagName("*");for(var f=[],h,k=0,o=b.length;k<o;k++){h=b[k];h.className... | else{b=b.getElementsByTagName("*");for(var f=[],h,k=0,o=b.length;k<o;k++){h=b[k];h.className.indexOf(a)!=-1&&f.push(h)}return f}};this.addCss=function(a,b){var f=document.styleSheets[0];f.insertRule(a+" { "+b+" }",f.cssRules.length)};this.addCssText=function(a){var b=document.getElementById("Wt-inline-css");if(!b){b=do... |
"off");b.onselectstart=""}};this.checkReleaseCapture=function(a,b){G&&a==G&&b.type=="mouseup"&&this.capture(null)};this.getElementsByClassName=function(a,b){if(document.getElementsByClassName)return b.getElementsByClassName(a);else{b=b.getElementsByTagName("*");for(var f=[],m,l=0,o=b.length;l<o;l++){m=b[l];m.className.... | this.capture(null)};this.getElementsByClassName=function(a,b){if(document.getElementsByClassName)return b.getElementsByClassName(a);else{b=b.getElementsByTagName("*");for(var f=[],m,l=0,n=b.length;l<n;l++){m=b[l];m.className.indexOf(a)!=-1&&f.push(m)}return f}};this.addCss=function(a,b){var f=document.styleSheets[0];f.... | "off");b.onselectstart=""}};this.checkReleaseCapture=function(a,b){G&&a==G&&b.type=="mouseup"&&this.capture(null)};this.getElementsByClassName=function(a,b){if(document.getElementsByClassName)return b.getElementsByClassName(a);else{b=b.getElementsByTagName("*");for(var f=[],m,l=0,o=b.length;l<o;l++){m=b[l];m.className.... |
if (continueBar) staff.bar = 'end'; | if (continueBar) staff.connectBarLines = 'end'; | this.addDirective = function(str) { var oneParameterMeasurement = function(cmd, tokens) { var points = tokenizer.getMeasurement(tokens); if (points.used === 0 || tokens.length !== 0) return "Directive \"" + cmd + "\" requires a measurement as a parameter."; tune.formatting[cmd] = points.value; retur... |
if (lastVoice) multilineVars.staves[lastVoice.staffNum].bar = 'start'; | if (lastVoice) { var ty = 'start'; if (lastVoice.staffNum > 0) { if (multilineVars.staves[lastVoice.staffNum-1].connectBarLines === 'start' || multilineVars.staves[lastVoice.staffNum-1].connectBarLines === 'continue') ty = 'continue'; } multilineVars.staves[lastVoice.staffNum].connectBarLines = ty; } | this.addDirective = function(str) { var oneParameterMeasurement = function(cmd, tokens) { var points = tokenizer.getMeasurement(tokens); if (points.used === 0 || tokens.length !== 0) return "Directive \"" + cmd + "\" requires a measurement as a parameter."; tune.formatting[cmd] = points.value; retur... |
var oneParameterMeasurement = function(cmd, tokens) { var points = tokenizer.getMeasurement(tokens); if (points.used === 0 || tokens.length !== 0) return "Directive \"" + cmd + "\" requires a measurement as a parameter."; tune.formatting[cmd] = points.value; return null; }; var getFontParameter = function(tokens) { var... | var oneParameterMeasurement = function(cmd, tokens) { var points = tokenizer.getMeasurement(tokens); if (points.used === 0 || tokens.length !== 0) return "Directive \"" + cmd + "\" requires a measurement as a parameter."; tune.formatting[cmd] = points.value; return null; }; var getFontParameter = function(tokens) { var... | this.addDirective = function(str) { var oneParameterMeasurement = function(cmd, tokens) { var points = tokenizer.getMeasurement(tokens); if (points.used === 0 || tokens.length !== 0) return "Directive \"" + cmd + "\" requires a measurement as a parameter."; tune.formatting[cmd] = points.value; retur... |
if (tokens.length > 0) { var scratch = ""; tokens.each(function(tok) { if (tok.token !== '-') { if (scratch.length > 0) scratch += ' '; scratch += tok.token; } }); font.font = scratch; | break; case "barnumbers": if (tokens.length !== 1 || tokens[0].type !== 'number') return "Directive \"" + cmd + "\" requires a number as a parameter."; multilineVars.barNumbers = parseInt(tokens[0].token); break; case "begintext": multilineVars.inTextBlock = true; break; case "text": tune.addText(tokenizer.translateStr... | this.addDirective = function(str) { var oneParameterMeasurement = function(cmd, tokens) { var points = tokenizer.getMeasurement(tokens); if (points.used === 0 || tokens.length !== 0) return "Directive \"" + cmd + "\" requires a measurement as a parameter."; tune.formatting[cmd] = points.value; retur... |
return font; }; var getChangingFont = function(cmd, tokens) { if (tokens.length === 0) return "Directive \"" + cmd + "\" requires a font as a parameter."; multilineVars[cmd] = getFontParameter(tokens); return null; }; var getGlobalFont = function(cmd, tokens) { if (tokens.length === 0) return "Directive \"" + cmd + "\"... | break; case "midi": case "indent": case "playtempo": case "auquality": case "continuous": case "nobarcheck": case "staves": tune.formatting[cmd] = restOfString; break; default: return "Unknown directive: " + cmd; } return null; }; | this.addDirective = function(str) { var oneParameterMeasurement = function(cmd, tokens) { var points = tokenizer.getMeasurement(tokens); if (points.used === 0 || tokens.length !== 0) return "Directive \"" + cmd + "\" requires a measurement as a parameter."; tune.formatting[cmd] = points.value; retur... |
var s = tokenizer.stripComment(str).strip(); if (s.length === 0) return null; var i = s.indexOf(' '); var cmd = (i > 0) ? s.substring(0, i) : s; | var tokens = tokenizer.tokenize(str, 0, str.length); if (tokens.length === 0 || tokens[0].type !== 'alpha') return null; var restOfString = str.substring(str.indexOf(tokens[0])); var cmd = tokens.shift().token.toLowerCase(); | var addDirective = function(str) { var s = tokenizer.stripComment(str).strip(); if (s.length === 0) // 3 or more % in a row, or just spaces after %% is just a comment return null; var i = s.indexOf(' '); var cmd = (i > 0) ? s.substring(0, i) : s; var num; cmd = cmd.toLowerCase(); switch (cmd) { ... |
cmd = cmd.toLowerCase(); | var scratch = ""; | var addDirective = function(str) { var s = tokenizer.stripComment(str).strip(); if (s.length === 0) // 3 or more % in a row, or just spaces after %% is just a comment return null; var i = s.indexOf(' '); var cmd = (i > 0) ? s.substring(0, i) : s; var num; cmd = cmd.toLowerCase(); switch (cmd) { ... |
num = tokenizer.getInt(s.substring(i)); if (num.digits === 0) | if (tokens.length !== 1 || tokens[0].type != 'number') | var addDirective = function(str) { var s = tokenizer.stripComment(str).strip(); if (s.length === 0) // 3 or more % in a row, or just spaces after %% is just a comment return null; var i = s.indexOf(' '); var cmd = (i > 0) ? s.substring(0, i) : s; var num; cmd = cmd.toLowerCase(); switch (cmd) { ... |
tune.formatting.staffwidth = num.value; | tune.formatting.staffwidth = parseInt(tokens[0].token); | var addDirective = function(str) { var s = tokenizer.stripComment(str).strip(); if (s.length === 0) // 3 or more % in a row, or just spaces after %% is just a comment return null; var i = s.indexOf(' '); var cmd = (i > 0) ? s.substring(0, i) : s; var num; cmd = cmd.toLowerCase(); switch (cmd) { ... |
num = tokenizer.getFloat(s.substring(i)); if (num.digits === 0) | scratch = ""; tokens.each(function(tok) { scratch += tok.token; }); num = parseFloat(scratch); if (isNaN(num) || num === 0) | var addDirective = function(str) { var s = tokenizer.stripComment(str).strip(); if (s.length === 0) // 3 or more % in a row, or just spaces after %% is just a comment return null; var i = s.indexOf(' '); var cmd = (i > 0) ? s.substring(0, i) : s; var num; cmd = cmd.toLowerCase(); switch (cmd) { ... |
tune.formatting.scale = num.value; | tune.formatting.scale = num; | var addDirective = function(str) { var s = tokenizer.stripComment(str).strip(); if (s.length === 0) // 3 or more % in a row, or just spaces after %% is just a comment return null; var i = s.indexOf(' '); var cmd = (i > 0) ? s.substring(0, i) : s; var num; cmd = cmd.toLowerCase(); switch (cmd) { ... |
tune.formatting.sep = s.substring(i); | if (tokens.length === 0) return "Directive \"" + cmd + "\" requires a string as a parameter."; tune.formatting.sep = tokens[0].token; break; case "barnumbers": if (tokens.length !== 1 || tokens[0].type != 'number') return "Directive \"" + cmd + "\" requires a number as a parameter."; multilineVars.barNumbers = tokens[0... | var addDirective = function(str) { var s = tokenizer.stripComment(str).strip(); if (s.length === 0) // 3 or more % in a row, or just spaces after %% is just a comment return null; var i = s.indexOf(' '); var cmd = (i > 0) ? s.substring(0, i) : s; var num; cmd = cmd.toLowerCase(); switch (cmd) { ... |
case "barnumbers": | var addDirective = function(str) { var s = tokenizer.stripComment(str).strip(); if (s.length === 0) // 3 or more % in a row, or just spaces after %% is just a comment return null; var i = s.indexOf(' '); var cmd = (i > 0) ? s.substring(0, i) : s; var num; cmd = cmd.toLowerCase(); switch (cmd) { ... | |
case "text": case "begintext": case "endtext": case "vocalfont": | var addDirective = function(str) { var s = tokenizer.stripComment(str).strip(); if (s.length === 0) // 3 or more % in a row, or just spaces after %% is just a comment return null; var i = s.indexOf(' '); var cmd = (i > 0) ? s.substring(0, i) : s; var num; cmd = cmd.toLowerCase(); switch (cmd) { ... | |
tune.formatting[cmd] = s.substring(i); | tune.formatting[cmd] = restOfString; | var addDirective = function(str) { var s = tokenizer.stripComment(str).strip(); if (s.length === 0) // 3 or more % in a row, or just spaces after %% is just a comment return null; var i = s.indexOf(' '); var cmd = (i > 0) ? s.substring(0, i) : s; var num; cmd = cmd.toLowerCase(); switch (cmd) { ... |
var restOfString = str.substring(str.indexOf(tokens[0])); | var restOfString = str.substring(str.indexOf(tokens[0].token)+tokens[0].token.length); restOfString = tokenizer.stripComment(restOfString); | var addDirective = function(str) { var tokens = tokenizer.tokenize(str, 0, str.length); // 3 or more % in a row, or just spaces after %% is just a comment if (tokens.length === 0 || tokens[0].type !== 'alpha') return null; var restOfString = str.substring(str.indexOf(tokens[0])); var cmd = tokens.shift().toke... |
if (tokens.length !== 1 || tokens[0].type != 'number') return "Directive \"" + cmd + "\" requires a number as a parameter."; tune.formatting.staffwidth = parseInt(tokens[0].token); | scratch = tokenizer.getMeasurement(tokens); if (scratch.used === 0 || tokens.length !== 0) return "Directive \"" + cmd + "\" requires a measurement as a parameter."; tune.formatting.staffwidth = scratch.value; | var addDirective = function(str) { var tokens = tokenizer.tokenize(str, 0, str.length); // 3 or more % in a row, or just spaces after %% is just a comment if (tokens.length === 0 || tokens[0].type !== 'alpha') return null; var restOfString = str.substring(str.indexOf(tokens[0])); var cmd = tokens.shift().toke... |
return "Directive \"" + cmd + "\" requires a string as a parameter."; tune.formatting.sep = tokens[0].token; | tune.addSeparator(); else { if (tokens.length !== 3 || tokens[0].type !== 'number' || tokens[1].type !== 'number' || tokens[2].type !== 'number') return "Directive \"" + cmd + "\" requires 3 numbers: space above, space below, length of line"; tune.addSeparator(parseInt(tokens[0].token), parseInt(tokens[1].token), parse... | var addDirective = function(str) { var tokens = tokenizer.tokenize(str, 0, str.length); // 3 or more % in a row, or just spaces after %% is just a comment if (tokens.length === 0 || tokens[0].type !== 'alpha') return null; var restOfString = str.substring(str.indexOf(tokens[0])); var cmd = tokens.shift().toke... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.