Skip to content

Commit

Permalink
Merge pull request #14 from orffen/search
Browse files Browse the repository at this point in the history
Add Search Engine using Google Custom Search
  • Loading branch information
orffen authored Jan 9, 2021
2 parents 914c6da + 990a14f commit ff4f15e
Show file tree
Hide file tree
Showing 32 changed files with 222 additions and 1 deletion.
4 changes: 4 additions & 0 deletions adventures.html
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,10 @@
<li class="nav-link nav-item">
<a class="nav-link" href="legal.html">Legal</a>
</li>
<form class="form-inline float-right" action="search.html">
<input class="form-control mr-sm-2" type="search" placeholder="Search" aria-label="Search" name="q">
<button class="btn btn-outline-light my-2 my-sm-0" type="submit">Search</button>
</form>
</ul>
</div>
</nav>
Expand Down
2 changes: 1 addition & 1 deletion cepheus-engine-srd.css
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ nav[data-toggle="toc"] {
top: 75px;
}

@media screen and (min-width: 1350px) {
@media screen and (min-width: 1660px) {
.navbar-nav .dropdown-menu {
position: absolute;
}
Expand Down
4 changes: 4 additions & 0 deletions character-creation.html
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,10 @@
<li class="nav-link nav-item">
<a class="nav-link" href="legal.html">Legal</a>
</li>
<form class="form-inline float-right" action="search.html">
<input class="form-control mr-sm-2" type="search" placeholder="Search" aria-label="Search" name="q">
<button class="btn btn-outline-light my-2 my-sm-0" type="submit">Search</button>
</form>
</ul>
</div>
</nav>
Expand Down
4 changes: 4 additions & 0 deletions common-aircraft.html
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,10 @@
<li class="nav-link nav-item">
<a class="nav-link" href="legal.html">Legal</a>
</li>
<form class="form-inline float-right" action="search.html">
<input class="form-control mr-sm-2" type="search" placeholder="Search" aria-label="Search" name="q">
<button class="btn btn-outline-light my-2 my-sm-0" type="submit">Search</button>
</form>
</ul>
</div>
</nav>
Expand Down
4 changes: 4 additions & 0 deletions common-grav-vehicles.html
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,10 @@
<li class="nav-link nav-item">
<a class="nav-link" href="legal.html">Legal</a>
</li>
<form class="form-inline float-right" action="search.html">
<input class="form-control mr-sm-2" type="search" placeholder="Search" aria-label="Search" name="q">
<button class="btn btn-outline-light my-2 my-sm-0" type="submit">Search</button>
</form>
</ul>
</div>
</nav>
Expand Down
4 changes: 4 additions & 0 deletions common-ground-vehicles.html
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,10 @@
<li class="nav-link nav-item">
<a class="nav-link" href="legal.html">Legal</a>
</li>
<form class="form-inline float-right" action="search.html">
<input class="form-control mr-sm-2" type="search" placeholder="Search" aria-label="Search" name="q">
<button class="btn btn-outline-light my-2 my-sm-0" type="submit">Search</button>
</form>
</ul>
</div>
</nav>
Expand Down
4 changes: 4 additions & 0 deletions common-vessels.html
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,10 @@
<li class="nav-link nav-item">
<a class="nav-link" href="legal.html">Legal</a>
</li>
<form class="form-inline float-right" action="search.html">
<input class="form-control mr-sm-2" type="search" placeholder="Search" aria-label="Search" name="q">
<button class="btn btn-outline-light my-2 my-sm-0" type="submit">Search</button>
</form>
</ul>
</div>
</nav>
Expand Down
4 changes: 4 additions & 0 deletions common-watercraft.html
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,10 @@
<li class="nav-link nav-item">
<a class="nav-link" href="legal.html">Legal</a>
</li>
<form class="form-inline float-right" action="search.html">
<input class="form-control mr-sm-2" type="search" placeholder="Search" aria-label="Search" name="q">
<button class="btn btn-outline-light my-2 my-sm-0" type="submit">Search</button>
</form>
</ul>
</div>
</nav>
Expand Down
4 changes: 4 additions & 0 deletions environments-and-hazards.html
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,10 @@
<li class="nav-link nav-item">
<a class="nav-link" href="legal.html">Legal</a>
</li>
<form class="form-inline float-right" action="search.html">
<input class="form-control mr-sm-2" type="search" placeholder="Search" aria-label="Search" name="q">
<button class="btn btn-outline-light my-2 my-sm-0" type="submit">Search</button>
</form>
</ul>
</div>
</nav>
Expand Down
4 changes: 4 additions & 0 deletions equipment.html
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,10 @@
<li class="nav-link nav-item">
<a class="nav-link" href="legal.html">Legal</a>
</li>
<form class="form-inline float-right" action="search.html">
<input class="form-control mr-sm-2" type="search" placeholder="Search" aria-label="Search" name="q">
<button class="btn btn-outline-light my-2 my-sm-0" type="submit">Search</button>
</form>
</ul>
</div>
</nav>
Expand Down
4 changes: 4 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,10 @@
<li class="nav-link nav-item">
<a class="nav-link" href="legal.html">Legal</a>
</li>
<form class="form-inline float-right" action="search.html">
<input class="form-control mr-sm-2" type="search" placeholder="Search" aria-label="Search" name="q">
<button class="btn btn-outline-light my-2 my-sm-0" type="submit">Search</button>
</form>
</ul>
</div>
</nav>
Expand Down
4 changes: 4 additions & 0 deletions introduction.html
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,10 @@
<li class="nav-link nav-item">
<a class="nav-link" href="legal.html">Legal</a>
</li>
<form class="form-inline float-right" action="search.html">
<input class="form-control mr-sm-2" type="search" placeholder="Search" aria-label="Search" name="q">
<button class="btn btn-outline-light my-2 my-sm-0" type="submit">Search</button>
</form>
</ul>
</div>
</nav>
Expand Down
4 changes: 4 additions & 0 deletions legal.html
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,10 @@
<li class="nav-link nav-item active">
<a class="nav-link active" href="legal.html">Legal</a>
</li>
<form class="form-inline float-right" action="search.html">
<input class="form-control mr-sm-2" type="search" placeholder="Search" aria-label="Search" name="q">
<button class="btn btn-outline-light my-2 my-sm-0" type="submit">Search</button>
</form>
</ul>
</div>
</nav>
Expand Down
4 changes: 4 additions & 0 deletions off-world-travel.html
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,10 @@
<li class="nav-link nav-item">
<a class="nav-link" href="legal.html">Legal</a>
</li>
<form class="form-inline float-right" action="search.html">
<input class="form-control mr-sm-2" type="search" placeholder="Search" aria-label="Search" name="q">
<button class="btn btn-outline-light my-2 my-sm-0" type="submit">Search</button>
</form>
</ul>
</div>
</nav>
Expand Down
4 changes: 4 additions & 0 deletions personal-combat.html
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,10 @@
<li class="nav-link nav-item">
<a class="nav-link" href="legal.html">Legal</a>
</li>
<form class="form-inline float-right" action="search.html">
<input class="form-control mr-sm-2" type="search" placeholder="Search" aria-label="Search" name="q">
<button class="btn btn-outline-light my-2 my-sm-0" type="submit">Search</button>
</form>
</ul>
</div>
</nav>
Expand Down
4 changes: 4 additions & 0 deletions planetary-wilderness-encounters.html
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,10 @@
<li class="nav-link nav-item">
<a class="nav-link" href="legal.html">Legal</a>
</li>
<form class="form-inline float-right" action="search.html">
<input class="form-control mr-sm-2" type="search" placeholder="Search" aria-label="Search" name="q">
<button class="btn btn-outline-light my-2 my-sm-0" type="submit">Search</button>
</form>
</ul>
</div>
</nav>
Expand Down
4 changes: 4 additions & 0 deletions psionics.html
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,10 @@
<li class="nav-link nav-item">
<a class="nav-link" href="legal.html">Legal</a>
</li>
<form class="form-inline float-right" action="search.html">
<input class="form-control mr-sm-2" type="search" placeholder="Search" aria-label="Search" name="q">
<button class="btn btn-outline-light my-2 my-sm-0" type="submit">Search</button>
</form>
</ul>
</div>
</nav>
Expand Down
4 changes: 4 additions & 0 deletions refereeing-the-game.html
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,10 @@
<li class="nav-link nav-item">
<a class="nav-link" href="legal.html">Legal</a>
</li>
<form class="form-inline float-right" action="search.html">
<input class="form-control mr-sm-2" type="search" placeholder="Search" aria-label="Search" name="q">
<button class="btn btn-outline-light my-2 my-sm-0" type="submit">Search</button>
</form>
</ul>
</div>
</nav>
Expand Down
101 changes: 101 additions & 0 deletions search.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,101 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Cepheus Engine SRD - Search Results</title>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.5.3/dist/css/bootstrap.min.css" integrity="sha384-TX8t27EcRE3e/ihU7zmQxVncDAy5uIKz4rEkgIXeMed4M0jlfIDPvg6uqKI2xXr2" crossorigin="anonymous">
<link href="cepheus-engine-srd.css" rel="stylesheet">
</head>
<body>
<header>
<nav class="navbar navbar-expand-custom bg-dark navbar-dark fixed-top">
<a class="navbar-brand" href="index.html">Cepheus Engine SRD</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#collapsibleNavbar">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="collapsibleNavbar">
<ul class="navbar-nav mr-auto nav-pills">
<li class="nav-link nav-item">
<a class="nav-link" href="introduction.html">Introduction</a>
</li>
<li class="nav-link nav-item dropdown">
<a class="nav-link dropdown-toggle" data-toggle="dropdown" href="">Book 1: Characters</a>
<div class="dropdown-menu">
<a class="dropdown-item" href="character-creation.html">Chapter 1: Character Creation</a>
<a class="dropdown-item" href="skills.html">Chapter 2: Skills</a>
<a class="dropdown-item" href="psionics.html">Chapter 3: Psionics</a>
<a class="dropdown-item" href="equipment.html">Chapter 4: Equipment</a>
<a class="dropdown-item" href="personal-combat.html">Chapter 5: Personal Combat</a>
</div>
</li>
<li class="nav-link nav-item dropdown">
<a class="nav-link dropdown-toggle" data-toggle="dropdown" href="">Book 2: Starships and Interstellar Travel</a>
<div class="dropdown-menu">
<a class="dropdown-item" href="off-world-travel.html">Chapter 6: Off-World Travel</a>
<a class="dropdown-item" href="trade-and-commerce.html">Chapter 7: Trade and Commerce</a>
<a class="dropdown-item" href="ship-design-and-construction.html">Chapter 8: Ship Design and Construction</a>
<a class="dropdown-item" href="common-vessels.html">Chapter 9: Common Vessels</a>
<a class="dropdown-item" href="space-combat.html">Chapter 10: Space Combat</a>
</div>
</li>
<li class="nav-link nav-item dropdown">
<a class="nav-link dropdown-toggle" data-toggle="dropdown" href="">Book 3: Referees</a>
<div class="dropdown-menu">
<a class="dropdown-item" href="environments-and-hazards.html">Chapter 11: Environments and Hazards</a>
<a class="dropdown-item" href="worlds.html">Chapter 12: Worlds</a>
<a class="dropdown-item" href="planetary-wilderness-encounters.html">Chapter 13: Planetary Wilderness Encounters</a>
<a class="dropdown-item" href="social-encounters.html">Chapter 14: Social Encounters</a>
<a class="dropdown-item" href="starship-encounters.html">Chapter 15: Starship Encounters</a>
<a class="dropdown-item" href="refereeing-the-game.html">Chapter 16: Refereeing the Game</a>
<a class="dropdown-item" href="adventures.html">Chapter 17: Adventures</a>
</div>
</li>
<li class="nav-link nav-item dropdown">
<a class="nav-link dropdown-toggle" data-toggle="dropdown" href="">Vehicle Design System</a>
<div class="dropdown-menu">
<a class="dropdown-item" href="vds-introduction.html">Introduction</a>
<a class="dropdown-item" href="vehicle-design.html">Chapter 1: Vehicle Design</a>
<a class="dropdown-item" href="common-aircraft.html">Chapter 2: Common Aircraft</a>
<a class="dropdown-item" href="common-grav-vehicles.html">Chapter 3: Common Grav Vehicles</a>
<a class="dropdown-item" href="common-ground-vehicles.html">Chapter 4: Common Ground Vehicles</a>
<a class="dropdown-item" href="common-watercraft.html">Chapter 5: Common Watercraft</a>
<a class="dropdown-item" href="uncommon-vehicles.html">Chapter 6: Uncommon Vehicles</a>
<a class="dropdown-item" href="updated-common-vehicles-table.html">Appendix A: Updated Common Vehicles Table</a>
</div>
</li>
<li class="nav-link nav-item dropdown">
<a class="nav-link dropdown-toggle" data-toggle="dropdown" href="">Tools</a>
<div class="dropdown-menu">
<a class="dropdown-item" href="tools/subsector-generator.html">Subsector Generator</a>
</div>
</li>
<li class="nav-link nav-item">
<a class="nav-link" href="legal.html">Legal</a>
</li>
<form class="form-inline float-right" action="search.html">
<input class="form-control mr-sm-2" type="search" placeholder="Search" aria-label="Search" name="q">
<button class="btn btn-outline-light my-2 my-sm-0" type="submit">Search</button>
</form>
</ul>
</div>
</nav>
</header>

<main class="container w-75">
<h1>Search Results</h1>
<script async src="https://cse.google.com/cse.js?cx=be3384d11641a9587"></script>
<div class="gcse-searchresults-only"></div>
</main>

<footer class="footer fixed-bottom">
<div class="container">
<span class="text-muted">Cepheus Engine System Reference Document, Copyright © 2016 Samardan Press; Author Jason "Flynn" Kemp</span>
</div>
</footer>

<script src="https://code.jquery.com/jquery-3.5.1.slim.min.js" integrity="sha384-DfXdz2htPH0lsSSs5nCTpuj/zy4C+OGpamoFVy38MVBnE+IbbVYUew+OrCXaRkfj" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@4.5.3/dist/js/bootstrap.bundle.min.js" integrity="sha384-ho+j7jyWK8fNQe+A12Hb8AhRq26LrZ/JpcUGGOn+Y7RsweNrtN/tE3MoK7ZeZDyx" crossorigin="anonymous"></script>
<script src="https://cdn.rawgit.com/afeld/bootstrap-toc/v1.0.1/dist/bootstrap-toc.min.js"></script>
</body>
</html>
4 changes: 4 additions & 0 deletions ship-design-and-construction.html
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,10 @@
<li class="nav-link nav-item">
<a class="nav-link" href="legal.html">Legal</a>
</li>
<form class="form-inline float-right" action="search.html">
<input class="form-control mr-sm-2" type="search" placeholder="Search" aria-label="Search" name="q">
<button class="btn btn-outline-light my-2 my-sm-0" type="submit">Search</button>
</form>
</ul>
</div>
</nav>
Expand Down
4 changes: 4 additions & 0 deletions skills.html
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,10 @@
<li class="nav-link nav-item">
<a class="nav-link" href="legal.html">Legal</a>
</li>
<form class="form-inline float-right" action="search.html">
<input class="form-control mr-sm-2" type="search" placeholder="Search" aria-label="Search" name="q">
<button class="btn btn-outline-light my-2 my-sm-0" type="submit">Search</button>
</form>
</ul>
</div>
</nav>
Expand Down
4 changes: 4 additions & 0 deletions social-encounters.html
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,10 @@
<li class="nav-link nav-item">
<a class="nav-link" href="legal.html">Legal</a>
</li>
<form class="form-inline float-right" action="search.html">
<input class="form-control mr-sm-2" type="search" placeholder="Search" aria-label="Search" name="q">
<button class="btn btn-outline-light my-2 my-sm-0" type="submit">Search</button>
</form>
</ul>
</div>
</nav>
Expand Down
4 changes: 4 additions & 0 deletions space-combat.html
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,10 @@
<li class="nav-link nav-item">
<a class="nav-link" href="legal.html">Legal</a>
</li>
<form class="form-inline float-right" action="search.html">
<input class="form-control mr-sm-2" type="search" placeholder="Search" aria-label="Search" name="q">
<button class="btn btn-outline-light my-2 my-sm-0" type="submit">Search</button>
</form>
</ul>
</div>
</nav>
Expand Down
4 changes: 4 additions & 0 deletions starship-encounters.html
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,10 @@
<li class="nav-link nav-item">
<a class="nav-link" href="legal.html">Legal</a>
</li>
<form class="form-inline float-right" action="search.html">
<input class="form-control mr-sm-2" type="search" placeholder="Search" aria-label="Search" name="q">
<button class="btn btn-outline-light my-2 my-sm-0" type="submit">Search</button>
</form>
</ul>
</div>
</nav>
Expand Down
4 changes: 4 additions & 0 deletions tools/sector-generator.html
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,10 @@
<li class="nav-link nav-item">
<a class="nav-link" href="../legal.html">Legal</a>
</li>
<form class="form-inline float-right" action="../search.html">
<input class="form-control mr-sm-2" type="search" placeholder="Search" aria-label="Search" name="q">
<button class="btn btn-outline-light my-2 my-sm-0" type="submit">Search</button>
</form>
</ul>
</div>
</nav>
Expand Down
4 changes: 4 additions & 0 deletions tools/subsector-generator.html
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,10 @@
<li class="nav-link nav-item">
<a class="nav-link" href="../legal.html">Legal</a>
</li>
<form class="form-inline float-right" action="../search.html">
<input class="form-control mr-sm-2" type="search" placeholder="Search" aria-label="Search" name="q">
<button class="btn btn-outline-light my-2 my-sm-0" type="submit">Search</button>
</form>
</ul>
</div>
</nav>
Expand Down
4 changes: 4 additions & 0 deletions trade-and-commerce.html
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,10 @@
<li class="nav-link nav-item">
<a class="nav-link" href="legal.html">Legal</a>
</li>
<form class="form-inline float-right" action="search.html">
<input class="form-control mr-sm-2" type="search" placeholder="Search" aria-label="Search" name="q">
<button class="btn btn-outline-light my-2 my-sm-0" type="submit">Search</button>
</form>
</ul>
</div>
</nav>
Expand Down
4 changes: 4 additions & 0 deletions uncommon-vehicles.html
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,10 @@
<li class="nav-link nav-item">
<a class="nav-link" href="legal.html">Legal</a>
</li>
<form class="form-inline float-right" action="search.html">
<input class="form-control mr-sm-2" type="search" placeholder="Search" aria-label="Search" name="q">
<button class="btn btn-outline-light my-2 my-sm-0" type="submit">Search</button>
</form>
</ul>
</div>
</nav>
Expand Down
Loading

0 comments on commit ff4f15e

Please sign in to comment.