Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/muchisx/miguelangel
https://github.com/muchisx/miguelangel
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/muchisx/miguelangel
- Owner: muchisx
- Created: 2019-08-13T23:51:37.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2023-09-25T18:59:49.000Z (about 1 year ago)
- Last Synced: 2023-09-26T07:20:57.077Z (about 1 year ago)
- Language: HTML
- Homepage: http://art.miguelangel.pro/
- Size: 21.5 MB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
Awesome Lists containing this project
README
var tag = document.createElement('script');
tag.src = "https://www.youtube.com/iframe_api";
var firstScriptTag = document.getElementsByTagName('script')[0];
firstScriptTag.parentNode.insertBefore(tag, firstScriptTag);var player;
function onYouTubeIframeAPIReady() {
player = new YT.Player('player', {
height: '100%',
width: '100%',
playerVars: { 'autoplay': 1, 'controls': 0, 'loop':1, 'playlist': 'PX9-us-1t4I', 'mute':1 ,'autohide':1, 'fs':1,'disablekb':1 },
videoId: 'PX9-us-1t4I',
events: {
'onReady': onPlayerReady,
}
});
}
function onPlayerReady(event) {
event.target.playVideo();
}
var done = false;
function onPlayerStateChange(event) {
if (event.data == YT.PlayerState.PLAYING && !done) {
setTimeout(stopVideo, 6000);
done = true;
}
}
function stopVideo() {
player.stopVideo();
player.playVideo();
}$('.ytp-large-play-button.ytp-button').trigger('click');
$(function() {
var video = $("#someVideo").get(0);fakeClick(function() {
player.playVideo();
});
});