Line 2: | Line 2: | ||
<html> | <html> | ||
<div id="calendar" class="fc-calendar-container"></div> | <div id="calendar" class="fc-calendar-container"></div> | ||
− | <script> | + | <script type="text/javascript"> |
− | $( '#calendar' ).calendario(); | + | $(function() { |
+ | |||
+ | var transEndEventNames = { | ||
+ | 'WebkitTransition' : 'webkitTransitionEnd', | ||
+ | 'MozTransition' : 'transitionend', | ||
+ | 'OTransition' : 'oTransitionEnd', | ||
+ | 'msTransition' : 'MSTransitionEnd', | ||
+ | 'transition' : 'transitionend' | ||
+ | }, | ||
+ | transEndEventName = transEndEventNames[ Modernizr.prefixed( 'transition' ) ], | ||
+ | $wrapper = $( '#custom-inner' ), | ||
+ | $calendar = $( '#calendar' ), | ||
+ | cal = $calendar.calendario( { | ||
+ | onDayClick : function( $el, $contentEl, dateProperties ) { | ||
+ | |||
+ | if( $contentEl.length > 0 ) { | ||
+ | showEvents( $contentEl, dateProperties ); | ||
+ | } | ||
+ | |||
+ | }, | ||
+ | caldata : codropsEvents, | ||
+ | displayWeekAbbr : true | ||
+ | } ), | ||
+ | $month = $( '#custom-month' ).html( cal.getMonthName() ), | ||
+ | $year = $( '#custom-year' ).html( cal.getYear() ); | ||
+ | |||
+ | $( '#custom-next' ).on( 'click', function() { | ||
+ | cal.gotoNextMonth( updateMonthYear ); | ||
+ | } ); | ||
+ | $( '#custom-prev' ).on( 'click', function() { | ||
+ | cal.gotoPreviousMonth( updateMonthYear ); | ||
+ | } ); | ||
+ | |||
+ | function updateMonthYear() { | ||
+ | $month.html( cal.getMonthName() ); | ||
+ | $year.html( cal.getYear() ); | ||
+ | } | ||
+ | |||
+ | // just an example.. | ||
+ | function showEvents( $contentEl, dateProperties ) { | ||
+ | |||
+ | hideEvents(); | ||
+ | |||
+ | var $events = $( '<div id="custom-content-reveal" class="custom-content-reveal"><h4>Events for ' + dateProperties.monthname + ' ' + dateProperties.day + ', ' + dateProperties.year + '</h4></div>' ), | ||
+ | $close = $( '<span class="custom-content-close"></span>' ).on( 'click', hideEvents ); | ||
+ | |||
+ | $events.append( $contentEl.html() , $close ).insertAfter( $wrapper ); | ||
+ | |||
+ | setTimeout( function() { | ||
+ | $events.css( 'top', '0%' ); | ||
+ | }, 25 ); | ||
+ | |||
+ | } | ||
+ | function hideEvents() { | ||
+ | |||
+ | var $events = $( '#custom-content-reveal' ); | ||
+ | if( $events.length > 0 ) { | ||
+ | |||
+ | $events.css( 'top', '100%' ); | ||
+ | Modernizr.csstransitions ? $events.on( transEndEventName, function() { $( this ).remove(); } ) : $events.remove(); | ||
+ | |||
+ | } | ||
+ | |||
+ | } | ||
+ | |||
+ | }); | ||
</script> | </script> | ||
<link rel="stylesheet" type="text/css" href="http://tympanus.net/Development/Calendario/css/calendar.css" /> | <link rel="stylesheet" type="text/css" href="http://tympanus.net/Development/Calendario/css/calendar.css" /> |
Revision as of 12:07, 13 August 2016
Document the dates you worked on your project.
What should this page have?
- Chronological notes of what your team is doing.
- Brief descriptions of daily important events.
- Pictures of your progress.
- Mention who participated in what task.
Inspiration
You can see what others teams have done to organize their notes: