rem
stringlengths
0
126k
add
stringlengths
0
441k
context
stringlengths
15
136k
var result = {};
result = {};
function handleLoad() { GM_log("> ScriptDownloader.handleLoad"); closeDownloadManager(); // validate that we downloaded ok if (!targetFile.exists() || targetFile.fileSize == 0) { alert("The file does not exist or was removed."); GM_log("* downloaded file not found, exiting"); return; } ...
case "includes": case "excludes": script[match[1]].push(match[2]);
case "include": case "exclude": script[match[1]+"s"].push(match[2]);
function handleLoad() { closeDownloadManager(); // validate that we downloaded ok if (!targetFile.exists() || targetFile.fileSize == 0) { alert("The file does not exist or was removed."); return; } // initialize a new script object var script = new Script(); script.id = targetFile.leafName; script.enabled ...
closeDownloadManager();
function handleLoad() { closeDownloadManager(); // validate that we downloaded ok if (!targetFile.exists() || targetFile.fileSize == 0) { alert("The file does not exist or was removed."); return; } // initialize a new script object var script = new Script(); script.filename = targetFile...
if (getAttrib(path[i], 'href') != "") {
if (path[i].nodeName == 'A' && getAttrib(path[i], 'href') != "") {
handleNodeChange : function(editor_id, node, undo_index, undo_levels, visual_aid, any_selection, setup_content) { function selectByValue(select_elm, value, first_index) { first_index = typeof(first_index) == "undefined" ? false : true; if (select_elm) { for (var i=0; i<select_elm.options.length; i++) { var...
if (nodeName == "img" && tinyMCE.getAttrib(path[i], "class").indexOf('mceItemFlash') != -1) { nodeName = "flash"; nodeData = "src: " + path[i].getAttribute('title');
className = tinyMCE.getAttrib(path[i], "class"); if ((nodeName == "img" || nodeName == "span") && className.indexOf('mceItem') != -1) { nodeName = className.replace(/mceItem([a-z]+)/gi, '$1').toLowerCase(); nodeData = path[i].getAttribute('title');
handleNodeChange : function(editor_id, node, undo_index, undo_levels, visual_aid, any_selection, setup_content) { function selectByValue(select_elm, value, first_index) { first_index = typeof(first_index) == "undefined" ? false : true; if (select_elm) { for (var i=0; i<select_elm.options.length; i++) { var...
if (getAttrib(node, 'name').indexOf('mce_') != 0) {
if (getAttrib(node, 'name').indexOf('mce_') != 0 && tinyMCE.getAttrib(node, 'class').indexOf('mceItem') == -1) {
handleNodeChange : function(editor_id, node, undo_index, undo_levels, visual_aid, any_selection, setup_content) { function selectByValue(select_elm, value, first_index) { first_index = typeof(first_index) == "undefined" ? false : true; if (select_elm) { for (var i=0; i<select_elm.options.length; i++) { var...
var colspan = "1", rowspan = "1";
var colspan = "1", rowspan = "1", tdElm;
handleNodeChange : function(editor_id, node, undo_index, undo_levels, visual_aid, any_selection) { var colspan = "1", rowspan = "1"; var inst = tinyMCE.getInstanceById(editor_id); // Reset table controls tinyMCE.switchClass(editor_id + '_table', 'mceButtonNormal'); tinyMCE.switchClass(editor_id + '_row_props', 'm...
tinyMCE.switchClass(editor_id + '_delete_table', 'mceButtonNormal');
handleNodeChange : function(editor_id, node, undo_index, undo_levels, visual_aid, any_selection) { var colspan = "1", rowspan = "1"; var inst = tinyMCE.getInstanceById(editor_id); // Reset table controls tinyMCE.switchClass(editor_id + '_table', 'mceButtonNormal'); tinyMCE.switchClass(editor_id + '_row_props', 'm...
var inst = tinyMCE.getInstanceById(editor_id), self = TinyMCE_LayerPlugin; var le = self._getParentLayer(inst.getFocusElement());
var inst = tinyMCE.getInstanceById(editor_id); var le = this._getParentLayer(inst.getFocusElement());
handleNodeChange : function(editor_id, node, undo_index, undo_levels, visual_aid, any_selection) { var inst = tinyMCE.getInstanceById(editor_id), self = TinyMCE_LayerPlugin; var le = self._getParentLayer(inst.getFocusElement()); var p = tinyMCE.getParentElement(inst.getFocusElement(), 'div,p,img'); tinyMCE.switchC...
html+='</td></tr></table>';return{delta_width:0,delta_height:20,html:html};},handleNodeChange:function(editor_id,node){tinyMCE.switchClass(editor_id+'_bold','mceButtonNormal');tinyMCE.switchClass(editor_id+'_italic','mceButtonNormal');tinyMCE.switchClass(editor_id+'_underline','mceButtonNormal');tinyMCE.switchClass(edi...
var TinyMCE_SimpleTheme={_buttonMap:'bold,bullist,cleanup,italic,numlist,redo,strikethrough,underline,undo',getEditorTemplate:function(){var html='';html+='<table class="mceEditor" border="0" cellpadding="0" cellspacing="0" width="{$width}" height="{$height}">';html+='<tr><td align="center">';html+='<span id="{$editor_...
html+='</td></tr></table>';return{delta_width:0,delta_height:20,html:html};},handleNodeChange:function(editor_id,node){tinyMCE.switchClass(editor_id+'_bold','mceButtonNormal');tinyMCE.switchClass(editor_id+'_italic','mceButtonNormal');tinyMCE.switchClass(editor_id+'_underline','mceButtonNormal');tinyMCE.switchClass(edi...
d.setMonth(parseInt(bits[2], 10) - 1);
handler: function(bits) { var d = new Date(); d.setYear(parseInt(bits[1])); d.setDate(parseInt(bits[3], 10)); d.setMonth(parseInt(bits[2], 10) - 1); return d; }
document.getElementById(cid).innerHTML = xmlHttp.responseText;
var serverResponse = document.createElement("div"); serverResponse.innerHTML = xmlHttp.responseText; tempPageElements = serverResponse.getElementsByTagName("div"); document.getElementById(cid).innerHTML = tempPageElements[0].innerHTML;
function handleStateChange() { if(xmlHttp.readyState == 4) { if(xmlHttp.status == 200) { //alert("The server replied with: " + xmlHttp.responseText); //alert(document.getElementById('77')); document.getElementById(cid).innerHTML = xmlHttp.responseText; // clone the ...
alert(cid);
handleSuccess:function(o) { var cid = o.argument[0]; alert(cid); if(o.responseText != undefined){ alert(o.responseText); // create a temporary div element to store the responseText... var serverResponse = document.createElement("div"); // ... and stor...
alert(o.responseText);
handleSuccess:function(o) { var cid = o.argument[0]; alert(cid); if(o.responseText != undefined){ alert(o.responseText); // create a temporary div element to store the responseText... var serverResponse = document.createElement("div"); // ... and stor...
el.className = 'mceItemAnchor';
tinyMCE.addCSSClass(el, 'mceItemAnchor');
handleVisualAid : function(el, deep, state, inst, skip_dispatch) { if (!el) return; if (!skip_dispatch) tinyMCE.dispatchCallback(inst, 'handle_visual_aid_callback', 'handleVisualAid', el, deep, state, inst); var tableElement = null; switch (el.nodeName) { case "TABLE": var oldW = el.style.width; var ol...
regEx = new RegExp("\\b" + arguments[i] + "\\b"); if(!regEx.test(element.className)) return false;
if((typeof arguments[i] == 'object') && (arguments[i].constructor == Array)) { for(var j = 0; j < arguments[i].length; j++) { regEx = new RegExp("(^|\\s)" + arguments[i][j] + "(\\s|$)"); if(!regEx.test(element.className)) return false; } } else { regEx = new RegExp("(^|\\s)" + arguments[i] + "(\\s|$)"); if(!regEx.test(...
has: function(element) { element = $(element); if(!element || !element.className) return false; var regEx; for(var i = 1; i < arguments.length; i++) { regEx = new RegExp("\\b" + arguments[i] + "\\b"); if(!regEx.test(element.className)) return false; } return true; },
regEx = new RegExp("\\b" + arguments[i][j] + "\\b");
regEx = new RegExp("(^|\\s)" + arguments[i][j] + "(\\s|$)");
has_any: function(element) { element = $(element); if(!element || !element.className) return false; var regEx; for(var i = 1; i < arguments.length; i++) { if((typeof arguments[i] == 'object') && (arguments[i].constructor == Array)) { for(var j = 0; j < arguments[i].leng...
regEx = new RegExp("\\b" + arguments[i] + "\\b");
regEx = new RegExp("(^|\\s)" + arguments[i] + "(\\s|$)");
has_any: function(element) { element = $(element); if(!element || !element.className) return false; var regEx; for(var i = 1; i < arguments.length; i++) { if((typeof arguments[i] == 'object') && (arguments[i].constructor == Array)) { for(var j = 0; j < arguments[i].leng...
element = $(element); if (!element) return; var a = element.className.split(' '); for (var i = 0; i < a.length; i++) { if (a[i] == className) return true; } return false;
if (!(element = $(element))) return; return Element.classNames(element).include(className);
hasClassName: function(element, className) { element = $(element); if (!element) return; var a = element.className.split(' '); for (var i = 0; i < a.length; i++) { if (a[i] == className) return true; } return false; },
};
}
Element.prototype.hasStyleClass = function(className) { return this.className.indexOf(className) != -1;};
function hasStyleClass(element, className) { return ( element.className.indexOf(className) != -1 ); }
Element.prototype.hasStyleClass = function(className) { return this.className.indexOf(className) != -1; };
function hasStyleClass(element, className){ return ( element.className.indexOf(className) != -1 );}
rootNode = childList.item(1); childList = rootNode.childNodes;
function hc_noderemovechild() { var success; if(checkInitialization(builder, "hc_noderemovechild") != null) return; var doc; var rootNode; var childList; var childToRemove; var removedChild; var parentNode; var docRef = null; if (typeof(this.doc) != 'undefined') { ...
var hex = this.match('^#?(\\w{1,2})(\\w{1,2})(\\w{1,2})$'); if (!hex) return false;
if (this.length != 4) return false;
hexToRgb: function(array){ var hex = this.match('^#?(\\w{1,2})(\\w{1,2})(\\w{1,2})$'); if (!hex) return false; var rgb = []; for (var i = 1; i < 4; i++){ if (hex[i].length == 1) hex[i] += hex[i]; rgb.push(parseInt(hex[i], 16)); } return array ? rgb : 'rgb('+rgb.join(',')+')'; }
if (hex[i].length == 1) hex[i] += hex[i]; rgb.push(parseInt(hex[i], 16));
if (this[i].length == 1) this[i] += this[i]; rgb.push(parseInt(this[i], 16));
hexToRgb: function(array){ var hex = this.match('^#?(\\w{1,2})(\\w{1,2})(\\w{1,2})$'); if (!hex) return false; var rgb = []; for (var i = 1; i < 4; i++){ if (hex[i].length == 1) hex[i] += hex[i]; rgb.push(parseInt(hex[i], 16)); } return array ? rgb : 'rgb('+rgb.join(',')+')'; }
if (text.substr(0, 1) != "&") { cell.appendChild(document.createTextNode(text)); } else { cell.innerHTML = text; }
cell.innerHTML = "<div unselectable='on'>" + text + "</div>";
var hh = function (text, cs, navtype) { cell = Calendar.createElement("td", row); cell.colSpan = cs; cell.className = "button"; if (navtype != 0 && Math.abs(navtype) <= 2) cell.className += " nav"; Calendar._add_evs(cell); cell.calendar = cal; cell.navtype = navtype; if (text.substr(0, 1) != "&") { cell.ap...
Element.hide(this.update);
hide: function() { if(this.iefix) Element.hide(this.iefix); Element.hide(this.update); },
collapse_link.innerHTML = 'Show';
collapse_link.innerHTML = gettext('Show');
hide: function(fieldset_index) { var fs = document.getElementsByTagName('fieldset')[fieldset_index]; // Add the class name that causes the "display: none". fs.className += ' ' + CollapsedFieldsets.collapsed_class; // Toggle the "Hide" link to a "Show" link var collapse_link = document.getElementById('fieldsetcoll...
this.stopIndicator();
hide: function() { if(Element.getStyle(this.update, 'display')!='none') this.options.onHide(this.element, this.update); if(this.iefix) Element.hide(this.iefix); },
function hide(s) { if (!s) return; s.style.display = "none";
HTMLElement.prototype.hide = function() { this.style.display = 'none';
function hide(s) { if (!s) return; s.style.display = "none";}
if(this.update.style.display=='') this.options.onHide(this.element, this.update);
this.stopIndicator(); if(Element.getStyle(this.update, 'display')!='none') this.options.onHide(this.element, this.update);
hide: function() { if(this.update.style.display=='') this.options.onHide(this.element, this.update); if(this.iefix) Element.hide(this.iefix); },
HTMLElement.prototype.hide = function() { this.style.display = 'none';
function hide(n) { n.style.display = 'none';
HTMLElement.prototype.hide = function() { this.style.display = 'none';}
document.getElementById( 'input_fake' ).style.display = 'none';
function hide_input( ){ document.getElementById( 'input_file' ).style.display = 'none'; document.getElementById( 'input_disc' ).style.display = 'none'; document.getElementById( 'input_network' ).style.display = 'none';}
},
}
hideMenus : function() { var e = tinyMCE.lastSelectedMenuBtn; if (tinyMCE.lastMenu) { tinyMCE.lastMenu.hide(); tinyMCE.lastMenu = null; } if (e) { tinyMCE.switchClass(e, tinyMCE.lastMenuBtnClass); tinyMCE.lastSelectedMenuBtn = null; } },
highlight : function(element) { var highLightColor = "yellow"; var originalColor = Element.getStyle(element, "background-color");
highlight : function(element) { var highLightColor = "yellow"; if (element.originalColor == undefined) { element.originalColor = Element.getStyle(element, "background-color"); }
highlight : function(element) { var highLightColor = "yellow"; var originalColor = Element.getStyle(element, "background-color"); Element.setStyle(element, {"background-color" : highLightColor}); window.setTimeout(function() { if(element.document != undefined && element.doc...
if(element.document != undefined && element.document==null) return; Element.setStyle(element, {"background-color" : originalColor});
if (element.document != undefined && element.document == null) { return; } Element.setStyle(element, {"background-color" : element.originalColor});
highlight : function(element) { var highLightColor = "yellow"; var originalColor = Element.getStyle(element, "background-color"); Element.setStyle(element, {"background-color" : highLightColor}); window.setTimeout(function() { if(element.document != undefined && element.doc...
if (element.document != undefined && element.document == null) {
if (!element.parentNode) {
highlight : function(element) { var highLightColor = "yellow"; if (element.originalColor == undefined) { // avoid picking up highlight element.originalColor = Element.getStyle(element, "background-color"); } Element.setStyle(element, {"background-color" : highLightColor}); ...
}, 300);
}, 200);
highlight : function(element) { var highLightColor = "yellow"; var originalColor = Element.getStyle(element, "background-color"); Element.setStyle(element, {"background-color" : highLightColor}); window.setTimeout(function() { Element.setStyle(element, {"background-color" : or...
if(!element.document) return;
if(element.document != undefined && element.document==null) return;
highlight : function(element) { var highLightColor = "yellow"; var originalColor = Element.getStyle(element, "background-color"); Element.setStyle(element, {"background-color" : highLightColor}); window.setTimeout(function() { if(!element.document) return; Element.se...
elementSetStyle(element, {"background-color" : highLightColor});
elementSetStyle(element, {"backgroundColor" : highLightColor});
highlight : function(element) { var highLightColor = "yellow"; if (element.originalColor == undefined) { // avoid picking up highlight element.originalColor = elementGetStyle(element, "background-color"); } elementSetStyle(element, {"background-color" : highLightColor}); ...
if (!element.parentNode) { return; } elementSetStyle(element, {"background-color" : element.originalColor});
try { if (!element.parentNode) { return; } elementSetStyle(element, {"backgroundColor" : element.originalColor}); } catch (e) {}
highlight : function(element) { var highLightColor = "yellow"; if (element.originalColor == undefined) { // avoid picking up highlight element.originalColor = elementGetStyle(element, "background-color"); } elementSetStyle(element, {"background-color" : highLightColor}); ...
element.originalColor = Element.getStyle(element, "background-color");
element.originalColor = elementGetStyle(element, "background-color");
highlight : function(element) { var highLightColor = "yellow"; if (element.originalColor == undefined) { // avoid picking up highlight element.originalColor = Element.getStyle(element, "background-color"); } Element.setStyle(element, {"background-color" : highLightColor}); ...
Element.setStyle(element, {"background-color" : highLightColor});
elementSetStyle(element, {"background-color" : highLightColor});
highlight : function(element) { var highLightColor = "yellow"; if (element.originalColor == undefined) { // avoid picking up highlight element.originalColor = Element.getStyle(element, "background-color"); } Element.setStyle(element, {"background-color" : highLightColor}); ...
Element.setStyle(element, {"background-color" : element.originalColor});
elementSetStyle(element, {"background-color" : element.originalColor});
highlight : function(element) { var highLightColor = "yellow"; if (element.originalColor == undefined) { // avoid picking up highlight element.originalColor = Element.getStyle(element, "background-color"); } Element.setStyle(element, {"background-color" : highLightColor}); ...
highlight : function(element) { var highLightColor = "yellow"; if (element.originalColor == undefined) { element.originalColor = elementGetStyle(element, "background-color"); } elementSetStyle(element, {"backgroundColor" : highLightColor}); window.setTimeout(function() { try { if (!element.parentNode) { return; } elem...
function highlight(element) { var highLightColor = "yellow"; if (element.originalColor == undefined) { element.originalColor = elementGetStyle(element, "background-color");
highlight : function(element) { var highLightColor = "yellow"; if (element.originalColor == undefined) { // avoid picking up highlight element.originalColor = elementGetStyle(element, "background-color"); } elementSetStyle(element, {"backgroundColor" : highLightColor}); ...
elementSetStyle(element, {"backgroundColor" : highLightColor}); window.setTimeout(function() { try { if (!element.parentNode) { return; } elementSetStyle(element, {"backgroundColor" : element.originalColor}); } catch (e) {} }, 200); }
highlight : function(element) { var highLightColor = "yellow"; if (element.originalColor == undefined) { // avoid picking up highlight element.originalColor = elementGetStyle(element, "background-color"); } elementSetStyle(element, {"backgroundColor" : highLightColor}); ...
addFocusHandlers(document.getElementsByTagName("select"));
function highlightFormElements() { // add input box highlighting addFocusHandlers(document.getElementsByTagName("input")); addFocusHandlers(document.getElementsByTagName("select")); addFocusHandlers(document.getElementsByTagName("textarea"));}
prevClickedDOMObj.style.color=lastClickedColor; prevClickedDOMObj.style.backgroundColor=lastClickedBgColor;
if (prevClickedDOMObj) { prevClickedDOMObj.style.color=lastClickedColor; prevClickedDOMObj.style.backgroundColor=lastClickedBgColor; }
function highlightObjLink(nodeObj) { if (!HIGHLIGHT || nodeObj==null || nodeObj.maySelect==false) {//node deleted in DB return; } if (browserVersion == 1 || browserVersion == 3) { var clickedDOMObj = getElById('itemTextLink'+nodeObj.id); if (clickedDOMObj != null) { if (lastClicked != null) { ...
var rows = table.getElementsByTagName("tr");
rows = table.getElementsByTagName("tr");
function highlightTableRows(tableId) { var previousClass = null; var table = document.getElementById(tableId); var tbody = table.getElementsByTagName("tbody")[0]; if (tbody == null) { var rows = table.getElementsByTagName("tr"); } else { var rows = tbody.getElementsByTagName("tr"); } ...
var rows = tbody.getElementsByTagName("tr");
rows = tbody.getElementsByTagName("tr");
function highlightTableRows(tableId) { var previousClass = null; var table = document.getElementById(tableId); var tbody = table.getElementsByTagName("tbody")[0]; if (tbody == null) { var rows = table.getElementsByTagName("tr"); } else { var rows = tbody.getElementsByTagName("tr"); } ...
http.setRequestHeader( 'Hop-Share', hop_serialize_share_env() );
http.setRequestHeader( 'Hop-Env', hop_serialize_request_env() );
function hop( service, success, failure, sync ) { if( success == true ) { location.href = service; return true; } else { resume_success = success; resume_failure = failure; } var http = hop_make_xml_http_request(); var vis = hop_anim( service ); document.body.appendChild( vis ); http.o...
http.setRequestHeader( 'Hop-Share', hop_serialize_share_env() );
function hop( service, success, failure, sync ) { if( success == true ) { location.href = service; return true; } else { resume_success = success; resume_failure = failure; } var http = hop_make_xml_http_request(); var vis = hop_anim( service ); document.body.appendChild( vis ); http.o...
return obj.attachEvent( "on" + event, proc );
return obj.attachEvent( "on" + event, function(_) {return proc(window.event)});
hop_add_event_listener = function( obj, event, proc, capture ) { return obj.attachEvent( "on" + event, proc ); }
return obj.attachEvent( "on" + event, function(_) {return proc(window.event)});
var p = function(_) {return proc(window.event)}; var i = "on" + event + "hdl"; if( obj[ i ] == undefined ) obj[ i ] = []; obj[ i ][ proc ] = p; return obj.attachEvent( "on" + event, p );
hop_add_event_listener = function( obj, event, proc, capture ) { return obj.attachEvent( "on" + event, function(_) {return proc(window.event)}); }
if( item instanceof HTMLCollection ) return hop_serialize_array( item );
function hop_bigloo_serialize( item ) { var tname = typeof item; if( (item instanceof String) || (tname == "string") ) return hop_serialize_string( '"', item ); if( (typeof item) == "number" ) return hop_serialize_number( item ); if( (item instanceof Boolean) || (tname == "boolean") ) re...
if( item instanceof HTMLInputElement ) return hop_serialize( item.value ); if( item instanceof HTMLTextAreaElement ) return hop_serialize( item.value ); if( item instanceof HTMLSelectElement ) return hop_serialize( item.value );
function hop_bigloo_serialize( item ) { var tname = typeof item; if( (item instanceof String) || (tname == "string") ) return hop_serialize_string( '"', item ); if( (typeof item) == "number" ) return hop_serialize_number( item ); if( (item instanceof Boolean) || (tname == "boolean") ) re...
if( (HTMLCollection != undefined) && (item instanceof HTMLCollection) ) return hop_serialize_array( item ); if( (HTMLInputElement != undefined) && (item instanceof HTMLInputElement) ) return hop_serialize( item.value ); if( (HTMLTextAreaElement != undefined) && (item instanceof HTMLTextAreaElement) ) return hop_seria...
function hop_bigloo_serialize( item ) { var tname = typeof item; if( (item instanceof String) || (tname == "string") ) return hop_serialize_string( '"', item ); if( (typeof item) == "number" ) return hop_serialize_number( item ); if( (item instanceof Boolean) || (tname == "boolean") ) re...
if( (item instanceof String) || (tname == "string") ) return hop_serialize_string( '"', item );
if( (item instanceof String) || (tname == "string") ) { if( sc_isSymbol_immutable( item ) ) { return "'" + hop_serialize_string( '"', sc_symbol2string_immutable( item ) ); } else { return hop_serialize_string( '"', item ); } }
function hop_bigloo_serialize( item ) { var tname = typeof item; if( (item instanceof String) || (tname == "string") ) return hop_serialize_string( '"', item ); if( (typeof item) == "number" ) return hop_serialize_number( item ); if( (item instanceof Boolean) || (tname == "boolean") ) re...
return hop_serialize( item.value );
return hop_bigloo_serialize( item.value );
function hop_bigloo_serialize( item ) { var tname = typeof item; if( (item instanceof String) || (tname == "string") ) return hop_serialize_string( '"', item ); if( (typeof item) == "number" ) return hop_serialize_number( item ); if( (item instanceof Boolean) || (tname == "boolean") ) re...
return hop_serialize( false );
return hop_bigloo_serialize( false );
function hop_bigloo_serialize( item ) { var tname = typeof item; if( (item instanceof String) || (tname == "string") ) return hop_serialize_string( '"', item ); if( (typeof item) == "number" ) return hop_serialize_number( item ); if( (item instanceof Boolean) || (tname == "boolean") ) re...
res += hop_serialize( l.car );
res += hop_bigloo_serialize( l.car );
function hop_bigloo_serialize_pair( l ) { var res = ""; var len = 0; while (sc_isPair( l ) ) { res += hop_serialize( l.car ); l = l.cdr; len++; } if( l == null ) { return hop_serialize_word( len + 1 ) + res + "."; } else { return hop_serialize_word( len + 1 ) + res + hop_serializ...
return hop_serialize_word( len + 1 ) + res + hop_serialize( l );
return hop_serialize_word( len + 1 ) + res + hop_bigloo_serialize( l );
function hop_bigloo_serialize_pair( l ) { var res = ""; var len = 0; while (sc_isPair( l ) ) { res += hop_serialize( l.car ); l = l.cdr; len++; } if( l == null ) { return hop_serialize_word( len + 1 ) + res + "."; } else { return hop_serialize_word( len + 1 ) + res + hop_serializ...
return hop_serialize_word( len ) + res;
return hop_serialize_word( len + 1 ) + res + hop_serialize( l );
function hop_bigloo_serialize_pair( l ) { var res = ""; var len = 0; while (sc_isPair( l ) ) { res += hop_serialize( l.car ); l = l.cdr; len++; } if( l == null ) { return hop_serialize_word( len + 1 ) + res + "."; } else { return hop_serialize_word( len ) + res; }}
pre.className = "hop_debug";
pre.className = "hop_debug_pre";
function hop_debug_get_container() { var pre = document.getElementById( "hop_debug_content" ); var win = document.getElementById( "hop_debug" ); if( pre == null ) { var div = document.createElement( "div" ); pre = document.createElement( "pre" ); div.id = "hop_debug_div"; div.className =...
win = hop_iwindow_open( "hop_debug", div, "hop_debug", false, 320, 200 );
win = hop_iwindow_open( "hop_debug", div, "hop_debug", false, 320, 200, 10, 10 );
function hop_debug_get_container() { var pre = document.getElementById( "hop_debug_content" ); var win = document.getElementById( "hop_debug" ); if( pre == null ) { var div = document.createElement( "div" ); pre = document.createElement( "pre" ); div.id = "hop_debug_div"; div.className =...
t = t.replace( /<body[^>]*>/g, "<div style='background: #f7f7f7; font-family: sans serif; -moz-opacity: 0.97'>" );
t = t.replace( /<body[^>]*>/g, "<div style='background: transparent; font-family: sans serif; -moz-opacity: 0.97'>" );
function hop_default_failure( http ) { var t = http.responseText; var div = document.getElementById( "hop_default_failure" ); t = t.replace( /<!DOCTYPE[^>]*>/g, "" ); t = t.replace( /<(head|meta|link)[^>]*>/g, "<div style='display: none'>" ); t = t.replace( /<\/(head|meta|link)>/g, "</div>" ); t = t.replace...
t = t.replace( /&lt;/g, "<" ); t = t.replace( /&gt;/g, ">" );
function hop_default_failure( http ) { var t = http.responseText; var div = document.getElementById( "hop_default_failure" ); t = t.replace( /<!DOCTYPE[^>]*>/g, "" ); t = t.replace( /<head[^>]*>/g, "<div style='display: none'>" ); t = t.replace( /<\/head>/g, "</div>" ); t = t.replace( /<(meta|link)[^>]*>/g,...
t = t.replace( /<(head|meta|link)[^>]*>/g, "<div style='display: none'>" ); t = t.replace( /<\/(head|meta|link)>/g, "</div>" );
t = t.replace( /<head[^>]*>/g, "<div style='display: none'>" ); t = t.replace( /<\/head>/g, "</div>" ); t = t.replace( /<(meta|link)[^>]*>/g, "<span style='display: none'></span>" );
function hop_default_failure( http ) { var t = http.responseText; var div = document.getElementById( "hop_default_failure" ); t = t.replace( /<!DOCTYPE[^>]*>/g, "" ); t = t.replace( /<(head|meta|link)[^>]*>/g, "<div style='display: none'>" ); t = t.replace( /<\/(head|meta|link)>/g, "</div>" ); t = t.replace...
div.style.setProperty( "z-index", "100", "" );
div.style.setProperty( "z-index", "10000", "" );
function hop_default_failure( http ) { var t = http.responseText; var div = document.getElementById( "hop_default_failure" ); t = t.replace( /<!DOCTYPE[^>]*>/g, "" ); t = t.replace( /<(head|meta|link)[^>]*>/g, "<div style='display: none'>" ); t = t.replace( /<\/(head|meta|link)>/g, "</div>" ); t = t.replace...
char=e.charCode; switch (char) {
c=e.charCode; switch (c) {
function hop_edit_keypress_hdlr(e, id){ if (e==undefined) e=window.event; if (e.ctrlKey) { var propagate=false, char=e.charCode; switch (char) { case 98: hop_edit_action(id, "bold"); break; case 105: hop_edit_action(id, "italic"); break; case 117: hop_edit_action(id, "underline"); break; default: pro...
e.preventDefault(); e.stopPropagation();
hop_stop_propagation(e);
function hop_edit_keypress_hdlr(e, id){ if (e.ctrlKey) { var propagate=false, char=e.charCode; switch (char) { case 98: hop_edit_action(id, "bold"); break; case 105: hop_edit_action(id, "italic"); break; case 117: hop_edit_action(id, "underline"); break; case 113: hop_edit_update_interface2(id); break; ...
function hop_filebrowse( service, obj, width, height, event, onselect ) {
function hop_filebrowse( service, title, ident, value, path, multiselect, clientX, clientY, width, height ) {
function hop_filebrowse( service, obj, width, height, event, onselect ) { var x = window.innerWidth/2 - width/2; var y = event.clientY + 20; if( (y + height) > window.innerHeight ) y = window.innerHeight - height; obj.onselect = onselect; hop_iwindow_open( "file browser", service( obj.id, obj.value ), o...
var y = event.clientY + 20;
var y = clientY + 20; var wident = ident + "-window";
function hop_filebrowse( service, obj, width, height, event, onselect ) { var x = window.innerWidth/2 - width/2; var y = event.clientY + 20; if( (y + height) > window.innerHeight ) y = window.innerHeight - height; obj.onselect = onselect; hop_iwindow_open( "file browser", service( obj.id, obj.value ), o...
obj.onselect = onselect; hop_iwindow_open( "file browser", service( obj.id, obj.value ), obj.value,
hop_iwindow_open( wident, service( ident, wident, value, path, multiselect ), title,
function hop_filebrowse( service, obj, width, height, event, onselect ) { var x = window.innerWidth/2 - width/2; var y = event.clientY + 20; if( (y + height) > window.innerHeight ) y = window.innerHeight - height; obj.onselect = onselect; hop_iwindow_open( "file browser", service( obj.id, obj.value ), o...
if( event.which == 9 ) {
if( hop_event_key_code( event ) == 9 ) {
function hop_fileselect_keypress( service, obj, event, onreturn ) { if( event.which == 9 ) { hop_stop_propagation( event, false ); if( !hop_fileselect_init ) hop_fileselect_init = obj.value; if( hop_fileselect_count == -1 ) { with_hop( service( obj.value ), function( v ) { hop_filese...
if( event.which == 13 ) {
if( hop_event_key_code( event ) == 13 ) {
function hop_fileselect_keypress( service, obj, event, onreturn ) { if( event.which == 9 ) { hop_stop_propagation( event, false ); if( !hop_fileselect_init ) hop_fileselect_init = obj.value; if( hop_fileselect_count == -1 ) { with_hop( service( obj.value ), function( v ) { hop_filese...
function hop_fileselect_keypress( service, obj, event ) {
function hop_fileselect_keypress( service, obj, event, onreturn ) {
function hop_fileselect_keypress( service, obj, event ) { if( event.which == 9 ) { hop_stop_propagation( event, false ); if( !hop_fileselect_init ) hop_fileselect_init = obj.value; if( hop_fileselect_count == -1 ) { with_hop( service( obj.value ), function( v ) { hop_fileselect_compl...
if( obj.onchange ) { obj.onchange(); }
hop_stop_propagation( event, false ); obj.onreturn = onreturn; obj.onreturn();
function hop_fileselect_keypress( service, obj, event ) { if( event.which == 9 ) { hop_stop_propagation( event, false ); if( !hop_fileselect_init ) hop_fileselect_init = obj.value; if( hop_fileselect_count == -1 ) { with_hop( service( obj.value ), function( v ) { hop_fileselect_compl...
HopDrag.init(el);
var h = document.getElementById(id + "-handle"); HopDrag.init(el, h);
function hop_float_window_init(id, inframe){ var el = document.getElementById(id); HopDrag.init(el); el.inFrame = inframe;}
obj.style.background = colors[ i ];
function hop_fx_fade_background( obj, delay, step, colors ) { var it; var i = 0; var func = function() { i++; obj.style.background = colors[ i ]; return (i < colors.length); } obj.style.background = colors[ i ]; it = setInterval( function() { clearInterval( it ); ...
paned.pan1.style.height = fraction;
hop_style_set( paned.pan1, "height", fraction );
function hop_hpaned_fraction_set( paned, fraction ) { if( (fraction instanceof String) || (typeof fraction == "string") ) { paned.pan1.style.height = fraction; } else { if( (fraction < 0) || (fraction > 100) ) { return; } paned.pan1.style.height = fraction + "%"; } if( paned.fraction != fra...
paned.pan1.style.height = fraction + "%";
hop_style_set( paned.pan1, "height", fraction + "%" );
function hop_hpaned_fraction_set( paned, fraction ) { if( (fraction instanceof String) || (typeof fraction == "string") ) { paned.pan1.style.height = fraction; } else { if( (fraction < 0) || (fraction > 100) ) { return; } paned.pan1.style.height = fraction + "%"; } if( paned.fraction != fra...
if( (fraction < 0) || (fraction > 100) ) { return;
if( (fraction instanceof String) || (typeof fraction == "string") ) { paned.pan1.style.height = fraction; } else { if( (fraction < 0) || (fraction > 100) ) { return; } paned.pan1.style.height = fraction + "%";
function hop_hpaned_fraction_set( paned, fraction ) { if( (fraction < 0) || (fraction > 100) ) { return; } paned.pan1.style.height = fraction + "%"; if( paned.fraction != fraction ) { paned.fraction = fraction; if( paned.onresize != undefined ) { paned.onresize(); } }}
paned.pan1.style.height = fraction + "%";
function hop_hpaned_fraction_set( paned, fraction ) { if( (fraction < 0) || (fraction > 100) ) { return; } paned.pan1.style.height = fraction + "%"; if( paned.fraction != fraction ) { paned.fraction = fraction; if( paned.onresize != undefined ) { paned.onresize(); } }}
var val = e.clientY - hop_element_y( paned );
var val = hop_event_mouse_y( e ) - hop_element_y( paned );
function hop_hpaned_mousemove( e, paned ) { var val = e.clientY - hop_element_y( paned ); paned.pan1.style.height = val;}
paned.pan1.style.height = val;
hop_style_set( paned.pan1, "height", val );
function hop_hpaned_mousemove( e, paned ) { var val = e.clientY - hop_element_y( paned ); paned.pan1.style.height = val;}
img.classname = "hop-busy-anim";
function hop_inner( method, service, success, failure, sync, mute ) { var http = new XMLHttpRequest(); var vis = false; if( !mute ) { vis = document.createElement( "div" ); vis.style.setProperty( "position", "absolute", "" ); vis.style.setProperty( "top", "5", "" ); vis.style.setProperty( "rig...
return (obj instanceof HTMLElement); }
return (obj instanceof HTMLElement) || (obj.__proto__ == ifproto); }
hop_is_html_element = function hop_is_html_element( obj ) { return (obj instanceof HTMLElement); }
if( win.close ) { win.close( win ); } else { win.style.display = "none"; }
win.style.display = "none"; if( win.onclose ) win.onclose();
function hop_iwindow_close( id ) { var win = (id instanceof HTMLElement) ? id : document.getElementById( id ); if( win.close ) { win.close( win ); } else { win.style.display = "none"; }}
win.style.display = "none";
hop_style_set( win, "display", "none" );
function hop_iwindow_close( id ) { var win = hop_is_html_element( id ) ? id : document.getElementById( id ); win.style.display = "none"; /* user event */ if( win.onclose ) win.onclose();}
var win = ((id instanceof HTMLElement) || (id instanceof Object && id.propertyIsEnumerable( "innerHTML" ))) ? id : document.getElementById( id );
var win = hop_isHTMLElement( id ) ? id : document.getElementById( id );
function hop_iwindow_close( id ) { var win = ((id instanceof HTMLElement) || (id instanceof Object && id.propertyIsEnumerable( "innerHTML" ))) ? id : document.getElementById( id ); win.style.display = "none"; /* user event */ if( win.onclose ) win.onclose();}
var win = (id instanceof HTMLElement) ? id : document.getElementById( id );
var win = ((id instanceof HTMLElement) || (id instanceof Object && id.propertyIsEnumerable( "innerHTML" ))) ? id : document.getElementById( id );
function hop_iwindow_close( id ) { var win = (id instanceof HTMLElement) ? id : document.getElementById( id ); win.style.display = "none"; /* user event */ if( win.onclose ) win.onclose();}
var dx = hop_mouse_x( event ) - win.offsetLeft; var dy = hop_mouse_y( event ) - win.offsetTop;
var dx = hop_event_mouse_x( event ) - win.offsetLeft; var dy = hop_event_mouse_y( event ) - win.offsetTop;
function hop_iwindow_drag( event, win ) { var dx = hop_mouse_x( event ) - win.offsetLeft; var dy = hop_mouse_y( event ) - win.offsetTop; var ocursor = win.el_handle.style.cursor; hop_iwindow_raise( win ); hop_style_set( win.el_main, "height", win.el_main.offsetHeight ); hop_style_set( win.el_main, "width", ...
var nx = (hop_mouse_x( event ) - dx); var ny = (hop_mouse_y( event ) - dy);
var nx = (hop_event_mouse_x( event ) - dx); var ny = (hop_event_mouse_y( event ) - dy);
function hop_iwindow_drag( event, win ) { var dx = hop_mouse_x( event ) - win.offsetLeft; var dy = hop_mouse_y( event ) - win.offsetTop; var ocursor = win.el_handle.style.cursor; hop_iwindow_raise( win ); hop_style_set( win.el_main, "height", win.el_main.offsetHeight ); hop_style_set( win.el_main, "width", ...
debug( "ny=" + ny + "\n" );
function hop_iwindow_drag( event, win ) { var dx = event.clientX - hop_element_x( win ); var dy = event.clientY - hop_element_y( win ); var ocursor = win.el_handle.style.cursor; hop_iwindow_raise( win ); win.el_main.style.height = win.el_main.offsetHeight; win.el_main.style.width = win.el_main.offsetWidt...
win.el_main.style.height = win.el_content.offsetHeight; win.el_main.style.width = win.el_content.offsetWidth;
win.el_main.style.height = win.el_main.offsetHeight; win.el_main.style.width = win.el_main.offsetWidth;
function hop_iwindow_drag( event, win ) { var dx = event.clientX - hop_element_x( win ); var dy = event.clientY - hop_element_y( win ); var ocursor = win.el_handle.style.cursor; win.el_main.style.height = win.el_content.offsetHeight; win.el_main.style.width = win.el_content.offsetWidth; win.el_body.style.di...
if( win.ondrag ) win.ondrag();
function hop_iwindow_drag( event, win ) { var dx = event.clientX - hop_element_x( win ); var dy = event.clientY - hop_element_y( win ); var ocursor = win.el_handle.style.cursor; win.el_main.style.height = win.el_content.offsetHeight; win.el_main.style.width = win.el_content.offsetWidth; win.el_body.style.di...
var dx = event.clientX - hop_element_x( win ); var dy = event.clientY - hop_element_y( win );
var dx = event.clientX - win.offsetLeft; var dy = event.clientY - win.offsetTop;
function hop_iwindow_drag( event, win ) { var dx = event.clientX - hop_element_x( win ); var dy = event.clientY - hop_element_y( win ); var ocursor = win.el_handle.style.cursor; hop_iwindow_raise( win ); win.el_main.style.height = win.el_main.offsetHeight; win.el_main.style.width = win.el_main.offsetWidt...
debug( "win-drag, clientY=" + event.clientY + " y=" + hop_element_y( win ) + " dy=" + dy + "\n" ); document.onmousemove = function( event ) { if( event == undefined ) event = window.event;
var mousemove = function( event ) {
function hop_iwindow_drag( event, win ) { var dx = event.clientX - hop_element_x( win ); var dy = event.clientY - hop_element_y( win ); var ocursor = win.el_handle.style.cursor; hop_iwindow_raise( win ); win.el_main.style.height = win.el_main.offsetHeight; win.el_main.style.width = win.el_main.offsetWidt...
if( (nx > px) && ((nx + win.offsetWidth) < px + p.offsetWidth) ) {
if( (nx > px) && ((nx + win.offsetWidth) < (px + p.offsetWidth)) ) {
function hop_iwindow_drag( event, win ) { var dx = event.clientX - hop_element_x( win ); var dy = event.clientY - hop_element_y( win ); var ocursor = win.el_handle.style.cursor; hop_iwindow_raise( win ); win.el_main.style.height = win.el_main.offsetHeight; win.el_main.style.width = win.el_main.offsetWidt...
if( (ny > py) && ((ny + win.offsetHeight) < py + p.offsetHeight) ) {
if( (ny > py) && ((ny + win.offsetHeight) < (py + p.offsetHeight)) ) {
function hop_iwindow_drag( event, win ) { var dx = event.clientX - hop_element_x( win ); var dy = event.clientY - hop_element_y( win ); var ocursor = win.el_handle.style.cursor; hop_iwindow_raise( win ); win.el_main.style.height = win.el_main.offsetHeight; win.el_main.style.width = win.el_main.offsetWidt...