/**
 * Admin JavaScript for FoodOrd License page.
 *
 * @package Foodord
 */

(function($) {
	'use strict';

	$(document).ready(function() {
		// Auto hide notices after 5 seconds
		const $notices = $('.notice.is-dismissible');
		if ($notices.length > 0) {
			setTimeout(function() {
				$notices.fadeOut(500, function() {
					$(this).remove();
				});
			}, 5000);
		}
	});
})(jQuery);
