일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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 |
- HTML
- 개발자
- MAC
- hover
- javascript
- SWIFT
- 비전공 개발자
- iPhone
- front-end
- 애니메이션
- ipad
- IOS
- jQuery
- 백엔드
- image
- iOS 개발자
- keyframes
- css3
- CSS
- effect
- html5
- 비전공자
- 프론트엔드
- php
- xcode
- 자바스크립트
- 풀스택
- Animation
- button
- react
- 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..