-
Notifications
You must be signed in to change notification settings - Fork 1
/
bootstrap.php
executable file
·122 lines (108 loc) · 4.21 KB
/
bootstrap.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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
<!DOCTYPE html>
<html lang="en">
<head>
abc
<meta charset="utf-8">
<title><?=$_GET['name']?></title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="author" content="KJlmfe">
<!-- Le styles -->
<link href="css/bootstrap.min.css" rel="stylesheet">
<link rel="stylesheet" href="css/jquery.slider.min.css" type="text/css">
<style>
body {
padding-top: 50px; /* 60px to make the container go all the way to the bottom of the topbar */
padding-bottom: 40px;
}
</style>
<link href="css/bootstrap-responsive.min.css" rel="stylesheet">
<link type="text/css" rel="stylesheet" href="css/shCoreDefault.css"/>
<link rel="stylesheet" href="css/PageStyle.css">
<!-- Le HTML5 shim, for IE6-8 support of HTML5 elements -->
<!--[if lt IE 9]>
<script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<!-- Le fav and touch icons -->
<link rel="shortcut icon" href="../assets/ico/favicon.ico">
<link rel="apple-touch-icon-precomposed" sizes="144x144" href="../assets/ico/apple-touch-icon-144-precomposed.png">
<link rel="apple-touch-icon-precomposed" sizes="114x114" href="../assets/ico/apple-touch-icon-114-precomposed.png">
<link rel="apple-touch-icon-precomposed" sizes="72x72" href="../assets/ico/apple-touch-icon-72-precomposed.png">
<link rel="apple-touch-icon-precomposed" href="../assets/ico/apple-touch-icon-57-precomposed.png">
</head>
<body onload="init()">
<div class="navbar navbar-fixed-top">
<div class="navbar-inner">
<div class="container">
<a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</a>
<a class="brand" href="#">Live Algorithm</a>
<div class="nav-collapse">
<ul class="nav">
<li class="active"><a href="#">Home</a></li>
<li><a href="#about">About</a></li>
<li><a href="#contact">Contact</a></li>
</ul>
</div><!--/.nav-collapse -->
</div>
</div>
</div>
<div class="container">
<div class='row'>
<div class='span12'>
<h2><?=$_GET['name']?></h2>
<?php
if($_GET['debug']=="true")
{
echo "<script src='js/debug.js'></script>";
echo "<input id='x-coord' class='debug' type=text><input id='y-coord' class='debug' type=text>";
}
?>
<div id="AlgorithmControlBar">
<div id="CanvasControlBar">
<div id="SpeedBar"></div>
</div>
</div>
</div>
</div>
<div class='row'>
<div class='span7-fluid'>
<div id="WarmBed">
<canvas></canvas>
</div>
</div>
<div class="span5">
<pre class="brush: c; toolbar: false">
<?php
$sourceCode = file_get_contents("src/".$_GET['name'].".c");
echo $sourceCode;
?>
</pre>
</div>
</div>
<hr>
<footer>
<p>Copyright © 2012 - 2012 <a href="http://www.freepanda.me">FreePanda.</a> All Rights Reserved</p>
</footer>
</div> <!-- /container -->
<!-- Le javascript
================================================== -->
<!-- Placed at the end of the document so the pages load faster -->
<script type="text/javascript" src="js/jquery-1.7.2.min.js"></script>
<script type="text/javascript" src="js/jquery.slider.min.js"></script>
<script type="text/javascript" src="js/bootstrap.min.js"></script>
<script type="text/javascript" src="js/shCore.js"></script>
<script type="text/javascript" src="js/shBrushCpp.js"></script>
<script type="text/javascript">SyntaxHighlighter.all();</script>
<script type="text/javascript" src="Animation/Canvas.js"></script>
<script type="text/javascript" src="Animation/ShapeObject.js"></script>
<script type="text/javascript" src="Animation/AnimateArguments.js"></script>
<script type="text/javascript" src="Animation/Rectangle.js"></script>
<script type="text/javascript" src="Animation/Label.js"></script>
<script type="text/javascript" src="Animation/Line.js"></script>
<script type="text/javascript" src="Algorithm/AlgorithmObject.js"></script>
<script src="Algorithm/<?=$_GET['name']?>.js"></script>
</body>
</html>