Open
Description
I am working with vis js Timeline (A lot of Grouped Data) Project. Here's a link:
https://visjs.github.io/vis-timeline/examples/timeline/other/groupsPerformance.html?count=100
Here on top of the page,
Choose a number of items: 100, 1000, 10000, 100000
100, 1000, 10000, 100000 are links and when I click on these link page reloads and I want to stop reloading.
This is the code of that portion of the application:
<!DOCTYPE html>
![Uploading IMG_20211207_225446.jpg…]()
<html>
<head>
<title> Number Choosing
</title>
</head>
<body>
<p style="margin-top: 0%; margin-left: 261px;"> Choose a number of items:
<a href="?count=10" data-link>10</a>,
<a href="?count=100" data-link>100</a>,
<a href="?count=1000" data-link> 1000</a>,
<a href="?count=10000" data-link>10000</a>,
<a href="?count=100000" data-link> 100000</a>
</p>
<p><span id="count" style="margin-top: 0%; margin-left: 261px;"> </span></p>
<script type="text/javascript">
function gup(name) {
name = name.replace(/[\[]/, "\\[").replace(/[\]]/, "\\]");
var regexS = "[\\?&]" + name + "=([^&#]*)";
var regex = new RegExp(regexS);
var results = regex.exec(window.location.href);
if (results == null) return "";
else return results[1];
}
// get selected item count from url parameter
var count = (Number(gup('count')) || 1000);
</script>
</body>
</html>