Comparing version 1.0.3 to 1.0.4
@@ -92,5 +92,6 @@ /* | ||
if (xpts.length === ypts.length) { | ||
this.xpoints.push.apply(xpts); | ||
this.ypoints.push.apply(ypts); | ||
Array.prototype.push.apply(this.xpoints , xpts); | ||
Array.prototype.push.apply(this.ypoints, ypts); | ||
this.npoints += xpts.length; | ||
this.npoints += xpts.length; | ||
} else { | ||
@@ -97,0 +98,0 @@ logger('xpts and ypts must have the same length'); |
{ | ||
"name": "clockish", | ||
"version": "1.0.3", | ||
"version": "1.0.4", | ||
"description": "A simple vanilla(pure) Javascript library for adding wall clocks to your web application", | ||
@@ -5,0 +5,0 @@ "main": "clock/clock.js", |
# clock-js | ||
A simple vanilla(pure) Javascript library for adding wall clocks to your web application | ||
**clock-js** allows you to add a wall-clock to your we application with ease. | ||
**clock-js** allows you to add a wall-clock to your web application with ease. | ||
@@ -44,3 +44,3 @@ ### Background | ||
Note that css-color shou | ||
Note that css-color should be an hexadecimal string e.g: #444 or #45FF22 | ||
@@ -101,3 +101,3 @@ To add clock functionality to your webpage, **clock-js** needs a canvas element placed in the right place in the DOM(HTML code). For instance, | ||
If you want a clock that floats on your page, specify the `floating` field in your clock's options, and set it to true. In this case, yo need not add the canvas element to your code. The clock will dynamically create a canvas object and inject it in your HTML code. | ||
If you want a clock that floats on your page, specify the `floating` field in your clock's options, and set it to true. In this case, you need not add the canvas element to your code. The clock will dynamically create a canvas object and inject it in your HTML code. | ||
@@ -104,0 +104,0 @@ You may customize the dynamically created object by specifying the canvas entry: |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
603142
3472