-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #26 from YummyBacon5/example-page
Improve example page
- Loading branch information
Showing
1 changed file
with
8 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,7 @@ | ||
<!doctype html> | ||
<html> | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<title>Invoker Buttons Example</title> | ||
<meta name="viewport" content="width=device-width, initial-scale=1" /> | ||
<link | ||
rel="stylesheet" | ||
href="https://unpkg.com/@oddbird/[email protected]/dist/popover.css" | ||
|
@@ -57,8 +59,8 @@ <h1>InvokeTarget & InvokeAction</h1> | |
</button> | ||
|
||
<dialog id="my-dialog"> | ||
<button invoketarget="my-dialog">x</button> | ||
This is a dialog. Click the X to close it | ||
<button invoketarget="my-dialog" invokeaction="close" aria-label="Close dialog">x</button> | ||
This is a dialog. Press the Close button (X) to close it | ||
</dialog> | ||
|
||
<div popover id="dialog-explainer"> | ||
|
@@ -75,7 +77,7 @@ <h1>InvokeTarget & InvokeAction</h1> | |
</select> | ||
|
||
<div popover id="select-explainer"> | ||
This button will open the select element, in browsers that support select.showPicker() | ||
This button will open the select element, in browsers that support <code>select.showPicker()</code> | ||
</div> | ||
<hr /> | ||
<button | ||
|
@@ -129,7 +131,7 @@ <h1>InvokeTarget & InvokeAction</h1> | |
<div popover id="my-video-fullscreen-explainer"> | ||
This button will cause the video to go into fullscreen | ||
</div> | ||
<video id="my-video" width="720"> | ||
<video id="my-video" width="100%" controls> | ||
<source | ||
src="http://commondatastorage.googleapis.com/gtv-videos-bucket/sample/BigBuckBunny.mp4" | ||
type="video/mp4" | ||
|