mirror of
https://gitlab.com/ruany/litebans-php.git
synced 2025-05-23 08:29:06 +00:00
15 lines
410 B
JavaScript
15 lines
410 B
JavaScript
function withjQuery(tries, f) {
|
|
if (window.jQuery) f();
|
|
else if (tries > 0) window.setTimeout(function () {
|
|
withjQuery(tries - 1, f);
|
|
}, 100);
|
|
}
|
|
|
|
withjQuery(30, function () {
|
|
$('tr').click(function () {
|
|
var href = $(this).find('a').attr('href');
|
|
if (href !== undefined) window.location = href;
|
|
}).hover(function () {
|
|
$(this).toggleClass('hover');
|
|
});
|
|
}); |