不要怂,就是干,撸起袖子干!

layout.ejs 3.06 KB
<!DOCTYPE html>
<html>
  <head>
    <meta http-equiv="Content-type" content="text/html; charset=utf-8">
    <title>Sequelize &raquo; A MySQL Object-Relational-Mapper for NodeJS</title>
    <link rel="stylesheet" href="/stylesheets/style.css">
    <style type="text/css" media="screen">
      body { background: url(/background) repeat top left fixed; }
    </style>
    <script type="text/javascript" charset="utf-8" src="http://ajax.googleapis.com/ajax/libs/prototype/1.6.1.0/prototype.js"></script>
    <!-- <script type="text/javascript" charset="utf-8" src="/javascripts/prototype.js"></script> -->
    <script type="text/javascript" charset="utf-8">
      var highlightNavigation = function(e) {
        $$("#sidebar a").each(function(anchor) { anchor.removeClassName("active") })
        $(e).addClassName("active")
      }

      var buildNavigation = function(additionalBefore, additionalAfter, options) {
        options = options || {}
        options.seperator = options.seperator || "<br />"

        var navigationContent = "<h2>Navigation</h2><br />",
            headline = null

        navigationContent += additionalBefore.join(options.seperator)
        $$("#content div a").each(function(e) {
          if(headline = e.up().down("h2"))
            navigationContent += "<a href='#" + e.name + "' onclick='highlightNavigation(this)'>" + headline.innerHTML + "</a>"
        })
        navigationContent += additionalAfter.join(options.seperator)

        $("sidebar").update(navigationContent)
      }
    </script>
    <script type="text/javascript">
      var _gaq = _gaq || [];
      _gaq.push(['_setAccount', 'UA-9039631-4']);
      _gaq.push(['_trackPageview']);

      (function() {
        var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
        ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
        var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
      })();
    </script>
  </head>
  <body>
    <div id="sidebar" class="bordered"></div>
    <div id="wrapper">
      <div id="navigation" class="bordered">
        <table width="100%">
          <tr>
            <td align="center" width="33%"><a href="/">Documentation</a></td>
            <td align="center" width="33%"><a href="/examples">Examples</a></td>
            <td align="center" width="33%"><a href="/changelog">Changelog</a></td>
          </tr>
        </table>
      </div>
      <div id="content" class="bordered"><%- body %></div>
      <div id="footer" class="bordered">
        &copy; 2010 Layout | Code by <a href="http://depold.com" target="_blank">Sascha Depold</a>;
        Website based on <a href="http://nodejs.org" target="_blank" rel="nofollow">NodeJS</a> and 
        <a href="http://expressjs.com" target="_blank" rel="nofollow">ExpressJS</a>.
      </div>
    </div>
    <a href="http://github.com/sdepold/sequelize" id="forkBadge"> 
		  <img src="http://s3.amazonaws.com/github/ribbons/forkme_right_white_ffffff.png" id="ribbon" alt="Fork me on GitHub"> 
		</a>
  </body>
</html>