previous_version_deprecated/js/AFWebDevScript.js
//Begin Function To Override Meta Title and Description
Begin Function To Override Meta Title and Description
Begin Function To Override Meta Title and Description
function metaOverride() {
  let servicesTitle = "AF Web Dev | Service Plans";
  let servicesDescrip = "All plans include custom website design and development for your project or business. Including responsive website development, so every visitor to your website has a great experience.";
  let aboutTitle = "AF Web Dev | About Adrian Fregoso";
  let aboutDescrip = "Responsive Website Development, Colorado based, building custom websites to support your passion projects or small business. Adrian Fregoso | AFWebDev - Plans starting at $25/month.";
  let cur_url = window.location.href;
  switch (cur_url) {
    case 'https://afwebdev.com/services.php':
      document.title = servicesTitle;
      document.querySelector('meta[name="description"]').content = servicesDescrip;
      break;
    case 'https://afwebdev.com/about.php':
      document.title = aboutTitle;
      document.querySelector('meta[name="description"]').content = aboutDescrip;
      break;
    default:
  }
}
function metaOverride ( ) { let servicesTitle = "AF Web Dev | Service Plans" ; let servicesDescrip = "All plans include custom website design and development for your project or business. Including responsive website development, so every visitor to your website has a great experience." ; let aboutTitle = "AF Web Dev | About Adrian Fregoso" ; let aboutDescrip = "Responsive Website Development, Colorado based, building custom websites to support your passion projects or small business. Adrian Fregoso | AFWebDev - Plans starting at $25/month." ; let cur_url = window . location . href ; switch ( cur_url ) { case 'https://afwebdev.com/services.php' : document . title = servicesTitle ; document . querySelector ( 'meta[name="description"]' ) . content = servicesDescrip ; break ; case 'https://afwebdev.com/about.php' : document . title = aboutTitle ; document . querySelector ( 'meta[name="description"]' ) . content = aboutDescrip ; break ; default : } }
Begin Function To Override Meta Title and Description
Begin Function To Override Meta Title and Description
//possibly use switch for logic? //Change Title //Change Description //Change Title //Change Description