Giter VIP home page Giter VIP logo

moon-phase-widget's Introduction

Moon phase widget for Website

Super tiny (only 3kb minified) javascript library to add awesome moon phase widget to your website.

Moon phase widget for website

(This is a screenshot as an example)

Features

  • Auto Geo detection
  • Moon phase name and image
  • Moon set and moon rise time
  • Moon zodiac sign
  • Super small size (This will not affect the speed of your site)
  • Ability to change the background color
  • 3 different styles (normal, small, horizontal)

How To Install (Easy way)

The easiest way to install the widget is by using CDN

Just copy the code below and paste it where you want to see the widget.

<div id="moon-phase-widget" data-color="white"></div>
<script async src="https://cdn.jsdelivr.net/npm/[email protected]/build/automount.min.js">
</script>

Thats all.

If you want you can change the background color by adding your value to data-color attribute.

Text white or hex value #FFFFFF

Also, you can choose from different styles of the widget (By adding specific value to data-style).

Normal (default style)

Small:

<div id="moon-phase-widget" data-color="white" data-style="small"></div>
<script async src="https://cdn.jsdelivr.net/npm/[email protected]/build/automount.min.js">
</script>

Horizontal orientation:

<div id="moon-phase-widget" data-color="white" data-style="horizontal"></div>
<script async src="https://cdn.jsdelivr.net/npm/[email protected]/build/automount.min.js">
</script>

Usage via npm

npm

Install package:

npm install moon-phase-widget

Import code and styles (if you want):

import { MoonPhaseWidget } from 'moon-phase-widget'

import 'moon-phase-widget/src/index.css'

new MoonPhaseWidget('some-element-id')

Contacts

More information about moon phase you can find here

Fill free to contact me if you need help with customization or installation.

moon-phase-widget's People

Contributors

dependabot[bot] avatar g00dv1n avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

moon-phase-widget's Issues

Change font color

Hey Alex, do you know what attribute I can edit to change the font style and font color in your free moon phase widget? Thank you so much! I wasn't sure how to contact you on Github.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.