Sanager
root
/
backend
/
assets
/
plugins
/
sweet-alerts
/
js
Current path:
/home/c5h8h46z46h8/public_html/janayitri.org/public/backend/assets/plugins/sweet-alerts/js
Root:
/home/c5h8h46z46h8/public_html/janayitri.org/public
Edit File: custom-sweetalerts.js
/*SweetAlert Init*/ $(function() { "use strict"; var SweetAlert = function() {}; //Examples SweetAlert.prototype.init = function() { //Default $('#alerts_default').click(function(){ swal("Here's a message!"); }); //Title With Text $('#alerts_title_text').click(function(){ swal("Here's a message!", "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed lorem erat eleifend ex semper, lobortis purus sed.") }); //Success Message $('#alert_success').click(function(){ swal("Good job!", "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed lorem erat eleifend ex semper, lobortis purus sed.", "success") }); //Warning Message $('#alert_warning').click(function(){ swal({ title: "Are you sure?", text: "You will not be able to recover this imaginary file!", type: "warning", showCancelButton: true, confirmButtonColor: "#DD6B55", confirmButtonText: "Yes, delete it!", closeOnConfirm: false }, function(){ swal("Deleted!", "Your imaginary file has been deleted.", "success"); }); }); //Custom Image $('#alert_image').click(function(){ swal({ title: "Govinda!", text: "Recently joined twitter", imageUrl: "assets/img/avatar.jpg" }); }); //Auto Close $('#auto_close_alert').click(function(){ swal({ title: "Auto close alert!", text: "I will close in 2 seconds.", timer: 2000, showConfirmButton: false }); }); }, //init $.SweetAlert = new SweetAlert, $.SweetAlert.Constructor = SweetAlert; $.SweetAlert.init(); });
Save
Upload File
Upload
Create File
Create
Create Folder
Create Folder
Files & Folders
Name
Size
Permissions
Modified
Actions
custom-sweetalerts.js
1,953 bytes
0644
2022-02-17 04:32
✏️
🗑️
Rename
sweetalert.min.js
16,977 bytes
0644
2022-02-17 04:32
✏️
🗑️
Rename
Change Permissions (Simulated)
Apply
Sanager