Entering boot camp....assist in studing.

Cancelado Postado há 3 anos Pago na entrega
Cancelado Pago na entrega

Use function declaration to create a function called startUp.

Use function declaration to create a function called getMovies that will take no parameters.

The getMovies function should return an array of 5 objects. Each one of the objects should have the properties

id

title

genre

year

mainImage

The following properties should be numbers:

id

year

For the rest of the properties assign any string value you like. If you want to display images later make sure the values of mainImage point to an image.

Section 2 : (Display array on console)

Use function declaration to create a function called wireHandlers. The startUp function should register all event handlers needed on this page by calling the wireHandlers function.

Create an event handler for the showMovies button:

Use function declaration to create a function called onShowMovies. This function should be invoked upon clicking the showMovies button.

The function onShowMovies should contain a parameter named e and the function should stop the default behaviour of the button.

Inside of onShowMovies invoke function getMovies and store the array the function returns into a local variable called movies

Log to the console the entire array movies. (Use Just 1 execution call to the log function)

Section 3 : (Display and remove objects from the DOM)

Use function declaration to create a function called getTemplate. This function:

Should get the html from the template provided with id movieTemplate and return it as a JQuery object.

The HTML template snippet is already provided on page

Use function declaration to create a function called renderMovies.

The function should contain a parameter named moviesArr.

Function renderMovies should loop through an array similar to movies while getting the template provided by calling getTemplate and display in the DOM inside of the element with class clone-container.

If you are thinking about using the .html or .text function. Do not use the .html function. Instead, use the .text function.

Invoke the function renderMovies and pass the array movies inside of the function onShowMovies. This should display the movies on the page!

Create an event handler for the Empty Movies button:

Use function declaration to create a function called emptyAllMovies. This function should be invoked upon clicking the Empty Movies button.

The function emptyMovies should remove all of the templates without removing the element with class clone-container.

Create an event handler for the Delete button(s):

There is a Delete button within the template. So this should apply to any of those delete buttons.

Use function declaration to create a function called onDeleteMovie. This function should be invoked upon clicking the Delete button of each one of the movie templates.

The function onDeleteMovie should remove the movie template for which the Delete button was clicked from the DOM.

JavaScript PHP Programação C# Arquitetura de software HTML

ID do Projeto: #24796930

Sobre o projeto

4 propostas Projeto remoto Ativo em há 3 anos

4 freelancers estão ofertando em média $155 nesse trabalho

superbpartner

Hi,dear. I am very interested in your project - 'Entering boot camp....assist in studing.'. I've already done this kind of project before. I'm a professional programmer with 12 years of experience. If you award me, I'l Mais

$155 USD em 1 dia
(21 Comentários)
5.1
dmitriysenkojob

I have worked with c#, jquery and html/css for 2 years at work. There is nothing complicated in your task, I can help you.

$75 USD em 1 dia
(7 Comentários)
2.7