Make clone chrome. With the help of a nomad coder

Overview

clone_momentum

Make clone momentum. With the help of a nomad coder

https://taeminchoe.github.io/clone_momentum/

Description of each function

1. Login

  • Form태그 안에서 submit이벤트가 발생하면, 기본적으로 새로고침됩니다.
  • event.preventDefault()를 활용해 새로고침을 방지합니다.
  • LocalStorage를 활용해 username을 관리합니다.
  • password는 입력받지 않습니다.
  • 저장된 username이 있다면 "Hello [username]"을 보여줍니다.
  • 저장된 username이 없다면 username을 입력받는 Form을 보여줍니다.
  • 입력받는 Form과 문구는 hidden클래스로 렌더링 유무를 결정합니다.

2. Clock

  • Date()객체를 사용합니다.
  • Date객체에서 Hours, Minutes, Seconds값을 요청합니다.
  • 1자리수 값의 경우, String.padStart()메서드를 사용해 2자리로 변환해줍니다.
  • setInterver()메서드를 사용해 1초 간격으로 Date값을 갱신합니다.

3. Quotes

  • 사전에 n개의 명언들을 json형식으로 저장합니다.
  • Math.random()메서드를 사용해 명언 갯수만큼의 난수를 생성합니다.
  • 난수 값에 따라 랜덤으로 명언을 보여줍니다.

4. Weather

  • https://openweathermap.org/ 에서 api키를 발급 받습니다.
  • navigator.geolocation.getCurrentPosition API를 활용해 브라우저에서 lat, lon을 받습니다.
  • openweathermap서버에 lat, lon, api key를 보내 지역과 날씨 정보를 요청합니다.

5. To-Do List

  • LocalStorage을 활용합니다.
  • LocalStorage에서는 항상 문자열로 저장합니다.
  • Object와 같은 데이터를 저장하기 위해서는 JSON객체를 활용합니다.
  • JSON.stringify()은 오브젝트를 문자열로 변환해줍니다.
  • JSON.parse()은 문자열을 오브젝트로 변환해줍니다.
  • element 생성은 document.createElement([tag])를 사용합니다.
  • element 삭제는 Element.remove()를 사용합니다.

6. background image

  • Quotes와 같이 랜덤 난수를 활용합니다.
You might also like...

This is my portfolio GitHub clone website. The frontend is build using NextJS and TailwindCSS.

This is my portfolio GitHub clone website. The frontend is build using NextJS and TailwindCSS.

Github Clone Portfolio Website Tech Stack used: NextJS Tailwind CSS The contact form in this website is connected to Notion. If you want to integrate

Oct 5, 2022

🚀AI拟声: 5秒内克隆您的声音并生成任意语音内容 Clone a voice in 5 seconds to generate arbitrary speech in real-time

🚀AI拟声: 5秒内克隆您的声音并生成任意语音内容 Clone a voice in 5 seconds to generate arbitrary speech in real-time

English | 中文 Features 🌍 Chinese supported mandarin and tested with multiple datasets: aidatatang_200zh, magicdata, aishell3, and etc. 🤩 PyTorch work

Dec 29, 2022

Simply Netflix clone using ReactJS. It fetches the data from TMDB API

Simply Netflix clone using ReactJS. It fetches the data from TMDB API

NETFLIX CLONE This project is a simply front end clone of Netflix. It was created with React. It uses The MovieDB Api to search for movies and display

Dec 9, 2022

This is a Netflix clone where you can watch movies or series

This is a Netflix clone where you can watch movies or series

Netlfix Clone This is a Netflix clone where you can watch movies or series. Visit Now 🚀 Things I Implemented SignIn/SignUp Movie/Series Filter Watch

Dec 1, 2022

📄 UI clone from vercel old site (Using basic tools)

📄 UI clone from vercel old site (Using basic tools)

vercel old site A portfolio site, made using the latest technologies. In the construction of the site using Sass. Quality: 1) Benchmark test using a s

Mar 1, 2022

Netflix clone, React Advance, scrimba course

Netflix clone, React Advance, scrimba course

Final Project from React Advance in Scrimba, excellent and complex work, features like redirection, HOC's, Hooks, Firebase to authenticated, styled-components and more...

Feb 9, 2022

Flipkart Clone using MERN Stack with proper File Structure and also follow MVC architecture. You can view live app.

Flipkart Clone using MERN Stack with proper File Structure and also follow MVC architecture.  You can view live app.

Flipkart Clone MERN APP Dhaval Patel's Flipkart Clone is done with top-notch features for the entrepreneur startups like Flipkart. It has strong authe

Dec 29, 2022

🐦 A Twitter clone with Remix and Kontenbase

Writter A Twitter clone with Remix and Kontenbase. Styled with Chakra UI. Features What's implemented Landing page Authentication/Authorization Sign u

Jun 26, 2022
Owner
최태민(Taemin Choe)
최태민(Taemin Choe)
e-ONG, an authorial project, whose objective is to help ONGs to find people who need help or would like to help them

This project was bootstrapped with Create React App. Available Scripts In the project directory, you can run: npm start Runs the app in the developmen

Lucas Lima 2 Nov 11, 2022
A library for boolean aliases to help you make your code more confusing and make your coworkers hate you.

yup-nope A library for boolean aliases to help you make your code more confusing and make your coworkers hate you. Installation Using npm: npm install

Bence A. Tóth 4 Dec 10, 2022
LinkedIn-Clone - a LinkedIn clone with firebase, redux and styled components

Getting Started with Create React App This project was bootstrapped with Create React App. Available Scripts In the project directory, you can run: ya

Asher Price 1 Jan 3, 2022
Reddit Page CLONE using Angular! A repository to contribute at hacktoberfest 2022. Make sure to share love by giving it a star.🌟 Have a great day!

Reddit_tool Reddit Site CLONE using Angular, Springboot and Swagger OpenAI ! Introduction This project was developed with the following technologies:

Momo-Solaris8 4 Oct 20, 2022
🎨ansi escape code generator to help make colorful command line tools

ansicodes ?? ansi escape code generator to help make colorful command line tools i got tired of looking up ansi code tables when writing command line

Gabe Banks 53 Dec 17, 2022
pokedev.js is a tool make to help developers get info about a pokemon and use it in any project with ease.

pokedev.js pokedev.js is a tool make to help developers get info about a pokemon and use it in any project with ease. Quick Links pokedev.js Quick Lin

pokedev.js 4 Apr 4, 2022
A peroidic-table api built with Nodejs & Mongodb to help make frontend requests dealing with chemistry...

A peroidic-table api for frontend apps Usage Example (GET all elements) // GET /api/elements const ajio = require("ajio") ajio.baseUrl("https://apis-

John Daniels 3 May 24, 2022
Prisma is a next-generation object–relational mapper (ORM) that claims to help developers build faster and make fewer errors.

This is a Next.js project bootstrapped with create-next-app. Getting Started First, run the development server: npm run dev # or yarn dev Open http://

Rhodin Emmanuel Nagwere 1 Oct 8, 2022
why make apps to increase focus -- when you can make apps to reduce focus

impossifocus ?? What is this? ImpossiFocus will measure focus by reading your brainwaves -- and if you're in the zone, it'll ensure that changes with

Aleem Rehmtulla 10 Nov 30, 2022
Notes may contain grammatical errors and some wont make sense and will only make sense to me

This is my own notes containing all the information and knowledge I've gained during my studying sessions. The notes are all topics that relates to technology such as computers, software or programming.

null 126 Dec 15, 2022