-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathindex.php
79 lines (71 loc) · 3.46 KB
/
index.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta charset="utf-8">
<title>CSH Segfault</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="CSH Segfault viewer">
<meta name="author" content="Ryan Buzzell">
<link rel="icon" href="img/favicon.ico">
<!-- Le styles -->
<link href="css/bootstrap.css" rel="stylesheet">
<!-- 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]-->
</head>
<body>
<nav class="navbar navbar-inverse">
<div class="container-fluid">
<!-- Brand and toggle get grouped for better mobile display -->
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="#" style="padding-left: 30px; padding-top: 10px;"><img src="img/csh_logo_white.svg"></a>
<a class="navbar-brand" href="#">Segfault Archive</a>
</div>
<!-- Collect the nav links, forms, and other content for toggling -->
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
<ul class="nav navbar-nav">
<li><a href="index.php">Home</a></li>
<!--<li class="active"><a href="#">Segfaults <span class="sr-only">(current)</span></a></li>-->
<!--<li><a href="coredump.php">Coredump</a></li>-->
</ul>
</div><!-- /.navbar-collapse -->
</div><!-- /.container-fluid -->
</nav>
<div class="container-fluid">
<div class="row-fluid">
<div class="col-xs-2">
<iframe src="content.php" frameborder="0" id="toc" width="100%"></iframe>
</div>
<div class="col-sm-10">
<iframe src="segfaults/Volume%2001,%20Issue%2001.pdf" frameborder="0" name="pdfIFrame" id="pdfIFrame" width="100%"></iframe>
</div>
</div>
</div>
<!-- Le javascript
================================================== -->
<!-- Placed at the end of the document so the pages load faster -->
<script src="js/jquery-2.1.4.min.js"></script>
<script src="js/jquery.responsiveiframe.js"></script>
<script src="js/bootstrap.js"></script>
<script>
$(window).load(function (){
$("#pdfIFrame").height(Math.floor($(window).height() * 0.9));
$("#toc").height(Math.floor($(window).height() * 0.9));
});
</script>
<script>
$(window).resize(function (){
$("#pdfIFrame").height(Math.floor($(window).height() * 0.9));
$("#toc").height(Math.floor($(window).height() * 0.9));
});
</script>
</body>
</html>