blob: 4ce1e9d6e996d75795426073f8aee1e2c2ab4145 [file] [log] [blame]
<!--
Licensed to the Apache Software Foundation (ASF) under one or more
contributor license agreements. See the NOTICE file distributed with
this work for additional information regarding copyright ownership.
The ASF licenses this file to You under the Apache License, Version 2.0
(the "License"); you may not use this file except in compliance with
the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<html>
<head>
<title>My Portfolio</title>
<link rel="stylesheet" href="style.css" type="text/css">
<style>
.stocks { border: 1 solid black; }
.stocks td, .stocks th { width: 200; text-align: right; }
.stocks .up { background-color: #9f9; }
.stocks .down { background-color: #f99; }
</style>
</head>
<body onload="subscribe()">
<script src="prototype.js" language="JavaScript1.2"></script>
<script src="portfolio2.js" language="JavaScript1.2"></script>
<h1>My Portfolio</h1>
<p>
This example displays an example stock portfolio.
In a real system this page would be generated dynamically based on the
users current stock portfolio
</p>
<table class="stocks">
<tr>
<th>Stock</th>
<th>Description</th>
<th>Amount</th>
<th>Price</th>
<th>Value</th>
<th>Cost</th>
<th>P & L</th>
</tr>
<tr id="IBMW">
<td>IBMW</td>
<td>IBM Stock</td>
<td id="amount">1000</td>
<td id="price"></td>
<td id="value"></td>
<td id="cost">19000</td>
<td id="pl"></td>
</tr>
<tr id="MSFT">
<td>MSFT</td>
<td>Microsoft</td>
<td id="amount">6000</td>
<td id="price"></td>
<td id="value"></td>
<td id="cost">22000</td>
<td id="pl"></td>
</tr>
<tr id="BEAS">
<td>BEAS</td>
<td>BEA Stock</td>
<td id="amount">1100</td>
<td id="price"></td>
<td id="value"></td>
<td id="cost">12342</td>
<td id="pl"></td>
</tr>
<tr id="SUNW">
<td>SUNW</td>
<td>Sun Microsystems Inc</td>
<td id="amount">3000</td>
<td id="price"></td>
<td id="value"></td>
<td id="cost">7700</td>
<td id="pl"></td>
</tr>
</table>
<div id="stuff"></div>
</body>
</html>