Author Topic: Saratoga Template Plugins-SPC Outlooks and Advisory Map  (Read 1103 times)

0 Members and 1 Guest are viewing this topic.

Offline rlmarcum22

  • Senior Member
  • **
  • Posts: 86
    • East-Central Kentucky Weather
Saratoga Template Plugins-SPC Outlooks and Advisory Map
« on: August 09, 2020, 12:53:06 AM »
I have added the US advisory map plugins and the SPC outlook plugins but they are too wide for the page and every time I try to make them smaller it messes up the whole page.  Help!! Links to both pages: https://www.ekyrrgweather.com/wxusalerts.php and https://www.ekyrrgweather.com/wxspc3doutlook.php  ](*,)

Offline gwwilk

  • Southeast Lincoln Weather
  • Forecaster
  • *****
  • Posts: 2578
    • SouthEast Lincoln, NE Weather
Re: Saratoga Template Plugins-SPC Outlooks and Advisory Map
« Reply #1 on: August 09, 2020, 06:04:18 AM »
For the alerts page you need the resizing alerts script found as wxusalerts-varsize.zip here.

The wxspc3doutlook script is displayed in an iframe that's massively interactive and therefore very difficult to scrape and emulate, so no resizing has been done on this script.  What you see is what you get.  Sorry...
Regards, Jerry Wilkins
gwwilk@gmail.com

Offline rlmarcum22

  • Senior Member
  • **
  • Posts: 86
    • East-Central Kentucky Weather
Re: Saratoga Template Plugins-SPC Outlooks and Advisory Map
« Reply #2 on: August 09, 2020, 06:06:06 AM »
So I did download the resizing script from your website but when I clicked on the map it took me to the wrong NWS office page. I didn’t know how to fix that.

Offline rlmarcum22

  • Senior Member
  • **
  • Posts: 86
    • East-Central Kentucky Weather
Re: Saratoga Template Plugins-SPC Outlooks and Advisory Map
« Reply #3 on: August 09, 2020, 06:08:29 AM »

Offline gwwilk

  • Southeast Lincoln Weather
  • Forecaster
  • *****
  • Posts: 2578
    • SouthEast Lincoln, NE Weather
Re: Saratoga Template Plugins-SPC Outlooks and Advisory Map
« Reply #4 on: August 09, 2020, 06:26:27 AM »
Aha!  My error.  The essential 'image-map-min.js' wasn't in the zip, so of course it doesn't work.

There's a new zip available that now contains this JavaScript file.  Be sure to place it in your jquery directory as referenced by the variable location, '$jQdir = 'jquery'; // Location of image-map.min.js', in 'wxusalerts-varsize.php'.
Regards, Jerry Wilkins
gwwilk@gmail.com

Offline Jasiu

  • Forecaster
  • *****
  • Posts: 949
    • LexMAWeather
Re: Saratoga Template Plugins-SPC Outlooks and Advisory Map
« Reply #5 on: August 09, 2020, 10:18:18 AM »
See this thread for a way to use CSS to get the iframe to fit:

  https://www.wxforum.net/index.php?topic=39819.msg408934#msg408934

You'll likely have to play around with it a bit and as Wim says in the post the easiest way to do that is to use the inspect tool in the browser.
https://lexmaweather.info
On Mastodon: @LexMAWeather@toot.community

Offline gwwilk

  • Southeast Lincoln Weather
  • Forecaster
  • *****
  • Posts: 2578
    • SouthEast Lincoln, NE Weather
Re: Saratoga Template Plugins-SPC Outlooks and Advisory Map
« Reply #6 on: August 09, 2020, 10:24:44 AM »
See this thread for a way to use CSS to get the iframe to fit:

  https://www.wxforum.net/index.php?topic=39819.msg408934#msg408934

You'll likely have to play around with it a bit and as Wim says in the post the easiest way to do that is to use the inspect tool in the browser.
Good catch, Jasiu!  Feel free to download the wxspc3doutlook script and play around with the resize 'transform'. :-) I'm up to my eyeballs dealing with misbehaving new and old electronics at the moment. :-(
Regards, Jerry Wilkins
gwwilk@gmail.com

Offline rlmarcum22

  • Senior Member
  • **
  • Posts: 86
    • East-Central Kentucky Weather
Re: Saratoga Template Plugins-SPC Outlooks and Advisory Map
« Reply #7 on: August 09, 2020, 03:47:05 PM »
How exactly do I add it to my "jquery" directory on my website? Im sorry, Im new to this stuff! ](*,)

Offline rlmarcum22

  • Senior Member
  • **
  • Posts: 86
    • East-Central Kentucky Weather
Re: Saratoga Template Plugins-SPC Outlooks and Advisory Map
« Reply #8 on: August 09, 2020, 03:49:49 PM »
Nevermind I figured it out! Thanks so much! \:D/ \:D/

Offline gwwilk

  • Southeast Lincoln Weather
  • Forecaster
  • *****
  • Posts: 2578
    • SouthEast Lincoln, NE Weather
Re: Saratoga Template Plugins-SPC Outlooks and Advisory Map
« Reply #9 on: August 09, 2020, 03:50:51 PM »
How exactly do I add it to my "jquery" directory on my website? Im sorry, Im new to this stuff! ](*,)
Easiest way is to create a /jquery directory on your website and copy the JavaScript file to there.
Regards, Jerry Wilkins
gwwilk@gmail.com

Offline gwwilk

  • Southeast Lincoln Weather
  • Forecaster
  • *****
  • Posts: 2578
    • SouthEast Lincoln, NE Weather
Re: Saratoga Template Plugins-SPC Outlooks and Advisory Map
« Reply #10 on: August 09, 2020, 03:51:48 PM »
Nevermind I figured it out! Thanks so much! \:D/ \:D/
That was quick! :grin:
Regards, Jerry Wilkins
gwwilk@gmail.com

 

anything