Skip to content

ubaig517/unit-pp-project-slack

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

57 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Calendar

Summary

The goal of this challenge is to create your own personal calendar. The content of your calendar can be accessed through the global variable schedule; use JavaScript, HTML, and CSS to render the content onto your page. You will be refactoring this calendar in the future, so don't worry about making it perfect the first time through.

The simplest example would be something like this (without much styling)

Learning Goals

  • Understand basic DOM manipulation with JavaScript

Getting Started

  1. After forking and cloning this repo (see the previous challenge's README.md if needed), run the following command in your terminal:
npm install

How do I test if my answer is correct?

There are no tests for this exercise. Visually inspect your index.html in the browser to verify your work.

Challenges

  1. Complete the challenge by adding code to client/main.js file:
  • The schedule is found in the global variable schedule which can be accessed as such:
console.log(schedule);

Take a look at what appears in your console; it might be helpful to write out how this data is structured and do a little whiteboarding on how you can convert this data model into something that users can see and interact with. Will you structure this using a table? A bunch of divs? An unordered list?

  1. No matter what you decide to use you will have to create HTML elements to hold your data from the schedule variable, check out MDN's documentation to find a method we can use to create different DOM Nodes.

  2. Once these DOM nodes are created, we need to attach them to the page (so they actually appear!) There are a bunch of cool methods we can use:

  • The following two commands will be instrumental:
document.body.appendChild(<custom node>);
document.createElement(<element type>);
  1. View your page by opening the index.html page in your browser. Style the page accordingly.

Extension Work

  1. Make it so that you can click through and see your data a week at a time!
  2. Integrate it so that you can click a button and it downloads the entry as something you can import into iCal!
  3. Allow people to click events and add them to their Google calendar!
  4. Allow users to edit events and change it on the page! (Investigate using localStorage to allow someone to save their own calendar)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published