rem stringlengths 0 126k | add stringlengths 0 441k | context stringlengths 15 136k |
|---|---|---|
multilineVars.barNumbers = tokens[0].token; | multilineVars.barNumbers = parseInt(tokens[0].token); | 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... |
var addVoice = function(id, newStaff, bracket, brace, continueBar) { if (newStaff || multilineVars.staves.length === 0) { multilineVars.staves.push({ index: multilineVars.staves.length, numVoices: 0 }); } var staff = multilineVars.staves.last(); if (bracket !== undefined) staff.bracket = bracket; if (brace !== undefine... | 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... | |
var addEndSlur = function(obj, num) { | var addEndSlur = function(obj, num, chordPos) { | var addEndSlur = function(obj, num) { obj.endSlur = []; for (var i = 0; i < num; i++) { obj.endSlur.push(currSlur); if (currSlur > 0) --currSlur; } }; |
obj.endSlur.push(currSlur); if (currSlur > 0) --currSlur; | obj.endSlur.push(currSlur[chordPos]); if (currSlur[chordPos] > 0) --currSlur[chordPos]; | var addEndSlur = function(obj, num) { obj.endSlur = []; for (var i = 0; i < num; i++) { obj.endSlur.push(currSlur); if (currSlur > 0) --currSlur; } }; |
if (currSlur[chordPos] === undefined) currSlur[chordPos] = chordPos*100; | if (currSlur[chordPos] === undefined) { for (x = 0; x < currSlur.length; x++) { if (currSlur[x] !== undefined) { chordPos = x; break; } } if (currSlur[chordPos] === undefined) currSlur[chordPos] = [chordPos*100]; } var slurNum = currSlur[chordPos].pop(); | var addEndSlur = function(obj, num, chordPos) { obj.endSlur = []; if (currSlur[chordPos] === undefined) currSlur[chordPos] = chordPos*100; for (var i = 0; i < num; i++) { obj.endSlur.push(currSlur[chordPos]); if (currSlur[chordPos] > 0) --currSlur[chordPos]; } }; |
obj.endSlur.push(currSlur[chordPos]); if (currSlur[chordPos] > 0) --currSlur[chordPos]; | obj.endSlur.push(slurNum); | var addEndSlur = function(obj, num, chordPos) { obj.endSlur = []; if (currSlur[chordPos] === undefined) currSlur[chordPos] = chordPos*100; for (var i = 0; i < num; i++) { obj.endSlur.push(currSlur[chordPos]); if (currSlur[chordPos] > 0) --currSlur[chordPos]; } }; |
if (currSlur[chordPos].length === 0) delete currSlur[chordPos]; return slurNum; | var addEndSlur = function(obj, num, chordPos) { obj.endSlur = []; if (currSlur[chordPos] === undefined) currSlur[chordPos] = chordPos*100; for (var i = 0; i < num; i++) { obj.endSlur.push(currSlur[chordPos]); if (currSlur[chordPos] > 0) --currSlur[chordPos]; } }; | |
m.setAttribute('type','text/javascript');m.appendText(l);m.appendTo(a.document.getHead());}};})();a.resourceManager=function(j,k){var l=this;l.basePath=j;l.fileName=k;l.registered={};l.loaded={};l.externals={};l._={waitingList:{}};};a.resourceManager.prototype={add:function(j,k){if(this.registered[j])throw '[CKEDITOR.r... | },getPath:function(j){var k=this.externals[j];return a.getUrl(k&&k.dir||this.basePath+j+'/');},getFilePath:function(j){var k=this.externals[j];return a.getUrl(this.getPath(j)+(k&&typeof k.file=='string'?k.file:this.fileName+'.js'));},addExternal:function(j,k,l){j=j.split(',');for(var m=0;m<j.length;m++){var n=j[m];this... | m.setAttribute('type','text/javascript');m.appendText(l);m.appendTo(a.document.getHead());}};})();a.resourceManager=function(j,k){var l=this;l.basePath=j;l.fileName=k;l.registered={};l.loaded={};l.externals={};l._={waitingList:{}};};a.resourceManager.prototype={add:function(j,k){if(this.registered[j])throw '[CKEDITOR.r... |
},isArray:function(f){return!!f&&f instanceof Array;},isEmpty:function(f){for(var g in f){if(f.hasOwnProperty(g))return false;}return true;},cssStyleToDomStyle:(function(){var f=document.createElement('div').style,g=typeof f.cssFloat!='undefined'?'cssFloat':typeof f.styleFloat!='undefined'?'styleFloat':'float';return f... | if(k)this.extend(g,k,true);return g;},addFunction:function(f,g){return e.push(function(){f.apply(g||this,arguments);})-1;},removeFunction:function(f){e[f]=null;},callFunction:function(f){var g=e[f];return g&&g.apply(window,Array.prototype.slice.call(arguments,1));},cssLength:(function(){var f=/^\d+(?:\.\d+)?$/;return f... | },isArray:function(f){return!!f&&f instanceof Array;},isEmpty:function(f){for(var g in f){if(f.hasOwnProperty(g))return false;}return true;},cssStyleToDomStyle:(function(){var f=document.createElement('div').style,g=typeof f.cssFloat!='undefined'?'cssFloat':typeof f.styleFloat!='undefined'?'styleFloat':'float';return f... |
for (var i=0; i<numEvents; i++){ | for (var i=0; i<numEvents; i += 1){ | addListener: function(listener){ var events = listener.events; if (_isUndefined(events)){ Xmla.Exception._newError( "NO_EVENTS_SPECIFIED", "Xmla.addListener", listener )._throw(); } if (_isString(events)){ if (... |
"Content";Xmla.PROP_CONTENT_DATA="Data";Xmla.PROP_CONTENT_NONE="None";Xmla.PROP_CONTENT_SCHEMA="Schema";Xmla.PROP_CONTENT_SCHEMADATA="SchemaData";Xmla.prototype={listeners:null,soapMessage:null,response:null,responseText:null,responseXml:null,setOptions:function(a){h(this.options,a,true)},addListener:function(a){var b=... | "CustomFormat";Xmla.PROP_CONTENT="Content";Xmla.PROP_CONTENT_DATA="Data";Xmla.PROP_CONTENT_NONE="None";Xmla.PROP_CONTENT_SCHEMA="Schema";Xmla.PROP_CONTENT_SCHEMADATA="SchemaData";Xmla.prototype={listeners:null,soapMessage:null,response:null,responseText:null,responseXml:null,setOptions:function(a){g(this.options,a,true... | "Content";Xmla.PROP_CONTENT_DATA="Data";Xmla.PROP_CONTENT_NONE="None";Xmla.PROP_CONTENT_SCHEMA="Schema";Xmla.PROP_CONTENT_SCHEMADATA="SchemaData";Xmla.prototype={listeners:null,soapMessage:null,response:null,responseText:null,responseXml:null,setOptions:function(a){h(this.options,a,true)},addListener:function(a){var b=... |
var self = this; | try { var self = this; | addListeners : function() { var self = this; this.handle_current_view_check_status_setup = function(event) { self.onCurrentViewCheckStatus(event); }; this.handle_view_closed_setup = function(event) { self.onViewClosed(event); }; window.addEventListener... |
this.handle_current_view_check_status_setup = function(event) { self.onCurrentViewCheckStatus(event); }; | this.handle_current_view_check_status_setup = function(event) { | addListeners : function() { var self = this; this.handle_current_view_check_status_setup = function(event) { self.onCurrentViewCheckStatus(event); }; this.handle_view_closed_setup = function(event) { self.onViewClosed(event); }; window.addEventListener... |
this.handle_view_closed_setup = function(event) { self.onViewClosed(event); }; | self.pushEdit(); }; | addListeners : function() { var self = this; this.handle_current_view_check_status_setup = function(event) { self.onCurrentViewCheckStatus(event); }; this.handle_view_closed_setup = function(event) { self.onViewClosed(event); }; window.addEventListener... |
window.addEventListener('current_view_check_status', this.handle_current_view_check_status_setup, false); window.addEventListener('view_closed', this.handle_view_closed_setup, false); | this.handle_view_opened_setup = function(event) { self.viewOpened(event.originalTarget); }; this.handle_view_closed_setup = function(event) { self.viewClosed(event.originalTarget); }; if (this.prefs.editCompatibility) { window.addEventListener('current_view_check_status', this.handle_current_view_check_status_setup, ... | addListeners : function() { var self = this; this.handle_current_view_check_status_setup = function(event) { self.onCurrentViewCheckStatus(event); }; this.handle_view_closed_setup = function(event) { self.onViewClosed(event); }; window.addEventListener... |
this._KFLog.debug("Log in Last.fm"); | addLogin: function(login, parentUUID) { try { this._KFLog.debug("Log in Last.fm"); return this.KeePassRPC.addLogin(login, parentUUID); } catch (e) { this._KFLog.error("Unexpected exception while connecting to KeePassRPC. Please inform the KeeFox team that... | |
if (logins.some(function(l) { return login.matches(l, false, false, false, false); })) | if (logins.some(function(l) { return login.matches(l, false, true, false, false); })) | addLogin : function (login, parentUUID) { // Sanity check the login if (login.URLs == null || login.URLs.length == 0) throw "Can't add a login with a null or empty list of hostnames / URLs."; // For logins w/o a username, set to "", not null. //if (login.username == null) ... |
var result = this.syncRequest(this, "AddLogin", [jslogin, parentUUID]); | this.request(this, "AddLogin", [jslogin, parentUUID], null, ++this.requestId); | this.addLogin = function(login, parentUUID) { var jslogin = login.asEntry(); var result = this.syncRequest(this, "AddLogin", [jslogin, parentUUID]); return; } |
addMetaText: function(key, value) { | this.addMetaText = function(key, value) { | addMetaText: function(key, value) { if (this.metaText[key] === undefined) this.metaText[key] = value; else this.metaText[key] += "\n" + value; } |
} | }; | addMetaText: function(key, value) { if (this.metaText[key] === undefined) this.metaText[key] = value; else this.metaText[key] += "\n" + value; } |
else if (attr.token.length === 0) | else if (attr.token.length === 0 && line[start] !== '"') | var addNextTokenToStaffInfo = function(name) { var attr = tokenizer.getVoiceToken(line, start, end); if (attr.warn !== undefined) warn("Expected value for " + name + " in voice: " + attr.warn, line, start); else if (attr.token.length === 0) warn("Expected value for " + name + " in voice", line, star... |
addPositionToStack : function(toStack) { var currView = ko.views.manager.currentView; var scimoz = currView.scintilla.scimoz; var currentPos = scimoz.currentPos; | addPositionToStack : function(toStack, view, position) { try { var cleared = false; if (this.editClearNextStack) { if (this.nextEditStack.length > 0) { this.nextEditStack.clear(); cleared = true; } } | addPositionToStack : function(toStack) { var currView = ko.views.manager.currentView; var scimoz = currView.scintilla.scimoz; var currentPos = scimoz.currentPos; toStack.push({ view : currView, position : currentPos, line: scimoz.lineFromPosition(cur... |
toStack.push({ view : currView, position : currentPos, line: scimoz.lineFromPosition(currentPos), col: scimoz.getColumn(currentPos)}); | var scimoz = view.scimoz; var line = scimoz.lineFromPosition(position); var marker = scimoz.markerAdd(line, MARKNUM_EDITPOSLOC); | addPositionToStack : function(toStack) { var currView = ko.views.manager.currentView; var scimoz = currView.scintilla.scimoz; var currentPos = scimoz.currentPos; toStack.push({ view : currView, position : currentPos, line: scimoz.lineFromPosition(cur... |
if (this.prefs.editClearNextStack) { this.nextEditStack.clear(); | toStack.push({ view : view, position : position, line: line, col: scimoz.getColumn(position), marker: marker}); if (toStack.length == 1 || cleared) { this.updateCommands(); } } catch (err) { DafizillaCommon.exception(err); | addPositionToStack : function(toStack) { var currView = ko.views.manager.currentView; var scimoz = currView.scintilla.scimoz; var currentPos = scimoz.currentPos; toStack.push({ view : currView, position : currentPos, line: scimoz.lineFromPosition(cur... |
this.updateCommands(); | addPositionToStack : function(toStack) { var currView = ko.views.manager.currentView; var scimoz = currView.scintilla.scimoz; var currentPos = scimoz.currentPos; toStack.push({ view : currView, position : currentPos, line: scimoz.lineFromPosition(cur... | |
var mid = calcMiddle(clef.type, 0); | var mid = clef.verticalPos; | this.addPosToKey = function(clef, key) { var mid = calcMiddle(clef.type, 0); key.accidentals.each(function(acc) { var pitch = pitches[acc.note]; pitch = pitch - mid; acc.verticalPos = pitch % 14; // Always keep this on the two octaves on the staff }); }; |
acc.verticalPos = pitch % 14; | acc.verticalPos = pitch; | this.addPosToKey = function(clef, key) { var mid = calcMiddle(clef.type, 0); key.accidentals.each(function(acc) { var pitch = pitches[acc.note]; pitch = pitch - mid; acc.verticalPos = pitch % 14; // Always keep this on the two octaves on the staff }); }; |
if (mid < -10) { key.accidentals.each(function(acc) { acc.verticalPos -= 14; }); } else if (mid < -4) { key.accidentals.each(function(acc) { acc.verticalPos -= 7; }); } | this.addPosToKey = function(clef, key) { var mid = calcMiddle(clef.type, 0); key.accidentals.each(function(acc) { var pitch = pitches[acc.note]; pitch = pitch - mid; acc.verticalPos = pitch % 14; // Always keep this on the two octaves on the staff }); }; | |
acc.verticalPos -= 14; | acc.verticalPos -= 7; if (acc.verticalPos >= 11 || (acc.verticalPos === 10 && acc.acc === 'flat')) acc.verticalPos -= 7; | this.addPosToKey = function(clef, key) { // Shift the key signature from the treble positions to whatever position is needed for the clef. // This may put the key signature unnaturally high or low, so if it does, then shift it. var mid = clef.verticalPos; key.accidentals.each(function(acc) { var pitch = pitches[... |
var mid = calcMiddle(clef.type, 0); key.extraAccidentals.each(function(acc) { var pitch = pitches[acc.note]; pitch = pitch + 6 - mid; acc.verticalPos = pitch % 14; }) }; | var mid = calcMiddle(clef.type, 0); key.extraAccidentals.each(function(acc) { var pitch = pitches[acc.note]; pitch = pitch + 6 - mid; acc.verticalPos = pitch % 14; }); }; | this.addPosToKey = function(clef, key) { var mid = calcMiddle(clef.type, 0); key.extraAccidentals.each(function(acc) { var pitch = pitches[acc.note]; pitch = pitch + 6 - mid; acc.verticalPos = pitch % 14; // Always keep this on the two octaves on the staff }) }; |
} else if (mid >= 7) { key.accidentals.each(function(acc) { acc.verticalPos += 7; }); | this.addPosToKey = function(clef, key) { // Shift the key signature from the treble positions to whatever position is needed for the clef. // This may put the key signature unnaturally high or low, so if it does, then shift it. var mid = clef.verticalPos; key.accidentals.each(function(acc) { var pitch = pitches[... | |
addSeparator: function(spaceAbove, spaceBelow, lineLength) { | this.addSeparator = function(spaceAbove, spaceBelow, lineLength) { | addSeparator: function(spaceAbove, spaceBelow, lineLength) { this.lines.push({separator: {spaceAbove: spaceAbove, spaceBelow: spaceBelow, lineLength: lineLength}}); }, |
}, | }; | addSeparator: function(spaceAbove, spaceBelow, lineLength) { this.lines.push({separator: {spaceAbove: spaceAbove, spaceBelow: spaceBelow, lineLength: lineLength}}); }, |
var addStartSlur = function(obj, num) { | var addStartSlur = function(obj, num, chordPos) { | var addStartSlur = function(obj, num) { obj.startSlur = []; for (var i = 0; i < num; i++) { ++currSlur; obj.startSlur.push(currSlur); } }; |
++currSlur; obj.startSlur.push(currSlur); | ++currSlur[chordPos]; obj.startSlur.push(currSlur[chordPos]); | var addStartSlur = function(obj, num) { obj.startSlur = []; for (var i = 0; i < num; i++) { ++currSlur; obj.startSlur.push(currSlur); } }; |
var addStartSlur = function(obj, num, chordPos) { | var addStartSlur = function(obj, num, chordPos, usedNums) { | var addStartSlur = function(obj, num, chordPos) { obj.startSlur = []; if (currSlur[chordPos] === undefined) currSlur[chordPos] = chordPos*100; for (var i = 0; i < num; i++) { ++currSlur[chordPos]; obj.startSlur.push(currSlur[chordPos]); } }; |
if (currSlur[chordPos] === undefined) currSlur[chordPos] = chordPos*100; | if (currSlur[chordPos] === undefined) { currSlur[chordPos] = []; } var nextNum = chordPos*100+1; | var addStartSlur = function(obj, num, chordPos) { obj.startSlur = []; if (currSlur[chordPos] === undefined) currSlur[chordPos] = chordPos*100; for (var i = 0; i < num; i++) { ++currSlur[chordPos]; obj.startSlur.push(currSlur[chordPos]); } }; |
++currSlur[chordPos]; obj.startSlur.push(currSlur[chordPos]); | if (usedNums) { usedNums.each(function(x) { if (nextNum === x) ++nextNum; }) } currSlur[chordPos].push(nextNum); obj.startSlur.push(nextNum); nextNum++; | var addStartSlur = function(obj, num, chordPos) { obj.startSlur = []; if (currSlur[chordPos] === undefined) currSlur[chordPos] = chordPos*100; for (var i = 0; i < num; i++) { ++currSlur[chordPos]; obj.startSlur.push(currSlur[chordPos]); } }; |
a)if(b=="delete"){l.cssRules?l.deleteRule(n):l.removeRule(n);return true}else return o;++n}while(o)}return false};this.removeCssRule=function(a){return g.getCssRule(a,"delete")};this.addStyleSheet=function(a,b){if(document.createStyleSheet)setTimeout(function(){document.createStyleSheet(a)},15);else{var f=document.crea... | do{o=null;if(l.cssRules)o=l.cssRules[n];else if(l.rules)o=l.rules[n];if(o&&o.selectorText)if(o.selectorText.toLowerCase()==a)if(b=="delete"){l.cssRules?l.deleteRule(n):l.removeRule(n);return true}else return o;++n}while(o)}return false};this.removeCssRule=function(a){return g.getCssRule(a,"delete")};this.addStyleSheet=... | a)if(b=="delete"){l.cssRules?l.deleteRule(n):l.removeRule(n);return true}else return o;++n}while(o)}return false};this.removeCssRule=function(a){return g.getCssRule(a,"delete")};this.addStyleSheet=function(a,b){if(document.createStyleSheet)setTimeout(function(){document.createStyleSheet(a)},15);else{var f=document.crea... |
"stylesheet");b!=""&&b!="all"&&f.setAttribute("media",b);document.getElementsByTagName("head")[0].appendChild(f)}};this.windowSize=function(){var a,b;if(typeof window.innerWidth==="number"){a=window.innerWidth;b=window.innerHeight}else{a=document.documentElement.clientWidth;b=document.documentElement.clientHeight}retur... | "stylesheet");b!=""&&b!="all"&&f.setAttribute("media",b);document.getElementsByTagName("head")[0].appendChild(f)}};this.windowSize=function(){var a,b;if(typeof window.innerWidth==="number"){a=window.innerWidth;b=window.innerHeight}else{a=document.documentElement.clientWidth;b=document.documentElement.clientHeight}retur... | k.rules[h];if(o&&o.selectorText)if(o.selectorText.toLowerCase()==a)if(b=="delete"){k.cssRules?k.deleteRule(h):k.removeRule(h);return true}else return o;++h}while(o)}return false};this.removeCssRule=function(a){return g.getCssRule(a,"delete")};this.addStyleSheet=function(a,b){if(document.createStyleSheet)setTimeout(func... |
a}else{a=document.createTextNode(a);b.appendChild(a)}};this.getCssRule=function(a,b){a=a.toLowerCase();if(document.styleSheets)for(var e=0;e<document.styleSheets.length;e++){var k=document.styleSheets[e],i=0,n=false;do{if((n=k.cssRules?k.cssRules[i]:k.rules[i])&&n.selectorText)if(n.selectorText.toLowerCase()==a)if(b=="... | this.addStyleSheet=function(a,b){if(document.createStyleSheet)setTimeout(function(){document.createStyleSheet(a)},15);else{var e=document.createElement("link");e.setAttribute("type","text/css");e.setAttribute("href",a);e.setAttribute("type","text/css");e.setAttribute("rel","stylesheet");b!=""&&b!="all"&&e.setAttribute(... | a}else{a=document.createTextNode(a);b.appendChild(a)}};this.getCssRule=function(a,b){a=a.toLowerCase();if(document.styleSheets)for(var e=0;e<document.styleSheets.length;e++){var k=document.styleSheets[e],i=0,n=false;do{if((n=k.cssRules?k.cssRules[i]:k.rules[i])&&n.selectorText)if(n.selectorText.toLowerCase()==a)if(b=="... |
if(document.styleSheets)for(var e=0;e<document.styleSheets.length;e++){var k=document.styleSheets[e],i=0,n=false;do{if((n=k.cssRules?k.cssRules[i]:k.rules[i])&&n.selectorText)if(n.selectorText.toLowerCase()==a)if(b=="delete"){k.cssRules?k.deleteRule(i):k.removeRule(i);return true}else return n;++i}while(n)}return false... | if(document.styleSheets)for(var e=0;e<document.styleSheets.length;e++){var k=document.styleSheets[e],i=0,n=false;do{if((n=k.cssRules?k.cssRules[i]:k.rules[i])&&n.selectorText)if(n.selectorText.toLowerCase()==a)if(b=="delete"){k.cssRules?k.deleteRule(i):k.removeRule(i);return true}else return n;++i}while(n)}return false... | if(document.styleSheets)for(var e=0;e<document.styleSheets.length;e++){var k=document.styleSheets[e],i=0,n=false;do{if((n=k.cssRules?k.cssRules[i]:k.rules[i])&&n.selectorText)if(n.selectorText.toLowerCase()==a)if(b=="delete"){k.cssRules?k.deleteRule(i):k.removeRule(i);return true}else return n;++i}while(n)}return false... |
++k}while(o)}return false};this.removeCssRule=function(a){return g.getCssRule(a,"delete")};this.addStyleSheet=function(a,b){if(document.createStyleSheet)setTimeout(function(){document.createStyleSheet(a)},15);else{var f=document.createElement("link");f.setAttribute("type","text/css");f.setAttribute("href",a);f.setAttri... | do{o=null;if(h.cssRules)o=h.cssRules[k];else if(h.rules)o=h.rules[k];if(o&&o.selectorText)if(o.selectorText.toLowerCase()==a)if(b=="delete"){h.cssRules?h.deleteRule(k):h.removeRule(k);return true}else return o;++k}while(o)}return false};this.removeCssRule=function(a){return g.getCssRule(a,"delete")};this.addStyleSheet=... | ++k}while(o)}return false};this.removeCssRule=function(a){return g.getCssRule(a,"delete")};this.addStyleSheet=function(a,b){if(document.createStyleSheet)setTimeout(function(){document.createStyleSheet(a)},15);else{var f=document.createElement("link");f.setAttribute("type","text/css");f.setAttribute("href",a);f.setAttri... |
false;do{if((o=m.cssRules?m.cssRules[l]:m.rules[l])&&o.selectorText)if(o.selectorText.toLowerCase()==a)if(b=="delete"){m.cssRules?m.deleteRule(l):m.removeRule(l);return true}else return o;++l}while(o)}return false};this.removeCssRule=function(a){return k.getCssRule(a,"delete")};this.addStyleSheet=function(a){if(documen... | m.deleteRule(l):m.removeRule(l);return true}else return n;++l}while(n)}return false};this.removeCssRule=function(a){return k.getCssRule(a,"delete")};this.addStyleSheet=function(a){if(document.createStyleSheet)setTimeout(function(){document.createStyleSheet(a)},15);else{var b=document.createElement("link");b.setAttribut... | false;do{if((o=m.cssRules?m.cssRules[l]:m.rules[l])&&o.selectorText)if(o.selectorText.toLowerCase()==a)if(b=="delete"){m.cssRules?m.deleteRule(l):m.removeRule(l);return true}else return o;++l}while(o)}return false};this.removeCssRule=function(a){return k.getCssRule(a,"delete")};this.addStyleSheet=function(a){if(documen... |
addSubtitle: function(str) { | this.addSubtitle = function(str) { | addSubtitle: function(str) { this.lines.push({subtitle: str}); }, |
}, | }; | addSubtitle: function(str) { this.lines.push({subtitle: str}); }, |
H=H.getParent();}return null;});},getSelectedCells:n};j.add('tabletools',j.tabletools);})();j.add('specialchar',{init:function(l){var m='specialchar';a.dialog.add(m,this.path+'dialogs/specialchar.js');l.addCommand(m,new a.dialogCommand(m));l.ui.addButton('SpecialChar',{label:l.lang.specialChar.toolbar,command:m});}});(... | !c&&B.appendBogus();}u.moveToElementEditStart(y);}else if(v){v=new h(v);u.moveToElementEditStart(v);if(!(u.checkStartOfBlock()&&u.checkEndOfBlock()))u.selectNodeContents(v);}else return true;u.select(true);return true;}}return false;}};};j.add('tab',{requires:['keystrokes'],init:function(p){var q=p.config.enableTabKeyT... | H=H.getParent();}return null;});},getSelectedCells:n};j.add('tabletools',j.tabletools);})();j.add('specialchar',{init:function(l){var m='specialchar';a.dialog.add(m,this.path+'dialogs/specialchar.js');l.addCommand(m,new a.dialogCommand(m));l.ui.addButton('SpecialChar',{label:l.lang.specialChar.toolbar,command:m});}});(... |
addText: function(str) { | this.addText = function(str) { | addText: function(str) { this.lines.push({text: str}); }, |
}, | }; | addText: function(str) { this.lines.push({text: str}); }, |
if (el) { | if (el && el.pitches && el.pitches.length > 0) { | this.addTieToLastNote = function() { // TODO-PER: if this is a chord, which note? var el = this.getLastNote(); if (el) { el.pitches[0].startTie = true; return true; } return false; }; |
addTieToLastNote: function() { | this.addTieToLastNote = function() { | addTieToLastNote: function() { // TODO-PER: if this is a chord, which note? var el = this.getLastNote(); if (el) { el.pitches[0].startTie = true; return true; } return false; }, |
}, | }; | addTieToLastNote: function() { // TODO-PER: if this is a chord, which note? var el = this.getLastNote(); if (el) { el.pitches[0].startTie = true; return true; } return false; }, |
obj.onclick(); | if (obj.onclick) obj.onclick(); | function addTimerEvent(timerid, msec, repeat) { var tm = function() { var obj = WT.getElement(timerid); if (obj) { if (repeat) obj.timer = setTimeout(obj.tm, msec); else { obj.timer = null; obj.tm = null; } obj.onclick(); } }; var obj = WT.getElement(timerid); obj.timer = setTimeout(tm,... |
if (continueBar) staff.bar = 'end'; | if (continueBar) staff.connectBarLines = 'end'; | var addVoice = function(id, newStaff, bracket, brace, continueBar) { if (newStaff || multilineVars.staves.length === 0) { multilineVars.staves.push({ index: multilineVars.staves.length, numVoices: 0 }); } var staff = multilineVars.staves.last(); if (bracket !== undefined) staff.bracket = ... |
if (!line) { warn("Can't add words before the first line of mulsic", line, 0); return; } words = words.strip(); if (words[words.length-1] !== '-') words = words + ' '; var word_list = []; var last_divider = 0; var replace = false; var addWord = function(i) { var word = words.substring(last_divider, i).strip(); last_di... | if (!line) { warn("Can't add words before the first line of mulsic", line, 0); return; } words = words.strip(); if (words[words.length-1] !== '-') words = words + ' '; var word_list = []; var last_divider = 0; var replace = false; var addWord = function(i) { var word = words.substring(last_divider, i).strip(); last_di... | var addWords = function(line, words) { if (!line) { warn("Can't add words before the first line of mulsic", line, 0); return; } words = words.strip(); if (words[words.length-1] !== '-') words = words + ' '; // Just makes it easier to parse below, since every word has a divider after it. var word_list = [];... |
return false; }; for (var i = 0; i < words.length; i++) { switch (words[i]) { case ' ': case '\x12': addWord(i); break; case '-': if (!addWord(i) && word_list.length > 0) { word_list.last().divider = '-'; word_list.push({skip: true, to: 'next'}); } break; case '_': addWord(i); word_list.push({skip: true, to: 'slur'}); ... | var addWords = function(line, words) { if (!line) { warn("Can't add words before the first line of mulsic", line, 0); return; } words = words.strip(); if (words[words.length-1] !== '-') words = words + ' '; // Just makes it easier to parse below, since every word has a divider after it. var word_list = [];... | |
case '\x12': | var addWords = function(line, words) { if (!line) { warn("Can't add words before the first line of mulsic", line, 0); return; } words = words.strip(); if (words[words.length-1] !== '-') words = words + ' '; // Just makes it easier to parse below, since every word has a divider after it. var word_list = [];... | |
e.parentNode.offsetWidth-u.marginH(e);e.wtResize(e,m,d)}else if(e.style.height!=d+"px"){e.style.height=d+"px";if(e.className=="Wt-wrapdiv")if(a.isIE&&a.hasTag(e.firstChild,"TEXTAREA"))e.firstChild.style.height=d-a.pxself(e,"marginBottom")+"px"}}}};this.adjust=function(){var b=a.getElement(s);if(!b)return false;u.initRe... | WT_DECLARE_APP_MEMBER(1,"layouts",new (function(){var a=[],u=false;this.add=function(h){var t,b;t=0;for(b=a.length;t<b;++t)if(a[t].getId()==h.getId()){a[t]=h;return}a.push(h)};this.adjust=function(h){if(h){if(h=$("#"+h).get(0))h.dirty=true}else if(!u){u=true;for(i=0;i<a.length;++i){h=a[i];if(!h.adjust()){this.WT.arrayR... | e.parentNode.offsetWidth-u.marginH(e);e.wtResize(e,m,d)}else if(e.style.height!=d+"px"){e.style.height=d+"px";if(e.className=="Wt-wrapdiv")if(a.isIE&&a.hasTag(e.firstChild,"TEXTAREA"))e.firstChild.style.height=d-a.pxself(e,"marginBottom")+"px"}}}};this.adjust=function(){var b=a.getElement(s);if(!b)return false;u.initRe... |
document.getElementById('t_scrollbody').style.width=(div_width-19)+diff+"px"; | if (document.getElementById('t_scrollbody') != null) { document.getElementById('t_scrollbody').style.width=(div_width-19)+diff+"px"; } | function adjust_width(e) { /* Get event ... it seems to be unused here ...*/ if (!e) { e=window.event; } // Known to not work with IE if(document.defaultView && document.getElementById("t_scrolltable")) { // Get current width of divlist var div_width = parseInt(document.defaultView.getComputedStyle(document.getEle... |
document.getElementById('t_scrollhead').style.width=div_width+diff+"px"; | if (document.getElementById('t_scrollhead') != null) { document.getElementById('t_scrollhead').style.width=div_width+diff+"px"; } | function adjust_width(e) { /* Get event ... it seems to be unused here ...*/ if (!e) { e=window.event; } // Known to not work with IE if(document.defaultView && document.getElementById("t_scrolltable")) { // Get current width of divlist var div_width = parseInt(document.defaultView.getComputedStyle(document.getEle... |
document.getElementById('t_scrollbody').style.width=(div_width-19)+"px"; | if (document.getElementById('t_scrollbody') != null) { document.getElementById('t_scrollbody').style.width=(div_width-19)+"px"; } | function adjust_width(e) { /* Get event ... it seems to be unused here ...*/ if (!e) { e=window.event; } // Known to not work with IE if(document.defaultView && document.getElementById("t_scrolltable")) { // Get current width of divlist var div_width = parseInt(document.defaultView.getComputedStyle(document.getEle... |
document.getElementById('t_scrollhead').style.width=div_width+"px"; | if (document.getElementById('t_scrollhead') != null) { document.getElementById('t_scrollhead').style.width=div_width+"px"; } | function adjust_width(e) { /* Get event ... it seems to be unused here ...*/ if (!e) { e=window.event; } // Known to not work with IE if(document.defaultView && document.getElementById("t_scrolltable")) { // Get current width of divlist var div_width = parseInt(document.defaultView.getComputedStyle(document.getEle... |
this.adjustCell = function(td, height) { | this.adjustCell = function(td, height, col) { | this.adjustCell = function(td, height) { var shallow = height == 0; height -= WT.pxself(td, 'paddingTop'); height -= WT.pxself(td, 'paddingBottom'); if (height <= 0) height = 0; td.style.height = height+'px'; if (td.style['verticalAlign'] || td.childNodes.length == 0) return; ... |
if (self.getColumn(col).style.width != '') { | if (col != -1 && self.getColumn(col).style.width != '') { | this.adjustCell = function(td, height) { var shallow = height == 0; height -= WT.pxself(td, 'paddingTop'); height -= WT.pxself(td, 'paddingBottom'); if (height <= 0) height = 0; td.style.height = height+'px'; if (td.style['verticalAlign'] || td.childNodes.length == 0) return; ... |
c+=a.px(b,"paddingTop");c+=a.px(b,"paddingBottom");return c};this.getColumn=function(b){var c,f,d,i=a.getElement(t).firstChild.childNodes;f=c=0;for(d=i.length;f<d;f++){var k=i[f];if(a.hasTag(k,"COLGROUP")){f=-1;i=k.childNodes;d=i.length}if(a.hasTag(k,"COL"))if(k.className!="Wt-vrh")if(c==b)return k;else++c}return null}... | c+=a.px(b,"paddingTop");c+=a.px(b,"paddingBottom");return c};this.getColumn=function(b){var c,f,i,d=a.getElement(t).firstChild.childNodes;f=c=0;for(i=d.length;f<i;f++){var k=d[f];if(a.hasTag(k,"COLGROUP")){f=-1;d=k.childNodes;i=d.length}if(a.hasTag(k,"COL"))if(k.className!="Wt-vrh")if(c==b)return k;else++c}return null}... | c+=a.px(b,"paddingTop");c+=a.px(b,"paddingBottom");return c};this.getColumn=function(b){var c,f,d,i=a.getElement(t).firstChild.childNodes;f=c=0;for(d=i.length;f<d;f++){var k=i[f];if(a.hasTag(k,"COLGROUP")){f=-1;i=k.childNodes;d=i.length}if(a.hasTag(k,"COL"))if(k.className!="Wt-vrh")if(c==b)return k;else++c}return null}... |
b.substring(7)*1;e.style.width=g+"px";r.adjustColumns();l.emit(d,"columnResized",m,g)},c,d,a,-2,-1)}};this.adjustColumns=function(){var c=q.firstChild,a=i.firstChild,b=0,e=0;e=i.lastChild.className.split(" ")[0];var h=f.getCssRule("#"+d.id+" ."+e);if(p)a=a.firstChild;if(!f.isHidden(d)){for(var g=0,m=a.childNodes.length... | b.substring(7)*1;e.style.width=g+"px";r.adjustColumns();l.emit(d,"columnResized",m,parseInt(g))},c,d,a,-2,-1)}};this.adjustColumns=function(){var c=q.firstChild,a=i.firstChild,b=0,e=0;e=i.lastChild.className.split(" ")[0];var h=f.getCssRule("#"+d.id+" ."+e);if(p)a=a.firstChild;if(!f.isHidden(d)){for(var g=0,m=a.childNo... | b.substring(7)*1;e.style.width=g+"px";r.adjustColumns();l.emit(d,"columnResized",m,g)},c,d,a,-2,-1)}};this.adjustColumns=function(){var c=q.firstChild,a=i.firstChild,b=0,e=0;e=i.lastChild.className.split(" ")[0];var h=f.getCssRule("#"+d.id+" ."+e);if(p)a=a.firstChild;if(!f.isHidden(d)){for(var g=0,m=a.childNodes.length... |
var e=c.parentNode.parentNode;b=Math.max(f.x-b,-e.offsetWidth);if(e=e.className.split(" ")[0]){e=g.getCssRule("#"+d.id+" ."+e);var h=g.pxself(e,"width");e.style.width=Math.max(0,h+b)+"px"}this.adjustColumns();c.setAttribute("dsx",f.x);g.cancelEvent(a)}};this.resizeHandleMUp=function(c,a){c.removeAttribute("dsx");g.canc... | var f=c.parentNode.parentNode;b=Math.max(e.x-b,-f.offsetWidth);if(f=f.className.split(" ")[0]){f=g.getCssRule("#"+d.id+" ."+f);var j=g.pxself(f,"width");f.style.width=Math.max(0,j+b)+"px"}this.adjustColumns();c.setAttribute("dsx",e.x);g.cancelEvent(a)}};this.resizeHandleMUp=function(c,a){c.removeAttribute("dsx");g.canc... | var e=c.parentNode.parentNode;b=Math.max(f.x-b,-e.offsetWidth);if(e=e.className.split(" ")[0]){e=g.getCssRule("#"+d.id+" ."+e);var h=g.pxself(e,"width");e.style.width=Math.max(0,h+b)+"px"}this.adjustColumns();c.setAttribute("dsx",f.x);g.cancelEvent(a)}};this.resizeHandleMUp=function(c,a){c.removeAttribute("dsx");g.canc... |
this.adjustCell(td, 0); | this.adjustCell(td, 0, -1); | this.adjustRow = function(row, height) { var rowspan_tds = []; if (row.style.height != height + 'px') row.style.height = height + 'px'; var tds = row.childNodes, j, jl, td, col; for (j=0, col=-1, jl = tds.length; j<jl; ++j) { td=tds[j]; if (td.className != 'Wt-vrh') ++col; if... |
this.adjustCell(td, height); | this.adjustCell(td, height, -1); | this.adjustRow = function(row, height) { var rowspan_tds = []; if (row.style.height != height + 'px') row.style.height = height + 'px'; var tds = row.childNodes, j, jl, td, col; for (j=0, col=-1, jl = tds.length; j<jl; ++j) { td=tds[j]; if (td.className != 'Wt-vrh') ++col; if... |
var tds = row.childNodes, j, jl, td; for (j=0, jl = tds.length; j<jl; ++j) { | var tds = row.childNodes, j, jl, td, col; for (j=0, col=-1, jl = tds.length; j<jl; ++j) { | this.adjustRow = function(row, height) { if (row.style.height != height+'px') row.style.height = height+'px'; var tds = row.childNodes, j, jl, td; for (j=0, jl = tds.length; j<jl; ++j) { td=tds[j]; var k = height; k -= WT.pxself(td, 'paddingTop'); k -= WT.pxself(td, 'padding... |
ch.style.position = 'absolute'; ch.style.width = w+'px'; | if (self.getColumn(col).style.width != '') { ch.style.position = 'absolute'; ch.style.width = w+'px'; } | this.adjustRow = function(row, height) { if (row.style.height != height+'px') row.style.height = height+'px'; var tds = row.childNodes, j, jl, td; for (j=0, jl = tds.length; j<jl; ++j) { td=tds[j]; var k = height; k -= WT.pxself(td, 'paddingTop'); k -= WT.pxself(td, 'padding... |
WT_DECLARE_WT_MEMBER(1,"StdLayout",function(a,t,g){var n=this;this.getId=function(){return t};this.WT=a;this.marginH=function(d){var k=d.parentNode;return a.px(d,"marginLeft")+a.px(d,"marginRight")+a.px(d,"borderLeftWidth")+a.px(d,"borderRightWidth")+a.px(k,"paddingLeft")+a.px(k,"paddingRight")};this.marginV=function(d... | return e};this.adjustRow=function(d,e){if(d.style.height!=e+"px")d.style.height=e+"px";d=d.childNodes;var g,m,h;g=0;for(m=d.length;g<m;++g){h=d[g];var k=e;k-=a.pxself(h,"paddingTop");k-=a.pxself(h,"paddingBottom");if(k<=0)k=0;h.style.height=k+"px";if(!(h.style.verticalAlign||h.childNodes.length==0)){var b=h.childNodes[... | WT_DECLARE_WT_MEMBER(1,"StdLayout",function(a,t,g){var n=this;this.getId=function(){return t};this.WT=a;this.marginH=function(d){var k=d.parentNode;return a.px(d,"marginLeft")+a.px(d,"marginRight")+a.px(d,"borderLeftWidth")+a.px(d,"borderRightWidth")+a.px(k,"paddingLeft")+a.px(k,"paddingRight")};this.marginV=function(d... |
function(c){var f,i,j,g=a.getElement(s).firstChild.childNodes;i=f=0;for(j=g.length;i<j;i++){var q=g[i];if(a.hasTag(q,"COLGROUP")){i=-1;g=q.childNodes;j=g.length}if(a.hasTag(q,"COL"))if(q.className!="Wt-vrh")if(f==c)return q;else++f}return null};this.adjustRow=function(c,f){if(c.style.height!=f+"px")c.style.height=f+"px... | f+=a.px(b,"paddingTop");f+=a.px(b,"paddingBottom");return f};this.getColumn=function(b){var f,g,j,h=a.getElement(s).firstChild.childNodes;g=f=0;for(j=h.length;g<j;g++){var q=h[g];if(a.hasTag(q,"COLGROUP")){g=-1;h=q.childNodes;j=h.length}if(a.hasTag(q,"COL"))if(q.className!="Wt-vrh")if(f==b)return q;else++f}return null}... | function(c){var f,i,j,g=a.getElement(s).firstChild.childNodes;i=f=0;for(j=g.length;i<j;i++){var q=g[i];if(a.hasTag(q,"COLGROUP")){i=-1;g=q.childNodes;j=g.length}if(a.hasTag(q,"COL"))if(q.className!="Wt-vrh")if(f==c)return q;else++f}return null};this.adjustRow=function(c,f){if(c.style.height!=f+"px")c.style.height=f+"px... |
return h};this.getColumn=function(c){var h,g,j,f=a.getElement(s).firstChild.childNodes;g=h=0;for(j=f.length;g<j;g++){var q=f[g];if(a.hasTag(q,"COLGROUP")){g=-1;f=q.childNodes;j=f.length}if(a.hasTag(q,"COL"))if(q.className!="Wt-vrh")if(h==c)return q;else++h}return null};this.adjustRow=function(c,h){if(c.style.height!=h+... | function(c){var f,i,j,g=a.getElement(s).firstChild.childNodes;i=f=0;for(j=g.length;i<j;i++){var q=g[i];if(a.hasTag(q,"COLGROUP")){i=-1;g=q.childNodes;j=g.length}if(a.hasTag(q,"COL"))if(q.className!="Wt-vrh")if(f==c)return q;else++f}return null};this.adjustRow=function(c,f){if(c.style.height!=f+"px")c.style.height=f+"px... | return h};this.getColumn=function(c){var h,g,j,f=a.getElement(s).firstChild.childNodes;g=h=0;for(j=f.length;g<j;g++){var q=f[g];if(a.hasTag(q,"COLGROUP")){g=-1;f=q.childNodes;j=f.length}if(a.hasTag(q,"COL"))if(q.className!="Wt-vrh")if(h==c)return q;else++h}return null};this.adjustRow=function(c,h){if(c.style.height!=h+... |
c+"px";if(d.className=="Wt-wrapdiv")if(a.isIE&&a.hasTag(d.firstChild,"TEXTAREA"))d.firstChild.style.height=c-a.pxself(d,"marginBottom")+"px"}}};this.adjustRow=function(b,c){var f=[];if(b.style.height!=c+"px")b.style.height=c+"px";b=b.childNodes;var d,i,k,g;d=0;g=-1;for(i=b.length;d<i;++d){k=b[d];k.className!="Wt-vrh"&&... | c+"px";if(d.className=="Wt-wrapdiv")if(a.isIE&&a.hasTag(d.firstChild,"TEXTAREA"))d.firstChild.style.height=c-a.pxself(d,"marginBottom")+"px"}}};this.adjustRow=function(b,c){var f=[];if(b.style.height!=c+"px")b.style.height=c+"px";b=b.childNodes;var i,d,k,g;i=0;g=-1;for(d=b.length;i<d;++i){k=b[i];k.className!="Wt-vrh"&&... | c+"px";if(d.className=="Wt-wrapdiv")if(a.isIE&&a.hasTag(d.firstChild,"TEXTAREA"))d.firstChild.style.height=c-a.pxself(d,"marginBottom")+"px"}}};this.adjustRow=function(b,c){var f=[];if(b.style.height!=c+"px")b.style.height=c+"px";b=b.childNodes;var d,i,k,g;d=0;g=-1;for(i=b.length;d<i;++d){k=b[d];k.className!="Wt-vrh"&&... |
WT_DECLARE_WT_MEMBER(1,"StdLayout",function(a,s,r){var u=this;this.marginH=function(b){var i=b.parentNode;return a.px(b,"marginLeft")+a.px(b,"marginRight")+a.px(b,"borderLeftWidth")+a.px(b,"borderRightWidth")+a.px(i,"paddingLeft")+a.px(i,"paddingRight")};this.marginV=function(b){return a.px(b,"marginTop")+a.px(b,"margi... | WT_DECLARE_WT_MEMBER(1,"StdLayout",function(a,u,h){var t=this;this.getId=function(){return u};this.marginH=function(b){var k=b.parentNode;return a.px(b,"marginLeft")+a.px(b,"marginRight")+a.px(b,"borderLeftWidth")+a.px(b,"borderRightWidth")+a.px(k,"paddingLeft")+a.px(k,"paddingRight")};this.marginV=function(b){return a... | WT_DECLARE_WT_MEMBER(1,"StdLayout",function(a,s,r){var u=this;this.marginH=function(b){var i=b.parentNode;return a.px(b,"marginLeft")+a.px(b,"marginRight")+a.px(b,"borderLeftWidth")+a.px(b,"borderRightWidth")+a.px(i,"paddingLeft")+a.px(i,"paddingRight")};this.marginV=function(b){return a.px(b,"marginTop")+a.px(b,"margi... |
var k = height - WT.pxself(td, 'paddingTop') - WT.pxself(td, 'paddingBottom'); | var k = height; k -= WT.pxself(td, 'paddingTop'); k -= WT.pxself(td, 'paddingBottom'); | this.adjustRow = function(row, height) { if (row.style.height != height+'px') row.style.height = height+'px'; var tds = row.childNodes, j, jl, td; for (j=0, jl = tds.length; j<jl; ++j) { td=tds[j]; var k = height - WT.pxself(td, 'paddingTop') - WT.pxself(td, 'paddingBottom'); if ... |
k += -this.marginV(ch); | k -= this.marginV(ch); | this.adjustRow = function(row, height) { if (row.style.height != height+'px') row.style.height = height+'px'; var tds = row.childNodes, j, jl, td; for (j=0, jl = tds.length; j<jl; ++j) { td=tds[j]; var k = height - WT.pxself(td, 'paddingTop') - WT.pxself(td, 'paddingBottom'); if ... |
return e};this.adjustRow=function(d,e){if(d.style.height!=e+"px")d.style.height=e+"px";d=d.childNodes;var h,m,f;h=0;for(m=d.length;h<m;++h){f=d[h];var k=e;k-=a.pxself(f,"paddingTop");k-=a.pxself(f,"paddingBottom");if(k<=0)k=0;f.style.height=k+"px";if(!(f.style.verticalAlign||f.childNodes.length==0)){var b=f.childNodes[... | return h};this.getColumn=function(c){var h,g,j,f=a.getElement(s).firstChild.childNodes;g=h=0;for(j=f.length;g<j;g++){var q=f[g];if(a.hasTag(q,"COLGROUP")){g=-1;f=q.childNodes;j=f.length}if(a.hasTag(q,"COL"))if(q.className!="Wt-vrh")if(h==c)return q;else++h}return null};this.adjustRow=function(c,h){if(c.style.height!=h+... | return e};this.adjustRow=function(d,e){if(d.style.height!=e+"px")d.style.height=e+"px";d=d.childNodes;var h,m,f;h=0;for(m=d.length;h<m;++h){f=d[h];var k=e;k-=a.pxself(f,"paddingTop");k-=a.pxself(f,"paddingBottom");if(k<=0)k=0;f.style.height=k+"px";if(!(f.style.verticalAlign||f.childNodes.length==0)){var b=f.childNodes[... |
append:function(){return this.domManip(arguments,true,function(a){this.nodeType===1&&this.appendChild(a)})},prepend:function(){return this.domManip(arguments,true,function(a){this.nodeType===1&&this.insertBefore(a,this.firstChild)})},before:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,false,... | c(arguments[0]);a.push.apply(a,this.toArray());return this.pushStack(a,"before",arguments)}},after:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,false,function(b){this.parentNode.insertBefore(b,this.nextSibling)});else if(arguments.length){var a=this.pushStack(this,"after",arguments);a.push.a... | append:function(){return this.domManip(arguments,true,function(a){this.nodeType===1&&this.appendChild(a)})},prepend:function(){return this.domManip(arguments,true,function(a){this.nodeType===1&&this.insertBefore(a,this.firstChild)})},before:function(){if(this[0]&&this[0].parentNode)return this.domManip(arguments,false,... |
(function(){var l='.%2 p,.%2 div,.%2 pre,.%2 address,.%2 blockquote,.%2 h1,.%2 h2,.%2 h3,.%2 h4,.%2 h5,.%2 h6{background-repeat: no-repeat;border: 1px dotted gray;padding-top: 8px;padding-left: 8px;}.%2 p{%1p.png);}.%2 div{%1div.png);}.%2 pre{%1pre.png);}.%2 address{%1address.png);}.%2 blockquote{%1blockquote.png);}.%2... | p.document.getBody()[q]('cke_show_borders');}};j.add('showborders',{requires:['wysiwygarea'],modes:{wysiwyg:1},init:function(p){var q=p.addCommand('showborders',o);q.canUndo=false;if(p.config.startupShowBorders!==false)q.setState(1);p.addCss(m);p.on('mode',function(){if(q.state!=0)q.refresh(p);},null,null,100);p.on('co... | (function(){var l='.%2 p,.%2 div,.%2 pre,.%2 address,.%2 blockquote,.%2 h1,.%2 h2,.%2 h3,.%2 h4,.%2 h5,.%2 h6{background-repeat: no-repeat;border: 1px dotted gray;padding-top: 8px;padding-left: 8px;}.%2 p{%1p.png);}.%2 div{%1div.png);}.%2 pre{%1pre.png);}.%2 address{%1address.png);}.%2 blockquote{%1blockquote.png);}.%2... |
$(yesId).observe("click", function() { | $(yesId).observe("click", function(event) { event.stop(); | afterLoad : function() { $(noId).observe("click", Modalbox.hide.bindAsEventListener(Modalbox)); $(yesId).observe("click", function() { Modalbox.hide(); proceed.defer(); }); } |
$(noId).observe("click", Modalbox.hide.bindAsEventListener(Modalbox)); $(yesId).observe("click", function(event) { event.stop(); Modalbox.hide(); proceed.defer(); }); } | $(noId).observe("click", function(event) { Modalbox.hide(); }); $(yesId).observe("click", function(event) { event.stop(); Modalbox.hide(); proceed.defer(); }); } | afterLoad : function() { $(noId).observe("click", Modalbox.hide.bindAsEventListener(Modalbox)); $(yesId).observe("click", function(event) { event.stop(); Modalbox.hide(); proceed.defer(); }); } |
AGAIN:function(result) { if($type(result)) this.result = result; | AGAIN:function() { | AGAIN:function(result) { if($type(result)) this.result = result; this.next = 'again'; return this; }, |
AGAIN:function() { | AGAIN:function(result) { if($type(result)) this.result = result; | AGAIN:function() { this.next = 'again'; return this; }, |
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... | a);return this.pushStack(a[0]&&(a[0].setInterval||a[0].nodeType===9||a[0].parentNode&&a[0].parentNode.nodeType!==11)?c.unique(b):b)},andSelf:function(){return this.add(this.prevObject)}});c.each({parent:function(a){return(a=a.parentNode)&&a.nodeType!==11?a:null},parents:function(a){return c.dir(a,"parentNode")},parents... | 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... |
appendElement: function(type, startChar, endChar, hashParams) | this.appendElement = function(type, startChar, endChar, hashParams) | appendElement: function(type, startChar, endChar, hashParams) { var This = this; var pushNote = function(hp) { if (hp.pitches !== undefined) { var mid = This.lines[This.lineNum].staff[This.staffNum].clef.middle; hp.pitches.each(function(p) { p.verticalPos = p.pitch + 6 - mid; }); // the -6 is because the pit... |
}, | }; | appendElement: function(type, startChar, endChar, hashParams) { var This = this; var pushNote = function(hp) { if (hp.pitches !== undefined) { var mid = This.lines[This.lineNum].staff[This.staffNum].clef.middle; hp.pitches.each(function(p) { p.verticalPos = p.pitch + 6 - mid; }); // the -6 is because the pit... |
} | }; | var appendPositioning = function(properties) { var ret = Object.clone(properties); ret.startChar = { type: 'number', output: 'hidden' }; ret.endChar = { type: 'number', output: 'hidden' }; return ret; } |
appendStartingElement: function(type, startChar, endChar, hashParams2) | this.appendStartingElement = function(type, startChar, endChar, hashParams2) | appendStartingElement: function(type, startChar, endChar, hashParams2) { // Clone the object because it will be sticking around for the next line and we don't want the extra fields in it. var hashParams = Object.clone(hashParams2); // These elements should not be added twice, so if the element exists on this line w... |
}, | }; | appendStartingElement: function(type, startChar, endChar, hashParams2) { // Clone the object because it will be sticking around for the next line and we don't want the extra fields in it. var hashParams = Object.clone(hashParams2); // These elements should not be added twice, so if the element exists on this line w... |
this.$.focus();},getViewPaneSize:function(){var g=this.$.document,h=g.compatMode=='CSS1Compat';return{width:(h?g.documentElement.clientWidth:g.body.clientWidth)||0,height:(h?g.documentElement.clientHeight:g.body.clientHeight)||0};},getScrollPosition:function(){var g=this.$;if('pageXOffset' in g)return{x:g.pageXOffset||... | e.extend(d.window.prototype,{focus:function(){if(b.webkit&&this.$.parent)this.$.parent.focus();this.$.focus();},getViewPaneSize:function(){var g=this.$.document,h=g.compatMode=='CSS1Compat';return{width:(h?g.documentElement.clientWidth:g.body.clientWidth)||0,height:(h?g.documentElement.clientHeight:g.body.clientHeight)... | this.$.focus();},getViewPaneSize:function(){var g=this.$.document,h=g.compatMode=='CSS1Compat';return{width:(h?g.documentElement.clientWidth:g.body.clientWidth)||0,height:(h?g.documentElement.clientHeight:g.body.clientHeight)||0};},getScrollPosition:function(){var g=this.$;if('pageXOffset' in g)return{x:g.pageXOffset||... |
this.selectBookmarkedItem(bookmark); }, this, { single : true }); this.groupStore.on('loadexception', function(store, recs, options) { | applyBookmark : function(bookmark) { this.updatingBookmark = true; if (this.groupStore.lastOptions == null) { this.groupStore.on('load', function(store, recs, options) { this.selectBookmarkedItem(bookmark); }, this, { single : true ... | |
if (!this.privilegesFilter.pressed || !this.showPrivileges) | if (!this.privilegesFilter.pressed || !this.usePrivileges) | applyFilter : function() { this.storeProxy.conn.jsonData.data.name = this.textFilter.getValue(); if (this.selectedFilter.pressed) { this.storeProxy.conn.jsonData.data.selectedRoleIds = this.selectedRoleIds; this.storeProxy.conn.jsonData.data.selectedPrivilegeIds = this.selec... |
argToPref: function (arg) [k for ([k, v] in values(Sanitizer.prefArgList)) if (v == arg)][0] || arg }, { | argToPref: function (arg) ["commandLine", "offlineApps", "siteSettings"].filter(function (pref) pref.toLowerCase() == arg)[0] || arg, | argToPref: function (arg) [k for ([k, v] in values(Sanitizer.prefArgList)) if (v == arg)][0] || arg}, { |
true;if(document.body.addEventListener){var a=document.body;a.addEventListener("mousemove",t,true);a.addEventListener("mouseup",B,true);h.isGecko&&window.addEventListener("mouseout",function(b){!b.relatedTarget&&h.hasTag(b.target,"HTML")&&B(b)},true)}else{a=document.body;a.attachEvent("onmousemove",t);a.attachEvent("on... | true;if(document.body.addEventListener){var a=document.body;a.addEventListener("mousemove",t,true);a.addEventListener("mouseup",A,true);g.isGecko&&window.addEventListener("mouseout",function(b){!b.relatedTarget&&g.hasTag(b.target,"HTML")&&A(b)},true)}else{a=document.body;a.attachEvent("onmousemove",t);a.attachEvent("on... | true;if(document.body.addEventListener){var a=document.body;a.addEventListener("mousemove",t,true);a.addEventListener("mouseup",B,true);h.isGecko&&window.addEventListener("mouseout",function(b){!b.relatedTarget&&h.hasTag(b.target,"HTML")&&B(b)},true)}else{a=document.body;a.attachEvent("onmousemove",t);a.attachEvent("on... |
true;if(document.body.addEventListener){var a=document.body;a.addEventListener("mousemove",t,true);a.addEventListener("mouseup",B,true);g.isGecko&&window.addEventListener("mouseout",function(b){!b.relatedTarget&&g.hasTag(b.target,"HTML")&&B(b)},true)}else{a=document.body;a.attachEvent("onmousemove",t);a.attachEvent("on... | true;if(document.body.addEventListener){var a=document.body;a.addEventListener("mousemove",t,true);a.addEventListener("mouseup",B,true);h.isGecko&&window.addEventListener("mouseout",function(b){!b.relatedTarget&&h.hasTag(b.target,"HTML")&&B(b)},true)}else{a=document.body;a.attachEvent("onmousemove",t);a.attachEvent("on... | true;if(document.body.addEventListener){var a=document.body;a.addEventListener("mousemove",t,true);a.addEventListener("mouseup",B,true);g.isGecko&&window.addEventListener("mouseout",function(b){!b.relatedTarget&&g.hasTag(b.target,"HTML")&&B(b)},true)}else{a=document.body;a.attachEvent("onmousemove",t);a.attachEvent("on... |
l.on('selectionChange',function(m){var n=l.getCommand('unlink'),o=m.data.path.lastElement.getAscendant('a',true);if(o&&o.getName()=='a'&&o.getAttribute('href'))n.setState(2);else n.setState(0);});if(l.addMenuItems)l.addMenuItems({anchor:{label:l.lang.anchor.menu,command:'anchor',group:'anchor'},link:{label:l.lang.link.... | for(var r=0;r<o.length;r++){p=o[r].getCommonAncestor(true);q=p.getAscendant('a',true);if(!q)continue;o[r].selectNodeContents(q);}m.selectRanges(o);l.document.$.execCommand('unlink',false,null);m.selectBookmarks(n);},startDisabled:true};e.extend(i,{linkShowAdvancedTab:true,linkShowTargetTab:true});(function(){var l={ol:... | l.on('selectionChange',function(m){var n=l.getCommand('unlink'),o=m.data.path.lastElement.getAscendant('a',true);if(o&&o.getName()=='a'&&o.getAttribute('href'))n.setState(2);else n.setState(0);});if(l.addMenuItems)l.addMenuItems({anchor:{label:l.lang.anchor.menu,command:'anchor',group:'anchor'},link:{label:l.lang.link.... |
log.info("TITLEAS: " + this.title); | asEntry : function () { log.info("TITLEAS: " + this.title); var entry = {}; entry.parent = this.parentGroup; entry.iconImageData = this.iconImageData; entry.alwaysAutoFill = this.alwaysAutoFill; entry.alwaysAutoSubmit = this.alwaysAutoSubmit; entry.neverAutoFi... | |
newItem[zoteroField] = Zotero.Utilities.cleanString(metaTags.namedItem(field).getAttribute("content")); | newItem[zoteroField] = Zotero.Utilities.trimInternal(metaTags.namedItem(field).getAttribute("content")); | function associateMeta(newItem, metaTags, field, zoteroField) { if(metaTags.namedItem(field)) { newItem[zoteroField] = Zotero.Utilities.cleanString(metaTags.namedItem(field).getAttribute("content")); }} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.