Use Clock File on Blogger Step by Step All Steps:
2. Goto Layout:
3. Click on Add a Gedget:
4. Chose HTML/JavaScript Option
<style>
.clock{
width: 250px;
height: 250px;
background-image: url("https://blogger.googleusercontent.com/img/a/AVvXsEhN5FsmgfE2kL1xZMU18LAb6PRufcyUSKAeqbgc_Y7jWGxRqnKLzV8vrfk9rvZYLJ4se1nEbYDMlRY38WK1pHmmyIz2QdsGB1cU-Mc_KhdUdEt935AYyZtuZSmS9hXEJtI_d4vY7FWta3MQxgX_441cdEvE7qxT_WSK0IWnyHZ-tO5sB--LNfPf7VTWtw=w600");
background-color: #091921;
border-radius: 50%;
background-size: cover;
display: flex;
justify-content: center;
align-items: center;
box-shadow: 0 -15px 15px rgba(255, 255, 255, 0.05),
inset 0 -15px 15px rgba(255, 255, 255, 0.05), 0 15px 15px rgba(0, 0, 0, 0.3),
inset 0 15px 15px rgba(0, 0, 0, 0.3);
}
.clock::before{
content: "";
width: 15px;
height: 15px;
position: absolute;
background-color: #fff;
border-radius: 50%;
z-index: 1000;
}
.hour,
.min,
.sec{
position: absolute;
}
.hr{
width: 160px;
height: 160px;
}
.mn{
width: 190px;
height: 190px;
}
.sc{
width: 230px;
height: 230px;
}
.hr,
.mn,
.sc{
display: flex;
justify-content: center;
}
.hr::before{
content: "";
width: 8px;
height: 80px;
background-color: #06fd2f;
z-index: 100;
border-radius: 5px;
}
.mn::before{
content: "";
width: 6px;
height: 90px;
background-color: rgba(15, 105, 207);
z-index: 11;
border-radius: 5px;
}
.sc::before{
content: "";
width: 2px;
height: 140px;
background-color: #fff;
z-index: 10;
border-radius: 5px;
}
</style>
<div class="clock">
<div class="hour">
<div class="hr" id="hr"></div>
</div>
<div class="min">
<div class="mn" id="mn"></div>
</div>
<div class="sec">
<div class="sc" id="sc"></div>
</div>
</div>
<script>
const deg = 6; //360deg / 60(min||sec) => 6
const hr = document.querySelector("#hr");
const mn = document.querySelector("#mn");
const sc = document.querySelector("#sc");
setInterval(() => {
let day = new Date();
let hh = day.getHours() * 30; //360deg / 12 hour => 30
let mm = day.getMinutes() * deg;
let ss = day.getSeconds() * deg;
hr.style.transform = `rotateZ(${hh + mm / 12}deg)`;
mn.style.transform = `rotateZ(${mm}deg)`;
sc.style.transform = `rotateZ(${ss}deg)`;
});
// coding with nick
</script>
<br>
<script type="text/javascript">
atOptions = {
'key' : 'ebc7b3e862c933e8f04adff55b52c698',
'format' : 'iframe',
'height' : 50,
'width' : 320,
'params' : {}
};
document.write('<scr' + 'ipt type="text/javascript" src="http' + (location.protocol === 'https:' ? 's' : '') + '://thenceextremeeyewitness.com/ebc7b3e862c933e8f04adff55b52c698/invoke.js"></scr' + 'ipt>');
</script>
6. Code paste here(content):



Post a Comment