ericwenn / flat_calendar Goto Github PK
View Code? Open in Web Editor NEWA jQuery plugin for implementing a flat calendar on your website. Visit http://ericwenn.se/frameworks/flatmin/calendar/ for more information.
License: MIT License
A jQuery plugin for implementing a flat calendar on your website. Visit http://ericwenn.se/frameworks/flatmin/calendar/ for more information.
License: MIT License
Hi Eric,
First issue I've noticed with this is when I write...
November 3 2014 ...It should be written as data-day="2014113"
...but when I write out the date for January 13, 2014, it would also be written as data-day="2014113"
For this reason alone, my suggestion would be to read the months as two digit months and two digit days.
November 3, 2014 could be read as 20141103
and...
January 13, 2014 could be read as 20140113.
If it's done that way, you won't run into this issue anywhere in the year.
Set up:-
javascript call:-
var calOptions = new Object({color:'red',showdays:true});
var calEvents = [{
date: "20131016",
name: "Mulberry3 Festival",
start: "9.00",
end: "9.30",
location: "London"
},
{
date:"20131014",
name:"Mulberry1 Festival",
start: "9.00",
end:"10.00",
location:"Stockholm"
},
{
date: "20131015",
name:"York2",
start:"10.00",
end:"11.00",
location:"York"
}];
$(function() {
$('.calendar').calendar(calEvents,calOptions);
});
HTML:-
Please take a look at this fiddle here
Click on an event, then go back to the calendar, and click on the same event again... You will see that it creates multiple events after you click it again. It just keeps adding events to that day until I do a page refresh.
Thoughts?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.