-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
116 lines (98 loc) · 4.65 KB
/
index.html
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
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<!-- css reset -->
<link rel="stylesheet" href="assets/CSSreset.css">
<!-- css main -->
<link rel="stylesheet" href="assets/main.css">
<!-- font-awesome-4.7.0 -->
<link rel="stylesheet" href="font-awesome-4.7.0/css/font-awesome.min.css">
<!-- jquery -->
<script src="https://code.jquery.com/jquery-3.6.0.js"></script>
<!-- Mao.js -->
<script src="script/Mao.js"></script>
<!-- vue.js vue2 -->
<script src="https://cdn.jsdelivr.net/npm/vue@2"></script>
<!-- <script src="https://cdn.jsdelivr.net/npm/vue@2/dist/vue.js"></script> -->
<!-- js -->
<script src="script/main.js" defer="defer"></script>
<!-- title -->
<title>每月領多少錢需存幾張金融股</title>
</head>
<body>
<div id="app">
<header>
<div class="glass">
<div class="inner">
<h1>Mao's Stock</h1>
<p>每月領多少錢需存幾張金融股試算</p>
<small v-html="message"></small>
</div>
</div>
</header>
<div class="main">
<section class="content">
<div class="money">
<div class="month">
<label for="month">月領股利(元)</label>
<input type="number" id="month" v-model="月領">
</div>
<div class="year">
<label for="year">年領股利(元)</label>
<input type="number" id="year" disabled v-model="年領">
</div>
</div>
<table class="table">
<tr>
<th colspan="9" id="title">每月領多少錢需存幾張金融股試算</th>
</tr>
<tr>
<th>股號</th>
<th>股名</th>
<th>當日收盤價</th>
<!-- <th class="eps">預估EPS</th> -->
<!-- <th>預估配發股利</th> -->
<th class="Cash_dividend">發放現金股利</th>
<th class="Stock_dividend">發放股票股利</th>
<th>需存張數</th>
<th>所需金額(元)</th>
</tr>
<tr v-for="item in stock">
<td>{{item['股票號碼']}}</td>
<td>{{item['股票名稱']}}</td>
<td>{{item['股票當日收盤價']}}</td>
<!-- <td class="eps">{{item['股票預估EPS']}}</td> -->
<!-- <td>{{item['股票預計發放股利']}}</td> -->
<td class="Cash_dividend">{{item['股票發放現金股利']}}</td>
<td class="Stock_dividend">{{item['股票發放股票股利']}}</td>
<td>{{countSheet(item['股票發放現金股利'],item['股票當日收盤價'],item['股票發放股票股利'])}}</td>
<td>{{countMoney(item['股票發放現金股利'],item['股票當日收盤價'],item['股票發放股票股利'])}}</td>
</tr>
</table>
<div class="remark">
<p><small>股票發放現金股利、股票發放股票股利如尚未公布,則沿用去年數值為基準</small></p>
<p><small>內容僅供參考,本專案僅為練習用,不付任何責任,投資一定有風險,錢是你自己的,請自己負責</small></p>
<p><small>資料平日一到五皆會進行抓取更新</small></p>
<!-- <p><a href="https://goodideamin.com.tw/blog/post/111financialstocksyield">https://goodideamin.com.tw/blog/post/111financialstocksyield</a>
</p> -->
</div>
</section>
<footer id="footer">
<!-- <ul class="icons">
<li>
<a href="https://github.com/mao0507" class="icon ">
<i class="fa fa-github"></i></a>
</li>
</ul> -->
<div class="icons">
<a href="https://github.com/mao0507" class="icon icon--github">
<i class="fa fa-github"></i></a>
</div>
</footer>
</div>
</div>
</body>
</html>