aswi2020merlot-gitlab/resources/js/app.js @ 3faf6a0f
1 | 5d28dbf4 | Marek Lovčí | require('./bootstrap'); |
---|---|---|---|
2 | 3e4f999e | Adam Mištera | |
3 | // Center metadata page text
|
||
4 | $(document).ready(function () { |
||
5 | let display_width = $(window).width(); |
||
6 | |||
7 | $(".metadata").each(function() { |
||
8 | let metadata = $(this); |
||
9 | let width = metadata.width(); |
||
10 | |||
11 | metadata.css("margin-left", (display_width / 2) - width); |
||
12 | });
|
||
13 | |||
14 | });
|