From c018b6ccd03192a890879067f0badeff7a713fdf Mon Sep 17 00:00:00 2001 From: Patrick Davison Date: Wed, 26 Dec 2012 12:17:17 -0800 Subject: Footer, sign-in adjustments to prevent web-crawler cache. --- css/maps.css | 10 ++++++++- css/page.css | 65 +++++++++++++++++++++++++++++++++++++++++++++++++++-- includes/header.php | 23 ++++++++++++++----- js/globe.js | 48 ++++++++++++++++++--------------------- 4 files changed, 112 insertions(+), 34 deletions(-) diff --git a/css/maps.css b/css/maps.css index 7bad117..48d3ab5 100644 --- a/css/maps.css +++ b/css/maps.css @@ -1,3 +1,11 @@ + +.green { + color:#22FF22; +} +.red { + color:#FF2222; +} + .grid_dsp_data { padding:1px; font-weight:bold; @@ -80,7 +88,7 @@ } .grid_td, .grid_td_rocks, .grid_td_gray, .grid_td_path, .grid_td_blanks, .grid_td_walls, -.grid_td_start, .grid_td_finish, +.grid_td_start, .grid_td_startB, .grid_td_finish, .grid_td_cpa, .grid_td_cpb, .grid_td_cpc, .grid_td_cpd, .grid_td_cpe, .grid_td_animate, .grid_td_animate_pre, diff --git a/css/page.css b/css/page.css index fa4f24b..7ff617c 100644 --- a/css/page.css +++ b/css/page.css @@ -30,6 +30,66 @@ form { display: inline; } +.footerArea { + width:100%; + text-align:center; +} + +.footerArea hr { + height: 12px; + border: 0; + box-shadow: inset 0 12px 12px -12px rgba(220,220,120,0.5); +} +.footerArea ul{ + margin: 0px auto; + width:760px; + margin-bottom:20px; + overflow:hidden; +} +.footerArea li{ + line-height:1.5em; + float:left; + display:inline; +} +.divide { + font-weight:bold; + padding: 15px 15px; + margin: 12px auto; + text-align: center; + position: relative; + min-width: 900px; + z-index: -10; + +background: #272727; +background: -moz-linear-gradient(top, #272727 0%, #111111 100%); +background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#272727), color-stop(100%,#111111)); +background: -webkit-linear-gradient(top, #272727 0%,#111111 100%); +background: -o-linear-gradient(top, #272727 0%,#111111 100%); +background: -ms-linear-gradient(top, #272727 0%,#111111 100%); +background: linear-gradient(to bottom, #272727 0%,#111111 100%); +filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#272727', endColorstr='#111111',GradientType=0 ); + +} + +#countdown { + text-align: center; + margin-top: 5px; + position:fixed; + bottom:20px; + left:20px; + border:1px solid #777; + padding:4px; +} + + +#double li { width:50%;} /* 2 col */ +#triple li { width:33.333%; } /* 3 col */ +#quad li { width:25%; } /* 4 col */ +#six li { width:16.666%; } /* 6 col */ + + + + a:link, a:visited, a:active { text-decoration: underline; color: #FFFFCC; @@ -88,7 +148,7 @@ position:absolute;color:#333;left:25px;bottom:20px; text-align: left; left:50%; top:120px; - width:550px; + width:530px; margin-left:-275px; display:inline; } @@ -273,8 +333,9 @@ table.score th { #copy { text-align: center; - margin: 40px auto 0; + margin: 0px auto 0; width: 400px; + font-size: 80%; } #copy iframe { border: none; diff --git a/includes/header.php b/includes/header.php index dca5bfd..6e29cbe 100644 --- a/includes/header.php +++ b/includes/header.php @@ -22,6 +22,7 @@ function htmlHeader($css = array(), $title = 'Pathery', $desc = '', $scripts = a ?> + @@ -132,12 +146,11 @@ function htmlFooter() { } function topbar($links) { - global $accepted, $wallColor, $wallEmblem; + global $accepted, $wallColor, $wallEmblem, $request; echo '
'; - $page = isset($_GET['page']) ? $_GET['page'] : 'home'; foreach ($links as $key => $value) { - if ($page == $key) + if ($request == $key) $selected = " selected"; else $selected = ""; @@ -164,7 +177,7 @@ function topbar($links) { } else { ?> Sign in -
+ "; diff --git a/js/globe.js b/js/globe.js index 2c6f088..9538d9b 100644 --- a/js/globe.js +++ b/js/globe.js @@ -1,35 +1,31 @@ -// TODO: Remember to preload images - - function showSignin() { + if (document.getElementById('oid_hidden') !== undefined) { + document.getElementById('oid_hidden').id = 'oid_wrapper'; + } +} +function hideSignin() { + if (document.getElementById('oid_wrapper') !== undefined) { + document.getElementById('oid_wrapper').id = 'oid_hidden'; + } +} + +function createSignin() { var div = document.createElement('div'); - var pref = '
'; - pref += ' '; - pref += '
'; - var suff = '
'; - //var suff = '
'; - div.innerHTML = pref+html+suff; + var content = '
'; + content += '

Sign in

'; + content += '
'; + content += '

Do you have an account here?

'; + content += ' Sign in with Google'; + content += ' Sign in with Yahoo'; + content += ' Learn more about OpenID'; + content += ' X'; + content += '
'; + content += '
'; + div.innerHTML = content; document.body.appendChild(div.firstChild); } -var signinDiv = '
' + -'

Sign in

' + -'
' + -'

Do you have an account here?

' + -' Sign in with Google' + -' Sign in with Yahoo' + -' Learn more about OpenID' + -'
' + -'
'; - - - - - - - -- cgit v1.2.3