Get current device information and adds appropiate CSS classes to the HTML document.


Based on:

https://github.com/matthewhudson/current-device

 

neoDeviceGetInfo

Purpose:

Get basic device information

Category:

neoDevice

Syntax:

neoDeviceGetInfo deviceType deviceOS deviceOrientation theBrowserName

 

deviceType

Variable to store device type (Desktop, Tablet or Mobile)

deviceOS

Variable to store device OS (Android, iOS...)

deviceOrientation

Variable to store device orientation (Landscape or Portrait)

theBrowserName

Variable to store Web Browser name (Firefox, Chrome...)

 

neoDeviceOnOrientationChange

Purpose:

Set the subroutine to execute when device orientation changes.


The subroutine should get get new orientation as a STRING variable.


This action doesn't work in Internet Explorer

Category:

neoDevice

Syntax:

neoDeviceOnOrientationChange mysubroutine

 

mysubroutine

Subroutine to execute

 

neoDeviceVibrate

Purpose:

Use the device's built-in vibration, if one is present.

Category:

neoDevice

Syntax:

neoDeviceVibrate milliseconds

 

milliseconds

Milliseconds

 

neoDeviceIsOnline

Purpose:

Detects if there is an Internet connection return true or false

Category:

neoDevice

Syntax:

neoDeviceIsOnline [returnvar]

 

returnvar

Return var

 

neoDeviceOnConnect

Purpose:

Call a subroutine when Internet connection returns

Category:

neoDevice

Syntax:

neoDeviceOnConnect subroutine

 

subroutine

Subroutine

 

neoDeviceOnDisconnect

Purpose:

Call a subroutine when Internet connection is lost

Category:

neoDevice

Syntax:

neoDeviceOnDisconnect subroutine

 

subroutine

Subroutine

Created with the Personal Edition of HelpNDoc: Transform Your Word Document into a Professional eBook with HelpNDoc