thingspeak/app/assets/javascripts/custom.js

33 lines
753 B
JavaScript
Raw Normal View History

// when the document is ready
2014-07-23 19:45:15 +02:00
$(document).on('page:load ready', function() {
2014-03-14 00:16:35 +01:00
// allow flash notices to be dismissed
if ($(".flash").length > 0) {
$(".flash").on("click", function() {
$(this).hide("slow");
});
// hide flash automatically after 15 seconds
setTimeout(function() {
if ($(".flash").length > 0) {
$(".flash").hide("slow");
}
}, 15000);
}
// show form to add a talkback command
$('#talkback_command_add').click(function() {
$(this).hide();
$('#talkback_command_add_form').removeClass('hide');
});
2014-05-09 02:01:41 +02:00
// toggle contact form
$('#contact_link').click(function() {
$('#contact_form').toggle();
});
2014-07-31 21:35:21 +02:00
// activate any tablesorters
$('.tablesorter').tablesorter();
});