forked from DefinitelyTyped/DefinitelyTyped
-
Notifications
You must be signed in to change notification settings - Fork 0
/
jquery-fullscreen.d.ts
28 lines (22 loc) · 1.2 KB
/
jquery-fullscreen.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
// Type definitions for jquery-fullscreen 1.1.5
// Project: https://github.com/kayahr/jquery-fullscreen-plugin
// Definitions by: Bruno Grieder <https://github.com/bgrieder>
// Definitions: https://github.com/borisyankov/DefinitelyTyped
/// <reference path="../jquery/jquery.d.ts"/>
interface JQuery {
/**
* You can either switch the whole page or a single HTML element to fullscreen mode
* This only works when the code was triggered by a user interaction (For example a onclick event on a button). Browsers don't allow entering fullscreen mode without user interaction.
* Fullscreen mode is always exited via the document but this plugin allows it also via any HTML element. The owner document of the selected HTML element is used
*/
fullScreen(fullScreen: boolean): JQuery | boolean;
/**
* The method returns the current fullscreen element (or true if browser doesn't support this) when fullscreen mode is active,
* false if not active or null when the browser does not support fullscreen mode at all
*/
fullScreen(): boolean;
/**
* The plugin provides another method for simple fullscreen mode toggling
*/
toggleFullScreen(): JQuery | boolean;
}