Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask Java Expert


Home >> Java

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

Java, Programming

  • Category:- Java
  • Reference No.:- M92411370
  • Price:- $15

Priced at Now at $15, Verified Solution

Have any Question?


Related Questions in Java

Assessment socket programmingtaskwrite a java gui program

Assessment: Socket Programming Task Write a JAVA GUI program that would facilitate text chatting/exchanging between two or multiple computers over the network/internet, using the concept of JAVA socket programming. If yo ...

Fundamentals of operating systems and java

Fundamentals of Operating Systems and Java Programming Purpose of the assessment (with ULO Mapping) This assignment assesses the following Unit Learning Outcomes; students should be able to demonstrate their achievements ...

In relation to javaa what is constructor the purpose of

(In relation to Java) A. What is constructor? the purpose of default constructor? B. How do you get a copy of the object but not the reference of the object? C. What are static variables and instance variables? D. Compar ...

Assignment game prototypeoverviewfor this assessment task

Assignment: Game Prototype Overview For this assessment task you are expected to construct a prototype level/area as a "proof of concept" for the game that you have designed in Assignment 1. The prototype should function ...

Part a specification - robot simulationpart a

PART A Specification - Robot Simulation PART A Requirements To complete this assignment you will use the supplied eclipse project Robot P1/. It is already set up to execute a simple arm movement loop which you will build ...

Assessment -java program using array of Assessment -JAVA Program using array of objects

Assessment -JAVA Program using array of objects Objectives This assessment item relates to the course learning outcomes as stated in the Unit Profile. Details For this assignment, you are required to develop a Windowed G ...

Assignment taskwrite a java console application that allows

Assignment task Write a java console application that allows the user to read, validate, store, display, sort and search data such as flight departure city (String), flight number (integer), flight distance (integer), fl ...

Applied software engineering assignment 1 -learning

Applied Software Engineering Assignment 1 - Learning outcomes - 1. Understand the notion of software engineering and why it is important. 2. Analyse the risk factors associated with phases of the software development lif ...

Object-oriented software development1 introduction 11

OBJECT-ORIENTED SOFTWARE DEVELOPMENT 1. Introduction 1.1 Assignment Requirement 1.2 Deliverables and Structure (what to submit) 1.3 Software Restrictions 1.4 How to score high... 1.5 Assumptions 2. System Requirements 2. ...

Project requirementsfor the problem described in the next

Project requirements For the problem described in the next section, you must do the following: 1. include your student ID at the end of all filenames for all java code files. Three classes have been identified in section ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As