Ei muokkausyhteenvetoa |
Ei muokkausyhteenvetoa |
||
| Rivi 141: | Rivi 141: | ||
if ( typeof reqImg.query != 'undefined' ) { | if ( typeof reqImg.query != 'undefined' ) { | ||
for ( var i in reqImg.query.pages ) { | for ( var i in reqImg.query.pages ) { | ||
if ( typeof reqImg.query.pages[i].imageinfo != 'undefined' ) { | |||
console.log( reqImg.query.pages[i].imageinfo[0] ); | |||
reqImg.query.pages[i].imageinfo[0].width >= 1500 && | if ( reqImg.query.pages[i].imageinfo[0].width >= 1500 && | ||
reqImg.query.pages[i].imageinfo[0].height >= 500 ) { | |||
if ( this.image == current ) { | if ( this.image == current ) { | ||
imgout = '<div class="card selected" data-select-id="' + select.prop( 'id' ) + | imgout = '<div class="card selected" data-select-id="' + select.prop( 'id' ) + | ||
| Rivi 156: | Rivi 156: | ||
imageA.push( this.image ); | imageA.push( this.image ); | ||
imageO[ this.image ] = imgout; | imageO[ this.image ] = imgout; | ||
} | |||
} | } | ||
break; | break; | ||


