diff --git a/fonts 1/futura/futurastd-medium-webfont.eot b/fonts 1/futura/futurastd-medium-webfont.eot new file mode 100644 index 0000000..d3dc338 Binary files /dev/null and b/fonts 1/futura/futurastd-medium-webfont.eot differ diff --git a/fonts 1/futura/futurastd-medium-webfont.svg b/fonts 1/futura/futurastd-medium-webfont.svg new file mode 100644 index 0000000..b4ae91b --- /dev/null +++ b/fonts 1/futura/futurastd-medium-webfont.svg @@ -0,0 +1,247 @@ + + + + +This is a custom SVG webfont generated by Font Squirrel. +Copyright : Copyright 1987 1991 1993 2002 Adobe Systems Incorporated All Rights Reserved +Designer : Paul Renner +Foundry URL : httpwwwadobecomtype + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/fonts 1/futura/futurastd-medium-webfont.ttf b/fonts 1/futura/futurastd-medium-webfont.ttf new file mode 100644 index 0000000..49965e3 Binary files /dev/null and b/fonts 1/futura/futurastd-medium-webfont.ttf differ diff --git a/fonts 1/futura/futurastd-medium-webfont.woff b/fonts 1/futura/futurastd-medium-webfont.woff new file mode 100644 index 0000000..36c3eb8 Binary files /dev/null and b/fonts 1/futura/futurastd-medium-webfont.woff differ diff --git a/fonts/futura/futurastd-medium-webfont.eot b/fonts/futura/futurastd-medium-webfont.eot old mode 100755 new mode 100644 diff --git a/fonts/futura/futurastd-medium-webfont.svg b/fonts/futura/futurastd-medium-webfont.svg old mode 100755 new mode 100644 diff --git a/fonts/futura/futurastd-medium-webfont.ttf b/fonts/futura/futurastd-medium-webfont.ttf old mode 100755 new mode 100644 diff --git a/fonts/futura/futurastd-medium-webfont.woff b/fonts/futura/futurastd-medium-webfont.woff old mode 100755 new mode 100644 diff --git a/footer.php b/footer.php index dace100..91f6a60 100644 --- a/footer.php +++ b/footer.php @@ -5,10 +5,16 @@ */ ?> +
+ + + diff --git a/header.php b/header.php index 2485e51..d961aa6 100644 --- a/header.php +++ b/header.php @@ -14,16 +14,20 @@ + + + + >
-
- + - +
diff --git a/home.php b/home.php index 80b4e2a..cd4687e 100644 --- a/home.php +++ b/home.php @@ -9,7 +9,7 @@ get_header(); ?>
-
+
@@ -28,11 +28,14 @@
+ diff --git a/images 1/audio.jpg b/images 1/audio.jpg new file mode 100644 index 0000000..b02e1c8 Binary files /dev/null and b/images 1/audio.jpg differ diff --git a/images 1/backarrow.png b/images 1/backarrow.png new file mode 100644 index 0000000..ac59823 Binary files /dev/null and b/images 1/backarrow.png differ diff --git a/images 1/clock.png b/images 1/clock.png new file mode 100644 index 0000000..64a8a2f Binary files /dev/null and b/images 1/clock.png differ diff --git a/images 1/clockbig.png b/images 1/clockbig.png new file mode 100644 index 0000000..e37f9d6 Binary files /dev/null and b/images 1/clockbig.png differ diff --git a/images 1/diffscale.png b/images 1/diffscale.png new file mode 100644 index 0000000..2514edd Binary files /dev/null and b/images 1/diffscale.png differ diff --git a/images 1/fwdarrow.png b/images 1/fwdarrow.png new file mode 100644 index 0000000..54f8a1a Binary files /dev/null and b/images 1/fwdarrow.png differ diff --git a/images 1/header-img.php b/images 1/header-img.php new file mode 100644 index 0000000..50bd3c3 --- /dev/null +++ b/images 1/header-img.php @@ -0,0 +1,82 @@ +array('r1', 'g1', 'b1'), 'lower'=>array('r2', 'g2', 'b2')); +foreach ( $vars as $var => $subvars ) { + if ( isset($_GET[$var]) ) { + foreach ( $subvars as $index => $subvar ) { + $length = strlen($_GET[$var]) / 3; + $v = substr($_GET[$var], $index * $length, $length); + if ( $length == 1 ) $v = '' . $v . $v; + $$subvar = hexdec( $v ); + if ( $$subvar < 0 || $$subvar > 255 ) + $default = true; + } + } else { + $default = true; + } +} + +if ( $default ) + list ( $r1, $g1, $b1, $r2, $g2, $b2 ) = array ( 105, 174, 231, 65, 128, 182 ); + +// Create the image +$im = imagecreatefromjpeg($img); + +// Get the background color, define the rectangle height +$white = imagecolorat( $im, 15, 15 ); +$h = 182; + +// Define the boundaries of the rounded edges ( y => array ( x1, x2 ) ) +$corners = array( + 0 => array ( 25, 734 ), + 1 => array ( 23, 736 ), + 2 => array ( 22, 737 ), + 3 => array ( 21, 738 ), + 4 => array ( 21, 738 ), + 177 => array ( 21, 738 ), + 178 => array ( 21, 738 ), + 179 => array ( 22, 737 ), + 180 => array ( 23, 736 ), + 181 => array ( 25, 734 ), + ); + +// Blank out the blue thing +for ( $i = 0; $i < $h; $i++ ) { + $x1 = 19; + $x2 = 740; + imageline( $im, $x1, 18 + $i, $x2, 18 + $i, $white ); +} + +// Draw a new color thing +for ( $i = 0; $i < $h; $i++ ) { + $x1 = 20; + $x2 = 739; + $r = ( $r2 - $r1 != 0 ) ? $r1 + ( $r2 - $r1 ) * ( $i / $h ) : $r1; + $g = ( $g2 - $g1 != 0 ) ? $g1 + ( $g2 - $g1 ) * ( $i / $h ) : $g1; + $b = ( $b2 - $b1 != 0 ) ? $b1 + ( $b2 - $b1 ) * ( $i / $h ) : $b1; + $color = imagecolorallocate( $im, $r, $g, $b ); + if ( array_key_exists($i, $corners) ) { + imageline( $im, $x1, 18 + $i, $x2, 18 + $i, $white ); + list ( $x1, $x2 ) = $corners[$i]; + } + imageline( $im, $x1, 18 + $i, $x2, 18 + $i, $color ); +} + +//die; +header("Content-Type: image/jpeg"); +imagejpeg($im, '', 92); +imagedestroy($im); +?> diff --git a/images 1/kubrickbg-ltr.jpg b/images 1/kubrickbg-ltr.jpg new file mode 100644 index 0000000..dc74fb8 Binary files /dev/null and b/images 1/kubrickbg-ltr.jpg differ diff --git a/images 1/kubrickbg-rtl.jpg b/images 1/kubrickbg-rtl.jpg new file mode 100644 index 0000000..2e9e237 Binary files /dev/null and b/images 1/kubrickbg-rtl.jpg differ diff --git a/images 1/kubrickbgcolor.jpg b/images 1/kubrickbgcolor.jpg new file mode 100644 index 0000000..4653b68 Binary files /dev/null and b/images 1/kubrickbgcolor.jpg differ diff --git a/images 1/kubrickbgwide.jpg b/images 1/kubrickbgwide.jpg new file mode 100644 index 0000000..77096f2 Binary files /dev/null and b/images 1/kubrickbgwide.jpg differ diff --git a/images 1/kubrickfooter.jpg b/images 1/kubrickfooter.jpg new file mode 100644 index 0000000..d7a4c65 Binary files /dev/null and b/images 1/kubrickfooter.jpg differ diff --git a/images 1/kubrickheader.jpg b/images 1/kubrickheader.jpg new file mode 100644 index 0000000..69441ee Binary files /dev/null and b/images 1/kubrickheader.jpg differ diff --git a/images 1/microsoft-staff-1978.jpeg b/images 1/microsoft-staff-1978.jpeg new file mode 100644 index 0000000..e331dcf Binary files /dev/null and b/images 1/microsoft-staff-1978.jpeg differ diff --git a/images 1/santa-cruz-city-seal.png b/images 1/santa-cruz-city-seal.png new file mode 100644 index 0000000..5f79856 Binary files /dev/null and b/images 1/santa-cruz-city-seal.png differ diff --git a/images 1/sprites.png b/images 1/sprites.png new file mode 100644 index 0000000..d131f2f Binary files /dev/null and b/images 1/sprites.png differ diff --git a/images 1/sprites_src.png b/images 1/sprites_src.png new file mode 100644 index 0000000..8b11c9f Binary files /dev/null and b/images 1/sprites_src.png differ diff --git a/images/clockbig2.png b/images/clockbig2.png deleted file mode 100644 index ab1c098..0000000 Binary files a/images/clockbig2.png and /dev/null differ diff --git a/images/forward_enabled.png b/images/forward_enabled.png deleted file mode 100644 index fccb8ec..0000000 Binary files a/images/forward_enabled.png and /dev/null differ diff --git a/page.php b/page.php index 2f35999..f1b3528 100644 --- a/page.php +++ b/page.php @@ -5,7 +5,13 @@ */ get_header(); ?> -
+
+ + + + + +
@@ -18,11 +24,13 @@ '

' . __('Pages:', 'kubrick') . ' ', 'after' => '

', 'next_or_number' => 'number')); ?> -
+
', '

'); ?> diff --git a/screenshot.png b/screenshot.png index e0b1d48..7bd4663 100644 Binary files a/screenshot.png and b/screenshot.png differ diff --git a/scripts/clock.js b/scripts/clock.js new file mode 100644 index 0000000..e0ab6d9 --- /dev/null +++ b/scripts/clock.js @@ -0,0 +1,85 @@ + var clockCanvColor = ["#000", "#000"]; + function hoverClock(){ + clockCanvColor = ["rgb(0,124,196)", "rgb(0,124,196)"]; + draw(); + } + function unhoverClock(){ + clockCanvColor = ["#000","#000"]; + draw(); + } + + function draw() { + var canvas = document.getElementById('clockcanvas'); + if (canvas.getContext) { + var c2d=canvas.getContext('2d'); + c2d.clearRect(0,0,30,30); + //Define gradients for 3D / shadow effect + var grad1=c2d.createLinearGradient(0,0,30,30); + grad1.addColorStop(0,clockCanvColor[1]); + grad1.addColorStop(1,clockCanvColor[0]); + var grad2=c2d.createLinearGradient(0,0,30,30); + grad2.addColorStop(0,clockCanvColor[0]); + grad2.addColorStop(1,clockCanvColor[1]); + c2d.font="Bold 14px Arial"; + c2d.textBaseline="middle"; + c2d.textAlign="center"; + c2d.lineWidth=3; + c2d.save(); + //Outer bezel + c2d.strokeStyle=grad1; + c2d.lineWidth=3; + c2d.beginPath(); + c2d.arc(15,15,13,0,Math.PI*2,true); + + + c2d.stroke(); + //Inner bezel + c2d.restore(); + c2d.strokeStyle=grad2; + c2d.lineWidth=3; + c2d.beginPath(); + c2d.arc(15,15,13,0,Math.PI*2,true); + c2d.stroke(); + c2d.save(); + c2d.translate(15,15); + + var now=new Date(); + var hrs=now.getHours(); + var min=now.getMinutes(); + var sec=now.getSeconds(); + + c2d.lineWidth=2; + c2d.save(); + //Draw clock pointers but this time rotate the canvas rather than + //calculate x/y start/end positions. + // + //Draw hour hand + c2d.rotate(Math.PI/6*(hrs+(min/60)+(sec/3600))); + c2d.beginPath(); + c2d.moveTo(0,4); + c2d.lineTo(0,-6); + c2d.stroke(); + c2d.restore(); + c2d.save(); + //Draw minute hand + c2d.rotate(Math.PI/30*(min+(sec/60))); + c2d.beginPath(); + c2d.moveTo(0,4); + c2d.lineTo(0,-10); + c2d.stroke(); + c2d.restore(); + c2d.save(); + c2d.restore(); + + //Additional restore to go back to state before translate + //Alternative would be to simply reverse the original translate + c2d.restore(); + } + } + + window.onload = function(){ + document.getElementById("clockcanvas").onmouseover = hoverClock; + document.getElementById("clockcanvas").onmouseout = unhoverClock; + setInterval(draw, 60000); + draw(); + }; \ No newline at end of file diff --git a/scripts/clock2.js b/scripts/clock2.js new file mode 100644 index 0000000..fda1ba6 --- /dev/null +++ b/scripts/clock2.js @@ -0,0 +1,109 @@ + var clockCanvColor = ["#000", "#000"]; + function hoverClock(){ + clockCanvColor = ["rgb(0,124,196)", "rgb(0,124,196)"]; + draw(); + } + function unhoverClock(){ + clockCanvColor = ["#000","#000"]; + draw(); + } + + function draw() { + var canvas = document.getElementById('clockcanvas'); + if (canvas.getContext) { + var c2d=canvas.getContext('2d'); + c2d.clearRect(0,0,50,50); + //Define gradients for 3D / shadow effect + var grad1=c2d.createLinearGradient(0,0,50,50); + grad1.addColorStop(0,clockCanvColor[1]); + grad1.addColorStop(1,clockCanvColor[0]); + var grad2=c2d.createLinearGradient(0,0,50,50); + grad2.addColorStop(0,clockCanvColor[0]); + grad2.addColorStop(1,clockCanvColor[1]); + c2d.font="Bold 14px Arial"; + c2d.textBaseline="middle"; + c2d.textAlign="center"; + c2d.lineWidth=2; + c2d.save(); + //Outer bezel + c2d.strokeStyle=grad1; + c2d.lineWidth=4; + c2d.beginPath(); + c2d.arc(25,25,23,0,Math.PI*2,true); + + + c2d.stroke(); + //Inner bezel + c2d.restore(); + c2d.strokeStyle=grad2; + c2d.lineWidth=2; + c2d.beginPath(); + c2d.arc(25,25,22,0,Math.PI*2,true); + c2d.stroke(); + //c2d.strokeStyle="#222"; + c2d.save(); + c2d.translate(25,25); + //Markings/Numerals + /*for (i=1;i<=12;i++) { + ang=Math.PI/30*i*5; + sang=Math.sin(ang); + cang=Math.cos(ang); + sx=sang*19; + sy=cang*-19; + ex=sang*24; + ey=cang*-24; + nx=sang*16; + ny=cang*-16; + c2d.fillText(i/5,nx,ny); + }*/ + + var now=new Date(); + var hrs=now.getHours(); + var min=now.getMinutes(); + var sec=now.getSeconds(); + //c2d.strokeStyle="#000"; + + + c2d.lineWidth=2; + c2d.save(); + //Draw clock pointers but this time rotate the canvas rather than + //calculate x/y start/end positions. + // + //Draw hour hand + c2d.rotate(Math.PI/6*(hrs+(min/60)+(sec/3600))); + c2d.beginPath(); + c2d.moveTo(0,4); + c2d.lineTo(0,-10); + c2d.stroke(); + c2d.restore(); + c2d.save(); + //Draw minute hand + c2d.rotate(Math.PI/30*(min+(sec/60))); + c2d.beginPath(); + c2d.moveTo(0,4); + c2d.lineTo(0,-18); + c2d.stroke(); + c2d.restore(); + c2d.save(); + /*Draw second hand + c2d.rotate(Math.PI/30*sec); + c2d.strokeStyle="#E33"; + c2d.lineWidth=1; + c2d.beginPath(); + c2d.moveTo(0,3); + c2d.lineTo(0,-18); + c2d.stroke();*/ + c2d.restore(); + + //Additional restore to go back to state before translate + //Alternative would be to simply reverse the original translate + c2d.restore(); + } + } + + window.onload = function(){ + document.getElementById("clockcanvas").onmouseover = hoverClock; + document.getElementById("clockcanvas").onmouseout = unhoverClock; + setInterval(draw, 60000); + draw(); + }; \ No newline at end of file diff --git a/single.php b/single.php index da67944..e22ec2c 100644 --- a/single.php +++ b/single.php @@ -27,7 +27,28 @@