File:  [LON-CAPA] / loncom / html / htmlarea / plugins / SpellChecker / Attic / spell-check-ui.html
Revision 1.2: download - view: text, annotated - select for diffs
Wed Jun 9 14:04:38 2004 UTC (20 years, 3 months ago) by www
Branches: MAIN
CVS tags: version_2_5_X, version_2_5_99_0, version_2_5_2, version_2_5_1, version_2_5_0, version_2_4_X, version_2_4_99_0, version_2_4_2, version_2_4_1, version_2_4_0, version_2_3_X, version_2_3_99_0, version_2_3_2, version_2_3_1, version_2_3_0, version_2_2_X, version_2_2_99_1, version_2_2_99_0, version_2_2_2, version_2_2_1, version_2_2_0, version_2_1_X, version_2_1_99_3, version_2_1_99_2, version_2_1_99_1, version_2_1_99_0, version_2_1_3, version_2_1_2, version_2_1_1, version_2_1_0, version_2_0_X, version_2_0_99_1, version_2_0_2, version_2_0_1, version_2_0_0, version_1_99_3, version_1_99_2, version_1_99_1_tmcc, version_1_99_1, version_1_99_0_tmcc, version_1_99_0, version_1_3_X, version_1_3_3, version_1_3_2, version_1_3_1, version_1_3_0, version_1_2_X, version_1_2_99_1, version_1_2_99_0, version_1_2_1, version_1_2_0, version_1_1_99_5, version_1_1_99_4, version_1_1_99_3, version_1_1_99_2, version_1_1_99_1, HEAD
Plugins to go with HTMLarea RC 1

<!--

  Strangely, IE sucks with or without the DOCTYPE switch.
  I thought it would only suck without it.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
    "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">

   Spell Checker Plugin for HTMLArea-3.0
   Sponsored by www.americanbible.org
   Implementation by Mihai Bazon, http://dynarch.com/mishoo/
  
   (c) dynarch.com 2003.
   Distributed under the same terms as HTMLArea itself.
   This notice MUST stay intact for use (see license.txt).

   $Id: spell-check-ui.html,v 1.2 2004/06/09 14:04:38 www Exp $

-->
<html xmlns="http://www.w3.org/1999/xhtml">

  <head>
    <title>Spell Checker</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <script type="text/javascript" src="spell-check-ui.js"></script>

    <style type="text/css">
      html, body { height: 100%; margin: 0px; padding: 0px; background-color: #fff;
      color: #000; }
      a:link, a:visited { color: #00f; text-decoration: none; }
      a:hover { color: #f00; text-decoration: underline; }

      table { background-color: ButtonFace; color: ButtonText;
      font-family: tahoma,verdana,sans-serif; font-size: 11px; }

      iframe { background-color: #fff; color: #000; height: 100%; width: 100%; }

      .controls { width: 13em; }
      .controls .sectitle { /* background-color: #736c6c; color: #fff;
      border-top: 1px solid #000; border-bottom: 1px solid #fff; */
      text-align: center;
      font-weight: bold; padding: 2px 4px; }
      .controls .secbody { margin-bottom: 10px; }

      button, select { font-family: tahoma,verdana,sans-serif; font-size: 11px; }
      button { width: 6em; padding: 0px; }

      input, select { font-family: fixed,"andale mono",monospace; }

      #v_currentWord { color: #f00; font-weight: bold; }
      #statusbar { padding: 7px 0px 0px 5px; }
      #status { font-weight: bold; }
    </style>

  </head>

  <body onload="initDocument()">

    <form style="display: none;" action="spell-check-logic.cgi"
          method="post" target="framecontent"
          accept-charset="UTF-8"
          ><input type="hidden" name="content" id="f_content"
          /><input type="hidden" name="dictionary" id="f_dictionary"
          /><input type="hidden" name="init" id="f_init" value="1"
    /></form>

    <table style="height: 100%; width: 100%; border-collapse: collapse;" cellspacing="0" cellpadding="0">
      <tr>
        <td colspan="2" style="height: 1em; padding: 2px;">
          <div style="float: right; padding: 2px;"><span>Dictionary</span>
            <select id="v_dictionaries" style="width: 10em"></select>
            <button id="b_recheck">Re-check</button>
          </div>
          <span id="status">Please wait.  Calling spell checker.</span>
        </td>
      </tr>
      <tr>
        <td valign="top" class="controls">
          <div class="secbody" style="text-align: center">
            <button id="b_info">Info</button>
          </div>
          <div class="sectitle">Original word</div>
          <div class="secbody" id="v_currentWord" style="text-align:
          center; margin-bottom: 0px;">pliz weit ;-)</div>
          <div class="secbody" style="text-align: center">
            <button id="b_revert">Revert</button>
          </div>
          <div class="sectitle">Replace with</div>
          <div class="secbody">
            <input type="text" id="v_replacement" style="width: 94%; margin-left: 3%;" /><br />
            <div style="text-align: center; margin-top: 2px;">
              <button id="b_replace">Replace</button><button
                id="b_replall">Replace all</button><br /><button
                id="b_ignore">Ignore</button><button
                id="b_ignall">Ignore all</button>
            </div>
          </div>
          <div class="sectitle">Suggestions</div>
          <div class="secbody">
            <select size="11" style="width: 94%; margin-left: 3%;" id="v_suggestions"></select>
          </div>
        </td>

        <td>
          <iframe src="about:blank" width="100%" height="100%"
            id="i_framecontent" name="framecontent"></iframe>
        </td>
      </tr>
      <tr>
        <td style="height: 1em;" colspan="2">
          <div style="padding: 4px 2px 2px 2px; float: right;">
            <button id="b_ok">OK</button>
            <button id="b_cancel">Cancel</button>
          </div>
          <div id="statusbar"></div>
        </td>
      </tr>
    </table>

  </body>

</html>

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>