source: trunk/plugins/Equation/popups/operations.html @ 580

Last change on this file since 580 was 419, checked in by mokhet, 14 years ago

more ; fixed (a few were missing, a lot were used with no reason) for ticket #385

File size: 3.8 KB
Line 
1<!--
2Equation Editor plugin for HTMLArea v3.0
3
4brought to you by the Center for Distributed Learning <http://www.cdlonline.org>
5a division of the Butte County Office of Education.
6
7Working sample can be found at
8        http://www.cdlonline.org/works/wysiwyg/examples/eq.html
9
10Questions? Suggestions? email us... webmaster@cdlonline.org
11
12Last Modified : 2004-09-22 19:15:16
13-->
14
15<html>
16<head>
17  <title>Equation</title>
18  <link rel="stylesheet" type="text/css" href="../../../popups/popup.css" />
19  <script type="text/javascript" src="../../../popups/popup.js"></script>
20
21<script type="text/javascript">
22function Init() {
23  window.resizeTo(190, 225);
24  __dlg_translate('Equation');
25  __dlg_init();
26  var selected_op="none";
27  document.getElementById("cancel").focus();
28}
29
30function SelectOperation(sop,sop_name) {
31   document.getElementById('less_equal').style.backgroundColor='ButtonFace';
32   document.getElementById('greater_egual').style.backgroundColor='ButtonFace';
33   document.getElementById('notequal').style.backgroundColor='ButtonFace';
34   document.getElementById('square_root').style.backgroundColor='ButtonFace';
35   document.getElementById('divide').style.backgroundColor='ButtonFace';
36   document.getElementById('mul').style.backgroundColor='ButtonFace';
37   document.getElementById('parenthesis').style.backgroundColor='ButtonFace';
38   document.getElementById('hor_fraction').style.backgroundColor='ButtonFace';
39   document.getElementById('diag_fraction').style.backgroundColor='ButtonFace';
40   document.getElementById('abs_value').style.backgroundColor='ButtonFace';
41   document.getElementById('root').style.backgroundColor='ButtonFace';
42   sop.style.backgroundColor='blue';
43   selected_op=sop_name;
44}
45
46function onOK() {
47  var param = {};
48  param['op']=selected_op;
49  __dlg_close(param);
50  return false;
51}
52
53function onCancel() {
54  __dlg_close(null);
55  return false;
56}
57</script>
58</head>
59
60<body class="dialog" onload="Init()">
61<div class="title">Select operation</div>
62<table align="center" border="1" cellpadding="2" cellspacing="0">
63  <tr>
64    <td id="less_equal" align="center" onclick="SelectOperation(this,'less_equal')"><span><img src="../img/less_equal_than.gif"></span></td>
65    <td id="greater_egual" align="center" onclick="SelectOperation(this,'greater_egual')"><span><img src="../img/greater_equal_than.gif"></span></td>
66    <td id="notequal" align="center" onclick="SelectOperation(this,'notequal')"><span><img src="../img/notequal.gif"></span></td>
67  </tr>
68  <tr>
69    <td id="square_root" align="center" onclick="SelectOperation(this,'square_root')"><span><img src="../img/square_root.gif"></span></td>
70    <td id="root" align="center" onclick="SelectOperation(this,'root')"><span><img src="../img/root.gif"></span></td>
71    <td id="parenthesis" align="center" onclick="SelectOperation(this,'parenthesis')"><span><img src="../img/parenthesis.gif"></span></td>
72  </tr>
73  <tr>
74    <td id="hor_fraction" align="center" onclick="SelectOperation(this,'hor_fraction')"><span><img src="../img/hor_fraction.gif"></span></td>
75    <td id="diag_fraction" align="center" onclick="SelectOperation(this,'diag_fraction')"><span><img src="../img/diag_fraction.gif"></span></td>
76    <td id="abs_value" align="center" onclick="SelectOperation(this,'abs_value')"><span><img src="../img/abs_value.gif"></span></td>
77  </tr>
78  <tr>
79    <td id="divide" align="center" onclick="SelectOperation(this,'divide')"><span><img src="../img/divide.gif"></span></td>
80    <td id="mul" align="center" onclick="SelectOperation(this,'mul')"><span><img src="../img/mul.gif"></span></td>
81    <td ><span>&nbsp;</span></td>
82  </tr>
83</table>
84<div id="buttons">
85  <button type="button" name="ok" onclick="return onOK();"><span>Insert</span></button>
86  <button type="button" name="cancel" id="cancel" onclick="return onCancel();"><span>Cancel</span></button>
87</div>
88</body>
89</html>
Note: See TracBrowser for help on using the repository browser.