Make table rows clickable

master
Sven Slootweg 12 years ago
parent 42bfee81af
commit 8630e37ac7

@ -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>

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

Loading…
Cancel
Save