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 =... |
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 =... |
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... | 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 instance... |
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 instance... |
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.ch... |
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 ]; i... |
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 ]; i... |
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 ]; i... |
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 ), fun... |
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"; ... |
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"; ... |
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-a... |
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-a... |
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... |
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... |
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.getElementB... |
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.getElementB... |
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 ... |
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... |
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... |
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... |
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... |
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.propertyIs... |
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.propertyIs... |
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... |
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... |
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... |
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... |
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... |
"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 = ++Dr... |
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 = ++Ho... | |
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 +... |
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 +... |
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.le... | 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... | 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; ... |
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 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... |
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... |
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... | |
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 ]; titlesHeig... |
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 ]; titlesHeig... |
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... |
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... |
} | 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... | |
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.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 + "%"... |
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); ... |
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"); ... | |
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"... |
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... |
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 (xml... |
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 (xml... |
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/... |
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/... |
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/... |
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/... |
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 = fal... |
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 || ifram... | |
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.va... |
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"... |
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']; } i... |
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']; } i... |
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... |
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")... |
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")... |
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("right... | |
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("... |
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.) ... |
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(','), '', '^<\\/(', ')[^>]*'); th... | |
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 community queries yet
The top public SQL queries from the community will appear here once available.