Created
November 18, 2015 17:37
-
-
Save mirko77/33909e48dbd888a95748 to your computer and use it in GitHub Desktop.
Multiline js (for HTML output)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//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