23,26d22 < < #bsave { < background-color: orange; < } 30d25 < var inplay=false, lastinplayc='', origdd='', oselvalue='', woo=null; 52,53d46 < inplay=true; < lastinplayc=document.body.innerHTML + ' '; 61d53 < inplay=true; 64d55 < inplay=true; 151,152d141 < theyear=eval('' + now.getFullYear()); < themonth=eval('' + now.getMonth()); 336d324 < altvalvalue=document.URL.split('?')[0].split('#')[0] + '?_x_tr_tl=' + val.value + usuff; 338,353c326,328 < //setTimeout(function(){ < woo=window.open(valvalue, '_blank', 'top=0,width=800,height=800,left=' + eval(-800 + screen.width)); < if (!woo || woo.closed || typeof woo.closed === 'undefined') { < //alert(altvalvalue); < woo=window.open(altvalvalue, myifbottom); //, 'top=0,width=800,height=800,left=' + eval(-800 + screen.width)); < document.getElementById('myifbottom').src=altvalvalue; < document.getElementById('myifbottom').style.display='block'; < location.href='#myifbottom'; < } else if (woo.outerWidth === 0 || woo.outerHeight === 0) { < //alert(11); < woo=window.open(altvalvalue, '_blank', 'top=0,width=800,height=800,left=' + eval(-800 + screen.width)); < document.getElementById('myifbottom').src=altvalvalue; < document.getElementById('myifbottom').style.display='block'; < location.href='#myifbottom'; < } < //}, 2000); --- > setTimeout(function(){ > window.open(valvalue, '_blank', 'top=0,width=800,height=800,left=' + eval(-800 + screen.width)); > }, 2000); 370d344 < altvalvalue=document.URL.split('?')[0].split('#')[0] + '?_x_tr_tl=' + val.value + usuff; 372,387c346,348 < //setTimeout(function(){ < woo=window.open(valvalue, '_top'); < if (!woo || woo.closed || typeof woo.closed === 'undefined') { < //alert(111); < woo=window.open(altvalvalue, 'myifbottom', 'top=0,width=800,height=800,left=' + eval(-800 + screen.width)); < document.getElementById('myifbottom').src=altvalvalue; < document.getElementById('myifbottom').style.display='block'; < location.href='#myifbottom'; < } else if (woo.outerWidth === 0 || woo.outerHeight === 0) { < //alert(1111); < woo=window.open(altvalvalue, '_blank', 'top=0,width=800,height=800,left=' + eval(-800 + screen.width)); < document.getElementById('myifbottom').src=altvalvalue; < document.getElementById('myifbottom').style.display='block'; < location.href='#myifbottom'; < } < //}, 2000); --- > setTimeout(function(){ > window.open(valvalue, '_top'); > }, 2000); 408,410d368 < theyear=eval('' + ocap.innerHTML.split(',')[1].trim()); < themonth=eval('' + mths.indexOf(ocap.innerHTML.split(',')[0].trim())); < inplay=true; 413,414d370 < inplay=true; < lastinplayc=document.body.innerHTML + ' '; 420,491d375 < function recallsm(osel) { < if (osel.value.trim() != '') { < if (osel.value.substring(0,1) == '-') { < oselvalue=osel.value; < setTimeout(function(){ < try { < window.localStorage.removeItem('editable_calendar_' + oselvalue.substring(1).replace(',','_').replace('.','_')); < } catch(jghfjhg) { } < document.getElementById('savedd').innerHTML=origdd; < lscheck(); < changesmade=true; < lastinplayc=document.body.innerHTML + ' '; < inplay=true; < }, 2000); < } else { < themonth=eval(-1 + eval('' + osel.value.replace(',','.').split('.')[0])); < theyear=eval('' + eval('' + osel.value.replace(',','.').split('.')[1])); < usuff='&year=' + theyear + '&month=' + themonth; < now = new Date(eval('' + theyear), eval('' + themonth), 1); < document.body.innerHTML=decodeURIComponent(('' + window.localStorage.getItem('editable_calendar_' + eval(1 + themonth) + '_' + theyear))); < lscheck(); < changesmade=true; < lastinplayc=document.body.innerHTML + ' '; < inplay=true; < } < } < } < < function lscheck() { < if (origdd == '') { origdd=document.getElementById('savedd').innerHTML; } < Object.keys(window.localStorage).forEach(function(key){ < if (('' + key).indexOf('editable_calendar_') == 0) { < //alert(('' + key)); < //alert(('' + key).split('editable_calendar_')[1]); < //alert(document.getElementById('savedd').innerHTML); < if (document.getElementById('savedd').innerHTML.indexOf('>' + eval(0 + eval(('' + key).split('editable_calendar_')[1].split('_')[0])) + '/' + ('' + key).split('editable_calendar_')[1].split('_')[1].substring(0,4) + '') == -1) { < //alert('2:' + document.getElementById('savedd').innerHTML); < document.getElementById('savedd').innerHTML+=''; < document.getElementById('savedd').innerHTML+=''; < //alert('3:' + document.getElementById('savedd').innerHTML); < document.getElementById('savedd').style.display='inline-block'; < document.getElementById('bsave').style.display='inline-block'; < } < } < }); < } < < function lsit() { < if (inplay && lastinplayc != '') { < var curval=('' + window.localStorage.getItem('editable_calendar_' + eval(1 + themonth) + '_' + theyear)).replace(/^undefined/g,'').replace(/^null/g,''); < if (curval != '') { < if (decodeURIComponent(curval) != lastinplayc) { < window.localStorage.removeItem('editable_calendar_' + eval(1 + themonth) + '_' + theyear); < window.localStorage.setItem('editable_calendar_' + eval(1 + themonth) + '_' + theyear, encodeURIComponent(lastinplayc)); < } < } else { < window.localStorage.setItem('editable_calendar_' + eval(1 + themonth) + '_' + theyear, encodeURIComponent(lastinplayc)); < document.getElementById('savedd').innerHTML=origdd; < lscheck(); < } < } < } < < function inpcheck() { < if (inplay) { < if (document.body.innerHTML != lastinplayc) { < lastinplayc=document.body.innerHTML.trim(); < document.getElementById('bsave').style.display='inline-block'; < } < } < } < 494,495c378,379 <
<