rem stringlengths 0 126k | add stringlengths 0 441k | context stringlengths 15 136k |
|---|---|---|
else if (arguments.length == 3) | else if (l3 === undefined) | function sc_map(proc, l1, l2) { /// export if (arguments.length == 2) return sc_map1(proc, l1); else if (arguments.length == 3) return sc_map2(proc, l1, l2); // else var nbApplyArgs = arguments.length - 1; var applyArgs = new Array(nbApplyArgs); var revres = null; while (l1 !== null) { for (var i =... |
function sc_minus(x, y) { if (y === undefined) | function sc_minus(x) { if (arguments.length === 1) | function sc_minus(x, y) { /// export - -fx -fl if (y === undefined) return -x; else return x - y;} |
else return x - y; | else { var res = x; for (var i = 1; i < arguments.length; i++) res -= arguments[i]; return res; } | function sc_minus(x, y) { /// export - -fx -fl if (y === undefined) return -x; else return x - y;} |
return port.peekChar(); | var t = port.peekChar(); return t === SC_EOF_OBJECT? t: new sc_Char(t); | function sc_peekChar(port) { /// export if (port === undefined) // we assume the port hasn't been given. port = SC_DEFAULT_IN; // THREAD: shared var... return port.peekChar();} |
return port.readChar(); | var t = port.readChar(); return t === SC_EOF_OBJECT? t: new sc_Char(t); | function sc_readChar(port) { /// export if (port === undefined) // we assume the port hasn't been given. port = SC_DEFAULT_IN; // THREAD: shared var... return port.readChar();} |
res = sc_cons(s.charAt(i), res); | res = sc_cons(new sc_Char(s.charAt(i)), res); | function sc_string2list_immutable(s) { /// export var res = null; for (var i = s.length - 1; i >= 0; i--) res = sc_cons(s.charAt(i), res); return res;} |
sc_symbol2number(s.val, radix); | sc_symbol2number_mutable(s.val, radix); | function sc_string2number_mutable(s, radix) { /// export sc_symbol2number(s.val, radix);} |
sc_symbol2number_mutable(s.val, radix); | return sc_symbol2number_mutable(s.val, radix); | function sc_string2number_mutable(s, radix) { /// export sc_symbol2number_mutable(s.val, radix);} |
return s.charAt(k); | return new sc_Char(s.charAt(k)); | function sc_stringRef_immutable(s, k) { /// export return s.charAt(k);} |
return s.val.charAt(k); | return new sc_Char(s.val.charAt(k)); | function sc_stringRef_mutable(s, k) { /// export return s.val.charAt(k);} |
return arguments; | return new sc_Values(arguments); | function sc_values() { /// export return arguments;} |
var outp = new sc_StringOutputPort(); | var outp = new sc_StringOutputPort_immutable(); | function sc_withOutputToString_immutable(thunk) { /// export var tmp = SC_DEFAULT_OUT; // THREAD: shared var. var outp = new sc_StringOutputPort(); SC_DEFAULT_OUT = outp; var tmp2 = thunk(); SC_DEFAULT_OUT = tmp; return outp.close();} |
return new sc_String(sc_withOutputToString_immutable(thunk)); | var tmp = SC_DEFAULT_OUT; var outp = new sc_StringOutputPort_mutable(); SC_DEFAULT_OUT = outp; var tmp2 = thunk(); SC_DEFAULT_OUT = tmp; return outp.close(); | function sc_withOutputToString_mutable(thunk) { /// export return new sc_String(sc_withOutputToString_immutable(thunk));} |
for(thiskl in KLines) { if (KLines[thiskl].hostmask && match_irc_mask(theuser.uprefix + "@" + theuser.hostname,KLines[thiskl].hostmask)) theuser.quit("User has been K:Lined (" + KLines[thiskl].reason + ")"); } | if (isklined(theuser.uprefix + "@" + theuser.hostname)) theuser.quit("User has been K:Lined (" + KLines[thiskl].reason + ")"); | function scan_for_klined_clients() { for(thisUser in Clients) { if (Clients[thisUser]) { theuser=Clients[thisUser]; if (theuser.local && !theuser.server && (theuser.conntype == TYPE_USER)) { for(thiskl in KLines) { if (KLines[thiskl].hostmask && match_irc_mask(theuser.uprefix + "@" + theuser.... |
var kline=isklined(theuser.uprefix + "@" + theuser.hostname)); | var kline=isklined(theuser.uprefix + "@" + theuser.hostname); | function scan_for_klined_clients() { for(thisUser in Local_Users) { var theuser=Local_Users[thisUser]; var kline=isklined(theuser.uprefix + "@" + theuser.hostname)); if (kline) theuser.quit("User has been K:Lined (" + kline.reason + ")"); if (iszlined(theuser.ip)) theuser.quit("User has been Z:Lined"); }} |
theuser.quit("User has been K:Lined (" + KLines[thiskl].reason + ")",true); | theuser.quit("User has been K:Lined (" + KLines[thiskl].reason + ")"); | function scan_for_klined_clients() { for(thisUser in Clients) { if (Clients[thisUser]) { theuser=Clients[thisUser]; if (theuser.local && !theuser.server && (theuser.conntype == TYPE_USER)) { if (isklined(theuser.uprefix + "@" + theuser.hostname)) theuser.quit("User has been K:Lined (" + KLines[thiskl... |
theuser.quit("User has been Z:Lined",true); | theuser.quit("User has been Z:Lined"); | function scan_for_klined_clients() { for(thisUser in Clients) { if (Clients[thisUser]) { theuser=Clients[thisUser]; if (theuser.local && !theuser.server && (theuser.conntype == TYPE_USER)) { if (isklined(theuser.uprefix + "@" + theuser.hostname)) theuser.quit("User has been K:Lined (" + KLines[thiskl... |
if (theuser.uprefix && isklined(theuser.uprefix + "@" + theuser.hostname)) theuser.quit("User has been K:Lined (" + KLines[thiskl].reason + ")"); | var kline=isklined(theuser.uprefix + "@" + theuser.hostname)); if (kline) theuser.quit("User has been K:Lined (" + kline.reason + ")"); | function scan_for_klined_clients() { for(thisUser in Local_Users) { var theuser=Local_Users[thisUser]; if (theuser.uprefix && isklined(theuser.uprefix + "@" + theuser.hostname)) theuser.quit("User has been K:Lined (" + KLines[thiskl].reason + ")"); if (iszlined(theuser.ip)) theuser.quit("User has been Z:Lined");... |
theuser.quit("User has been K:Lined (" + KLines[thiskl].reason + ")"); | theuser.quit("User has been K:Lined (" + KLines[thiskl].reason + ")",true); | function scan_for_klined_clients() { for(thisUser in Clients) { if (Clients[thisUser]) { theuser=Clients[thisUser]; if (theuser.local && !theuser.server && (theuser.conntype == TYPE_USER)) { if (isklined(theuser.uprefix + "@" + theuser.hostname)) theuser.quit("User has been K:Lined (" + KLines[thiskl... |
theuser.quit("User has been Z:Lined"); | theuser.quit("User has been Z:Lined",true); | function scan_for_klined_clients() { for(thisUser in Clients) { if (Clients[thisUser]) { theuser=Clients[thisUser]; if (theuser.local && !theuser.server && (theuser.conntype == TYPE_USER)) { if (isklined(theuser.uprefix + "@" + theuser.hostname)) theuser.quit("User has been K:Lined (" + KLines[thiskl... |
return "\x01H\x01Y\x014"+channels.current.topic.substr(0,80)+SPACEx80.substr(0,(80-channels.current.topic.length)>0?(80-channels.current.topic.length):0)+"\x01N\x01W\x010"; | return "\x01H\x01Y\x014"+channels.current.topic.substr(0,79)+SPACEx80.substr(0,(79-channels.current.topic.length)>0?(79-channels.current.topic.length):0)+"\x01N\x01W\x010"; | function Screen() { console.clear(); this.line=new Array(console.screen_rows-3); this.rows=console.screen_rows-3; // Title, Status, and input rows are not counted. this.update_input_line=Screen_update_input_line; this.print_line=Screen_print_line; this.update_statline=Screen_update_statline; this.statusline getter=fun... |
return "\x01H\x01Y\x014No Topic"+SPACEx80.substr(0,72)+"\x01N\x01W\x010"; | return "\x01H\x01Y\x014No Topic"+SPACEx80.substr(0,71)+"\x01N\x01W\x010"; | function Screen() { console.clear(); this.line=new Array(console.screen_rows-3); this.rows=console.screen_rows-3; // Title, Status, and input rows are not counted. this.update_input_line=Screen_update_input_line; this.print_line=Screen_print_line; this.update_statline=Screen_update_statline; this.statusline getter=fun... |
console.crlf(); | function Screen_handle_key(key) { var commands=[null]; var command=null; var nickmatch=""; var lastspace=0; switch(key) { case "\r": if(this.input_buffer=="") { break; } history.addline(this.input_buffer); while(history.line.length>MAX_HIST) { history.shift(); } this.input_buffer=this.input_buffe... | |
var my_eol = this.input_buffer.length; this.input_pos = my_eol; | function Screen_handle_key(key) { var commands=[null]; var command=null; switch(key) { case "\r": if(this.input_buffer=="") { break; } history.addline(this.input_buffer); while(history.line.length>MAX_HIST) { history.shift(); } this.input_buffer=this.input_buffer.replace(/%C/g,"\x03"); this.in... | |
screen.print_line("\x01N\x01M<\x01N\x01W"+nick+"\x01N\x01M>\x01N\x01W "+screen.input_buffer); | function Screen_handle_key(key) { var commands=[null]; var command=null; switch(key) { case "\r": if(screen.input_buffer=="") { break; } history.addline(screen.input_buffer); while(history.line.length>MAX_HIST) { history.shift(); } screen.input_buffer=screen.input_buffer.replace(/%C/g,"\x03"); ... | |
var nickmatch=""; var lastspace=0; | function Screen_handle_key(key) { var commands=[null]; var command=null; switch(key) { case "\r": if(this.input_buffer=="") { break; } history.addline(this.input_buffer); while(history.line.length>MAX_HIST) { history.shift(); } this.input_buffer=this.input_buffer.replace(/%C/g,"\x03"); this.in... | |
this.input_buffer=channels.current.matchnick(this.input_buffer); var my_eol = this.input_buffer.length; this.input_pos = my_eol; | lastspace=this.input_buffer.lastIndexOf(" ",this.input_pos); nickmatch=channels.current.matchnick(this.input_buffer.substr(lastspace+1,this.input_pos-lastspace-1)); if(nickmatch != null) { this.input_buffer=this.input_buffer.substr(0,lastspace+1)+nickmatch+(lastspace==-1?": ":" ")+this.input_buffer.substr(this.input_po... | function Screen_handle_key(key) { var commands=[null]; var command=null; switch(key) { case "\r": if(this.input_buffer=="") { break; } history.addline(this.input_buffer); while(history.line.length>MAX_HIST) { history.shift(); } this.input_buffer=this.input_buffer.replace(/%C/g,"\x03"); this.in... |
console.ansi_gotoxy(1,console.screen_rows-1); | console.ansi_gotoxy(1,console.screen_rows-2); | function Screen_handle_key(key) { var commands=[null]; var command=null; switch(key) { case "\r": if(this.input_buffer=="") { break; } history.addline(this.input_buffer); while(history.line.length>MAX_HIST) { history.shift(); } this.input_buffer=this.input_buffer.replace(/%C/g,"\x03"); this.in... |
console.crlf(); console.ansi_gotoxy(1,1); console.clearline(); console.print(this.topicline); | function Screen_handle_key(key) { var commands=[null]; var command=null; switch(key) { case "\r": if(this.input_buffer=="") { break; } history.addline(this.input_buffer); while(history.line.length>MAX_HIST) { history.shift(); } this.input_buffer=this.input_buffer.replace(/%C/g,"\x03"); this.in... | |
console.ansi_gotoxy(1,console.screen_rows-2); console.clearline(); console.ansi_gotoxy(1,console.screen_rows-1); console.clearline(); console.ansi_gotoxy(1,console.screen_rows); console.clearline(); | function Screen_print_line(line) { var i=0; var lastspace=0; var linestart=0; var prev_colour=""; var last_colour=""; var cname=""; var topic=""; console.line_counter=0; // defeat pause console.ansi_gotoxy(1,console.screen_rows-2); console.clearline(); console.ansi_gotoxy(1,console.screen_rows-1); console.clearline();... | |
console.crlf(); | function Screen_print_line(line) { var i=0; var lastspace=0; var linestart=0; var prev_colour=""; var last_colour=""; var cname=""; var topic=""; console.line_counter=0; // defeat pause console.ansi_gotoxy(1,console.screen_rows-2); console.clearline(); console.ansi_gotoxy(1,console.screen_rows-1); console.clearline();... | |
if(i<78) { | if(i<=78) { | function Screen_print_line(line) { var i=0; var lastspace=0; var linestart=0; var prev_colour=""; var last_colour=""; var cname=""; var topic=""; console.line_counter=0; // defeat pause console.ansi_gotoxy(1,console.screen_rows-1); console.clearline(); console.ansi_gotoxy(1,console.screen_rows); console.clearline(); c... |
console.ansi_gotoxy(1,console.screen_rows-1); | console.ansi_gotoxy(1,console.screen_rows-2); | function Screen_print_line(line) { var i=0; var lastspace=0; var linestart=0; var prev_colour=""; var last_colour=""; var cname=""; var topic=""; console.line_counter=0; // defeat pause console.ansi_gotoxy(1,console.screen_rows-1); console.clearline(); console.ansi_gotoxy(1,console.screen_rows); console.clearline(); c... |
console.ansi_gotoxy(1,1); console.clearline(); console.print(this.topicline); | function Screen_print_line(line) { var i=0; var lastspace=0; var linestart=0; var prev_colour=""; var last_colour=""; var cname=""; var topic=""; console.line_counter=0; // defeat pause console.ansi_gotoxy(1,console.screen_rows-1); console.clearline(); console.ansi_gotoxy(1,console.screen_rows); console.clearline(); c... | |
var key=console.inkey(); | var key=console.inkey(100); | function Screen_update() { while(1) { var key=console.inkey(); if(key!="") this.handle_key(key); else break; }} |
function Screen_update() { | function Screen_update(wait) { | function Screen_update() { while(1) { var key=console.inkey(100); if(key!="") this.handle_key(key); else break; }} |
var key=console.inkey(100); | var key=console.inkey(wait); | function Screen_update() { while(1) { var key=console.inkey(100); if(key!="") this.handle_key(key); else break; }} |
else { sleep(1); } | function Screen_update() { var key=console.inkey(); if(key!="") { this.handle_key(key); }} | |
if(line_len-this.input_pos < 49) { | if(line_len-this.input_pos < 39) { | function Screen_update_input_line() { var line_pos=this.input_pos; var line_str=this.input_buffer; var line_start=0; var line_len=this.input_buffer.length; if(line_len-this.input_pos < 49) { line_start=line_len-78; } else if (this.input_pos < 49) { line_start=0; } else { line_start=this.input_pos-49; } if(line_s... |
else if (this.input_pos < 49) { | else if (this.input_pos < 39) { | function Screen_update_input_line() { var line_pos=this.input_pos; var line_str=this.input_buffer; var line_start=0; var line_len=this.input_buffer.length; if(line_len-this.input_pos < 49) { line_start=line_len-78; } else if (this.input_pos < 49) { line_start=0; } else { line_start=this.input_pos-49; } if(line_s... |
line_start=this.input_pos-49; | line_start=this.input_pos-39; | function Screen_update_input_line() { var line_pos=this.input_pos; var line_str=this.input_buffer; var line_start=0; var line_len=this.input_buffer.length; if(line_len-this.input_pos < 49) { line_start=line_len-78; } else if (this.input_pos < 49) { line_start=0; } else { line_start=this.input_pos-49; } if(line_s... |
line_str=this.input_buffer.slice(line_start,78); | line_str=this.input_buffer.substr(line_start,78); | function Screen_update_input_line() { var line_pos=this.input_pos; var line_str=this.input_buffer; var line_start=0; var line_len=this.input_buffer.length; if(line_len-this.input_pos < 49) { line_start=line_len-78; } else if (this.input_pos < 49) { line_start=0; } else { line_start=this.input_pos-49; } if(line_s... |
line_str='+'+line_str.slice(1); | line_str='+'+line_str.substr(1); | function Screen_update_input_line() { var line_pos=this.input_pos; var line_str=this.input_buffer; var line_start=0; var line_len=this.input_buffer.length; if(line_len-this.input_pos < 49) { line_start=line_len-78; } else if (this.input_pos < 49) { line_start=0; } else { line_start=this.input_pos-49; } if(line_s... |
console.crlf(); | function Screen_update_statline() { var cname=""; var topic=""; console.ansi_gotoxy(1,console.screen_rows-2); if(channels.current==undefined) { cname="No channel"; topic="Not in channel"; } else { cname=channels.current.display; topic=channels.current.topic; } console.print(this.topicline); console.print(this.st... | |
console.ansi_gotoxy(1,console.screen_rows-1); | console.ansi_gotoxy(1,console.screen_rows-2); | function Screen_update_statline() { var cname=""; var topic=""; console.ansi_gotoxy(1,console.screen_rows-1); if(channels.current==undefined) { cname="No channel"; topic="Not in channel"; } else { cname=channels.current.display; topic=channels.current.topic; } console.print(this.statusline); console.crlf(); cons... |
console.crlf(); console.ansi_gotoxy(1,1); console.clearline(); console.print(this.topicline); | function Screen_update_statline() { var cname=""; var topic=""; console.ansi_gotoxy(1,console.screen_rows-1); if(channels.current==undefined) { cname="No channel"; topic="Not in channel"; } else { cname=channels.current.display; topic=channels.current.topic; } console.print(this.statusline); console.crlf(); cons... | |
case "includes": case "excludes": script[match[1]].push(match[2]); | case "include": case "exclude": script[match[1]+"s"].push(match[2]); | function ScriptDownloader(url) { var dm = Components.classes["@mozilla.org/download-manager;1"].getService(Components.interfaces.nsIDownloadManager) var ioservice = Components.classes["@mozilla.org/network/io-service;1"].getService(); var sourceUri = ioservice.newURI(url, null, null); var targetFile = getTempFile(); va... |
this.draw(Draggables._lastPointer); | Draggables._lastScrollPointer = Draggables._lastScrollPointer || $A(Draggables._lastPointer); Draggables._lastScrollPointer[0] += this.scrollSpeed[0] * delta / 1000; Draggables._lastScrollPointer[1] += this.scrollSpeed[1] * delta / 1000; if (Draggables._lastScrollPointer[0] < 0) Draggables._lastScrollPointer[0] = 0; if... | scroll: function() { var current = new Date(); var delta = current - this.lastScrolled; this.lastScrolled = current; if(this.options.scroll == window) { with (this._getWindowScroll(this.options.scroll)) { if (this.scrollSpeed[0] || this.scrollSpeed[1]) { var d = delta / 1000; ... |
Draggables._lastScrollPointer = Draggables._lastScrollPointer || $A(Draggables._lastPointer); Draggables._lastScrollPointer[0] += this.scrollSpeed[0] * delta / 1000; Draggables._lastScrollPointer[1] += this.scrollSpeed[1] * delta / 1000; if (Draggables._lastScrollPointer[0] < 0) Draggables._lastScrollPointer[0] = 0; if... | if (this._isScrollChild) { Draggables._lastScrollPointer = Draggables._lastScrollPointer || $A(Draggables._lastPointer); Draggables._lastScrollPointer[0] += this.scrollSpeed[0] * delta / 1000; Draggables._lastScrollPointer[1] += this.scrollSpeed[1] * delta / 1000; if (Draggables._lastScrollPointer[0] < 0) Draggables._l... | scroll: function() { var current = new Date(); var delta = current - this.lastScrolled; this.lastScrolled = current; if(this.options.scroll == window) { with (this._getWindowScroll(this.options.scroll)) { if (this.scrollSpeed[0] || this.scrollSpeed[1]) { var d = delta / 1000; ... |
for(i=0; i<lines_on_screen; i++) { redraw_line(i+topline); } | for(i=0; i<lines_on_screen; i++) draw_line(i+topline); | function scroll(count){ var i; topline+=count; if(topline+lines_on_screen>=line.length) topline=line.length-lines_on_screen; if(topline<0) topline=0; for(i=0; i<lines_on_screen; i++) { redraw_line(i+topline); }} |
console.gotoxy(1,edit_top+i); | function scroll(count){ var i; topline+=count; if(topline+lines_on_screen>=line.length) topline=line.length-lines_on_screen; if(topline<0) topline=0; for(i=0; i<lines_on_screen; i++) { console.gotoxy(1,edit_top+i); if(line[i+topline]!=undefined) line[i+topline].draw(); else { console.attributes=7; console.cl... | |
line[i+topline].draw(); | line[i+topline].draw(edit_top+i); | function scroll(count){ var i; topline+=count; if(topline+lines_on_screen>=line.length) topline=line.length-lines_on_screen; if(topline<0) topline=0; for(i=0; i<lines_on_screen; i++) { console.gotoxy(1,edit_top+i); if(line[i+topline]!=undefined) line[i+topline].draw(); else { console.attributes=7; console.cl... |
if ((e.target.tagName == "IMG") || (linuxImage != null) || (currentImage != null)) | if ((e.target.tagName.toLowerCase() == "img") || (linuxImage != null) || (currentImage != null)) | function ScrollImage(e){ var imageToScroll; // Scroll wheel invoked while right button down, zoom target image if ((window._content.document.location == currentURL) && (nsIPrefBranchObj.getBoolPref("usescroll"))) { switch (nsIPrefBranchObj.getIntPref("scrollZoomMode")) { // Mixed Mode (default) case 0: if ((e.ta... |
} else if (e.target.tagName == "IMG") { | } else if (e.target.tagName.toLowerCase() == "img") { | function ScrollImage(e){ var imageToScroll; // Scroll wheel invoked while right button down, zoom target image if ((window._content.document.location == currentURL) && (nsIPrefBranchObj.getBoolPref("usescroll"))) { switch (nsIPrefBranchObj.getIntPref("scrollZoomMode")) { // Mixed Mode (default) case 0: if ((e.ta... |
if ((e.target.tagName == "IMG") || (linuxImage != null)) | if ((e.target.tagName.toLowerCase() == "img") || (linuxImage != null)) | function ScrollImage(e){ var imageToScroll; // Scroll wheel invoked while right button down, zoom target image if ((window._content.document.location == currentURL) && (nsIPrefBranchObj.getBoolPref("usescroll"))) { switch (nsIPrefBranchObj.getIntPref("scrollZoomMode")) { // Mixed Mode (default) case 0: if ((e.ta... |
var inst = this.instance; var pos, doc, scrollX, scrollY, height; pos = tinyMCE.getAbsPosition(node); doc = inst.getDoc(); scrollX = doc.body.scrollLeft + doc.documentElement.scrollLeft; scrollY = doc.body.scrollTop + doc.documentElement.scrollTop; height = tinyMCE.isMSIE ? document.getElementById(inst.editorId).styl... | var inst = this.instance, w = inst.getWin(), vp = inst.getViewPort(), pos = tinyMCE.getAbsPosition(node), cvp, p, cwin; | scrollToNode : function(node) { var inst = this.instance; var pos, doc, scrollX, scrollY, height; // Scroll to node position pos = tinyMCE.getAbsPosition(node); doc = inst.getDoc(); scrollX = doc.body.scrollLeft + doc.documentElement.scrollLeft; scrollY = doc.body.scrollTop + doc.documentElement.scrollTop; hei... |
if (!tinyMCE.settings['auto_resize'] && !(pos.absTop > scrollY && pos.absTop < (scrollY - 25 + height))) inst.contentWindow.scrollTo(pos.absLeft, pos.absTop - height + 25); | if (pos.absLeft < vp.left || pos.absLeft > vp.left + vp.width || pos.absTop < vp.top || pos.absTop > vp.top + (vp.height-25)) w.scrollTo(pos.absLeft, pos.absTop - vp.height + 25); if (inst.settings.auto_resize) { cwin = inst.getContainerWin(); cvp = tinyMCE.getViewPort(cwin); p = this.getAbsPosition(node); if (p.abs... | scrollToNode : function(node) { var inst = this.instance; var pos, doc, scrollX, scrollY, height; // Scroll to node position pos = tinyMCE.getAbsPosition(node); doc = inst.getDoc(); scrollX = doc.body.scrollLeft + doc.documentElement.scrollLeft; scrollY = doc.body.scrollTop + doc.documentElement.scrollTop; hei... |
function scwEventTrigger(e) {if (!e) e = event; return e.target||e.srcElement; } | function scwEventTrigger(scwEvt) { if (!scwEvt) scwEvt = event; return scwEvt.target || scwEvt.srcElement; } | function scwEventTrigger(e) {if (!e) e = event; return e.target||e.srcElement; } |
{document.getElementById('scw').style.visibility='hidden'; if (document.getElementById('scwIframe')) {document.getElementById('scwIframe').style.visibility='hidden';} | { scwID('scw').style.visibility = 'hidden'; if (scwID('scwIframe')) { scwID('scwIframe').style.visibility = 'hidden'; } | function scwHide() {document.getElementById('scw').style.visibility='hidden'; if (document.getElementById('scwIframe')) {document.getElementById('scwIframe').style.visibility='hidden';} if (typeof scwNextAction!='undefined' && scwNextAction!=null) {scwNextActionReturn =... |
{scwTargetEle.value = scwOutputDate.scwFormat(scwDateOutputFormat); scwHide(); } | { if (typeof scwTargetEle.value == 'undefined') { scwTriggerEle.scwTextNode. replaceData(0, scwTriggerEle.scwLength, scwOutputDate.scwFormat(scwDateOutputFormat)); } else { scwTargetEle.value = scwOutputDate.scwFormat(scwDateOutputFormat); } scwHide(); } | function scwSetOutput(scwOutputDate) {scwTargetEle.value = scwOutputDate.scwFormat(scwDateOutputFormat); scwHide(); } |
q = refinements[ref].getElementsByTagName('query')[0] q = GXml.value(q) d = refinements[ref].getElementsByTagName('description')[0] d = GXml.value(d) | q = GXml.value(refinements[ref].getElementsByTagName('query')[0]) d = GXml.value(refinements[ref].getElementsByTagName('description')[0]) | function search(s) { document.getElementById('Submit1').value = 'Searching...'; var r = GXmlHttp.create(); r.open("GET", "/lookup.php?output=xml&q=" + s, true); r.onreadystatechange = function(){ if (r.readyState == 4) { document.getElementById('Submit1').value = 'Search'; x = r... |
for (nb=0;nb<NickHistory.length;nb++) { if (NickHistory[nb] && (bufnick.toUpperCase() == NickHistory[nb].oldnick.toUpperCase())) { | for (nb=NickHistory.length-1;nb>-1;nb--) { if (bufnick.toUpperCase() == NickHistory[nb].oldnick.toUpperCase()) { | function search_nickbuf(bufnick) { for (nb=0;nb<NickHistory.length;nb++) { if (NickHistory[nb] && (bufnick.toUpperCase() == NickHistory[nb].oldnick.toUpperCase())) { if (!Users[NickHistory[nb].newnick.toUpperCase()]) return search_nickbuf(NickHistory[nb].newnick); else return Users[NickHistory[nb].newnick.to... |
return search_nickbuf(NickHistory[nb].newnick); | bufnick = NickHistory[nb].newnick; | function search_nickbuf(bufnick) { for (nb=0;nb<NickHistory.length;nb++) { if (NickHistory[nb] && (bufnick.toUpperCase() == NickHistory[nb].oldnick.toUpperCase())) { if (!Users[NickHistory[nb].newnick.toUpperCase()]) return search_nickbuf(NickHistory[nb].newnick); else return Users[NickHistory[nb].newnick.to... |
return NickHistory[nb].newnick; | return Users[NickHistory[nb].newnick.toUpperCase()]; | function search_nickbuf(bufnick) { for (nb=0;nb<NickHistory.length;nb++) { if (NickHistory[nb] && (bufnick.toUpperCase() == NickHistory[nb].oldnick.toUpperCase())) { if (!Users[NickHistory[nb].newnick.toUpperCase()]) return search_nickbuf(NickHistory[nb].newnick); else return NickHistory[nb].newnick; } } re... |
for (nb=0;nb<nick_buffer;nb++) { | for (nb=0;nb<NickHistory.length;nb++) { | function search_nickbuf(bufnick) { for (nb=0;nb<nick_buffer;nb++) { if (NickHistory[nb] && (bufnick.toUpperCase() == NickHistory[nb].oldnick.toUpperCase())) { if (!searchbynick(NickHistory[nb].newnick)) return search_nickbuf(NickHistory[nb].newnick); else return NickHistory[nb].newnick; } } return 0;} |
Client=Clients[thisClient]; if ((nick.toUpperCase() == Client.nick.toUpperCase()) && Client.conntype && !Client.server) | var Client=Clients[thisClient]; if (Client && nick.toUpperCase() == Client.nick.toUpperCase() && Client.conntype && !Client.server) | function searchbynick(nick) { if (!nick) return 0; for(thisClient in Clients) { Client=Clients[thisClient]; if ((nick.toUpperCase() == Client.nick.toUpperCase()) && Client.conntype && !Client.server) return Client; // success! } return 0; // failure} |
if (!nick) return 0; | function searchbynick(nick) { for(thisClient in Clients) { Client=Clients[thisClient]; if ((nick.toUpperCase() == Client.nick.toUpperCase()) && Client.conntype && !Client.server) return Client; // success! } return 0; // failure} | |
function searchbyserver(server_name,ignore_wildcards) { if (!server_name) | function searchbyserver(servnick) { if (!servnick) | function searchbyserver(server_name,ignore_wildcards) { if (!server_name) return 0; if ((ignore_wildcards && (servername.toUpperCase() == server_name.toUpperCase()) ) || (!ignore_wildcards && IRC_match(servername,server_name)) ) return -1; // the server passed to us is our own. for(thisServer in Servers) { va... |
if ((ignore_wildcards && (servername.toUpperCase() == server_name.toUpperCase()) ) || (!ignore_wildcards && IRC_match(servername,server_name)) ) return -1; for(thisServer in Servers) { var Server=Servers[thisServer]; if ((ignore_wildcards && (Server.nick.toUpperCase() == server_name.toUpperCase())) || (!ignore_wildcard... | var server_try = search_server_only(servnick); if (server_try) { return server_try; } else { for(thisNick in Users) { var Nick=Users[thisNick]; if (IRC_match(Nick.nick,servnick)) return search_server_only(Nick.servername); } | function searchbyserver(server_name,ignore_wildcards) { if (!server_name) return 0; if ((ignore_wildcards && (servername.toUpperCase() == server_name.toUpperCase()) ) || (!ignore_wildcards && IRC_match(servername,server_name)) ) return -1; // the server passed to us is our own. for(thisServer in Servers) { va... |
log("ignore wildcards? " + ignore_wildcards); | function searchbyserver(server_name,ignore_wildcards) { if (!server_name) return 0; log("ignore wildcards? " + ignore_wildcards); if ((ignore_wildcards && (servername.toUpperCase() == server_name.toUpperCase()) ) || (!ignore_wildcards && match_irc_mask(servername,server_name)) ) return -1; // the server passed... | |
function searchbyserver(server_name) { | function searchbyserver(server_name,ignore_wildcards) { | function searchbyserver(server_name) { if (!server_name) return 0; if (match_irc_mask(servername,server_name)) return -1; // the server passed to us is our own. for(thisServer in Clients) { Server=Clients[thisServer]; if ( (Server.conntype == TYPE_SERVER) && match_irc_mask(Server.nick,server_name) ) return ... |
if (match_irc_mask(servername,server_name)) | log("ignore wildcards? " + ignore_wildcards); if ((ignore_wildcards && (servername.toUpperCase() == server_name.toUpperCase()) ) || (!ignore_wildcards && match_irc_mask(servername,server_name)) ) | function searchbyserver(server_name) { if (!server_name) return 0; if (match_irc_mask(servername,server_name)) return -1; // the server passed to us is our own. for(thisServer in Clients) { Server=Clients[thisServer]; if ( (Server.conntype == TYPE_SERVER) && match_irc_mask(Server.nick,server_name) ) return ... |
Server=Clients[thisServer]; if ( (Server.conntype == TYPE_SERVER) && match_irc_mask(Server.nick,server_name) ) | var Server=Clients[thisServer]; if ((ignore_wildcards && (Server.conntype == TYPE_SERVER) && (Server.nick.toUpperCase() == server_name.toUpperCase())) || (!ignore_wildcards &&(Server.conntype == TYPE_SERVER) && match_irc_mask(Server.nick,server_name) ) ) | function searchbyserver(server_name) { if (!server_name) return 0; if (match_irc_mask(servername,server_name)) return -1; // the server passed to us is our own. for(thisServer in Clients) { Server=Clients[thisServer]; if ( (Server.conntype == TYPE_SERVER) && match_irc_mask(Server.nick,server_name) ) return ... |
Nick=Clients[thisNick]; | var Nick=Clients[thisNick]; | function searchbyserver(server_name) { if (!server_name) return 0; if (match_irc_mask(servername,server_name)) return -1; // the server passed to us is our own. for(thisServer in Clients) { Server=Clients[thisServer]; if ( (Server.conntype == TYPE_SERVER) && match_irc_mask(Server.nick,server_name) ) return ... |
if ((server_name.toUpperCase() == Server.nick.toUpperCase()) && (Server.conntype == TYPE_SERVER) ) | if ( (Server.conntype == TYPE_SERVER) && match_irc_mask(Server.nick,server_name) ) | function searchbyserver(server_name) { for(thisServer in Clients) { Server=Clients[thisServer]; if ((server_name.toUpperCase() == Server.nick.toUpperCase()) && (Server.conntype == TYPE_SERVER) ) return Server; } return 0;} |
return 0; | for(thisNick in Clients) { Nick=Clients[thisNick]; if (!Nick.server && match_irc_mask(Nick.nick,server_name)) return searchbyserver(Nick.servername); } return 0; | function searchbyserver(server_name) { for(thisServer in Clients) { Server=Clients[thisServer]; if ((server_name.toUpperCase() == Server.nick.toUpperCase()) && (Server.conntype == TYPE_SERVER) ) return Server; } return 0;} |
return [element.name, element.options[index].value]; | return [element.name, (index >= 0) ? element.options[index].value : '']; | select: function(element) { var index = element.selectedIndex; return [element.name, element.options[index].value]; } |
Element.addClassName(this.trElement, "selected"); | addClassName(this.trElement, "selected"); | select: function() { Element.addClassName(this.trElement, "selected"); safeScrollIntoView(this.trElement); }, |
var value = ''; if (element.type == 'select-one') { var index = element.selectedIndex; if (index >= 0) value = element.options[index].value || element.options[index].text; } else { value = new Array(); for (var i = 0; i < element.length; i++) { var opt = element.options[i]; if (opt.selected) value.push(opt.value || opt... | return Form.Element.Serializers[element.type == 'select-one' ? 'selectOne' : 'selectMany'](element); }, | select: function(element) { var value = ''; if (element.type == 'select-one') { var index = element.selectedIndex; if (index >= 0) value = element.options[index].value || element.options[index].text; } else { value = new Array(); for (var i = 0; i < element.length; i++) { va... |
this.element.value = value; | this.updateElement(value); | select_entry: function() { this.active = false; value = Element.collectTextNodesIgnoreClass(this.get_current_entry(), 'informal').unescapeHTML(); this.element.value = value; this.element.focus(); } |
} | }, | select_entry: function() { this.active = false; value = Element.collectTextNodesIgnoreClass(this.get_current_entry(), 'informal').unescapeHTML(); this.element.value = value; this.element.focus(); } |
this.hide(); | select_entry: function() { this.hide(); this.active = false; value = Element.collectTextNodesIgnoreClass(this.get_current_entry(), 'informal').unescapeHTML(); this.element.value = value; this.element.focus(); } | |
function SelectAll(prefix) { | function SelectAll(prefix, checkbox_state) { | function SelectAll(prefix) { for (var i = 0; i < document.chk.elements.length; i++) { if ((document.chk.elements[i].name.substr(0, prefix.length) == prefix) && (document.chk.elements[i].style.visibility != 'hidden')) { document.chk.elements[i].checked = !(document.chk.elements[i].checked); } }} |
document.chk.elements[i].checked = !(document.chk.elements[i].checked); | document.chk.elements[i].checked = checkbox_state; | function SelectAll(prefix) { for (var i = 0; i < document.chk.elements.length; i++) { if ((document.chk.elements[i].name.substr(0, prefix.length) == prefix) && (document.chk.elements[i].style.visibility != 'hidden')) { document.chk.elements[i].checked = !(document.chk.elements[i].checked); } }} |
if (sourceList.options[i] != null) | if ((sourceList.options[i] != null) && (sourceList.options[i].value != "")) | function selectAll(sourceList){ for(var i = 0; i < sourceList.options.length; i++) { if (sourceList.options[i] != null) sourceList.options[i].selected = true; } return true;} |
NewWindow("cgi-bin/selectAudio?requester=webif", "audio", "200", "100", "no"); | NewWindow("cgi-bin/selectAudio?requester=webif", "audio", "250", "130", "no"); | function selectAudio(){ NewWindow("cgi-bin/selectAudio?requester=webif", "audio", "200", "100", "no");} |
this.setTextBox("commandTarget", command.target, false); this.setTextBox("commandValue", command.value, false); | this.setTextBox("commandTarget", this.encodeText(command.target), false); this.setTextBox("commandValue", this.encodeText(command.value), false); | selectCommand: function() { if (this.tree.currentIndex >= 0) { var command = this.getCommand(this.tree.currentIndex); this.currentCommand = command; if (command.type == 'command') { this.setTextBox("commandAction", command.command, false); this.setTextBox("commandTarget", command.target, false); this.s... |
this.element.focus(); | selectEntry: function() { this.active = false; this.updateElement(this.getCurrentEntry()); this.element.focus(); }, | |
saveSelectedFormat(); | function selectFormatFromMenu() { var e = document.getElementById("popup_formats"); var i; for (i = e.childNodes.length - 1; i >= 0; i--) { var checked = e.childNodes[i].getAttribute("checked"); if (checked == 'true') { this.testManager.selectFormat(e.childNodes[i].getAttribute("value")); break; } }} | |
function selectImage(Image) | function selectImage(image) | function selectImage(Image){ document.location = "/cgi-bin/setConfigMultiBoot?image="+image; } |
document.location = "/cgi-bin/setConfigMultiBoot?image="+image; | document.location = "/cgi-bin/setConfigMultiBoot?image="+image; setTimeout("reload()", 500); | function selectImage(Image){ document.location = "/cgi-bin/setConfigMultiBoot?image="+image; } |
var value = new Array(); | var value = []; | selectMany: function(element) { var value = new Array(); for (var i = 0; i < element.length; i++) { var opt = element.options[i]; if (opt.selected) { var optValue = opt.value; if (!optValue && !('value' in opt)) optValue = opt.text; value.push(optValue); } } re... |
if (opt.selected) { var optValue = opt.value; if (!optValue && !('value' in opt)) optValue = opt.text; value.push(optValue); } | if (opt.selected) value.push(opt.value || opt.text); | selectMany: function(element) { var value = new Array(); for (var i = 0; i < element.length; i++) { var opt = element.options[i]; if (opt.selected) { var optValue = opt.value; if (!optValue && !('value' in opt)) optValue = opt.text; value.push(optValue); } } re... |
if (tinyMCE.isMSIE) { rng = inst.getBody().createTextRange(); | if (inst.settings.auto_resize) inst.resizeToContent(); if (tinyMCE.isRealIE) { rng = inst.getDoc().body.createTextRange(); | selectNode : function(node, collapse, select_text_node, to_start) { var inst = this.instance, sel, rng, nodes; if (!node) return; if (typeof(collapse) == "undefined") collapse = true; if (typeof(select_text_node) == "undefined") select_text_node = false; if (typeof(to_start) == "undefined") to_start = tru... |
value = opt.value; if (!value && !('value' in opt)) value = opt.text; | value = opt.value || opt.text; | selectOne: function(element) { var value = '', opt, index = element.selectedIndex; if (index >= 0) { opt = element.options[index]; value = opt.value; if (!value && !('value' in opt)) value = opt.text; } return [element.name, value]; }, |
var ret = new Array(); var partial = new Array(); var entry = instance.getEntry(); | var ret = []; var partial = []; var entry = instance.getToken(); | selector: function(instance) { var ret = new Array(); // Beginning matches var partial = new Array(); // Inside matches var entry = instance.getEntry(); var count = 0; for (var i = 0; i < instance.options.array.length && ret.length < instance... |
var found_pos = instance.options.ignore_case ? | var foundPos = instance.options.ignoreCase ? | selector: function(instance) { var ret = new Array(); // Beginning matches var partial = new Array(); // Inside matches var entry = instance.getEntry(); var count = 0; for (var i = 0; i < instance.options.array.length && ret.length < instance... |
while (found_pos != -1) { if (found_pos == 0 && elem.length != entry.length) { | while (foundPos != -1) { if (foundPos == 0 && elem.length != entry.length) { | selector: function(instance) { var ret = new Array(); // Beginning matches var partial = new Array(); // Inside matches var entry = instance.getEntry(); var count = 0; for (var i = 0; i < instance.options.array.length && ret.length < instance... |
} else if (entry.length >= instance.options.partial_chars && instance.options.partial_search && found_pos != -1) { if (instance.options.full_search || /\s/.test(elem.substr(found_pos-1,1))) { partial.push("<li>" + elem.substr(0, found_pos) + "<strong>" + elem.substr(found_pos, entry.length) + "</strong>" + elem.substr(... | } else if (entry.length >= instance.options.partialChars && instance.options.partialSearch && foundPos != -1) { if (instance.options.fullSearch || /\s/.test(elem.substr(foundPos-1,1))) { partial.push("<li>" + elem.substr(0, foundPos) + "<strong>" + elem.substr(foundPos, entry.length) + "</strong>" + elem.substr( foundP... | selector: function(instance) { var ret = new Array(); // Beginning matches var partial = new Array(); // Inside matches var entry = instance.getEntry(); var count = 0; for (var i = 0; i < instance.options.array.length && ret.length < instance... |
found_pos = instance.options.ignore_case ? elem.toLowerCase().indexOf(entry.toLowerCase(), found_pos + 1) : elem.indexOf(entry, found_pos + 1); | foundPos = instance.options.ignoreCase ? elem.toLowerCase().indexOf(entry.toLowerCase(), foundPos + 1) : elem.indexOf(entry, foundPos + 1); | selector: function(instance) { var ret = new Array(); // Beginning matches var partial = new Array(); // Inside matches var entry = instance.getEntry(); var count = 0; for (var i = 0; i < instance.options.array.length && ret.length < instance... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.