local storage存储可拖动待办事项管理系统代码
代码语言:html
所属分类:其他
代码描述:local storage存储可拖动待办事项管理系统代码
代码标签: local storage 存储 拖动 待办 事项 管理 系统
下面为部分代码预览,完整代码请点击下载或在bfwstudio webide中打开
<!DOCTYPE html>
<html lang="en" >
<head>
<meta charset="UTF-8">
<style>
:root {
--icon-options: #a4c75a;
--icon-options-clear: #9f9f9f;
--icon-opacity: #5972cb;
--icon-warning: #a02f1b;
--icon-board-full: #c5bc56;
--icon-board-bg: #a27dc2;
--icon-remove: #ff6347;
--icon-urgent: #ff8800;
--icon-new-task: #2a92bf;
--icon-total: #777777;
--icon-import-export: #607d8b;
--list-working: #ffc000;
--list-done: #00b91f;
--dark-color: #282828;
}
* {
box-sizing: border-box;
font-family: Arial, Helvetica, sans serif;
}
body {
margin: 0;
padding: 0;
height: 100vh;
}
.overlay-bg {
background:
radial-gradient(farthest-side at bottom left, var(--icon-board-bg), #fff0),
radial-gradient(farthest-side at top left, var(--list-working), #fff0),
radial-gradient(farthest-corner at bottom right, var(--icon-new-task), #fff0),
radial-gradient(farthest-corner at top right, var(--list-done), #fff0)
/*, var(--list-working)*/;
position: fixed;
width: 102%;
height: 100%;
background-size: cover;
background-position: center center;
}
.overlay-bg.mountain {
background-image: url(//repo.bfw.wiki/bfwrepo/image/5e3632bed9568.png);
background-position: center top;
}
.overlay-bg.climbing {
background-image: url(//repo.bfw.wiki/bfwrepo/image/5e323253cf4d2.png);
background-position: right top;
}
.overlay-bg.coast {
background-image: url(//repo.bfw.wiki/bfwrepo/image/5e5ef121633fa.png);
}
.overlay-bg.space {
background-image: url(//repo.bfw.wiki/bfwrepo/image/611da9b999795.png);
}
.overlay-bg.code {
background-image: url(//repo.bfw.wiki/bfwrepo/image/6171f56b4f166.png);
}
/* space */
/* https://images.nasa.gov/details-PIA08093 */
/* code */
/* https://www.itl.cat/wallview/iowhbwo_wallpaper-code-programming-symbols-strings-colorful-/ */
.overlay-bg:after {
content: " ";
position: absolute;
right: 2%;
bottom: 57px;
color: #0008;
font-size: 10px;
text-shadow: -1px -1px 0px #fff8;
width: 20em;
text-align: right;
padding-right: 1em;
filter: invert(1);
}
.overlay-bg.space:after {
content: "\00a9 \00a0 nasa.gov";
}
.overlay-bg.mountain:after,
.overlay-bg.climbing:after,
.overlay-bg.coast:after{
content: "\00a9 \00a0 cuadernodeescaladas.com";
}
.overlay-bg.code:after {
content: "\00a9 \00a0 itl.cat";
}
/*** HEADER START ***/
header {
padding: 12px 2%;
background: var(--dark-color);
height: 60px;
position: fixed;
width: 100%;
z-index: 1;
box-shadow: #00000030 0px 2px 6px, #00000040 0px 2px 6px;
}
/* title start */
h1 {
display: inline-block;
margin: 0px 0.75em 0 0;
font-weight: normal;
color: #ffffff;
font-size: 1.5em;
padding: 4px 0.625em 0 0;
border-right: 1px solid #000;
float: left;
position: relative;
background: linear-gradient(90deg, #fff0 calc(100% - 1px), #fff2 100%);
height: 1.5em;
}
h1 a {
color: #fff;
}
h1 a:hover {
color: var(--list-working);
}
h1 span {
float: left;
text-transform: uppercase;
position: relative;
}
h1 span:nth-child(1) {
font-size: 1.5em;
line-height: 0.725em;
}
h1 span:nth-child(2) {
font-size: 0.475em;
position: absolute;
left: 18px;
margin-top: -3px;
color: #ccc;
}
h1 span:nth-child(3) {
margin-left: -1px;
margin-top: -7px;
font-size: 1.05em;
top: 11px;
}
h1 span:nth-child(4) {
font-size: 0.425em;
margin-left: 0px;
top: 7px;
color: #999;
}
h1 span:nth-child(5) {
font-size: 0.62em;
font-weight: bold;
top: 16px;
left: -34px;
}
h1 span:nth-child(6) {
margin-left: -3.75em;
font-size: 0.365em;
margin-top: 17px;
color: var(--icon-total);
}
/* title end */
/* total tasks start */
#totalTask {
display: inline-block;
color: var(--dark-color);
font-size: 1.35em;
position: relative;
height: 1.65em;
float: left;
width: 1.65em;
text-align: center;
background: var(--icon-total);
margin-top: 0px;
line-height: 1.75em;
margin-right: 2.75em;
border-radius: 2px;
}
#totalTask:after {
content: "TOTAL TASKS";
font-size: 11px;
line-height: 1.25em;
position: absolute;
max-width: 5em;
right: -5em;
padding: 5px 0 0.45em 10px;
box-sizing: border-box;
color: var(--icon-total);
text-align: left;
}
#totalTask:hover, #totalTask:hover:after {
color: #fff;
}
/* total tasks end */
/*** buttons start ***/
#btns {
display: inline-block;
font-size: 1em;
padding-top: 0px;
height: 2.3em;
border-left: 1px solid #282828;
padding-left: 1.15em;
}
#btns:before {
content: "";
float: left;
left: 0;
width: 2px;
height: 100%;
background: linear-gradient(90deg, #fff1 0 1px, #000 0 2px);
margin-left: -1.2em;
}
#btns button {
cursor: pointer;
padding: 0.25em;
font-size: 1.5em;
color: var(--dark-color);
border: 0;
outline: none;
border-radius: 2px;
width: 1.5em;
height: 1.5em;
}
#addToDo {
background: var(--icon-new-task);
line-height: 0.75em;
}
.btnAdd, .btnUrg {
position: relative;
float: left;
padding-right: 3.35em;
border-right: 1px solid #000000;
margin-right: 1.2em;
background: linear-gradient(90deg, #fff0 calc(100% - 1px), #fff2 100%);
}
.btnUrg {
padding-right: 4.5em;
}
.btnAdd button:after {
margin-left: 7px;
width: 2.5em;
margin-top: -9px;
content: "NEW TASK";
font-size: 11px;
line-height: 1.2em;
color: var(--icon-new-task);
position: absolute;
padding-left: 10px;
text-align: left;
padding-top: 5px;
padding-bottom: 5px;
}
#btns button:hover, #btns button:hover:after {
color: #fff;
}
#btns .btnAdd:hover:after, #btns .btnUrg:hover:after {
color: #fff;
}
#addUrgent {
line-height: 0.75em;
background: radial-gradient(circle at 49% 72%, var(--dark-color) 0 6.5%, #fff0 8.5% 100%), var(--icon-urgent);
}
.btnUrg button:after {
color: var(--icon-urgent);
margin-left: 12px;
width: 4.5em;
margin-top: -9px;
font-size: 11px;
line-height: 13px;
content: "CREATE URGENT";
position: absolute;
padding-left: 10px;
text-align: left;
padding-top: 5px;
padding-bottom: 5px;
}
.btnUrg.active button:after {
content: "REMOVE URGENT";
}
#addUrgent:before /*.btnUrg:before*/ {
content: "";
background: transparent;
float: left;
width: 3px;
position: absolute;
height: 3px;
border-top: 15px solid var(--dark-color);
border-left: 1px solid transparent;
border-right: 1px solid transparent;
top: 7px;
border-radius: 21px;
left: 15px;
}
.btnUrg:after {
float: left;
width: 5px;
height: 6px;
background: var(--dark-color);
left: 16px;
content: "";
position: absolute;
top: 23px;
border-radius: 100%;
display: none;
}
#addUrgent:hover::before {
border-top-color: #fff;
}
/*
.btnUrg:hover::after {
background: #fff;
}
*/
#addUrgent:hover {
background: radial-gradient(circle at 49% 72%, #fff 0 6.5%, #fff0 8.5% 100%), var(--icon-urgent);
}
#deleteItem {
display: inline-block;
background: var(--icon-remove);
height: 1.5em;
color: #fff;
border: 2px dashed rgba(0,0,0,0.1);
border-radius: 2px;
width: 1.5em;
position: relative;
font-size: 1.5em;
}
#deleteItem:before {
position: absolute;
left: 34px;
width: 107px;
top: -2px;
content: "DROP TO REMOVE";
font-size: 11px;
cursor: alias;
color: var(--icon-total);
padding-left: 8px;
padding-top: 5px;
}
#deleteItem:after {
content: "CLICK TO EMPTY";
position: absolute;
width: 108px;
font-size: 11px;
border-radius: 1px;
left: 34px;
color: var(--icon-remove);
padding-left: 7px;
top: 13px;
cursor: pointer;
padding-top: 4px;
padding-bottom: 4px;
}
#deleteItem:hover:before {
color: #ffffff;
}
#deleteItem ul {
margin: 0;
position: relative;
z-index: 1;
padding: 0.5em;
height: 100%;
cursor: pointer;
}
#deleteItem ul:before {
width: 12px;
height: 15px;
top: 11px;
left: 10px;
background: var(--dark-color);
content: "";
position: absolute;
border-radius: 0 0 2px 2px;
}
#deleteItem ul:after {
border-bottom: 3px solid var(--dark-color);
width: 14px;
position: absolute;
left: 9px;
line-height: 1em;
top: -8px;
color: var(--dark-color);
content: "-";
padding-bottom: 3px;
height: 12px;
text-align: center;
text-indent: -1px;
}
#deleteItem:hover ul:before {
background: #fff;
}
#deleteItem:hover ul:after {
border-bottom: 3px solid #ffffff;
color: #ffffff;
}
#deleteItem #delete-list.drag-enter {
border-radius: 2px;
background: #ffffff;
z-index: 0;
}
#deleteItem #delete-list.drag-enter:before {
background: var(--icon-remove);
}
#deleteItem #delete-list.drag-enter:after {
border-bottom: 3px solid var(--icon-remove);
color: var(--icon-remove);
}
/* buttons end */
/*** OPTIONS ***/
.options {
right: -276px;
float: right;
padding-left: 20px;
/*border-left: 1px solid #282828;*/
height: 37px;
width: 350px;
position: absolute;
top: 12px;
transition: right 0.5s ease 0s;
}
.options:before {
content: "";
float: left;
width: 2px;
height: calc(100% - 1px);
background: linear-gradient(90deg, #fff1 0 1px, #000 0 2px);
margin-left: -1.3em;
}
.options.opened {
right: 0;
transition: right 0.5s ease 0s;
}
.options button {
padding: 0;
}
/* options toggle */
#toggleOptions {
display: inline-block;
width: 36px;
height: 36px;
background: red;
border-radius: 2px;
margin-right: 18px;
float: left;
}
#btnOptions {
float: left;
width: 100%;
height: 100%;
border: 0;
outline: none;
border-radius: 2px;
background: var(--icon-options);
position: relative;
cursor: pointer;
}
#btnOptions:before {
left: 5px;
top: 7px;
background:
linear-gradient(transparent 0, transparent 2px, var(--dark-color) 2px, var(--dark-color) 4px,transparent 4px,transparent 10px, var(--dark-color) 10px, var(--dark-color) 12px, transparent 12px, transparent 18px, var(--dark-color) 18px, var(--dark-color) 20px, transparent 20px, transparent 100%);
width: 26px;
height: 22px;
content: "";
float: left;
position: absolute;
content: "●";
font-size: 16px;
color: var(--dark-color);
text-align: right;
line-height: 21px;
}
#btnOptions:after {
float: left;
margin-left: -13px;
top: 4px;
width: 25px;
height: 35px;
line-height: 16px;
color: var(--dark-color);
font-size: 16px;
text-indent: 4px;
transform: rotate(0deg);
letter-spacing: 0px;
content: "●● ●";
position: absolute;
content: "● ●";
text-align: left;
margin-top: -3px;
padding-left: 1px;
}
.options #btnOptions:hover:before {
background: linear-gradient(transparent 0, transparent 2px, #ffffff 2px, #ffffff 4px,transparent 4px,transparent 10px, #ffffff 10px, #ffffff 12px, transparent 12px, transparent 18px, #ffffff 18px, #ffffff 20px, transparent 20px, transparent 100%);
color: #fff;
}
.options #btnOptions:hover:after {
color: #ffffff;
}
/* bg image */
.imageBg {
display: inline-block;
margin-right: 18px;
position: relative;
float: left;
}
.imageBg:hover:after, .imageBg:hover #boardBg:before, .imageBg:hover #boardBg:after {
color: #fff;
border-bottom-color: #fff;
}
.imageBg:hover .bgs {
max-height: 166px;
transition: max-height 0.5s ease 0s;
}
#boardBg {
background: var(--icon-board-bg);
border-radius: 2px;
height: 36px;
display: block;
width: 36px;
font-size: 0.85em;
float: right;
font-weight: bold;
line-height: 1.5em;
color: var(--dark-color);
cursor: pointer;
outline: none;
border: 0;
position: relative;
margin-left: 1px;
}
#boardBg:before {
border: 9px solid transparent;
border-bottom: 12px solid var(--dark-color);
position: absolute;
left: 5px;
margin-top: -25px;
content: "\25CF";
width: 0;
text-indent: 5px;
height: 1em;
}
#boardBg:after {
content: "";
border: 8px solid transparent;
border-bottom-color: var(--dark-color);
position: absolute;
left: 15px;
margin-top: -6px;
}
.bgs {
font-size: 11px;
max-height: 0;
text-align: center;
padding: 0;
max-height: 0;
height: 166px;
transition: max-height 0.5s ease 0s;
margin-left: -22px;
position: absolute;
overflow: hidden;
top: 37px;
width: 80px;
position: absolute;
background: var(--dark-color);
border-top: 10px solid var(--dark-color);
border-radius: 0 0 2px 2px;
}
.bgs > div {
color: #fff;
margin: 5px 0;
}
.bgs span {
background: #444444;
display: block;
margin: 5px;
padding: 1px 5px;
border-radius: 2px;
cursor: pointer;
color: #7d7d7d;
}
.bgs span:hover, .bgs span.selected {
background: var(--icon-board-bg);
color: #fff;
}
/* range styles */
input[type='range']:focus {
outline: none;
}
input[type='range'],
input[type='range']::-webkit-slider-runnable-track,
input[type='range']::-webkit-slider-thumb {
-webkit-appearance: none;
}
input[type=range]::-webkit-slider-thumb {
background-color: var(--icon-opacity);
width: 20px;
height: 20px;
border: 3px solid var(--dark-color);
border-radius: 50%;
margin-top: -9px;
}
input[type=range]::-moz-range-thumb {
background-color: var(--icon-total);
width: 15px;
height: 15px;
border: 3px solid var(--dark-color);
border-radius: 50%;
}
input[type=range]::-ms-thumb {
background-color: var(--icon-total);
width: 20px;
height: 20px;
border: 3px solid var(--dark-color);
border-radius: 50%;
}
input[type=range]::-webkit-slider-runnable-track {
background-color: var(--icon-total);
height: 3px;
}
input[type=range]:focus::-webkit-slider-runnable-track {
outline: none;
}
input[type=range]::-moz-range-track {
background-color: var(--icon-total);
height: 3px;
}
input[type=range]::-ms-track {
background-color: var(--icon-total);
height: 3px;
}
input[type=range]::-ms-fill-lower {
background-color: var(--icon-remove)
}
input[type=range]::-ms-fill-upper {
background-color: black;
}
#byUrl {
position: relative;
top: -22px;
display: none;
}
#byUrl input {
width: 47px;
float: left;
border: 0;
margin-left: 5px;
border-radius: 2px 0 0 2px;
outline: none;
font-size: 10px;
height: 17px;
}
#byUrl input:focus {
background: var(--dark-color);
color: #fff;
}
#byUrl button {
width: 23px;
text-align: center;
padding: 0;
font-size: 11px;
height: 17px;
border: 0;
outline: none;
float: left;
border-radius: 0 2px 2px 0;
background: var(--icon-board-bg);
color: #fff;
line-height: 10px;
border-left: 2px solid var(--dark-color);
cursor: pointer;
}
/* full height */
.boardHeight {
display: inline-block;
margin-right: 18px;
float: left;
}
#boardFull {
background: var(--icon-board-full);
border-radius: 2px;
height: 36.........完整代码请登录后点击上方下载按钮下载查看
















网友评论0