-
Notifications
You must be signed in to change notification settings - Fork 7
/
header.php
67 lines (67 loc) · 4.47 KB
/
header.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
<?php
$version='0.2.3'; $dl='https://raw.github.com/braitsch/js3/master/src/JS3-'.$version.'-min.js';
$root = $_SERVER["REMOTE_ADDR"] == '127.0.0.1' ? 'http://localhost:8888' : 'http://js3.quietless.com';
function linkto($n){ global $root; echo $root.$n;}
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>JS3 is a fast and lightweight drawing and animation library for the HTML5 JavaScript Canvas</title>
<meta name="description" content="A lightweight port of the AS3 TweenLite library for the JavaScript Canvas">
<meta name="author" content="Stephen Braitsch">
<link href=<?php linkto('/vendor/bootstrap.min.css')?> rel="stylesheet">
<link href="http://yandex.st/highlightjs/6.1/styles/github.min.css" rel="stylesheet" >
<link href=<?php linkto('/css/styles.css')?> rel="stylesheet">
<link rel="shortcut icon" href="images/favicon.ico">
<script type="text/javascript">
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-1890531-7']);
_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 class="navbar navbar-fixed-top">
<div class="navbar-inner">
<div class="container" style="width: auto;">
<ul id='global-nav' class="nav pull-left">
<li class="divider-vertical"></li>
<li><a href=<?php linkto('/')?>>JS3</a></li>
<li class="divider-vertical"></li>
<li><a href=<?php linkto('/getting-started')?>>Getting Started</a></li>
<li class="divider-vertical"></li>
<li><a href=<?php linkto('/drawing')?>>Drawing Shapes</a></li>
<li class="divider-vertical"></li>
<li><a href=<?php linkto('/images-and-text')?>>Images & Text</a></li>
<li class="divider-vertical"></li>
<li><a href=<?php linkto('/tweening')?>>Tweening</a></li>
<li class="divider-vertical"></li>
<li><a href=<?php linkto('/mouse-events')?>>Mouse Events</a></li>
<li class="divider-vertical"></li>
<li><a href=<?php linkto('/api')?>>API</a></li>
<li class="divider-vertical"></li>
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">Gallery<b class="caret"></b></a>
<ul class="dropdown-menu">
<li><a href=<?php linkto('/gallery/honeycomb')?>>HoneyComb</a></li>
<li><a href=<?php linkto('/gallery/rings')?>>Rings</a></li>
<li><a href=<?php linkto('/gallery/lite-brite')?>>LiteBrite</a></li>
<li><a href=<?php linkto('/gallery/tube-worms')?>>TubeWorms</a></li>
<li class="divider"></li>
<li><a href=<?php linkto('/gallery/joints')?>>Joints</a></li>
<li><a href=<?php linkto('/gallery/spiders')?>>Spiders</a></li>
<li><a href=<?php linkto('/gallery/confetti')?>>Confetti</a></li>
<li><a href=<?php linkto('/gallery/snowflakes')?>>SnowFlakes</a></li>
</ul>
</li>
<li class="divider-vertical"></li>
</ul>
</div><!-- container -->
</div><!-- navbar-inner -->
<button class="btn btn-success" id='btn-download'><i class="icon-download icon-white"></i>Download <?php echo 'v'.$version;?></button>
</div><!-- navbar -->