zeroclickinfo-goodies/share/goodie/independence_day/independence_day.js

13 lines
410 B
JavaScript

DDH.independence_day = DDH.independence_day || {};
DDH.independence_day.build = function(ops) {
var flagUrl = DDG.settings.region.getLargeIconURL(ops.data.country_code);
// makes flag icon url point to a 64 px image.
flagUrl = flagUrl.replace(/\/\d+\//, "/64/");
return {
normalize: function(item) {
return {
image: flagUrl
};
}
};
};