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

Add a toggle button to show/hide email addresses #30

Open
dillionverma opened this issue Aug 25, 2023 · 1 comment
Open

Add a toggle button to show/hide email addresses #30

dillionverma opened this issue Aug 25, 2023 · 1 comment
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed

Comments

@dillionverma
Copy link
Owner

dillionverma commented Aug 25, 2023

There should be a toggle button to switch back and forth between emails shown and hidden in the tables and charts

image
@dillionverma dillionverma added enhancement New feature or request help wanted Extra attention is needed good first issue Good for newcomers labels Aug 25, 2023
@dillionverma dillionverma changed the title Add a toggle button for email Add a toggle button to show/hide email addresses Aug 25, 2023
@pawang792001
Copy link

pawang792001 commented Jul 19, 2024

<script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
<script>
    $(document).ready(function() {
        $('#toggleButton').on('click', function() {
            $('.hidden-email').toggle();
            $('.masked-email').toggle();
            var buttonText = $('#toggleButton').text();
            $('#toggleButton').text(buttonText === 'Show Emails' ? 'Hide Emails' : 'Show Emails');
        });
    });
</script>

Use jquery or javascript into it

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants