npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

webclock

v1.1.0

Published

A simple plug in to develop analog watches for web pages

Downloads

8

Readme

How to use the analogClock plug in

The plug in is used for generating analog watches for web pages to improve the overall design and make them more appealing

This plug in offers a possible 8 different watches by editing the various options that is without considering colors

The tree.json attempts to simply the complicated web of things to allow you to edit the watch with your own styles and express yourself, this makes it easy to even access the very small details in your watch. The file is self explanatory with selectors to edit each component if you have problems using it raise an issue.

Installation

 $ npm install webclock

Usage

A simple walk through of the options

1: watch: 'large'/'small'/'medium'(Default)/'extend' -> choose any of the four *extend is different because the values are placed inside the watch not outside like the rest(check 4 for its options)

2:minor: true/false -> removes all minor values leaving on 3,6,9,12

3: major: true/false -> removes the major values leaving none or only the minor values

4 extended if you use extend watch configure the watch style from here :

  {
    x_size: 'normal' || 'large', // sets the size of the watch
    inner_minor: true || false, // removes the shortest sticks
    inner_major: true || false, // removes the longer sticks (affects sticks only)
    inner_major_type: 'sticks' || 'number' // choose inner symbols to use
  }

5: effect: 'tick' || 'flow' -> flow(continuous + runs on high CPU utilization)

6: logo: true || false

7: logo_text: if logo true input the text here

8: GMT: true || false ->set true if you do not want to use local time

9: GMT_offset: if GMT is true input the gmt offset of the time in the other location you want to use

Below are the defaults:

{
  watch: 'medium',
  minor: true, 
  major: true, 
  effect: 'tick',
  logo: false, 
  logo_text: 'name',
  GMT: false,
  GMT_offset: 0,
  extended:{
   inner_minor: true,
   inner_major: true,
   inner_major_type: 'sticks'
  }
}

CAUTION

If you use logo_text the logo may not be centrally placed, find your watch in tree.json to see a way to edit it's position

Do not edit fonts unless you are willing to change the whole layout everything but you can edit almost anything else without worry.

Do not use with bootstrap > 3.3.7 yet it may result to improper clock alignment still trying to find a way round this if you have a solution do not hesitate

Example

 <script src="jquery.js"></script>
 <script src="analogclock.js"></script>
 .......................
 <body>
   <div id="clock"></div> <!-- You want the clock to be placed here -->
   ......................
 </body>
 <script>
 $("#clock").analogClock({
      watch: 'medium',
      minor: true, 
      major: true, 
      effect: 'tick',
      logo: true,
      logo_text: 'My website name',
      GMT: true,
      GMT_offset: +3
 });
 </script>