From 9a5834465db0899480fa98c1619e9ec8e3e622c7 Mon Sep 17 00:00:00 2001 From: Remy Sharp Date: Sun, 13 Jan 2013 23:44:40 +0000 Subject: [PATCH 1/3] initial commit simple fullscreen demo --- demos.json | 10 +++++++++ demos/fullscreen.html | 51 +++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 61 insertions(+) create mode 100644 demos/fullscreen.html diff --git a/demos.json b/demos.json index 77340f5..ed9f0d5 100644 --- a/demos.json +++ b/demos.json @@ -1,4 +1,14 @@ [ + { + "desc": "Full screen of the page, and individual elements", + "url": "fullscreen", + "tags": "fullscreen", + "support": { + "live": "opera", + "nightly": "chrome firefox safari" + }, + "test": "" + }, { "desc": "Stream video and filter with canvas", "url": "gum-canvas", diff --git a/demos/fullscreen.html b/demos/fullscreen.html new file mode 100644 index 0000000..0834efe --- /dev/null +++ b/demos/fullscreen.html @@ -0,0 +1,51 @@ +Simple Fullscreen API demo + +
+

This example shows how an element can request fullscreen support from the browser.

+

Not supported :(

+
+ +
+
+ \ No newline at end of file From 6a9749da6c57777245f65f6ac2f50ed83c30aac8 Mon Sep 17 00:00:00 2001 From: Remy Sharp Date: Sun, 13 Jan 2013 23:53:36 +0000 Subject: [PATCH 2/3] simple go to fullscreen on the single element - though CSS is not working yet --- demos.json | 6 +++--- demos/fullscreen.html | 11 +++++++++-- 2 files changed, 12 insertions(+), 5 deletions(-) diff --git a/demos.json b/demos.json index ed9f0d5..8835e9c 100644 --- a/demos.json +++ b/demos.json @@ -4,10 +4,10 @@ "url": "fullscreen", "tags": "fullscreen", "support": { - "live": "opera", - "nightly": "chrome firefox safari" + "live": "opera chrome firefox safari", + "nightly": "" }, - "test": "" + "test": "document.body.requestFullscreen !== undefined" }, { "desc": "Stream video and filter with canvas", diff --git a/demos/fullscreen.html b/demos/fullscreen.html index 0834efe..8b1278c 100644 --- a/demos/fullscreen.html +++ b/demos/fullscreen.html @@ -12,7 +12,8 @@

This example shows how an element can request fullscreen support from the browser.

Not supported :(

- + +