public/js/form.js
//returns the picture of a small size
returns the picture of a small size
returns the picture of a small size
function findPicture(data){
  for (pic in data){
    if (data[pic]['@size'] === 'fpm'){
      console.log("found the size");
      console.log(data[pic]['$t']);
      return data[pic]['$t']
      break
    }
  }
}
function findPicture ( data ) { for ( pic in data ) { if ( data [ pic ] [ '@size' ] === 'fpm' ) { console . log ( "found the size" ) ; console . log ( data [ pic ] [ '$t' ] ) ; return data [ pic ] [ '$t' ] break } } }
returns the picture of a small size
returns the picture of a small size