Submission 02
Adding Date and Time, Dynamic Quotations, and a Product Slideshow
In this second submission you will enhance your website in the following ways:
You may have an alternate approach to handle the display of
your images and their labels on your home page, but here is one
suggestion: Place all the links to those images, and their
labels, in a separate HTML file in your resources
subdirectory, then include that file in the appropriate
location in your my_business.php
file, and use a
JavaScript script in your my_business.php
file to
perform the rotation (the "carousel effect", if you like).
In addition to all of the directories and files from version 1 of your website, this second version must also have the following additions/changes:
banner.html
file will have to be modified and
be renamed to banner.php
since it will be using some
PHP code to get for display the updated time and date from the
server via an AJAX communication with a server-side PHP script that
computes the current date and time.
document_head.html
file will have to be modified
to include your carousel.js
JavaScript script for handling
your rotating images on your home page.
images/products
subdirectory.
scripts
which will contain all PHP, JavaScript, and any other scripts
required for this and all subsequent versions of your website (for
example, a JavaScript script to be included for handling the image
carousel, a short PHP script to respond to AJAX requests for the
current time, and a PHP script to generate the daily random
quotations). If your website performs these actions in a manner
analogous to the way they are performed in version 2 of the Amazing
Stuff website, then the corresponding script files must have the
same names (carousel.js
, get_quote.php
,
and time.php
). If you pursue some alternative for one
or more of these tasks, then that alternative must be described
clearly and concisely in your readme.txt file and include the
name(s) of any alternate file(s) that your site uses. Note that the
sample website also has files quote_today.txt
and
images_and_labels.html
in the resources subdirectory,
which are critical to the way the quotes and the rotating images
are handled.
resources
which will contain the JSON file of quotations and (for this and
all subsequent versions of your website) any other files whose
content can reasonably be classified as a "resource" for your
website. Images also fall into this category, of course, but they
have their own special subdirectory. Think of the
resources
directory as the place to keep any file that
serves as some kind of "resource" for your website, but does not
have a "logical home" anywhere else on your site.
readme.txt
in the
root directory of your website. As before, this file is for the
convenience of the marker, and must contain either a statement that
your site is complete and functions according to the requirements,
or a list of things that you have not managed to complete and/or
get working. For this submission, this file must also contain a
brief description of how you achieved the daily random quotation
and the slide show. If you accomplished these tasks in the same way
as the sample website, just say so. If you used some other
approach, describe that approach briefly in such a way that the
marker will be able to confirm your approach by looking at your
website "behind the scenes".
Submit the required directories and files by placing copies of them
in the submission02
subdirectory of the
submissions
subdirectory in the
public_html
directory of your personal Linux account
u##
, where the xx
are the last two digits
in your Linux account username for this course.
Develop your required files in the directory
submissions/02
, and when you're finished, simply copy
the file to submissions/submission02
.
readme.txt
file in the document root
directory of the website, and does this file contain all the
required information?
resources
and scripts
), in addition to the ones from the
previous version of the website?
resources
subdirectory appear to contain
appropriate content (which may vary from account to account,
depending on what the readme.txt
file said about how
the daily quotation change was achieved, and how the slide show was
achieved, but it should contain at least the file of at least the
minimum number of quotations in JSON format?
scripts
subdirectory appear to contain
appropriate content (which may also vary, but should probably
already contain one or more JavaScript and PHP scripts, depending on
how things are being done)?
readme.txt
file adequately describe the
state of the website?