Skip to content
Snippets Groups Projects
Commit e081ada1 authored by Kody Jackson's avatar Kody Jackson
Browse files

Random aria IDs

parent d523dbf3
No related branches found
No related tags found
No related merge requests found
{{ $seed := "bar" }}
{{ $random := delimit (shuffle (split (md5 $seed) "" )) "" }}
{{- $titleID := print "title - " $random -}}
<span class="DocsMarkdown--link-external-icon" aria-hidden="true">
<svg fill="none" stroke="currentColor" stroke-width="1.5" width="23px" height="12px" stroke-linecap="round" stroke-linejoin="round" viewBox="0 0 16 16" role="img" aria-labelledby="title-4744738674102027" xmlns="http://www.w3.org/2000/svg">
<title id="title-4744738674102027">External link icon</title>
<svg fill="none" stroke="currentColor" stroke-width="1.5" width="23px" height="12px" stroke-linecap="round" stroke-linejoin="round" viewBox="0 0 16 16" role="img" aria-labelledby="{{$titleID}}" xmlns="http://www.w3.org/2000/svg">
<title id="{{$titleID}}">External link icon</title>
<path d="M6.75,1.75h-5v12.5h12.5v-5m0,-4v-3.5h-3.5M8,8l5.5-5.5"></path>
</svg>
<span is-visually-hidden>Open external link</span>
......
{{ $seed := "foo" }}
{{ $random := delimit (shuffle (split (md5 $seed) "" )) "" }}
{{- $titleID := print "title - " $random -}}
<div class="DocsNavLogoLockup--logo">
<svg viewBox="0 0 48 48" fill="currentColor" role="img" aria-labelledby="title-27458391960035233" xmlns="http://www.w3.org/2000/svg">
<title id="title-27458391960035233">Cloudflare Docs logomark</title>
<svg viewBox="0 0 48 48" fill="currentColor" role="img" aria-labelledby="{{$titleID}}" xmlns="http://www.w3.org/2000/svg">
<title id="{{$titleID}}">Cloudflare Docs logomark</title>
<path d="M31.236 28.717c-.373-.548-1.003-.864-1.76-.9l-14.353-.195a.262.262 0 01-.221-.122.348.348 0 01-.035-.267.396.396 0 01.338-.268l14.48-.195c1.714-.085 3.58-1.533 4.232-3.309l.828-2.25a.503.503 0 00.023-.292c-.932-4.404-4.698-7.689-9.198-7.689-4.15 0-7.672 2.798-8.931 6.679a4.156 4.156 0 00-2.973-.864c-1.994.207-3.59 1.874-3.789 3.954a4.84 4.84 0 00.105 1.545c-3.253.097-5.853 2.871-5.853 6.29 0 .304.024.608.059.912.023.146.14.256.28.256h26.488c.151 0 .291-.11.338-.268l.198-.742c.245-.876.152-1.68-.256-2.275zM36.062 21.39c-.128 0-.268 0-.396.012-.093 0-.175.073-.21.17l-.56 2.032c-.244.876-.151 1.679.257 2.275.373.548 1.003.864 1.76.9l3.055.195c.093 0 .175.049.222.122a.356.356 0 01.035.267.396.396 0 01-.339.268l-3.182.195c-1.726.085-3.58 1.532-4.232 3.309l-.234.62c-.046.122.035.243.164.243h10.935a.289.289 0 00.28-.219 8.654 8.654 0 00.292-2.214c0-4.501-3.521-8.175-7.847-8.175"></path>
</svg>
</div>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment