Working live tweets

This commit is contained in:
2022-11-01 14:24:40 +01:00
parent bafa1ceead
commit 92de18a927
3 changed files with 27 additions and 36 deletions

View File

@@ -16,6 +16,7 @@
</head>
<body>
<div id="tweet" style="height: 200px;"></div>
<div class="container">
<div class="header">
<div class="logo">
@@ -88,9 +89,6 @@
-->
<div class = "maintable">
<div class = "leftcol">
<div id="tweet">
</div>
</div>
<div class="centercol"></div>
<div class = "searchbar"></div>
@@ -106,23 +104,28 @@
<script src="./lib/tweets.js"></script>
<script src="./js/code.js"></script>
<script src="./js/connection.js"></script>
<script>
block("#tweet").tweets({
memory: 20
});
events.connect("tweet", "#tweet");
// // create a rolling chart block
// block('#graph').rolling_chart({
// memory: 150,
// chart: {
// yaxis: {
// min: -100,
// max: 100
// },
// xaxis: {
// show: false
// }
// }
// });
// // connect sample event to graph
// events.connect('tweet', '#graph');
</script>
</body>
<!-- <script>
// create a rolling chart block
block('#graph').rolling_chart({
memory: 150,
chart: {
yaxis: {
min: -100,
max: 100
},
xaxis: {
show: false
}
}
});
// connect sample event to graph
events.connect('sample', '#graph');
</script> -->
</html>