diff options
author | Arun Persaud <arun@nubati.net> | 2012-09-24 23:42:14 -0700 |
---|---|---|
committer | Arun Persaud <arun@nubati.net> | 2012-09-24 23:42:14 -0700 |
commit | 2edbbec973793211aa5683ce6f69fba2ff953f03 (patch) | |
tree | d1a005ba10f37783b2218171f33418732d19ea88 /index.php | |
parent | a941f0edd18b218cdfd31bfd17e3d672d94f9f52 (diff) | |
download | photo-tags-2edbbec973793211aa5683ce6f69fba2ff953f03.tar.gz photo-tags-2edbbec973793211aa5683ce6f69fba2ff953f03.tar.bz2 photo-tags-2edbbec973793211aa5683ce6f69fba2ff953f03.zip |
added Bootstrap and converted some parts the pagination to it.
Diffstat (limited to 'index.php')
-rw-r--r-- | index.php | 22 |
1 files changed, 15 insertions, 7 deletions
@@ -42,12 +42,14 @@ function autoversion($file) /* The basic layout */ ?> - +<!DOCTYPE html> <html> +<head> <title><?php echo htmlspecialchars($title) ?></title> <script src = "<?php echo $webbase.autoversion("/js/d3.min.js")?>"></script> -<link rel="stylesheet" type="text/css" href="<?php echo $webbase.autoversion("/css/normalize.css")?>" /> <link rel="stylesheet" type="text/css" href="<?php echo $webbase.autoversion("/css/style.css")?>" /> +<link rel="stylesheet" type="text/css" href="<?php echo $webbase.autoversion("/css/bootstrap.min.css")?>" /> +</head> <body> @@ -55,22 +57,26 @@ function autoversion($file) <h1><?php echo htmlspecialchars($title) ?></h1> <nav> -page <span class="index"></span> -<button class="prev" type="button" disabled="disabled" onclick="prev_page()"> prev </button> -<button class="next" type="button" onclick="next_page()">next </button> -<button class="all" type="submit" onclick="document.location.href='<?php echo $webbase?>'">all</button> + +<div class="pagination"> + <ul> + </ul> +</div> + </nav> + <div class="permalink"></div> <div class="tagsearch"> -<form method="get" action=""> +<form class="form-search" method="get" action=""> Search for tag: <input list="MyTags" id="MyTagsInput" type="text" value="" /> <datalist id="MyTags"> </datalist> </form> Current tags:<span id="currenttags"></span> <button class="next" type="button" onclick="tagcloud()">tag cloud</button> + <button class="all" onclick="document.location.href='<?php echo $webbase?>'">all</button> </div> <div class="nextprev"> <ul></ul></div> @@ -84,6 +90,8 @@ page <span class="index"></span> <script src = "<?php echo $webbase.autoversion("/js/photo-tags.js")?>"></script> +<script src="http://code.jquery.com/jquery-latest.js"></script> +<script src="js/bootstrap.min.js"></script> <script type="text/javascript" > /*hand parameters over to javascript*/ |