Author Topic: Current Conditions graphic on Dashboard  (Read 695 times)

0 Members and 1 Guest are viewing this topic.

Offline Lucht

  • Member
  • *
  • Posts: 30
Current Conditions graphic on Dashboard
« on: July 19, 2017, 01:26:09 AM »
For some odd reason, whenever the page http://test.sanctuaryweather.info is refreshed, the current conditions graphic starts off a reasonable size and then diminishes in size. It goes from around 74px to 55px.

Is there a way to set it so that it stays at 74px?

Thanks in advance for help  :-)

Offline wvdkuil

  • Wim van der kuil
  • Forecaster
  • *****
  • Posts: 1986
    • My PWS at Leuven Belgium Europe
Re: Current Conditions graphic on Dashboard
« Reply #1 on: July 19, 2017, 02:34:19 AM »
The first icon is 108 * 112 px and loaded bij the dashboard php script on your webserver.

The smaller one comes from the ajax update script http://www.test.sanctuaryweather.info/ajaxWDwx3.js
The size is set at 74 * 74 in lines 373-380.

It depends on the size you want, if you have to adapt the dashboard php or the javascript code.

When adapting the javascript you HAVE to do a reload of the script (round arrow in your browser) or wait until the cached javascript is reloaded by your browser.

Wim

Offline Lucht

  • Member
  • *
  • Posts: 30
Re: Current Conditions graphic on Dashboard
« Reply #2 on: July 19, 2017, 01:52:39 PM »
Thanks for that, Wim. That makes sense and is something I was starting to suspect a couple of hours ago as I was waking up  :-)

It appears I may have two scripts fighting against each other: ajaxWDwx.js (an older version which I'm using for the main site proper) and ajaxWDwx3.js (which I'm using for the mobile version). I'd been hoping I could get away with that, but it looks like I can't. Oh well, back to the drawing board.

 

anything