Team:WITS-CSIR SA/Scrapbook/Calendar
From 2011.igem.org
(Difference between revisions)
Line 63: | Line 63: | ||
<div class="padding"> | <div class="padding"> | ||
- | < | + | <div class="calendar" style="width:50%;"> |
- | < | + | Loading ... |
- | < | + | </div> |
- | < | + | |
- | < | + | <script type="text/html" id="tmplCalendar"> |
- | </ | + | <div class="months ui-corner-all"> |
+ | <% _.each(Months, function(month){ %> | ||
+ | <a href="#"><%= month.Name %></a> | ||
+ | <% }); %> | ||
+ | </div> | ||
+ | <div class="weeks"> | ||
+ | </div> | ||
+ | </script> | ||
+ | |||
+ | <script type="text/html" id="tmplWeeks"> | ||
+ | <% _.each(Weeks, function(week){ %> | ||
+ | <h3><a href="#"><%= week.Name %></a></h3> | ||
+ | <div class="content"> | ||
+ | <% _.each(week.Days, function(day){ | ||
+ | if(day.Text != '' && day.Text != null){ | ||
+ | %> | ||
+ | <h2><%= day.Name %></h2> | ||
+ | <p> | ||
+ | <%= day.Text %> | ||
+ | </p> | ||
+ | <% }}); %> | ||
+ | </div> | ||
+ | <% }); %> | ||
+ | </script> | ||
+ | |||
+ | <script type="text/javascript"> | ||
+ | $(function(){ | ||
+ | $('div.calendar').AccordionCalendar(); | ||
+ | }); | ||
+ | </script> | ||
</div> | </div> |
Revision as of 14:00, 15 May 2011