Skip to content

Commit fbbde6a

Browse files
organized the files for github pages
1 parent bd5d0fc commit fbbde6a

File tree

4 files changed

+81
-33
lines changed

4 files changed

+81
-33
lines changed

Book example codes/index.html

Lines changed: 0 additions & 33 deletions
This file was deleted.

Book example codes/jquery.js

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Book example codes/navbar.html

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
<nav class="navbar navbar-expand-lg navbar-light bg-light">
2+
<a class="navbar-brand" href="#">Navbar</a>
3+
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
4+
<span class="navbar-toggler-icon"></span>
5+
</button>
6+
7+
<div class="collapse navbar-collapse" id="navbarSupportedContent">
8+
<ul class="navbar-nav mr-auto">
9+
<li class="nav-item active">
10+
<a class="nav-link" href="#">Home <span class="sr-only">(current)</span></a>
11+
</li>
12+
<li class="nav-item">
13+
<a class="nav-link" href="#">Link</a>
14+
</li>
15+
<li class="nav-item dropdown">
16+
<a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
17+
Dropdown
18+
</a>
19+
<div class="dropdown-menu" aria-labelledby="navbarDropdown">
20+
<a class="dropdown-item" href="#">Action</a>
21+
<a class="dropdown-item" href="#">Another action</a>
22+
<div class="dropdown-divider"></div>
23+
<a class="dropdown-item" href="#">Something else here</a>
24+
</div>
25+
</li>
26+
<li class="nav-item">
27+
<a class="nav-link disabled" href="#">Disabled</a>
28+
</li>
29+
</ul>
30+
<form class="form-inline my-2 my-lg-0">
31+
<input class="form-control mr-sm-2" type="search" placeholder="Search" aria-label="Search">
32+
<button class="btn btn-outline-success my-2 my-sm-0" type="submit">Search</button>
33+
</form>
34+
</div>
35+
</nav>

index.html

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
<html>
2+
<head>
3+
<title>Learning WebGL Book Example Codes</title>
4+
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@5.2.3/dist/css/bootstrap.min.css" integrity="sha384-rbsA2VBKQhggwzxH7pPCaAqO46MgnOM80zW1RWuH61DGLwZJEdK2Kadq2F9CUG65" crossorigin="anonymous">
5+
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.2.3/dist/js/bootstrap.min.js" integrity="sha384-cuYeSxntonz0PPNlHhBs68uyIAVpIIOZZ5JqeqvYYIcEL727kskC66kF92t6Xl2V" crossorigin="anonymous"></script>
6+
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.2.3/dist/js/bootstrap.bundle.min.js" integrity="sha384-kenU1KFdBIe4zVF0s0G1M5b4hcpxyD9F7jL+jjXkk+Q2h455rYXK/7HAuoJl+0I4" crossorigin="anonymous"></script>
7+
<!-- <script src="https://code.jquery.com/jquery-1.10.2.js"></script> -->
8+
<script src="./jquery.js"></script>
9+
</head>
10+
<body>
11+
<div class="container">
12+
<div class="jumbotron text-center">
13+
<h1>Learning WebGL Book Example Code</h1>
14+
<p>Contains the example code for the version 1.0 and 2.0.</p>
15+
</div>
16+
<div class="row">
17+
<h1>WebGL 1.0</h1>
18+
<a href="./Book example codes/Chapter 3/1.0/3_First WebGL program.html" class="btn btn-primary ">First WebGL Program</a>
19+
<a href="./Book example codes/Chapter 3/1.0/3_shape_aeroplane.html" class="btn btn-primary ">Aeroplane Shape</a>
20+
<a href="./Book example codes/Chapter 3/1.0/3_shape_fox.html" class="btn btn-primary ">Fox Shape</a>
21+
<a href="./Book example codes/Chapter 3/1.0/3_shape_pyramid.html" class="btn btn-primary">Pyramid Shape</a>
22+
</div>
23+
<div class="row">
24+
<h1>WebGL 2.0</h1>
25+
<a href="./Book example codes/Chapter 3/2.0/3_First WebGL program.html" class="btn btn-primary ">First WebGL Program</a>
26+
<a href="./Book example codes/Chapter 3/2.0/3_shape_aeroplane.html" class="btn btn-primary ">Aeroplane Shape</a>
27+
<a href="./Book example codes/Chapter 3/2.0/3_shape_fox.html" class="btn btn-primary ">Fox Shape</a>
28+
<a href="./Book example codes/Chapter 3/2.0/3_shape_pyramid.html" class="btn btn-primary">Pyramid Shape</a>
29+
</div>
30+
</div>
31+
<!--Navigation bar-->
32+
<div id="nav-placeholder">
33+
34+
</div>
35+
<!-- <script>
36+
$(document).ready(function(){
37+
// $("button").click(function(){
38+
$("#nav-placeholder").load('./navbar.html');
39+
// });
40+
});
41+
</script> -->
42+
</body>
43+
<!-- <script src="Hello_WebGL2.0.js"></script></body> -->
44+
</html>

0 commit comments

Comments
 (0)