Write the scripts to modify the page to customize

Assignment Help JAVA Programming
Reference no: EM131602657

JQuery assignment

Description:

For this lab, I have provided some starter files with an html page, a css stylesheet and an external JavaScript file that contains some arrays. Your job will be to write the scripts to modify the page to customize it based on the date. You will add and modify html, text, images and styles for the month and season. In order to test all the functionality, you may have to 'trick' the program during testing by entering a different month to see if the changes occur as expected.

Requirements:
Download the html, css and JavaScript files for this lesson.
Add a link to the jQuery library and the external JavaScript file to the html page.
In the JavaScript file, add the $(document).ready function to hold the code below
Get the current date.
Use a date function to get the current month and use it as an index to the months array to get the month name.
Use an if statement to see if the current month is December. If so, add an h3 tag below the h2 slogan tag that says "Happy Holidays!". (after method)
Modify the h3 tag with id='month' to include the current month name: i.e. "Tips for October" using the month name you retrieved from the current date.
Get the current year from the date and add it to the end of the copyright paragraph (append method).
Use the month number as an index to the specials array and modify the #specials div to display the text and html from the array.
Use a switch statement for the month number to identify the season and create some variables to use to modify the page:
Months 11, 0 and 1 (December, January, February)
season = 'Winter'
background image = 'winterbg.jpg'
season color = "#00f"
season index = 0
Months 2,3,4 (Mar-May)
season = 'Spring'
background image = 'springbg.jpg'
season color = "#d7d"
season index = 1
Months 5,6,7 (June-Aug):
season = 'Summer'
background image = 'summerbg.jpg'
season color = "#006400"
season index = 2
Months 8,9,10 (Sep-Nov)
season = 'Fall'
background image = 'fallbg.jpg'
season color = "#930"
season index = 3
Change the page background image to the seasonal image
Change the div with id=seasontips to the html and text in the tips array using the season index as the index
Change the strong, h1, h2 and h3 tags to the season color

Add a class to the 'specials' id using the season as the class name

Test to make sure the changes work as expected. You can enter a date when creating the Date object to try different seasons.

Attachment:- Assignment.rar

Reference no: EM131602657

Questions Cloud

How might the presence of gender bias in promotions impact : How might the presence of gender bias in promotions impact fire department? Is promotional status of recently promoted firefighters independent of their gender?
Developed economies need to grow all the time : Using the Solow growth model explain is the main reason ostensibly that developed economies need to grow all the time?
What are three symptoms of group meeting : What are three symptoms that you might observe in a final group meeting that might indicate that the group had been successful in achieving its primary purpose
The important social theory insights you gained : How might those potential correlations help you better understand and incorporate a broader variety of theories in your practice?
Write the scripts to modify the page to customize : Write the scripts to modify the page to customize it based on the date. You will add and modify html, text, images and styles for the month and season.
How would you measure productivity in the workplace : What is the nature of managerial work? How would you measure productivity in the workplace? What would you do to raise moral in your organization?
Problem related to the hershey sales : The world's population2 is about f(t) = 6.91e0.011t billion, where t is time in years since 2010. Find f(0), f' (0), f(10), and f'(10).
Expand business operations to your neighboring state : Assignment: Recruiting Staff at the new Office- Your organization is planning to expand business operations to your neighboring state by opening an office.
Compare the two different stories presented in the video : Compare the two different stories presented in the video, What are some of the major issues that teenagers face

Reviews

Write a Review

JAVA Programming Questions & Answers

  Recursive factorial program

Write a class Array that encapsulates an array and provides bounds-checked access. Create a recursive factorial program that prompts the user for an integer N and writes out a series of equations representing the calculation of N!.

  Hunt the wumpus game

Reprot on Hunt the Wumpus Game has Source Code listing, screen captures and UML design here and also, may include Javadoc source here.

  Create a gui interface

Create GUI Interface in java programing with these function: Sort by last name and print all employees info, Sort by job title and print all employees info, Sort by weekly salary and print all employees info, search by job title and print that emp..

  Plot pois on a graph

Write a JAVA program that would get the locations of all the POIs from the file and plot them on a map.

  Write a university grading system in java

University grading system maintains number of tables to store, retrieve and manipulate student marks. Write a JAVA program that would simulate a number of cars.

  Wolves and sheep: design a game

This project is designed a game in java. you choose whether you'd like to write a wolf or a sheep agent. Then, you are assigned to either a "sheep" or a "wolf" team.

  Build a graphical user interface for displaying the image

Build a graphical user interface for displaying the image groups (= cluster) in JMJRST. Design and implement using a Swing interface.

  Determine the day of the week for new year''s day

This assignment contains a java project. Project evaluates the day of the week for New Year's Day.

  Write a java windowed application

Write a Java windowed application to do online quiz on general knowledge and the application also displays the quiz result.

  Input pairs of natural numbers

Java program to input pairs of natural numbers.

  Create classes implement java interface

Interface that contains a generic type. Create two classes that implement this interface.

  Java class, array, link list , generic class

These 14 questions covers java class, Array, link list , generic class.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd