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).

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

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: 341 / 443
Version history: 6 change(s)
Referenced in: [show references]