Difference between revisions of "Team:UCLA/Journal Formatter"

Line 2: Line 2:
 
<html>
 
<html>
 
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
 
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
 +
<script>
 +
jQuery(document).ready(function($){
 +
$('#week-submit').on('click', function(){
 +
var weekNum = $('#week-number').val();
 +
var title = $('#title').val();
 +
var description = $('#description').val();
 +
 +
var output = '<div class="week-entry">\n  <div class="row week-header" id="cdi-week-' + weekNum + '-header">\n    <div class="columns small-2 week-number">\n      <span>Week</span>\n      <p>' + weekNum + '</p>\n    </div>\n    <div class="columns small-10">\n      <h4>' + title + '</h4>\n      <p>' + description + '</p>\n    </div>\n  </div>\n  <div class="row week-content" id="cdi-week-' + weekNum + '-header">\n  </div>\n</div>'
 +
 +
$('#output').val(output);
 +
 +
 +
});
 +
 +
});
 +
</script>
 +
 
<style>p{text-align: left !important;}button{margin-left: 30px;}</style>
 
<style>p{text-align: left !important;}button{margin-left: 30px;}</style>
 
Input of day entry in here:
 
Input of day entry in here:
 
<textarea rows="30" columns="100" id="text-editor"></textarea>
 
<textarea rows="30" columns="100" id="text-editor"></textarea>
 
<br>
 
<br>
 +
CDI Team: <input type="radio" name="team" value="cdi"> PCage Team: <input type="radio" name="team" value="pcage">
  
 
Title of day or week entry here:
 
Title of day or week entry here:

Revision as of 05:20, 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: