1 | static S embedYoutubeWithoutLink(S youtubeID) {
|
2 | ret embedYoutubeWithoutLink(youtubeID, 300, 250); |
3 | } |
4 | |
5 | static S embedYoutubeWithoutLink(S youtubeID, int w, int h) {
|
6 | youtubeID = extractYouTubeID(youtubeID); |
7 | 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>".replace("{*}", youtubeID);
|
8 | } |
Began life as a copy of #1003198
download show line numbers debug dex old transpilations
Travelled to 13 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1013735 |
| Snippet name: | embedYoutubeWithoutLink |
| Eternal ID of this version: | #1013735/2 |
| Text MD5: | 12b22e1df6b1b5a3ba1932b2ec5da9b8 |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX fragment (include) |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2018-02-08 04:56:16 |
| Source code size: | 750 bytes / 8 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 679 / 729 |
| Version history: | 1 change(s) |
| Referenced in: | [show references] |