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

13 lines
410 B
JavaScript
Raw Normal View History

DDH.independence_day = DDH.independence_day || {};
DDH.independence_day.build = function(ops) {
2015-07-30 20:59:01 -07:00
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) {
2015-07-09 10:43:33 -07:00
return {
2015-07-30 20:59:01 -07:00
image: flagUrl
};
}
};
};