Permalink
Browse files

add fully expanded menu option for users with javascript disabled.

  • Loading branch information...
1 parent 1955a10 commit 15ec041faa546761b67d1db41e3c3b178273f3b6 @mikehelmick committed May 11, 2011
Showing with 85 additions and 10 deletions.
  1. +16 −0 attendees/index.php
  2. +2 −2 css/master.css
  3. +20 −0 faq/index.php
  4. +4 −0 full_menu.php
  5. +23 −8 parts/top.php
  6. +16 −0 students/index.php
  7. +4 −0 unset_menu.php
View
@@ -0,0 +1,16 @@
+<?php
+ $title = "SIGCSE 2012 - Attendees";
+ $onload = "pageLoad('attendees', 'attendeesGeneral');";
+ include("../parts/top.php");
+?>
+<div class="SectionHeader"><div class="Full">
+<h1>SIGCSE 2012 - Information for Attendees</h1>
+</div></div>
+
+<p>Coming soon...</p>
+
+<?php
+ $updated = filemtime( $_SERVER["SCRIPT_FILENAME"] );
+ $mainPage = true;
+ include("../parts/bottom.php");
+?>
View
@@ -118,7 +118,7 @@ div.GoodMessage {
border-left: none;
border-right: none;
padding: 2px 20px 2px 10px;
- margin: 10px 0px 10px 0px;
+ margin: 10px 10px 10px 0px;
color: #000;
}
@@ -128,7 +128,7 @@ div.GoodMessage {
border-left: none;
border-right: none;
padding: 2px 20px 2px 10px;
- margin: 10px 0px 10px 0px;
+ margin: 10px 10px 10px 0px;
color: #000;
}
View
@@ -0,0 +1,20 @@
+<?php
+ $title = "SIGCSE 2012 - FAQ";
+ $onload = "pageLoad('faq', null);";
+ include("../parts/top.php");
+ include("common.php");
+?>
+<div class="SectionHeader"><div class="Full">
+<h2>FAQs</h2>
+</div></div>
+<ol>
+ <li><a href="submissions_faq.php">Submissions FAQ</a></li>
+ <li><a href="reviewers_faq.php">Reviewers FAQ</a></li>
+ <li><a href="students_faq.php">Students FAQ</a></li>
+ <li><a href="attendees_faq.php">Attendees FAQ</a></li>
+</ol>
+<?php
+ $updated = filemtime( $_SERVER["SCRIPT_FILENAME"] );
+ $mainPage = true;
+ include("../parts/bottom.php");
+?>
View
@@ -0,0 +1,4 @@
+<?php
+setcookie("full_menu", "true");
+header( 'Location: /sigcse2012/' );
+?>
View
@@ -38,6 +38,10 @@ function endsWith($haystack,$needle,$case=true) {
echo "<body onload=\"remove_frames();\">";
else
echo "<body onload=\"remove_frames(); $onload\">";
+
+ $menuStyle = "display: none;";
+ if (isset($_COOKIE['full_menu']))
+ $menuStyle = "display: block;";
?>
<div id="wrapper">
<div id="headercontainer">
@@ -51,10 +55,15 @@ function endsWith($haystack,$needle,$case=true) {
<div id="contentcontainer">
<div id="navigation" class="column-left">
<div id="logo"><img src="/sigcse2012/logo/logo.png" alt="SIGCSE 2012 Logo" /></div>
+
+ <?php
+ if (isset($_COOKIE['full_menu']))
+ echo '<div class="GoodMessage"><p>You have the javascript menus disabled, <a href="/sigcse2012/unset_menu.php">click here to re-enable</a>.</p></div>';
+ ?>
<div class="menu"><a id="home_menu" href="/sigcse2012/">SIGCSE | 2012</a></div>
<div class="menu"><a id="authors_menu" onclick="toggle_menu('authors');">Authors<img id="authors_status" src="/sigcse2012/images/arrow_down.png" align="absmiddle"></a></div>
- <div id="authors_sub" class="submenu" style="display: none">
+ <div id="authors_sub" class="submenu" style="<?php echo $menuStyle; ?>">
<ul>
<li><a id="cfp_menu" href="/sigcse2012/authors/index.php">Call for Participation</a></li>
<li><a id="papers_menu" href="/sigcse2012/authors/papers.php">Papers</a></li>
@@ -75,13 +84,13 @@ function endsWith($haystack,$needle,$case=true) {
</ul>
</div>
<div class="menu"><a id="attendees_menu" onclick="toggle_menu('attendees');">Attendees<img id="attendees_status" src="/sigcse2012/images/arrow_down.png" align="absmiddle"></a></div>
- <div id="attendees_sub" class="submenu" style="display: none">
+ <div id="attendees_sub" class="submenu" style="<?php echo $menuStyle; ?>">
<ul>
- <li><em>Coming soon...</em></li>
+ <li><a id="attendeesGeneral_menu" href="/sigcse2012/attendees/">General Information</a></li>
</ul>
</div>
<div class="menu"><a id="reviewers_menu" onclick="toggle_menu('reviewers');">Reviewers<img id="reviewers_status" src="/sigcse2012/images/arrow_down.png" align="absmiddle"></a></div>
- <div id="reviewers_sub" class="submenu" style="display: none">
+ <div id="reviewers_sub" class="submenu" style="<?php echo $menuStyle; ?>">
<ul>
<li><a id="reviewerInformation_menu" href="/sigcse2012/reviewers/index.php">Reviewer Information</a></li>
<li><a id="revGuidePapers_menu" href="/sigcse2012/reviewers/guide_papers.php">Paper Review Guide</a></li>
@@ -98,14 +107,14 @@ function endsWith($haystack,$needle,$case=true) {
</ul>
</div>
<div class="menu"><a id="students_menu" onclick="toggle_menu('students');">Students<img id="students_status" src="/sigcse2012/images/arrow_down.png" align="absmiddle"></a></div>
- <div id="students_sub" class="submenu" style="display: none">
+ <div id="students_sub" class="submenu" style="<?php echo $menuStyle; ?>">
<ul>
- <li><em>Coming soon...</em></li>
+ <li><a id="studentsGeneral_menu" href="/sigcse2012/students/">General Information</a></li>
</ul>
</div>
<div class="menu"><a id="exhibitors_menu" href="/sigcse2012/exhibitors/">Exhibitors/Supporters</a></div>
<div class="menu"><a id="faq_menu" onclick="toggle_menu('faq');">FAQ<img id="faq_status" src="/sigcse2012/images/arrow_down.png" align="absmiddle"></a></div>
- <div id="faq_sub" class="submenu" style="display: none">
+ <div id="faq_sub" class="submenu" style="<?php echo $menuStyle; ?>">
<ul>
<li><a id="submissionsFAQ_menu" href="/sigcse2012/faq/submissions_faq.php">Submissions FAQ</a></li>
<li><a id="reviewersFAQ_menu" href="/sigcse2012/faq/reviewers_faq.php">Reviewers FAQ</a></li>
@@ -139,4 +148,10 @@ function endsWith($haystack,$needle,$case=true) {
</div>
<div id="maincontent" class="column-right">
-<noscript><p><em>JavaScript must be enabled for this Web site to function correctly.</em></p></noscript>
+
+<noscript><div class="Alert"><p><strong>JavaScript is disabled in your browser. It is recommended that you enable JavaScript for the best experience on this Web site.</strong></p>
+<?php
+ if (!isset($_COOKIE['full_menu']))
+ echo '<p>If you wish to use this Web site without enabling JavaScript, you may <a href="/sigcse2012/full_menu.php">click here</a> save that preference. Please be aware that some Web site functionality will be degraded by making this selection. <em>This works by setting a cookie indicating your preference.</em></p>';
+?>
+</div></noscript>
View
@@ -0,0 +1,16 @@
+<?php
+ $title = "SIGCSE 2012 - Students";
+ $onload = "pageLoad('students', 'studentsGeneral');";
+ include("../parts/top.php");
+?>
+<div class="SectionHeader"><div class="Full">
+<h1>SIGCSE 2012 - Information for Students</h1>
+</div></div>
+
+<p>Coming soon...</p>
+
+<?php
+ $updated = filemtime( $_SERVER["SCRIPT_FILENAME"] );
+ $mainPage = true;
+ include("../parts/bottom.php");
+?>
View
@@ -0,0 +1,4 @@
+<?php
+setcookie("full_menu", NULL);
+header( 'Location: /sigcse2012/' );
+?>

0 comments on commit 15ec041

Please sign in to comment.