File tree Expand file tree Collapse file tree 1 file changed +17
-1
lines changed
lib/components_guide_web/live Expand file tree Collapse file tree 1 file changed +17
-1
lines changed Original file line number Diff line number Diff line change @@ -54,11 +54,18 @@ defmodule ComponentsGuideWeb.LatencyComparisonLive do
5454 @ impl true
5555 def render ( assigns ) do
5656 ~H"""
57+ < nav class = "pt-8 pb-8 " >
58+ < ul class = "list-none flex justify-center gap-4 " >
59+ < li > < . link href = "/latency-comparison/cdns " > CDNs</ . link > </ li >
60+ < li > < . link href = "/latency-comparison/dev-blogs " > Dev Blogs</ . link > </ li >
61+ < li > < . link href = "/latency-comparison/robots.txt " > Robots.txt</ . link > </ li >
62+ </ ul >
63+ </ nav >
5764 < . form
5865 for = { :editor }
5966 id = "latency_comparison_form "
6067 phx-submit = "submitted "
61- class = "max-w-2xl mt-12 mx-auto space-y-2 "
68+ class = "max-w-2xl mx-auto space-y-2 "
6269 >
6370 < div class = "flex flex-col items-center gap-4 " >
6471 < button type = "submit " class = "px-3 py-1 text-xl text-blue-900 bg-blue-200 rounded " autofocus > Load</ button >
@@ -186,6 +193,15 @@ defmodule ComponentsGuideWeb.LatencyComparisonLive do
186193 ]
187194 end
188195
196+ def default_urls ( "cdns" ) do
197+ [
198+ "https://cdn.jsdelivr.net/npm/underscore@1.13.6/underscore-esm-min.js" ,
199+ "https://unpkg.com/underscore@1.13.6/underscore-esm-min.js" ,
200+ "https://esm.sh/v107/underscore@1.13.6/es2021/underscore.js" ,
201+ "https://cdnjs.cloudflare.com/ajax/libs/underscore.js/1.13.6/underscore-esm-min.min.js"
202+ ]
203+ end
204+
189205 def default_urls ( _ ) do
190206 [
191207 "https://workers.cloudflare.com/cf.json" ,
You can’t perform that action at this time.
0 commit comments