Display project analytics in modal box

This commit is contained in:
Frederic Guillot
2017-01-08 14:00:51 -05:00
parent ea2cbb76d5
commit b3a450bace
23 changed files with 124 additions and 108 deletions

File diff suppressed because one or more lines are too long

View File

@@ -26,4 +26,14 @@
KB.onClick('.js-modal-close', function () {
KB.modal.close();
});
KB.onClick('.js-modal-replace', function (e) {
var link = getLink(e);
if (KB.modal.isOpen()) {
KB.modal.replace(link);
} else {
window.location.href = link;
}
});
}());

View File

@@ -125,7 +125,7 @@
switch (size) {
case 'large':
return viewport.width < 1300 ? '95%' : '1300px';
return viewport.width < 1350 ? '98%' : '1350px';
case 'medium':
return viewport.width < 1024 ? '70%' : '1024px';
}