Skip to content

Commit

Permalink
Merge branch 'main' into feat/Self-closing-HTML-tags
Browse files Browse the repository at this point in the history
  • Loading branch information
peterpeterparker authored Dec 9, 2024
2 parents 592f5a7 + 0331f06 commit 03cab1f
Showing 1 changed file with 42 additions and 40 deletions.
82 changes: 42 additions & 40 deletions src/routes/(page)/browser/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -24,50 +24,52 @@
<h2>Device</h2>

<table>
<tr>
<td class="description">isMobile</td>
<td
><Value>
{isMobile()}
</Value></td
>
</tr>
<tbody>
<tr>
<td class="description">isMobile</td>
<td
><Value>
{isMobile()}
</Value></td
>
</tr>

<tr>
<td class="description">isIPad</td>
<td
><Value>
{isIPad()}
</Value></td
>
</tr>
<tr>
<td class="description">isIPad</td>
<td
><Value>
{isIPad()}
</Value></td
>
</tr>

<tr>
<td class="description">isAndroidTablet</td>
<td
><Value>
{isAndroidTablet()}
</Value></td
>
</tr>
<tr>
<td class="description">isAndroidTablet</td>
<td
><Value>
{isAndroidTablet()}
</Value></td
>
</tr>

<tr>
<td class="description">Touch screen</td>
<td
><Value>
{#if browser}{window.matchMedia("(any-pointer:coarse)").matches}{/if}
</Value></td
>
</tr>
<tr>
<td class="description">Touch screen</td>
<td
><Value>
{#if browser}{window.matchMedia("(any-pointer:coarse)").matches}{/if}
</Value></td
>
</tr>

<tr>
<td class="description">Mouse screen</td>
<td
><Value>
{#if browser}{window.matchMedia("(any-pointer:fine)").matches}{/if}
</Value></td
>
</tr>
<tr>
<td class="description">Mouse screen</td>
<td
><Value>
{#if browser}{window.matchMedia("(any-pointer:fine)").matches}{/if}
</Value></td
>
</tr>
</tbody>
</table>

<style lang="scss">
Expand Down

0 comments on commit 03cab1f

Please sign in to comment.