I tried to use this code to use sweetModal
but it doesn’t work:
<html lang="en">
<head>
<script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
<link rel="stylesheet" href="sweet-modal/dist/min/jquery.sweet-modal.min.css" />
<script src="sweet-modal/dist/min/jquery.sweet-modal.min.js"></script>
</head>
<body>
<script>
$(document).ready(function() {
$.sweetModal('This is a basic alert dialog.');
});
</script>
</body>
</html>
I don’t think it’s a very common package, here’s the link.
1