Create a tabbed application that tracks daily calorie intake. One tab should allow the user to enter calorie information for a given meal.
The other tab should display a list of daily totals. Clicking on a row should navigate the user to another list displaying all meals and values for the day. Each entry should contain the following:
- Food description
- Amount
- Calories
- Grams of fat
- Grams of protein
- Grams of carbohydrates
The business logic of the application should consist of one class called “DailyIntake” which should have a mutable array containing instances of a class called “MealInformation.” “DailyIntake” should also be able to calculate the totals for the day.
Include the ability to e-mail the list of daily totals to the user
Last Completed Projects
| topic title | academic level | Writer | delivered |
|---|
jQuery(document).ready(function($) { var currentPage = 1; // Initialize current page
function reloadLatestPosts() { // Perform AJAX request $.ajax({ url: lpr_ajax.ajax_url, type: 'post', data: { action: 'lpr_get_latest_posts', paged: currentPage // Send current page number to server }, success: function(response) { // Clear existing content of the container $('#lpr-posts-container').empty();
// Append new posts and fade in $('#lpr-posts-container').append(response).hide().fadeIn('slow');
// Increment current page for next pagination currentPage++; }, error: function(xhr, status, error) { console.error('AJAX request error:', error); } }); }
// Initially load latest posts reloadLatestPosts();
// Example of subsequent reloads setInterval(function() { reloadLatestPosts(); }, 7000); // Reload every 7 seconds });

