source view: index.php


<?php



  require( 'headers.php' );
  require( 'navigation.php' );



?>
<!doctype html>
<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <link href="style.css" rel="stylesheet" type="text/css" />
    <link rel="apple-touch-icon" sizes="57x57" href="/favicons/apple-touch-icon-57x57.png">
    <link rel="apple-touch-icon" sizes="60x60" href="/favicons/apple-touch-icon-60x60.png">
    <link rel="apple-touch-icon" sizes="72x72" href="/favicons/apple-touch-icon-72x72.png">
    <link rel="apple-touch-icon" sizes="76x76" href="/favicons/apple-touch-icon-76x76.png">
    <link rel="apple-touch-icon" sizes="114x114" href="/favicons/apple-touch-icon-114x114.png">
    <link rel="apple-touch-icon" sizes="120x120" href="/favicons/apple-touch-icon-120x120.png">
    <link rel="apple-touch-icon" sizes="144x144" href="/favicons/apple-touch-icon-144x144.png">
    <link rel="apple-touch-icon" sizes="152x152" href="/favicons/apple-touch-icon-152x152.png">
    <link rel="apple-touch-icon" sizes="180x180" href="/favicons/apple-touch-icon-180x180.png">
    <link rel="icon" type="image/png" href="/favicons/favicon-32x32.png" sizes="32x32">
    <link rel="icon" type="image/png" href="/favicons/android-chrome-192x192.png" sizes="192x192">
    <link rel="icon" type="image/png" href="/favicons/favicon-96x96.png" sizes="96x96">
    <link rel="icon" type="image/png" href="/favicons/favicon-16x16.png" sizes="16x16">
    <link rel="manifest" href="/favicons/manifest.json">
    <link rel="shortcut icon" href="/favicons/favicon.ico">
    <meta name="msapplication-TileColor" content="#da532c">
    <meta name="msapplication-TileImage" content="/favicons/mstile-144x144.png">
    <meta name="msapplication-config" content="/favicons/browserconfig.xml">
    <meta name="theme-color" content="#ffffff">
    <meta name="viewport" content="width=device-width, user-scalable=no" />
<?php include 'title.reset.php';?>
    <script src="tw-sack.js" type="text/javascript"></script>
    <title>kyle woodward</title>
  </head>
  <body style="overflow:hidden;">
    <div id="vc_horizon">
      <div id="page_content">
        <div id="link_div">
<?php
            foreach ( $nav_items as $k => $nav_item )
            {
?>
          <div class="splash_link" style="border-color:<?php print $nav_item->getNavColor();?>;">
            <a href="<?php print $nav_item->getNavURL();?>" target="_top"><?php print $nav_item->getNavName();?> <span>&#x00bb;</span></a>
          </div>
<?php
            }
          ?>
        </div>
        <div id="fractal_div" style="<?php
          $images_directory = 'splash_images/';
          $file_array       = scandir( $images_directory );

          while ( substr($file_array[0],-4) != '.png' && count($file_array) > 0 ) {
            array_shift($file_array);
          }
      
          $random_file_key  = rand( 0, count( $file_array ) - 1 );
          $random_file_name = $file_array[$random_file_key];

          $random_nav_index = rand(0,count($nav_items)-1);
          ?>background-color:<?php print $nav_items[$random_nav_index]->getNavColor();?>;color:<?php print $nav_items[$random_nav_index]->getNavColor(); ?>;" data-color-renew="<?php print $nav_items[$random_nav_index]->getNavFontColor(); ?>"><canvas id="fractal_canvas"></canvas><span id="complex_equation"><?php

          //
          // 1) remove the .png
          //
          $equation = substr($random_file_name,0,-4);

          //
          // 2) remove the timestamp
          //
          $equation = substr($equation,strpos($equation,'.')+1);

          //
          // 3) remove the (1.0)
          //
          $equation = substr( $equation, 5 );

          //
          // 4) fix the math markup
          //
          $equation = str_replace( 'z^1', ' z', $equation );
          $equation = str_replace( 'i', '<span class="complex">i</span>', $equation );
          $equation = preg_replace( '/z\^(\d)/', ' z<span class="superscript">$1</span>', $equation );
          $equation = preg_replace( '/\+\(/', ' + (', $equation );
          $equation = preg_replace( '/\+ \(-([\d\.]+)\+/', '- ($1-', $equation );
          $equation = preg_replace( '/\+ \(-([\d\.]+)\-/', '- ($1+', $equation );
          $equation = preg_replace( '/\-/', '&ndash;', $equation );

          //
          // 5) dump it
          //
          print $equation;
          ?></span></div>
        <div id="splash_copy"><?php include('copyright.php');?></div>
      </div>
    </div>
    <div id="homepage-style-B">
      <div id="scale-shift"><img id="woodward-hall" /><div id="woodward-links">
        <a href="/research">research</a>
        <a href="/experience">experience</a>
        <a href="/about">about</a>
        <a href="/current">current</a>
      </div>
      <div class="splash-copy"><span id="copyright-B"></span> :: <a href="#" id="homepage-B-to-A" onclick="return false;">old homepage</a></div>
    </div>
<?php include('urchin.tracking.php');?>
    <script type="text/javascript">
      var FILE_KEY  = <?php print $random_file_key; ?>;
      var FILE_NAME = '<?php print $images_directory . urlencode( $random_file_name ); ?>';
    </script>
    <form action="/v2/logo/png.php" id="fractaldownload" method="post" style="display:none;" target="_blank"><input id="pngescape" name="pngescape" type="hidden" /><input id="pngfilename" name="pngfilename" type="hidden" /></form>
    <script src="/js/splash.js"></script>
  </body>
</html>