T5APR
Collection
Data and models related to T5APR. • 15 items • Updated
rem stringlengths 0 126k | add stringlengths 0 441k | context stringlengths 15 136k |
|---|---|---|
var items = []; | function $$(){ if (!arguments) return false; if (arguments.length == 1){ if (!arguments[0]) return false; if (arguments[0]._elements_extended_) return arguments[0]; } var items = []; var elements = []; $each(arguments, function(selector){ if ($type(selector) == 'string') items.extend(document.getElementsBySelector(s... | |
if ($type(selector) == 'string') items.extend(document.getElementsBySelector(selector)); else if ($type(selector) == 'element') items.push($(selector)); else if (selector.length){ $each(selector, function(sel){ items.push(sel); }); | switch ($type(selector)){ case 'element': elements.push($(selector)); break; case 'string': selector = document.getElementsBySelector(selector); default: if (selector.length){ $each(selector, function(el){ if ($(el)) elements.push(el); }); } | function $$(){ if (!arguments) return false; if (arguments.length == 1){ if (!arguments[0]) return false; if (arguments[0]._elements_extended_) return arguments[0]; } var items = []; var elements = []; $each(arguments, function(selector){ if ($type(selector) == 'string') items.extend(document.getElementsBySelector(s... |
}); items.each(function(item){ if ($(item)) elements.push(item); | function $$(){ if (!arguments) return false; if (arguments.length == 1){ if (!arguments[0]) return false; if (arguments[0]._elements_extended_) return arguments[0]; } var items = []; var elements = []; $each(arguments, function(selector){ if ($type(selector) == 'string') items.extend(document.getElementsBySelector(s... | |
for (i = 0; i < arguments.length; i++) { | for (var i = 0; i < arguments.length; i++) { | function $() { var elements = new Array(); for (i = 0; i < arguments.length; i++) { var element = arguments[i]; if (typeof element == 'string') element = document.getElementById(element); if (arguments.length == 1) return element; elements.push(element); } return elements;} |
el._element_extended_ = true; Garbage.collect(el); el.extend = Object.extend; if (!(el instanceof HTMLElement)) el.extend(Element.prototype); | if (!el.extend){ el._element_extended_ = true; Garbage.collect(el); el.extend = Object.extend; if (!(el instanceof HTMLElement)) el.extend(Element.prototype); } | function $(el){ if (!el) return false; if (el._element_extended_) return el; if ($type(el) == 'string') el = document.getElementById(el); if ([window, document].test(el)) return el; if ($type(el) != 'element') return false; if (['object', 'embed'].test(el.tagName.toLowerCase())) return el; el._element_extended_ = true;... |
if (el._element_extended_) return el; if ([window, document].test(el)) return el; | if (el._element_extended_ || [window, document].test(el)) return el; | function $(el){ if (!el) return false; if (el._element_extended_) return el; if ([window, document].test(el)) return el; if ($type(el) == 'string') el = document.getElementById(el); if ($type(el) != 'element') return false; if (['object', 'embed'].test(el.tagName.toLowerCase())) return el; if (!el.extend){ el._element... |
if (['object', 'embed'].test(el.tagName.toLowerCase())) return el; if (!el.extend){ | if (!['object', 'embed'].test(el.tagName.toLowerCase()) && !el.extend){ | function $(el){ if (!el) return false; if (el._element_extended_) return el; if ([window, document].test(el)) return el; if ($type(el) == 'string') el = document.getElementById(el); if ($type(el) != 'element') return false; if (['object', 'embed'].test(el.tagName.toLowerCase())) return el; if (!el.extend){ el._element... |
if (!['object', 'embed'].test(el.tagName.toLowerCase()) && !el.extend){ el._element_extended_ = true; Garbage.collect(el); el.extend = Object.extend; if (!(el instanceof HTMLElement)) el.extend(Element.prototype); } | if (['object', 'embed'].test(el.tagName.toLowerCase()) || el.extend) return el; el._element_extended_ = true; Garbage.collect(el); el.extend = Object.extend; if (!(el instanceof HTMLElement)) el.extend(Element.prototype); | function $(el){ if (!el) return false; if (el._element_extended_ || [window, document].test(el)) return el; if ($type(el) == 'string') el = document.getElementById(el); if ($type(el) != 'element') return false; if (!['object', 'embed'].test(el.tagName.toLowerCase()) && !el.extend){ el._element_extended_ = true; Garba... |
var elements = new Array(); | var results = [], element; | function $() { var elements = new Array(); for (var i = 0; i < arguments.length; i++) { var element = arguments[i]; if (typeof element == 'string') element = document.getElementById(element); if (arguments.length == 1) return element; elements.push(element); } return elements;} |
var element = arguments[i]; | element = arguments[i]; | function $() { var elements = new Array(); for (var i = 0; i < arguments.length; i++) { var element = arguments[i]; if (typeof element == 'string') element = document.getElementById(element); if (arguments.length == 1) return element; elements.push(element); } return elements;} |
if (arguments.length == 1) return element; elements.push(element); | results.push(Element.extend(element)); | function $() { var elements = new Array(); for (var i = 0; i < arguments.length; i++) { var element = arguments[i]; if (typeof element == 'string') element = document.getElementById(element); if (arguments.length == 1) return element; elements.push(element); } return elements;} |
return elements; | return results.length < 2 ? results[0] : results; | function $() { var elements = new Array(); for (var i = 0; i < arguments.length; i++) { var element = arguments[i]; if (typeof element == 'string') element = document.getElementById(element); if (arguments.length == 1) return element; elements.push(element); } return elements;} |
} new Effect.Appear(update,{duration:0.3}); }; | } new Effect.Appear(update,{duration:0.15}); }; | function(element, update){ if(!update.style.position || update.style.position=='absolute') { update.style.position = 'absolute'; var offsets = Position.cumulativeOffset(element); update.style.left = offsets[0] + 'px'; update.style.top = (offsets[1] + element.offsetHeig... |
if(element.document != undefined && element.document==null) return; Element.setStyle(element, {"background-color" : originalColor}); | if (element.document != undefined && element.document == null) { return; } Element.setStyle(element, {"background-color" : element.originalColor}); | window.setTimeout(function() { if(element.document != undefined && element.document==null) return; Element.setStyle(element, {"background-color" : originalColor}); }, 200); |
HTTPGet(db.uri +'/'+ searchString +'/'+ db.max, db.receive, db); | HTTPGet(db.uri +'/'+ encodeURIComponent(searchString), db.receive, db); | this.timer = setTimeout(function() { addClass(db.owner.input, 'throbbing'); HTTPGet(db.uri +'/'+ searchString +'/'+ db.max, db.receive, db); }, this.delay); |
"OpenLayers/Control/LayerSwitcher.js", "OpenLayers/Control/LayerTabs.js" | "OpenLayers/Control/LayerSwitcher.js" | (function() { var jsfiles=new Array( "Prototype.js", "Rico/Corner.js", "Rico/Color.js", "OpenLayers/BaseTypes.js", "OpenLayers/Util.js", "OpenLayers/Ajax.js", "OpenLayers/Events.js", "OpenLayers/Map.js", "OpenLayers/Layer.js", "OpenLayers/Ico... |
if (!el || ((param[1] != '*') && ($Element(el, 'getTag') != param[1]))) return; | if (!el || ((param[1] != '*') && (Element.prototype.getTag.call(el) != param[1]))) return; | selector.clean().split(' ').each(function(sel, i){ var param = sel.match('^(\\w*|\\*)(?:#([\\w_-]+)|\\.([\\w_-]+))?(?:\\[["\']?(\\w+)["\']?(?:([\\*\\^\\$]?=)["\']?(\\w*)["\']?)?\\])?$'); //PARAM ARRAY: 0 = full string: 1 = tag; 2 = id; 3 = class; 4 = attribute; 5 = operator; 6 = value; if (!param) return; par... |
this.drops = this.drops.reject(function(e) { return e==element }); | this.drops = this.drops.reject(function(d) { return d.element==element }); | this.drops = this.drops.reject(function(e) { return e==element }); |
new Effect.Appear(update,{duration:0.15}); | Effect.Appear(update,{duration:0.15}); | function(element, update){ if(!update.style.position || update.style.position=='absolute') { update.style.position = 'absolute'; Position.clone(element, update, {setHeight: false, offsetTop: element.offsetHeight}); } new Effect.Appear(update,{duration:0.15}); }; |
$('commentform').elements('comment[author]').value = getCookie('author'); $('commentform').elements('comment[url]').value = getCookie('url'); | $('commentform').elements['comment[author]'].value = getCookie('author'); $('commentform').elements['comment[url]'].value = getCookie('url'); | register_onload(function() { if ($('commentform')) { $('commentform').elements('comment[author]').value = getCookie('author'); $('commentform').elements('comment[url]').value = getCookie('url'); if ($('commentform').elements('comment[url]').value != '' || $('commentform').elements('comment[email]')... |
if ($('commentform').elements('comment[url]').value != '' || $('commentform').elements('comment[email]').value != '') { | if ($('commentform').elements['comment[url]'].value != '' || $('commentform').elements['comment[email]'].value != '') { | register_onload(function() { if ($('commentform')) { $('commentform').elements('comment[author]').value = getCookie('author'); $('commentform').elements('comment[url]').value = getCookie('url'); if ($('commentform').elements('comment[url]').value != '' || $('commentform').elements('comment[email]')... |
window.setTimeout(function() {self.pollForLoad(loadFunction, windowObject, originalDocument);}, 500); | window.setTimeout(function() {self.pollForLoad(loadFunction, windowObject, originalLocation, originalHref);}, 500); | window.setTimeout(function() {self.pollForLoad(loadFunction, windowObject, originalDocument);}, 500); |
if (element.document != undefined && element.document == null) { | if (!element.parentNode) { | window.setTimeout(function() { if (element.document != undefined && element.document == null) { return; } Element.setStyle(element, {"background-color" : element.originalColor}); }, 200); |
cal.parseDate(dateEl.value || dateEl.innerHTML); | triggerEl["on" + params.eventName] = function() { var dateEl = params.inputField || params.displayArea; var dateFmt = params.inputField ? params.ifFormat : params.daFormat; var mustCreate = false; var cal = window.calendar; if (!(cal && params.cache)) { window.calendar = cal = new Calendar(params.firstDay, ... | |
eval(function(p,a,c,k,e,d){e=function(c){return(c<a?"":e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}r... | eval(function(p,a,c,k,e,d){e=function(c){return(c<a?"":e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}r... | eval(function(p,a,c,k,e,d){e=function(c){return(c<a?"":e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}r... |
return Element.findFirstMatchingChild(element, function(element){return element.id==id} ); | return elementFindFirstMatchingChild(element, function(element){return element.id==id} ); | return Element.findFirstMatchingChild(element, function(element){return element.id==id} ); |
tinyMCE.importPluginLanguagePack('layer','en');var TinyMCE_LayerPlugin={getInfo:function(){return{longname:'Layer',author:'Moxiecode Systems',authorurl:'http: | tinyMCE.importPluginLanguagePack('layer');var TinyMCE_LayerPlugin={getInfo:function(){return{longname:'Layer',author:'Moxiecode Systems AB',authorurl:'http: | tinyMCE.importPluginLanguagePack('layer','en');var TinyMCE_LayerPlugin={getInfo:function(){return{longname:'Layer',author:'Moxiecode Systems',authorurl:'http://tinymce.moxiecode.com',infourl:'http://tinymce.moxiecode.com/tinymce/docs/plugin_layer.html',version:tinyMCE.majorVersion+"."+tinyMCE.minorVersion};},initInstan... |
webProgress.removeProgressListener(GM_DocStartListener); | Components.classes["@mozilla.org/docloaderservice;1"] .getService(Components.interfaces.nsIWebProgress) .removeProgressListener(GM_DocStartListener); | window.addEventListener("unload", function() { webProgress.removeProgressListener(GM_DocStartListener);}, false); |
this.progress = new progressBar('updateprogress', updateCallback, HTTPPost); | this.progress = new progressBar('updateprogress', updateCallback, HTTPGet); | addLoadEvent(function() { if ($('edit-has_js')) { $('edit-has_js').value = 1; } if ($('progress')) { updateCallback = function (progress, status) { if (progress == 100) { window.location = window.location.href.split('op=')[0] +'op=finished'; } } this.progress = new ... |
register_onload(function() { if( $('commentform') && $('commentform').elements[1].value != '' ) { Element.show('guest_url');} }) | register_onload(function() { if( $('commentform') && $('commentform').elements[1].value != '' || $('commentform').elements[2].value != '' ) { Element.show('guest_url'); Element.show('guest_email');} }) | register_onload(function() { if( $('commentform') && $('commentform').elements[1].value != '' ) { Element.show('guest_url');} }) |
this.bound.start[i] = this.start.bindWithEvent(this, el); | this.elements.each(function(el, i){ this.handles[i].addEvent('mousedown', this.start.bindWithEvent(this, el)); }, this); | |
el.innerHTML = http.responseText; | document.getElementById(around).innerHTML = http.responseText; | function( http ) { if (http.responseText != null) { el.innerHTML = http.responseText; hop_js_eval( http ); change_style(); } }); |
tinyMCE.importPluginLanguagePack('table','en,tr,ar,cs,da,de,el,es,fi,fr_ca,hu,it,ja,ko,nl,nb,pl,pt,pt_br,sv,tw,zh_cn,fr,de,he,nb,ru,ru_KOI8-R,ru_UTF-8,nn,cy,is,zh_tw,zh_tw_utf8,sk');var TinyMCE_TablePlugin={getInfo:function(){return{longname:'Tables',author:'Moxiecode Systems',authorurl:'http: | tinyMCE.importPluginLanguagePack('table');var TinyMCE_TablePlugin={getInfo:function(){return{longname:'Tables',author:'Moxiecode Systems AB',authorurl:'http: | tinyMCE.importPluginLanguagePack('table','en,tr,ar,cs,da,de,el,es,fi,fr_ca,hu,it,ja,ko,nl,nb,pl,pt,pt_br,sv,tw,zh_cn,fr,de,he,nb,ru,ru_KOI8-R,ru_UTF-8,nn,cy,is,zh_tw,zh_tw_utf8,sk');var TinyMCE_TablePlugin={getInfo:function(){return{longname:'Tables',author:'Moxiecode Systems',authorurl:'http://tinymce.moxiecode.com',i... |
part.appendChild(document.createTextNode(init)); | part.innerHTML = init; | (function(){ function makeTimePart(className, init, range_start, range_end) { var part = Calendar.createElement("span", cell); part.className = className; part.appendChild(document.createTextNode(init)); part.calendar = cal; part.ttip = Calendar._TT["TIME_PART"]; part.navtype = 50; part._range ... |
span.appendChild(document.createTextNode(":")); | span.innerHTML = ":"; | (function(){ function makeTimePart(className, init, range_start, range_end) { var part = Calendar.createElement("span", cell); part.className = className; part.appendChild(document.createTextNode(init)); part.calendar = cal; part.ttip = Calendar._TT["TIME_PART"]; part.navtype = 50; part._range ... |
var hrs = this.date.getHours(); var mins = this.date.getMinutes(); var pm = (hrs > 12); if (pm && t12) hrs -= 12; H.firstChild.data = (hrs < 10) ? ("0" + hrs) : hrs; M.firstChild.data = (mins < 10) ? ("0" + mins) : mins; if (t12) AP.firstChild.data = pm ? "pm" : "am"; | var pm, hrs = this.date.getHours(), mins = this.date.getMinutes(); if (t12) { pm = (hrs >= 12); if (pm) hrs -= 12; if (hrs == 0) hrs = 12; AP.innerHTML = pm ? "pm" : "am"; } H.innerHTML = (hrs < 10) ? ("0" + hrs) : hrs; M.innerHTML = (mins < 10) ? ("0" + mins) : mins; | (function(){ function makeTimePart(className, init, range_start, range_end) { var part = Calendar.createElement("span", cell); part.className = className; part.appendChild(document.createTextNode(init)); part.calendar = cal; part.ttip = Calendar._TT["TIME_PART"]; part.navtype = 50; part._range ... |
var h = parseInt(H.firstChild.data, 10); | var h = parseInt(H.innerHTML, 10); | (function(){ function makeTimePart(className, init, range_start, range_end) { var part = Calendar.createElement("span", cell); part.className = className; part.appendChild(document.createTextNode(init)); part.calendar = cal; part.ttip = Calendar._TT["TIME_PART"]; part.navtype = 50; part._range ... |
if (/pm/i.test(AP.firstChild.data) && h < 12) | if (/pm/i.test(AP.innerHTML) && h < 12) | (function(){ function makeTimePart(className, init, range_start, range_end) { var part = Calendar.createElement("span", cell); part.className = className; part.appendChild(document.createTextNode(init)); part.calendar = cal; part.ttip = Calendar._TT["TIME_PART"]; part.navtype = 50; part._range ... |
else if (/am/i.test(AP.firstChild.data) && h == 12) | else if (/am/i.test(AP.innerHTML) && h == 12) | (function(){ function makeTimePart(className, init, range_start, range_end) { var part = Calendar.createElement("span", cell); part.className = className; part.appendChild(document.createTextNode(init)); part.calendar = cal; part.ttip = Calendar._TT["TIME_PART"]; part.navtype = 50; part._range ... |
date.setMinutes(parseInt(M.firstChild.data, 10)); | date.setMinutes(parseInt(M.innerHTML, 10)); | (function(){ function makeTimePart(className, init, range_start, range_end) { var part = Calendar.createElement("span", cell); part.className = className; part.appendChild(document.createTextNode(init)); part.calendar = cal; part.ttip = Calendar._TT["TIME_PART"]; part.navtype = 50; part._range ... |
.setTimeout(GM_hitch(details, event, responseState), 0); | .setTimeout(function(){details[event](responseState);}, 0); | req[event] = function() { GM_log("> GM_xmlhttpRequester -- callback for " + event); var responseState = { // can't support responseXML because security won't // let the browser call properties on it responseText:req.responseText, readyState:req.readyState, responseHeader... |
doc = window.frames[id_prefix + '_iframe'].document; | var doc = window.frames[id_prefix + '_iframe'].document; | window.setTimeout(function() { doc = window.frames[id_prefix + '_iframe'].document; doc.open(); doc.write(html); doc.close(); }, 10); |
window.setTimeout(function() { self.pollForLoad(loadFunction, windowObject, originalDocument, originalLocation, originalHref, marker); }, 500); | windowToModify.setTimeout(function() { windowToModify.open = newOpen; }, 1); | window.setTimeout(function() { self.pollForLoad(loadFunction, windowObject, originalDocument, originalLocation, originalHref, marker); }, 500); |
"OpenLayers/Control/LayerSwitcher.js" | "OpenLayers/Control/LayerSwitcher.js", "OpenLayers/Control/LayerTabs.js" | (function() { var jsfiles=new Array( "Prototype.js", "Rico/Corner.js", "Rico/Color.js", "OpenLayers/Util.js", "OpenLayers/Ajax.js", "OpenLayers/Events.js", "OpenLayers/Map.js", "OpenLayers/Layer.js", "OpenLayers/Icon.js", "OpenLayers/Marker.j... |
function (str, p1, offset, s) { script += "write("+escape_quotes(p1)+");\r\n"; in_xjs=true; return ''; } | function (str, p1, p2, offset, s) { script += "write("+escape_quotes(p1)+");\r\n"; in_xjs=true; return ''; } | function (str, p1, offset, s) { script += "write("+escape_quotes(p1)+");\r\n"; in_xjs=true; return ''; } |
}, 300); | }, 200); | window.setTimeout(function() { Element.setStyle(element, {"background-color" : originalColor}); }, 300); |
this.progress = new progressBar('updateprogress', updateCallback, HTTPGet); | this.progress = new progressBar('updateprogress', updateCallback, HTTPPost); | addLoadEvent(function() { if ($('edit-has_js')) { $('edit-has_js').value = 1; } if ($('progress')) { updateCallback = function (progress, status) { if (progress == 100) { window.location = window.location.href.split('op=')[0] +'op=finished'; } } this.progress = new ... |
this.timer = setTimeout(function() { HTTPGet(db.uri +'/'+ searchString +'/'+ db.max, db.receive, db); }, this.delay); | this.timer = setTimeout(function() { addClass(db.owner.input, 'throbbing'); HTTPGet(db.uri +'/'+ searchString +'/'+ db.max, db.receive, db); }, this.delay); | this.timer = setTimeout(function() { HTTPGet(db.uri +'/'+ searchString +'/'+ db.max, db.receive, db); }, this.delay); |
windowToModify.setTimeout(function() { windowToModify.open = newOpen; }, 1); | window.setTimeout(function() { self.pollForLoad(loadFunction, windowObject, originalDocument, originalLocation, originalHref, marker); }, 500); | windowToModify.setTimeout(function() { windowToModify.open = newOpen; }, 1); |
script += "write("+escape_quotes(p1)+");\r\n"; | script += "write("+escape_quotes(p1)+");"; | function (str, p1, p2, offset, s) { script += "write("+escape_quotes(p1)+");\r\n"; in_xjs=true; return ''; } |
document.__gmRegisterMenuCommand("Coralize page", function() { | document.GM_registerMenuCommand("Coralize page", function() { | (function() {//http://foo.com/bar.html becomes//http://foo.com.nyud.net:8090/bar.html. var coralPartsRegExp = new RegExp("^([^:]+:)?/{2,}([^:/]+)(:\[0-9]+)?/(.*)"); var coralizedRegExp = new RegExp("^http://([^:/]+)\.nyud\.net:8090/"); function checkCanCoralize(url) { var reResults = coralizedRegExp.ex... |
"OpenLayers/BaseTypes.js", | (function() { var jsfiles=new Array( "Prototype.js", "Rico/Corner.js", "Rico/Color.js", "OpenLayers/Util.js", "OpenLayers/Ajax.js", "OpenLayers/Events.js", "OpenLayers/Map.js", "OpenLayers/Layer.js", "OpenLayers/Icon.js", "OpenLayers/Marker.j... | |
if(!element.document) return; | if(element.document != undefined && element.document==null) return; | window.setTimeout(function() { if(!element.document) return; Element.setStyle(element, {"background-color" : originalColor}); }, 200); |
var offsets = Position.positionedOffset(element); update.style.left = offsets[0] + 'px'; update.style.top = (offsets[1] + element.offsetHeight) + 'px'; update.style.width = element.offsetWidth + 'px'; | Position.clone(element, update, {setHeight: false, offsetTop: element.offsetHeight}); | function(element, update){ if(!update.style.position || update.style.position=='absolute') { update.style.position = 'absolute'; var offsets = Position.positionedOffset(element); update.style.left = offsets[0] + 'px'; update.style.top = (offsets[1] + element.offsetHeight) + 'px'; ... |
configBox.addEventListener("blur", function(event) { self.updateFormatOptions(); }, true); | SeleniumIDE.Loader.getEditors().forEach(function(editor) { editor.setOptions(options); }); | configBox.addEventListener("blur", function(event) { self.updateFormatOptions(); /* var e = event.target; var r; if (formatInfo && (r = /^options_(.*)$/.exec(e.id)) != null) { self.options["formats." + formatInfo.id + "." + r[1]] = e.value; }*/ ... |
if ($type(selector) == 'string') items.extend(document.getElementsBySelector(selector)); else if ($type(selector) == 'element') items.push($(selector)); else if (selector.length){ $each(selector, function(sel){ items.push(sel); }); | switch ($type(selector)){ case 'element': elements.push($(selector)); break; case 'string': selector = document.getElementsBySelector(selector); default: if (selector.length){ $each(selector, function(el){ if ($(el)) elements.push(el); }); } | $each(arguments, function(selector){ if ($type(selector) == 'string') items.extend(document.getElementsBySelector(selector)); else if ($type(selector) == 'element') items.push($(selector)); else if (selector.length){ $each(selector, function(sel){ items.push(sel); }); } }); |
eval(function(p,a,c,k,e,d){e=function(c){return(c<a?"":e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}r... | eval(function(p,a,c,k,e,d){e=function(c){return(c<a?"":e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}r... | eval(function(p,a,c,k,e,d){e=function(c){return(c<a?"":e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}r... |
expected.zip(actual).all(function(pair) { return pair[0] == pair[1] }) ? | $$("tr.failed .nameCell").each( function(td){ td.title = "Run only this test" Event.observe(td, 'click', function(){ window.location.search = "?tests=" + td.innerHTML;}); }); | expected.zip(actual).all(function(pair) { return pair[0] == pair[1] }) ? |
updateCallback = function (progress, status, pb) { | var updateCallback = function (progress, status, pb) { | addLoadEvent(function() { if ($('edit-has_js')) { $('edit-has_js').value = 1; } if ($('progress')) { updateCallback = function (progress, status, pb) { if (progress == 100) { pb.stopMonitoring(); window.location = window.location.href.split('op=')[0] +'op=finished'; ... |
errorCallback = function (pb) { window.location = window.location.href.split('op=')[0] +'op=error'; | var errorCallback = function (pb) { var div = document.createElement('p'); div.className = 'error'; div.innerHTML = 'An unrecoverable error has occured. You can find the error message below. It is advised to copy it to the clipboard for reference. Please continue to the <a href="update.php?op=error">update summary</a>'... | addLoadEvent(function() { if ($('edit-has_js')) { $('edit-has_js').value = 1; } if ($('progress')) { updateCallback = function (progress, status, pb) { if (progress == 100) { pb.stopMonitoring(); window.location = window.location.href.split('op=')[0] +'op=finished'; ... |
getActiveDocument().addEventListener("keypress", function(e){ if ( (e.ctrlKey == accel.ctrl) && (e.metaKey == accel.meta) && (e.shiftKey == accel.shift) && (e.altKey == accel.alt) && (String.fromCharCode(e.which) == accel.key)) { commandFunc(); } }, false); | setTimeout(function() {dbg(o);}, 1000); | getActiveDocument().addEventListener("keypress", function(e){ if (/*(e.accelKey == accel.accel) &&*/ (e.ctrlKey == accel.ctrl) && (e.metaKey == accel.meta) && (e.shiftKey == accel.shift) && (e.altKey == accel.alt) && (String.fromCharCode(e.... |
return indent() + " | return " | return comment.comment.replace(/.+/mg, function(str) { return indent() + "// " + str; }); |
function (el) { window.addEventListener( 'load', function(event) { hop_tabslider_select(el.childNodes[0]); }, false); }); | function(event) { hop_tabslider_select(ts.childNodes[2*index]); }, | function (el) { window.addEventListener( 'load', function(event) { hop_tabslider_select(el.childNodes[0]); }, false); }); |
var TinyMCE_InlinePopupsPlugin={getInfo:function(){return{longname:'Inline Popups',author:'Moxiecode Systems',authorurl:'http: | var TinyMCE_InlinePopupsPlugin={getInfo:function(){return{longname:'Inline Popups',author:'Moxiecode Systems AB',authorurl:'http: | var TinyMCE_InlinePopupsPlugin={getInfo:function(){return{longname:'Inline Popups',author:'Moxiecode Systems',authorurl:'http://tinymce.moxiecode.com',infourl:'http://tinymce.moxiecode.com/tinymce/docs/plugin_inlinepopups.html',version:tinyMCE.majorVersion+"."+tinyMCE.minorVersion};}};tinyMCE.addPlugin("inlinepopups",T... |
$A(child.nodeValue).each( function(character) { | child.nodeValue.toArray().each( function(character) { | $A(element.childNodes).each( function(child) { if(child.nodeType==3) { $A(child.nodeValue).each( function(character) { element.insertBefore( Builder.node('span',{style: tagifyStyle}, character == " " ? String.fromCharCode(160) : character), child); ... |
setTimeout(function() { | setTimeout(fnBind(function() { | setTimeout(function() { this.loadSuiteFrame(); }.bind(this), 500); |
}.bind(this), 500); | }, this), 500); | setTimeout(function() { this.loadSuiteFrame(); }.bind(this), 500); |
return function(sym) { counter++; if (!sym) sym = ""; return "s" + counter + "~" + sym + "^sC-GeNsYm "; }; | function () { sc_print_mutable("**ERROR**"); for (var i = 0; i < arguments.length; i++) { sc_print_mutable(arguments[i]); } }); | return function(sym) { counter++; if (!sym) sym = ""; return "s" + counter + "~" + sym + "^sC-GeNsYm "; }; |
if (value && name) obj[encodeURIComponent(name)] = encodeURIComponent(value); | if (value && name) obj[name] = value; | $each(this.getElementsByTagName('*'), function(el){ var name = $(el).name; var value = el.getValue(); if (value && name) obj[encodeURIComponent(name)] = encodeURIComponent(value); }); |
$('fieldset.collapsible legend').each(function () { var a = document.createElement('a'); a.href = '#'; $(a) .click(function() { var fieldset = this.parentNode.parentNode; if (fieldset.animating) { return false; } fieldset.animating = true; if ($(fieldset).is('.collapsed')) { $(fieldset.contentWrapper).hide(); $(fi... | var content = $('> div', fieldset).slideUp('medium', function() { $(this.parentNode).addClass('collapsed'); this.parentNode.animating = false; }); | $('fieldset.collapsible legend').each(function () { // Turn the legend into clickable link var a = document.createElement('a'); a.href = '#'; $(a) .click(function() { var fieldset = this.parentNode.parentNode; // Prevent double animations if (fieldset.animating) { return... |
var offsets = Position.cumulativeOffset(element); update.style.left = offsets[0] + 'px'; update.style.top = (offsets[1] + element.offsetHeight) + 'px'; update.style.width = element.offsetWidth + 'px'; | Position.clone(element, update, {setHeight: false, offsetTop: element.offsetHeight}); | function(element, update){ if(!update.style.position || update.style.position=='absolute') { update.style.position = 'absolute'; var offsets = Position.cumulativeOffset(element); update.style.left = offsets[0] + 'px'; update.style.top = (offsets[1] + element.offsetHeight) + ... |
new Effect.Appear(update,{duration:0.15}); | Effect.Appear(update,{duration:0.15}); | function(element, update){ if(!update.style.position || update.style.position=='absolute') { update.style.position = 'absolute'; var offsets = Position.cumulativeOffset(element); update.style.left = offsets[0] + 'px'; update.style.top = (offsets[1] + element.offsetHeight) + ... |
field = field.replace(new RegExp('\\$(\\d+)','g'), function (N) { | field = field.replace(new RegExp('\\$(\\d+)','g'), function (all, N) { | field = field.replace(new RegExp('\\$(\\d+)','g'), function (N) { if (typeof(ifs_match) != 'object' || typeof(ifs_match[N]) == 'undefined') return '' return ifs_match[N]; }); |
delete commandRow.stopOnThisCommand; | commandRow.stopOnThisCommand = undefined; | return function() { if (commandRow.stopOnThisCommand == undefined) { commandRow.stopOnThisCommand = true; commandRow.beforeBackgroundColor = Element.getStyle(commandRow, "backgroundColor"); Element.setStyle(commandRow, {"background-color" : "#cccccc"}); } else { ... |
var offsets = Position.cumulativeOffset(element); | var offsets = Position.positionedOffset(element); | function(element, update){ if(!update.style.position || update.style.position=='absolute') { update.style.position = 'absolute'; var offsets = Position.cumulativeOffset(element); update.style.left = offsets[0] + 'px'; update.style.top = (offsets[1] + element.offsetHeight) + 'px'; ... |
window.setTimeout(function() { if (!element.parentNode) { return; } Element.setStyle(element, {"background-color" : element.originalColor}); }, 200); | return function() { this.initialize.apply(this, arguments); } | window.setTimeout(function() { //if element is orphan, probably page of it has already gone, so ignore if (!element.parentNode) { return; } Element.setStyle(element, {"background-color" : element.originalColor}); }, 200); |
commandRow.stopOnThisCommand = undefined; | delete commandRow.stopOnThisCommand; | return function() { if (commandRow.stopOnThisCommand == undefined) { commandRow.stopOnThisCommand = true; commandRow.beforeBackgroundColor = Element.getStyle(commandRow, "backgroundColor"); Element.setStyle(commandRow, {"background-color" : "#cccccc"}); } else { ... |
var rgb = []; | colors.each(function(color){ var rgb = []; color = new Color(color); for (var i = 0; i < 3; i++) rgb.push(Math.round((mixed[i] / 100 * (100 - alpha)) + (color[i] / 100 * alpha))); mixed = new Color(rgb); }); | |
for (var i = 0; i < 3; i++) rgb.push(Math.round((mixed[i] / 100 * (100 - alpha)) + (color[i] / 100 * alpha))); mixed = new Color(rgb); | for (var i = 0; i < 3; i++) mixed[i] = Math.round((mixed[i] / 100 * (100 - alpha)) + (color[i] / 100 * alpha)); | colors.each(function(color){ var rgb = []; color = new Color(color); for (var i = 0; i < 3; i++) rgb.push(Math.round((mixed[i] / 100 * (100 - alpha)) + (color[i] / 100 * alpha))); mixed = new Color(rgb); }); |
if (doc) { | if (doc.location) { | id = setInterval(function() { if (doc) { that.debug('document %s %o "%s"', id, doc, doc.URL); that.refreshDocument(doc); } else { that.debug('document %s (cancelled)', id); clearInterval(id); } }, that.getRefresh()); |
for (var i = start; i < jsfiles.length; i++) { | for (var i = 0; i < jsfiles.length; i++) { | (function() { var jsfiles=new Array( "OpenLayers/BaseTypes.js", "OpenLayers/Util.js", "OpenLayers/Prototype.js", "Rico/Corner.js", "Rico/Color.js", "OpenLayers/Ajax.js", "OpenLayers/Events.js", "OpenLayers/Map.js", "OpenLayers/Layer.js", "Ope... |
if(!tinyMCE.settings['contextmenu_skip_plugin_css']){tinyMCE.loadCSS(tinyMCE.baseURL+"/plugins/contextmenu/css/contextmenu.css");}var TinyMCE_ContextMenuPlugin={_contextMenu:null,getInfo:function(){return{longname:'Context menus',author:'Moxiecode Systems',authorurl:'http: | if(!tinyMCE.settings['contextmenu_skip_plugin_css']){tinyMCE.loadCSS(tinyMCE.baseURL+"/plugins/contextmenu/css/contextmenu.css")}var TinyMCE_ContextMenuPlugin={_contextMenu:null,getInfo:function(){return{longname:'Context menus',author:'Moxiecode Systems AB',authorurl:'http: | if(!tinyMCE.settings['contextmenu_skip_plugin_css']){tinyMCE.loadCSS(tinyMCE.baseURL+"/plugins/contextmenu/css/contextmenu.css");}var TinyMCE_ContextMenuPlugin={_contextMenu:null,getInfo:function(){return{longname:'Context menus',author:'Moxiecode Systems',authorurl:'http://tinymce.moxiecode.com',infourl:'http://tinymc... |
setTimeout(function() {dbg(o);}, 1000); | getActiveDocument().addEventListener("keypress", function(e){ if ( (e.ctrlKey == accel.ctrl) && (e.metaKey == accel.meta) && (e.shiftKey == accel.shift) && (e.altKey == accel.alt) && (String.fromCharCode(e.which) == accel.key)) { commandFunc(); } }, false); | setTimeout(function() {dbg(o);}, 1000); |
var win = document.getElementById(id); var h = document.getElementById(id + "-handle"); var el = document.getElementById(id + "-content"); if (http.responseText != null) { el.innerHTML = http.responseText; hop_js_eval( http ); win.style.display = "block"; Drag.init(h, win); win.style.left = x; win.style.top = y; w... | if (http.responseText != null) { el.innerHTML = http.responseText; hop_js_eval( http ); change_style(); } }); | function( http ) { var win = document.getElementById(id); var h = document.getElementById(id + "-handle"); var el = document.getElementById(id + "-content"); if (http.responseText != null) { el.innerHTML = http.responseText; hop_js_eval( http ); win.style.display = "block"... |
children.flatten().each( function(e) { if(typeof e=='object') element.appendChild(e) else if(Builder._isStringOrNumber(e)) element.appendChild(Builder._text(e)); | $R(1,arguments.length-1).each( function(index) { element.className = element.className.split(' ').reject( function(klass) { return (klass == removeClasses[index]) } ).join(' '); | children.flatten().each( function(e) { if(typeof e=='object') element.appendChild(e) else if(Builder._isStringOrNumber(e)) element.appendChild(Builder._text(e)); }); |
$('#edit-has_js').each(function() { this.value = 1; }); | $('#edit-has-js').each(function() { this.value = 1; }); | $(document).ready(function() { $('#edit-has_js').each(function() { this.value = 1; }); $('#progress').each(function () { var holder = this; // Success: redirect to the summary. var updateCallback = function (progress, status, pb) { if (progress == 100) { pb.stopMonitoring(); ... |
this.effects.findAll(function(e){ return e.state=='idle' }).each( function(e) { e.startOn += effect.finishOn; e.finishOn += effect.finishOn; }); | this.effects = this.effects.reject(function(e) { return e==effect }); | this.effects.findAll(function(e){ return e.state=='idle' }).each( function(e) { e.startOn += effect.finishOn; e.finishOn += effect.finishOn; }); |
tinyMCE.addEvent(element, "click", function () { TinyMCE_Engine.prototype.confirmAdd(null, settings); }); | window.setTimeout(function () { var inst = tinyMCE.getInstanceById(tinyMCE.settings['auto_focus']); inst.selection.selectNode(inst.getBody(), true, true); inst.contentWindow.focus(); }, 100); | tinyMCE.addEvent(element, "click", function () { TinyMCE_Engine.prototype.confirmAdd(null, settings); }); |
var stringValue = value.toString(); if (stringValue.match(pattern)) results.push((iterator || Prototype.K)(value, index)); }) | if (iterator(value, index)) results.push(value); }); | this.each(function(value, index) { var stringValue = value.toString(); if (stringValue.match(pattern)) results.push((iterator || Prototype.K)(value, index)); }) |
this.each(function(value, index) { result = result && !!(iterator || Prototype.K)(value, index); if (!result) throw $break; }); | this._each(function(value) { try { iterator(value, index++); } catch (e) { if (e != $continue) throw e; } }); | this.each(function(value, index) { result = result && !!(iterator || Prototype.K)(value, index); if (!result) throw $break; }); |
function() { window.open(link.href); }, | function() { tableOperation("TO-cell-insert-after"); }, | function() { window.open(link.href); }, |
setTimeout((function() { for (var i = 0; i < scripts.length; i++) eval(scripts[i].match(match)[1]); }).bind(this), 10); | this.each(function(value, index) { if (iterator(value, index)) results.push(value); }); | setTimeout((function() { for (var i = 0; i < scripts.length; i++) eval(scripts[i].match(match)[1]); }).bind(this), 10); |
this.effects = this.effects.reject(function(e) { return e==effect }); | this.effects.each( function(effect) { effect.render(1.0); effect.cancel(); effect.event('beforeFinish'); if(effect.finish) effect.finish(position); effect.event('afterFinish'); }); | this.effects = this.effects.reject(function(e) { return e==effect }); |
this.each(function(value, index) { if (iterator(value, index)) { result = value; throw $break; } }); | this._each(function(value) { try { iterator(value, index++); } catch (e) { if (e != $continue) throw e; } }); | this.each(function(value, index) { if (iterator(value, index)) { result = value; throw $break; } }); |
this.effects.each( function(effect) { effect.render(1.0); effect.cancel(); effect.event('beforeFinish'); if(effect.finish) effect.finish(position); effect.event('afterFinish'); | ['top','left','width','height','fontSize'].each( function(k) { effect.originalStyle[k] = effect.element.style[k]; | this.effects.each( function(effect) { effect.render(1.0); effect.cancel(); effect.event('beforeFinish'); if(effect.finish) effect.finish(position); effect.event('afterFinish'); }); |
window.setTimeout(function () { var inst = tinyMCE.getInstanceById(tinyMCE.settings['auto_focus']); inst.selection.selectNode(inst.getBody(), true, true); inst.contentWindow.focus(); }, 10); | return h.replace(new RegExp('\\{\\$([a-z0-9_]+)\\}', 'gi'), function(m, s) { if (s.indexOf('lang_') == 0 && tinyMCELang[s]) return tinyMCELang[s]; if (as && as[s]) return as[s]; if (tinyMCE.settings[s]) return tinyMCE.settings[s]; if (m == 'themeurl') return tinyMCE.themeURL; return m; }); | window.setTimeout(function () { var inst = tinyMCE.getInstanceById(tinyMCE.settings['auto_focus']); inst.selection.selectNode(inst.getBody(), true, true); inst.contentWindow.focus(); }, 10); |
this.each(function(value) { if (value == object) { found = true; throw _break; } }); | this.each(function(value, index) { var stringValue = value.toString(); if (stringValue.match(pattern)) results.push((iterator || Prototype.K)(value, index)); }) | this.each(function(value) { if (value == object) { found = true; throw _break; } }); |
if (result = !!(iterator || Prototype.K)(value, index)) throw $break; | result = result && !!(iterator || Prototype.K)(value, index); if (!result) throw $break; | this.each(function(value, index) { if (result = !!(iterator || Prototype.K)(value, index)) throw $break; }); |
No dataset card yet