Modify ↓
Ticket #12109 (closed bug: invalid)
.on() method not working for multiple events
| Reported by: | bernhard567@… | Owned by: | |
|---|---|---|---|
| Priority: | undecided | Milestone: | None |
| Component: | unfiled | Version: | 1.7.2 |
| Keywords: | Cc: | ||
| Blocking: | Blocked by: |
Description
$('body').on('ready resize', 'p.nav > a > span', function(){ var preferredHeight = 800; var displayHeight = $(window).height(); var percentage = displayHeight / preferredHeight; var newFontSize = Math.floor(fontsize * percentage) - 1; $("p.nav > a > span").css("font-size", newFontSize); });
Why is this code not working Much Thanks for your help
Change History
Please follow the bug reporting guidlines and use jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.
Note: See
TracTickets for help on using
tickets.

Please ask for help on a forum.