Coder Social home page Coder Social logo

lightlessdays / day_planner Goto Github PK

View Code? Open in Web Editor NEW

This project forked from nick75mowbray/day_planner

0.0 0.0 0.0 437 KB

Day planner website that uses local storage to save events and moment.js to calculate the current time and day.

Home Page: https://nick75mowbray.github.io/day_planner/

JavaScript 40.33% CSS 26.79% HTML 32.88%

day_planner's Introduction

Day Planner

Overview

This is a website that uses jquery, moment.js and local storage to create a day planner. screenshot of main page Click here to go to site

Features

Display of current day and time.
Current time indicator that changes position on the page depending on the time.
Information entered by the user is stored in local storage.

Screenshots

screenshot of site on mobile scrrenshot of the pop-up form

How it works

The day and time are fetched using moment.js and updated every second using setInterval to ensure the correct time displayed without the user re-freshing the page.
The timeblocks are styled differently using classes for past, present and future and applied to the time block depending on the current hour and the value assigned to the time block, eg 9am to 10am has a value of 9, so when the hour is equal to 9 a class of present is applied to that time block.
There is a line that moves down the page that represents the current time and its position corresponds to the timelegends on the side of the page.
The current time line gets its position on the page by calculating the pixels from the top of the page based on the current hour and minutes.
The event data (event title and event description) is stored as a JSON object in local storage, and retrieved when the page is loaded or the user updates the information for an event.

day_planner's People

Contributors

nick75mowbray 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.