Libraryless. Click here for Pure Java version (2914L/18K).
1 | // design by Kriti Shankar Senapati |
2 | sS htitledSection(S title, O contents, O... params) { |
3 | S backgroundColor = "#fff"; // TODO: grab from params |
4 | S labelStyle = "width: auto; float: top; position: relative; top: -15px; left:15px; background-color: " + backgroundColor + "; font-size: 30px"; |
5 | |
6 | ret div( |
7 | htag label(b(" " + title + " "), style := labelStyle) |
8 | + p(contents, style := "padding-left: 15px"), |
9 | params_stylePlus("border: 2px solid", params); |
10 | } |
download show line numbers debug dex old transpilations
Travelled to 4 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, vouqrxazstgt
No comments. add comment
Snippet ID: | #1030187 |
Snippet name: | htitledSection - create titled section in HTML (like jSection) [not <section> tag] |
Eternal ID of this version: | #1030187/7 |
Text MD5: | f4344312db09c179de4e9a29b7f72767 |
Transpilation MD5: | d036ebdba429c16deaa47c6316982b02 |
Author: | stefan |
Category: | javax / html |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2020-11-13 10:46:30 |
Source code size: | 488 bytes / 10 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 192 / 273 |
Version history: | 6 change(s) |
Referenced in: | [show references] |