Comments (4)
this is what the part of the code I changed looks like. 1/2 "EvoCalendar = (function() {
var instanceUid = 0;
function EvoCalendar(element, settings) {
var _ = this;
_.defaults = {
theme: "Midnight Blue",
format: 'MM/dd/yyyy',
titleFormat: 'MM yyyy',
eventHeaderFormat: 'MM d, yyyy',
firstDayOfWeek: 1,
language: 'cs',
todayHighlight: false,
sidebarDisplayDefault: true,
sidebarToggler: true,
eventDisplayDefault: true,
eventListToggler: true,
calendarEvents: null
};
_.options = $.extend({}, _.defaults, settings);
_.initials = {
default_class: $(element)[0].classList.value,
validParts: /dd?|DD?|mm?|MM?|yy(?:yy)?/g,
dates: {
en: {
days: ["Sunday", "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday"],
daysShort: ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"],
daysMin: ["Su", "Mo", "Tu", "We", "Th", "Fr", "Sa"],
months: ["January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"],
monthsShort: ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"],
noEventForToday: "No event for today.. so take a rest! :)",
noEventForThisDay: "No event for this day.. so take a rest! :)",
previousYearText: "Previous year",
nextYearText: "Next year",
closeSidebarText: "Close sidebar",
closeEventListText: "Close event list"
},
cs: {
days: ["neděle", "pondělí", "úterý", "středa", "čtvrtek", "pátek", "sobota"],
daysShort: ["ne", "po", "út", "st", "čt", "pá", "so"],
daysMin: ["ne", "po", "út", "st", "čt", "pá", "so"],
months: ["Leden", "Únor", "Březen", "Duben", "Květen", "Červen", "Červenec", "Srpen", "Září", "Říjen", "Listopad", "Prosinec"],
monthsShort: ["Led", "Úno", "Bře", "Dub", "Kvě", "Čvn", "Čvc", "Srp", "Zář", "Říj", "Lis", "Pro"],
noEventForToday: "Pro dnešek žádná událost.. tak si odpočiňte! :)",
noEventForThisDay: "Pro tento den se nekoná žádná akce.. tak si odpočiňte! :)",
previousYearText: "Předchozí rok",
nextYearText: "Nadcházející rok",
closeSidebarText: "Zavřít postranní panel",
closeEventListText: "Zavřít seznam událostí"
},"
from evo-calendar.
2/2 "EvoCalendar.prototype.buildCalendar = function() {
var _ = this, markup, title;
_.calculateDays();
title = _.formatDate(new Date((_.$active.month + 1) + '/01/' + _.$active.year), _.options.titleFormat, _.options.language);
_.$elements.innerEl.find('.calendar-table th').text(title);
_.$elements.innerEl.find('.calendar-body').remove(); // Clear days"
from evo-calendar.
from evo-calendar.
_.calculateDays();
title = _.formatDate(new Date((_.$active.month + 1) + '/01/' + _.$active.year), _.options.titleFormat, _.options.language);
_.$elements.innerEl.find('.calendar-table th').text(title);
_.$elements.innerEl.find('.calendar-body').remove(); // Clear days"
from evo-calendar.
Related Issues (20)
- EvoCalendar can not be destroy
- How to add events with time? HOT 4
- Event Header Wrong
- Monthly event list instead of day
- Feature Request - Is it possible to show weeks or 2 weeks range in calendar ?
- format.toValue and format.toDisplay undefined
- How to get current month? HOT 1
- How I can get all events for the month? HOT 1
- Fetch events from db? HOT 4
- Style issue with iPad tablets HOT 1
- change gregorian calendar to solar hijri calendar
- How can I make it so that the months can be switched by the scroll wheel?
- Pleaaaase Add Solar Calendar (Jalai Hijri) Too
- selectYear functionality not working HOT 2
- event title limit HOT 1
- add language Korean
- In safari, the title part works as NaN.
- Show all the events from the selected month HOT 1
- Is it possible to have recurring events every 2-3 weeks instead of every year?
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 evo-calendar.