rem
stringlengths 0
126k
| add
stringlengths 0
441k
| context
stringlengths 15
136k
|
---|---|---|
var paned, tr, td1, td2, cursor, div; | var paned, tbody, tr, td1, td2, cursor, div; | function hop_make_vpaned( parent, id, fraction, pan1, pan2 ) { var document = parent.ownerDocument || parent.document; var paned, tr, td1, td2, cursor, div; // the paned paned = document.createElement( "table" ); paned.className = "hop-vpaned" paned.id = id; paned.onresize = undefined; paned.parent = parent; paned.width = "100%"; paned.height = "100%"; parent.appendChild( paned ); // the table row tr = document.createElement( "tr" ); paned.appendChild( tr ); // the table cells td1 = document.createElement( "td" ); cursor = document.createElement( "td" ); td2 = document.createElement( "td" ); tr.appendChild( td1 ); tr.appendChild( cursor ); tr.appendChild( td2 ); td1.height = "100%"; cursor.height = "100%"; td2.height = "100%"; td1.className = "hop-vpaned-pan"; td2.className = "hop-vpaned-pan"; cursor.className = "hop-paned-cursor"; div = document.createElement( "div" ); div.className = "hop-paned-cursoroff"; cursor.appendChild( div ); // cursor event handling var mousemove = function( e ) { hop_vpaned_mousemove( e, paned ); }; var delmousemove = function( e ) { document.removeEventListener( "mousemove", mousemove, true ); }; cursor.onmouseover = function( e ) { div.className = "hop-paned-cursoron"; }; cursor.onmouseout = function( e ) { div.className = "hop-paned-cursoroff"; }; cursor.onmousedown = function( e ) { document.addEventListener( "mousemove", mousemove, true ); document.addEventListener( "mouseup", delmousemove, true ); document.addEventListener( "onblur", delmousemove, true ); } // re-parent the two pans parent.removeChild( pan1 ); parent.removeChild( pan2 ); paned.td1 = td1; paned.td2 = td2; paned.cursor = cursor; td1.appendChild( pan1 ); td2.appendChild( pan2 ); pan1.style.visibility = "visible"; pan2.style.visibility = "visible"; paned.pan1 = pan1; paned.pan2 = pan2; paned.fraction = -1; hop_vpaned_fraction_set( paned, fraction ); return paned;} |
paned.appendChild( tr ); | tbody.appendChild( tr ); | function hop_make_vpaned( parent, id, fraction, pan1, pan2 ) { var document = parent.ownerDocument || parent.document; var paned, tr, td1, td2, cursor, div; // the paned paned = document.createElement( "table" ); paned.className = "hop-vpaned" paned.id = id; paned.onresize = undefined; paned.parent = parent; paned.width = "100%"; paned.height = "100%"; parent.appendChild( paned ); // the table row tr = document.createElement( "tr" ); paned.appendChild( tr ); // the table cells td1 = document.createElement( "td" ); cursor = document.createElement( "td" ); td2 = document.createElement( "td" ); tr.appendChild( td1 ); tr.appendChild( cursor ); tr.appendChild( td2 ); td1.height = "100%"; cursor.height = "100%"; td2.height = "100%"; td1.className = "hop-vpaned-pan"; td2.className = "hop-vpaned-pan"; cursor.className = "hop-paned-cursor"; div = document.createElement( "div" ); div.className = "hop-paned-cursoroff"; cursor.appendChild( div ); // cursor event handling var mousemove = function( e ) { hop_vpaned_mousemove( e, paned ); }; var delmousemove = function( e ) { document.removeEventListener( "mousemove", mousemove, true ); }; cursor.onmouseover = function( e ) { div.className = "hop-paned-cursoron"; }; cursor.onmouseout = function( e ) { div.className = "hop-paned-cursoroff"; }; cursor.onmousedown = function( e ) { document.addEventListener( "mousemove", mousemove, true ); document.addEventListener( "mouseup", delmousemove, true ); document.addEventListener( "onblur", delmousemove, true ); } // re-parent the two pans parent.removeChild( pan1 ); parent.removeChild( pan2 ); paned.td1 = td1; paned.td2 = td2; paned.cursor = cursor; td1.appendChild( pan1 ); td2.appendChild( pan2 ); pan1.style.visibility = "visible"; pan2.style.visibility = "visible"; paned.pan1 = pan1; paned.pan2 = pan2; paned.fraction = -1; hop_vpaned_fraction_set( paned, fraction ); return paned;} |
function hop_node_eval( node ) { | function hop_node_eval( node, text ) { | function hop_node_eval( node ) { var res; var scripts = node.getElementsByTagName( "script" ); for ( var j = 0; j < scripts.length; j++ ) { if( scripts[ j ].childNodes.length > 0 ) { res = eval( scripts[ j ].childNodes[ 0 ].nodeValue ); } } return res;} |
for ( var j = 0; j < scripts.length; j++ ) { if( scripts[ j ].childNodes.length > 0 ) { res = eval( scripts[ j ].childNodes[ 0 ].nodeValue ); | if( scripts.length > 0 ) { for ( var j = 0; j < scripts.length; j++ ) { if( scripts[ j ].childNodes.length > 0 ) { res = eval( scripts[ j ].childNodes[ 0 ].nodeValue ); } } } else { var script = text.match( /<script[^>]*>/i ); if( script != null ) { var start = script.index + script[ 0 ].length; var end = text.search( /<[/]script>/i ); if( (end != null) && (end > start) ) { res = eval( text.substr( start, end - start ) ); } | function hop_node_eval( node ) { var res; var scripts = node.getElementsByTagName( "script" ); for ( var j = 0; j < scripts.length; j++ ) { if( scripts[ j ].childNodes.length > 0 ) { res = eval( scripts[ j ].childNodes[ 0 ].nodeValue ); } } return res;} |
var np = ((notepad instanceof HTMLElement) || (notepad instanceof Object && notepad.propertyIsEnumerable( "innerHTML" ))) | var np = hop_isHTMLElement( notepad ) | function hop_notepad_inline( notepad, tab ) { var found = 0; var np = ((notepad instanceof HTMLElement) || (notepad instanceof Object && notepad.propertyIsEnumerable( "innerHTML" ))) ? notepad : document.getElementById( notepad ); var ta = ((tab instanceof HTMLElement) || (tab instanceof Object && tab.propertyIsEnumerable( "innerHTML" ))) ? tab : document.getElementById( tab ); var i; for( i = 0; i < np.childNodes.length; i++ ) { var c = np.childNodes[ i ]; var c2; if( c.className == "hop-notepad-tabs" ) { for( j = 0; j < c.childNodes.length; j++ ) { c2 = c.childNodes[ j ]; if( c2 == ta ) { c2.className = "hop-nptab-active"; found = j; } else { c2.className = "hop-nptab-inactive"; } } } if( c.className == "hop-notepad-body" ) { for( j = 0; j < c.childNodes.length; j++ ) { c2 = c.childNodes[ j ]; if( j == found ) { c2.style.display = "block"; } else { c2.style.display = "none"; } } } }} |
var ta = ((tab instanceof HTMLElement) || (tab instanceof Object && tab.propertyIsEnumerable( "innerHTML" ))) | var ta = hop_isHTMLElement( tab ) | function hop_notepad_inline( notepad, tab ) { var found = 0; var np = ((notepad instanceof HTMLElement) || (notepad instanceof Object && notepad.propertyIsEnumerable( "innerHTML" ))) ? notepad : document.getElementById( notepad ); var ta = ((tab instanceof HTMLElement) || (tab instanceof Object && tab.propertyIsEnumerable( "innerHTML" ))) ? tab : document.getElementById( tab ); var i; for( i = 0; i < np.childNodes.length; i++ ) { var c = np.childNodes[ i ]; var c2; if( c.className == "hop-notepad-tabs" ) { for( j = 0; j < c.childNodes.length; j++ ) { c2 = c.childNodes[ j ]; if( c2 == ta ) { c2.className = "hop-nptab-active"; found = j; } else { c2.className = "hop-nptab-inactive"; } } } if( c.className == "hop-notepad-body" ) { for( j = 0; j < c.childNodes.length; j++ ) { c2 = c.childNodes[ j ]; if( j == found ) { c2.style.display = "block"; } else { c2.style.display = "none"; } } } }} |
var np = (notepad instanceof HTMLElement) ? notepad : document.getElementById( notepad ); var ta = (tab instanceof HTMLElement) ? tab : document.getElementById( tab ); | var np = ((notepad instanceof HTMLElement) || (notepad instanceof Object && notepad.propertyIsEnumerable( "innerHTML" ))) ? notepad : document.getElementById( notepad ); var ta = ((tab instanceof HTMLElement) || (tab instanceof Object && tab.propertyIsEnumerable( "innerHTML" ))) ? tab : document.getElementById( tab ); | function hop_notepad_inline( notepad, tab ) { var found = 0; var np = (notepad instanceof HTMLElement) ? notepad : document.getElementById( notepad ); var ta = (tab instanceof HTMLElement) ? tab : document.getElementById( tab ); var i; for( i = 0; i < np.childNodes.length; i++ ) { var c = np.childNodes[ i ]; var c2; if( c.className == "hop-notepad-tabs" ) { for( j = 0; j < c.childNodes.length; j++ ) { c2 = c.childNodes[ j ]; if( c2 == ta ) { c2.className = "hop-nptab-active"; found = j; } else { c2.className = "hop-nptab-inactive"; } } } if( c.className == "hop-notepad-body" ) { for( j = 0; j < c.childNodes.length; j++ ) { c2 = c.childNodes[ j ]; if( j == found ) { c2.style.display = "block"; } else { c2.style.display = "none"; } } } }} |
function hop_notepad_inline( tab, ghost, notepad ) { var np = document.getElementById( notepad ); | function hop_notepad_inline( notepad, tab ) { var found = 0; var np = (notepad instanceof HTMLElement) ? notepad : document.getElementById( notepad ); var ta = (tab instanceof HTMLElement) ? tab : document.getElementById( tab ); var i; | function hop_notepad_inline( tab, ghost, notepad ) { var np = document.getElementById( notepad ); for( i = 0; i < np.childNodes.length; i++ ) { var c = np.childNodes[ i ]; var c2; if( c.className == "hop-notepad-tabs" ) { for( j = 0; j < c.childNodes.length; j++ ) { c2 = c.childNodes[ j ]; if( c2.id == tab ) { c2.className = "hop-nptab-active"; } else { c2.className = "hop-nptab-inactive"; } } } if( c.className == "hop-notepad-body" ) { for( j = 0; j < c.childNodes.length; j++ ) { c2 = c.childNodes[ j ]; if( c2.id == ghost ) { c2.style.display = "block"; } else { c2.style.display = "none"; } } } }} |
if( c2.id == tab ) { | if( c2 == ta ) { | function hop_notepad_inline( tab, ghost, notepad ) { var np = document.getElementById( notepad ); for( i = 0; i < np.childNodes.length; i++ ) { var c = np.childNodes[ i ]; var c2; if( c.className == "hop-notepad-tabs" ) { for( j = 0; j < c.childNodes.length; j++ ) { c2 = c.childNodes[ j ]; if( c2.id == tab ) { c2.className = "hop-nptab-active"; } else { c2.className = "hop-nptab-inactive"; } } } if( c.className == "hop-notepad-body" ) { for( j = 0; j < c.childNodes.length; j++ ) { c2 = c.childNodes[ j ]; if( c2.id == ghost ) { c2.style.display = "block"; } else { c2.style.display = "none"; } } } }} |
if( c2.id == ghost ) { | if( j == found ) { | function hop_notepad_inline( tab, ghost, notepad ) { var np = document.getElementById( notepad ); for( i = 0; i < np.childNodes.length; i++ ) { var c = np.childNodes[ i ]; var c2; if( c.className == "hop-notepad-tabs" ) { for( j = 0; j < c.childNodes.length; j++ ) { c2 = c.childNodes[ j ]; if( c2.id == tab ) { c2.className = "hop-nptab-active"; } else { c2.className = "hop-nptab-inactive"; } } } if( c.className == "hop-notepad-body" ) { for( j = 0; j < c.childNodes.length; j++ ) { c2 = c.childNodes[ j ]; if( c2.id == ghost ) { c2.style.display = "block"; } else { c2.style.display = "none"; } } } }} |
var tabs = np.childNodes[ 1 ]; var bodies = np.childNodes[ 2 ]; | var tabs = null; var bodies = null; var i; for( i = 0; i < np.childNodes.length; i++ ) { if( np.childNodes[ i ].className == "hop-notepad-body" ) { bodies = np.childNodes[ i ]; if( tabs != null ) break; } if( np.childNodes[ i ].className == "hop-notepad-tabs" ) { tabs = np.childNodes[ i ]; if( bodies !=null ) break; } } | function hop_notepad_inner_select( np, to ) { var tabs = np.childNodes[ 1 ]; var bodies = np.childNodes[ 2 ]; /* at creation time, tab 0 is active */ if( np.active_tab == undefined ) np.active_tab = 0; /* invoke remote tab */ if( tabs.childNodes[ to ].lang == "delay" ) { hop( np.onkeyup()( to ), function( http ) { hop_replace_inner( bodies.childNodes[ to ] )( http ); hop_notepad_inner_toggle( np, to, tabs, bodies ); } ); } else { hop_notepad_inner_toggle( np, to, tabs, bodies ); }} |
tabs.childNodes[ np.active_tab ].className = "hop-nptab-inactive"; | tabs.childNodes[ np.active_tab ].className = "hop-nptab-inactive hop-notepad-nptab"; | function hop_notepad_inner_toggle( np, to, tabs, bodies ) { /* disactive last selected tab */ tabs.childNodes[ np.active_tab ].className = "hop-nptab-inactive"; bodies.childNodes[ np.active_tab ].style.display = "none"; /* active the new selected tab */ tabs.childNodes[ to ].className = "hop-nptab-active"; bodies.childNodes[ to ].style.display = "block"; /* store for next time */ np.active_tab = to;} |
tabs.childNodes[ to ].className = "hop-nptab-active"; | tabs.childNodes[ to ].className = "hop-nptab-active hop-notepad-nptab"; | function hop_notepad_inner_toggle( np, to, tabs, bodies ) { /* disactive last selected tab */ tabs.childNodes[ np.active_tab ].className = "hop-nptab-inactive"; bodies.childNodes[ np.active_tab ].style.display = "none"; /* active the new selected tab */ tabs.childNodes[ to ].className = "hop-nptab-active"; bodies.childNodes[ to ].style.display = "block"; /* store for next time */ np.active_tab = to;} |
tabs.childNodes[ np.active_tab ].className = "hop-nptab-inactive hop-nptab"; | tabs.childNodes[ np.active_tab ].className = " hop-nptab hop-nptab-inactive"; | function hop_notepad_inner_toggle( np, to, tabs, bodies ) { /* disactive last selected tab */ tabs.childNodes[ np.active_tab ].className = "hop-nptab-inactive hop-nptab"; bodies.childNodes[ np.active_tab ].style.display = "none"; /* active the new selected tab */ tabs.childNodes[ to ].className = "hop-nptab-active hop-nptab"; bodies.childNodes[ to ].style.display = "block"; /* store for next time */ np.active_tab = to;} |
tabs.childNodes[ to ].className = "hop-nptab-active hop-nptab"; | tabs.childNodes[ to ].className = "hop-nptab hop-nptab-active"; | function hop_notepad_inner_toggle( np, to, tabs, bodies ) { /* disactive last selected tab */ tabs.childNodes[ np.active_tab ].className = "hop-nptab-inactive hop-nptab"; bodies.childNodes[ np.active_tab ].style.display = "none"; /* active the new selected tab */ tabs.childNodes[ to ].className = "hop-nptab-active hop-nptab"; bodies.childNodes[ to ].style.display = "block"; /* store for next time */ np.active_tab = to;} |
tabs.childNodes[ np.active_tab ].className = "hop-nptab-inactive hop-notepad-nptab"; | tabs.childNodes[ np.active_tab ].className = "hop-nptab-inactive hop-nptab"; | function hop_notepad_inner_toggle( np, to, tabs, bodies ) { /* disactive last selected tab */ tabs.childNodes[ np.active_tab ].className = "hop-nptab-inactive hop-notepad-nptab"; bodies.childNodes[ np.active_tab ].style.display = "none"; /* active the new selected tab */ tabs.childNodes[ to ].className = "hop-nptab-active hop-notepad-nptab"; bodies.childNodes[ to ].style.display = "block"; /* store for next time */ np.active_tab = to;} |
tabs.childNodes[ to ].className = "hop-nptab-active hop-notepad-nptab"; | tabs.childNodes[ to ].className = "hop-nptab-active hop-nptab"; | function hop_notepad_inner_toggle( np, to, tabs, bodies ) { /* disactive last selected tab */ tabs.childNodes[ np.active_tab ].className = "hop-nptab-inactive hop-notepad-nptab"; bodies.childNodes[ np.active_tab ].style.display = "none"; /* active the new selected tab */ tabs.childNodes[ to ].className = "hop-nptab-active hop-notepad-nptab"; bodies.childNodes[ to ].style.display = "block"; /* store for next time */ np.active_tab = to;} |
var np = ((notepad instanceof HTMLElement) || (notepad instanceof Object && notepad.propertyIsEnumerable( "innerHTML" ))) | var np = hop_isHTMLElement( notepad ) | function hop_notepad_remote( service, notepad, tab ) { var success = function( http ) { if( http.responseText != null ) { var found = 0; var np = ((notepad instanceof HTMLElement) || (notepad instanceof Object && notepad.propertyIsEnumerable( "innerHTML" ))) ? notepad : document.getElementById( notepad ); var ta = ((tab instanceof HTMLElement) || (tab instanceof Object && tab.propertyIsEnumerable( "innerHTML" ))) ? tab : document.getElementById( tab ); var i; for( i = 0; i < np.childNodes.length; i++ ) { var c = np.childNodes[ i ]; if( c.className == "hop-notepad-tabs" ) { for( j = 0; j < c.childNodes.length; j++ ) { var c2 = c.childNodes[ j ]; if( c2 == ta ) { c2.className = "hop-nptab-active"; found = j; } else { c2.className = "hop-nptab-inactive"; } } } if( c.className == "hop-notepad-body" ) { hop_replace_inner( c )( http ); } } } } if( !notepad.remote_service ) notepad.remote_service = service; hop( service( tab ), success );} |
var ta = ((tab instanceof HTMLElement) || (tab instanceof Object && tab.propertyIsEnumerable( "innerHTML" ))) | var ta = hop_isHTMLElement( tab ) | function hop_notepad_remote( service, notepad, tab ) { var success = function( http ) { if( http.responseText != null ) { var found = 0; var np = ((notepad instanceof HTMLElement) || (notepad instanceof Object && notepad.propertyIsEnumerable( "innerHTML" ))) ? notepad : document.getElementById( notepad ); var ta = ((tab instanceof HTMLElement) || (tab instanceof Object && tab.propertyIsEnumerable( "innerHTML" ))) ? tab : document.getElementById( tab ); var i; for( i = 0; i < np.childNodes.length; i++ ) { var c = np.childNodes[ i ]; if( c.className == "hop-notepad-tabs" ) { for( j = 0; j < c.childNodes.length; j++ ) { var c2 = c.childNodes[ j ]; if( c2 == ta ) { c2.className = "hop-nptab-active"; found = j; } else { c2.className = "hop-nptab-inactive"; } } } if( c.className == "hop-notepad-body" ) { hop_replace_inner( c )( http ); } } } } if( !notepad.remote_service ) notepad.remote_service = service; hop( service( tab ), success );} |
var np = (notepad instanceof HTMLElement) ? notepad : document.getElementById( notepad ); var ta = (tab instanceof HTMLElement) ? tab : document.getElementById( tab ); | var np = ((notepad instanceof HTMLElement) || (notepad instanceof Object && notepad.propertyIsEnumerable( "innerHTML" ))) ? notepad : document.getElementById( notepad ); var ta = ((tab instanceof HTMLElement) || (tab instanceof Object && tab.propertyIsEnumerable( "innerHTML" ))) ? tab : document.getElementById( tab ); | function hop_notepad_remote( service, notepad, tab ) { var success = function( http ) { if( http.responseText != null ) { var found = 0; var np = (notepad instanceof HTMLElement) ? notepad : document.getElementById( notepad ); var ta = (tab instanceof HTMLElement) ? tab : document.getElementById( tab ); var i; for( i = 0; i < np.childNodes.length; i++ ) { var c = np.childNodes[ i ]; if( c.className == "hop-notepad-tabs" ) { for( j = 0; j < c.childNodes.length; j++ ) { var c2 = c.childNodes[ j ]; if( c2 == ta ) { c2.className = "hop-nptab-active"; found = j; } else { c2.className = "hop-nptab-inactive"; } } } if( c.className == "hop-notepad-body" ) { hop_replace_inner( c )( http ); } } } } if( !notepad.remote_service ) notepad.remote_service = service; hop( service( tab ), success );} |
function hop_notepad_remote( service, tab, ghost, notepad ) { | function hop_notepad_remote( service, notepad, tab ) { | function hop_notepad_remote( service, tab, ghost, notepad ) { var success = function( http ) { if( http.responseText != null ) { var np = document.getElementById( notepad ); for( i = 0; i < np.childNodes.length; i++ ) { var c = np.childNodes[ i ]; if( c.className == "hop-notepad-tabs" ) { for( j = 0; j < c.childNodes.length; j++ ) { var c2 = c.childNodes[ j ]; if( c2.id == tab ) { c2.className = "hop-nptab-active"; } else { c2.className = "hop-nptab-inactive"; } } } if( c.className == "hop-notepad-body" ) { hop_replace_inner( c )( http ); } } } } hop( service( tab ), success);} |
var np = document.getElementById( notepad ); | var found = 0; var np = (notepad instanceof HTMLElement) ? notepad : document.getElementById( notepad ); var ta = (tab instanceof HTMLElement) ? tab : document.getElementById( tab ); var i; | function hop_notepad_remote( service, tab, ghost, notepad ) { var success = function( http ) { if( http.responseText != null ) { var np = document.getElementById( notepad ); for( i = 0; i < np.childNodes.length; i++ ) { var c = np.childNodes[ i ]; if( c.className == "hop-notepad-tabs" ) { for( j = 0; j < c.childNodes.length; j++ ) { var c2 = c.childNodes[ j ]; if( c2.id == tab ) { c2.className = "hop-nptab-active"; } else { c2.className = "hop-nptab-inactive"; } } } if( c.className == "hop-notepad-body" ) { hop_replace_inner( c )( http ); } } } } hop( service( tab ), success);} |
if( c2.id == tab ) { | if( c2 = ta ) { | function hop_notepad_remote( service, tab, ghost, notepad ) { var success = function( http ) { if( http.responseText != null ) { var np = document.getElementById( notepad ); for( i = 0; i < np.childNodes.length; i++ ) { var c = np.childNodes[ i ]; if( c.className == "hop-notepad-tabs" ) { for( j = 0; j < c.childNodes.length; j++ ) { var c2 = c.childNodes[ j ]; if( c2.id == tab ) { c2.className = "hop-nptab-active"; } else { c2.className = "hop-nptab-inactive"; } } } if( c.className == "hop-notepad-body" ) { hop_replace_inner( c )( http ); } } } } hop( service( tab ), success);} |
hop( service( tab ), success); | if( !notepad.remote_service ) notepad.remote_service = service; hop( service( tab ), success ); | function hop_notepad_remote( service, tab, ghost, notepad ) { var success = function( http ) { if( http.responseText != null ) { var np = document.getElementById( notepad ); for( i = 0; i < np.childNodes.length; i++ ) { var c = np.childNodes[ i ]; if( c.className == "hop-notepad-tabs" ) { for( j = 0; j < c.childNodes.length; j++ ) { var c2 = c.childNodes[ j ]; if( c2.id == tab ) { c2.className = "hop-nptab-active"; } else { c2.className = "hop-nptab-inactive"; } } } if( c.className == "hop-notepad-body" ) { hop_replace_inner( c )( http ); } } } } hop( service( tab ), success);} |
var notepad = ((id1 instanceof HTMLElement) || (id1 instanceof Object && id1.propertyIsEnumerable( "innerHTML" ))) | var notepad = hop_isHTMLElement( id1 ) | function hop_notepad_select( id1, id2 ) { var notepad = ((id1 instanceof HTMLElement) || (id1 instanceof Object && id1.propertyIsEnumerable( "innerHTML" ))) ? id1 : document.getElementById( id1 ); var tab = ((id2 instanceof HTMLElement) || (id2 instanceof Object && id2.propertyIsEnumerable( "innerHTML" ))) ? id2 : document.getElementById( id2 ); if( notepad.remote_service != null ) { hop_notepad_remote( notepad.remote_service, notepad, tab ); } else { hop_notepad_inline( notepad, tab ); }} |
var tab = ((id2 instanceof HTMLElement) || (id2 instanceof Object && id2.propertyIsEnumerable( "innerHTML" ))) | var tab = hop_isHTMLElement( id2 ) | function hop_notepad_select( id1, id2 ) { var notepad = ((id1 instanceof HTMLElement) || (id1 instanceof Object && id1.propertyIsEnumerable( "innerHTML" ))) ? id1 : document.getElementById( id1 ); var tab = ((id2 instanceof HTMLElement) || (id2 instanceof Object && id2.propertyIsEnumerable( "innerHTML" ))) ? id2 : document.getElementById( id2 ); if( notepad.remote_service != null ) { hop_notepad_remote( notepad.remote_service, notepad, tab ); } else { hop_notepad_inline( notepad, tab ); }} |
var notepad = (id1 instanceof HTMLElement) ? id1 : document.getElementById( id1 ); var tab = (id2 instanceof HTMLElement) ? id2 : document.getElementById( id2 ); | var notepad = ((id1 instanceof HTMLElement) || (id1 instanceof Object && id1.propertyIsEnumerable( "innerHTML" ))) ? id1 : document.getElementById( id1 ); var tab = ((id2 instanceof HTMLElement) || (id2 instanceof Object && id2.propertyIsEnumerable( "innerHTML" ))) ? id2 : document.getElementById( id2 ); | function hop_notepad_select( id1, id2 ) { var notepad = (id1 instanceof HTMLElement) ? id1 : document.getElementById( id1 ); var tab = (id2 instanceof HTMLElement) ? id2 : document.getElementById( id2 ); if( notepad.remote_service != null ) { hop_notepad_remote( notepad.remote_service, notepad, tab ); } else { hop_notepad_inline( notepad, tab ); }} |
if (win.inFrame) { document.getElementById(iframe).style.display= "none"; el.style.opacity= 0.8; } | el.style.opacity= 0.8; | function hop_open_float_window(serv, id, x, y){ var win = document.getElementById(id); var h = document.getElementById(id + "-handle"); var el = document.getElementById(id + "-content"); var iframe = id + "-frame"; function change_style() { win.style.display = "block"; win.style.left = x; win.style.top = y; win.style.zIndex = ++HopDrag.zIndex; } function compute_height() { var shadow_height = 8; return win.offsetHeight - h.offsetHeight - shadow_height; } function start_resize(w, h) { el.style.overflow = "auto"; if (win.inFrame) { document.getElementById(iframe).style.display= "none"; el.style.opacity= 0.8; } } function resize(w, h) { el.style.setProperty("height", compute_height() +"px", ""); el.style.setProperty("overflow", "auto", ""); } 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; } } /* Set the resize functions */ win.onResizeStart = start_resize; win.onResize = resize; win.onResizeEnd = end_resize;// if (serv == null) {// change_style();// return// } if (!win.inFrame) { hop(serv, function( http ) { if (http.responseText != null) { el.innerHTML = http.responseText; hop_js_eval( http ); change_style(); } }); } else { win.onDragStart = function(x, y) { document.getElementById(iframe).style.display= "none"; el.style.setProperty("height", compute_height()+"px", ""); /* el.style.opacity= 0.8; */ } win.onDragEnd = function(x, y) { document.getElementById(iframe).style.display= "block"; /* el.style.opacity= 1; */ } change_style(); el.innerHTML= "<iframe class=hop-float-iframe id='" + iframe + "' " + "src='" + serv + "' " + "' height='" + compute_height() + "'></iframe>"; }} |
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 hop_open_float_window(serv, id, x, y){ var win = document.getElementById(id); var h = document.getElementById(id + "-handle"); var el = document.getElementById(id + "-content"); var iframe = id + "-frame"; function change_style() { win.style.display = "block"; win.style.left = x; win.style.top = y; win.style.zIndex = ++HopDrag.zIndex; } function compute_height() { var shadow_height = 8; return win.offsetHeight - h.offsetHeight - shadow_height; } function start_resize(w, h) { el.style.overflow = "auto"; if (win.inFrame) { document.getElementById(iframe).style.display= "none"; el.style.opacity= 0.8; } } function resize(w, h) { el.style.setProperty("height", compute_height() +"px", ""); el.style.setProperty("overflow", "auto", ""); } 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; } } /* Set the resize functions */ win.onResizeStart = start_resize; win.onResize = resize; win.onResizeEnd = end_resize;// if (serv == null) {// change_style();// return// } if (!win.inFrame) { hop(serv, function( http ) { if (http.responseText != null) { el.innerHTML = http.responseText; hop_js_eval( http ); change_style(); } }); } else { win.onDragStart = function(x, y) { document.getElementById(iframe).style.display= "none"; el.style.setProperty("height", compute_height()+"px", ""); /* el.style.opacity= 0.8; */ } win.onDragEnd = function(x, y) { document.getElementById(iframe).style.display= "block"; /* el.style.opacity= 1; */ } change_style(); el.innerHTML= "<iframe class=hop-float-iframe id='" + iframe + "' " + "src='" + serv + "' " + "' height='" + compute_height() + "'></iframe>"; }} |
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 hop_open_float_window(serv, id, x, y){ var win = document.getElementById(id); var h = document.getElementById(id + "-handle"); var el = document.getElementById(id + "-content"); var iframe = id + "-frame"; function change_style() { win.style.display = "block"; win.style.left = x; win.style.top = y; win.style.zIndex = ++HopDrag.zIndex; } function compute_height() { var shadow_height = 8; return win.offsetHeight - h.offsetHeight - shadow_height; } function start_resize(w, h) { el.style.overflow = "auto"; if (win.inFrame) { document.getElementById(iframe).style.display= "none"; el.style.opacity= 0.8; } } function resize(w, h) { el.style.setProperty("height", compute_height() +"px", ""); el.style.setProperty("overflow", "auto", ""); } 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; } } /* Set the resize functions */ win.onResizeStart = start_resize; win.onResize = resize; win.onResizeEnd = end_resize;// if (serv == null) {// change_style();// return// } if (!win.inFrame) { hop(serv, function( http ) { if (http.responseText != null) { el.innerHTML = http.responseText; hop_js_eval( http ); change_style(); } }); } else { win.onDragStart = function(x, y) { document.getElementById(iframe).style.display= "none"; el.style.setProperty("height", compute_height()+"px", ""); /* el.style.opacity= 0.8; */ } win.onDragEnd = function(x, y) { document.getElementById(iframe).style.display= "block"; /* el.style.opacity= 1; */ } change_style(); el.innerHTML= "<iframe class=hop-float-iframe id='" + iframe + "' " + "src='" + serv + "' " + "' height='" + compute_height() + "'></iframe>"; }} |
el.innerHTML = http.responseText; | document.getElementById(around).innerHTML = http.responseText; | function hop_open_float_window(serv, id, x, y){ var win = document.getElementById(id); var h = document.getElementById(id + "-handle"); var el = document.getElementById(id + "-content"); var iframe = id + "-frame"; function change_style() { win.style.display = "block"; win.style.left = x; win.style.top = y; win.style.zIndex = ++HopDrag.zIndex; } function compute_height() { var shadow_height = 8; return win.offsetHeight - h.offsetHeight - shadow_height; } function start_resize(w, h) { el.style.overflow = "auto"; if (win.inFrame) { document.getElementById(iframe).style.display= "none"; el.style.opacity= 0.8; } } function resize(w, h) { el.style.setProperty("height", compute_height() +"px", ""); el.style.setProperty("overflow", "auto", ""); } 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; } } /* Set the resize functions */ win.onResizeStart = start_resize; win.onResize = resize; win.onResizeEnd = end_resize;// if (serv == null) {// change_style();// return// } if (!win.inFrame) { hop(serv, function( http ) { if (http.responseText != null) { el.innerHTML = http.responseText; hop_js_eval( http ); change_style(); } }); } else { win.onDragStart = function(x, y) { document.getElementById(iframe).style.display= "none"; el.style.setProperty("height", compute_height()+"px", ""); /* el.style.opacity= 0.8; */ } win.onDragEnd = function(x, y) { document.getElementById(iframe).style.display= "block"; /* el.style.opacity= 1; */ } change_style(); el.innerHTML= "<iframe class=hop-float-iframe id='" + iframe + "' " + "src='" + serv + "' " + "' height='" + compute_height() + "'></iframe>"; }} |
"src='" + "http: | "src='" + serv + "' " + | function hop_open_float_window(serv, id, x, y){ var win = document.getElementById(id); var h = document.getElementById(id + "-handle"); var el = document.getElementById(id + "-content"); function change_style() { win.style.display = "block"; win.style.left = x; win.style.top = y; win.style.zIndex = ++Drag.zIndex; } function compute_height() { var shadow_height = 8; return win.offsetHeight - h.offsetHeight - shadow_height; } if (!win.inFrame) { hop(serv, function( http ) { if (http.responseText != null) { el.innerHTML = http.responseText; hop_js_eval( http ); change_style(); } }); } else { var iframe = id + "-frame"; el.style.setProperty("margin", "0", ""); el.style.setProperty("padding", "0", ""); win.onDragStart = function(x, y) { document.getElementById(iframe).style.display= "none"; el.style.opacity= 0.8; el.style.offsetHeight = 100; } win.onDragEnd = function(x, y) { document.getElementById(iframe).style.display= "block"; el.style.opacity= 1; } change_style(); el.innerHTML= "<iframe class=hop-float-iframe id='" + iframe + "' " + "src='" + "http://www.wanadoo.fr" + "' " + "' height='" + compute_height() + "'></iframe>"; }} |
if (serv == null) { change_style(); return } | function hop_open_float_window(serv, id, x, y){ var win = document.getElementById(id); var h = document.getElementById(id + "-handle"); var el = document.getElementById(id + "-content"); function change_style() { win.style.display = "block"; win.style.left = x; win.style.top = y; win.style.zIndex = ++HopDrag.zIndex; } function compute_height() { var shadow_height = 8; return win.offsetHeight - h.offsetHeight - shadow_height; } if (!win.inFrame) { hop(serv, function( http ) { if (http.responseText != null) { el.innerHTML = http.responseText; hop_js_eval( http ); change_style(); } }); } else { var iframe = id + "-frame"; el.style.setProperty("margin", "0", ""); el.style.setProperty("padding", "0", ""); win.onDragStart = function(x, y) { document.getElementById(iframe).style.display= "none"; el.style.setProperty("height", compute_height()+"px", ""); el.style.opacity= 0.8; } win.onDragEnd = function(x, y) { document.getElementById(iframe).style.display= "block"; el.style.opacity= 1; } change_style(); el.innerHTML= "<iframe class=hop-float-iframe id='" + iframe + "' " + "src='" + serv + "' " + "' height='" + compute_height() + "'></iframe>"; }} |
|
function hop_open_float_window(serv, e, x, y) | function hop_open_float_window(serv, e, x, y, inframe) | function hop_open_float_window(serv, e, x, y){ var win = (e instanceof HTMLDivElement) ? e : document.getElementById(e); var id = (e instanceof HTMLDivElement) ? e.id : e; var h = document.getElementById(id + "-handle"); var el = document.getElementById(id + "-content"); var around = id + "-around"; var iframe = id + "-frame"; function change_style() { win.style.display = "block"; win.style.left = x; win.style.top = y; win.style.zIndex = ++HopDrag.zIndex; } function compute_height() { var shadow_height = 8; return win.offsetHeight - h.offsetHeight - shadow_height; } function start_resize(w, h) { var id = (win.inFrame) ? iframe : around; document.getElementById(id).style.display= "none"; el.style.overflow = "auto"; el.style.opacity= 0.8; } function resize(w, h) { el.style.setProperty("height", compute_height() +"px", ""); el.style.setProperty("overflow", "auto", ""); } function end_resize(w, h) { var id = (win.inFrame) ? iframe : around; var tmp = document.getElementById(id); var sz = compute_height() + "px"; tmp.style.display= "block"; tmp.style.height = sz; el.style.height = sz; el.style.opacity= 1; } /* initialize the window */ hop_float_window_init(id, true); /* Set the resize functions */ win.onResizeStart = start_resize; win.onResize = resize; win.onResizeEnd = end_resize;// if (serv == null) {// change_style();// return// } if (!win.inFrame) { hop(serv, function( http ) { if (http.responseText != null) { document.getElementById(around).innerHTML = http.responseText; hop_js_eval( http ); change_style(); } }); } else { win.onDragStart = function(x, y) { document.getElementById(iframe).style.display= "none"; el.style.setProperty("height", compute_height()+"px", ""); /* el.style.opacity= 0.8; */ } win.onDragEnd = function(x, y) { document.getElementById(iframe).style.display= "block"; /* el.style.opacity= 1; */ } change_style(); el.innerHTML= "<iframe class=hop-float-iframe id='" + iframe + "' " + "src='" + serv + "' " + "' height='" + compute_height() + "'></iframe>"; }} |
hop_float_window_init(id, true); | hop_float_window_init(id, inframe); | function hop_open_float_window(serv, e, x, y){ var win = (e instanceof HTMLDivElement) ? e : document.getElementById(e); var id = (e instanceof HTMLDivElement) ? e.id : e; var h = document.getElementById(id + "-handle"); var el = document.getElementById(id + "-content"); var around = id + "-around"; var iframe = id + "-frame"; function change_style() { win.style.display = "block"; win.style.left = x; win.style.top = y; win.style.zIndex = ++HopDrag.zIndex; } function compute_height() { var shadow_height = 8; return win.offsetHeight - h.offsetHeight - shadow_height; } function start_resize(w, h) { var id = (win.inFrame) ? iframe : around; document.getElementById(id).style.display= "none"; el.style.overflow = "auto"; el.style.opacity= 0.8; } function resize(w, h) { el.style.setProperty("height", compute_height() +"px", ""); el.style.setProperty("overflow", "auto", ""); } function end_resize(w, h) { var id = (win.inFrame) ? iframe : around; var tmp = document.getElementById(id); var sz = compute_height() + "px"; tmp.style.display= "block"; tmp.style.height = sz; el.style.height = sz; el.style.opacity= 1; } /* initialize the window */ hop_float_window_init(id, true); /* Set the resize functions */ win.onResizeStart = start_resize; win.onResize = resize; win.onResizeEnd = end_resize;// if (serv == null) {// change_style();// return// } if (!win.inFrame) { hop(serv, function( http ) { if (http.responseText != null) { document.getElementById(around).innerHTML = http.responseText; hop_js_eval( http ); change_style(); } }); } else { win.onDragStart = function(x, y) { document.getElementById(iframe).style.display= "none"; el.style.setProperty("height", compute_height()+"px", ""); /* el.style.opacity= 0.8; */ } win.onDragEnd = function(x, y) { document.getElementById(iframe).style.display= "block"; /* el.style.opacity= 1; */ } change_style(); el.innerHTML= "<iframe class=hop-float-iframe id='" + iframe + "' " + "src='" + serv + "' " + "' height='" + compute_height() + "'></iframe>"; }} |
hop(serv, 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"; Drag.init(h, win); win.style.left = x; win.style.top = y; win.style.zIndex = ++Drag.zIndex; win.onDragStart = function(x, y) { Drag.opacity = win.style.opacity; win.style.zIndex = ++Drag.zIndex; win.style.opacity = 0.4; } win.onDragEnd = function(x, y) { win.style.opacity = Drag.opacity; } } }); | var win = document.getElementById(id); var h = document.getElementById(id + "-handle"); var el = document.getElementById(id + "-content"); function change_style() { win.style.display = "block"; win.style.left = x; win.style.top = y; win.style.zIndex = ++Drag.zIndex; } function compute_height() { var shadow_height = 8; return win.offsetHeight - h.offsetHeight - shadow_height; } if (!win.inFrame) { hop(serv, function( http ) { if (http.responseText != null) { el.innerHTML = http.responseText; hop_js_eval( http ); change_style(); } }); } else { var iframe = id + "-frame"; el.style.setProperty("margin", "0", ""); el.style.setProperty("padding", "0", ""); win.onDragStart = function(x, y) { document.getElementById(iframe).style.display= "none"; el.style.opacity= 0.8; el.style.offsetHeight = 100; } win.onDragEnd = function(x, y) { document.getElementById(iframe).style.display= "block"; el.style.opacity= 1; } change_style(); el.innerHTML= "<iframe class=hop-float-iframe id='" + iframe + "' " + "src='" + "http: "' height='" + compute_height() + "'></iframe>"; } | function hop_open_float_window(serv, id, x, y){ hop(serv, 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"; Drag.init(h, win); win.style.left = x; win.style.top = y; win.style.zIndex = ++Drag.zIndex; win.onDragStart = function(x, y) { Drag.opacity = win.style.opacity; win.style.zIndex = ++Drag.zIndex; win.style.opacity = 0.4; } win.onDragEnd = function(x, y) { win.style.opacity = Drag.opacity; } } });} |
for( var p in window ) { | for( var p in obj ) { | function hop_properties_to_string( obj ) { var res = ""; var i = 0; for( var p in window ) { if( i == 10 ) { res += p + "\n"; i = 0; } else { i++; res += p + " "; } } return res;} |
return obj.detachEvent( "on" + event, proc ); | var i = "on" + event + "hdl"; var proc = obj[ i ][ proc ]; if( proc != undefined ) { obj[ i ][ proc ] = undefined; return obj.detachEvent( "on" + event, proc ); } | hop_remove_event_listener = function( obj, event, proc, capture ) { return obj.detachEvent( "on" + event, proc ); } |
if( hop_request_env_string == null ) { | if( (hop_request_env_string == null) || (hop_request_env_string.length == 0) ) { | function hop_serialize_request_env() { if( hop_request_env_string == null ) { var tmp = null; for( var p in hop_request_env ) { if( typeof hop_request_env[ p ] != "function" ) { tmp = sc_cons( sc_cons( p, hop_request_env[ p ] ) ); } } hop_request_env_string = hop_serialize( tmp ); } return hop_request_env_string;} |
return service; | return service + "?hop-encoding=hop"; | function hop_service_url( service, formals, args ) { var len = formals.length; if( len == 0 ) { return service; } else { var url = service + "?hop-encoding=hop"; var i; if( (args.length == 1) && (HTMLFormElement != undefined) && (args[ 0 ] instanceof HTMLFormElement) ) { var els = args[ 0 ].elements; for( i = 0; i < els.length; i++ ) { if( els[ i ].type == "checkbox" ) { var val = els[ i ].checked ? els[ i ].value : false; url += "&" + els[ i ].name + "=" + hop_serialize( val ); } else { if( els[ i ].type == "radio" ) { if( els[ i ].checked ) { url += "&" + els[ i ].name + "=" + hop_serialize( els[ i ].value ); } } else { url += "&" + els[ i ].name + "=" + hop_serialize( els[ i ].value ); } } } return url; } else { for( i = 0; i < len; i++ ) { url += "&" + formals[ i ] + "=" + hop_serialize( args[ i ] ); } return url; } }} |
val = ((e.clientX - hop_element_x( slider )) / slider.offsetWidth) | val = ((hop_event_mouse_x( e ) - hop_element_x( slider )) / slider.offsetWidth) | function hop_slider_mousemove( e, slider ) { var val; val = ((e.clientX - hop_element_x( slider )) / slider.offsetWidth) * (slider.max - slider.min); hop_slider_value_set( slider, Math.round( val ) + slider.min );} |
if( typeof l == "string" ) { | if( (typeof l == "string") && (l != '') ) { | function hop_sorttable_sort( lnk ) { var td = lnk.parentNode; var arrow = lnk.lastChild; var column = td.cellIndex; var table = get_parent( td, 'TABLE' ); if( table.rows.length <= 1 ) return; SORT_COLUMN_INDEX = column; var newRows = new Array(); var itm = hop_sorttable_getInnerText( table.rows[1].cells[ column ] ); for( j = 1; j < table.rows.length; j++ ) { var o = new Object(); var l = table.rows[ j ].cells[ column ].getAttribute( "lang" ); if( typeof l == "string" ) { o.key = l; itm = false; } else { o.key = hop_sorttable_getInnerText( table.rows[ j ].cells[ column ] ); } o.val = table.rows[ j ]; newRows[ j - 1 ] = o; } if( !itm ) { newRows.sort( hop_sorttable_sort_default ); } else { if( itm.match(/^[\d\.]+$/) ) { newRows.sort( hop_sorttable_sort_numeric ); } else { newRows.sort( hop_sorttable_sort_default ); } } if( lnk.getAttribute( "sortdir" ) != 'down' ) { newRows.reverse(); arrow.innerHTML = "↑"; lnk.setAttribute( 'sortdir', 'down' ); } else { arrow.innerHTML = "↓"; lnk.setAttribute( 'sortdir', 'up' ); } for( i = 0; i < newRows.length; i++ ) { table.tBodies[ 0 ].appendChild( newRows[ i ].val ); }} |
table.arrow = arrow; | function hop_sorttable_sort( lnk ) { var td = lnk.parentNode; var arrow = lnk.lastChild; var column = td.cellIndex; var table = get_parent( td, 'TABLE' ); if( table.rows.length <= 1 ) return; SORT_COLUMN_INDEX = column; var newRows = new Array(); var itm = hop_sorttable_getInnerText( table.rows[1].cells[ column ] ); for( j = 1; j < table.rows.length; j++ ) { var o = new Object(); var l = table.rows[ j ].cells[ column ].getAttribute( "lang" ); if( (typeof l == "string") && (l != '') ) { o.key = l; itm = false; } else { o.key = hop_sorttable_getInnerText( table.rows[ j ].cells[ column ] ); } o.val = table.rows[ j ]; newRows[ j - 1 ] = o; } if( !itm ) { newRows.sort( hop_sorttable_sort_default ); } else { if( itm.match(/^[\d\.]+$/) ) { newRows.sort( hop_sorttable_sort_numeric ); } else { newRows.sort( hop_sorttable_sort_default ); } } if( lnk.getAttribute( "sortdir" ) != 'down' ) { newRows.reverse(); arrow.innerHTML = "↑"; lnk.setAttribute( 'sortdir', 'down' ); } else { arrow.innerHTML = "↓"; lnk.setAttribute( 'sortdir', 'up' ); } for( i = 0; i < newRows.length; i++ ) { table.tBodies[ 0 ].appendChild( newRows[ i ].val ); }} |
|
hop_stop_propagation = function( event ) { event.cancelBubble = true; | hop_stop_propagation = function( event, def ) { if( !def ) event.cancelBubble = true; | hop_stop_propagation = function( event ) { event.cancelBubble = true; event.returnValue = false; } |
function hop_tabslider_init(id) | function hop_tabslider_init(id, index) | function hop_tabslider_init(id){ var ts = document.getElementById(id); hop_tabslider_select(ts.childNodes[0]);} |
hop_tabslider_select(ts.childNodes[0]); | window.addEventListener('load', function(event) { hop_tabslider_select(ts.childNodes[2*index]); }, false); | function hop_tabslider_init(id){ var ts = document.getElementById(id); hop_tabslider_select(ts.childNodes[0]);} |
window.addEventListener( 'load', function( e ) { hop_tabslider_select( ts.childNodes[ 2*ind ] ); }, false ); | window.onload = function( e ) { hop_tabslider_select( ts.childNodes[ 2*ind ] ); }; | function hop_tabslider_init( id, ind ) { var ts = document.getElementById( id ); window.addEventListener( 'load', function( e ) { hop_tabslider_select( ts.childNodes[ 2*ind ] ); }, false );} |
title.className = "hop-tabslider-head-active"; | title.className = "hop-tabslider-head hop-tabslider-head-active"; | function hop_tabslider_select( item ) { var parent = item.parentNode; var totalHeight = parent.offsetHeight; var titlesHeight = 0; var selected; var i; for( i = 0; i < parent.childNodes.length; i += 2 ) { var title = parent.childNodes[ i ]; var content = parent.childNodes[ i + 1 ]; titlesHeight += title.offsetHeight; if( title == item ) { selected = content; title.className = "hop-tabslider-head-active"; if( content.lang == "delay" ) { hop( selected.onkeyup()(), function( http ) { selected.innerHTML = http.responseText; selected.style.display = "block"; } ); } else { selected.style.display = "block"; } } else { content.style.display = "none"; title.className = "hop-tabslider-head-inactive"; } } /* Set the height of the selected item */ selected.style.height = totalHeight - titlesHeight;} |
title.className = "hop-tabslider-head-inactive"; | title.className = "hop-tabslider-head hop-tabslider-head-inactive"; | function hop_tabslider_select( item ) { var parent = item.parentNode; var totalHeight = parent.offsetHeight; var titlesHeight = 0; var selected; var i; for( i = 0; i < parent.childNodes.length; i += 2 ) { var title = parent.childNodes[ i ]; var content = parent.childNodes[ i + 1 ]; titlesHeight += title.offsetHeight; if( title == item ) { selected = content; title.className = "hop-tabslider-head-active"; if( content.lang == "delay" ) { hop( selected.onkeyup()(), function( http ) { selected.innerHTML = http.responseText; selected.style.display = "block"; } ); } else { selected.style.display = "block"; } } else { content.style.display = "none"; title.className = "hop-tabslider-head-inactive"; } } /* Set the height of the selected item */ selected.style.height = totalHeight - titlesHeight;} |
root.onselect(); | function hop_tree_row_select( root, row ) { if( !root.multiselect && root.selection ) { hop_tree_row_unselect( root, root.selection ); } row.className = "hop-tree-row-selected"; root.selection = row; root.selections.push( row ); root.onselect();} |
|
if( row.className == "hop-tree-row-selected" ) | if( row.className == "hop-tree-row-selected" ) { if( root.onselect ) { root.onselect(); } | function hop_tree_row_toggle_selected( tree, row ) { // find the root tree var aux = tree; var root = aux; while( aux.className == "hop-tree" ) { root = aux; aux = root.parent; } if( row.className == "hop-tree-row-selected" ) hop_tree_row_unselect( root, row ); else hop_tree_row_select( root, row );} |
else | } else { | function hop_tree_row_toggle_selected( tree, row ) { // find the root tree var aux = tree; var root = aux; while( aux.className == "hop-tree" ) { root = aux; aux = root.parent; } if( row.className == "hop-tree-row-selected" ) hop_tree_row_unselect( root, row ); else hop_tree_row_select( root, row );} |
} | function hop_tree_row_toggle_selected( tree, row ) { // find the root tree var aux = tree; var root = aux; while( aux.className == "hop-tree" ) { root = aux; aux = root.parent; } if( row.className == "hop-tree-row-selected" ) hop_tree_row_unselect( root, row ); else hop_tree_row_select( root, row );} |
|
paned.td1.style.width = fraction; paned.td2.style.width = "auto"; | hop_style_set( paned.td1, "width", fraction ); hop_style_set( paned.td2, "width", "auto" ); | function hop_vpaned_fraction_set( paned, fraction ) { if( (fraction instanceof String) || (typeof fraction == "string") ) { paned.td1.style.width = fraction; paned.td2.style.width = "auto"; } else { if( (fraction < 0) || (fraction > 100) ) { return; } paned.td1.style.width = fraction + "%"; paned.td2.style.width = "auto"; } if( paned.fraction != fraction ) { paned.fraction = fraction; if( paned.onresize != undefined ) { paned.onresize(); } }} |
paned.td1.style.width = fraction + "%"; paned.td2.style.width = "auto"; | hop_style_set( paned.td1, "width", fraction + "%" ); hop_style_set( paned.td2 ,"width", "auto" ); | function hop_vpaned_fraction_set( paned, fraction ) { if( (fraction instanceof String) || (typeof fraction == "string") ) { paned.td1.style.width = fraction; paned.td2.style.width = "auto"; } else { if( (fraction < 0) || (fraction > 100) ) { return; } paned.td1.style.width = fraction + "%"; paned.td2.style.width = "auto"; } if( paned.fraction != fraction ) { paned.fraction = fraction; if( paned.onresize != undefined ) { paned.onresize(); } }} |
if( (fraction < 0) || (fraction > 100) ) { return; | if( (fraction instanceof String) || (typeof fraction == "string") ) { paned.td1.style.width = fraction; paned.td2.style.width = "auto"; } else { if( (fraction < 0) || (fraction > 100) ) { return; } paned.td1.style.width = fraction + "%"; paned.td2.style.width = "auto"; | function hop_vpaned_fraction_set( paned, fraction ) { if( (fraction < 0) || (fraction > 100) ) { return; } paned.td1.style.width = fraction + "%"; paned.td2.style.width = "auto"; if( paned.fraction != fraction ) { paned.fraction = fraction; if( paned.onresize != undefined ) { paned.onresize(); } }} |
paned.td1.style.width = fraction + "%"; paned.td2.style.width = "auto"; | function hop_vpaned_fraction_set( paned, fraction ) { if( (fraction < 0) || (fraction > 100) ) { return; } paned.td1.style.width = fraction + "%"; paned.td2.style.width = "auto"; if( paned.fraction != fraction ) { paned.fraction = fraction; if( paned.onresize != undefined ) { paned.onresize(); } }} |
|
val = ((e.clientX - hop_element_x( paned )) / paned.offsetWidth) * 100; | val = ((hop_event_mouse_x( e ) - hop_element_x( paned )) / paned.offsetWidth) * 100; | function hop_vpaned_mousemove( e, paned ) { var val; val = ((e.clientX - hop_element_x( paned )) / paned.offsetWidth) * 100; hop_vpaned_fraction_set( paned, Math.round( val ));} |
Rico.Color.HSBtoRGB = function(hue, saturation, brightness) { | OpenLayers.Rico.Color.HSBtoRGB = function(hue, saturation, brightness) { | Rico.Color.HSBtoRGB = function(hue, saturation, brightness) { var red = 0; var green = 0; var blue = 0; if (saturation == 0) { red = parseInt(brightness * 255.0 + 0.5); green = red; blue = red; } else { var h = (hue - Math.floor(hue)) * 6.0; var f = h - Math.floor(h); var p = brightness * (1.0 - saturation); var q = brightness * (1.0 - saturation * f); var t = brightness * (1.0 - (saturation * (1.0 - f))); switch (parseInt(h)) { case 0: red = (brightness * 255.0 + 0.5); green = (t * 255.0 + 0.5); blue = (p * 255.0 + 0.5); break; case 1: red = (q * 255.0 + 0.5); green = (brightness * 255.0 + 0.5); blue = (p * 255.0 + 0.5); break; case 2: red = (p * 255.0 + 0.5); green = (brightness * 255.0 + 0.5); blue = (t * 255.0 + 0.5); break; case 3: red = (p * 255.0 + 0.5); green = (q * 255.0 + 0.5); blue = (brightness * 255.0 + 0.5); break; case 4: red = (t * 255.0 + 0.5); green = (p * 255.0 + 0.5); blue = (brightness * 255.0 + 0.5); break; case 5: red = (brightness * 255.0 + 0.5); green = (p * 255.0 + 0.5); blue = (q * 255.0 + 0.5); break; } } return { r : parseInt(red), g : parseInt(green) , b : parseInt(blue) };} |
if (window.layoutTestController) layoutTestController.waitUntilDone(); | function HTMLFormElement10() { var success; if(checkInitialization(builder, "HTMLFormElement10") != null) return; var nodeList; var testNode; var doc; var docRef = null; if (typeof(this.doc) != 'undefined') { docRef = this.doc; } doc = load(docRef, "doc", "form3"); nodeList = doc.getElementsByTagName("form"); assertSize("Asize",1,nodeList);testNode = nodeList.item(0); testNode.submit(); } |
|
assertEquals("titleLink","NIST DOM HTML Test - FRAME",vtitle); | assertEquals("titleLink","NIST DOM HTML Test - FRAMESET",vtitle); | function HTMLIFrameElement11() { var success; if(checkInitialization(builder, "HTMLIFrameElement11") != null) return; var testNode; var cd; var vtitle; var doc; var docRef = null; if (typeof(this.doc) != 'undefined') { docRef = this.doc; } doc = load(docRef, "doc", "iframe2"); testNode = doc.getElementById("Iframe2"); cd = testNode.contentDocument; vtitle = cd.title; assertEquals("titleLink","NIST DOM HTML Test - FRAME",vtitle); } |
if (callbackFunction) { xmlHttp.onreadystatechange = function() { if (xmlHttp.readyState == 4) { callbackFunction(xmlHttp.responseText, xmlHttp, callbackParameter); } | xmlHttp.onreadystatechange = function() { if (xmlHttp.readyState == 4) { callbackFunction(xmlHttp.responseText, xmlHttp, callbackParameter); | function HTTPGet(uri, callbackFunction, callbackParameter) { var xmlHttp = new XMLHttpRequest(); var bAsync = true; if (!callbackFunction) { bAsync = false; } xmlHttp.open('GET', uri, bAsync); xmlHttp.send(null); if (bAsync) { if (callbackFunction) { xmlHttp.onreadystatechange = function() { if (xmlHttp.readyState == 4) { callbackFunction(xmlHttp.responseText, xmlHttp, callbackParameter); } } } return xmlHttp; } else { return xmlHttp.responseText; }} |
if (!callbackFunction) | if (!callbackFunction) { | function HTTPGet(uri, callbackFunction, callbackParameter) { var xmlHttp = new XMLHttpRequest(); var bAsync = true; if (!callbackFunction) bAsync = false; xmlHttp.open('GET', uri, bAsync); xmlHttp.send(null); if (bAsync) { if (callbackFunction) { xmlHttp.onreadystatechange = function() { if (xmlHttp.readyState == 4) callbackFunction(xmlHttp.responseText, xmlHttp, callbackParameter) } } return true; } else { return xmlHttp.responseText; }} |
if (xmlHttp.readyState == 4) callbackFunction(xmlHttp.responseText, xmlHttp, callbackParameter) | if (xmlHttp.readyState == 4) { callbackFunction(xmlHttp.responseText, xmlHttp, callbackParameter); } | function HTTPGet(uri, callbackFunction, callbackParameter) { var xmlHttp = new XMLHttpRequest(); var bAsync = true; if (!callbackFunction) bAsync = false; xmlHttp.open('GET', uri, bAsync); xmlHttp.send(null); if (bAsync) { if (callbackFunction) { xmlHttp.onreadystatechange = function() { if (xmlHttp.readyState == 4) callbackFunction(xmlHttp.responseText, xmlHttp, callbackParameter) } } return true; } else { return xmlHttp.responseText; }} |
if (callbackFunction) { xmlHttp.onreadystatechange = function() { if (xmlHttp.readyState == 4) { callbackFunction(xmlHttp.responseText, xmlHttp, callbackParameter); } | xmlHttp.onreadystatechange = function() { if (xmlHttp.readyState == 4) { callbackFunction(xmlHttp.responseText, xmlHttp, callbackParameter); | function HTTPPost(uri, callbackFunction, callbackParameter, object) { var xmlHttp = new XMLHttpRequest(); var bAsync = true; if (!callbackFunction) { bAsync = false; } xmlHttp.open('POST', uri, bAsync); var toSend = ''; if (typeof object == 'object') { xmlHttp.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded'); for (var i in object) { toSend += (toSend ? '&' : '') + i + '=' + encodeURIComponent(object[i]); } } else { toSend = object; } xmlHttp.send(toSend); if (bAsync) { if (callbackFunction) { xmlHttp.onreadystatechange = function() { if (xmlHttp.readyState == 4) { callbackFunction(xmlHttp.responseText, xmlHttp, callbackParameter); } } } return xmlHttp; } else { return xmlHttp.responseText; }} |
for (var i in object) toSend += (toSend ? '&' : '') + i + '=' + escape(object[i]); | for (var i in object) { toSend += (toSend ? '&' : '') + i + '=' + encodeURIComponent(object[i]); } | function HTTPPost(uri, callbackFunction, callbackParameter, object) { var xmlHttp = new XMLHttpRequest(); var bAsync = true; if (!callbackFunction) { bAsync = false; } xmlHttp.open('POST', uri, bAsync); var toSend = ''; if (typeof object == 'object') { xmlHttp.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded'); for (var i in object) toSend += (toSend ? '&' : '') + i + '=' + escape(object[i]); } else { toSend = object; } xmlHttp.send(toSend); if (bAsync) { if (callbackFunction) { xmlHttp.onreadystatechange = function() { if (xmlHttp.readyState == 4) { callbackFunction(xmlHttp.responseText, xmlHttp, callbackParameter); } } } return true; } else { return xmlHttp.responseText; }} |
function HTTPPost(uri, object, callbackFunction, callbackParameter) { | function HTTPPost(uri, callbackFunction, callbackParameter, object) { | function HTTPPost(uri, object, callbackFunction, callbackParameter) { var xmlHttp = new XMLHttpRequest(); var bAsync = true; if (!callbackFunction) { bAsync = false; } xmlHttp.open('POST', uri, bAsync); var toSend = ''; if (typeof object == 'object') { xmlHttp.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded'); for (var i in object) toSend += (toSend ? '&' : '') + i + '=' + escape(object[i]); } else { toSend = object; } xmlHttp.send(toSend); if (bAsync) { if (callbackFunction) { xmlHttp.onreadystatechange = function() { if (xmlHttp.readyState == 4) { callbackFunction(xmlHttp.responseText, xmlHttp, callbackParameter); } } } return true; } else { return xmlHttp.responseText; }} |
IEPageBot = function(pageWindow) { | var IEPageBot = function(pageWindow) { | IEPageBot = function(pageWindow) { PageBot.call(this, pageWindow);}; |
if (!SILENT) { document.write('<span class=doNotPrint>'); document.write(unlockHTML); writeExportHTML(); writeHelpLink(); document.write('</span>'); } | writeFooter(); | function IEsetup() { // scan the document for form elements and // perform setup for each. elementIterate(new IEregisterElementObj()); // if any elements were found, if (IEparameterString != "") { // add a data applet to the page. document.writeln('<applet id=IEDataAppl'+ ' archive="/help/Topics/Troubleshooting/DataApplet/SunPlugin.jar" ' + ' code=pspdash.data.IEDataApplet'+ ' width=1 height=1>'); document.writeln('<param name="cabbase" value="/DataApplet14.cab">'); document.writeln(IEparameterString); if (requiredTag != "") document.writeln('<param name=requiredTag value="' + requiredTag +'">'); if (unlocked) document.writeln('<param name=unlock value=true>'); document.writeln('<param name=docURL value="'+window.location.href+'">'); document.writeln('</applet>'); if (!SILENT) { document.write('<span class=doNotPrint>'); document.write(unlockHTML); writeExportHTML(); writeHelpLink(); document.write('</span>'); } IEDataAppl.ondatasetcomplete = IEscanForReadOnly; IEDataAppl.ondatasetchanged = IEscanForReadOnly; IEDataAppl.oncellchange = IEresetReadOnly; }} |
if (elem.dataFld != null) { | if (elem.dataFld != null && IEDataAppl.readyState > 0) { | function IEsetupReadOnly(elem) { if (elem.dataFld != null) { if (elem.readOnly = (! IEDataAppl.isEditable(elem.dataFld))) { elem.style.backgroundColor = IEDataAppl.readOnlyColor(); elem.tabIndex = -1; } else { elem.style.backgroundColor = ""; elem.tabIndex = ""; } } //elem.disabled = false;} |
response = response.replace(/[\f\n\r\t\v]/g, ' '); | window.iframeHandler = function () { var iframe = $('redirect-target'); // Restore form submission button.form.action = action; button.form.target = target; // Get response from iframe body try { response = (iframe.contentWindow || iframe.contentDocument || iframe).document.body.innerHTML; if (window.opera) { // Opera-hack: it returns innerHTML sanitized. response = response.replace(/"/g, '"'); } } catch (e) { response = null; } // Recreate the iframe: re-using an old iframe can sometimes cause browser bugs. createIframe(); response = parseJson(response); // Check response code if (response.status == 0) { handler.onerror(response.data); return; } handler.oncomplete(response.data); } |
|
return false; | ignoreEvent: function(evt) { Event.stop(evt); return false; }, |
|
prev.setAttribute('src',obj.value); | prev.setAttribute('src','file: | function imagepreview(obj) { prev = document.getElementById('preview'); prev.style.visibility = 'hidden'; var i = 0; var delimiter = ' '; var imageext = 'gif jpg jpeg png'; var isimage = false; var _tempArray = new Array(); _tempArray = imageext.split(delimiter); for(i in _tempArray) { if(obj.value.indexOf('.' + _tempArray[i]) != -1) { // file is an image. isimage = true; } } if (isimage) { prev.setAttribute('src',obj.value); prev.style.visibility = 'visible'; }} |
document.getElementById("context-zoomsub").hidden = false; | { var oizImage = new izImage(document.popupNode); var izMenuItem = document.getElementById("context-zoomsub") izMenuItem.setAttribute("label", contextSubMenuLabel.replace(/%zoom%/, oizImage.zoomFactor())); izMenuItem.hidden = false; } | function imageZoomMenu(e) { var MenuItems = new Array("context-zoom-zin","context-zoom-zout","context-zoom-zreset","context-zoom-zcustom","context-zoom-dcustom","context-zoom-fit","zoomsub-zin","zoomsub-zout","zoomsub-zreset","zoomsub-zcustom","zoomsub-dcustom","zoomsub-fit","zoomsub-z400","zoomsub-z200","zoomsub-z150","zoomsub-z125","zoomsub-z100","zoomsub-z75","zoomsub-z50","zoomsub-z25","zoomsub-z10"); var OptionItems = new Array("mmZoomIO","mmZoomIO","mmReset","mmCustomZoom","mmCustomDim","mmFitWindow","smZoomIO","smZoomIO","smReset","smCustomZoom","smCustomDim","smFitWindow","smZoomPcts","smZoomPcts","smZoomPcts","smZoomPcts","smZoomPcts","smZoomPcts","smZoomPcts","smZoomPcts","smZoomPcts"); // Display the correct menu items depending on options and whether an image was clicked for (var i=0;i<MenuItems.length;i++) document.getElementById(MenuItems[i]).setAttribute("hidden", (!gContextMenu.onImage || !nsIPrefBranchObj.getBoolPref(OptionItems[i]))); var subPopUp = document.getElementById("zoompopup"); // Insert the necesary separators if needed in the sub menu var subItems = document.getElementById("zoompopup").getElementsByTagName("*"); for (var i=0; i<subItems.length; i++) { if (subItems[i].tagName == "menuseparator") subItems[i].setAttribute("hidden", !insertSeparator(subItems, i)); } // Show the Zoom Image container if there are subitems visible, else hide if (subPopUp.getElementsByAttribute("hidden", false).length > 0) document.getElementById("context-zoomsub").hidden = false; else document.getElementById("context-zoomsub").hidden = true;} |
importPluginLanguagePack : function(name, valid_languages) { var lang = "en", b = tinyMCE.baseURL + '/plugins/' + name; valid_languages = valid_languages.split(','); for (var i=0; i<valid_languages.length; i++) { if (tinyMCE.settings['language'] == valid_languages[i]) lang = tinyMCE.settings['language']; } | importPluginLanguagePack : function(name) { var b = tinyMCE.baseURL + '/plugins/' + name; | importPluginLanguagePack : function(name, valid_languages) { var lang = "en", b = tinyMCE.baseURL + '/plugins/' + name; valid_languages = valid_languages.split(','); for (var i=0; i<valid_languages.length; i++) { if (tinyMCE.settings['language'] == valid_languages[i]) lang = tinyMCE.settings['language']; } if (this.plugins[name]) b = this.plugins[name].baseURL; tinyMCE.loadScript(b + '/langs/' + lang + '.js'); }, |
tinyMCE.loadScript(b + '/langs/' + lang + '.js'); | tinyMCE.loadScript(b + '/langs/' + tinyMCE.settings['language'] + '.js'); | importPluginLanguagePack : function(name, valid_languages) { var lang = "en", b = tinyMCE.baseURL + '/plugins/' + name; valid_languages = valid_languages.split(','); for (var i=0; i<valid_languages.length; i++) { if (tinyMCE.settings['language'] == valid_languages[i]) lang = tinyMCE.settings['language']; } if (this.plugins[name]) b = this.plugins[name].baseURL; tinyMCE.loadScript(b + '/langs/' + lang + '.js'); }, |
input = value('input_mrl'); | input_iesuxx = value('input_mrl'); | function in_enqueue(){ input = value('input_mrl'); if( value('sout_mrl') != '' ) input += ' '+value('sout_mrl'); url = 'requests/status.xml?command=in_enqueue&input='+escape(input); loadXMLDoc( url, parse_status ); setTimeout( 'update_playlist()', 1000 );} |
input += ' '+value('sout_mrl'); url = 'requests/status.xml?command=in_enqueue&input='+escape(input); | input_iesuxx += ' '+value('sout_mrl'); url = 'requests/status.xml?command=in_enqueue&input='+escape(input_iesuxx); | function in_enqueue(){ input = value('input_mrl'); if( value('sout_mrl') != '' ) input += ' '+value('sout_mrl'); url = 'requests/status.xml?command=in_enqueue&input='+escape(input); loadXMLDoc( url, parse_status ); setTimeout( 'update_playlist()', 1000 );} |
var url = 'requests/status.xml?command=in_enqueue&input='+escape( input ); | var url = 'requests/status.xml?command=in_enqueue&input='+encodeURIComponent( input ); | function in_enqueue(){ var input = value('input_mrl'); if( value('sout_mrl') != '' ) input += ' '+value('sout_mrl'); var url = 'requests/status.xml?command=in_enqueue&input='+escape( input ); loadXMLDoc( url, parse_status ); setTimeout( 'update_playlist()', 1000 );} |
var url = 'requests/status.xml?command=in_enqueue&input='+encodeURIComponent( input ); | var url = 'requests/status.xml?command=in_enqueue&input='+encodeURIComponent( addslashes(escapebackslashes(input)) ); | function in_enqueue(){ var input = value('input_mrl'); if( value('sout_mrl') != '' ) input += ' '+value('sout_mrl'); var url = 'requests/status.xml?command=in_enqueue&input='+encodeURIComponent( input ); loadXMLDoc( url, parse_status ); setTimeout( 'update_playlist()', 1000 );} |
input = value('input_mrl'); | input_iesuxx = value('input_mrl'); | function in_play(){ input = value('input_mrl'); if( value('sout_mrl') != '' ) input += ' '+value('sout_mrl'); url = 'requests/status.xml?command=in_play&input='+escape(input); loadXMLDoc( url, parse_status ); setTimeout( 'update_playlist()', 1000 );} |
input += ' '+value('sout_mrl'); url = 'requests/status.xml?command=in_play&input='+escape(input); | input_iesuxx += ' '+value('sout_mrl'); url = 'requests/status.xml?command=in_play&input='+escape(input_iesuxx); | function in_play(){ input = value('input_mrl'); if( value('sout_mrl') != '' ) input += ' '+value('sout_mrl'); url = 'requests/status.xml?command=in_play&input='+escape(input); loadXMLDoc( url, parse_status ); setTimeout( 'update_playlist()', 1000 );} |
var url = 'requests/status.xml?command=in_play&input='+escape( input ); | var url = 'requests/status.xml?command=in_play&input='+encodeURIComponent( input ); | function in_play(){ var input = value('input_mrl'); if( value('sout_mrl') != '' ) input += ' '+value('sout_mrl'); var url = 'requests/status.xml?command=in_play&input='+escape( input ); loadXMLDoc( url, parse_status ); setTimeout( 'update_playlist()', 1000 );} |
var url = 'requests/status.xml?command=in_play&input='+encodeURIComponent( input ); | var url = 'requests/status.xml?command=in_play&input='+encodeURIComponent( addslashes(escapebackslashes(input)) ); | function in_play(){ var input = value('input_mrl'); if( value('sout_mrl') != '' ) input += ' '+value('sout_mrl'); var url = 'requests/status.xml?command=in_play&input='+encodeURIComponent( input ); loadXMLDoc( url, parse_status ); setTimeout( 'update_playlist()', 1000 );} |
throw _break; | throw $break; | include: function(object) { var found = false; this.each(function(value) { if (value == object) { found = true; throw _break; } }); return found; }, |
includeXsltIncludes:function() { | function includeXsltIncludes() { | includeXsltIncludes:function() { for (var i=0; i < this.includes.length;i++) { var incl = this.doc.createElementNS("http://www.w3.org/1999/XSL/Transform","include"); incl.setAttribute("href",this.includes[i]) this.doc.documentElement.insertBefore(incl,this.doc.documentElement.firstChild); } }, |
}, | } | includeXsltIncludes:function() { for (var i=0; i < this.includes.length;i++) { var incl = this.doc.createElementNS("http://www.w3.org/1999/XSL/Transform","include"); incl.setAttribute("href",this.includes[i]) this.doc.documentElement.insertBefore(incl,this.doc.documentElement.firstChild); } }, |
includeXsltParams: function() { | function includeXsltParams() { | includeXsltParams: function() { /* the following is to set parameters in the xsl-stylesheet according to url querystrings there seems to be no other way to do that ... */ /* mozilla does not work with namespaces on xpath as of RC2... maybe this will change... see http://bugzilla.mozilla.org/show_bug.cgi?id=113611 for details (it will be in 1.1) until then we need this more complicated xpath string.. var nsResolver = BX_xsl.createNSResolver(BX_xsl); */ if ((this.xsltParams) ) { var node; var paramName; for (paramName in this.xsltParams ) { var result = this.doc.evaluate("/*/*[name() = 'xsl:param' and @name='"+ paramName+"']", this.doc, null, 0, null); if (node = result.iterateNext()) { //there is already such a xsl:param, replace it node.childNodes[0].nodeValue = this.xsltParams[paramName]; } else { //there was no such xsl:param, create a new node var result = this.doc.evaluate("/*[name() = 'xsl:stylesheet']", this.doc, null, 0, null); node = result.iterateNext(); var newNode = this.doc.createElementNS("http://www.w3.org/1999/XSL/Transform","param"); newNode.setAttribute("name",paramName); newNode.appendChild(this.doc.createTextNode(this.xsltParams[paramName])); node.insertBefore(newNode,node.firstChild); } } } } |
for (var i = 0; i < this.length; i++) { if (this[i] == item) { return i; | var len = this.length; for (var i = 0; i < len; i++) { if (this[i] == item) { return i; } | Array.prototype.indexOf = function(item) { for (var i = 0; i < this.length; i++) { if (this[i] == item) { return i; } } return -1;}; |
} return -1; }; | return -1; }; | Array.prototype.indexOf = function(item) { for (var i = 0; i < this.length; i++) { if (this[i] == item) { return i; } } return -1;}; |
this.log(message, "info"); | this.log("info", message); | info: function(message) { this.log(message, "info"); }, |
var main = document.getElementById("main"); var leftPane = document.getElementById("leftPane"); var rightPane = document.getElementById("rightPane"); var x = event.clientX + window.scrollX; if (x < main.clientWidth * 0.25) x = main.clientWidth * 0.25; else if (x > main.clientWidth * 0.75) x = main.clientWidth * 0.75; | var main = document.getElementById("main"); var leftPane = document.getElementById("leftPane"); var rightPane = document.getElementById("rightPane"); var x = event.clientX + window.scrollX; var delta = element.dragLastX - x; | function infoDividerDrag(event) { var element = document.getElementById("infoDivider"); if (document.getElementById("infoDivider").dragging == true) { var main = document.getElementById("main"); var leftPane = document.getElementById("leftPane"); var rightPane = document.getElementById("rightPane"); var x = event.clientX + window.scrollX; if (x < main.clientWidth * 0.25) x = main.clientWidth * 0.25; else if (x > main.clientWidth * 0.75) x = main.clientWidth * 0.75; leftPane.style.width = x + "px"; rightPane.style.left = x + "px"; element.dragLastX = x; event.preventDefault(); }} |
leftPane.style.width = x + "px"; rightPane.style.left = x + "px"; | var newWidth = leftPane.clientWidth - delta; if (newWidth < main.clientWidth * 0.25) newWidth = main.clientWidth * 0.25; else if (newWidth > main.clientWidth * 0.75) newWidth = main.clientWidth * 0.75; leftPane.style.width = newWidth + "px"; rightPane.style.left = newWidth + "px"; | function infoDividerDrag(event) { var element = document.getElementById("infoDivider"); if (document.getElementById("infoDivider").dragging == true) { var main = document.getElementById("main"); var leftPane = document.getElementById("leftPane"); var rightPane = document.getElementById("rightPane"); var x = event.clientX + window.scrollX; if (x < main.clientWidth * 0.25) x = main.clientWidth * 0.25; else if (x > main.clientWidth * 0.75) x = main.clientWidth * 0.75; leftPane.style.width = x + "px"; rightPane.style.left = x + "px"; element.dragLastX = x; event.preventDefault(); }} |
element.dragLastX = x; | function infoDividerDrag(event) { var element = document.getElementById("infoDivider"); if (document.getElementById("infoDivider").dragging == true) { var main = document.getElementById("main"); var leftPane = document.getElementById("leftPane"); var rightPane = document.getElementById("rightPane"); var x = event.clientX + window.scrollX; var delta = element.dragLastX - x; var newWidth = constrainedWidthFromElement(leftPane.clientWidth - delta, main); leftPane.style.width = newWidth + "px"; rightPane.style.left = newWidth + "px"; element.dragLastX = x; event.preventDefault(); }} |
|
dividerDragEnd(document.getElementById("infoDivider"), infoDividerDrag, infoDividerDragEnd); | dividerDragEnd(document.getElementById("infoDivider"), infoDividerDrag, infoDividerDragEnd, event); | function infoDividerDragEnd(event) { dividerDragEnd(document.getElementById("infoDivider"), infoDividerDrag, infoDividerDragEnd);} |
dividerDragStart(document.getElementById("infoDivider"), infoDividerDrag, infoDividerDragEnd, event); | dividerDragStart(document.getElementById("infoDivider"), infoDividerDrag, infoDividerDragEnd, event, "col-resize"); | function infoDividerDragStart(event) { dividerDragStart(document.getElementById("infoDivider"), infoDividerDrag, infoDividerDragEnd, event);} |
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 Infomenu(){ this.items=new Array(); this.xpos=51; this.ypos=2; this.lpadding="\xb3"; this.rpadding="\xb3"; this.hotkeys=KEY_LEFT+KEY_RIGHT+"\b\x7f\x1b"; this.add("\xda\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xbf",undefined,undefined,"",""); this.add("System |Information","I",25); this.add("Synchronet |Version Info","V",25); this.add("Info on |Sub-Board","S",25); this.add("|Your Statistics","Y",25); this.add("< |User Lists","U",25); this.add("|Text Files","T",25); this.add("\xc0\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xc4\xd9",undefined,undefined,"",""); this.timeout=100; this.callback=message_callback;} |
collapse_link.innerHTML = 'Show'; | collapse_link.innerHTML = gettext('Show'); | init: function() { var fieldsets = document.getElementsByTagName('fieldset'); var collapsed_seen = false; for (var i = 0, fs; fs = fieldsets[i]; i++) { // Collapse this fieldset if it has the correct class, and if it // doesn't have any errors. (Collapsing shouldn't apply in the case // of error messages.) if (fs.className.match(CollapsedFieldsets.collapse_re) && !CollapsedFieldsets.fieldset_has_errors(fs)) { collapsed_seen = true; // Give it an additional class, used by CSS to hide it. fs.className += ' ' + CollapsedFieldsets.collapsed_class; // (<a id="fieldsetcollapser3" class="collapse-toggle" href="#">Show</a>) var collapse_link = document.createElement('a'); collapse_link.className = 'collapse-toggle'; collapse_link.id = 'fieldsetcollapser' + i; collapse_link.onclick = new Function('CollapsedFieldsets.show('+i+'); return false;'); collapse_link.href = '#'; collapse_link.innerHTML = 'Show'; var h2 = fs.getElementsByTagName('h2')[0]; h2.appendChild(document.createTextNode(' (')); h2.appendChild(collapse_link); h2.appendChild(document.createTextNode(')')); } } if (collapsed_seen) { // Expand all collapsed fieldsets when form is submitted. addEvent(findForm(document.getElementsByTagName('fieldset')[0]), 'submit', function() { CollapsedFieldsets.uncollapse_all(); }); } }, |
this.serializedNodes = []; | init : function(s) { var n, a, i, ir, or, st; for (n in s) this.settings[n] = s[n]; // Setup code formating s = this.settings; // Setup regexps this.inRe = this._arrayToRe(s.indent_elements.split(','), '', '^<(', ')[^>]*'); this.ouRe = this._arrayToRe(s.indent_elements.split(','), '', '^<\\/(', ')[^>]*'); this.nlBeforeRe = this._arrayToRe(s.newline_before_elements.split(','), 'gi', '<(', ')([^>]*)>'); this.nlAfterRe = this._arrayToRe(s.newline_after_elements.split(','), 'gi', '<(', ')([^>]*)>'); this.nlBeforeAfterRe = this._arrayToRe(s.newline_before_after_elements.split(','), 'gi', '<(\\/?)(', ')([^>]*)>'); if (s.invalid_elements != '') this.iveRe = this._arrayToRe(s.invalid_elements.toUpperCase().split(','), 'g', '^(', ')$'); else this.iveRe = null; // Setup separator st = ''; for (i=0; i<s.indent_levels; i++) st += s.indent_char; this.inStr = st; // If verify_html if false force *[*] if (!s.verify_html) { s.valid_elements = '*[*]'; s.extended_valid_elements = ''; } this.fillStr = s.entity_encoding == "named" ? " " : " "; this.idCount = 0; }, |
|
this.handlers = []; this.currentHandler = null; | this.menuCommanders = []; this.currentMenuCommander = null; | GM_BrowserUI.init = function() { GM_log("> GM_BrowserUI.init"); this.handlers = []; this.currentHandler = null; GM_updateVersion(); GM_listen(window, "load", GM_hitch(this, "chromeLoad")); GM_listen(window, "unload", GM_hitch(this, "chromeUnload")); GM_log("< GM_BrowserUI.init");} |
Subsets and Splits
No saved queries yet
Save your SQL queries to embed, download, and access them later. Queries will appear here once saved.