11 lines
252 B
JavaScript
11 lines
252 B
JavaScript
ready = function() {
|
|
$('[data-remove]').each(function() {
|
|
var button = $(this);
|
|
setTimeout(function() {
|
|
$(button).remove();
|
|
}, $(button).data("remove") * 1000);
|
|
});
|
|
}
|
|
|
|
$(document).ready(ready);
|
|
$(document).on('page:load', ready);
|