GithubHelp home page GithubHelp logo

jaime-gg / work-day-scheduler Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 840 KB

A simple daily planner that allows users to schedule new events throughout the week, allowing for data persistence using local storage.

CSS 14.28% HTML 48.64% JavaScript 37.08%
javascript localstorage planner

work-day-scheduler's Introduction

05 Third-Party APIs: Work Day Scheduler

I was given the task of developing a simple work day scheduler using HTML, CSS, and Javascript. Within that, I was prompted to use Bootstrap and jQuery, as well as implement Moments.js. With these given guidelines, I set out to recreate the application shown in the given Mock-Up. It was made all the easier thanks to the code that was provided to me at the beginning of this challenge. A particularly helpful thing was that the CSS file came nearly fully in-tact, including things such as the 'classes' and elements I should include in my HTML and JS.

Using this information, I was able to come up with the appropriate layout for the HTML using bootstrap grids. The rows and columns were established first, and then I linked it to my Javascript file. The first thing I did was to utilize moments.js to display the current time and date at the top of the page. Once I familiarized myself with using moments.js, I used it further in a function that sifted through the rows and added/removed classes depending on the time of day. It was this way that I completed the objective of labeling the rows as "past", "present", and "future".

Finally, I used the jQuery selector in combination with the '.on' event listener to save user input to the local storage, which would be pulled back to the appropriate location upon refreshing the page. Through these steps I was able to meet the acceptance criteria placed before me.

Given: User Story

AS AN employee with a busy schedule
I WANT to add important events to a daily planner
SO THAT I can manage my time effectively

Given: Acceptance Criteria

GIVEN I am using a daily planner to create a schedule
WHEN I open the planner
THEN the current day is displayed at the top of the calendar
WHEN I scroll down
THEN I am presented with timeblocks for standard business hours
WHEN I view the timeblocks for that day
THEN each timeblock is color coded to indicate whether it is in the past, present, or future
WHEN I click into a timeblock
THEN I can enter an event
WHEN I click the save button for that timeblock
THEN the text for that event is saved in local storage
WHEN I refresh the page
THEN the saved events persist

The following animation demonstrates the application functionality:

Work Day Scheduler app with color-coded time slots shows a new event being typed in the 5PM slot.

Review

This application was developed with a combination of HTML, CSS, and Javascript, with focus placed on third party API's such as jQuery.

The "Save" Icon was provided by fontawesome.com

I was also required to submit the following for review:


© 2021 Trilogy Education Services, LLC, a 2U, Inc. brand. Confidential and Proprietary. All Rights Reserved.

work-day-scheduler's People

Contributors

jaime-gg avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.