diff options
author | Arun Persaud <arun@nubati.net> | 2011-11-24 20:41:53 -0800 |
---|---|---|
committer | Arun Persaud <apersaud@lbl.gov> | 2011-11-24 20:41:53 -0800 |
commit | 9d77827195a8057746842bfa307d550d04ed02f9 (patch) | |
tree | f40a8c56efd63731daf6f0a257648b5812858d68 /index.php | |
parent | 43a2a8bb13aee236c444eafafd57d67357f9c234 (diff) | |
download | photo-tags-9d77827195a8057746842bfa307d550d04ed02f9.tar.gz photo-tags-9d77827195a8057746842bfa307d550d04ed02f9.tar.bz2 photo-tags-9d77827195a8057746842bfa307d550d04ed02f9.zip |
added a permalink and use clean urls
this needs .htaccess. Already added clean urls for tags and single pic, but at the moment only page is working.
Diffstat (limited to 'index.php')
-rw-r--r-- | index.php | 10 |
1 files changed, 7 insertions, 3 deletions
@@ -17,9 +17,9 @@ else ?> <html> <title><?php echo htmlspecialchars($title) ?></title> -<script src="d3.min.js"></script> -<link rel="stylesheet" type="text/css" href="normalize.css" /> -<link rel="stylesheet" type="text/css" href="style.css" /> +<script src="<?php echo $webbase?>/d3.min.js"></script> +<link rel="stylesheet" type="text/css" href="<?php echo $webbase?>/normalize.css" /> +<link rel="stylesheet" type="text/css" href="<?php echo $webbase?>/style.css" /> <body> @@ -29,6 +29,8 @@ else <button class="prev" disabled="disabled" onclick="left()"> prev </button> <button class="next" onclick="right()">next </button> +<div class="permalink"></div> + <div class="pics"> </div> <footer> @@ -68,6 +70,8 @@ function myreload(a) { checkbutton(); }); + permalink="<?php echo $webbase ?>/page/"+page; + d3.select(".permalink").html("Permalink: <a href=\""+permalink+"\">"+permalink+"</a>"); d3.select(".debug").text("P, count= "+a+" "+count); } |