Bug Tracker

Modify

Ticket #12109 (closed bug: invalid)

Opened 10 months ago

Last modified 10 months ago

.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

comment:1 Changed 10 months ago by dmethvin

  • Status changed from new to closed
  • Resolution set to invalid

Please ask for help on a forum.

Please follow the  bug reporting guidlines and use  jsFiddle when providing test cases and demonstrations instead of pasting the code in the ticket.

View

Add a comment

Modify Ticket

Action
as closed
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.