rem stringlengths 0 126k | add stringlengths 0 441k | context stringlengths 15 136k |
|---|---|---|
str += "<" + tag; if (id != "") str += " id=\"" + id + "\""; if (class != "") str += " class=\"" + class + "\""; if (name != "") str += " name=\"" + name + "\""; if (style != "") str += " style=\"" + style + "\""; | WikiEditor.prototype.convertStyleExternal = function(regexp, result, content) { var str = ""; var tag = "font"; var atts = result[1].split("|"); for (var i=0; i < atts.length; i++) { var att = atts[i].substring(0, atts[i].indexOf("=")); var value = atts[i].substring(atts[i].indexOf("=") + 1, a... | |
var tag = "font", style = "", class = "", id = "", name = ""; | WikiEditor.prototype.convertStyleExternal = function(regexp, result, content) { var str = ""; var tag = "font", style = "", class = "", id = "", name = ""; var atts = result[1].split("|"); for (var i=0; i < atts.length; i++) { var att = this.trimString(atts[i].substring(0, atts[i].indexOf("="))); ... | |
if (att == "class") class = value; else if (att == "id") id = value; else if (att == "name") name = value; else if (att == "type") tag = value; else style += att + ":" + value + ";"; | if (att == "class") { myclass = value; } else if (att == "id") { id = value; } else if (att == "name") { name = value; } else if (att == "type") { tag = value; } else { style += att + ":" + value + ";"; } | WikiEditor.prototype.convertStyleExternal = function(regexp, result, content) { var str = ""; var tag = "font", style = "", class = "", id = "", name = ""; var atts = result[1].split("|"); for (var i=0; i < atts.length; i++) { var att = this.trimString(atts[i].substring(0, atts[i].indexOf("="))); ... |
if (id != "") str += " id=\"" + id + "\""; if (class != "") str += " class=\"" + class + "\""; if (name != "") str += " name=\"" + name + "\""; if (style != "") str += " style=\"" + style + "\""; | if (id != "") { str += " id=\"" + id + "\""; } if (myclass != "") { str += " class=\"" + myclass + "\""; } if (name != "") { str += " name=\"" + name + "\""; } if (style != "") { str += " style=\"" + style + "\""; } | WikiEditor.prototype.convertStyleExternal = function(regexp, result, content) { var str = ""; var tag = "font", style = "", class = "", id = "", name = ""; var atts = result[1].split("|"); for (var i=0; i < atts.length; i++) { var att = this.trimString(atts[i].substring(0, atts[i].indexOf("="))); ... |
if (attributes && attributes["id"]) { str += "|id=" + attributes["id"] ; } if (attributes && attributes["class"]) { str += "|class=" + attributes["class"] ; } if (attributes && attributes["name"]) { str += "|name=" + attributes["name"] ; } | WikiEditor.prototype.convertStyleInternal = function(regexp, result, content) { var type = result[1]; var str = ""; if (type == "span" || type =="div") { var attributes = this.readAttributes(result[2]); str += "{style:type=" + type; if (attributes && attributes["style"]) { var a... | |
content = content.replace(/<div class="paragraph">([\s\S]+?)<\/div>/g,'$1'); content = content.replace(/<span class="(wikilink|wikiexternallink)">\s*([\s\S]+?)<\/span>/g,'$2'); content = content.replace(/<span class="(bold|italic|strike)">([\s\S]+?)<\/span>/g,'$2'); | WikiEditor.prototype.convertStyleInternal = function(regexp, result, content) { var type = result[1]; var str = ""; if (type == "span" || type =="div") { var attributes = this.readAttributes(result[2]); str += "{style:type=" + type; if (attributes && attributes["id"]) { str += "... | |
var lines = this._getLines(text); | var _lines = this._getLines(text); | WikiEditor.prototype.convertTableExternal = function(regexp, result, content) { var text = this.trimString(result[1]); var lines = this._getLines(text); var str = "<table class=\"wiki-table\" cellpadding=\"0\" cellspacing=\"0\" align=\"center\">" for (var i=0; i < lines.length; i++) lines[i] = this.t... |
for (var i=0; i < lines.length; i++) lines[i] = this.trimString(lines[i].replace(/\r|\n/g, "")); | var lines = new Array(); var numColumns = 0; for (var i=0; i < _lines.length; i++) { _lines[i] = this.trimString(_lines[i].replace(/\r|\n/g, "")); _lines[i] = _lines[i].replace(/<\/?p[^>]*>/gi, ""); if (_lines[i] != "") { lines[numColumns] = _lines[i]; numColumns++; } } | WikiEditor.prototype.convertTableExternal = function(regexp, result, content) { var text = this.trimString(result[1]); var lines = this._getLines(text); var str = "<table class=\"wiki-table\" cellpadding=\"0\" cellspacing=\"0\" align=\"center\">" for (var i=0; i < lines.length; i++) lines[i] = this.t... |
for(var i=0; i<document.images.length; i++) | var arVersion = navigator.appVersion.split("MSIE") var version = parseFloat(arVersion[1]) if ((version >= 5.5) && (document.body.filters)) | function correctPNG() // correctly handle PNG transparency in Win IE 5.5 or higher.{ for(var i=0; i<document.images.length; i++) { var img = document.images[i] var imgName = img.src.toUpperCase() if (imgName.substring(imgName.length-3, imgName.length) == "PNG") { var imgID = (img.id) ? "... |
var img = document.images[i] var imgName = img.src.toUpperCase() if (imgName.substring(imgName.length-3, imgName.length) == "PNG") { var imgID = (img.id) ? "id='" + img.id + "' " : "" var imgClass = (img.className) ? "class='" + img.className + "' " : "" var imgTitle = (img.title) ? "title='" + img.title + "' " : "titl... | for(var i=0; i<document.images.length; i++) { var img = document.images[i] var imgName = img.src.toUpperCase() if (imgName.substring(imgName.length-3, imgName.length) == "PNG") { var imgID = (img.id) ? "id='" + img.id + "' " : "" var imgClass = (img.className) ? "class='" + img.className + "' " : "" var imgTitle = (img... | function correctPNG() // correctly handle PNG transparency in Win IE 5.5 or higher.{ for(var i=0; i<document.images.length; i++) { var img = document.images[i] var imgName = img.src.toUpperCase() if (imgName.substring(imgName.length-3, imgName.length) == "PNG") { var imgID = (img.id) ? "... |
tmp_counter=0; | var tmp_counter = 0; | function count_channels() { tmp_counter=0; for (tmp_count in Channels) { if (Channels[tmp_count]) tmp_counter++; } return tmp_counter;} |
tmp_counter=0; | var tmp_counter = 0; | function count_local_nicks() { tmp_counter=0; for (tmp_count in Clients) { if ((Clients[tmp_count] != undefined) && !Clients[tmp_count].parent) tmp_counter++; } return tmp_counter;} |
tmp_counter=0; | function count_nicks(count_bit) { if(!count_bit) count_bit=USERMODE_NONE; tmp_counter=0; for (tmp_count in Clients) { if ((Clients[tmp_count] != undefined) && ((Clients[tmp_count].conntype == TYPE_USER) || (Clients[tmp_count].conntype == TYPE_USER_REMOTE)) && (Clients[tmp_count].mode&count_bit) && ... | |
var tmp_counter; | function count_servers(count_all) { if (count_all) tmp_counter=1; // we start by counting ourself. else tmp_counter=0; // we're just counting servers connected to us for (tmp_count in Clients) { if ((Clients[tmp_count] != undefined) && Clients[tmp_count].server) { if (Clients[tmp_count].local || count_all) ... | |
debug("cqAutoSave: " + theFlag.checked); | function cqAutoSave(n) { // use incremental updates if autosave form element is set // and the incremental flag is true (has already been exported) var theFlag = document.getElementById(g_cq_autosave_id); //alert("cqAutoSave: " + theFlag.checked); if (theFlag.checked) { if (! g_cq_autosave_increme... | |
cqExport(document.getElementById(g_cq_query_form)); | cqExport(document.getElementById(g_cq_query_form_id)); | function cqAutoSave(n) { // use incremental updates if autosave form element is set // and the incremental flag is true (has already been exported) var theFlag = document.getElementById(g_cq_autosave_id); //alert("cqAutoSave: " + theFlag.checked); if (theFlag.checked) { if (! g_cq_autosave_increme... |
var theForm = document.getElementById(g_cq_query_form); | debug("cqAutoSave: incremental"); var theForm = document.getElementById(g_cq_query_form_id); | function cqAutoSave(n) { // use incremental updates if autosave form element is set // and the incremental flag is true (has already been exported) var theFlag = document.getElementById(g_cq_autosave_id); //alert("cqAutoSave: " + theFlag.checked); if (theFlag.checked) { if (! g_cq_autosave_increme... |
debug("cqAutoSave: " + theQuery); | function cqAutoSave(n) { // use incremental updates if autosave form element is set // and the incremental flag is true (has already been exported) var theFlag = document.getElementById(g_cq_autosave_id); //alert("cqAutoSave: " + theFlag.checked); if (theFlag.checked) { if (! g_cq_autosave_increme... | |
theDatabase = document.getElementById(g_cq_database_list_id); | theDatabase = document.getElementById(g_cq_eval_list_id); | function cqExport(theForm) { // export store the buffer state into the value of form element g_cq_uri // if the g_cq_uri does not exist, we must create it in one XQuery, // then populate it in another // the simplest way is to create temporary form elements, and submit them var theUri = document.getEleme... |
if (theUri) { var theQuery = 'xdmp:document-insert("' + theUri + '",' + '<' + g_cq_buffers_area_id + ' id="' + g_cq_buffers_area_id + '">'; var buf = null; var theParent = document.getElementById(g_cq_buffers_area_id); for (var i = 0; i < theParent.childNodes.length; i++) { buf = getBuffer(i); if (buf != null) { the... | if (! theUri) { return null; } var theQuery = 'xdmp:document-insert("' + theUri + '",' + '<' + g_cq_buffers_area_id + ' id="' + g_cq_buffers_area_id + '">'; var buf = null; var theParent = document.getElementById(g_cq_buffers_area_id); for (var i = 0; i < theParent.childNodes.length; i++) { buf = getBuffer(i); if (... | function cqExport(theForm) { // export store the buffer state into the value of form element g_cq_uri // if the g_cq_uri does not exist, we must create it in one XQuery, // then populate it in another // the simplest way is to create temporary form elements, and submit them // TODO export non-default opt... |
var listNode = getQueryHistoryListNode(false); if (!listNode) { debug.print("cqExport: null listNode"); } else { var historyQueries = listNode.childNodes; var historyLength = historyQueries.length; for (var i = 0; i < historyLength; i++) { theQuery += '<' + g_cq_history_basename + '>' + encodeURIComponent(historyQueri... | } var listNode = getQueryHistoryListNode(false); if (!listNode) { debug.print("cqExport: null listNode"); } else { var historyQueries = listNode.childNodes; var historyLength = historyQueries.length; for (var i = 0; i < historyLength; i++) { theQuery += '<' + g_cq_history_basename + '>' + encodeURIComponent(historyQu... | function cqExport(theForm) { // export store the buffer state into the value of form element g_cq_uri // if the g_cq_uri does not exist, we must create it in one XQuery, // then populate it in another // the simplest way is to create temporary form elements, and submit them // TODO export non-default opt... |
theQuery += '</' + g_cq_buffers_area_id + '>)' + ', "exported ' + theUri + '"'; var theDatabase = document.getElementById(g_cq_eval_list_id); var oldDatabase = theDatabase.value; theDatabase.value = null; submitForm(theForm, theQuery, "text/html"); | } theQuery += '</' + g_cq_buffers_area_id + '>)' + ', "exported ' + theUri + '"'; submitForm(theForm, theQuery, "text/html"); | function cqExport(theForm) { // export store the buffer state into the value of form element g_cq_uri // if the g_cq_uri does not exist, we must create it in one XQuery, // then populate it in another // the simplest way is to create temporary form elements, and submit them // TODO export non-default opt... |
debug.print("cqExport: preserving selected database " + oldDatabase); theDatabase.value = oldDatabase; } | debug.print("cqExport: preserving selected database " + oldDatabase); | function cqExport(theForm) { // export store the buffer state into the value of form element g_cq_uri // if the g_cq_uri does not exist, we must create it in one XQuery, // then populate it in another // the simplest way is to create temporary form elements, and submit them // TODO export non-default opt... |
debug("cqExport: null listNode"); | debug.print("cqExport: null listNode"); | function cqExport(theForm) { // export store the buffer state into the value of form element g_cq_uri // if the g_cq_uri does not exist, we must create it in one XQuery, // then populate it in another // the simplest way is to create temporary form elements, and submit them // TODO export non-default opt... |
debug("cqExport: preserving selected database " + oldDatabase); | debug.print("cqExport: preserving selected database " + oldDatabase); | function cqExport(theForm) { // export store the buffer state into the value of form element g_cq_uri // if the g_cq_uri does not exist, we must create it in one XQuery, // then populate it in another // the simplest way is to create temporary form elements, and submit them // TODO export non-default opt... |
theDatabase = document.getElementById(g_cq_database_list); | theDatabase = document.getElementById(g_cq_database_list_id); | function cqExport(theForm) { // export store the buffer state into the value of form element g_cq_uri // if the g_cq_uri does not exist, we must create it in one XQuery, // then populate it in another // the simplest way is to create temporary form elements, and submit them var theUri = document.getEleme... |
debug("cqExport: preserving selected database " + oldDatabase); | function cqExport(theForm) { // export store the buffer state into the value of form element g_cq_uri // if the g_cq_uri does not exist, we must create it in one XQuery, // then populate it in another // the simplest way is to create temporary form elements, and submit them var theUri = document.getEleme... | |
theQuery += '<' + g_cq_history_basename + '>' + encodeURIComponent(historyQueries[i].firstChild.nodeValue) + '</' + g_cq_history_basename + '>' + "\n"; | queryText = historyQueries[i].firstChild.nodeValue; if (queryText != null) { theQuery += '<' + g_cq_history_basename + '>' + encodeURIComponent(queryText) + '</' + g_cq_history_basename + '>' + "\n"; } | function cqExport(theForm) { // export store the buffer state into the value of form element g_cq_uri // if the g_cq_uri does not exist, we must create it in one XQuery, // then populate it in another // the simplest way is to create temporary form elements, and submit them // TODO export non-default opt... |
debug.print("cqExport: preserving selected database " + oldDatabase); | function cqExport(theForm) { // export store the buffer state into the value of form element g_cq_uri // if the g_cq_uri does not exist, we must create it in one XQuery, // then populate it in another // the simplest way is to create temporary form elements, and submit them // TODO export non-default opt... | |
alert("cqExport: preserving selected database " + oldDatabase); | function cqExport(theForm) { // export store the buffer state into the value of form element g_cq_uri // if the g_cq_uri does not exist, we must create it in one XQuery, // then populate it in another // the simplest way is to create temporary form elements, and submit them var theUri = document.getEleme... | |
var theUri = document.getElementById(g_cq_uri).value; | var theUri = trim(document.getElementById(g_cq_uri).value); | function cqExport(theForm) { // export store the buffer state into the value of form element g_cq_uri // if the g_cq_uri does not exist, we must create it in one XQuery, // then populate it in another // the simplest way is to create temporary form elements, and submit them // TODO export non-default opt... |
theDatabase = document.getElementById(g_cq_eval_list_id); oldDatabase = theDatabase.value; | var theDatabase = document.getElementById(g_cq_eval_list_id); var oldDatabase = theDatabase.value; | function cqExport(theForm) { // export store the buffer state into the value of form element g_cq_uri // if the g_cq_uri does not exist, we must create it in one XQuery, // then populate it in another // the simplest way is to create temporary form elements, and submit them // TODO export non-default opt... |
var theParent = document.getElementById(g_cq_buffers_area_id); | function cqExport(theForm) { // export store the buffer state into the value of form element g_cq_uri // if the g_cq_uri does not exist, we must create it in one XQuery, // then populate it in another // the simplest way is to create temporary form elements, and submit them // TODO if the worksheet has n... | |
theDatabase = document.getElementById(g_cq_database_list_id); | theDatabase = document.getElementById(g_cq_eval_list_id); | function cqImport(theForm) { // load the buffer state from the uri stored in g_cq_uri var theUri = document.getElementById(g_cq_uri).value; if (! theUri) return; var theQuery = "doc('" + theUri + "')"; var theOutput = getResultFrame(); debug("cqImport: " + theQuery); // set the current datab... |
debug("setting import timeout to " + g_cq_timeout); | function cqImport(theForm) { // load the buffer state from the uri stored in g_cq_uri var theUri = document.getElementById(g_cq_uri).value; if (! theUri) return; var theQuery = "doc('" + theUri + "')"; var theOutput = getResultFrame(); debug("cqImport: " + theQuery); // set the current datab... | |
var theDatabase = document.getElementById(g_cq_eval_list_id); var oldDatabase = theDatabase.value; theDatabase.value = null; | function cqImport(theForm) { // load the buffer state from the uri stored in g_cq_uri var theUri = trim(document.getElementById(g_cq_uri).value); if (! theUri) return; // if the document doesn't exits, we want an empty parent element var theQuery = "(doc('" + theUri + "'), <" + g_cq_buffers_area_i... | |
theDatabase.value = oldDatabase; | function cqImport(theForm) { // load the buffer state from the uri stored in g_cq_uri var theUri = trim(document.getElementById(g_cq_uri).value); if (! theUri) return; // if the document doesn't exits, we want an empty parent element var theQuery = "(doc('" + theUri + "'), <" + g_cq_buffers_area_i... | |
debug("cqImport: " + theQuery); | debug.print("cqImport: " + theQuery); | function cqImport(theForm) { // load the buffer state from the uri stored in g_cq_uri var theUri = document.getElementById(g_cq_uri).value; if (! theUri) return; var theQuery = "doc('" + theUri + "')"; var theOutput = getResultFrame(); debug("cqImport: " + theQuery); // set the current datab... |
theDatabase = document.getElementById(g_cq_eval_list_id); oldDatabase = theDatabase.value; | var theDatabase = document.getElementById(g_cq_eval_list_id); var oldDatabase = theDatabase.value; | function cqImport(theForm) { // load the buffer state from the uri stored in g_cq_uri var theUri = document.getElementById(g_cq_uri).value; if (! theUri) return; var theQuery = "doc('" + theUri + "')"; var theOutput = getResultFrame(); debug("cqImport: " + theQuery); // set the current datab... |
debug("setting import timeout to " + g_cq_timeout); | debug.print("setting import timeout to " + g_cq_timeout); | function cqImport(theForm) { // load the buffer state from the uri stored in g_cq_uri var theUri = document.getElementById(g_cq_uri).value; if (! theUri) return; var theQuery = "doc('" + theUri + "')"; var theOutput = getResultFrame(); debug("cqImport: " + theQuery); // set the current datab... |
debug("cqImport: " + theQuery); | function cqImport(theForm) { // load the buffer state from the uri stored in g_cq_uri var theUri = document.getElementById(g_cq_uri).value; if (! theUri) return; var theQuery = "doc('" + theUri + "')"; var theOutput = getResultFrame(); //alert("cqImport: " + theQuery); // set the current dat... | |
theDatabase = document.getElementById(g_cq_database_list); | theDatabase = document.getElementById(g_cq_database_list_id); | function cqImport(theForm) { // load the buffer state from the uri stored in g_cq_uri var theUri = document.getElementById(g_cq_uri).value; if (! theUri) return; var theQuery = "doc('" + theUri + "')"; var theOutput = getResultFrame(); //alert("cqImport: " + theQuery); // set the current dat... |
var theUri = document.getElementById(g_cq_uri).value; | var theUri = trim(document.getElementById(g_cq_uri).value); | function cqImport(theForm) { // load the buffer state from the uri stored in g_cq_uri var theUri = document.getElementById(g_cq_uri).value; if (! theUri) return; var theQuery = "doc('" + theUri + "')"; var theOutput = getResultFrame(); debug.print("cqImport: " + theQuery); // set the current... |
var theQuery = "doc('" + theUri + "')"; | var theQuery = "(doc('" + theUri + "'), <" + g_cq_buffers_area_id + "/>)[1]"; | function cqImport(theForm) { // load the buffer state from the uri stored in g_cq_uri var theUri = document.getElementById(g_cq_uri).value; if (! theUri) return; var theQuery = "doc('" + theUri + "')"; var theOutput = getResultFrame(); debug.print("cqImport: " + theQuery); // set the current... |
var theForm = document.getElementById(g_cq_query_form); | var theForm = document.getElementById(g_cq_query_form_id); | function cqListBuffers() { var theForm = document.getElementById(g_cq_query_form); var theQuery = "for $i in input() return (document-uri($i), <br/>)"; submitForm(theForm, theQuery, "text/html");} // cqListBuffers |
var theForm = $(kQueryFormId); | function cqListDocuments() { // TODO create a link to display each document? var theForm = $(kQueryFormId); var theQuery = "let $est := xdmp:estimate(doc()) " + "return (" + "( text { 'Too many documents to display!' }," + " text { 'First 1000 documents of', $est, 'total:' }," ... | |
+ "( text { 'Too many documents to display!' }," + " text { 'First 1000 documents of', $est, 'total:' }," + " text{})[$est gt 1000]," + " for $i in doc()[1 to 1000] return text { base-uri($i) }" | + "( element p { 'Too many documents to display!'," + " 'First 10000 documents of', $est, 'total:' }" + ")[$est gt 10000]," + " for $i in doc()[1 to 10000]" + " let $uri := base-uri($i)" + " order by $uri" + " return ( $uri, <br/> )" | function cqListDocuments() { // TODO create a link to display each document? var theForm = $(kQueryFormId); var theQuery = "let $est := xdmp:estimate(doc()) " + "return (" + "( text { 'Too many documents to display!' }," + " text { 'First 1000 documents of', $est, 'total:' }," ... |
submitForm(theForm, theQuery, "text/plain", false); | submitForm($(kQueryFormId), theQuery, "text/html", false); | function cqListDocuments() { // TODO create a link to display each document? var theForm = $(kQueryFormId); var theQuery = "let $est := xdmp:estimate(doc()) " + "return (" + "( text { 'Too many documents to display!' }," + " text { 'First 1000 documents of', $est, 'total:' }," ... |
var theForm = $(gQueryFormId); | var theForm = $(kQueryFormId); | function cqListDocuments() { // TODO create a link to display each document? var theForm = $(gQueryFormId); var theQuery = "let $est := xdmp:estimate(doc()) " + "return (" + "( text { 'Too many documents to display!' }," + " text { 'First 1000 documents of', $est, 'total:' }," ... |
var currDatabase = getCookie(g_cq_database_list_id); | var currDatabase = getCookie(g_cq_eval_list_id); | function cqOnLoad() { //alert("DEBUG: cqOnLoad"); debug("cqOnLoad: begin"); // register for key-presses document.onkeypress = handleKey; // focusing on the form doesn't seem to be necessary //var x = document.getElementById(g_cq_query_form_id); // recover current db from session cookie var currDat... |
document.getElementById(g_cq_database_list_id).value = currDatabase; | document.getElementById(g_cq_eval_list_id).value = currDatabase; | function cqOnLoad() { //alert("DEBUG: cqOnLoad"); debug("cqOnLoad: begin"); // register for key-presses document.onkeypress = handleKey; // focusing on the form doesn't seem to be necessary //var x = document.getElementById(g_cq_query_form_id); // recover current db from session cookie var currDat... |
refreshBufferList(0); | refreshBufferList(0, "cqOnLoad"); | function cqOnLoad() { //alert("DEBUG: cqOnLoad"); debug("cqOnLoad: begin"); // register for key-presses document.onkeypress = handleKey; // focusing on the form doesn't seem to be necessary //var x = document.getElementById(g_cq_query_form_id); // recover current db from session cookie var currDat... |
document.onkeyup = handleKeyUp; | function cqOnLoad() { debug("cqOnLoad: begin"); // check for debug var queryDebug = parseQuery("debug"); if (queryDebug && queryDebug != "false" && queryDebug != "0") DEBUG = true; //debug(navigator.userAgent.toLowerCase()); // register for key-presses document.onkeypress = handleKeyPress; ... | |
debug("cqOnLoad: begin"); | debug.print("cqOnLoad: begin"); | function cqOnLoad() { debug("cqOnLoad: begin"); // check for debug var debugStatus = document.getElementById(g_cq_debug_status_id); if (debugStatus != null) debugStatus = debugStatus.value; if (debugStatus != null && debugStatus != "false" && debugStatus != "f" && debugStatus != "0") ... |
&& debugStatus != "false" && debugStatus != "f" && debugStatus != "0") DEBUG = true; | && debugStatus != "false" && debugStatus != "f" && debugStatus != "0") { debug.setEnabled(true); } | function cqOnLoad() { debug("cqOnLoad: begin"); // check for debug var debugStatus = document.getElementById(g_cq_debug_status_id); if (debugStatus != null) debugStatus = debugStatus.value; if (debugStatus != null && debugStatus != "false" && debugStatus != "f" && debugStatus != "0") ... |
debug("cqOnLoad: currDatabase = " + currDatabase); | debug.print("cqOnLoad: currDatabase = " + currDatabase); | function cqOnLoad() { debug("cqOnLoad: begin"); // check for debug var debugStatus = document.getElementById(g_cq_debug_status_id); if (debugStatus != null) debugStatus = debugStatus.value; if (debugStatus != null && debugStatus != "false" && debugStatus != "f" && debugStatus != "0") ... |
debug("cqOnLoad: begin"); | function cqOnLoad() { //alert("cqOnLoad"); // register for key-presses document.onkeyup = handleKey; // focusing on the form doesn't seem to be necessary //var x = document.getElementById(g_cq_query_form); // display the buffer list, exposing buffer 0 // recover current db from session cookie va... | |
var currDatabase = getCookie(g_cq_database_list); | var currDatabase = getCookie(g_cq_database_list_id); | function cqOnLoad() { //alert("cqOnLoad"); // register for key-presses document.onkeyup = handleKey; // focusing on the form doesn't seem to be necessary //var x = document.getElementById(g_cq_query_form); // display the buffer list, exposing buffer 0 // recover current db from session cookie va... |
document.getElementById(g_cq_database_list).value = currDatabase; | debug("cqOnLoad: currDatabase = " + currDatabase); document.getElementById(g_cq_database_list_id).value = currDatabase; | function cqOnLoad() { //alert("cqOnLoad"); // register for key-presses document.onkeyup = handleKey; // focusing on the form doesn't seem to be necessary //var x = document.getElementById(g_cq_query_form); // display the buffer list, exposing buffer 0 // recover current db from session cookie va... |
resizeFrameset(); | function cqOnLoad() { //alert("cqOnLoad"); // register for key-presses document.onkeyup = handleKey; // focusing on the form doesn't seem to be necessary //var x = document.getElementById(g_cq_query_form); // display the buffer list, exposing buffer 0 // recover current db from session cookie va... | |
if (gBrowserIs.gecko) { debug.print("finishImport: normalizing for gecko workaround"); document.normalize(); } | function cqOnLoad() { debug.print("cqOnLoad: begin"); // register for key-presses Event.observe(this, "keypress", handleKeyPress); // set up the UI objects gBuffers = new QueryBufferListClass("/cq:input", "/cq:eval-in", "/cq:bu... | |
var options = { | var options = Object.extend({ | create: function(element) { var element = $(element); var options = { element: element, tag: 'li', // assumes li children, override with tag: 'tagname' overlap: 'vertical', // one of 'vertical', 'horizontal' constraint: 'vertical', // one of 'vertical', 'horizontal', ... |
}.extend(arguments[1] || {}); | }, arguments[1] || {}); | create: function(element) { var element = $(element); var options = { element: element, tag: 'li', // assumes li children, override with tag: 'tagname' overlap: 'vertical', // one of 'vertical', 'horizontal' constraint: 'vertical', // one of 'vertical', 'horizontal', ... |
options.draggables.push(new Draggable(elements[i], options_for_draggable.extend({ handle: handle }))); | options.draggables.push(new Draggable(elements[i], Object.extend(options_for_draggable, { handle: handle }))); | create: function(element) { var element = $(element); var options = { element: element, tag: 'li', // assumes li children, override with tag: 'tagname' overlap: 'vertical', // one of 'vertical', 'horizontal' constraint: 'vertical', // one of 'vertical', 'horizontal', ... |
options.observer = new SortableObserver(element, options.onUpdate); Draggables.addObserver(options.observer); | Draggables.addObserver(new SortableObserver(element, options.onUpdate)); | create: function(element) { var element = $(element); var options = { element: element, tag: 'li', // assumes li children, override with tag: 'tagname' overlap: 'vertical', // one of 'vertical', 'horizontal' constraint: 'vertical', // one of 'vertical', 'horizontal', ... |
tree: false, | tree: false, treeTag: 'ul', | create: function(element) { element = $(element); var options = Object.extend({ element: element, tag: 'li', // assumes li children, override with tag: 'tagname' dropOnEmpty: false, tree: false, // fixme: unimplemented overlap: 'vertical', // one of 'v... |
onHover: Sortable.onHover, greedy: !options.dropOnEmpty | onHover: Sortable.onHover } var options_for_tree = { onHover: Sortable.onEmptyHover, overlap: options.overlap, containment: options.containment, hoverclass: options.hoverclass | create: function(element) { element = $(element); var options = Object.extend({ element: element, tag: 'li', // assumes li children, override with tag: 'tagname' dropOnEmpty: false, tree: false, // fixme: unimplemented overlap: 'vertical', // one of 'v... |
if(options.dropOnEmpty) { Droppables.add(element, {containment: options.containment, onHover: Sortable.onEmptyHover, greedy: false}); | if(options.dropOnEmpty || options.tree) { Droppables.add(element, options_for_tree); | create: function(element) { element = $(element); var options = Object.extend({ element: element, tag: 'li', // assumes li children, override with tag: 'tagname' dropOnEmpty: false, tree: false, // fixme: unimplemented overlap: 'vertical', // one of 'v... |
this.sortables.push(options); | this.sortables[element.id] = options; | create: function(element) { element = $(element); var options = Object.extend({ element: element, tag: 'li', // assumes li children, override with tag: 'tagname' dropOnEmpty: false, tree: false, // fixme: unimplemented overlap: 'vertical', // one of 'v... |
format: null, | create: function(element) { element = $(element); var options = Object.extend({ element: element, tag: 'li', // assumes li children, override with tag: 'tagname' dropOnEmpty: false, tree: false, // fixme: unimplemented overlap: 'vertical', // one of 'v... | |
create : function(n, c, p) { | create : function(n, c, p, h) { | create : function(n, c, p) { var d = this.doc, e = d.createElement(n); e.setAttribute('id', this.id); if (c) e.className = c; if (!p) p = d.body; p.appendChild(e); return this.element = e; }, |
if (h) e.innerHTML = h; | create : function(n, c, p) { var d = this.doc, e = d.createElement(n); e.setAttribute('id', this.id); if (c) e.className = c; if (!p) p = d.body; p.appendChild(e); return this.element = e; }, | |
options.observer = new SortableObserver(element, options.onUpdate); Draggables.addObserver(options.observer); | Draggables.addObserver(new SortableObserver(element, options.onUpdate)); | create: function(element) { var element = $(element); var options = Object.extend({ element: element, tag: 'li', // assumes li children, override with tag: 'tagname' overlap: 'vertical', // one of 'vertical', 'horizontal' constraint: 'vertical', // one of 'vertical', ... |
var element = $(element); | element = $(element); | create: function(element) { var element = $(element); var options = Object.extend({ element: element, tag: 'li', // assumes li children, override with tag: 'tagname' overlap: 'vertical', // one of 'vertical', 'horizontal' constraint: 'vertical', // one of 'vertical', ... |
handle: handle }; | handle: options.handle }; | create: function(element) { var element = $(element); var options = Object.extend({ element: element, tag: 'li', // assumes li children, override with tag: 'tagname' overlap: 'vertical', // one of 'vertical', 'horizontal' constraint: 'vertical', // one of 'vertical', ... |
onHover: function(element, dropon, overlap) { if(overlap>0.5) { if(dropon.previousSibling != element) { var oldParentNode = element.parentNode; element.style.visibility = "hidden"; dropon.parentNode.insertBefore(element, dropon); if(dropon.parentNode!=oldParentNode && oldParentNode.sortable) oldParentNode.sortable.onCh... | onHover: Sortable.onHover, greedy: !options.dropOnEmpty | create: function(element) { var element = $(element); var options = Object.extend({ element: element, tag: 'li', // assumes li children, override with tag: 'tagname' overlap: 'vertical', // one of 'vertical', 'horizontal' constraint: 'vertical', // one of 'vertical', ... |
var elements = element.childNodes; for (var i = 0; i < elements.length; i++) if(elements[i].tagName && elements[i].tagName==options.tag.toUpperCase() && (!options.only || (Element.Class.has(elements[i], options.only)))) { var handle = options.handle ? Element.Class.childrenWith(elements[i], options.handle)[0] : eleme... | if(options.dropOnEmpty) { Droppables.add(element, {containment: options.containment, onHover: Sortable.onEmptyHover, greedy: false}); options.droppables.push(element); } (this.findElements(element, options) || []).each( function(e) { var handle = options.handle ? Element.Class.childrenWith(e, options.handle)[0] : e; ... | create: function(element) { var element = $(element); var options = Object.extend({ element: element, tag: 'li', // assumes li children, override with tag: 'tagname' overlap: 'vertical', // one of 'vertical', 'horizontal' constraint: 'vertical', // one of 'vertical', ... |
for (var i = 0; i < elements.length; i++) { var handle = options.handle ? Element.Class.childrenWith(elements[i], options.handle)[0] : elements[i]; options.draggables.push(new Draggable(elements[i], Object.extend(options_for_draggable, { handle: handle }))); Droppables.add(elements[i], options_for_droppable); options... | if(elements) { for (var i = 0; i < elements.length; i++) { var handle = options.handle ? Element.Class.childrenWith(elements[i], options.handle)[0] : elements[i]; options.draggables.push(new Draggable(elements[i], Object.extend(options_for_draggable, { handle: handle }))); Droppables.add(elements[i], options_for_dropp... | create: function(element) { var element = $(element); var options = Object.extend({ element: element, tag: 'li', // assumes li children, override with tag: 'tagname' dropOnEmpty: false, tree: false, // fixme: unimplemented overlap: 'vertical', // one o... |
onChange: function() {}, onUpdate: function() {} | onChange: Prototype.emptyFunction, onUpdate: Prototype.emptyFunction | create: function(element) { element = $(element); var options = Object.extend({ element: element, tag: 'li', // assumes li children, override with tag: 'tagname' dropOnEmpty: false, tree: false, // fixme: unimplemented overlap: 'vertical', // one of 'v... |
format: /^[^_]*_(.*)$/, | format: this.SERIALIZE_RULE, | create: function(element) { element = $(element); var options = Object.extend({ element: element, tag: 'li', // assumes li children, override with tag: 'tagname' dropOnEmpty: false, tree: false, treeTag: 'ul', overlap: 'vertical', // one of 'vertic... |
tmp_banstr = new Array; | var tmp_banstr = new Array; | function create_ban_mask(str,kline) { tmp_banstr = new Array; tmp_banstr[0] = ""; tmp_banstr[1] = ""; tmp_banstr[2] = ""; bchar_counter = 0; part_counter = 0; // BAN: 0!1@2 KLINE: 0@1 regexp="[A-Za-z\{\}\`\^\_\|\\]\\[\\\\0-9\-.*?\~]"; for (bchar in str) { if (str[bchar].match(regexp)) { tmp_banstr[part_counter] += s... |
bchar_counter = 0; part_counter = 0; regexp="[A-Za-z\{\}\`\^\_\|\\]\\[\\\\0-9\-.*?\~]"; | var bchar_counter = 0; var part_counter = 0; var regexp="[A-Za-z\{\}\`\^\_\|\\]\\[\\\\0-9\-.*?\~]"; var finalstr; | function create_ban_mask(str,kline) { tmp_banstr = new Array; tmp_banstr[0] = ""; tmp_banstr[1] = ""; tmp_banstr[2] = ""; bchar_counter = 0; part_counter = 0; // BAN: 0!1@2 KLINE: 0@1 regexp="[A-Za-z\{\}\`\^\_\|\\]\\[\\\\0-9\-.*?\~]"; for (bchar in str) { if (str[bchar].match(regexp)) { tmp_banstr[part_counter] += s... |
var link = document.createElement( "input" ); link.setAttribute( 'type', 'button' ); link.setAttribute( 'onclick', action ); link.setAttribute( 'value', caption ); | var d = document.createElement( 'div' ); d.innerHTML = "<input type='button' onclick='"+action+"' value='"+caption+"' />"; var link = d.firstChild; | function create_button( caption, action ){ var link = document.createElement( "input" ); link.setAttribute( 'type', 'button' ); link.setAttribute( 'onclick', action ); link.setAttribute( 'value', caption ); return link;} |
var newsock = { socket: new Socket(), terminated: false }; if(!newsock.socket.bind(port)) { log("!Error " + newsock.socket.error + " binding socket to TCP port " + port); | if(!newsock.bind(port)) { log("!Error " + newsock.error + " binding socket to TCP port " + port); | function create_new_socket(port) { log("Creating new socket object on port " + port); var newsock = { socket: new Socket(), terminated: false }; if(!newsock.socket.bind(port)) { log("!Error " + newsock.socket.error + " binding socket to TCP port " + port); return 0; } log(format("%04u ",newsock.socket.descriptor) + ... |
log(format("%04u ",newsock.socket.descriptor) | log(format("%04u ",newsock.descriptor) | function create_new_socket(port) { log("Creating new socket object on port " + port); var newsock = { socket: new Socket(), terminated: false }; if(!newsock.socket.bind(port)) { log("!Error " + newsock.socket.error + " binding socket to TCP port " + port); return 0; } log(format("%04u ",newsock.socket.descriptor) + ... |
if(!newsock.socket.listen(5 )) { log("!Error " + newsock.socket.error + " setting up socket for listening"); | if(!newsock.listen(5 )) { log("!Error " + newsock.error + " setting up socket for listening"); | function create_new_socket(port) { log("Creating new socket object on port " + port); var newsock = { socket: new Socket(), terminated: false }; if(!newsock.socket.bind(port)) { log("!Error " + newsock.socket.error + " binding socket to TCP port " + port); return 0; } log(format("%04u ",newsock.socket.descriptor) + ... |
newsock.socket.nonblocking = true; newsock.socket.debug = false; | function create_new_socket(port) { log("Creating new socket object on port " + port); var newsock = { socket: new Socket(), terminated: false }; if(!newsock.socket.bind(port)) { log("!Error " + newsock.socket.error + " binding socket to TCP port " + port); return 0; } log(format("%04u ",newsock.socket.descriptor) + ... | |
addStyleClass(row, "breakpoint"); removeStyleClass(row, "disabled"); | row.addStyleClass("breakpoint"); row.removeStyleClass("disabled"); | function createBreakpoint(row, file, lineNum){ addStyleClass(row, "breakpoint"); removeStyleClass(row, "disabled"); file.breakpoints[lineNum] = enabledBreakpoint; file.disabledBreakpoints[lineNum] = null;} |
if (isIE) { return new IEBrowserBot(frame, executionContext); } else { return new MozillaBrowserBot(frame, executionContext); | switch (browserName) { case "Microsoft Internet Explorer": return new IEBrowserBot(frame, executionContext); case "Konqueror": return new KonquerorBrowserBot(frame, executionContext); default: return new MozillaBrowserBot(frame, executionContext); | function createBrowserBot(frame, executionContext) { if (isIE) { return new IEBrowserBot(frame, executionContext); } else { return new MozillaBrowserBot(frame, executionContext); }} |
Rico.Color.createColorFromBackground = function(elem) { | OpenLayers.Rico.Color.createColorFromBackground = function(elem) { | Rico.Color.createColorFromBackground = function(elem) { var actualColor = RicoUtil.getElementsComputedStyle($(elem), "backgroundColor", "background-color"); if ( actualColor == "transparent" && elem.parentNode ) return Rico.Color.createColorFromBackground(elem.parentNode); if ( actualColor == null ) ret... |
return Rico.Color.createColorFromBackground(elem.parentNode); | return OpenLayers.Rico.Color.createColorFromBackground(elem.parentNode); | Rico.Color.createColorFromBackground = function(elem) { var actualColor = RicoUtil.getElementsComputedStyle($(elem), "backgroundColor", "background-color"); if ( actualColor == "transparent" && elem.parentNode ) return Rico.Color.createColorFromBackground(elem.parentNode); if ( actualColor == null ) ret... |
return new Rico.Color(255,255,255); | return new OpenLayers.Rico.Color(255,255,255); | Rico.Color.createColorFromBackground = function(elem) { var actualColor = RicoUtil.getElementsComputedStyle($(elem), "backgroundColor", "background-color"); if ( actualColor == "transparent" && elem.parentNode ) return Rico.Color.createColorFromBackground(elem.parentNode); if ( actualColor == null ) ret... |
return new Rico.Color( parseInt( colorArray[0] ), | return new OpenLayers.Rico.Color( parseInt( colorArray[0] ), | Rico.Color.createColorFromBackground = function(elem) { var actualColor = RicoUtil.getElementsComputedStyle($(elem), "backgroundColor", "background-color"); if ( actualColor == "transparent" && elem.parentNode ) return Rico.Color.createColorFromBackground(elem.parentNode); if ( actualColor == null ) ret... |
return Rico.Color.createFromHex(actualColor); | return OpenLayers.Rico.Color.createFromHex(actualColor); | Rico.Color.createColorFromBackground = function(elem) { var actualColor = RicoUtil.getElementsComputedStyle($(elem), "backgroundColor", "background-color"); if ( actualColor == "transparent" && elem.parentNode ) return Rico.Color.createColorFromBackground(elem.parentNode); if ( actualColor == null ) ret... |
button.setMnemonic(KeyEvent.VK_I); button.addActionListener(new ActionListener({ actionPerformed : function() { numClicks += 1; label.setText(labelPrefix + numClicks); } })); | button.mnemonic = KeyEvent.VK_I; button.addActionListener(function() { numClicks += 1; label.setText(labelPrefix + numClicks); }); | function createComponents() { var labelPrefix = "Number of button clicks: "; var numClicks = 0; var label = new JLabel(labelPrefix + numClicks); var button = new JButton("I'm a Swing button!"); button.setMnemonic(KeyEvent.VK_I); button.addActionListener(new ActionListener({ actionPerformed : function(... |
pane.setBorder(BorderFactory.createEmptyBorder( 30, 30, 10, 30) ); | pane.border = BorderFactory.createEmptyBorder(30, 30, 10, 30); | function createComponents() { var labelPrefix = "Number of button clicks: "; var numClicks = 0; var label = new JLabel(labelPrefix + numClicks); var button = new JButton("I'm a Swing button!"); button.setMnemonic(KeyEvent.VK_I); button.addActionListener(new ActionListener({ actionPerformed : function(... |
id = "OpenLayersDiv" + (Math.random() * 10000 % 10000); | id = "OpenLayersDiv" + Math.round(Math.random() * 10000); | OpenLayers.Util.createDiv = function(id, px, sz, imgURL, position, border, overflow) { var dom = document.createElement('div'); //set specific properties dom.style.padding = "0"; dom.style.margin = "0"; if (imgURL) { dom.style.backgroundImage = 'url(' + imgURL ... |
if (this.options.submitOnBlur) textArea.onblur = this.onSubmit.bind(this); | createEditField: function() { var text; if(this.options.loadTextURL) { text = this.options.loadingText; } else { text = this.getText(); } if (this.options.rows == 1 && !this.hasHTMLLineBreaks(text)) { this.options.textarea = false; var textField = document.createElement("input")... | |
this.editField = textArea; | createEditField: function(form) { if (this.options.rows == 1) { this.options.textarea = false; var textField = document.createElement("input"); textField.type = "text"; textField.name = "value"; textField.value = this.getText(); var size = this.options.size || this.options.cols || 0; ... | |
createEditField: function(form) { if (this.options.rows == 1 && !this.hasHTMLLineBreaks(this.getText())) { | createEditField: function() { var text; if(this.options.loadTextURL) { text = this.options.loadingText; } else { text = this.getText(); } if (this.options.rows == 1 && !this.hasHTMLLineBreaks(text)) { | createEditField: function(form) { if (this.options.rows == 1 && !this.hasHTMLLineBreaks(this.getText())) { this.options.textarea = false; var textField = document.createElement("input"); textField.type = "text"; textField.name = "value"; textField.value = this.getText(); textField.sty... |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.