<script src="dist/flyovers.min.js"></script> <script> /* global Flyovers */ const flyovers = new Flyovers(); flyovers.showMessage('Message 1', 'Attempts to prove it prompted substantial development in number theory, and over time Fermat Last Theorem gained prominence as an unsolved problem in mathematics'); flyovers.showInfo('Info Permanent', 'Attempts to prove it prompted substantial development in number theory, and over time Fermat Last Theorem gained prominence as an unsolved problem in mathematics', { permanent: true, }); flyovers.showMessage('Message 2', { timeout: 1000, beautify: function(flyoverOverlay) { flyoverOverlay.style.fontSize = `${Math.floor(Math.random() * 10)+8}pt`; flyoverOverlay.style.backgroundColor = 'red'; flyoverOverlay.style.color = 'white'; } }); flyovers.showError('Error'); flyovers.showSuccess('Success'); flyovers.showWarning('Warning'); flyovers.showInfo('Info'); </script>