quentinandre / distributionbuilder Goto Github PK
View Code? Open in Web Editor NEWA Javascript library to conveniently add distribution builders to your online and offline experiments.
License: MIT License
A Javascript library to conveniently add distribution builders to your online and offline experiments.
License: MIT License
@QuentinAndre it looks like Distribution Builder is failing on Internet Explorer 11 with the following syntax error on a basic example (below):
SCRIPT1002: Syntax error, distributionbuilder.min.js (1,1069)
Any idea what might be causing this and how easy it is (or isn't) to fix?
I know IE bugs are a pain, greatly appreciate any help you can provide!
Thanks.
<html>
<head>
<!-- <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script> -->
<link rel="stylesheet" href="https://cdn.rawgit.com/QuentinAndre/DistributionBuilder/master/distributionbuilder.css">
<script src="https://cdn.rawgit.com/QuentinAndre/DistributionBuilder/master/distributionbuilder.min.js"></script>
<script>
// var $j = jQuery.noConflict();
$j(document).ready(function() {
var distbuilder = new DistributionBuilder();
distbuilder.render("targetdiv");
distbuilder.labelize();
});
</script>
</head>
<body>
<div id="targetdiv"></div>
</body>
</html>
Hello Andre,
First of all, we would like to thank you for the great code shared here.
For our experiment, it would be helpful to see the totals in percentages. For example:
We have 20 balls to allocate, each ball is "worth" 5%. If one allocated 5 balls in one column, totals of this column will display 25% instead of 5 balls.
Is there any way we can add this feature to the javascript in our code?
Thanks in advance,
Ayala
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.