summaryrefslogtreecommitdiffstats
path: root/index.php
diff options
context:
space:
mode:
Diffstat (limited to 'index.php')
-rw-r--r--index.php10
1 files changed, 7 insertions, 3 deletions
diff --git a/index.php b/index.php
index 44be53b..5f04543 100644
--- a/index.php
+++ b/index.php
@@ -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);
}