Skip to content

Instantly share code, notes, and snippets.

@mirko77
Created November 18, 2015 17:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mirko77/33909e48dbd888a95748 to your computer and use it in GitHub Desktop.
Save mirko77/33909e48dbd888a95748 to your computer and use it in GitHub Desktop.
Multiline js (for HTML output)
//add bottom border to last element only
if (index === group_input_labels.length - 1) {
HTML += '<div class="ui-block-a group-inputs-grid__label group-inputs-grid-bottom-border">';
HTML += '<div class="ui-bar ui-bar-e" style="height:60px">' + single_label.label + '</div>';
HTML += '</div>';
} else {
HTML += '<div class="ui-block-a group-inputs-grid__label">';
HTML += '<div class="ui-bar ui-bar-e" style="height:60px">' + single_label.label + '</div>';
HTML += '</div>';
}
//add bottom border to last element only
if (index === group_input_labels.length - 1) {
HTML += '<div class="ui-block-b group-inputs-grid__value group-inputs-grid-bottom-border">';
HTML += '<div class="ui-bar ui-bar-e" style="height:60px">' + single_label.value + '</div>';
HTML += '</div>';
} else {
HTML += '<div class="ui-block-b group-inputs-grid__value">';
HTML += '<div class="ui-bar ui-bar-e" style="height:60px">' + single_label.value + '</div>';
HTML += '</div>';
}
HTML += '</div>';
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment