Jquery plugin that calcutate euclidean algorithm
<script src='euclideanAlgorithm.js'></script>
<link rel='stylesheet' href='euclideanAlgorithm.css' />
<div id="container"></div>
<script>
$("#container").euclideanAlgorithm({
a: 75, b:36,
remainderSymbol: "remainder",
quotientSymbol: "quotient",
showGcd: true,
});
</script>
- Fix dependencies. In project folder root:
npm install -g grunt-cli
npm install
- Build:
grunt
Initialize options
$("#container").euclideanAlgorithm({
a: 75, b:36,
remainderSymbol: "remainder",
quotientSymbol: "quotient",
showGcd: true,
});
-
a
type:Integer
description: First operand -
b
type:Integer
description: Second operand -
remainderSymbol
type:String
description: Head text of the remainder row -
quotientSymbol
type:String
description: Head text of the quotient row -
showGcd
type:boolean
description: If true, show greatest common divisor, otherwise, not show.
The MIT License.