Permalink
Browse files

load different office agendas

  • Loading branch information...
1 parent 5ccc9f0 commit 6b14ba3d1e160459cc9c417c2b3d2ee1a316eb15 @digitaltom digitaltom committed Mar 11, 2013
Showing with 1,737 additions and 90 deletions.
  1. +1 −1 TODO
  2. +1 −0 css/hackweek.css
  3. +7 −89 index.html
  4. +141 −0 js/agenda_content.js
  5. +39 −0 js/hackweek.js
  6. +94 −0 js/jquery.cookie.js
  7. +1,454 −0 js/showdown.js
View
2 TODO
@@ -20,7 +20,7 @@ General
* Agenda Effects
* Different Agendas for different office
* Fix Height and Width
-* Click outside to close the current agenda
+* Click outside to close the current agenda
3- Projects
View
@@ -315,6 +315,7 @@ li {
letter-spacing: 2px;
font-size: 15px;
color: #FFF;
+ z-index: 35;
}
#agenda-offices span{
display: inline-block;
View
@@ -3,6 +3,9 @@
<link href="css/wterm.css" type="text/css" rel="stylesheet">
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
<script src="js/wterm.jquery.js"></script>
+ <script src="js/jquery.cookie.js"></script>
+ <script src="js/agenda_content.js"></script>
+ <script src="js/showdown.js"></script>
<script src="js/hackweek.js"></script>
<script src="js/terminal_logic.js"></script>
</head>
@@ -82,10 +85,10 @@ <h3>
<div id="agenda" class="">
<div id="agenda-offices">
- <span class="current">DE</span>
- <span>US</span>
- <span>CZ</span>
- <span>CHN</span>
+ <span id="agenda-de-link">DE</span>
+ <span id="agenda-us-link">US</span>
+ <span id="agenda-cz-link">CZ</span>
+ <span id="agenda-chn-link">CHN</span>
</div>
<div id="agenda-year">
@@ -107,35 +110,6 @@ <h3>
<div class="agenda-day-content" id="monday-content">
<div class="agenda-details">
- <h1>
- Morning
- </h1>
- <p>
- <h3>09:00am Breakfast</h3>
- <ul>
- <li><b>Menu</b></li>
- <li>- Grilled Bacon</li>
- <li>- Fried Egg</li>
- <li>- Grilled Pork Sausage with Baked Beans</li>
- <li>- Fresh Baked Tomato</li>
- <li>- Sauteed Mushroom</li>
- </ul>
- </p>
- <p>
- <h3>10:00am - 12:00am Lightning Talks</h3>
- <li>- ownCloud (Klaas Freitag/ownCloud Inc.)</li>
- <li>- Managing Network Interfaces</li>
- <li>- RADOS Distributed Storage</li>
- <li>- Ceph: Our experience so far in Studio-Cluster</li>
- <li>- The SUSE sales cycle</li>
- </p>
- <h1>
- Afternoon
- </h1>
- <h3>16:00am - 17:00am Lightning Talks</h3>
- <li>- ownCloud (Klaas Freitag/ownCloud Inc.)</li>
- <li>- Managing Network Interfaces</li>
- </p>
</div>
</div>
@@ -152,20 +126,6 @@ <h3>16:00am - 17:00am Lightning Talks</h3>
<div class="agenda-day-content" id="tuesday-content">
<div class="agenda-details">
- <h1>
- Morning
- </h1>
- <p>
- <h3>09:00am Breakfast</h3>
- </p>
- <p>
- <h3>10:00am - 12:00am Lightning Talks</h3>
- </p>
- <h1>
- Afternoon
- </h1>
- <h3>16:00am - 17:00am Lightning Talks</h3>
- </p>
</div>
</div>
@@ -182,20 +142,6 @@ <h3>16:00am - 17:00am Lightning Talks</h3>
<div class="agenda-day-content" id="wednesday-content">
<div class="agenda-details">
- <h1>
- Morning
- </h1>
- <p>
- <h3>09:00am Breakfast</h3>
- </p>
- <p>
- <h3>10:00am - 12:00am Lightning Talks</h3>
- </p>
- <h1>
- Afternoon
- </h1>
- <h3>16:00am - 17:00am Lightning Talks</h3>
- </p>
</div>
</div>
@@ -212,20 +158,6 @@ <h3>16:00am - 17:00am Lightning Talks</h3>
<div class="agenda-day-content" id="thursday-content">
<div class="agenda-details">
- <h1>
- Morning
- </h1>
- <p>
- <h3>09:00am Breakfast</h3>
- </p>
- <p>
- <h3>10:00am - 12:00am Lightning Talks</h3>
- </p>
- <h1>
- Afternoon
- </h1>
- <h3>16:00am - 17:00am Lightning Talks</h3>
- </p>
</div>
</div>
@@ -242,20 +174,6 @@ <h3>16:00am - 17:00am Lightning Talks</h3>
<div class="agenda-day-content" id="friday-content">
<div class="agenda-details">
- <h1>
- Morning
- </h1>
- <p>
- <h3>09:00am Breakfast</h3>
- </p>
- <p>
- <h3>10:00am - 12:00am Lightning Talks</h3>
- </p>
- <h1>
- Afternoon
- </h1>
- <h3>16:00am - 17:00am Lightning Talks</h3>
- </p>
</div>
</div>
View
@@ -0,0 +1,141 @@
+var agenda_content = {"de": {
+ "monday": " \n\
+Morning \n\
+============= \n\
+### 09:00am Breakfast ###### \n\
+* Menu \n\
+* - Grilled Bacon \n\
+* - Fried Egg \n\
+* - Grilled Pork Sausage with Baked Beans \n\
+* - Fresh Baked Tomato \n\
+* - Sauteed Mushroom \n\
+\n\
+### 10:00am - 12:00am Lightning Talks \n\
+* - ownCloud (Klaas Freitag/ownCloud Inc.) \n\
+* - Managing Network Interfaces \n\
+* - RADOS Distributed Storage \n\
+* - Ceph: Our experience so far in Studio-Cluster \n\
+* - The SUSE sales cycle \n\
+Afternoon \n\
+============= \n\
+### 16:00am - 17:00am Lightning Talks \n\
+* - ownCloud (Klaas Freitag/ownCloud Inc.) \n\
+* - Managing Network Interfaces \n\
+",
+ "tuesday": " \n\
+Morning \n\
+============= \n\
+### 09:00am Breakfast ###### \n\
+* Menu \n\
+* - Grilled Bacon \n\
+* - Fried Egg \n\
+* - Grilled Pork Sausage with Baked Beans \n\
+* - Fresh Baked Tomato \n\
+* - Sauteed Mushroom \n\
+\n\
+### 10:00am - 12:00am Lightning Talks \n\
+* - ownCloud (Klaas Freitag/ownCloud Inc.) \n\
+* - Managing Network Interfaces \n\
+* - RADOS Distributed Storage \n\
+* - Ceph: Our experience so far in Studio-Cluster \n\
+* - The SUSE sales cycle \n\
+Afternoon \n\
+============= \n\
+### 16:00am - 17:00am Lightning Talks \n\
+* - ownCloud (Klaas Freitag/ownCloud Inc.) \n\
+* - Managing Network Interfaces \n\
+",
+ "wednesday": " \n\
+Morning \n\
+============= \n\
+### 09:00am Breakfast ###### \n\
+* Menu \n\
+* - Grilled Bacon \n\
+* - Fried Egg \n\
+* - Grilled Pork Sausage with Baked Beans \n\
+* - Fresh Baked Tomato \n\
+* - Sauteed Mushroom \n\
+\n\
+### 10:00am - 12:00am Lightning Talks \n\
+* - ownCloud (Klaas Freitag/ownCloud Inc.) \n\
+* - Managing Network Interfaces \n\
+* - RADOS Distributed Storage \n\
+* - Ceph: Our experience so far in Studio-Cluster \n\
+* - The SUSE sales cycle \n\
+Afternoon \n\
+============= \n\
+### 16:00am - 17:00am Lightning Talks \n\
+* - ownCloud (Klaas Freitag/ownCloud Inc.) \n\
+* - Managing Network Interfaces \n\
+",
+ "thursday": " \n\
+Morning \n\
+============= \n\
+### 09:00am Breakfast ###### \n\
+* Menu \n\
+* - Grilled Bacon \n\
+* - Fried Egg \n\
+* - Grilled Pork Sausage with Baked Beans \n\
+* - Fresh Baked Tomato \n\
+* - Sauteed Mushroom \n\
+\n\
+### 10:00am - 12:00am Lightning Talks \n\
+* - ownCloud (Klaas Freitag/ownCloud Inc.) \n\
+* - Managing Network Interfaces \n\
+* - RADOS Distributed Storage \n\
+* - Ceph: Our experience so far in Studio-Cluster \n\
+* - The SUSE sales cycle \n\
+Afternoon \n\
+============= \n\
+### 16:00am - 17:00am Lightning Talks \n\
+* - ownCloud (Klaas Freitag/ownCloud Inc.) \n\
+* - Managing Network Interfaces \n\
+",
+ "friday": " \n\
+Morning \n\
+============= \n\
+### 09:00am Breakfast ###### \n\
+* Menu \n\
+* - Grilled Bacon \n\
+* - Fried Egg \n\
+* - Grilled Pork Sausage with Baked Beans \n\
+* - Fresh Baked Tomato \n\
+* - Sauteed Mushroom \n\
+\n\
+### 10:00am - 12:00am Lightning Talks \n\
+* - ownCloud (Klaas Freitag/ownCloud Inc.) \n\
+* - Managing Network Interfaces \n\
+* - RADOS Distributed Storage \n\
+* - Ceph: Our experience so far in Studio-Cluster \n\
+* - The SUSE sales cycle \n\
+Afternoon \n\
+============= \n\
+### 16:00am - 17:00am Lightning Talks \n\
+* - ownCloud (Klaas Freitag/ownCloud Inc.) \n\
+* - Managing Network Interfaces \n\
+"},
+ "us": {
+ "monday": "",
+ "tuesday": "",
+ "wednesday": "",
+ "thursday": "",
+ "friday": "us friday agenda"
+ },
+
+ "cz": {
+ "monday": "",
+ "tuesday": "",
+ "wednesday": "",
+ "thursday": "",
+ "friday": "cz friday agenda"
+ },
+
+ "chn": {
+ "monday": "",
+ "tuesday": "",
+ "wednesday": "",
+ "thursday": "",
+ "friday": "chn friday agenda"
+ }
+
+}
View
@@ -67,6 +67,45 @@ $(function () {
slidein_agenda_day($('#friday-content'), 4 * 200)
})
+
+ function set_agenda_location(loc) {
+ var converter = new Showdown.converter();
+ $('#monday-content .agenda-details').html(converter.makeHtml(agenda_content[loc].monday))
+ $('#tuesday-content .agenda-details').html(converter.makeHtml(agenda_content[loc].tuesday))
+ $('#wednesday-content .agenda-details').html(converter.makeHtml(agenda_content[loc].wednesday))
+ $('#thursday-content .agenda-details').html(converter.makeHtml(agenda_content[loc].thursday))
+ $('#friday-content .agenda-details').html(converter.makeHtml(agenda_content[loc].friday))
+ $("#agenda-offices span").removeClass('current')
+ $("#agenda-" + loc + "-link").addClass('current')
+ $.cookie("agenda-location", loc)
+ $('.agenda-details').stop().css('opacity', '0')
+ $('.agenda-details').stop().animate({
+ 'opacity': 1
+ }, 800);
+ }
+
+ $("#agenda-de-link").click(function () {
+ set_agenda_location('de')
+ })
+ $("#agenda-us-link").click(function () {
+ set_agenda_location('us')
+ })
+ $("#agenda-cz-link").click(function () {
+ set_agenda_location('cz')
+ })
+ $("#agenda-chn-link").click(function () {
+ set_agenda_location('chn')
+ })
+
+
+ if ($.cookie("agenda-location")) {
+ set_agenda_location($.cookie("agenda-location"))
+ } else {
+ set_agenda_location('de')
+ }
+
+
+
/* auto open current agenda day */
var today = new Date();
if( today.getMonth()+1 == 4 && today.getYear() == 113) {
Oops, something went wrong.

0 comments on commit 6b14ba3

Please sign in to comment.