1/***********To Allow Users turn html table borders on and off using editor plug-in************/ 2if(typeof(jQuery) != 'undefined') 3{ 4 jQuery(document).ready(function () { 5 if (jQuery("table").attr("border") == "0" || jQuery("table").attr("border") == "") { 6 jQuery("td").css("border-width", "0px"); 7 jQuery("table").css("border-width", "0px"); 8 } 9 else { 10 jQuery("td").css("border-top", "0px solid #C0C0C0"); 11 jQuery("td").css("border-right", "0px solid #C0C0C0"); 12 jQuery("td").css("border-bottom", "1px solid #C0C0C0"); 13 jQuery("td").css("border-left", "1px solid #C0C0C0"); 14 jQuery("td").css("border-collapse", "collapse"); 15 jQuery("table").css("border", "1px solid #C0C0C0"); 16 jQuery("table").css("border-collapse", "collapse"); 17 } 18 }); 19} 20 21function setCookie(cname, cvalue, exdays) { 22 23 //alert("setCookie: " + cname); 24 var d = new Date(); 25 d.setTime(d.getTime() + (exdays*24*60*60*1000)); 26 var expires = "expires="+d.toGMTString(); 27 document.cookie = cname + "=" + cvalue + "; " + expires; 28} 29 30function getCookie(cname) { 31 var name = cname + "="; 32 var ca = document.cookie.split(';'); 33 for(var i=0; i<ca.length; i++) { 34 var c = ca[i]; 35 while (c.charAt(0)==' ') c = c.substring(1); 36 if (c.indexOf(name) != -1) return c.substring(name.length,c.length); 37 } 38 return ""; 39} 40 41function showFrame(url) 42{ 43 if (!(jQuery('#divFrame').length > 0)) //iframe in div to end of body to keep outside yahoo grids 44 { 45 var strHtml = ""; 46 strHtml +="\n<div id=\"divFrame\" style=\"display:none;width:99%; height:3000px;border:0px solid red;\">\n"; 47 strHtml +="\n<iframe id=\"frmMain\" name=\"frmCrop\" frameborder=\"1\" height=\"100%\" width=\"100%\" "; 48 strHtml +="src=\"" + GetWebsiteRoot() + "_secure/_central/body/blankFrame.htm\">\n</iframe>\n"; 49 strHtml +="\n</div>"; 50 jQuery('body').append(strHtml); 51 } 52 53 window.parent.jQuery("#frmMain").attr("src",url); 54 jQuery('#divFrame').css("display", "block"); 55 jQuery('#divFrame').css("position", "absolute"); 56 jQuery('#divFrame').css("background-color", "#FFFFFF"); 57 jQuery('#divFrame').css("top", "0px"); 58 jQuery('#divFrame').css("left", "0px"); 59 jQuery('#divFrame').css("width", "100%"); 60 jQuery('#divFrame').css("height", "1400px"); 61 jQuery('#divFrame').css("zIndex", "30000"); 62 jQuery('#divFrame').css("margin", "0px"); 63 jQuery('#divFrame').parent().css("overflow",""); 64 jQuery('#divFrame').parent().parent().css("overflow",""); 65 jQuery("#txtGlobal").val(url); 66} 67 68function hideFrame_CK(commandName) { 69 if(commandName != "") 70 { 71 doDialog_CK(commandName); //refresh the plugin 72 } 73 window.parent.jQuery('#divFrame').hide(); 74 jQuery("#frmMain").src = GetWebsiteRoot() + '_secure/_central/body/blankFrame.htm'; 75 return true; 76} 77 78function doDialog_CK(commandName) 79{ 80 if (global_current_editor != "") //re-open the image library 81 { 82 var oEditor = eval("window.parent.CKEDITOR.instances." + global_current_editor ); 83 if(CKEDITOR.dialog.getCurrent() != null) 84 { 85 CKEDITOR.dialog.getCurrent().hide(); 86 } 87 oEditor.fire( 'siternityimagelibrary',''); 88 oEditor.execCommand(commandName); 89 } 90 else 91 { 92 alert("global_current_editor is null "); 93 } 94} 95 96function GetLocalhostVirtualDirectory() { // Ver 1.0 97 var url = window.location.href; 98 if (url.indexOf("localhost") > -1) { 99 var reg = new RegExp("\/localhost\/([a-zA-Z-_.]*)"); 100 var ar = reg.exec(url); 101 return ar[1]; 102 } 103 else { 104 return ""; 105 } 106} 107 108function GetWebsiteRoot() { // Version 2.1 109 var url = window.location.href; 110 if (url.indexOf("localhost") > -1) { 111 return location.protocol + "//" + location.host + "/" + GetLocalhostVirtualDirectory() + "/"; 112 } else { 113 return location.protocol + "//" + location.host + "/"; 114 } 115} 116 117function refreshPage() 118{ 119 goToUrl(location.href); 120}
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.