Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

check out data.js and demo.js #1

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
105 changes: 105 additions & 0 deletions sample_for_plotting/css/finance.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,105 @@
.title {
text-align: center;
}
.subTitle {
font-size: 16px;
}

#finance {
position: relative;
margin: 40px 0px;
border: 1px solid #99CCFF;
-moz-user-select: none;
-webkit-user-select: none;
user-select: none;
}

#labels {
position: absolute;
width: 800px;
z-index: 10;
}
#financeTitle {
position: absolute;
top: -20px;
}
#time {
position: absolute;
left: 4px;
top: 4px;
font-size: 10px;
z-index: 10;
}
#time a {
background: #ffffff;
cursor: pointer;
border-right: 2px solid transparent;
color: #4499FF;
text-decoration: underline;
}
#dateRange {
position: absolute;
right: 4px;
top: -14px;
font-size: 10px;
}
.handle {
position: absolute;
z-index: 10;
cursor: pointer;
background: #eeeeee;
border: 1px solid #bbbbbb;
border-radius: 3px;
-webkit-border-radius: 3px;
-moz-border-radius: 3px;
}
.zoomHandle {
width: 5px;
height: 20px;
}
.scrollHandle {
width: 100px;
height: 12px;
}
.flag {
border: 1px solid #4499FF;
background: white;
padding: 1px 2px 1px 2px;
}
.flagpole {
border-left: 1px solid #4499FF;
}
.flotr-grid-label {
font-size: 11px;
background: #ffffff;
margin: 2px 0px 0px 4px;
}
.flotr-mouse-value {
font-size: 10px;
}
#summaryGraph .flotr-grid-label {
margin-top: -16px;
background: transparent;
text-align: left;
}
.documentation p {
font-size: 14px;
padding-left: 20px;
padding-right: 8px;
}
.documentation ol {
font-size: 14px;
}
.documentation h3 {
padding-top: 12px;
}
.documentation h4 {
padding-left: 20px;
font-size: 14px;
}
.documentation p code {
font-size: 12px;
}
.documentation .snippet {
margin-left: 20px;
}
1 change: 1 addition & 0 deletions sample_for_plotting/css/hsd.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

50 changes: 50 additions & 0 deletions sample_for_plotting/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
<!DOCTYPE HTML>
<html>
<head>
<title>HTML5互动股票图形数据 - 站长素材</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="viewport" content="width=device-width">
<link rel="stylesheet" type="text/css" href="css/hsd.css?d3fa1" />
<link rel="stylesheet" type="text/css" href="css/finance.css?d3fa1" />
</head>

<body>

<div id="content-container">
<div id="content">
<div id="finance">
<div id="labels">
<div id="financeTitle">
NASDAQ:GOOG</div>
<div id="time">
<a onclick="HumbleFinance.zoom(5);">1w</a>
<a onclick="HumbleFinance.zoom(21);">1m</a>
<a onclick="HumbleFinance.zoom(65);">3m</a>
<a onclick="HumbleFinance.zoom(127);">6m</a>
<a onclick="HumbleFinance.zoom(254);">1y</a>
<a onclick="HumbleFinance.zoom(1265);">5y</a> </div>
<div id="dateRange">
</div>
</div>
</div>
</div>
</div>
</div>
<script src="js/hsd.js?d3fa1"></script>
<script src="js/prototype.min.js?d3fa1"></script>
<script src="js/Finance.js?d3fa1"></script>
<script src="js/excanvas.js?d3fa1"></script>
<script src="js/base64.js?d3fa1"></script>
<script src="js/canvas2image.js?d3fa1"></script>
<script src="js/canvastext.js?d3fa1"></script>
<script src="js/flotr.js?d3fa1"></script>
<script src="js/HumbleFinance.js?d3fa1"></script>
<script src="js/data.js?d3fa1"></script>
<script src="js/demo.js?d3fa1"></script>
<div style="text-align:center;clear:both">
<p>适用浏览器:IE8、360、FireFox、Chrome、Safari、Opera、傲游、搜狗、世界之窗. </p>
<p>来源:<a href="http://sc.chinaz.com/" target="_blank">站长素材</a></p>
</div>
</body>

</html>
25 changes: 25 additions & 0 deletions sample_for_plotting/js/Finance.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
/*
(function () {

var HSD = {

*/
function toggleSnippet(button, snippet) {


if (Element.visible(snippet)) {
Element.update(button, '(show)');
} else {
Element.update(button, '(hide)');
}

Element.toggle(snippet);
}
prettyPrint();
/*
}

window.HSD = HSD;

})();
*/
Loading