Commit 785bc74a authored by okhin's avatar okhin 🚴

Merge branch '22-there-is-no-https-for-pics-on-euparl' into 'master'

Resolve "There is no https for pics on euparl"

Closes #22

See merge request !12
parents 36ffa565 8fa1b5d8
Pipeline #1128 passed with stages
in 5 seconds
...@@ -122,13 +122,13 @@ function display_mep(contact) { ...@@ -122,13 +122,13 @@ function display_mep(contact) {
return group['type'] === 'group'; return group['type'] === 'group';
}); });
if ( group.length > 0 ) { if ( group.length > 0 ) {
var group_src = 'https://www.europarl.europa.eu/ep_framework/img/group/group_iconsmall_' var group_src = 'http://www.europarl.europa.eu/ep_framework/img/group/group_iconsmall_'
+ group[0]['name'].toLowerCase().replace('/','') + '.png'; + group[0]['name'].toLowerCase().replace('/','') + '.png';
$('<img />').attr('src', group_src) $('<img />').attr('src', group_src)
.appendTo(li); .appendTo(li);
}; };
if ( country.length > 0 ) { if ( country.length > 0 ) {
var country_src = 'https://www.europarl.europa.eu/ep_framework/img/flag/flag_icon_' var country_src = 'http://www.europarl.europa.eu/ep_framework/img/flag/flag_icon_'
+ country[0]['name'].toLowerCase().replace('/','') + '.gif'; + country[0]['name'].toLowerCase().replace('/','') + '.gif';
$('<img />').addClass('circle') $('<img />').addClass('circle')
.attr('src', country_src) .attr('src', country_src)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment