Source of “detached.html”.
78 lines, 2.5 KBytes.   Last modified 11:35 pm, 2nd September 2015 PDT.
1 <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" 2 "http://www.w3.org/TR/html4/strict.dtd"> 3 <html> 4 <!-- 5 6 //////////////////////////////////////////////////////////////////////////// 7 // // 8 // Pachylet: Andrew's Web Mail Interface, Version 2 // 9 // // 10 // Copyright (c) 2002-2014 // 11 // // 12 // See http://birrell.org/pachylet/help.php // 13 // // 14 // HTML and JavaScript for detached viewing of messages // 15 // // 16 //////////////////////////////////////////////////////////////////////////// 17 18 --> 19 20 <head> 21 <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> 22 <title>Pachylet</title> 23 <link href="pachyletV2.css" rel=stylesheet> 24 <script type="text/javascript" src="/support/common.js"></script> 25 <script type="text/javascript" src="pachyletV2.js"></script> 26 <script type="text/javascript"> 27 28 function reportError(str) { 29 showContents("<b>" + str + "</b><br>&nbsp;"); 30 } 31 32 function doLogout() { 33 } 34 35 function keepContact(email, person) { 36 alert("\"keep\"isn't implemented in a detached message window"); 37 return false; 38 } 39 40 function initDetached() { 41 user = getQueryArg("user"); 42 theState = new State(new Query("")); 43 theState.selected = parseInt(getQueryArg("m")); 44 theState.selOffset = 0; 45 if (typeof user != "string") { 46 showContents("Missing \"user\" argument"); 47 } else if (isNaN(theState.selected)) { 48 showContents("Argument \"m\" must be an integer"); 49 } else if (theState.selected <= 0) { 50 showContents(noMessageSelected); 51 } else { 52 document.title = "Pachylet (" + user + ") message #" + 53 theState.selected; 54 showSelectedMessage(); 55 } 56 } 57 58 </script> 59 <base target="_blank"> 60 </head> 61 <body class=mainScreen onload="initDetached()"> 62 63 <div class=msg id=msg> 64 <div class=fixedNoWrap id=msgHead>&nbsp;<br>&nbsp;</div> 65 <div id=msgBody></div> 66 </div> 67 68 <div class=npd> 69 <a class=crBtn href="help.html" title="View the documentation">Help</a> 70 <a class=crBtn href="#" title="Scroll to top" 71 onClick="{scroll(0,0); return false;}">Top</a> 72 </div> <!-- npd --> 73 <div class=cr id=creditLine> 74 Pachylet, version 2.2<span class=npd id=creditExtra></span> 75 </div> 76 77 </body> 78 </html>
End of listing