File tree Expand file tree Collapse file tree
themes/arm-design-system-hugo-theme
static/img/main-topic-icons Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -66,14 +66,14 @@ <h1 id="homepage-header" class="orchard-breeze-text">Arm Learning Paths</h1>
6666 {{ if eq .Title "Servers and Cloud Computing" }}
6767 {{ $iconFilename = "Cloud.svg" }}
6868 {{ else if eq .Title "Mobile, Graphics, and Gaming" }}
69- {{ $iconFilename = "Premium%20Phone .svg" }}
69+ {{ $iconFilename = "premium-phone .svg" }}
7070 {{ else if eq .Title "Embedded and Microcontrollers" }}
7171 {{ $iconFilename = "Microcontroller.svg" }}
7272 {{ end }}
7373 < a href ="{{.Permalink}} ">
7474 < div class ="main-topic-card c-row " style ="flex-wrap: nowrap !important; ">
7575 < div class ="c-col-3 ">
76- < img alt ="Icon for {{.Title}} " aria-hidden ="true " src ="img/main-topic-icons/{{ $iconFilename }} " width ="60 " height ="45 " />
76+ < img alt ="" aria-hidden ="true " src ="img/main-topic-icons/{{ $iconFilename }} " width ="60 " height ="45 " />
7777 </ div >
7878 < div class ="maintopic-content c-col-9 u-margin-left-1 ">
7979 < h3 class ="main-topic-title u-margin-top-1/2 u-margin-bottom-1/2 "> {{ replace .Title "and" "&" }}</ h3 >
@@ -87,7 +87,7 @@ <h3 class="main-topic-title u-margin-top-1/2 u-margin-bottom-1/2">{{ replace .Ti
8787 < a href ="/tag/ml/ ">
8888 < div class ="main-topic-card c-row " style ="flex-wrap: nowrap !important; ">
8989 < div class ="c-col-3 ">
90- < img alt ="Icon for AI " aria-hidden ="true " src ="img/main-topic-icons/AI_2.svg " width ="60 " height ="45 " style ="width: 100%; " />
90+ < img alt ="" aria-hidden ="true " src ="img/main-topic-icons/AI_2.svg " width ="60 " height ="45 " style ="width: 100%; " />
9191 </ div >
9292 < div class ="maintopic-content c-col-9 u-margin-left-1 ">
9393 < h3 class ="main-topic-title u-margin-top-1/2 u-margin-bottom-1/2 "> AI</ h3 >
Original file line number Diff line number Diff line change 1515 ( function ( ) {
1616 var dismissalKey = 'arm-learning-paths-color-refresh-alert-dismissed-v1' ;
1717 var container = document . getElementById ( 'color-refresh-alert-container' ) ;
18- var alert = document . getElementById ( 'color-refresh-alert' ) ;
18+ var alertElement = document . getElementById ( 'color-refresh-alert' ) ;
1919 var dismissed = false ;
2020
21+ if ( ! container || ! alertElement ) {
22+ return ;
23+ }
24+
2125 try {
2226 dismissed = window . localStorage . getItem ( dismissalKey ) === 'true' ;
2327 } catch ( error ) {
2832 container . hidden = false ;
2933 }
3034
31- alert . addEventListener ( 'visibleChange' , function ( event ) {
35+ alertElement . addEventListener ( 'visibleChange' , function ( event ) {
3236 if ( event . detail && event . detail . visible === false ) {
3337 try {
3438 window . localStorage . setItem ( dismissalKey , 'true' ) ;
File renamed without changes.
You can’t perform that action at this time.
0 commit comments