fix: Use a main tag for the main part of the page
See https://dequeuniversity.com/rules/axe/2.2/bypass?application=lighthouse
This commit is contained in:
parent
ed533da6d4
commit
8cbf8300d8
5 changed files with 19 additions and 19 deletions
|
@ -1,6 +1,6 @@
|
||||||
{include file='inc/head.tpl'}
|
{include file='inc/head.tpl'}
|
||||||
<div class="wrapper">
|
<div class="wrapper">
|
||||||
<div class="main error">
|
<main class="main error">
|
||||||
{include file="inc/logo.tpl"}
|
{include file="inc/logo.tpl"}
|
||||||
<h2>{t}An error occurred{/t}</h2>
|
<h2>{t}An error occurred{/t}</h2>
|
||||||
{t}Please check the URL of your video.{/t}
|
{t}Please check the URL of your video.{/t}
|
||||||
|
@ -10,5 +10,5 @@
|
||||||
<br/>
|
<br/>
|
||||||
{/foreach}
|
{/foreach}
|
||||||
</i></p>
|
</i></p>
|
||||||
</div>
|
</main>
|
||||||
{include file='inc/footer.tpl'}
|
{include file='inc/footer.tpl'}
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{include file='inc/head.tpl'}
|
{include file='inc/head.tpl'}
|
||||||
{include file='inc/header.tpl'}
|
{include file='inc/header.tpl'}
|
||||||
<div class="main">
|
<main class="main">
|
||||||
<div><img class="logo" src="{base_url}/img/logo.png"
|
<div><img class="logo" src="{base_url}/img/logo.png"
|
||||||
alt="AllTube Download" width="328" height="284"></div>
|
alt="AllTube Download" width="328" height="284"></div>
|
||||||
<form action="{path_for name="video"}">
|
<form action="{path_for name="video"}">
|
||||||
|
@ -32,5 +32,5 @@
|
||||||
<a class="bookmarklet small-font" href="javascript:window.location='{$domain}{path_for name='video'}?url='+encodeURIComponent(location.href);">{t}Bookmarklet{/t}</a>
|
<a class="bookmarklet small-font" href="javascript:window.location='{$domain}{path_for name='video'}?url='+encodeURIComponent(location.href);">{t}Bookmarklet{/t}</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
</div>
|
</main>
|
||||||
{include file='inc/footer.tpl'}
|
{include file='inc/footer.tpl'}
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{include file='inc/head.tpl'}
|
{include file='inc/head.tpl'}
|
||||||
<div class="wrapper">
|
<div class="wrapper">
|
||||||
<div class="main">
|
<main class="main">
|
||||||
{include file="inc/logo.tpl"}
|
{include file="inc/logo.tpl"}
|
||||||
<h2>{t}This video is protected{/t}</h2>
|
<h2>{t}This video is protected{/t}</h2>
|
||||||
<p>{t}You need a password in order to download this video.{/t}</p>
|
<p>{t}You need a password in order to download this video.{/t}</p>
|
||||||
|
@ -9,5 +9,5 @@
|
||||||
<br/><br/>
|
<br/><br/>
|
||||||
<input class="downloadBtn" type="submit" value="{t}Download{/t}" />
|
<input class="downloadBtn" type="submit" value="{t}Download{/t}" />
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</main>
|
||||||
{include file='inc/footer.tpl'}
|
{include file='inc/footer.tpl'}
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{include file="inc/head.tpl"}
|
{include file="inc/head.tpl"}
|
||||||
<div class="wrapper">
|
<div class="wrapper">
|
||||||
<div class="main">
|
<main class="main">
|
||||||
{include file="inc/logo.tpl"}
|
{include file="inc/logo.tpl"}
|
||||||
<p>{t}Videos extracted from{/t} {if isset($video->title)}<i>
|
<p>{t}Videos extracted from{/t} {if isset($video->title)}<i>
|
||||||
<a href="{$video->webpage_url}">
|
<a href="{$video->webpage_url}">
|
||||||
|
@ -28,5 +28,5 @@
|
||||||
</div>
|
</div>
|
||||||
{/foreach}
|
{/foreach}
|
||||||
|
|
||||||
</div>
|
</main>
|
||||||
{include file="inc/footer.tpl"}
|
{include file="inc/footer.tpl"}
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
{include file="inc/head.tpl"}
|
{include file="inc/head.tpl"}
|
||||||
<div class="wrapper">
|
<div class="wrapper">
|
||||||
<div itemscope itemtype="http://schema.org/VideoObject">
|
<div itemscope itemtype="http://schema.org/VideoObject">
|
||||||
<div class="main">
|
<main class="main">
|
||||||
{include file="inc/logo.tpl"}
|
{include file="inc/logo.tpl"}
|
||||||
<p id="download_intro">{t}You are going to download{/t}<i itemprop="name">
|
<p id="download_intro">{t}You are going to download{/t}<i itemprop="name">
|
||||||
<a itemprop="url" id="video_link"
|
<a itemprop="url" id="video_link"
|
||||||
|
@ -85,6 +85,6 @@
|
||||||
{else}
|
{else}
|
||||||
<input class="downloadBtn" type="submit" value="{t}Download{/t}" /><br/>
|
<input class="downloadBtn" type="submit" value="{t}Download{/t}" /><br/>
|
||||||
{/if}
|
{/if}
|
||||||
</div>
|
</main>
|
||||||
</div>
|
</div>
|
||||||
{include file="inc/footer.tpl"}
|
{include file="inc/footer.tpl"}
|
||||||
|
|
Loading…
Reference in a new issue