|
2 | 2 | #box-inner
|
3 | 3 | %h1
|
4 | 4 | Timesheet<span>.js</span>
|
5 |
| - %p Visualize events with pure <span>HTML5 and CSS3</span>. Create responsive time sheets with sneaky JavaScript. Generated based on HTML structure or just plain text. |
| 5 | + %p Visualize your data with sexy <span>HTML5</span> and <span>CSS3</span>. Create simple responsive time sheets with sneaky JavaScript. Style them with CSS3 and have mobile fun as well … |
6 | 6 |
|
7 | 7 | #timesheet
|
8 | 8 |
|
9 |
| - %p Just include Timesheet.js and configure your data. No external dependencies, <span>no jQuery</span> needed and <span>no Angular.JS</span> as well! Just pure JavaScript generation, beautiful HTML5 layout and some realy delicious CSS3. |
| 9 | + %p Just include Timesheet.js and configure your data. No external dependencies, no jQuery needed and of course no Angular.JS! Just a few lines JavaScript to generate a beautiful HTML5 layout and some really delicious CSS to be customized by mighty you. |
10 | 10 |
|
11 | 11 | %code
|
12 | 12 | %pre
|
13 |
| - :escaped |
14 |
| - <script src="/javascripts/timesheet.js" type="text/javascript"> |
| 13 | + = preserve do |
| 14 | + :escaped |
| 15 | + <script src="/javascripts/timesheet.js" type="text/javascript" /> |
15 | 16 |
|
16 |
| - %p Create your HTML structure. Or prepare your data in plain text or easily create Timesheets with pure JavaScripts |
| 17 | + %p Create a simple time sheet based on a JS array of events: |
17 | 18 |
|
18 | 19 | %code
|
19 | 20 | %pre
|
20 |
| - :escaped |
21 |
| - <ul><li></li></ul> |
| 21 | + = preserve do |
| 22 | + :escaped |
| 23 | + new Timesheet('timesheet', 2002, 2013, [ |
| 24 | + ['2002', '09/2002', 'A freaking awesome time', 'lorem'], |
| 25 | + ['06/2002', '09/2003', 'Some great memories', 'ipsum'], |
| 26 | + ['2003', 'Had very bad luck'], |
| 27 | + ['10/2003', '2006', 'At least had fun', 'dolor'], |
| 28 | + ['02/2005', '05/2006', 'Enjoyed those times as well', 'ipsum'], |
| 29 | + ['07/2005', '09/2005', 'Bad luck again', 'default'], |
| 30 | + ['10/2005', '2008', 'For a long time nothing happened', 'dolor'], |
| 31 | + ['01/2008', '05/2009', 'LOST Season #4', 'lorem'], |
| 32 | + ['01/2009', '05/2009', 'LOST Season #4', 'lorem'], |
| 33 | + ['02/2010', '05/2010', 'LOST Season #5', 'lorem'], |
| 34 | + ['09/2008', '06/2010', 'FRINGE #1 & #2', 'ipsum'] |
| 35 | + ]); |
22 | 36 |
|
23 |
| - %p Lorem ipsum dolor sit amet. |
| 37 | + %p Or let Timesheet.js parse your HTML structure. You now, for Google and all those spiders out there. Would be a shame if those events of yours don't get indexed! |
| 38 | + |
| 39 | + %code |
| 40 | + %pre |
| 41 | + = preserve do |
| 42 | + :escaped |
| 43 | + <div id="timesheet"></div> |
| 44 | + |
| 45 | + <ul class="timesheet-data" data-timesheet="timesheet"> |
| 46 | + <li> |
| 47 | + <span class="date">2002-09/2002</span> |
| 48 | + <span class="label" data-tag="lorem">A freaking awesome time</span> |
| 49 | + </li> |
| 50 | + <li> |
| 51 | + <span class="date">06/2002-09/2003</span> |
| 52 | + <span class="label" data-tag="lorem">Some great memories</span> |
| 53 | + </li> |
| 54 | + <li> |
| 55 | + <span class="date">2003</span> |
| 56 | + <span class="label" data-tag="lorem">Had very bad luck</span> |
| 57 | + </li> |
| 58 | + </ul> |
| 59 | + |
| 60 | + %p It's that simple to use <span>Timesheet.js</span>. So, have a nice day and thank you for smoking … |
0 commit comments