Skip to content

Commit 629da87

Browse files
"Added sample: javascript/playlist_updates.html"
1 parent f7c4309 commit 629da87

1 file changed

Lines changed: 27 additions & 0 deletions

File tree

javascript/playlist_updates.html

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
<!doctype html>
2+
<html>
3+
<head>
4+
<title>Playlist Updates</title>
5+
</head>
6+
<body>
7+
<div id="login-container" class="pre-auth">This application requires access to your YouTube account.
8+
Please <a href="#" id="login-link">authorize</a> to continue.
9+
</div>
10+
<div id="buttons">
11+
<button id="playlist-button" disabled onclick="createPlaylist()">Create a new Private Playlist</button>
12+
<br>
13+
<label>Current Playlist Id: <input id="playlist-id" value='' type="text"/></label>
14+
<br>
15+
<label>Video Id: <input id="video-id" value='GZG9G5txtaE' type="text"/></label><button onclick="addVideoToPlaylist()">Add to current playlist</button>
16+
</div>
17+
<h3>Playlist: <span id="playlist-title"></span></h3>
18+
<p id="playlist-description"></p>
19+
<div id="playlist-container">
20+
<span id="status">No Videos</span>
21+
</div>
22+
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.8.2/jquery.min.js"></script>
23+
<script src="auth.js"></script>
24+
<script src="playlist_updates.js"></script>
25+
<script src="https://apis.google.com/js/client.js?onload=googleApiClientReady"></script>
26+
</body>
27+
</html>

0 commit comments

Comments
 (0)