rem
stringlengths
0
126k
add
stringlengths
0
441k
context
stringlengths
15
136k
this.url = this.layer.getURL(this.bounds); this.imgDiv.style.display = "none"; if (this.layer.displayOutsideMaxExtent || (this.layer.maxExtent && (this.bounds.intersectsBounds(this.layer.maxExtent,false)) )) { if (this.layer.alpha) { OpenLayers.Util.modifyAlphaImageDiv(this.imgDiv, null, this.position, this.size, this....
this.drawn = true; return true;
draw:function() { OpenLayers.Tile.prototype.draw.apply(this, arguments); if (this.imgDiv == null) { this.initImgDiv(); } if (this.layer != this.layer.map.baseLayer && this.layer.reproject) { this.bounds = this.getBoundsFromBaseLayer(this.position); } t...
this.drawn = true;
this.clear(); return ((this.layer.displayOutsideMaxExtent || (this.layer.maxExtent && this.bounds.intersectsBounds(this.layer.maxExtent, false))) && !(this.layer.buffer == 0 && !this.bounds.intersectsBounds(this.layer.map.getExtent(), false)));
draw:function() { this.drawn = true; },
if (transparent) {
if (false) {
draw:function(transparent) { if (transparent) { this.imgDiv = OpenLayers.Util.createAlphaImageDiv(null, this.position, this.size, ...
if(this.options.scroll && (this.options.scroll != window)) {
if(this.options.scroll && (this.options.scroll != window && this._isScrollChild)) {
draw: function(point) { var pos = Position.cumulativeOffset(this.element); var d = this.currentDelta(); pos[0] -= d[0]; pos[1] -= d[1]; if(this.options.scroll && (this.options.scroll != window)) { pos[0] -= this.options.scroll.scrollLeft-this.originalScrollLeft; pos[1] -= this.options.scroll...
var sz = new OpenLayers.Size(18,18);
var sz = new OpenLayers.Size(28,28);
draw: function() { OpenLayers.Control.prototype.draw.apply(this, arguments); this.buttons = new Object(); this.map.events.register( "dblclick", this, this.defaultDblClick ); this.map.events.register( "mousedown", this, this.defaultMouseDown ); this.map.events.register( "mouseup", ...
this._addButton("zoombox", "west-mini.png", "east-mini.png", centered, sz);
this._addButton("zoombox", "drag-rectangle-off.png", "drag-rectangle-on.png", centered, sz); this._addButton("pan", "panning-hand-off.png", "panning-hand-on.png", new OpenLayers.Pixel(100,47), sz);
draw: function() { OpenLayers.Control.prototype.draw.apply(this, arguments); this.buttons = new Object(); this.map.events.register( "dblclick", this, this.defaultDblClick ); this.map.events.register( "mousedown", this, this.defaultMouseDown ); this.map.events.register( "mouseup", ...
this._addButton("zoomout", "zoom-minus-mini.png", centered.add(0, sz.h*4+5), sz);
this._addButton("zoomworld", "zoom-world-mini.png", centered.add(0, sz.h*4+5), sz); this._addButton("zoomout", "zoom-minus-mini.png", centered.add(0, sz.h*5+5), sz);
draw: function(px) { // initialize our internal div OpenLayers.Control.prototype.draw.apply(this, arguments); px = this.position; // place the controls this.buttons = new Array(); var sz = new OpenLayers.Size(18,18); var centered = new OpenLayers.Pixel(px.x+sz.w/2, p...
OpenLayers.Util.clearArray(this);
this.clear();
draw:function() { if (this.drawn) { OpenLayers.Util.clearArray(this); } OpenLayers.Tile.prototype.draw.apply(this, arguments); if (this.layer.displayOutsideMaxExtent || (this.layer.maxExtent && this.layer.maxExtent.intersectsBounds(this.bounds, false))) { ...
quickElement('td', tableRow, ' ', 'bgcolor','#f3f3f3');
var _cell = quickElement('td', tableRow, ' '); _cell.style.backgroundColor = '#f3f3f3';
draw: function(month, year, div_id, callback) { // month = 1-12, year = 1-9999 month = parseInt(month); year = parseInt(year); var calDiv = document.getElementById(div_id); removeChildren(calDiv); var calTable = document.createElement('table'); quickElement('caption', calTa...
if (this.drawn) { this.clear();
if (!OpenLayers.Tile.prototype.draw.apply(this, arguments)) { return false;
draw:function() { if (this.drawn) { this.clear(); } OpenLayers.Tile.prototype.draw.apply(this, arguments); if (this.layer.displayOutsideMaxExtent || (this.layer.maxExtent && this.layer.maxExtent.intersectsBounds(this.bounds, false))) { this.loadFeatures...
OpenLayers.Tile.prototype.draw.apply(this, arguments); if (this.layer.displayOutsideMaxExtent || (this.layer.maxExtent && this.layer.maxExtent.intersectsBounds(this.bounds, false))) { this.loadFeaturesForRegion(this.requestSuccess); }
this.loadFeaturesForRegion(this.requestSuccess); this.drawn = true; return true;
draw:function() { if (this.drawn) { this.clear(); } OpenLayers.Tile.prototype.draw.apply(this, arguments); if (this.layer.displayOutsideMaxExtent || (this.layer.maxExtent && this.layer.maxExtent.intersectsBounds(this.bounds, false))) { this.loadFeatures...
this.originalX = this.element.offsetLeft - this.currentLeft() - this.originalLeft; this.originalY = this.element.offsetTop - this.currentTop() - this.originalTop;
draw: function(event) { var style = this.element.style; this.originalX = this.element.offsetLeft - this.currentLeft() - this.originalLeft; this.originalY = this.element.offsetTop - this.currentTop() - this.originalTop; if((!this.options.constraint) || (this.options.constraint=='horizontal')) style....
style.left = ((event.clientX - this.originalX) - this.offsetX) + "px";
style.left = (pointer[0] - offsets[0] - this.offsetX) + "px";
draw: function(event) { var style = this.element.style; this.originalX = this.element.offsetLeft - this.currentLeft() - this.originalLeft; this.originalY = this.element.offsetTop - this.currentTop() - this.originalTop; if((!this.options.constraint) || (this.options.constraint=='horizontal')) style....
style.top = ((event.clientY - this.originalY) - this.offsetY) + "px";
style.top = (pointer[1] - offsets[1] - this.offsetY) + "px";
draw: function(event) { var style = this.element.style; this.originalX = this.element.offsetLeft - this.currentLeft() - this.originalLeft; this.originalY = this.element.offsetTop - this.currentTop() - this.originalTop; if((!this.options.constraint) || (this.options.constraint=='horizontal')) style....
OpenLayers.Event.observe(window, "DOMMouseScroll", this.onWheelEvent.bindAsEventListener(this)); OpenLayers.Event.observe(window, "mousewheel", this.onWheelEvent.bindAsEventListener(this)); OpenLayers.Event.observe(document, "mousewheel", this.onWheelEvent.bindAsEventListener(this));
this.registerWheelEvents();
draw: function() { this.map.events.register( "click", this, this.defaultClick ); this.map.events.register( "dblclick", this, this.defaultDblClick ); this.map.events.register( "mousedown", this, this.defaultMouseDown ); this.map.events.register( "mouseup", this, this.defaultMouseUp ); ...
"none");
"hidden");
draw: function(px) { OpenLayers.Popup.Anchored.prototype.draw.apply(this, arguments); // make the content Div var contentSize = this.size.copyOf(); contentSize.h -= (2 * OpenLayers.Popup.AnchoredBubble.CORNER_SIZE); var id = this.div.id + "-contentDiv"; this.content...
this.defaultKeyDown.bind(this.map));
this.defaultKeyDown.bind(this));
draw: function() { Event.observe(document, 'keypress', this.defaultKeyDown.bind(this.map)); },
this.div.style.zIndex = this.map.Z_INDEX_BASE['Control'] + this.map.controls.length;
draw: function () { if (this.div == null) { this.div = OpenLayers.Util.createDiv(); } return this.div; },
return this.image;
return this.imageDiv;
draw: function(px) { this.moveTo(px); return this.image; },
if(this.options.ghosting) { Position.prepare(); var r = Position.realOffset(this.element); window.status = r.inspect(); pos[0] += r[0] - Position.deltaX; pos[1] += r[1] - Position.deltaY; }
draw: function(point) { var pos = Position.cumulativeOffset(this.element); var d = this.currentDelta(); pos[0] -= d[0]; pos[1] -= d[1]; if(this.options.scroll && (this.options.scroll != window && this._isScrollChild)) { pos[0] -= this.options.scroll.scrollLeft-this.originalScrollLeft; pos[1]...
this.div.style.position = "absolute"; this.div.style.top = "10px"; this.div.style.right = "0px"; this.div.style.left = ""; this.div.style.fontFamily = "sans-serif"; this.div.style.color = "white"; this.div.style.fontWeight = "bold"; this.div.style.marginTop = "3px"; this.div.style.marginLeft = "3px"; this.div.style.mar...
this.loadContents();
draw: function() { // initialize our internal div OpenLayers.Control.prototype.draw.apply(this); this.div.style.position = "absolute"; this.div.style.top = "10px"; this.div.style.right = "0px"; this.div.style.left = ""; this.div.style.fontFamily = "sans-serif"; ...
this.map.events.register("addlayer", this, this.redraw); this.map.events.register("removelayer", this, this.redraw); this.map.events.register("changelayer", this, this.redraw); return this.redraw();
this.minimizeControl(); this.redraw(); return this.div;
draw: function() { // initialize our internal div OpenLayers.Control.prototype.draw.apply(this); this.div.style.position = "absolute"; this.div.style.top = "10px"; this.div.style.right = "0px"; this.div.style.left = ""; this.div.style.fontFamily = "sans-serif"; ...
gotoxy(1,colour_box_displayed);
console.gotoxy(1,colour_box_displayed);
function draw_colour_box(){ /* * Try to draw at the top unless the cursor is too close... then do it at * the bottom. */ if(ypos-topline<3) colour_box_displayed=edit_bottom-2; else colour_box_displayed=edit_top; gotoxy(1,colour_box_displayed); console.attributes=7; console.write("Foreground:"); console.putmsg("\x0...
console.attributes=(curattr&0xf8)|WHITE;
console.attributes=(curattr&0xf8)|LIGHTGRAY;
function draw_colour_box(){ /* * Try to draw at the top unless the cursor is too close... then do it at * the bottom. */ if(ypos-topline<3) colour_box_displayed=edit_bottom-2; else colour_box_displayed=edit_top; console.gotoxy(1,colour_box_displayed); console.attributes=7; console.write("Foreground:"); console.put...
console.attributes=(curattr&0x8f)|(WHITE<<4);
console.attributes=(curattr&0x8f)|(LIGHTGRAY<<4);
function draw_colour_box(){ /* * Try to draw at the top unless the cursor is too close... then do it at * the bottom. */ if(ypos-topline<3) colour_box_displayed=edit_bottom-2; else colour_box_displayed=edit_top; console.gotoxy(1,colour_box_displayed); console.attributes=7; console.write("Foreground:"); console.put...
gotoxy(1,colour_box_displayed);
function draw_colour_box(){ /* * Try to draw at the top unless the cursor is too close... then do it at * the bottom. */ if(ypos-topline<3) colour_box_displayed=edit_bottom-2; else colour_box_displayed=edit_top; console.attributes=7; console.write("Foreground:"); console.putmsg("\x01N \x01H\x01WK:"); console.attri...
console.ctrlkey_passthru|=3246080;
function draw_main(topline){ /* * Called to re-display the main menu. * topline is false when the top line doesn't need redrawing. */ if(topline) cleararea(1,1,console.screen_columns,console.screen_rows,true); else cleararea(1,2,console.screen_columns,console.screen_rows,true);}
console.gotoxy(x+1,yp);
console.gotoxy(1,yp);
function draw_quote_line(l){ var yp; var x; if(l==undefined || isNaN(l)) return; yp=l-quote_topline+quote_top; /* Does this line even exist? */ if(quote_line[l]==undefined) { console.attributes=7; console.gotoxy(x+1,yp); console.cleartoeol(); } else { /* Is line on the current screen? */ if(yp<quote_top) return...
this.drawCurrent = function() {
drawCurrent: function() {
this.drawCurrent = function() { CalendarNamespace.draw(this.currentMonth, this.currentYear, this.div_id, this.callback); }
}
},
this.drawCurrent = function() { CalendarNamespace.draw(this.currentMonth, this.currentYear, this.div_id, this.callback); }
this.drawDate = function(month, year) {
drawDate: function(month, year) {
this.drawDate = function(month, year) { this.currentMonth = month; this.currentYear = year; this.drawCurrent(); }
}
},
this.drawDate = function(month, year) { this.currentMonth = month; this.currentYear = year; this.drawCurrent(); }
if (px != null) {
if (px == null) { marker.display(false); } else {
drawMarker: function(marker) { var px = this.map.getLayerPxFromLonLat(marker.lonlat); if (px != null) { var markerImg = marker.draw(px); if (!marker.drawn) { this.div.appendChild(markerImg); marker.drawn = true; } } },
botright.x - topleft.x, botright.y - topleft.y);
Math.max(1, botright.x - topleft.x), Math.max(1, botright.y - topleft.y));
drawMarker: function(marker) { var bounds = marker.bounds; var topleft = this.map.getLayerPxFromLonLat( new OpenLayers.LonLat(bounds.left, bounds.top)); var botright = this.map.getLayerPxFromLonLat( new OpenLayers.LonLat(bounds.right, b...
this.drawNextMonth = function() {
drawNextMonth: function() {
this.drawNextMonth = function() { if (this.currentMonth == 12) { this.currentMonth = 1; this.currentYear++; } else { this.currentMonth++; } this.drawCurrent(); }
}
},
this.drawNextMonth = function() { if (this.currentMonth == 12) { this.currentMonth = 1; this.currentYear++; } else { this.currentMonth++; } this.drawCurrent(); }
this.drawNextYear = function() {
drawNextYear: function() {
this.drawNextYear = function() { this.currentYear++; this.drawCurrent(); }
this.drawPreviousMonth = function() {
drawPreviousMonth: function() {
this.drawPreviousMonth = function() { if (this.currentMonth == 1) { this.currentMonth = 12; this.currentYear--; } else { this.currentMonth--; } this.drawCurrent(); }
}
},
this.drawPreviousMonth = function() { if (this.currentMonth == 1) { this.currentMonth = 12; this.currentYear--; } else { this.currentMonth--; } this.drawCurrent(); }
this.drawPreviousYear = function() {
drawPreviousYear: function() {
this.drawPreviousYear = function() { this.currentYear--; this.drawCurrent(); }
}
},
this.drawPreviousYear = function() { this.currentYear--; this.drawCurrent(); }
this.setSpan(this.options.startSpan, $R(0, this.getRange(0).min()));
this.setSpan(this.options.startSpan, $R(0, this.values.length>1 ? this.getRange(0).min() : this.value ));
drawSpans: function() { var slider = this; if(this.spans) $R(0, this.spans.length-1).each(function(r) { slider.setSpan(slider.spans[r], slider.getRange(r)) }); if(this.options.startSpan) this.setSpan(this.options.startSpan, $R(0, this.getRange(0).min())); if(this.options.endSpan) this.setSp...
this.setSpan(this.options.endSpan, $R(this.getRange(this.spans.length-1).max(), this.maximum));
this.setSpan(this.options.endSpan, $R(this.values.length>1 ? this.getRange(this.spans.length-1).max() : this.value, this.maximum));
drawSpans: function() { var slider = this; if(this.spans) $R(0, this.spans.length-1).each(function(r) { slider.setSpan(slider.spans[r], slider.getRange(r)) }); if(this.options.startSpan) this.setSpan(this.options.startSpan, $R(0, this.getRange(0).min())); if(this.options.endSpan) this.setSp...
new Effect.Parallel(
element = $(element); var oldTop = element.style.top; var oldLeft = element.style.left; var oldOpacity = Element.getInlineOpacity(element); return new Effect.Parallel(
Effect.DropOut = function(element) { new Effect.Parallel( [ new Effect.MoveBy(element, 100, 0, { sync: true }), new Effect.Opacity(element, { sync: true, to: 0.0, from: 1.0 } ) ], { duration: 0.5, afterFinish: function(effect) { Element.hide(effect.effects[0].element); } });}
new Effect.Opacity(element, { sync: true, to: 0.0, from: 1.0 } ) ], { duration: 0.5, afterFinish: function(effect) { Element.hide(effect.effects[0].element); } });
new Effect.Opacity(element, { sync: true, to: 0.0 }) ], Object.extend( { duration: 0.5, beforeSetup: function(effect) { Element.makePositioned(effect.effects[0].element); }, afterFinishInternal: function(effect) { Element.hide(effect.effects[0].element); Element.undoPositioned(effect.effects[0].element); effect.effects...
Effect.DropOut = function(element) { new Effect.Parallel( [ new Effect.MoveBy(element, 100, 0, { sync: true }), new Effect.Opacity(element, { sync: true, to: 0.0, from: 1.0 } ) ], { duration: 0.5, afterFinish: function(effect) { Element.hide(effect.effects[0].element); } });}
function DummyLogger() { };
var DummyLogger = function() {};
function DummyLogger() {};
if (e != _continue) throw e;
if (e != $continue) throw e;
each: function(iterator) { var index = 0; try { this._each(function(value) { try { iterator(value, index++); } catch (e) { if (e != _continue) throw e; } }); } catch (e) { if (e != _break) throw e; } },
if (e != _break) throw e;
if (e != $break) throw e;
each: function(iterator) { var index = 0; try { this._each(function(value) { try { iterator(value, index++); } catch (e) { if (e != _continue) throw e; } }); } catch (e) { if (e != _break) throw e; } },
break;
status_line();
function edit(quote_first){ var key; redraw_screen(); if(quote_first) { if(quote_mode()) return; } while(1) { set_cursor(); key=console.inkey(0,10000); if(key=='') continue; switch(key) { /* We're getting all the CTRL keys here... */ case '\x00': /* CTRL-@ (NULL) */ case '\x01': /* CTRL-A (Colour) */ ...
var f=new File(system.temp_dir+"INPUT.MSG"); var s=make_strings(true,true); f.write(s[0]);
function edit(){ var key; redraw_screen(); while(1) { key=console.inkey(0,10000); if(key=='') continue; switch(key) { /* We're getting all the CTRL keys here... */ case '\x00': /* CTRL-@ (NULL) */ case '\x01': /* CTRL-A (Colour) */ key=''; draw_colour_box(); while(key=='') { key=console.getkey(K...
var f=new File(system.temp_dir+"INPUT.MSG");
var f=new File((argc==0?system.temp_dir+"INPUT.MSG":argv[0]));
function edit(quote_first){ var key; redraw_screen(); if(quote_first) { if(quote_mode()) return; } while(1) { set_cursor(); key=console.inkey(0,10000); if(key=='') continue; switch(key) { /* We're getting all the CTRL keys here... */ case '\x00': /* CTRL-@ (NULL) */ case '\x01': /* CTRL-A (Colour) */ ...
console.gotoxy(xpos,ypos);
set_cursor();
function edit(){ var key; console.gotoxy(xpos,ypos); while(1) { status_line(); key=console.inkey(0,10000); if(key=='') continue; switch(key) { /* We're getting all the CTRL keys here... */ case '\x00': /* CTRL-@ (NULL) */ case '\x01': /* CTRL-A */ break; case '\x02': /* KEY_HOME */ xpos=1; consol...
xpos=1; console.gotoxy(xpos,ypos);
xpos=0; set_cursor();
function edit(){ var key; console.gotoxy(xpos,ypos); while(1) { status_line(); key=console.inkey(0,10000); if(key=='') continue; switch(key) { /* We're getting all the CTRL keys here... */ case '\x00': /* CTRL-@ (NULL) */ case '\x01': /* CTRL-A */ break; case '\x02': /* KEY_HOME */ xpos=1; consol...
xpos=line[ypos-edit_top+topline].text.length+1; if(xpos>80) xpos=80; console.gotoxy(xpos,ypos);
last_xpos=-1; xpos=line[ypos].text.length; set_cursor();
function edit(){ var key; console.gotoxy(xpos,ypos); while(1) { status_line(); key=console.inkey(0,10000); if(key=='') continue; switch(key) { /* We're getting all the CTRL keys here... */ case '\x00': /* CTRL-@ (NULL) */ case '\x01': /* CTRL-A */ break; case '\x02': /* KEY_HOME */ xpos=1; consol...
if(xpos>line[ypos-edit_top+topline].text.length+1) {
if(xpos>line[ypos].text.length) {
function edit(){ var key; console.gotoxy(xpos,ypos); while(1) { status_line(); key=console.inkey(0,10000); if(key=='') continue; switch(key) { /* We're getting all the CTRL keys here... */ case '\x00': /* CTRL-@ (NULL) */ case '\x01': /* CTRL-A */ break; case '\x02': /* KEY_HOME */ xpos=1; consol...
if(xpos>80) { xpos=1; try_next_line();
if(xpos>line[ypos].text.length) { if(line[ypos].hardcr) console.beep(); else { if(try_next_line()) x=0; }
function edit(){ var key; console.gotoxy(xpos,ypos); while(1) { status_line(); key=console.inkey(0,10000); if(key=='') continue; switch(key) { /* We're getting all the CTRL keys here... */ case '\x00': /* CTRL-@ (NULL) */ case '\x01': /* CTRL-A */ break; case '\x02': /* KEY_HOME */ xpos=1; consol...
if(xpos>1) { line[ypos-edit_top+topline].text=line[ypos-edit_top+topline].text.substr(0,xpos-2) +line[ypos-edit_top+topline].text.substr(xpos-1); line[ypos-edit_top+topline].attr.splice(xpos-2,1);
last_xpos=-1; if(xpos>0) { line[ypos].text=line[ypos].text.substr(0,xpos-1) +line[ypos].text.substr(xpos); line[ypos].attr=line[ypos].attr.substr(0,xpos-1) +line[ypos].attr.substr(xpos);
function edit(){ var key; console.gotoxy(xpos,ypos); while(1) { status_line(); key=console.inkey(0,10000); if(key=='') continue; switch(key) { /* We're getting all the CTRL keys here... */ case '\x00': /* CTRL-@ (NULL) */ case '\x01': /* CTRL-A */ break; case '\x02': /* KEY_HOME */ xpos=1; consol...
if(try_prev_line()) xpos=line[ypos-edit_top+topline].text.length+1;
if(try_prev_line()) { xpos=line[ypos].text.length; line[ypos].hardcr=false; }
function edit(){ var key; console.gotoxy(xpos,ypos); while(1) { status_line(); key=console.inkey(0,10000); if(key=='') continue; switch(key) { /* We're getting all the CTRL keys here... */ case '\x00': /* CTRL-@ (NULL) */ case '\x01': /* CTRL-A */ break; case '\x02': /* KEY_HOME */ xpos=1; consol...
unwrap_line(ypos-edit_top+topline); redraw_line(ypos-edit_top+topline);
if(!rewrap()) draw_line(ypos,xpos); set_cursor();
function edit(){ var key; console.gotoxy(xpos,ypos); while(1) { status_line(); key=console.inkey(0,10000); if(key=='') continue; switch(key) { /* We're getting all the CTRL keys here... */ case '\x00': /* CTRL-@ (NULL) */ case '\x01': /* CTRL-A */ break; case '\x02': /* KEY_HOME */ xpos=1; consol...
add_new_line_below(ypos-edit_top+topline);
add_new_line_below(ypos);
function edit(){ var key; console.gotoxy(xpos,ypos); while(1) { status_line(); key=console.inkey(0,10000); if(key=='') continue; switch(key) { /* We're getting all the CTRL keys here... */ case '\x00': /* CTRL-@ (NULL) */ case '\x01': /* CTRL-A */ break; case '\x02': /* KEY_HOME */ xpos=1; consol...
line[ypos-edit_top+topline+1].text=line[ypos-edit_top+topline].text.substr(xpos-1); line[ypos-edit_top+topline+1].attr.splice(0,0,line[ypos-edit_top+topline].attr.slice(xpos-1,line[ypos-edit_top+topline+1].text.length)); line[ypos-edit_top+topline+1].hardcr=line[ypos-edit_top+topline].hardcr; line[ypos-edit_top+topline...
line[ypos+1].text=line[ypos].text.substr(xpos); line[ypos+1].attr=line[ypos].attr.substr(xpos); line[ypos+1].hardcr=line[ypos].hardcr; line[ypos].text=line[ypos].text.substr(0,xpos); line[ypos].attr=line[ypos].attr.substr(0,xpos); line[ypos].hardcr=true; draw_line(ypos); if(line[ypos].kludged) { line[ypos+1].kludged=tr...
function edit(){ var key; console.gotoxy(xpos,ypos); while(1) { status_line(); key=console.inkey(0,10000); if(key=='') continue; switch(key) { /* We're getting all the CTRL keys here... */ case '\x00': /* CTRL-@ (NULL) */ case '\x01': /* CTRL-A */ break; case '\x02': /* KEY_HOME */ xpos=1; consol...
xpos=1; console.gotoxy(xpos,ypos);
xpos=0; rewrap(); set_cursor();
function edit(){ var key; console.gotoxy(xpos,ypos); while(1) { status_line(); key=console.inkey(0,10000); if(key=='') continue; switch(key) { /* We're getting all the CTRL keys here... */ case '\x00': /* CTRL-@ (NULL) */ case '\x01': /* CTRL-A */ break; case '\x02': /* KEY_HOME */ xpos=1; consol...
if(insert) insert=false; else insert=true;
insert=!insert;
function edit(){ var key; console.gotoxy(xpos,ypos); while(1) { status_line(); key=console.inkey(0,10000); if(key=='') continue; switch(key) { /* We're getting all the CTRL keys here... */ case '\x00': /* CTRL-@ (NULL) */ case '\x01': /* CTRL-A */ break; case '\x02': /* KEY_HOME */ xpos=1; consol...
if(xpos<=0) {
if(xpos<0) {
function edit(){ var key; console.gotoxy(xpos,ypos); while(1) { status_line(); key=console.inkey(0,10000); if(key=='') continue; switch(key) { /* We're getting all the CTRL keys here... */ case '\x00': /* CTRL-@ (NULL) */ case '\x01': /* CTRL-A */ break; case '\x02': /* KEY_HOME */ xpos=1; consol...
xpos=1;
xpos=0;
function edit(){ var key; console.gotoxy(xpos,ypos); while(1) { status_line(); key=console.inkey(0,10000); if(key=='') continue; switch(key) { /* We're getting all the CTRL keys here... */ case '\x00': /* CTRL-@ (NULL) */ case '\x01': /* CTRL-A */ break; case '\x02': /* KEY_HOME */ xpos=1; consol...
line[ypos-edit_top+topline].text=line[ypos-edit_top+topline].text.substr(0,xpos-1) +line[ypos-edit_top+topline].text.substr(xpos); line[ypos-edit_top+topline].attr.splice(xpos-1,1); unwrap_line(ypos-edit_top+topline); redraw_line(ypos-edit_top+topline);
last_xpos=-1; if(xpos>=line[ypos].text.length) line[ypos].hardcr=false; line[ypos].text=line[ypos].text.substr(0,xpos) +line[ypos].text.substr(xpos+1); line[ypos].attr=line[ypos].attr.substr(0,xpos) +line[ypos].attr.substr(xpos+1); if(!rewrap()) draw_line(ypos,xpos); set_cursor();
function edit(){ var key; console.gotoxy(xpos,ypos); while(1) { status_line(); key=console.inkey(0,10000); if(key=='') continue; switch(key) { /* We're getting all the CTRL keys here... */ case '\x00': /* CTRL-@ (NULL) */ case '\x01': /* CTRL-A */ break; case '\x02': /* KEY_HOME */ xpos=1; consol...
line[ypos-edit_top+topline].text=line[ypos-edit_top+topline].text.substr(0,xpos-1)
line[ypos].text=line[ypos].text.substr(0,xpos)
function edit(){ var key; console.gotoxy(xpos,ypos); while(1) { status_line(); key=console.inkey(0,10000); if(key=='') continue; switch(key) { /* We're getting all the CTRL keys here... */ case '\x00': /* CTRL-@ (NULL) */ case '\x01': /* CTRL-A */ break; case '\x02': /* KEY_HOME */ xpos=1; consol...
+line[ypos-edit_top+topline].text.substr(xpos-1); line[ypos-edit_top+topline].attr.splice(xpos-1,0,curattr); if(line[ypos-edit_top+topline].text.length > 80) { }
+line[ypos].text.substr(xpos); line[ypos].attr=line[ypos].attr.substr(0,xpos) +ascii(curattr) +line[ypos].attr.substr(xpos);
function edit(){ var key; console.gotoxy(xpos,ypos); while(1) { status_line(); key=console.inkey(0,10000); if(key=='') continue; switch(key) { /* We're getting all the CTRL keys here... */ case '\x00': /* CTRL-@ (NULL) */ case '\x01': /* CTRL-A */ break; case '\x02': /* KEY_HOME */ xpos=1; consol...
+line[ypos-edit_top+topline].text.substr(xpos); line[ypos-edit_top+topline].attr[xpos-1]=curattr;
+line[ypos].text.substr(xpos+1); line[ypos].attr=line[ypos].attr.substr(0,xpos) +key +line[ypos].attr.substr(xpos+1);
function edit(){ var key; console.gotoxy(xpos,ypos); while(1) { status_line(); key=console.inkey(0,10000); if(key=='') continue; switch(key) { /* We're getting all the CTRL keys here... */ case '\x00': /* CTRL-@ (NULL) */ case '\x01': /* CTRL-A */ break; case '\x02': /* KEY_HOME */ xpos=1; consol...
if(xpos>80) { xpos=1; xpos=wrap_line(ypos-edit_top+topline); next_line(); } else { if(line[ypos-edit_top+topline].text.length > 79) wrap_line(ypos-edit_top+topline); } redraw_line(ypos-edit_top+topline); console.gotoxy(xpos,ypos);
if(!rewrap()) draw_line(ypos,xpos-1,false); set_cursor();
function edit(){ var key; console.gotoxy(xpos,ypos); while(1) { status_line(); key=console.inkey(0,10000); if(key=='') continue; switch(key) { /* We're getting all the CTRL keys here... */ case '\x00': /* CTRL-@ (NULL) */ case '\x01': /* CTRL-A */ break; case '\x02': /* KEY_HOME */ xpos=1; consol...
console.gotoxy(1,ypos);
function edit(){ var key; console.gotoxy(xpos,ypos); while(1) { key=console.inkey(1000); if(key=='') continue; switch(key) { /* We're getting all the CTRL keys here... */ case '\x00': case '\x01': break; case '\x02': /* KEY_HOME */ xpos=1; console.gotoxy(xpos,ypos); break; case '\x03': case...
var dstUri = flowHelper.getDocumentHelper(cocoon).getSourceUri(flowHelper.getPageEnvelope(cocoon).getDocument());
var dstUri = flowHelper.getPageEnvelope(cocoon).getDocument().getSourceURI();
function editDocument() { try { var flowHelper = new FlowHelper(); var resolver = cocoon.getComponent(SourceResolver.ROLE); var dstUri = flowHelper.getDocumentHelper(cocoon).getSourceUri(flowHelper.getPageEnvelope(cocoon).getDocument()); SourceUtil.copy(resolver, cocoon.parameters...
cocoon.log.error("Can not edit doucment.", exception);
cocoon.log.error("Can not edit doucment.", exception.toString());
function editDocument() { try { var flowHelper = new FlowHelper(); var resolver = cocoon.getComponent(SourceResolver.ROLE); var dstUri = flowHelper.getDocumentHelper(cocoon).getSourceUri(flowHelper.getPageEnvelope(cocoon).getDocument()); SourceUtil.copy(resolver, cocoon.parameters...
if (cocoon.log.isDebugEnabled()) { cocoon.log.debug("edit-document.js::editDocument() after usecase.execute(), hasErrors ? " + usecase.hasErrors()); }
function editDocument() { var usecaseName = cocoon.parameters["lenya.usecase"]; var usecaseResolver; var usecase; try { usecaseResolver = cocoon.getComponent("org.apache.lenya.cms.usecase.UsecaseResolver"); usecase = usecaseResolver.resolve(usecaseName); var flowHelper = cocoon....
cocoon.log.error("Can not edit doucment.", exception.toString());
cocoon.log.error("Can not edit document.", exception.toString());
function editDocument() { try { var flowHelper = new FlowHelper(); var resolver = cocoon.getComponent(SourceResolver.ROLE); var dstUri = flowHelper.getPageEnvelope(cocoon).getDocument().getSourceURI(); SourceUtil.copy(resolver, cocoon.parameters["sourceUri"], dstUri, _getParameter...
if (usecase.getErrorMessages().isEmpty()) {
if (!usecase.getErrorMessages().isEmpty()) { throw new Exception("Saving failed!");
function editDocument() { var usecaseName = cocoon.parameters["lenya.usecase"]; var usecaseResolver; var usecase; try { usecaseResolver = cocoon.getComponent("org.apache.lenya.cms.usecase.UsecaseResolver"); usecase = usecaseResolver.resolve(usecaseName); var flowHelper = cocoon....
usecaseResolver = cocoon.getComponent("org.apache.lenya.cms.usecase.UsecaseResolver"); usecase = usecaseResolver.resolve(usecaseName);
function editDocument() { var usecaseName = cocoon.parameters["lenya.usecase"]; var usecaseResolver; var usecase; try { usecaseResolver = cocoon.getComponent("org.apache.lenya.cms.usecase.UsecaseResolver"); usecase = usecaseResolver.resolve(usecaseName); var flowHelper = cocoon....
usecaseResolver = cocoon.getComponent("org.apache.lenya.cms.usecase.UsecaseResolver"); usecase = usecaseResolver.resolve(sourceUrl, usecaseName);
function editDocument() { var usecaseName = cocoon.parameters["lenya.usecase"]; var usecaseResolver; var usecase; try { usecaseResolver = cocoon.getComponent("org.apache.lenya.cms.usecase.UsecaseResolver"); usecase = usecaseResolver.resolve(usecaseName); var flowHelper = cocoon....
this.setTestCase(new TestCase());
this.setTestCase(new TestCase(), true);
function Editor(window, isSidebar) { this.log.debug("initializing"); this.window = window; window.editor = this; var self = this; this.isSidebar = isSidebar; this.recordFrameTitle = false; this.document = document; this.recordingEnabled = true; this.setOptions(optionsManager.load()); this.loadExtensions(); this.loadSel...
NewWindow('showEditTimerEventWindow?'+xy, 'editTimer', '780', '370', 'no');
NewWindow('showEditTimerEventWindow?'+xy, 'editTimer', '780', '400', 'no');
function editTimerEvent(xy){ NewWindow('showEditTimerEventWindow?'+xy, 'editTimer', '780', '370', 'no');}
NewWindow('/editTimerEvent?'+xy, 'editTimer', '780', '300', 'no');
NewWindow('/editTimerEvent?'+xy, 'editTimer', '780', '350', 'no');
function editTimerEvent(xy){ NewWindow('/editTimerEvent?'+xy, 'editTimer', '780', '300', 'no');}
return event.srcElement || event.currentTarget;
return event.target || event.srcElement;
element: function(event) { return event.srcElement || event.currentTarget; },
element.style[name] = style[name];
var value = style[name]; if (value == null) value = ""; element.style[name] = value;
function elementSetStyle(element, style) { for (var name in style) { element.style[name] = style[name]; }}
for (i = 0; i < node.attributes.length; i++) { var att = node.attributes[i]; if (att.name == 'name' || att.name == 'value' || att.name == 'id' || att.name == 'style' || att.name == 'action' || att.name == 'onclick' || att.name == 'href') { conditions['@' + att.name] = att.value;
if (node.attributes) { for (i = 0; i < node.attributes.length; i++) { var att = node.attributes[i]; if (att.name == 'name' || att.name == 'value' || att.name == 'id' || att.name == 'style' || att.name == 'action' || att.name == 'onclick' || att.name == 'href') { conditions['@' + att.name] = att.value; }
function elementXPath(node, conditions) { var i; for (i = 0; i < node.attributes.length; i++) { var att = node.attributes[i]; if (att.name == 'name' || att.name == 'value' || att.name == 'id' || att.name == 'style' || att.name == 'action' || att.name == 'onclick' || att.name == 'href') { conditions['...
i=finduser(str);
i=bbs.finduser(str);
function email(){ var key; var i; while(1) { if(!(user.settings & USER_EXPERT)) bbs.menu("e-mail"); // async console.putmsg("\r\nyhE-mail: n"); key=get_next_keys("?SRFNUKQ\r"); bbs.log_key(key); switch(key) { case '?': if(user.settings & USER_EXPERT) bbs.menu("e-mail"); break; case 'S': cons...
this.hotkeys=KEY_LEFT+KEY_RIGHT+"\b\x7f\x1b";
this.hotkeys=KEY_LEFT+KEY_RIGHT+"\b\x7f\x1b"+ctrl('O')+ctrl('U')+ctrl('T')+ctrl('K')+ctrl('P');
function Emailmenu(){ var width=24; this.items=new Array(); this.xpos=17; this.ypos=2; this.lpadding="\xb3"; this.rpadding="\xb3"; this.hotkeys=KEY_LEFT+KEY_RIGHT+"\b\x7f\x1b"; this.add(top_bar(width),undefined,undefined,"",""); this.add(format_opt("|Send Mail",width,true),"S",width); this.add("|Read Inbox","R",width);...
if (!MODULES.Exists(mod_name)) {
if (MODULES.Exists(mod_name)) { item = MODULES.Item(mod_name); MODULES.Remove(mod_name); if (item.deps.length) { output += emit_dep_modules(item.deps); }
function emit_dep_modules(module_names){ var i, mod_name, j; var output = ""; for (i in module_names) { mod_name = module_names[i]; if (!MODULES.Exists(mod_name)) { output += emit_module(item); continue; } item = MODULES.Item(mod_name); output += emit_dep_modules(item.deps); } return output;}
continue;
function emit_dep_modules(module_names){ var i, mod_name, j; var output = ""; for (i in module_names) { mod_name = module_names[i]; if (!MODULES.Exists(mod_name)) { output += emit_module(item); continue; } item = MODULES.Item(mod_name); output += emit_dep_modules(item.deps); } return output;}
item = MODULES.Item(mod_name); output += emit_dep_modules(item.deps);
function emit_dep_modules(module_names){ var i, mod_name, j; var output = ""; for (i in module_names) { mod_name = module_names[i]; if (!MODULES.Exists(mod_name)) { output += emit_module(item); continue; } item = MODULES.Item(mod_name); output += emit_dep_modules(item.deps); } return output;}
emptyFunction: function() {}
emptyFunction: function() {},
emptyFunction: function() {}
element.disabled = 'true';
element.disabled = false;
enable: function(element) { element = $(element); element.blur(); element.disabled = 'true'; return element; }
text = text.replace(/&(nbsp|amp|quot|apos|lt|gt|\d+|x\d+);/g, '&amp;$1;');
text = text.replace(/&(nbsp|amp|quot|apos|lt|gt|\d+|x\d+)(;|\W)/g, '&amp;$1$2');
function encodeText(text) { var escapeXml = options.escapeXmlEntities; if (escapeXml == 'always') { // & -> &amp; // &amp; -> &amp;amp; // &quot; -> &amp;quot; // &nbsp; -> &nbsp; text = text.replace(/&(\w+);/g, '%%tmp_entity%%$1%%'); text = text.replace(/%%tmp_entity%%(amp|apos|quot|lt|gt)%%/g, '&$1;'); text = ...
text = text.replace(/\n/g, "<br />");
function encodeText(text) { var escapeXml = options.escapeXmlEntities; if (escapeXml == 'always') { // & -> &amp; // &amp; -> &amp;amp; // &quot; -> &amp;quot; // &nbsp; -> &nbsp; text = text.replace(/&(\w+);/g, '%%tmp_entity%%$1%%'); text = text.replace(/%%tmp_entity%%(amp|apos|quot|lt|gt)%%/g, '&$1;'); text = ...
text = text.replace(/ {2,}/g, function(str) { var result = ''; for (var i = 0; i < str.length; i++) { result += '&nbsp;'; } return result; });
function encodeText(text) { var escapeXml = options.escapeXmlEntities; if (escapeXml == 'always') { // & -> &amp; // &amp; -> &amp;amp; // &quot; -> &amp;quot; // &nbsp; -> &nbsp; text = text.replace(/&(\w+);/g, '%%tmp_entity%%$1%%'); text = text.replace(/%%tmp_entity%%(amp|apos|quot|lt|gt)%%/g, '&$1;'); text = ...
document.removeEvent('mousemove', this.move.bindWithEvent(this)); document.removeEvent('mouseup', this.end.bind(this, el));
document.removeEvent('mousemove', this.bound.move); document.removeEvent('mouseup', this.bound.end);
end: function(el){ document.removeEvent('mousemove', this.move.bindWithEvent(this)); document.removeEvent('mouseup', this.end.bind(this, el)); this.fireEvent('onComplete', el); }
var sz = compute_height() + "px";
var id = (win.inFrame) ? iframe : around; var tmp = document.getElementById(id); var sz = compute_height() + "px"; tmp.style.display= "block"; tmp.style.height = sz;
function end_resize(w, h) { var sz = compute_height() + "px"; el.style.height = sz; if (win.inFrame) { var ifrm = document.getElementById(iframe); ifrm.style.display= "block"; ifrm.style.height = sz; el.style.opacity= 1; } }
if (win.inFrame) { var ifrm = document.getElementById(iframe); ifrm.style.display= "block"; ifrm.style.height = sz; el.style.opacity= 1; }
el.style.opacity= 1;
function end_resize(w, h) { var sz = compute_height() + "px"; el.style.height = sz; if (win.inFrame) { var ifrm = document.getElementById(iframe); ifrm.style.display= "block"; ifrm.style.height = sz; el.style.opacity= 1; } }
Draggables.notify('onEnd');
Draggables.notify('onEnd', this);
endDrag: function(event) { if(this.active && this.dragging) { this.active = false; this.dragging = false; Droppables.fire(event, this.element); Draggables.notify('onEnd'); if(this.options.revert && this.options.reverteffect) { this.options.reverteffect(this.element, ...
if(this.options.revert && this.options.reverteffect) {
var revert = this.options.revert; if(revert && typeof revert == 'function') revert = revert(this.element); if(revert && this.options.reverteffect) {
endDrag: function(event) { if(this.active && this.dragging) { this.active = false; this.dragging = false; Droppables.fire(event, this.element); Draggables.notify('onEnd'); if(this.options.revert && this.options.reverteffect) { this.options.reverteffect(this.element, ...
new Effect2.Opacity(element, {duration:0.2, from:0.7, to:1.0});
new Effect.Opacity(element, {duration:0.2, from:0.7, to:1.0});
endeffect: function(element) { new Effect2.Opacity(element, {duration:0.2, from:0.7, to:1.0}); },