function uviColorShift(){
                if (data.current.uvi < 4) {
                  uv.setAttribute("class","low UV-index");
              }
                  else if(data.current.uvi < 8) {
                      uv.setAttribute("class", "medium UV-index");
                  }
                  else {
                      uv.setAttribute("class", "high UV-index");
                  }
              }
/*Function used to change the color of the <div> displaying the UVI data based
         on severity of current conditions (green/yellow/red) */
Function used to change the color of the  displaying the UVI data based
on severity of current conditions (green/yellow/red)
Function used to change the color of the displaying the UVI data based on severity of current conditions ( green / yellow / red )
function uviColorShift(){
                if (data.current.uvi < 4) {
                  uv.setAttribute("class","low UV-index");
              }
                  else if(data.current.uvi < 8) {
                      uv.setAttribute("class", "medium UV-index");
                  }
                  else {
                      uv.setAttribute("class", "high UV-index");
                  }
              }
function uviColorShift ( ) { if ( data . current . uvi < 4 ) { uv . setAttribute ( "class" , "low UV-index" ) ; } else if ( data . current . uvi < 8 ) { uv . setAttribute ( "class" , "medium UV-index" ) ; } else { uv . setAttribute ( "class" , "high UV-index" ) ; } }
Function used to change the color of the <div> displaying the UVI data based
on severity of current conditions (green/yellow/red)
Function used to change the color of the <div > displaying the UVI data based on severity of current conditions ( green / yellow / red )