JSFiddle - React, Tailwind, and code Playground
by kangismet
HTML
<div class="ws">
<script type="text/javascript" src="https://www.muslimpro.com/muslimprowidget.js?cityid=1626381&language=id&timeformat=24" async=""></script>
<div class="tanggal">
<script type='text/javascript'>
var months = ['Januari', 'Februari', 'Maret', 'April', 'Mei', 'Juni', 'Juli', 'Agustus', 'September', 'Oktober', 'November', 'Desember'];
var myDays = ['Minggu', 'Senin', 'Selasa', 'Rabu', 'Kamis', 'Jum'at', 'Sabtu'];
var date = new Date();
var day = date.getDate();
var month = date.getMonth();
var thisDay = date.getDay(),
thisDay = myDays[thisDay];
var yy = date.getYear();
var year = (yy < 1000) ? yy + 1900 : yy;
document.write(thisDay + ', ' + day + ' ' + months[month] + ' ' + year);
</script>
</div>
</div>
CSS
.ws {
padding: 0;
position: relative;
width: 504px;
}
.ws .MPwidget {
width: 100%;
background: rgba(250, 250, 250, 0);
margin: 10px 0;
box-shadow: 0 0 0 rgba(250, 250, 250, 0);
}
.ws .MPheader {
background: rgba(250, 250, 250, 0);
padding: 0;
min-height: 30px;
}
.ws .MPheader .logo {
display: none;
}
.ws .MPheader .title {
padding: 0;
height: 30px;
line-height: 30px;
font-size: 14px;
}
.ws .MPwidget .title a {
color: #888;
font-family: 'Roboto', 'Open Sans', sans-serif;
font-weight: bold;
font-style: normal;
pointer-events: none;
text-decoration: none;
}
.ws .MPtimetable tr:first-child {
position: absolute;
top: 0;
right: 0;
}
.ws .MPtimetable tr .daterow {
color: #000;
}
.ws .MPtimetable tr {
display: inline-table;
width: 84px;
position: relative;
}
.ws .MPtimetable td {
position: relative;
display: table-row;
width: 74px;
padding: 5px;
text-align: center;
font-size: 10px;
height: 20px;
line-height: 20px;
background: rgba(250, 250, 250, 0);
text-transform: uppercase;
color: rgba(0, 0, 0, 0);
}
.ws .MPtimetable tr td:before {
font-size: 10px;
text-align: center;
position: absolute;
top: 0;
left: 0;
right: 0;
color: #333;
height: 20px;
line-height: 20px;
}
.ws .MPtimetable tr:nth-child(2) td:nth-child(1):before {
content: "SUBUH";
}
.ws .MPtimetable tr:nth-child(3) td:nth-child(1):before {
content: "TERBIT";
}
.ws .MPtimetable tr:nth-child(4) td:nth-child(1):before {
content: "DZUHUR";
}
.ws .MPtimetable tr:nth-child(5) td:nth-child(1):before {
content: "ASHAR";
}
.ws .MPtimetable tr:nth-child(6) td:nth-child(1):before {
content: "MAGHRIB";
}
.ws .MPtimetable tr:nth-child(7) td:nth-child(1):before {
content: "ISYA";
}
.ws .MPtimetable td:nth-child(2) {
font-size: 14px;
height: 24px;
line-height: 20px;
background:...