Browse Source

Make table rows clickable

master
Sven Slootweg 9 years ago
parent
commit
8630e37ac7
  1. 8
      templates/index.html
  2. 10
      templates/style.css

8
templates/index.html

@ -3,6 +3,14 @@
<head>
<title>%(page)s - %(pagenum)s - %(title)s</title>
<link rel="stylesheet" href="style.css">
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script>
<script>
$(function(){
$('.clickable').click(function(){
window.location = $(this).data('url');
});
});
</script>
</head>
<body>
<h1>%(title)s</h1>

10
templates/style.css

@ -15,6 +15,16 @@ pre {
word-wrap: break-word;
}
.clickable
{
cursor: pointer;
}
.clickable:hover
{
background-color: #E6E6E6;
}
.clear
{
clear: both;

Loading…
Cancel
Save