Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Buttons page alternative to alert #19

Open
akeilox opened this issue Oct 27, 2019 · 0 comments
Open

Buttons page alternative to alert #19

akeilox opened this issue Oct 27, 2019 · 0 comments

Comments

@akeilox
Copy link

akeilox commented Oct 27, 2019

This is not an issue, instead sharing what I found to be beneficial.

The Buttons tab/page is great and I keep adding quick command checks with output that might be needed to copy/paste or when the output is long and needs to be scrolled.

I came across and added sweetalert.js (independent of any framework) like this;
https://sweetalert.js.org/guides/

In /var/www/html/console/buttons.php

add <script src="https://unpkg.com/sweetalert/dist/sweetalert.min.js"></script> to the header after the last js

and change the function execute_button(button_id)
alert(data) statement to simply
swal(data)

and it blends nicely with the CSS/theme.

Hope you find it useful too. It can replace all alert() in other pages/functions if you see fit.
cheers!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant