static S hEmbedYoutube(S youtubeID) { ret hEmbedYoutube(youtubeID, 300, 250); } // text is HTML actually static S hEmbedYoutube(S youtubeID, int w, int h, S text) { ret hEmbedYoutube(youtubeID, w, h).replace("View on YouTube", text); } static S hEmbedYoutube(S youtubeID, int w, int h) { youtubeID = extractYouTubeID(youtubeID); ret "<object width=\"" + w + "\" height=\"" + h +"\"><param value=\"https://www.youtube.com/v/{*}&showsearch=0&rel=0&fs=1&autoplay=0&ap=%2526fmt%3D18\" name=\"movie\" /><param value=\"window\" name=\"wmode\" /><param value=\"true\" name=\"allowFullScreen\" /><embed width=\"" + w + "\" height=\"" + h + "\" wmode=\"window\" allowfullscreen=\"true\" type=\"application/x-shockwave-flash\" src=\"https://www.youtube.com/v/{*}&showsearch=0&fs=1&rel=0&autoplay=0&ap=%2526fmt%3D18\"></embed></object><br /><a href=\"https://www.youtube.com/watch?v={*}\" target=\"_blank\">View on YouTube</a>".replace("{*}", youtubeID); }
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, ddnzoavkxhuk, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1003198 |
Snippet name: | hEmbedYoutube |
Eternal ID of this version: | #1003198/5 |
Text MD5: | 17de156fc7e7878ca079c0a8ab5e8340 |
Author: | stefan |
Category: | javax |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2018-04-23 22:55:47 |
Source code size: | 975 bytes / 13 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 614 / 879 |
Version history: | 4 change(s) |
Referenced in: | [show references] |