aboutsummaryrefslogtreecommitdiff
path: root/public/index.html
blob: e166768504047a6501fd6bc779340f729889bfec (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
<!DOCTYPE html>
<html lang='en-US'>
  <head>
    <meta charset='utf-8'/>
    <meta name='viewport' content='width=device-width, initial-scale=1, shrink-to-fit=no'/>

    <title>Alonzo Mood Calculator</title>
    <link rel='stylesheet' type='text/css' href='face.css'/>
  </head>

  <body>
    <h1>Alonzo Mood Calculator</h1>

    <div id='text'>
      <p>
        Calculate Alonzo's mood with pinpoint accuracy by leveraging the
        latest synergy of advanced technology and cross-platform
        initiatives.
      </p>

      <div id='help' class='hidden'>
        <p>
          Enter the percent change in the ORCL stock price relative to
          $<span id='base'>55.73</span> as numeric value in the field
          below.
        </p>

        <p>
          For example, if the stock price is down <code>1%</code>, then
          enter <code>-1</code> in the field.
        </p>

        <p>
          The default value of the field is the current value according to
          Yahoo Finance.
        </p>
      </div>

      <p>
        <a
          id='help-toggle'
          href='#'
          title='Toggle help visibility.'
        >Show Help</a>
      </p>

      <p class='controls'>
        <input
          type='number'
          id='rate'
          value='0'
          min='-100'
          step='10'
          placeholder='enter percent'
          title='Enter the percent change in stock price for the day.'
        />

        <button
          class='set-rate'
          data-val='current'
          title='Reset to current value.'
        >
          Reset
        </button>

        <button
          class='set-rate'
          data-val='-10000'
          title='Set to minimum.'
        >
          Min
        </button>

        <button
          class='set-rate'
          data-val='0'
          title='Set to zero.'
        >
          Clear
        </button>

        <button
          class='set-rate'
          data-val='10000'
          title='Set to maximum.'
        >
          Max
        </button>
      </p>
    </div>

    <div id='face'></div>

    <script type='text/javascript' src='jquery-3.4.1.min.js'></script>
    <script type='text/javascript' src='face.js'></script>
  </body>
</html>