The Mobile PluginΒΆ

mobile.py - A plugin to enable the use of Gate One on mobile devices.

The Python code of this plugin only does one thing: It adds a single line to the <head> of Gate One's index.html page by way of the 'head' hook. Quite literally, this is everything:

header_hooks = [
    '<meta name="viewport" content="target-densitydpi=device-dpi, width=device-width, initial-scale=1.0, minimum-scale=1.0, user-scalable=0">',
]

hooks = {
    'HTML': {
        'head': header_hooks,
    }
}

Note

'head' hooks don't work in embedded mode.

Previous topic

The Notice Plugin

Next topic

The Playback Plugin

This Page