aboutsummaryrefslogtreecommitdiffstats
path: root/html/git-deps.html
diff options
context:
space:
mode:
authorAdam Spiers <git@adamspiers.org>2015-01-08 20:30:33 +0000
committerAdam Spiers <git@adamspiers.org>2015-01-09 02:18:02 +0000
commit8251166cf25c890dc519571ff14d4221385761eb (patch)
treefc9557ef179bfe838b47da102ba80e53b6bcb91f /html/git-deps.html
parent98c65a6a40737a82e71146ebd70c3b0e7a9e3880 (diff)
downloadgit-deps-8251166cf25c890dc519571ff14d4221385761eb.tar.gz
add zoom to fit and fullscreen (closes #6 and #7)
Diffstat (limited to 'html/git-deps.html')
-rw-r--r--html/git-deps.html6
1 files changed, 6 insertions, 0 deletions
diff --git a/html/git-deps.html b/html/git-deps.html
index 8ca1a1b..8f0b567 100644
--- a/html/git-deps.html
+++ b/html/git-deps.html
@@ -12,6 +12,7 @@
<script language="javascript" type="text/javascript" src="node_modules/noty/js/noty/packaged/jquery.noty.packaged.min.js"></script>
<script language="javascript" type="text/javascript" src="js/noty.js"></script>
+ <script language="javascript" type="text/javascript" src="js/fullscreen.js"></script>
<script language="javascript" type="text/javascript" src="js/git-deps-graph.js"></script>
<link rel="stylesheet" type="text/css" href="css/animate.css" />
@@ -34,5 +35,10 @@
value="master" autofocus />
<button>Submit</button>
</form>
+
+ <p>
+ <button onclick="fullScreen(svg[0][0], full_screen_cancel); zoom_to_fit()">Full screen</button>
+ <button onclick="zoom_to_fit()">Zoom to fit (or double click)</button>
+ </p>
</body>
</html>