aswi2020merlot-gitlab/resources/js/app.js @ 0be0969f
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 | 0218d5c7 | Adam Mištera | if (display_width < 720) |
8 | {
|
||
9 | $(".metadata").each(function() { |
||
10 | let metadata = $(this); |
||
11 | let width = metadata.width(); |
||
12 | 3e4f999e | Adam Mištera | |
13 | 0218d5c7 | Adam Mištera | metadata.css("margin-left", (display_width / 2) - width); |
14 | });
|
||
15 | }
|
||
16 | 3e4f999e | Adam Mištera | });
|