📁
SKYSHELL MANAGER-
🛒
PHP v7.4.33
Create Folder
Create File
Current Path:
home
/
oshofree
/
public_html
/
chbluxuries.com
/
chb_data
/
Name
Size
Permissions
Actions
📁
..
-
0755
🗑️
🔒
📄
config.php
7.06 KB
0444
🗑️
⬇️
✏️
🔒
📄
error_log
36657.22 KB
0644
🗑️
⬇️
✏️
🔒
Editing: sweetalert.script.js
(function ($) { "use strict"; document.querySelector('.sweet-1').onclick = function(){ swal("Here's a message!"); }; document.querySelector('.sweet-2').onclick = function(){ swal("Here's a message!", "It's pretty, isn't it?") }; document.querySelector('.sweet-3').onclick = function(){ swal("Good job!", "You clicked the button!", "success"); }; document.querySelector('.sweet-4').onclick = function(){ swal({ title: "Are you sure?", text: "You will not be able to recover this imaginary file!", type: "warning", showCancelButton: true, confirmButtonClass: 'btn-danger', confirmButtonText: 'Yes, delete it!', closeOnConfirm: false, //closeOnCancel: false }, function(){ swal("Deleted!", "Your imaginary file has been deleted!", "success"); }); }; document.querySelector('.sweet-5').onclick = function(){ swal({ title: "Are you sure?", text: "You will not be able to recover this imaginary file!", type: "warning", showCancelButton: true, confirmButtonClass: 'btn-danger', confirmButtonText: 'Yes, delete it!', cancelButtonText: "No, cancel plx!", closeOnConfirm: false, closeOnCancel: false }, function(isConfirm){ if (isConfirm){ swal("Deleted!", "Your imaginary file has been deleted!", "success"); } else { swal("Cancelled", "Your imaginary file is safe :)", "error"); } }); }; document.querySelector('.sweet-6').onclick = function(){ swal({ title: "Sweet!", text: "Here's a custom image.", imageUrl: 'dist/images/thumbs-up.jpg' }); }; document.querySelector('.sweet-7').onclick = function () { swal({ title: "An input!", text: "Write something interesting:", type: "input", showCancelButton: true, closeOnConfirm: false, animation: "slide-from-top", inputPlaceholder: "Write something" }, function (inputValue) { if (inputValue === false) return false; if (inputValue === "") { swal.showInputError("You need to write something!"); return false } swal("Nice!", "You wrote: " + inputValue, "success"); }); }; document.querySelector('.sweet-8').onclick = function () { swal({ title: "Ajax request example", text: "Submit to run ajax request", type: "info", showCancelButton: true, closeOnConfirm: false, showLoaderOnConfirm: true }, function () { setTimeout(function () { swal("Ajax request finished!"); }, 2000); }); }; document.querySelector('.sweet-10').onclick = function(){ swal({ title: "Are you sure?", text: "You will not be able to recover this imaginary file!", type: "info", showCancelButton: true, cancelButtonClass: 'btn-danger', confirmButtonClass: 'btn-primary', confirmButtonText: 'Primary!' }); }; document.querySelector('.sweet-11').onclick = function(){ swal({ title: "Are you sure?", text: "You will not be able to recover this imaginary file!", type: "info", showCancelButton: true, cancelButtonClass: 'btn-danger', confirmButtonClass: 'btn-info', confirmButtonText: 'Info!' }); }; document.querySelector('.sweet-12').onclick = function(){ swal({ title: "Are you sure?", text: "You will not be able to recover this imaginary file!", type: "success", showCancelButton: true, cancelButtonClass: 'btn-danger', confirmButtonClass: 'btn-success', confirmButtonText: 'Success!' }); }; document.querySelector('.sweet-13').onclick = function(){ swal({ title: "Are you sure?", text: "You will not be able to recover this imaginary file!", type: "warning", showCancelButton: true, cancelButtonClass: 'btn-danger', confirmButtonClass: 'btn-warning', confirmButtonText: 'Warning!' }); }; document.querySelector('.sweet-14').onclick = function(){ swal({ title: "Are you sure?", text: "You will not be able to recover this imaginary file!", type: "error", showCancelButton: true, cancelButtonClass: 'btn-danger', confirmButtonClass: 'btn-danger', confirmButtonText: 'Danger!' }); }; })(jQuery);
💾 Save Changes