Người gửi: |
Phí Đình Thảo |
Ngày đăng: |
17/09/2020 |
Dung lượng: |
162.39 KB |
**General plugin description:**\
With this Add-on for Super Forms you can create advanced calculation forms based on the user input. Make awesome booking and order forms or create complex estimation forms. It is as easy as doing normal mathematics.
This add-on will extend Super Forms with an extra element named: **Calculator**
With this element you can show the end-user a live price based on math entered on the element.
Example calculations that you can do are with or without {tags} e.g:
**{tag} calculations:**
+ {field1}*{field2}
+ ({field1}/{field2})*1.5
+ {field1}-{field2}
+ {field1}+{field2}
+ Math.pow({field1}, 0.5)
**Available Math() calculations:**
+ Math.abs(x) _- returns the absolute value of a number_
+ Math.acos(x) _- returns the arccosine (in radians) of a number_
+ Math.acosh(x) _- returns the hyperbolic arc-cosine of a number_
+ Math.asin(x) _- returns the arcsine (in radians) of a number_
+ Math.asinh(x) _- returns the hyperbolic arcsine of a number_
+ Math.atan(x) _- returns the arctangent (in radians) of a number_
+ Math.atan2(y, x) _-returns the arctangent of the quotient of its arguments_
+ Math.atanh(x) _-returns the hyperbolic arctangent of a number_
+ Math.cbrt(x) _-returns the cube root of a number_
+ Math.ceil(x) _-returns the smallest integer greater than or equal to a given number_
+ Math.clz32(x) _-returns the number of leading zero bits in the 32-bit binary representation of a number_
+ Math.cos(x) _-returns the cosine of a number_
+ Math.cosh(x) _-returns the hyperbolic cosine of a number_
+ Math.floor(x) _-returns the largest integer less than or equal to a given number_
+ Math.fround(x) _-returns the nearest single precision float representation of a number_
+ Math.hypot(a, b, c) _-returns the square root of the sum of squares of its arguments,_
+ Math.imul(a, b) _-returns the result of the C-like 32-bit multiplication of the two parameters_
+ Math.log(x) _-returns the natural logarithm (base e) of a number_
+ Math.log10(x) _-returns the base 10 logarithm of a number_
+ Math.log1p(x) _-returns the natural logarithm (base e) of 1 + a number_
+ Math.log2(x) _-returns the base 2 logarithm of a number_
+ Math.max(a, b, c) _-returns the largest of zero or more numbers_
+ Math.min(a, b, c) _-returns the smallest of zero or more numbers_
+ Math.pow(base, exponent) _-returns the base to the exponent power_
+ Math.random() _-returns a floating-point, pseudo-random number in the range [0, 1]_
+ Math.round(x) _-returns the value of a number rounded to the nearest integer_
+ Math.sign(x) _-returns the sign of a number, indicating whether the number is positive, negative or zero_
+ Math.sin(x) _-returns the sine of a number_
+ Math.sinh(x) _-returns the hyperbolic sine of a number_
+ Math.sqrt(x) _-returns the square root of a number_
+ Math.tan(x) _-returns the tangent of a number_
+ Math.tanh(x) _-returns the hyperbolic tangent of a number_
+ Math.trunc(x) _-returns the integer part of a number by removing any fractional digits_
**Compatibility:**
+ Super Forms version 3.3 or higher
+ PHP version 5.4 or higher
+ WordPress version 3.9 or higher
**Changelog:**\
Oct 16, 2017 - Version 1.8.0
- Changed: made plugin ready for Envato Elements
- Fix: replaced .data('value') with .attr('data-value') because data is no longer being used to save the calculator value