#codevember 06 - Casio C-80

Developer
Size
5,703 Kb
Views
16,192

How do I make an #codevember 06 - casio c-80?

What is a #codevember 06 - casio c-80? How do you make a #codevember 06 - casio c-80? This script and codes were developed by Devin on 22 November 2022, Tuesday.

#codevember 06 - Casio C-80 Previews

#codevember 06 - Casio C-80 - Script Codes HTML Codes

<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>#codevember 06 - Casio C-80</title> <link href="https://fonts.googleapis.com/css?family=Share+Tech+Mono" rel="stylesheet"> <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/5.0.0/normalize.min.css"> <link rel="stylesheet" href="css/style.css">
</head>
<body> <div class="container"> <div class="watch-band top"></div> <div class="watch-frame"> <div class="left-operations"> <li class="operation"> <button class="time_btn"></button> <span>W</span> </li> <li class="operation"> <button class="calc_btn"></button> <span>C</span> </li> </div> <div class="watch"> <div class="screen-frame"> <div class="frame-header"> <li>CASIO</li> <li>C-80</li> </div> <div class="week-days"> <li>SU</li> <li>MO</li> <li>TU</li> <li>WE</li> <li>TH</li> <li>FR</li> <li>SA</li> </div> <div class="left-instructions"> <li>Light</li> <li>Mode</li> </div> <div class="screen"> <div class="day"></div> <div class="pm"></div> <div class="main"></div> </div> <div class="right-instructions"> <li>Start</li> <li>Stop</li> <li>Reset</li> </div> </div> <div class="buttons"> <div class="row"> <li onClick="input(7)">7<button></button></li> <li onClick="input(8)">8<button></button></li> <li onClick="input(9)">9<button></button></li> <li onClick="input(0)">0<button></button></li> </div> <div class="row"> <li onClick="input(4)">4<button></button></li> <li onClick="input(5)">5<button></button></li> <li onClick="input(6)">6<button></button></li> <li onClick="input('.')">.&nbsp;<button></button></li> </div> <div class="row"> <li onClick="input(1)">1<button></button></li> <li onClick="input(2)">2<button></button></li> <li onClick="input(3)">3<button></button></li> <li onClick="input('+')">+<button></button></li> </div> </div> </div> <div class="right-operations"> <li class="operation" onClick="input('/')"><span>÷</span><button></button></li> <li class="operation" onClick="input('*')"><span>x</span><button></button></li> <li class="operation" onClick="input('-')"><span>-</span><button></button></li> <li class="operation" onClick="solve()"><span>=</span><button></button></li> </div> </div> <div class="watch-band bottom"></div>
</div> <script src="js/index.js"></script>
</body>
</html>

#codevember 06 - Casio C-80 - Script Codes CSS Codes

html { background: #4e92a5;
}
.container { align-items: center; background-size: 300px; background-position: center; display: flex; flex-flow: column wrap; font-family: sans-serif; height: calc(100vh - 16px); min-height: 300px; justify-content: center; position: relative; z-index: 0;
}
.container button { cursor: pointer;
}
.watch-band { background: #0a0d0c; height: 40px; width: 130px;
}
.top { border-radius: 80px 80px 80px 0px / 200px 200px 0px 0px;
}
.bottom { border-radius: 0px 0px 80px 80px / 0px 0px 200px 200px;
}
.watch-frame { align-items: center; background: #222828; border-radius: 20px; color: white; display: flex; height: 180px; width: 170px;
}
.watch-frame .right-operations { display: flex; flex-flow: column;
}
.watch-frame .operation { align-items: center; color: #f4ea7c; display: flex; font-size: 10px; height: calc(180px / 4); list-style-type: none; position: relative; width: 5px;
}
.watch-frame .operation button { background: #394443; border: none; height: 15px; width: 2px; z-index: -1;
}
.right-operations span { left: -3px; position: absolute; top: 16px;
}
.right-operations button { border-radius: 0px 5px 5px 0px;
}
.left-operations span { left: 1px; font-size: 8px; position: absolute;
}
.left-operations button { border-radius: 5px 0px 0px 5px; left: -7px; position: absolute;
}
.watch { background: #32342d; border-radius: 15px; box-sizing: border-box; height: 160px; margin: 0 auto; overflow: hidden; padding: 5px; width: 150px;
}
.screen-frame { background: black; border-radius: 15px 15px 8px 8px; box-shadow: inset 0px 0px 0px 2px #394443, 0px 0px 0px 1px #222828; height: 70px; position: relative; width: 140px;
}
.screen-frame .frame-header { color: white; display: flex; font-family: 'Share Tech Mono', monospace; font-size: 12px; justify-content: space-around; list-style-type: none; line-height: 20px;
}
.screen-frame .frame-header * { margin: 0;
}
.screen-frame .week-days { display: flex; font-size: 7px; list-style-type: none; left: 20px; position: absolute; top: 16px;
}
.screen-frame .week-days li { margin: 2px;
}
.screen-frame .left-instructions { color: #f4ea7c; font-size: 7px; list-style-type: none;
}
.screen-frame .left-instructions li { position: absolute; transform: rotate(90deg);
}
.screen-frame .left-instructions li:nth-child(1) { top: 20px;
}
.screen-frame .left-instructions li:nth-child(2) { top: 50px;
}
.screen-frame .right-instructions { color: #f4ea7c; font-size: 7px; list-style-type: none; position: absolute; right: 17px; top: 14px;
}
.screen-frame .right-instructions li { position: absolute; transform: rotate(270deg);
}
.screen-frame .right-instructions li:nth-child(1) { top: 41px;
}
.screen-frame .right-instructions li:nth-child(2) { top: 23px;
}
.screen-frame .right-instructions li:nth-child(3) { right: -17px; top: 0px;
}
.screen { background: #aaa196; border-radius: 2px; box-shadow: inset 0px 0px 5px 4px rgba(0, 0, 0, 0.2); box-sizing: border-box; color: black; font-size: 20px; font-family: "Share Tech Mono",sans-serif; height: 40px; line-height: 45px; overflow: hidden; position: absolute; right: 20px; top: 25px; text-align: right; width: 100px;
}
.screen .main { margin-right: 5px;
}
.screen .pm { font-size: 9px; left: 3px; position: absolute; top: -8px;
}
.screen .day { background: #141414; height: 3px; left: 2px; position: absolute; top: 3px; width: 10px;
}
.buttons { background: black; border-radius: 8px 8px 15px 15px; box-shadow: inset 0px 0px 0px 1px white,0px 0px 0px 2px black; font-size: 10px; height: 70px; margin-top: 10px; overflow: hidden; width: 140px;
}
.buttons .row { color: white; display: flex; height: calc(70px / 3); justify-content: space-around; width: 140px;
}
.buttons .row li { align-items: center; border-width: 1px 1px 1px 1px; border-style: solid; border-color: white; display: flex; justify-content: center; list-style-type: none; width: calc(140px / 4);
}
.buttons .row button { border-radius: 5px; background: white; height: 10px; margin-left: 2px; width: 18px;
}

#codevember 06 - Casio C-80 - Script Codes JS Codes

"use strict";
var main = document.querySelector(".main");
var pm = document.querySelector(".pm");
var day = document.querySelector(".day");
var calc_btn = document.querySelector(".calc_btn");
var time_btn = document.querySelector(".time_btn");
var time_mode = true;
//the amount of left shift depending on day of week.
var day_shift = { 0: "2px", 1: "16px", 2: "31px", 3: "45px", 4: "61px", 5: "74px", 6: "87px" };
var date = new Date();
day.style.left = day_shift[date.getDay()];
function displayTime() { date = new Date(); var hours = date.getHours(); var minutes = date.getMinutes(); var seconds = date.getSeconds(); if (seconds < 10) { seconds = "0" + seconds; } if (minutes < 10) { minutes = "0" + minutes; } if (hours < 10) { hours = "0" + hours; } if (hours >= 13) { pm.innerHTML = "PM"; hours = hours - 12; } main.innerHTML = hours + ":" + minutes + "`" + seconds;
}
var displayInterval = setInterval(displayTime, 1000);
displayTime();
calc_btn.addEventListener("click", function () { clearInterval(displayInterval); main.innerHTML = 0; pm.innerHTML = ""; time_mode = false; equation = [];
});
time_btn.addEventListener("click", function () { clearInterval(displayInterval); displayTime(); displayInterval = setInterval(displayTime, 1000); time_mode = true;
});
var equation = [];
function input(x) { if (time_mode === false) { equation.push(x); console.log(equation); main.innerHTML = equation.join(''); }
}
function solve() { try { eval(equation.join('')); } catch (e) { if (e instanceof SyntaxError) { main.innerHTML = "NaN"; } } main.innerHTML = eval(equation.join('')); equation = [eval(equation.join(''))];
}
#codevember 06 - Casio C-80 - Script Codes
#codevember 06 - Casio C-80 - Script Codes
Home Page Home
Developer Devin
Username edwin0258
Uploaded November 22, 2022
Rating 4.5
Size 5,703 Kb
Views 16,192
Do you need developer help for #codevember 06 - Casio C-80?

Find the perfect freelance services for your business! Fiverr's mission is to change how the world works together. Fiverr connects businesses with freelancers offering digital services in 500+ categories. Find Developer!

Devin (edwin0258) Script Codes
Create amazing blog posts with AI!

Jasper is the AI Content Generator that helps you and your team break through creative blocks to create amazing, original content 10X faster. Discover all the ways the Jasper AI Content Platform can help streamline your creative workflows. Start For Free!