Giter Club home page Giter Club logo

caleandar's Issues

onclick event to div for mobile using theme 2

My JS is very very rusty and I'm trying to get 'Title' from my events array to appear in a div below the caleander on my page for mobile users. Not sure how to accomplish this or if I have to use a different theme.

Hot reload calendar?

A second call to caleandar(element,events); in a vain attempt to reload the calendar produces no error but does nothing. This is a use-case where I can't reload the parent container.

SET FUTURE EVENTS

Hi,
Nice plugin, but please is there a way i can set the future events on the calendar?

I noticed when i pass them only events on the present month get attached to the calendar. when i navigate to the future event date they are not present on the calendar,thanks.

Show Future Month

Hello,
I want to ask that in any manner, Can we show the future month with events without navigating?
For reference, I'm attaching an image.
ST-Product - Copy

It will be a great help to me if you can suggest something regarding this.
Thanks

how to use eventclick

Could you please give an example to illustrate how to use bing eventclick. What i did here throw me an error, which is eventclick is not bind. PTAL, thx!
screen shot 2018-12-25 at 6 43 32 pm

Get Weekday?

Fine library!

Is it possible to get the weekday of a clicked cld-day?

Mon, Tues etc.

TIA

Month starts counting at zero

When I enter an event date of 6 it displays in July.
Logically 6 should be June.
Looks like it is counting starting at 0 as a entry of 0 displays as January.

The day and year number display correctly.

Love it other than that.

Thanks
Tim

var events = [
{'Date': new Date(2016, 6, 1), 'Title': 'Doctor appointment at 3:25pm.'},
{'Date': new Date(2016, 6, 7), 'Title': 'New Garfield movie comes out!', 'Link': 'https://garfield.com'},
{'Date': new Date(2016, 6, 11), 'Title': '25 year anniversary', 'Link': 'https://www.google.com.au/#q=anniversary+gifts'},
];

Multiple Event Same Day

It seems that if I have 2 events in the same day, the second one override the first one...

Remove Links from Events

I'm not too familiar with js & I was wondering if you could help me remove the "link" function from events that show on the calendar. I just want plain text to display on the calendar itself, not link to anywhere. Long story short, I'm wondering how to re-write this section of the js file so that it isn't a link, but plain text:

var number = DayNumber(i+1);
// Check Date against Event Dates
for(var n = 0; n < calendar.Model.length; n++){
var evDate = calendar.Model[n].Date;
var toDate = new Date(calendar.Selected.Year, calendar.Selected.Month, (i+1));
if(evDate.getTime() == toDate.getTime()){
number.className += " eventday";
var title = document.createElement('span');
title.className += "cld-title";
if(typeof calendar.Model[n].Link == 'function' || calendar.Options.EventClick){
var a = document.createElement('a');
a.setAttribute('href', '#');
a.innerHTML += calendar.Model[n].Title;
if(calendar.Options.EventClick){
var z = calendar.Model[n].Link;
if(typeof calendar.Model[n].Link != 'string'){
a.addEventListener('click', calendar.Options.EventClick.bind.apply(calendar.Options.EventClick, [null].concat(z)) );
if(calendar.Options.EventTargetWholeDay){
day.className += " clickable";
day.addEventListener('click', calendar.Options.EventClick.bind.apply(calendar.Options.EventClick, [null].concat(z)) );
}
}else{
a.addEventListener('click', calendar.Options.EventClick.bind(null, z) );
if(calendar.Options.EventTargetWholeDay){
day.className += " clickable";
day.addEventListener('click', calendar.Options.EventClick.bind(null, z) );
}
}
}else{
a.addEventListener('click', calendar.Model[n].Link);
if(calendar.Options.EventTargetWholeDay){
day.className += " clickable";
day.addEventListener('click', calendar.Model[n].Link);
}
}
title.appendChild(a);
}else{
title.innerHTML += '' + calendar.Model[n].Title + '';
}
number.appendChild(title);
}
}
day.appendChild(number);
// If Today..
if((i+1) == calendar.Today.getDate() && calendar.Selected.Month == calendar.Today.Month && calendar.Selected.Year == calendar.Today.Year){
day.className += " today";
}
days.appendChild(day);
}

Thank you in advance!

get Date

can you tell me how can i get the date which is clicked by user?

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.