cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Detect mobile device

SOLVED
Amethyst

Detect mobile device

Is there any way to detect from TW global js, if the mashup is loaded from mobile device? I would like adjust widgets I made to fit on mobile based on this option, probably can be done by measuring viewport in jQuery, but is there any internal variable I can access?

Regards Jan.

Tags (1)
1 ACCEPTED SOLUTION

Accepted Solutions

Re: Detect mobile device

Hello Jan,

In order to set the viewport parameter for rendering mashups on mobile displays, you need to use an extension.

Please follow this link to find an exemple of extension adding viewport parameter:

MobileHeader Extension

Bruno

2 REPLIES 2

Re: Detect mobile device

Hello Jan,

In order to set the viewport parameter for rendering mashups on mobile displays, you need to use an extension.

Please follow this link to find an exemple of extension adding viewport parameter:

MobileHeader Extension

Bruno

Highlighted

Re: Detect mobile device

Yes I did almost the same extension: GitHub - Foxoncz/tw-metawidget-ext