You are currently viewing Support Independent, Nonprofit Journalism

Support Independent, Nonprofit Journalism


Support independent, nonprofit journalism 0) { jQuery(‘.search-suggestions’).show(); jQuery(‘#suggestions-list’).html( “

  • Just search for: ” + keyword + “
  • In Authors: ” + keyword + “
  • In Categories: ” + keyword + “” ); } else { jQuery(‘.search-suggestions’).hide(); } }); }); ]]>
  • Fair Observer Logo

    We relys on your support for our independence, diversity and quality.

    The IRS recognizes Fair Observer as a section 501(c)(3) registered public charity
    (EIN: 46-4070943), enabling you to claim a tax deduction.

    { var hidden_amount_text_area = document.getElementById(‘amount’); amount = hidden_amount_text_area.value; if (amount > 1) { var newAmount = parseInt(amount) – 1; hidden_amount_text_area.value = newAmount; document.getElementById(‘paypalamount’).value = newAmount; document.getElementById(‘donation_amount’).innerHTML = “$” + newAmount; } }); document.getElementById(‘add_amount’).addEventListener(‘click’, () => { var hidden_amount_text_area = document.getElementById(‘amount’); amount = hidden_amount_text_area.value; var newAmount = parseInt(amount) + 1; hidden_amount_text_area.value = newAmount; document.getElementById(‘paypalamount’).value = newAmount; document.getElementById(‘donation_amount’).innerHTML = “$” + newAmount; }); Array.from(document.getElementsByClassName(‘amount-button’)).forEach(element => { element.addEventListener(‘click’, () => { var activeElement = document.getElementsByClassName(“donation-amount-box”)[0].getElementsByClassName(“active”)[0]; if (activeElement) { activeElement.classList.remove(‘active’); } element.classList.add(‘active’); document.getElementById(‘amount’).value = element.value; document.getElementById(‘donation_amount’).innerText = “$” + element.value; document.getElementById(‘paypalamount’).value = element.value; document.getElementById(‘monthly’).value = element.value; }); }); Array.from(document.getElementsByClassName(‘donation-cycle’)).forEach(element => { element.addEventListener(‘click’, () => { document.getElementById(‘cycle’).value = element.value; var activeElement = document.getElementsByClassName(“donation-cycle-box”)[0].getElementsByClassName(“active”)[0]; if (activeElement) { activeElement.classList.remove(‘active’); } element.classList.add(‘active’); var amount = document.getElementById(‘amount’).value; if (element.value == “yearly”) { document.getElementById(‘cmdvalue’).value = “_xclick-subscriptions”; document.getElementById(‘paymentinterval’).value = “Y”; document.getElementById(‘srcvalue’).value = 1; document.getElementById(‘monthly’).value = amount; } else if (element.value == “monthly”) { document.getElementById(‘cmdvalue’).value = “_xclick-subscriptions”; document.getElementById(‘paymentinterval’).value = “M”; document.getElementById(‘srcvalue’).value = 1; document.getElementById(‘monthly’).value = amount; } else { document.getElementById(‘cmdvalue’).value = “_donations”; // document.getElementById(‘paymentinterval’).value = “M”; document.getElementById(‘srcvalue’).value = 0; document.getElementById(‘monthly’).value = “”; } }); }); document.getElementById(‘country’).addEventListener(‘change’, () => { var countryValue = document.getElementById(‘country’).value; var url = “https://fairobserver.com/wp-admin/admin-ajax.php?action=getStates”; jQuery.ajax({ url, type: ‘get’, dataType: ‘json’, data: { countryValue }, success: function(result) { if (result) { var states = Object.values(result); if (states.length > 0) { if ($(‘#country-state’).length == 1) { $(‘#country-state’).children().remove(); } else { $(‘#donorState’).replaceWith(”); } $(‘#country-state’).html(‘Select state’); states.forEach(state => { $(“#select-state”).after(“” + state + “”); }); } else { $(“#country-state”).replaceWith(”); } } else { $(“#country-state”).replaceWith(”); // alert(“No states”); } } }); }); document.getElementById(‘next-btn-step-1’).addEventListener(‘click’, () => { var amount = document.getElementById(‘amount’).value; var cycle = document.getElementById(‘cycle’).value; if (cycle != “one-time”) { var today = new Date(); var dd = String(today.getDate()).padStart(2, ‘0’); var month = String(today.getMonth() + 1).padStart(2, ‘0’); //January is 0! if (cycle == “monthly”) { document.getElementById(‘donation-cylce-text’).style.display = “inherit”; document.getElementById(‘donation-cylce-text’).innerText = `You have selected ${cycle} donation cycle. Fair Observer will deduct $${amount} automatically on ${dd}th of every month from your selected payment source.`; } else { //next year date const monthNames = [“January”, “February”, “March”, “April”, “May”, “June”, “July”, “August”, “September”, “October”, “November”, “December” ]; const d = new Date(); document.getElementById(‘donation-cylce-text’).innerText = `You have selected ${cycle} donation cycle. Fair Observer will deduct $${amount} automatically on ${dd}th ${monthNames[d.getMonth()]} of every year from your credit card.`; } } else { document.getElementById(‘donation-cylce-text’).style.display = “none”; } var hide = true; if (!amount) { alert(“Please select an amount”); hide = false; } if (!cycle) { // alert(“Please select a cycle”); var error = document.getElementById(‘screen-1-error’); error.innerText = “Please select donation cycle.”; error.style.color = “red”; error.style.display = “block”; hide = false; } if (hide) { var screen_one = document.getElementById(‘screen-1’); screen_one.classList.remove(‘d-block’); screen_one.classList.add(‘d-none’); document.getElementById(‘screen-2’).classList.remove(‘d-none’); document.getElementById(‘screen-2’).classList.add(‘d-block’); document.getElementById(‘donation-amount-figure’).innerText = “$” + document.getElementById(‘amount’).value; document.getElementById(‘donation-amount-cycle’).innerText = document.getElementById(‘cycle’).value; } }); document.getElementById(‘next-btn-step-2’).addEventListener(‘click’, () => { var redirect = true; var firstname = document.getElementById(‘firstname’); var lastname = document.getElementById(‘lastname’); var email = document.getElementById(’email’); var addressLineOne = document.getElementById(‘addressline’); var donorCity = document.getElementById(‘city’); var donorCountry = document.getElementById(‘country’); var zip = document.getElementById(‘zipcode’); var cycle = document.getElementById(‘cycle’).value; var amount = document.getElementById(‘paypalamount’).value; // if (!$(‘#gdpr_agreement’).is(“:checked”) && !$(‘#no_signup’).is(“:checked”)) { // redirect = false; // jQuery(‘.checkbox-error’).remove(); // jQuery(‘.donation-checkbox’).after(‘
    Please select any of these required field.’); // }else{ // jQuery(‘.checkbox-error’).remove(); // } // var donation_agreement = document.getElementById(‘donation_agreement’); // console.log(donation_agreement); // alert(donation_agreement); // var isCreateAccountChecked = $(‘#donation_agreement’).is(“:checked”); // if (isCreateAccountChecked) { // var username = document.getElementById(‘username’); // var password = document.getElementById(‘password’); // if (username.value == “”) { // redirect = false; // username.style.border = “1px solid red”; // } // if (password.value == “”) { // redirect = false; // password.style.border = “1px solid red”; // } // } var fields = [firstname, lastname, email]; fields.forEach(element => { if (element.value == “”) { redirect = false; element.style.border = “1px solid red”; } }); // var username = document.getElementById(‘username’); // var password = document.getElementById(‘password’); // if (username && !username.value) { // redirect = false; // username.style.border = “1px solid red”; // } // if (password && !password.value) { // redirect = false; // password.style.border = “1px solid red”; // } var selectedCheckbox = $(‘input[name=”payment-option”]:checked’).val(); if (selectedCheckbox) { document.getElementById(‘screen-2-error’).innerText = “”; document.getElementById(‘screen-2-error’).style.display = “none”; if (redirect) { document.documentElement.scrollTop = 0; if (selectedCheckbox == “cc”) { document.getElementById(‘screen-2’).classList.remove(‘d-block’); document.getElementById(‘screen-2’).classList.add(‘d-none’); document.getElementById(‘screen-3’).classList.remove(‘d-none’); document.getElementById(‘screen-3’).classList.add(‘d-block’); } else { display(‘first_name’, firstname.value); display(‘last_name’, lastname.value); display(’email’, email.value); display(‘address1’, addressLineOne.value); display(‘city’, donorCity.value); display(‘country’, donorCountry.value); display(‘zip’, zip.value); display(‘cycle’, cycle); display(‘first_name’, firstname.value); display(‘is_paypal_payment’, true); display(‘amount’, amount); if (username && password) { display(‘username’, username.value); display(‘password’, password.value); } $(‘input[name=”first_name”]’).val(firstname.value); $(‘input[name=”last_name”]’).val(lastname.value); $(‘input[name=”email”]’).val(email.value); if(addressLineOne.value.length >= 1){ $(‘input[name=”address1″]’).val(addressLineOne.value); }else{ $(‘input[name=”address1″]’).val(‘NA’); } if(donorCity.value.length >= 1){ $(‘input[name=”city”]’).val(donorCity.value); }else{ $(‘input[name=”city”]’).val(‘NA’); } if(donorCountry.value.length >= 1){ $(‘input[name=”country”]’).val(donorCountry.value); }else{ $(‘input[name=”country”]’).val(‘NA’); } if(zip.value.length >= 1){ $(‘input[name=”zip”]’).val(zip.value); }else{ $(‘input[name=”zip”]’).val(‘302021’); } if(cycle.length >= 1){ $(‘input[name=”item_cycle”]’).val(cycle); }else{ $(‘input[name=”item_cycle”]’).val(‘NA’); } $(‘#paypal_form’).get(0).submit(); } } } else { // alert(“Please select a payment method”); document.getElementById(‘screen-2-error’).style.display = “block”; document.getElementById(‘screen-2-error’).style.color = “red”; document.getElementById(‘screen-2-error’).innerText = “Please select a payment option”; } }); document.getElementById(‘step-2-back-btn’).addEventListener(‘click’, () => { document.getElementById(‘screen-1-error’).style.display = “none”; document.getElementById(‘screen-2’).classList.remove(‘d-block’); document.getElementById(‘screen-2’).classList.add(‘d-none’); document.getElementById(‘screen-1’).classList.remove(‘d-none’); document.getElementById(‘screen-1’).classList.add(‘d-block’); }); document.getElementById(‘step-3-back-btn’).addEventListener(‘click’, () => { document.getElementById(‘screen-3’).classList.remove(‘d-block’); document.getElementById(‘screen-3’).classList.add(‘d-none’); document.getElementById(‘screen-2’).classList.remove(‘d-none’); document.getElementById(‘screen-2’).classList.add(‘d-block’); }); $(‘#showPassToggle’).click(() => { var passwordField = document.getElementById(‘password’); var typeToSet = passwordField.getAttribute(‘type’) === ‘password’ ? ‘text’ : ‘password’; if (typeToSet === “password”) { $(‘#showPassToggle’).text(‘Show’); } else { $(‘#showPassToggle’).text(‘Hide’); } passwordField.setAttribute(“type”, typeToSet); }); ]]>

    Fair Observer, 461 Harbor Blvd, Belmont, CA 94002, USA

    Subscribe

    Register for $9.99 per month and become a member today.

    Subscribe

    Join our community of more than 2,500 contributors to publish your perspective, share your narrative and shape the global discourse.

    Subscribe

    We bring you perspectives from around the world. Help us to inform and educate. Your donation is tax-deductible.

    { var current_position = await document.getElementById(‘amp-textarea’).getBoundingClientRectAsync(); if ((Math.ceil(initial_position.top) – Math.ceil(current_position.top)) > 1200){ document.getElementById(‘divToHide’).classList.remove(‘d-none’); document.getElementById(‘closebtn’).addEventListener(‘click’, ()=>{ document.getElementById(‘divToHide’).classList.add(‘d-none’); }); clearInterval(timer); } },2000); } demo(); ]]>
    We Need Your Consent
    We use cookies to give you the best possible experience. Learn more about how we use cookies or edit your cookie preferences. Privacy Policy. My Options I Accept

    Privacy & Cookies Policy

    half_screen) { if (jQuery.cookie(‘whenToShowDialog’) != “yesss”) { jQuery(“#myModalPopUp”).css(‘display’, ‘flex’); jQuery.cookie(“whenToShowDialog”, “yesss”); } } }); } else { jQuery(‘#myModalPopUp’).hide(); } var dwnldbtn = jQuery(“#download_product_popup_open”); dwnldbtn.click(() => { jQuery(‘#download_product_popup’).show(); }); jQuery(‘#download_product_popup_open’).click(function() { // alert(“hello”); jQuery(‘#download_product_popup’).fadeIn(); }); jQuery(‘.download_product_popup_close’).click(function() { jQuery(‘#download_product_popup’).fadeOut(); }); jQuery(‘.download_product_popup_close’).click(function() { jQuery(‘#download_product_popup’).fadeOut(); }); var container = jQuery(“#download_product_popup”); container.click((e) => { if (e.target.id == ‘download_product_popup’) { jQuery(‘#download_product_popup’).hide(); } }); jQuery(‘.close-popup-btn’).click(function() { // $.cookie(‘whenToShowDialog’, “yesss”); display(“whenToShowDialog”, “yesss”); jQuery(‘#myModalPopUp’).hide(); }); }); ]]> { if(e.target.id === “contact_us_form”){ jQuery(“#contact_us_form”).css(‘display’, ‘none’); } }); // $(document).ready(function() { // currLoc = $(location).attr(‘href’); // parts = currLoc.split(“/”), // last_part = parts[parts.length-1]; // console.log(last_part.split(“=”)[1]); // if(last_part.split(“=”)[1] == ‘submit-post’){ // $(‘.page-header’).text(‘Submit Article’); // } // }); ]]>

    Source