mdj1412
complete
4a5c163
<!-- html ํƒœ๊ทธ : HTML๋กœ ์ž‘์„ฑ๋˜์–ด ์žˆ๋‹ค๋Š” ๊ฒƒ์„ ์•Œ๋ ค์คŒ -->
<!-- html ํƒœ๊ทธ : html ํŒŒ์ผ ์ „์ฒด๋ฅผ ๊ฐ์‹ธ๋Š” ํƒœ๊ทธ -->
<html>
<!-- head ํƒœ๊ทธ : ๋จธ๋ฆฌ๋ง์— ํ•ด๋‹น -->
<!-- head ํƒœ๊ทธ : css๋‚˜ javascript๋ฅผ ์—ฐ๊ฒฐํ•ด์คŒ -->
<!-- head ํƒœ๊ทธ : ํŒŒ๋น„์ฝ˜์ด๋‚˜ ๋ฌธ์ž์—ด ์ธ์ฝ”๋”ฉ๊ณผ ๊ฐ™์€ ๋ฌธ์„œ์˜ ๋‹ค์–‘ํ•œ ์ •๋ณด๋ฅผ ์ œ๊ณต -->
<head>
<!-- link ํƒœ๊ทธ : ์ฃผ๋กœ ์™ธ๋ถ€ css ํŒŒ์ผ์„ ์—ฐ๊ฒฐํ•  ๋•Œ ์‚ฌ์šฉ -->
<link rel="stylesheet" href="static/css/style.css" />
<!-- jQuery -->
<script src='//cdnjs.cloudflare.com/ajax/libs/jquery/3.6.4/jquery.min.js'></script>
<!-- script ํƒœ๊ทธ : ์™ธ๋ถ€ js ํŒŒ์ผ์„ ์—ฐ๊ฒฐํ•˜๊ฑฐ๋‚˜ javascript ์ฝ”๋“œ๋ฅผ ์ž…๋ ฅํ•  ๋•Œ ์‚ฌ์šฉ -->
<script type="text/javascript" src="static/js/utils.js"></script>
<script type="text/javascript" src="static/js/index.js"></script>
<!-- Draw Chart Library -->
<script src="https://cdn.jsdelivr.net/npm/luxon@1.26.0"></script>
<script src="https://cdn.jsdelivr.net/npm/chart.js@3.0.1/dist/chart.js"></script>
<script src="https://cdn.jsdelivr.net/npm/chartjs-adapter-luxon@1.0.0"></script>
<script src="static/js/chartjs-chart-financial.js" type="text/javascript"></script>
</head>
<!-- [ id class ์ฐจ์ด ] -->
<!-- id : ํ•œ ๋ฌธ์„œ์— ๋‹จ ํ•˜๋‚˜์˜ ์š”์†Œ์—๋งŒ ์ ์šฉ(์ค‘๋ณตX) -->
<!-- id : ํŠน์ • ์š”์†Œ์— ์ด๋ฆ„์„ ๋ถ™์ด๋Š”๋ฐ ์‚ฌ์šฉ -->
<!-- class : ๋™์ผํ•œ ๊ฐ’์„ ๊ฐ–๋Š” ์š”์†Œ ๋งŽ์Œ -->
<!-- class : ์Šคํƒ€์ผ์˜ ๋ถ„๋ฅ˜์— ์‚ฌ์šฉ -->
<!-- body ํƒœ๊ทธ : ๋ณธ๋ฌธ์— ํ•ด๋‹นํ•˜๋Š” ๋ถ€๋ถ„, ์‹ค์ œ ๋ณด์—ฌ์ง€๋Š” ํ™”๋ฉด์— ํ•ด๋‹น -->
<body>
<!-- block = show, none = hide -->
<div id="nasdaq-table-container" style="display: block">
<h1><a class="gohome" style="text-decoration: none;" href="" onclick="sendAjax('/', undefined, undefined);"> Stock News NER & Analysis </a></h1>
<p id='embed'>{{embed}}</p>
<p id='mylog' />
<div class="stocks_wrap">
<div class="stocks_columns">
<div class="column ticker">Ticker</div>
<div class="column name">Name</div>
<div class="column dff">Diff</div>
<div class="column open">Open</div>
<div class="column close">Close</div>
<div class="column sector">Sector</div>
<div class="column industry">Industry</div>
</div>
<div class="stocks"></div>
</div>
</div>
<!-- block = show, none = hide -->
<div id="chart-container" style="display: block">
<h1><a class="gohome" style="text-decoration: none;" href="/">Stock News Summaries AI</a></h1>
<a class="goticker" style="text-decoration: none;"><h2 class="tickerName"></h2></a>
<div>
<div id="chart-container" width="974" height="486"></div>
<div class="myChart-container">
<canvas id="myChart"></canvas>
</div>
</div>
<!--
[ ์†์„ฑ ]
align : ์ •๋ ฌ์„ ์ง€์ •ํ•œ๋‹ค. (left, center, right)
border : ํ…Œ๋‘๋ฆฌ ์„ ์˜ ๋‘๊ป˜๋ฅผ ์ง€์ •ํ•œ๋‹ค.
bgcolor : ๋ฐฐ๊ฒฝ์ƒ‰์„ ์ง€์ •ํ•œ๋‹ค. (์ƒ‰์€ "red", "black" ์ฒ˜๋Ÿผ ๊ธฐ์กด์˜ ์ •์˜๋˜์–ด์žˆ๋Š” ์ƒ‰์„ ์‚ฌ์šฉํ•  ์ˆ˜๋„ ์žˆ์œผ๋ฉฐ
rgbํ˜•์‹์˜ #000000 ์œผ๋กœ๋„ ์ƒ‰์„ ์ง€์ •ํ•  ์ˆ˜ ์žˆ๋‹ค.)
bordercolor : ํ…Œ๋‘๋ฆฌ ์„ ์˜ ์ƒ‰์„ ์ง€์ •ํ•œ๋‹ค. ์ƒ‰์„ ์ง€์ •ํ•˜๋Š” ๋ฐฉ๋ฒ•์€ bgcolor์™€ ๋™์ผํ•˜๋‹ค.
cellspacing : ์…€๊ฐ„์˜ ๊ฐ„๊ฒฉ์„ ์ง€์ •ํ•œ๋‹ค.
width : ๊ฐ€๋กœ ๊ธธ์ด๋ฅผ ์ง€์ •ํ•œ๋‹ค. (์ƒ์ˆ˜ ๊ฐ’์„ ์ž…๋ ฅํ•  ์ˆ˜๋„, % ๋‹จ์œ„๋กœ ์ž…๋ ฅํ•  ์ˆ˜ ์žˆ๋‹ค.
%๋ฅผ ์‚ฌ์šฉํ•  ๋•Œ๋Š” ์›น๋ธŒ๋ผ์šฐ์ € ํฌ๊ธฐ์— ๋Œ€ํ•œ % ์ด๋‹ค.)
height : ์„ธ๋กœ ๊ธธ์ด๋ฅผ ์ง€์ •ํ•œ๋‹ค.
rawspan : ์ง€์ •ํ•œ ๊ฐ’๋งŒํผ ํ–‰์„ ๋ณ‘ํ•ฉํ•œ๋‹ค. (์œ„์•„๋ž˜๋กœ)
colspan : ์ง€์ •ํ•œ ๊ฐ’๋งŒํผ ์—ด์„ ๋ณ‘ํ•ฉํ•œ๋‹ค. (์ขŒ์šฐ๋กœ)
-->
<!-- table ํƒœ๊ทธ : ํ…Œ์ด๋ธ”์„ ๋งŒ๋“ ๋‹ค. -->
<table class="table"
border="1"
width="90%"
height="200"
cellspacing="5">
<!-- caption ํƒœ๊ทธ : ํ…Œ์ด๋ธ” ์ด๋ฆ„ ํ‘œ์‹œ -->
<caption class="table-title"></caption>
<!-- ํ…Œ์ด๋ธ”์˜ ํ—ค๋” ์˜์—ญ ์ง€์ • -->
<thread>
<!-- tr ํƒœ๊ทธ : ํ…Œ์ด๋ธ”์  ํ–‰(๊ฐ€๋กœ ํ•œ์ค„)์„ ๋งŒ๋“ ๋‹ค. -->
<tr align="center" bgcolor="white">
<!-- td ํƒœ๊ทธ : ํ…Œ์ด๋ธ”์˜ ์—ด์„ ๋งŒ๋“ ๋‹ค. -->
<td width="5%"></td>
<!-- th ํƒœ๊ทธ : ํ…Œ์ด๋ธ”(ํ‘œ)์˜ ํ—ค๋“œ ๋ถ€๋ถ„(์ž๋™์œผ๋กœ ๊ฐ€์šด๋ฐ ์ •๋ ฌ, ๊ตต๊ฒŒ ์ ์šฉ) -->
<th width="10%">Date</th>
<th width="10%">Diff</th>
<th class="title-width">Articles</th>
</tr>
</thread>
<!-- tbody ํƒœ๊ทธ : -->
<tbody class="news-table">
<!-- News: Date, Diff, Title ์ถ”๊ฐ€ -->
</tbody>
</table>
</div>
<!-- block = show, none = hide -->
<div id="news-container" style="display: block">
<h1><a class="gohome" style="text-decoration: none;" href="/">Stock News Summaries AI</a></h1>
<a class="goticker" style="text-decoration: none;"><h2 class="tickerName"></h2></a>
<h3 class="titleDate"></h2>
<h3 class="titleName"></h2>
<h3 class="newsURL"><a class="input-News-URL" target=โ€_blankโ€></a></h2>
<!-- named entity recognition (NER) -->
<figure style="margin-bottom: 6rem">
<div class="entities" style="line-height: 1.3; direction: ltr">
</div>
</figure>
<!-- section ํƒœ๊ทธ : HTML ๋ฌธ์„œ์— ํฌํ•จ๋œ ๋…๋ฆฝ์ ์ธ ์„น์…˜์„ ์ •์˜ํ•  ๋•Œ ์‚ฌ์šฉ -->
<section id="model">
<h2>Questions about Stock's News</h2>
<!-- p ํƒœ๊ทธ : paragraph, ์ฆ‰ ๋ฌธ๋‹จ์˜ ์•ฝ์ž๋กœ, ํ•˜๋‚˜์˜ ๋ฌธ๋‹จ์„ ๋งŒ๋“ค ๋•Œ ์‚ฌ์šฉ -->
<p>
Model :
<!-- target="_blank" : ๊ธฐ๋ณธ์†์„ฑ ์ค‘ ํ•˜๋‚˜๋กœ ํด๋ฆญ์‹œ ๊ณ„์†ํ•ด์„œ ์ƒˆ๋กœ์šด ์ฐฝ์ด ์—ด๋ฆฌ๊ฒŒ ๋œ๋‹ค. -->
<a
href="https://huggingface.co/allenai/tk-instruct-base-def-pos"
rel="noeferrer"
target="_blank">Tk-instruct Model</a
>
</p>
<!-- form ํƒœ๊ทธ : ๋ฐ์ดํ„ฐ๋ฅผ ์ „์†กํ•˜๊ธฐ ์œ„ํ•œ ํƒœ๊ทธ -->
<!-- form ํƒœ๊ทธ : ๋ฐ์ดํ„ฐ๋ฅผ ์ „์†กํ•  url (action ์†์„ฑ) -->
<!-- form ํƒœ๊ทธ : ๋ฐ์ดํ„ฐ ์ „๋‹ฌ ๋ฐฉ์‹์ด get์ธ์ง€ post์ธ์ง€ ๊ฒฐ์ • (method ์†์„ฑ) -->
<form class="text-form">
<!-- label ํƒœ๊ทธ๋Š” for ์†์„ฑ์„ ์‚ฌ์šฉํ•ด์„œ input ํƒœ๊ทธ์˜ id ์†์„ฑ์— ์—ฐ๊ณ„ํ•ด์„œ ์‚ฌ์šฉ -->
<label for="text-input">[ Questions ]</label> <br>
<input
id="text-input"
type="text"
placeholder="Input Questions"
value="Why did Alphabet's stock go down?"
/>
<button id="text-submit">Submit</button>
<p> [ Answer ] </p>
<p class="text-output"></p>
</form>
</section>
</div>
</body>
</html>