3d2
<
Editable Calendar - RJM Programming - September, 2026
4a4,41
> .layered-image {
> /* Adds a background image behind the main HTML image */
> background-image: url('dominoes_4_4.png');
> background-size: contain;
> //background-position: center;
> background-repeat: no-repeat;
> }
>
> .image-wrapper {
> position: relative; /* Acts as the anchor point */
> display: inline-block;
> }
>
> .image-wrapper img {
> display: block;
> width: 80px; /* Set your desired image width */
> height: auto;
> opacity:0.2; /* visibility: hidden; */
> filter: url('#edge-detection');
> }
>
> .domr {
> position: absolute;
> top: -6px; /* Distance from the top edge */
> right: 0px; /* Distance from the right edge */
> font-size: 50px; /* Adjust emoji size */
> pointer-events: none;
> }
>
> .doml {
> position: absolute;
> top: -6px; /* Distance from the top edge */
> left: 0px; /* Distance from the right edge */
> font-size: 50px; /* Adjust emoji size */
> border-right: 1px solid black;
> pointer-events: none;
> }
>
8d44
< margin: 2 2 2 2;
11,13c47
< .pad {
< border-color: transparent;
< }
---
>
17,19c51
< var now = new Date(), firstDayIndex=0, daysThisMonth=0;
< var days=['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'];
< var documentURL=document.URL, blankis='_blank';
---
> var documentURL=document.URL;
21,32d52
< var useintl=false;
< if (documentURL.indexOf('localhost') != -1) {
< useintl=true;
< }
<
< function modething() {
< if (useintl) {
< document.getElementById('mya').innerHTML='+';
< } else {
< document.getElementById('mya').innerHTML='-';
< }
< }
35,36d54
< var bdate=null, kb=0;
< var shortblurb='youllneverfindthis', longblurb='';
41,112d58
< modething();
< if (documentURL.indexOf('_x_tr_tl=') == -1) {
< var getccviatz='' + Intl.DateTimeFormat().resolvedOptions().timeZone;
< //getccviatz='Europe/Istanbul';
< document.getElementById('myif').src+='?getccviatz=' + encodeURIComponent(getccviatz);
< setTimeout(function() {
< if (document.getElementById('language').value.replace('en','').trim() != '') {
< useintl=true;
< blankis='_self';
< ChangeLcodeNow();
< }
< }, 3000);
< }
< if (documentURL.indexOf('?_x_tr_tl=en') != -1 || (documentURL.indexOf('_x_tr_tl=') != -1 && thelang.replace('en','') != '')) {
< // Thanks to https://www.google.com/search?q=intl+get+arabic+for+January&rlz=1C5OZZY_en&oq=intl+get+arabic+for+January&gs_lcrp=EgZjaHJvbWUyBggAEEUYOTIHCAEQIRigATIHCAIQIRiPAjIHCAMQIRiPAtIBCTE5NTg3ajBqN6gCALACAA&sourceid=chrome&source=chrome.ob&ie=UTF-8
< for (kb=0; kb<12; kb++) {
< bdate = new Date(now.getFullYear(), kb, 1); // January 1st
< mths[kb]=('' + new Intl.DateTimeFormat(thelang, { month: 'long' }).format(bdate));
< // Thanks to https://www.google.com/search?q=intl+get+arabic+in+long+date+format+for+Monday&sca_esv=77e7d99cf23041a7&rlz=1C5OZZY_en&biw=1593&bih=778&sxsrf=APpeQntCcCdX1LFLUQlgOzM3udbznwgmVQ%3A1788315178997&ei=KoaXatquPIaXhvcPmuObsA8&ved=2ahUKEwja6_WX6c6WAxWGi-EIHZrxBvYQ4dUDegQIBhAM&uact=5&oq=intl+get+arabic+in+long+date+format+for+Monday&gs_lp=Egxnd3Mtd2l6LXNlcnAiLmludGwgZ2V0IGFyYWJpYyBpbiBsb25nIGRhdGUgZm9ybWF0IGZvciBNb25kYXlI6jpQlgZYkx9wAXgBkAEAmAGMAqABhQ2qAQUwLjQuNLgBA8gBAPgBAZgCB6AChArCAgoQABhHGNYEGLADwgIOEAAY5AIY1gQYsAPYAQHCAhcQLhjcBhi4BhjaBhjYAhjIAxiwA9gBAcICBRAhGKABwgIEECEYFcICBxAhGAoYoAGYAwCIBgGQBg-6BgYIARABGAmSBwUxLjMuM6AHrRKyBwUwLjMuM7gH-QnCBwcwLjUuMS4xyAcUgAgB&sclient=gws-wiz-serp
< switch (bdate.getDay()) {
< case 0:
< longblurb=('' + new Intl.DateTimeFormat(thelang, { weekday: 'long' }).format(bdate));
< //shortblurb=('' + new Intl.DateTimeFormat(thelang, { dateStyle: 'long' }).format(bdate));
< days[0]=longblurb.replace(shortblurb,'').trim();
< document.getElementById('Sunday').innerHTML=longblurb.replace(shortblurb,'').trim();
< break;
<
< case 1:
< longblurb=('' + new Intl.DateTimeFormat(thelang, { weekday: 'long' }).format(bdate));
< //shortblurb=('' + new Intl.DateTimeFormat(thelang, { dateStyle: 'long' }).format(bdate));
< days[1]=longblurb.replace(shortblurb,'').trim();
< document.getElementById('Monday').innerHTML=longblurb.replace(shortblurb,'').trim(); //('' + ('' + new Intl.DateTimeFormat(thelang, { day: 'long' }).format(bdate)));
< break;
<
< case 2:
< longblurb=('' + new Intl.DateTimeFormat(thelang, { weekday: 'long' }).format(bdate));
< //shortblurb=('' + new Intl.DateTimeFormat(thelang, { dateStyle: 'long' }).format(bdate));
< days[2]=longblurb.replace(shortblurb,'').trim();
< document.getElementById('Tuesday').innerHTML=longblurb.replace(shortblurb,'').trim(); //('' + ('' + new Intl.DateTimeFormat(thelang, { day: 'long' }).format(bdate)));
< break;
<
< case 3:
< longblurb=('' + new Intl.DateTimeFormat(thelang, { weekday: 'long' }).format(bdate));
< //shortblurb=('' + new Intl.DateTimeFormat(thelang, { dateStyle: 'long' }).format(bdate));
< days[3]=longblurb.replace(shortblurb,'').trim();
< document.getElementById('Wednesday').innerHTML=longblurb.replace(shortblurb,'').trim(); //('' + ('' + new Intl.DateTimeFormat(thelang, { day: 'long' }).format(bdate)));
< break;
<
< case 4:
< longblurb=(new Intl.DateTimeFormat(thelang, { weekday: 'long' }).format(bdate));
< //shortblurb=(new Intl.DateTimeFormat(thelang, { dateStyle: 'long' }).format(bdate));
< days[4]=longblurb.replace(shortblurb,'').trim();
< document.getElementById('Thursday').innerHTML=longblurb.replace(shortblurb,'').trim(); //('' + ('' + new Intl.DateTimeFormat(thelang, { day: 'long' }).format(bdate)));
< break;
<
< case 5:
< longblurb=('' + new Intl.DateTimeFormat(thelang, { weekday: 'long' }).format(bdate));
< //shortblurb=('' + new Intl.DateTimeFormat(thelang, { dateStyle: 'long' }).format(bdate));
< days[5]=longblurb.replace(shortblurb,'').trim();
< document.getElementById('Friday').innerHTML=longblurb.replace(shortblurb,'').trim(); //('' + ('' + new Intl.DateTimeFormat(thelang, { day: 'long' }).format(bdate)));
< break;
<
< case 6:
< longblurb=('' + new Intl.DateTimeFormat(thelang, { weekday: 'long' }).format(bdate));
< //shortblurb=('' + new Intl.DateTimeFormat(thelang, { dateStyle: 'long' }).format(bdate));
< days[6]=longblurb.replace(shortblurb,'').trim();
< document.getElementById('Saturday').innerHTML=longblurb.replace(shortblurb,'').trim(); //('' + ('' + new Intl.DateTimeFormat(thelang, { day: 'long' }).format(bdate)));
< break;
<
< }
< }
< }
114,116c60,62
< var onetd=' | ', rowonesofar=document.getElementById('week0').innerHTML.split('', ij=0, ji=0, ki=0;
< firstDayIndex=new Date(now.getFullYear(), now.getMonth(), 1).getDay();
< daysThisMonth=new Date(now.getFullYear(), now.getMonth()+1, 0).getDate();
---
> var now = new Date(), onetd=' | | ', rowonesofar=document.getElementById('week0').innerHTML.split('', ij=0, ji=0, ki=0;
> var firstDayIndex=new Date(now.getFullYear(), now.getMonth(), 1).getDay();
> var daysThisMonth=new Date(now.getFullYear(), now.getMonth()+1, 0).getDate();
120d65
< //alert('' + firstDayIndex + '#' + rowonesofar);
186,187c131
< rowonesofar=rowonesofar.replace('6','' + firstDayIndex).split(' | ')[0] + ''; // new bits
< //alert('' + firstDayIndex + '@' + rowonesofar);
---
> rowonesofar=rowonesofar.replace('6','' + firstDayIndex);
190d133
< //alert('' + ij); //firstDayIndex + '!' + rowonesofar);
224,248d166
< if (documentURL.indexOf('?_x_tr_tl=en') != -1 || (documentURL.indexOf('_x_tr_tl=') != -1 && thelang.replace('en','') != '')) {
< document.getElementById('Sunday').innerHTML=days[0];
< document.getElementById('Monday').innerHTML=days[1];
< document.getElementById('Tuesday').innerHTML=days[2];
< document.getElementById('Wednesday').innerHTML=days[3];
< document.getElementById('Thursday').innerHTML=days[4];
< document.getElementById('Friday').innerHTML=days[5];
< document.getElementById('Saturday').innerHTML=days[6];
< }
< var acnt=eval('' + document.getElementById('week0').innerHTML.split('').length);
< //if (acnt > 7) { alert(acnt); }
< var rightih='', spareih='';
< var acnts=document.getElementById('week0').innerHTML.split('');
< var ia=eval(-1 + acnts.length);
< if (4 == 6 && eval('' + acnt) > 7) {
< while (eval('' + rightih.split('').length) <= 7) {
< spareih=rightih;
< rightih=acnts[ia] + '' + spareih;
< //rightih+='';
< rightih=rightih.replace('','').replace('','');
< //alert('rightih=' + rightih);
< ia--;
< }
< document.getElementById('wp-calendar').innerHTML=document.getElementById('wp-calendar').innerHTML.replace(rightih, '' + rightih);
< }
253d170
< var cdate=null;
259,263c176
< if (documentURL.indexOf('?_x_tr_tl=en') != -1 || (documentURL.indexOf('_x_tr_tl=') != -1 && thelang.replace('en','') != '')) {
< cdate = new Date(now.getFullYear(), now.getMonth(), icnt); // November is month index 10
< //alert(('0' + icnt).slice(-2) + ' ' + suffixbit + ' ... ' + ('' + (new Intl.DateTimeFormat(thelang, { dateStyle: 'long' }).format(cdate))));
< spansarr[ij].innerHTML=('' + (new Intl.DateTimeFormat(thelang, { dateStyle: 'long' }).format(cdate))) + ' ... ';
< } else if (2 == 3) {
---
> if (2 == 3) {
281,284d193
< if (documentURL.indexOf('localhost') != -1 || useintl) {
< window.open(document.URL.split('?')[0].split('#')[0] + '?_x_tr_tl=' + val.value, blankis, 'top=0,width=800,height=800,left=' + eval(-800 + screen.width));
< document.getElementById('language').value='';
< } else {
287d195
< }
294,297d201
< if (documentURL.indexOf('localhost') != -1 || useintl) {
< window.open(document.URL.split('?')[0].split('#')[0] + '?_x_tr_tl=' + val.value, blankis, 'top=0,width=800,height=800,left=' + eval(-800 + screen.width));
< document.getElementById('language').value='';
< } else {
300d203
< }
304,311d206
<
< function intlvs() {
< if (documentURL.indexOf('localhost') == -1) {
< useintl=!useintl;
< modething();
< }
< }
<
315,318c210,213
< Editable Calendar
< RJM Programming - September, 2026
<
<
<