Line 21: | Line 21: | ||
var entry = $('#text-editor').val(); | var entry = $('#text-editor').val(); | ||
− | var output = ' <div class="row day-entry">\n <div class="columns small-2 small-offset-1 day-date">\n <span>' + month + '</span>\n <p>' + dayNum +'</p>\n </div>\n <div class="columns small-9">\n <h5>' + title + '</h5>\n <p>' + | + | jQuery.each(entry.split('\n'), function(i, v){ |
+ | var line = ""; | ||
+ | if(i != 0) {line += "\n"} | ||
+ | line += " "; | ||
+ | line += v; | ||
+ | entryOutput += line; | ||
+ | }); | ||
+ | |||
+ | var output = ' <div class="row day-entry">\n <div class="columns small-2 small-offset-1 day-date">\n <span>' + month + '</span>\n <p>' + dayNum +'</p>\n </div>\n <div class="columns small-9">\n <h5>' + title + '</h5>\n <p>' + entryOutput + '</p>\n </div>\n </div>' | ||
$('#output').val(output); | $('#output').val(output); |
Revision as of 05:35, 5 August 2016
Input of day entry in here:
CDI Team: PCage Team:
Title of day or week entry here:
Description of week entry here:
Week Number:
Month: Day Number:
Copy and Paste This: