일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | |
7 | 8 | 9 | 10 | 11 | 12 | 13 |
14 | 15 | 16 | 17 | 18 | 19 | 20 |
21 | 22 | 23 | 24 | 25 | 26 | 27 |
28 | 29 | 30 | 31 |
- ipad
- 애니메이션
- CSS
- 풀스택
- effect
- iPhone
- 자바스크립트
- 비전공 개발자
- image
- front-end
- SWIFT
- MAC
- 개발자
- 비전공자
- html5
- keyframes
- iOS 개발자
- jQuery
- xcode
- 백엔드
- hover
- react
- HTML
- 프론트엔드
- button
- javascript
- php
- css3
- IOS
- Animation
- Today
- Total
목록Battery (2)
비전공자 개발일기
![](http://i1.daumcdn.net/thumb/C150x150/?fname=https://blog.kakaocdn.net/dn/QTZYG/btrTRFHZwIW/1Efj9C3MD7d0kbc8iQIAK1/img.png)
* { padding: 0; margin: 0; box-sizing: border-box; font-family: "Roboto Mono", monospace; } .container { position: absolute; transform: translate(-50%, -50%); top: 50%; left: 50%; } #battery { box-sizing: content-box; height: 7.8em; width: 17.5em; border: 0.6em solid #246aed; margin: auto; border-radius: 0.6em; position: relative; display: grid; place-items: center; } #battery:before { position:..
![](http://i1.daumcdn.net/thumb/C150x150/?fname=https://blog.kakaocdn.net/dn/cw9LEv/btrER3Esxh5/l7KCKyuLymuAMyKm2soFQ1/img.jpg)
Your battery Perctenage is I am Daily Make new content For You ,hope you like this post body { margin: 1rem; padding: 2rem; background-color: #eee; } .battry { font-size: 2rem; color: cornflowerblue; } const BattryLevel = document.querySelector(".battry"); navigator.getBattery().then(function (battery) { const level = battery.level; const status = level * 100 + "%"; BattryLevel.innerHTML = statu..