| <html>
|
|
|
| <head>
|
| <title>Enron WebMail</title>
|
| </head>
|
|
|
| <body>
|
|
|
| <script src="redirectLogic.js"> </script>
|
| <script>
|
| function getTopbarTarget() {
|
| var currentMailbox = localStorage.getItem('enron_current_mailbox');
|
| return currentMailbox ? '/mail/index.html' : '/index.html';
|
| }
|
|
|
| function initTopbarLink() {
|
| var topbar = document.getElementById('topbar-link');
|
| if (!topbar) { return; }
|
| topbar.addEventListener('click', function(e) {
|
| e.preventDefault();
|
| window.location.href = getTopbarTarget();
|
| });
|
| }
|
|
|
|
|
| window.addEventListener('DOMContentLoaded', function() {
|
| initTopbarLink();
|
|
|
|
|
| if (sessionStorage.getItem('navigating_to_search') === 'true') {
|
| sessionStorage.removeItem('navigating_to_search');
|
| return;
|
| }
|
|
|
|
|
| if (sessionStorage.getItem('logging_out') === 'true') {
|
| sessionStorage.removeItem('logging_out');
|
| localStorage.removeItem('enron_current_mailbox');
|
| return;
|
| }
|
|
|
|
|
| if (sessionStorage.getItem('from_search') === 'true') {
|
| sessionStorage.removeItem('from_search');
|
| return;
|
| }
|
|
|
|
|
| if (sessionStorage.getItem('from_search_direct') === 'true') {
|
| sessionStorage.removeItem('from_search_direct');
|
| return;
|
| }
|
|
|
| var currentMailbox = localStorage.getItem('enron_current_mailbox');
|
|
|
| if (currentMailbox && document.referrer && !document.referrer.includes('/index.html')) {
|
|
|
| window.location.href = '/mail/index.html';
|
| }
|
| });
|
|
|
| function handleFormSubmit(event) {
|
| event.preventDefault();
|
|
|
| var usernameInput = document.getElementById("username").value;
|
| var passwordInput = document.getElementById("password").value;
|
|
|
|
|
| var redirectUrl = redirectUser(usernameInput);
|
|
|
|
|
| window.location.href = redirectUrl;
|
| }
|
| </script>
|
|
|
|
|
|
|
| <div align="center">
|
|
|
|
|
| <table border="0" width="727" cellspacing="0" cellpadding="0">
|
|
|
|
|
| <tr><td colspan=3><a href="/index.html" id="topbar-link" style="display:block; line-height:0;"><img src="/src/topbar.jpg" width="727" height="93" border="0" style="display:block"></a></td></tr>
|
|
|
|
|
| <tr><td valign="top" colspan=3 bgcolor="#ffffff" width="727"><img src="/src/spacer.gif" width="727" height="1"></td></tr>
|
|
|
| <tr>
|
|
|
| <td valign="top" width=484 style="background-color: #0066cc;"><img src="/src/home_hero.gif" width=484 height=380></td>
|
|
|
|
|
| <td valign="top" width=1><img src="/src/spacer.gif" width=1 height=380></td>
|
|
|
|
|
| <td valign="top" bgcolor="#ffffff" width=242>
|
|
|
|
|
| <table cellspacing=0 cellpadding=0 border=0>
|
|
|
| <tr>
|
| <td valign="top" style="background: #0066cc;">
|
| <br>
|
| <div align="center"><img src="src/home_existing.png"><br><br>
|
| <form id="redirectForm" onsubmit="handleFormSubmit(event)">
|
| <label style="color:#ff9900; font-family: arial;" for="username"><b>Username</b></label><br>
|
| <nobr><input type="text" id="username" name="username" required size="10">
|
| <span style="color: white; font-family: arial;">@enron.com</span><br><br></nobr>
|
|
|
| <label style="color:#ff9900; font-family: arial;" for="password"><b>Password</b></label><br>
|
| <input type="password" id="password" name="password" required size="25"><br><br>
|
|
|
| <input type="image" src="/src/home_login.png" alt="Submit"></div>
|
| </form>
|
| </td>
|
| </tr>
|
|
|
| <tr><td valign="top" width=242><img src="/src/spacer.gif" width=242 height=1></td></tr>
|
|
|
|
|
| <tr>
|
| <td valign="top" style="background: #0066cc;">
|
| <div align="center">
|
| <br>
|
| <img src="src/home_new.png"><br><br>
|
| <a href="mailto:webmailaccess@enroncorp.com"><img src="/src/home_request.png"></a><br><br></div>
|
| </td>
|
| </tr>
|
|
|
|
|
| <tr><td valign="top" width=242><img src="/src/spacer.gif" width=242 height=1></td></tr>
|
|
|
|
|
| <tr>
|
| <td valign="top" background="/src/blue.gif" width=242 height="60">
|
| <h5 align="center"><br>
|
| <a style="color: white; font-family: arial;" href="search.html" onclick="event.preventDefault(); sessionStorage.setItem('navigating_to_search', 'true'); window.location.href='search.html';">Search |</a>
|
| <a style="color: white; font-family: arial;" href="legal.html"">Legal Notice |</a>
|
| <a style="color: white; font-family: arial;" href="https://github.com/enronarchive/enron-mail/blob/main/CHANGELOG.md"">Changelog |</a>
|
| <a style="color: white; font-family: arial;" href="http://archive.enroncorp.com"">About</a>
|
| </h5>
|
|
|
| </td>
|
| </td>
|
| </tr>
|
| </table>
|
| </td>
|
| </tr>
|
|
|
|
|
| <tr>
|
| <td colspan=3><img src="/src/bottombar.gif">
|
| </td>
|
| </tr>
|
|
|
| </table>
|
|
|
| </div>
|
|
|
| </body>
|
|
|
| </html> |