Code Monkey home page Code Monkey logo

todolist's Introduction

todoList

TodoList 代办清单-同济大学 Web Programming 期末作业。

功能:

  1. 包含新增、删除、展现列表、全部完成/取消、删除已完成 2. 保存页面状态,刷新页面后可恢复;

附加功能:

  1. 编辑单条 todo 2. 设置截止时间 3. 根据时间排序列出todo安排

image-20210626094808144

部署地址:https://hengqu4.github.io/todoList/

Item列表

增加Item

点击按钮Add new Item

image-20210626101252086

输入Item的名称和截止日期,点击确定按钮

image-20210626101228192

image-20210626101237328

删除Item

点击item右侧的x

image-20210626101200704

image-20210626101212841

编辑Item

点击item的名称或者截止日期进行修改,即白色区域

image-20210626101147026

完成Item

点击item左侧的蓝色小方块

image-20210626101133602

image-20210626101122856

Item整体操作

全部完成

点击顶部操作栏的第一个icon

image-20210626101343409

可以看到所有item呈现完成状态

image-20210626101410657

全部取消

再次点击顶部操作栏的第一个icon

image-20210626101440741

将会全部取消

image-20210626101455702

如果item没有全部完成,按钮将表现为全部勾选完成;

如果item已经全部完成,按钮将表现为全部取消。

清空列表

点击顶部操作栏第二个按钮

image-20210626102040283

将会清空item列表

image-20210626102048220

删除已完成

点击顶部操作栏第三个按钮

image-20210626101856129

将会删除已完成的item,在本样例中为2和4

image-20210626101931018

Item过滤

All

点击底部栏左侧的第一个按钮,将会显示所有Item,包括已经完成的和正在进行的。

在本例中为1、2、3、4、5。

image-20210626102336588

Completed

点击底部栏左侧的第二个按钮,将会显示所有已经完成的Item。

在本例中为3、4。

image-20210626102433364

Active

点击底部栏左侧的第三个按钮,将会显示所有进行中的Item。

在本例中为1、2、5。

image-20210626102511459

Item 排序

时间排序

从前文的图片可以看出,程序对item的时间进行了排序。

这更贴近使用者的真实心理情况,即通常情况下更倾向于去做截止日期更前的待办事项。

image-20210626103012626

事项排序

同时,使用者更关注于未完成的事项。

如果一个item事项已经被完成,这时将会把它的顺序移到列表后方。

程序的综合排序风格结合了 时间是否完成 两者进行排序。

在本样例中,事项1和4的时间虽然较前,但是已经完成,所以将被放置到末尾。

image-20210626103422402

Item搜索

在顶部操作栏输入关键字,点击右侧搜索icon

image-20210626120851016

按下搜索按钮,出现列表结果:

在本样例中,输入关键字2,经过匹配得到的Item有2211232,结果正确。

image-20210626120832570

Item风格

超时Item

当已经超出事项的截止日期,而该事项仍未被完成,此时需要强调该超时事项item。

程序使用加红日期,以达到强调的效果。

在本样例中,当前时间2021-06-25,均超出事项0和事项3的截止日期。

image-20210626103913513

主题风格

在顶部操作栏右上角有3个颜色方框,分别表示了3种不同的主题风格。

初始默认灰色风格。

image-20210626104120480

点击蓝色主题,页面将切换为蓝色主调。

image-20210626104146604

页面总览

image-20210626121117627

image-20210626121141570

image-20210626121243327

todolist's People

Contributors

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