mirror of
https://gitlab.com/freepascal.org/fpc/pas2js.git
synced 2025-04-05 15:57:45 +02:00
39 lines
1.5 KiB
HTML
39 lines
1.5 KiB
HTML
<!doctype html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
|
<meta name="description" content="Example showing how to use TChartJS">
|
|
<meta name="author" content="silvioprog">
|
|
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.2.1/css/bootstrap.min.css" integrity="sha384-GJzZqFGwb1QTTN6wy59ffF1BuGJpLSa9DkKMp0DgiMDm4iYMj70gZWKYbI706tWS" crossorigin="anonymous">
|
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.7.3/Chart.min.js" integrity="sha256-oSgtFCCmHWRPQ/JmR4OoZ3Xke1Pw4v50uh6pLcu+fIc=" crossorigin="anonymous"></script>
|
|
<script src="js/demoprogressbar.js"></script>
|
|
<title>TChartJS example</title>
|
|
<style>
|
|
.title {
|
|
margin: 20px 0 20px 0
|
|
}
|
|
canvas {
|
|
-moz-user-select: none;
|
|
-webkit-user-select: none;
|
|
-ms-user-select: none;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div class="container">
|
|
<h3 class="title">
|
|
TChartJS <small class="text-muted">Create progress bar charts using Pas2JS & ChartJS (<a href="demoprogressbar.lpr">view source</a>)</small>
|
|
</h3>
|
|
<div style="width: 75%;">
|
|
<canvas id="canvas"></canvas>
|
|
<progress id="animationProgress" max="1" value="0" style="width: 100%"></progress>
|
|
</div>
|
|
<button id="randomizeData" class="btn btn-primary">Randomize data</button>
|
|
</div>
|
|
<script>
|
|
rtl.run();
|
|
</script>
|
|
</body>
|
|
</html>
|