aswi2020merlot-gitlab/resources/js/app.js @ 0be0969f
1 |
require('./bootstrap'); |
---|---|
2 |
|
3 |
// Center metadata page text
|
4 |
$(document).ready(function () { |
5 |
let display_width = $(window).width(); |
6 |
|
7 |
if (display_width < 720) |
8 |
{
|
9 |
$(".metadata").each(function() { |
10 |
let metadata = $(this); |
11 |
let width = metadata.width(); |
12 |
|
13 |
metadata.css("margin-left", (display_width / 2) - width); |
14 |
});
|
15 |
}
|
16 |
});
|