|
| 1 | +<!DOCTYPE html> |
| 2 | +<html lang="{language}"> |
| 3 | +<head> |
| 4 | + <meta charset="UTF-8" /> |
| 5 | + <meta name="viewport" content="width=device-width, initial-scale=1"> |
| 6 | + <meta http-equiv="X-UA-Compatible" content="IE=edge"> |
| 7 | + <meta name="theme-color" content="#f5f5f5"> |
| 8 | + {title} |
| 9 | + {meta} |
| 10 | + {placeholder_head_start} |
| 11 | + {link} |
| 12 | + <link rel="icon" type="image/png" href="/assets/images/icons/icon-16.png" sizes="16x16"> |
| 13 | + <link rel="icon" type="image/png" href="/assets/images/icons/icon-32.png" sizes="32x32"> |
| 14 | + <link rel="icon" type="image/png" href="/assets/images/icons/icon-128.png" sizes="128x128"> |
| 15 | + <link rel="icon" type="image/png" href="/assets/images/icons/icon-256.png" sizes="256x256"> |
| 16 | + <link rel="icon" type="image/png" href="/assets/images/icons/icon-512.png" sizes="512x512"> |
| 17 | + <link rel="manifest" href="/assets/manifest.json"> |
| 18 | + <link href='https://googleads.g.doubleclick.net' rel='preconnect'> |
| 19 | + <link href='https://stats.g.doubleclick.net' rel='preconnect'> |
| 20 | + <link href='https://www.google-analytics.com' rel='preconnect'> |
| 21 | + <link href='https://www.googleadservices.com' rel='preconnect'> |
| 22 | + <link href='https://www.googletagmanager.com' rel='preconnect'> |
| 23 | + {script} |
| 24 | + {placeholder_head_end} |
| 25 | +</head> |
| 26 | +<body> |
| 27 | + {placeholder_body_start} |
| 28 | + |
| 29 | + <div id="app">{app}</div> |
| 30 | + |
| 31 | + <script> |
| 32 | + function resizeElements() { |
| 33 | + if(window.innerWidth >= 769){ |
| 34 | + var allHeaders = document.getElementsByTagName('header'); |
| 35 | + var header = allHeaders && allHeaders.length > 0 ? allHeaders[0] : null; |
| 36 | + |
| 37 | + if (header) { |
| 38 | + document.getElementsByTagName("body")[0].style.marginTop = header.clientHeight + "px"; |
| 39 | + } |
| 40 | + } |
| 41 | + } |
| 42 | + resizeElements(); |
| 43 | + window.addEventListener('resize', resizeElements); |
| 44 | + window.addEventListener('load', resizeElements); |
| 45 | + </script> |
| 46 | + |
| 47 | + <script charset="UTF-8"> |
| 48 | + window.__APP_TEXT__ = {app_text}; |
| 49 | + window.__APP_STATE__ = {app_state}; |
| 50 | + </script> |
| 51 | + |
| 52 | + {placeholder_body_end} |
| 53 | +</body> |
| 54 | +</html> |
0 commit comments