1var windowWidth = 720; 2window.onresize = resizeEditor; 3var assetState="visible"; 4 5function resizeEditor() 6{ 7 //alert("hello2"); 8 var leftover=0; 9 if(document.getElementById("ManifestEditor")){ 10 11 var windowHeight = document.body.offsetHeight; 12 13 var editor= document.getElementById("ManifestEditor"); 14 var myWidth; 15 var myHeight; 16 17 var myWidth = 0, myHeight = 0; 18 if( typeof( window.innerWidth ) == 'number' ) { 19 //Non-IE 20 myWidth = window.innerWidth; 21 myHeight = window.innerHeight; 22 } else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) { 23 //IE 6+ in 'standards compliant mode' 24 myWidth = document.documentElement.clientWidth; 25 myHeight = document.documentElement.clientHeight; 26 } else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) { 27 //IE 4 compatible 28 myWidth = document.body.clientWidth; 29 myHeight = document.body.clientHeight; 30 } 31 //editor.style.width= (myWidth - leftover - 100); 32 //editor.style.height= (myHeight - 200); 33 editor.style.width= (myWidth - leftover - 40); 34 editor.style.height= (500); 35 36 //alert(editor.style.width + " " + editor.style.height); 37 //md.style.width= (myWidth - leftover); 38 } 39 40 41} 42 43function makeBigger() 44{ 45 //inuse.style.display = "block"; 46 //mainmenu.style.display = "none"; 47 //header.style.display = "none"; 48 //editor.style.display = "none"; 49 document.AddSco.submit(); 50 alert("testing"); 51 window.open("EditSco.aspx?id="+document.AddSco.ScoID.value,'Fullscreen',"width=" + (screen.width-100) + ",height=" + (screen.height-100) + ",channelmode=0,dependent=0,directories=0,fullscreen=0,location=0,menubar=0,resizable=0,scrollbars=1,status=1,toolbar=0,top=10,left=10"); 52 //window.location.href = "ListScos.aspx"; 53 //document.AddSco.target="Fullscreen"; 54} 55 56function makeSmaller() 57{ 58 //window.open(location.href,'Smallscreen',"width=" + screen.width + ",height=" + (screen.height-200) + ",channelmode=0,dependent=0,directories=0,fullscreen=0,location=1,menubar=1,resizable=1,scrollbars=1,status=1,toolbar=1,top=0,left=0"); 59 //alert("test"); 60 window.opener.mainmenu.style.display = "block" 61 window.opener.header.style.display = "block" 62 window.opener.editor.style.display = "block"; 63 window.opener.inuse.style.display = "none"; 64 pluginFormSubmit(); 65 window.close(); 66 67 //document.EditSco.target="Smallscreen"; 68 document.EditSco.submit(); 69 opener.location.href = location.href; 70 71} 72 73function hideAssets() 74{ 75 76 77 var myWidth = 0, myHeight = 0; 78 if( typeof( window.innerWidth ) == 'number' ) { 79 //Non-IE 80 myWidth = window.innerWidth; 81 myHeight = window.innerHeight; 82 } else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) { 83 //IE 6+ in 'standards compliant mode' 84 myWidth = document.documentElement.clientWidth; 85 myHeight = document.documentElement.clientHeight; 86 } else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) { 87 //IE 4 compatible 88 myWidth = document.body.clientWidth; 89 myHeight = document.body.clientHeight; 90 } 91 92 if(assetpanel.style.display != 'none'){ 93 assetpanel.style.display='none'; 94 assetpanelbutton.innerHTML = "Show Assets"; 95 document.Content_objPlugIn.width = (myWidth - 05); 96 assetState="hidden"; 97 }else{ 98 assetpanel.style.display='block'; 99 assetpanelbutton.innerHTML = "Hide Assets"; 100 document.Content_objPlugIn.width = (myWidth - 205); 101 assetState="visible"; 102 } 103} 104 105 106function resizeEditorWindow() 107{ 108 var editor= document.getElementById("Content_objPlugIn"); 109 var myWidth; 110 var myHeight; 111 112 var myWidth = 0, myHeight = 0; 113 if( typeof( window.innerWidth ) == 'number' ) { 114 //Non-IE 115 myWidth = window.innerWidth; 116 myHeight = window.innerHeight; 117 } else if( document.documentElement && ( document.documentElement.clientWidth || document.documentElement.clientHeight ) ) { 118 //IE 6+ in 'standards compliant mode' 119 myWidth = document.documentElement.clientWidth; 120 myHeight = document.documentElement.clientHeight; 121 } else if( document.body && ( document.body.clientWidth || document.body.clientHeight ) ) { 122 //IE 4 compatible 123 myWidth = document.body.clientWidth; 124 myHeight = document.body.clientHeight; 125 } 126 if(editor!=null) 127 document.Content_objPlugIn.width= (myWidth - 220); 128 129} 130 131 132function showPanel(button) 133{ 134 135 if(button.id == "contentbuttonTab") 136 { 137 document.getElementById("ContentPanel").style.display = "block"; 138 document.getElementById("MetadataPanel").style.display = "none"; 139 if(document.getElementById("AssetPanel")) 140 document.getElementById("AssetPanel").style.display = "none"; 141 document.getElementById("contentbuttonTab").className = "panelTabSelected"; 142 document.getElementById("metadatabuttonTab").className = "panelTab"; 143 if(document.getElementById("assetbuttonTab")) 144 document.getElementById("assetbuttonTab").className = "panelTab"; 145 if(document.getElementById("MDPanel")) 146 document.getElementById("MDPanel").style.display = "none"; 147 148 } 149 if(button.id == "metadatabuttonTab") 150 { 151 document.getElementById("ContentPanel").style.display = "none"; 152 document.getElementById("MetadataPanel").style.display = "block"; 153 if(document.getElementById("AssetPanel")) 154 document.getElementById("AssetPanel").style.display = "none"; 155 document.getElementById("contentbuttonTab").className = "panelTab"; 156 document.getElementById("metadatabuttonTab").className = "panelTabSelected"; 157 if(document.getElementById("assetbuttonTab")) 158 document.getElementById("assetbuttonTab").className = "panelTab"; 159 if(document.getElementById("MDPanel")) 160 document.getElementById("MDPanel").style.display = "block"; 161 } 162 if(button.id == "assetbuttonTab") 163 { 164 //alert(); 165 document.getElementById("ContentPanel").style.display = "none"; 166 document.getElementById("MetadataPanel").style.display = "none"; 167 document.getElementById("AssetPanel").style.display = "block"; 168 document.getElementById("contentbuttonTab").className = "panelTab"; 169 document.getElementById("metadatabuttonTab").className = "panelTab"; 170 document.getElementById("assetbuttonTab").className = "panelTabSelected"; 171 if(document.getElementById("MDPanel")) 172 document.getElementById("MDPanel").style.display = "none"; 173 } 174 175} 176 177function showPreviewPane(button) 178{ 179 document.getElementById("MetadataPanel").style.display = "none"; 180 document.getElementById("ContentPanel").style.display = "none"; 181 document.getElementById("PreviewPanel").style.display = "block"; 182 183} 184 185function hideSco(button) 186{ 187 if(document.getElementById("ScosPanel").style.display == "none"){ 188 document.getElementById("ScosPanel").style.display = "block"; 189 button.value = "Hide SCOs"; 190 }else{ 191 document.getElementById("ScosPanel").style.display = "none"; 192 button.value = "Show SCOs"; 193 } 194} 195 196function hideAdvanced(button, panel) 197{ 198 if(panel.style.display == "none"){ 199 panel.style.display = "block"; 200 button.value = "Hide Advanced"; 201 }else{ 202 panel.style.display = "none"; 203 button.value = "Show Advanced"; 204 } 205} 206 207function closeEditor() 208{ 209 if(!window.opener) 210 { 211 var url = window.location.toString();
212// if (url.indexOf("?State=") < 0) 213// url += "?State=true"; 214 window.location = url; 215 216 }else{ 217 var url = window.opener.location.toString(); 218// if (url.indexOf("?State=") < 0) 219// url += "?State=true"; 220 window.opener.location = url; 221 window.close(); 222 } 223} 224 225 226 227function editScoFullscreen(sco) 228{ 229 //alert("test"); 230 231 var url = "EditSco.aspx?id=" + sco; 232 window.open(url,'Fullscreen' + sco,"width=" + (screen.width-100) + ",height=" + (screen.height-100) + ",channelmode=0,dependent=0,directories=0,fullscreen=1,location=0,menubar=0,resizable=0,scrollbars=1,status=1,toolbar=0,top=10,left=10"); 233} 234 235function editSco(sco) 236{ 237 var url = "EditSco.aspx?id=" + sco; 238 window.open(url,'Fullscreen' + sco,"resizable=1,scrollbars=1"); 239} 240 241function editMetadata(sco) 242{ 243 var url = "EditScoMetadata.aspx?id=" + sco; 244 window.open(url,'Fullscreen',"width=" + (screen.width-100) + ",height=" + (screen.height-100) + ",channelmode=0,dependent=0,directories=0,fullscreen=0,location=0,menubar=0,resizable=0,scrollbars=1,status=1,toolbar=0,top=10,left=10"); 245} 246 247function editContent(sco) 248{ 249 var url = "EditScoContent.aspx?id=" + sco; 250 window.open(url,'Fullscreen',"width=" + (screen.width-100) + ",height=" + (screen.height-100) + ",channelmode=0,dependent=0,directories=0,fullscreen=0,location=0,menubar=0,resizable=0,scrollbars=1,status=1,toolbar=0,top=10,left=10"); 251} 252 253function limitsize(theform,thelimit){ 254 if (document.all) 255 eval(theform).onkeypress=function(){ return restrictinput(thelimit,event,theform)} 256 else if (ns6) 257 document.body.addEventListener('keypress', function(event) { restrictinput(thelimit,event,theform) }, true); 258} 259 260function popupWindow(url) 261{ 262 window.open(url); 263} 264 265function SendRequest(url, id) 266{ 267 var xmlhttp; 268 /*@cc_on @*/ 269 /*@if (@_jscript_version >= 5) 270 try 271 { 272 xmlhttp=new ActiveXObject("Msxml2.XMLHTTP") 273 } 274 catch (e) 275 { 276 try 277 { 278 xmlhttp=new ActiveXObject("Microsoft.XMLHTTP") 279 } 280 catch (E) 281 { 282 xmlhttp=false 283 } 284 } 285 @else 286 xmlhttp=false 287 @end @*/ 288 if (!xmlhttp) 289 { 290 try 291 { 292 xmlhttp=new XMLHttpRequest(); 293 } 294 catch (e) 295 { 296 xmlhttp=false; 297 } 298 } 299 300 xmlhttp.open("POST", url, false); 301 xmlhttp.setRequestHeader("Content-Type", "application/x-www-form-urlencoded"); 302 xmlhttp.send('ID='+id); 303} 304 305 306 307function showStylesheet() 308{ 309 if (EditSco.Web.checked) 310 { 311 if (EditSco.PdfStylesheet) 312 EditSco.PdfStylesheet.style.display = "none"; 313 if (EditSco.WebStylesheet) 314 EditSco.WebStylesheet.style.display = "block"; 315 if (EditSco.CampusTemplate) 316 EditSco.CampusTemplate.style.display = "block"; 317 } 318 else 319 { 320 if (EditSco.PdfStylesheet) 321 EditSco.PdfStylesheet.style.display = "block"; 322 if (EditSco.WebStylesheet) 323 EditSco.WebStylesheet.style.display = "none"; 324 if (EditSco.CampusTemplate) 325 EditSco.CampusTemplate.style.display = "none"; 326 } 327} 328 329function showPreviewButton() 330{ 331 if(document.getElementById("previewButton")) 332 { 333 document.getElementById("previewButton").style.display = "block"; 334 } 335 336} 337 338function metaData(button) 339{ 340 if(document.getElementById("MetadataPanel").style.display == "none"){ 341 document.getElementById("MetadataPanel").style.display = "block"; 342 button.value = "Hide MetaData"; 343 }else{ 344 document.getElementById("MetadataPanel").style.display = "none"; 345 button.value = "Show MetaData"; 346 } 347}
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.