Make table rows clickable

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

@ -3,6 +3,14 @@
<head> <head>
<title>%(page)s - %(pagenum)s - %(title)s</title> <title>%(page)s - %(pagenum)s - %(title)s</title>
<link rel="stylesheet" href="style.css"> <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> </head>
<body> <body>
<h1>%(title)s</h1> <h1>%(title)s</h1>

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

Loading…
Cancel
Save