YouCount / youcount.github.io

YouCount allows you to see the subscriber count of any YouTube user in realtime. It has been designed using the Material Design language and is optimized for mobile devices and older browsers.
https://youcount.github.io
GNU General Public License v3.0
27 stars 26 forks source link

Error: Realtime graph does not load #1

Closed 20manas closed 5 years ago

20manas commented 5 years ago

When Realtime graph has not already loaded and channel is selected using suggestions(suggests), it does not load. It also causes the width to be more than 100% or 100vw.

20manas commented 5 years ago

Fixed.

Problem:

  1. setInterval of live was being set by getValue which is never called by queryClickListener function of .suggest elements

  2. setInterval of live was being reset by queryName if previously notFound==1

  3. overflow-x of body was not being enforced

    Solution:

  4. setInterval is called (only once) every time queryName is called

  5. overflow-x of body is important (to prevent future issues)