Comments (1)
It took awhile to get through this, and I'm a noob with under 10 hours in js, but I had to make a few changes to the MMM-CountDown.js file in the module's folder.
At the top of the file, change
defaults: { event: "New Millenium:", date: "3000-01-01",
to (insert your event date in place of YYYY-MM-DD):
defaults: { event: "New Millenium:", date: "YYYY-MM-DD",
next go down to lines 35-37 and update them to say
var today = new Date().getTime(); var target = new Date(this.config.date); var timeDiff = target - today;
from mmm-countdown.
Related Issues (13)
- Add Support for hours/minutes/seconds HOT 2
- Keep getting update notification. HOT 2
- Option to auto hide module when event is reached
- Incorrect countdown number. HOT 1
- Impossible to reduce the size of the text HOT 2
- How to Adjust Font Size HOT 3
- Not Showing up FIX!
- How to?
- Nothing shows up. HOT 1
- Let the countdown be a date/time, not just date. HOT 3
- Calculate best interval HOT 2
- Won't show up HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mmm-countdown.