src/start/index-test.en.html
author kairo@kairo.at
Sun, 02 Jan 2011 15:39:17 +0000
changeset 614 cfacb94d8df8756e1f08a361415eecb8da665e1a
parent 598 6c50ee22f1cb43f00a1a28ef682c14efc9bf7d98
child 645 4e7b3faa9ade980c81788efcaf4b2dfde0656f47
permissions -rw-r--r--
remove lines mentioning KaiRo as maintainer

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<head>

<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta http-equiv="Content-Language" content="en">
<meta http-equiv="Content-Style-Type" content="text/css">
<meta http-equiv="Content-Script-Type" content="text/javascript">

<link rel="top" href="../" title="SeaMonkey Project">
<link rel="up" href="../" title="Home">

<script type="text/javascript" src="/download.js"></script>

<title>Welcome to SeaMonkey</title>
</head>
<body>
<h1>Welcome to SeaMonkey</h1>

<script type="text/javascript"> <!--
  function buildTest() {
    var ua = navigator.userAgent;
    // Uncomment one of those user agents to test this script
    // var ua="Mozilla/5.0 (X11; U; Linux i686; de-AT; rv:1.8b2) Gecko/20050324 SeaMonkey/1.0a"
    // var ua="Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.6) Gecko/20070802 SeaMonkey/1.1.4"
    // var ua="Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9a8pre) Gecko/2007082021 SeaMonkey/2.0a1pre"
    // var ua="Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.0rc3) Gecko/20020523"
    // var ua="Mozilla/5.0 (Windows NT 6.1; rv:2.0) Gecko/20110101 Firefox/4.0 SeaMonkey/2.1"

    // Search for the Gecko build date in the User Agent string
    const buildID = ua.match(/Gecko\/(\d{8,10})/);
    if (!buildID || !ua.match(/ SeaMonkey\//)) {
      // not SeaMonkey, display a "get SeaMonkey" box
      highlightDownload("download", false);
      document.getElementById("stable").style.display = "none";
      document.getElementById("getseamonkey").style.display = "block";
      return;
    }

    const smver = ua.match(/SeaMonkey\/([^ ]+)/);
    // stable builds only have digits and dots in their version number!
    const smver_parts = smver[1].split(".");
    if (smver[1].match(/^[\d\.]+$/)) {
      // stable build, leave "friendy" intro box turned on

      // check for version number and display a warning and download box if we have a newer version
      const curver = "[% releaseversion %]";
      const curver_parts = curver.split(".");
      var oldversion = false;
      for (var i = 0; i < curver_parts.length; i++) {
        if (parseInt(curver_parts[i]) > parseInt(smver_parts[i])) {
          oldversion = true;
        }
        else if (parseInt(curver_parts[i]) < parseInt(smver_parts[i])) {
          break;
        }
      }
      if (oldversion) {
        highlightDownload("dlnew", false);
        var vertext = document.createTextNode(" (" + smver[1] + ")");
        document.getElementById("oldvernumber").appendChild(vertext);
        document.getElementById("stable").style.display = "none";
        document.getElementById("oldstable").style.display = "block";
      }
    }
    else {
      // unstable build or prerelease, test if nagging box should be displayed
      document.getElementById("stable").style.display = "none";
      document.getElementById("unstable").style.display = "block";
      document.getElementById("stablenote").style.display = "none";
      document.getElementById("unstablenote").style.display = "block";

      // prereleases have a version number with a/b in it, possibly digits afterwards
      if (smver[1].match(/^[\d\.]+[ab]\d*$/)) {
        // check for version number and display a warning and download box if we have a newer version
        const curbeta = "[% betaversion %]";
        const curbeta_parts = curbeta.split(".");
        var oldbeta = false;
        for (var i = 0; i < curbeta_parts.length; i++) {
          // don't use parseInt() for beta - this mean that parts with numbers
          // larger than 9 are incorrect but alphas and betas are correct
          if (curbeta_parts[i] > smver_parts[i]) {
            oldbeta = true;
          }
          else if (curbeta_parts[i] < smver_parts[i]) {
            break;
          }
        }
        if (oldbeta) {
          document.getElementById("nagBox-beta").style.display = "block";
        }
      }
      else {
        // milliseconds per day
        const msecsPerDay = 86400000;
        const nagLimit = 28 * msecsPerDay;

        // construct build date from ID
        const buildDate = new Date(buildID[1].substr(0,4),
                                   buildID[1].substr(4,2)-1,
                                   buildID[1].substr(6,2));

        const today = new Date();

        if (today - buildDate > nagLimit) {
          // build is old. Show the nag box
          document.getElementById("nagBox").style.display = "block";
        }
      }
    }
  }

  addEventListener("load", buildTest, true);
  // -->
</script>

<div id="nagBox" class="important" style="display: none;">
  <p><span class="shout">Hey!</span> Your copy of SeaMonkey is more than four
  weeks old. Unless you are using the latest release or nightly build, bug
  reports get rapidly less useful the older your copy is.
  </p>
  <p>So <b>if you're not running the <a href="../releases/">latest release
  ([% releasename %])</a></b>, we could use your help testing either that or the
  <a href="http://ftp.mozilla.org/pub/mozilla.org/seamonkey/nightly/latest-comm-1.9.1/">latest
  nightly build</a>. (Be warned that nightly builds are development software,
  and there is no guarantee that they won't fry your processor, insult your
  mother, or cause you to break out in a nasty rash.)
  </p>
</div>

<div id="nagBox-beta" class="important" style="display: none;">
  <p><span class="shout">Hey!</span> Your copy of SeaMonkey is outdated and we
  offer a newer testing version. Unless you are using the latest (testing)
  release or nightly build, bug reports get rapidly less useful the older your
  copy is.
  </p>
  <p>So <b>if you're not running the <a href="../releases/">latest release
  ([% releasename %])</a> or the  <a href="../releases/[% betaversion %]">latest
  testing version ([% betaname %])</a></b>, we could use your help testing
  either those or the
  <a href="http://ftp.mozilla.org/pub/mozilla.org/seamonkey/nightly/latest-comm-1.9.1/">latest
  nightly build</a>. (Be warned that nightly builds are development software,
  and there is no guarantee that they won't fry your processor, insult your
  mother, or cause you to break out in a nasty rash.)
  </p>
</div>

<div id="stable" class="key-point">
  <div class="key-info-desc">
    <strong class="very-strong">Congratulations!</strong> You've downloaded
    (or compiled) a stable version of SeaMonkey.

    <p>If you want to help making this application even better, we would encourage
    you to <a href="../dev/get-involved">take part in the SeaMonkey testing
    community</a>.
    Helping out won't take much of your time, doesn't require special skills,
    and will help improve SeaMonkey.
    </p>
  </div>
  <div class="key-info-side" style="text-align: center;">
    <a href="http://www.mozilla.org/about/mission.html?WT.mc_id=sm_start&amp;WT.mc_ev=click"
       title="The Mozilla Mission"><img src="/images/mozilla-logo.png"
                                        alt="Mozilla Logo"></a>
    <p style="margin: 0;"><a
     href="http://www.mozilla.org/about/mission.html?WT.mc_id=sm_start&amp;WT.mc_ev=click"
     title="The Mozilla Mission">Learn more about Mozilla's mission of building
    a better Internet.</a></p>
  </div>
</div>

<div id="oldstable" style="display: none;" class="key-point">
  <div class="key-info-desc">
    <strong class="very-strong shout">Warning!</strong> You're using an old
    stable version of SeaMonkey<span id="oldvernumber"></span>, while we offer
    a newer version which contains
    <a href="http://www.mozilla.org/security/known-vulnerabilities/#SeaMonkey">important
    security fixes</a>.

    <p>We encourage you to <strong>download the newer version</strong> linked
    in the download box at the right to be safe from known vulnerabilities and be
    able to use the newest features in a stable SeaMonkey release.</p>

    <p class="note">If you get this message despite having installed
    [% releasename %] already, you might want to try
    <a href="http://kb.mozillazine.org/Resetting_your_useragent_string_to_its_compiled-in_default"
       class="exref">resetting your user agent string to the default</a>.</p>
  </div>
  <div class="key-info-side">
    <div class="download">
      <h3>Download Now</h3>
      <b>[% releasename %]</b>
      <ul>
       <li id="dlnew-win" class=""><a href="[% download_win %]"
             title="[% download_win_mb * 2.44 %] min @ 56k/s"
             id="dlnew-win-link">Windows,
           <span id="dlnew-win-lang">English</span>
           ([% download_win_mb %] MB)</a></li>
       <li id="dlnew-linux" class=""><a href="[% download_linux %]"
             title="[% download_linux_mb * 2.44 %] min @ 56k/s"
             id="dlnew-linux-link">Linux GTK2,
           <span id="dlnew-linux-lang">English</span>
           ([% download_linux_mb %] MB)</a></li>
       <li id="dlnew-mac" class=""><a href="[% download_mac %]"
             title="[% download_mac_mb * 2.44 %] min @ 56k/s"
             id="dlnew-mac-link">Mac OS X,
           <span id="dlnew-mac-lang">English</span>
           ([% download_mac_mb %] MB)</a></li>
       <li id="dlnew-other" class="other"><a href="[% download_more %]">Other
           Systems &amp; Languages</a></li>
       <!-- 2.44 min/MB @ 56 k/s -->
      </ul>
    </div>
  </div>
</div>

<div id="unstable" style="display: none;" class="key-point">
<strong class="very-strong">Congratulations!</strong> You've downloaded
(or compiled) a copy of SeaMonkey. This means that you've volunteered to
<a href="../dev/get-involved">become part of the SeaMonkey testing community</a>.

<p>If that doesn't sound like something you meant to do, you might be better off
with one of our <a href="../releases/">stable releases</a>.
Otherwise, welcome aboard! Helping out won't take much of your time, doesn't
require special skills, and will help improve SeaMonkey.</p>
</div>

<div id="getseamonkey" style="display: none;" class="key-point">
  <div class="key-info-desc">
    <p>Thanks for visiting this SeaMonkey start page, even though it appears to
    us that you are not using SeaMonkey yet.</p>
    <p>You can get the SeaMonkey suite, including browser, mail and more, for
    free download from the links shown on the right.</p>
  </div>
  <div class="key-info-side">
    <div class="download">
      <h3>Download Now</h3>
      <b>[% releasename %]</b>
      <ul>
       <li id="download-win" class=""><a href="[% download_win %]"
             title="[% download_win_mb * 2.44 %] min @ 56k/s"
             id="download-win-link">Windows,
           <span id="download-win-lang">English</span>
           ([% download_win_mb %] MB)</a></li>
       <li id="download-linux" class=""><a href="[% download_linux %]"
             title="[% download_linux_mb * 2.44 %] min @ 56k/s"
             id="download-linux-link">Linux GTK2,
           <span id="download-linux-lang">English</span>
           ([% download_linux_mb %] MB)</a></li>
       <li id="download-mac" class=""><a href="[% download_mac %]"
             title="[% download_mac_mb * 2.44 %] min @ 56k/s"
             id="download-mac-link">Mac OS X,
           <span id="download-mac-lang">English</span>
           ([% download_mac_mb %] MB)</a></li>
       <li id="download-other" class="other"><a href="[% download_more %]">Other
           Systems &amp; Languages</a></li>
       <!-- 2.44 min/MB @ 56 k/s -->
      </ul>
    </div>
  </div>
</div>

<div style="width: 49%; float: right;">
  <h3 style="margin-top:0">Resources</h3>

  <ul class="compact">
    <li><a href="../releases/">SeaMonkey Releases</a></li>
    <li><a href="https://addons.mozilla.org/seamonkey/">Get Add-Ons</a></li>
    <li><a href="http://plugindoc.mozdev.org/" class="ex-ref">Plugin Help</a></li>
    <li><a href="http://www.cafepress.com/SeaMonkeySuite" class="ex-ref">SeaMonkey
        Merchandise</a></li>
  </ul>
</div>

<div style="width: 49%;">
  <h3 style="margin-top:0">Community &amp; Support</h3>

  <ul class="compact">
    <li><a href="../community">SeaMonkey Community</a></li>
    <li><a href="../dev/get-involved">Get Involved</a></li>
    <li><a href="../doc/">Documentation</a></li>
    <li><a href="http://kb.mozillazine.org/Mozilla_Suite"
           title="Community-contributed Wiki" class="ex-ref">More Help - Knowledge Base</a></li>
  </ul>
</div>

<div style="clear: both;">
  <p id="stablenote" class="note">As SeaMonkey is a volunteer community project,
  we can not provide direct end-user support through our development team.
  The <a href="../community">SeaMonkey Community</a> can usually provide
  you with any help you need on using our software, though.
  </p>
  <p id="unstablenote" class="note" style="display: none;">The build you are
  using is not an official release, it has been made available for
  <strong>testing purposes only</strong>, with no end-user support.
  If that sounds scary, you'd probably be better off with the latest
  <a href="../releases/">stable release</a>.
  </p>
</div>
</body>
</html>