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

Diff tables: Mouseover HTML table cells to show 'before' results #38

Open
snim2 opened this issue Feb 13, 2018 · 1 comment
Open

Diff tables: Mouseover HTML table cells to show 'before' results #38

snim2 opened this issue Feb 13, 2018 · 1 comment

Comments

@snim2
Copy link
Contributor

snim2 commented Feb 13, 2018

Diff tables currently show the "after" results of the diff, and there is no easy way to compare those results to the "before" data. It would be nice to be able to mouseover a table cell or row to show the previous results.

Useful HTML code:

<!-- Javascript has to be in this wrapper div to avoid flickering. -->
<div onmouseover="document.getElementById('label2').style.display='block'; document.getElementById('table1').style.display='none';" onmouseout="document.getElementById('label1').style.display='block'; document.getElementById('table2').style.display='none';">
    <div id="label1">
        <!-- Visible element here. -->
    </div>
    <div id="label2" style="display: none;" >
        <!-- Element to view on mouseover here. -->
    </div>
</div>
@snim2
Copy link
Contributor Author

snim2 commented Aug 21, 2018

This page has a nice example: http://soft-dev.org/src/warmup_stats/

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

No branches or pull requests

1 participant