Changes

From Life After BOB Wiki
no edit summary
Line 34: Line 34:  
var name;
 
var name;
 
for (var i = 0; i<imageList.length; i++){
 
for (var i = 0; i<imageList.length; i++){
   //if(imageList[i].fileWidth>imageList[i].fileHeight){
+
   if(imageList[i].dataset.fileWidth>imageList[i].dataset.fileHeight){
  // name = imageList[i].alt;
+
    name = imageList[i].className;
  //  console.log(name);
+
    console.log(name);
//}
+
}
 
console.log(imageList[i].dataset.fileWidth+","+imageList[i].dataset.fileHeight);
 
console.log(imageList[i].dataset.fileWidth+","+imageList[i].dataset.fileHeight);
 
}
 
}