Spaces:
Running
Running
Download assets/ui/lock/interactive.html from u11310019/Web-Generator: direct link, hf CLI and curl.
- Browser
- Download file 3.05 kB
-
https://huggingface.co/spaces/u11310019/Web-Generator/resolve/main/assets/ui/lock/interactive.html
- Command line
-
hf download hf://spaces/u11310019/Web-Generator/assets/ui/lock/interactive.html
-
curl -L -o interactive.html https://huggingface.co/spaces/u11310019/Web-Generator/resolve/main/assets/ui/lock/interactive.html
3.05 kB
| <html lang="zh-Hant"> | |
| <head><meta http-equiv="Content-Security-Policy" content="default-src 'none'; script-src 'none'; style-src 'unsafe-inline'; img-src data:; connect-src 'none'; font-src 'none'; frame-src 'none'; worker-src 'none'; object-src 'none'; base-uri 'none'; form-action 'none'"><meta name="referrer" content="no-referrer"> | |
| <meta charset="UTF-8"> | |
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | |
| <title>鎖頭切換開關</title> | |
| <style> | |
| /* From Uiverse.io by vinodjangid07 */ | |
| #lock { | |
| display: none; | |
| } | |
| .lock-label { | |
| width: 45px; | |
| height: 45px; | |
| display: flex; | |
| align-items: center; | |
| justify-content: center; | |
| background-color: rgb(80, 80, 80); | |
| border-radius: 15px; | |
| cursor: pointer; | |
| transition: all 0.3s; | |
| } | |
| .lock-wrapper { | |
| width: fit-content; | |
| height: fit-content; | |
| display: flex; | |
| flex-direction: column; | |
| align-items: center; | |
| justify-content: center; | |
| transform: rotate(-10deg); | |
| } | |
| .shackle { | |
| background-color: transparent; | |
| height: 9px; | |
| width: 14px; | |
| border-top-right-radius: 10px; | |
| border-top-left-radius: 10px; | |
| border-top: 3px solid white; | |
| border-left: 3px solid white; | |
| border-right: 3px solid white; | |
| transition: all 0.3s; | |
| } | |
| .lock-body { | |
| width: 15px; | |
| } | |
| #lock:checked + .lock-label .lock-wrapper .shackle { | |
| transform: rotateY(150deg) translateX(3px); | |
| transform-origin: right; | |
| } | |
| #lock:checked + .lock-label { | |
| background-color: rgb(167, 71, 245); | |
| } | |
| .lock-label:active { | |
| transform: scale(0.9); | |
| } | |
| </style> | |
| <style> | |
| body { | |
| min-height: 100vh; | |
| display: flex; | |
| justify-content: center; | |
| align-items: center; | |
| background-color: #1e1e24; | |
| margin: 0; | |
| } | |
| </style> | |
| <style>.label .input,#lock,.checkbox-wrapper-35 .switch{display:block!important;position:absolute!important;width:1px!important;height:1px!important;opacity:0!important;clip-path:inset(50%)!important}label:has(input:focus-visible),input:focus-visible+label,button:focus-visible{outline:2px solid #a4bc78;outline-offset:6px}@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}</style></head> | |
| <body> | |
| <!-- From Uiverse.io by vinodjangid07 --> | |
| <input aria-label="開鎖切換" type="checkbox" id="lock" /> | |
| <label for="lock" class="lock-label"> | |
| <span class="lock-wrapper"> | |
| <span class="shackle"></span> | |
| <svg | |
| class="lock-body" | |
| viewBox="0 0 28 28" | |
| fill="none" | |
| xmlns="http://www.w3.org/2000/svg" | |
| > | |
| <path | |
| fill-rule="evenodd" | |
| clip-rule="evenodd" | |
| d="M0 5C0 2.23858 2.23858 0 5 0H23C25.7614 0 28 2.23858 28 5V23C28 25.7614 25.7614 28 23 28H5C2.23858 28 0 25.7614 0 23V5ZM16 13.2361C16.6137 12.6868 17 11.8885 17 11C17 9.34315 15.6569 8 14 8C12.3431 8 11 9.34315 11 11C11 11.8885 11.3863 12.6868 12 13.2361V18C12 19.1046 12.8954 20 14 20C15.1046 20 16 19.1046 16 18V13.2361Z" | |
| fill="white" | |
| ></path> | |
| </svg> | |
| </span> | |
| </label> | |
| </body> | |
| </html> | |