Skip to content

Commit

Permalink
Add files to demo #54 and share them with the Safari team
Browse files Browse the repository at this point in the history
  • Loading branch information
mshibanami committed Sep 10, 2024
1 parent ec5c2da commit 5f0f4b9
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
23 changes: 23 additions & 0 deletions docs/misc/test.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<!DOCTYPE html>
<html lang="en">

<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<script type="module" src="test.js"></script>
<title>test</title>
</head>

<body>
<h1>This is test.html on GitHub Pages.</h1>

<p>
<button id="button1">[Button] Open yattee://watch?v=lrVT5VFfi5w</button>
</p>

<p>
<a href="yattee://watch?v=lrVT5VFfi5w">[Link] Open yattee://watch?v=lrVT5VFfi5w</a>
</p>
</body>

</html>
4 changes: 4 additions & 0 deletions docs/misc/test.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
document.getElementById('button1').addEventListener('click', function () {
const deepLinkURL = "yattee://watch?v=lrVT5VFfi5w";
window.open(deepLinkURL, '_self');
});

0 comments on commit 5f0f4b9

Please sign in to comment.