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

8
LINES

< > BotCompany Repo | #1032432 // haudioWithControls

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

Libraryless. Click here for Pure Java version (4170L/24K).

sS haudioWithControls(S src, O... _) {
  S noAudioMsg = "Your browser doesn't seem to play audio.";
  if (oddL(_)) {
    noAudioMsg = strOrEmpty(first(_));
    _ = dropFirst(_);
  }
  ret htag audio(noAudioMsg, paramsPlus(_, +src, controls := true));
}

Author comment

Began life as a copy of #1009461

download  show line numbers  debug dex  old transpilations   

Travelled to 4 computer(s): bhatertpkbcr, mowyntqkapby, mqqgnosmbjvj, pyentgdyhuwx

No comments. add comment

Snippet ID: #1032432
Snippet name: haudioWithControls
Eternal ID of this version: #1032432/2
Text MD5: 846f0a38e4e0511d548e0f66156660f0
Transpilation MD5: 44b2f22480940fff4100964b171feb52
Author: stefan
Category: javax / html
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2021-09-22 00:56:09
Source code size: 259 bytes / 8 lines
Pitched / IR pitched: No / No
Views / Downloads: 75 / 117
Version history: 1 change(s)
Referenced in: [show references]