Skip to content

Commit b6e87d6

Browse files
committed
use old image url
1 parent d1d3329 commit b6e87d6

1 file changed

Lines changed: 13 additions & 10 deletions

File tree

BookReview.html

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -29,16 +29,19 @@
2929
console.log('asin ' + asin);
3030
var imageUrl = 'http://ws-na.amazon-adsystem.com/widgets/q?_encoding=UTF8&ASIN=' + asin + '&Format=_SL160_&ID=AsinImage&MarketPlace=US&ServiceVersion=20070822&WS=1';
3131
console.log(imageUrl);
32-
$.ajax({
33-
type: "GET",
34-
dataType: "jsonp",
35-
jsonpCallback: 'jsonCallback',
36-
url: baseUrl + 'url=' + encodeURIComponent(imageUrl),
37-
contentType: "application/json; charset=utf-8",
38-
async: false,
39-
error:jsonCallback,
40-
success:jsonCallback
41-
});
32+
// $.ajax({
33+
// type: "GET",
34+
// dataType: "jsonp",
35+
// jsonpCallback: 'jsonCallback',
36+
// url: baseUrl + 'url=' + encodeURIComponent(imageUrl),
37+
// contentType: "application/json; charset=utf-8",
38+
// async: false,
39+
// error:jsonCallback,
40+
// success:jsonCallback
41+
// });
42+
jsonCallback({
43+
url : imageUrl
44+
})
4245
};
4346

4447
var jsonCallback = function (data) {

0 commit comments

Comments
 (0)