Php photo gallery TWG | JFUploader | TWG Flash upload | WFU | Forum
https://www.tinywebgallery.com/forum/

Hide iFrame on all iOS and mobile devices
https://www.tinywebgallery.com/forum/viewtopic.php?f=21&t=4060
Page 1 of 1

Author:  hide_iframe [ 26. Mar 2016, 02:28 ]
Post subject:  Hide iFrame on all iOS and mobile devices

Hi, I would like to show my iFrame only on desktop computers and hide it on mobile devices.

I know that I have to use different id's somehow, like below, but how can I just hide the iFrame for iOS and other mobile screens?

[advanced_iframe securitykey="xxx" id=“ios_devices” src="xxx" browser="iphone,ipad,ipod" width="0%" height="0"]
[advanced_iframe securitykey="xxx" id=“other_mobile” src="xxx" browser="mobile" width="0%" height="0"]
[advanced_iframe securitykey="xxx" id=“desktop” src=“xxx” browser="default"]

Author:  TinyWebGallery [ 26. Mar 2016, 13:55 ]
Post subject:  Re: Hide iFrame on all iOS and mobile devices

Please check the documentation. You need to have the SAME id for all

[advanced_iframe securitykey="xxx" id="iframe1" src="about:blank" browser="mobile,iphone,ipad,ipod" width="0" height="0"]
[advanced_iframe securitykey="xxx" id="iframe1" src=“xxx” browser="default"]

Or you make it the other way around and specify "desktop" in the first shortcode and all other devices in the default and hide it there.

Best, Michael

Page 1 of 1 All times are UTC + 1 hour [ DST ]
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/