Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

8
LINES

< > BotCompany Repo | #1009461 // haudioAutoplay

JavaX fragment (include) [tags: use-pretranspiled]

Libraryless. Click here for Pure Java version (3481L/19K).

1  
static S haudioAutoplay(S src, O... _) {
2  
  S noAudioMsg = "Your browser doesn't seem to play audio.";
3  
  if (odd(l(_))) {
4  
    noAudioMsg = strOrEmpty(first(_));
5  
    _ = dropFirst(_);
6  
  }
7  
  ret htag audio(noAudioMsg, paramsPlus(_, +src, autoplay := true));
8  
}

download  show line numbers  debug dex  old transpilations   

Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mowyntqkapby, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1009461
Snippet name: haudioAutoplay
Eternal ID of this version: #1009461/7
Text MD5: 3d7bde6e66240a00af04454519b22a1c
Transpilation MD5: b832c782b015f8f851e33c5e08f3c0cd
Author: stefan
Category: javax / html
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-08-27 09:04:50
Source code size: 263 bytes / 8 lines
Pitched / IR pitched: No / No
Views / Downloads: 417 / 542
Version history: 6 change(s)
Referenced in: [show references]