0byt3m1n1
Path:
/
home1
/
aserty
/
public_html
/
appartsoft.info
/
wp-content
/
plugins
/
content revenge
/
[
Home
]
File: functions.js
function countToOptions() { var cF = document.getElementById('ContentRevenge_countFrom').value; cF = parseFloat(cF); var cT = document.getElementById('ContentRevenge_countTo').value; ct = parseFloat(cT); var pF = document.getElementById('ContentRevenge_ag_posts_from').value; pF = parseFloat(pF); var pT = document.getElementById('ContentRevenge_ag_posts_to').value; pT = parseFloat(pT); if (cF > cT) { document.getElementById('ContentRevenge_countFrom').style.background = '#FDD'; document.getElementById('ContentRevenge_countTo').style.background = '#FDD'; alert('Invalid Range for "Number of Results Per Post"'); return false; } else if (pF > pT) { document.getElementById('ContentRevenge_ag_posts_from').style.background = '#FDD'; document.getElementById('ContentRevenge_ag_posts_to').style.background = '#FDD'; alert('Invalid Range for "Number Of Posts Per Day"'); return false; } } function daysInMonth(month,year) { var dd = new Date(year, month, 0); return dd.getDate(); } function setDayDrop(dyear, dmonth, dday) { var year = dyear.options[dyear.selectedIndex].value; var month = dmonth.options[dmonth.selectedIndex].value; var day = dday.options[dday.selectedIndex].value; var days = (year == ' ' || month == ' ') ? 31 : daysInMonth(month,year); dday.options.length = 0; for (var i = 1; i <= days; i++) { if (i >= 1 && i <= 9) { i_val = '0'+i; } else { i_val = i; } dday.options[dday.options.length] = new Option(i_val, i_val); } } function setDay() { var year = document.getElementById('ContentRevenge_startY'); var month = document.getElementById('ContentRevenge_startM'); var day = document.getElementById('ContentRevenge_startD'); setDayDrop(year,month,day); }