Initial commit
This commit is contained in:
13
api-wiaas/client/js/bower_components/flag-icon-css-master/assets/docs.js
vendored
Normal file
13
api-wiaas/client/js/bower_components/flag-icon-css-master/assets/docs.js
vendored
Normal file
@@ -0,0 +1,13 @@
|
||||
window.onload = function () {
|
||||
$('.all-flags .flag-icon-background').click(function(event){
|
||||
var flag = $(event.currentTarget).attr('title');
|
||||
var w = 640;
|
||||
var h = 480;
|
||||
var left = (screen.width / 2) - (w / 2);
|
||||
var top = (screen.height / 2) - (h / 2);
|
||||
|
||||
if (flag) {
|
||||
window.open('flags/4x3/' + flag + '.svg', 'flag-4x3', 'width=' + w + ', height=' + h + ', top=' + top + ', left=' + left);
|
||||
}
|
||||
});
|
||||
}
|
||||
Reference in New Issue
Block a user