From 984752fe306f2ddcde1612171bf60b3d763267c9 Mon Sep 17 00:00:00 2001 From: Nicholas Hoyt Date: Mon, 20 Apr 2015 16:47:24 -0500 Subject: [PATCH] Changed order of targetList items: based on label length --- landmarks.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/landmarks.js b/landmarks.js index 2b94681..0343d9f 100644 --- a/landmarks.js +++ b/landmarks.js @@ -1,12 +1,12 @@ (function (utils) { var targetList = [ - {selector: 'body > header, [role="banner"]', color: "gray", label: "banner"}, - {selector: 'main, [role="main"]', color: "navy", label: "main"}, + {selector: 'aside:not([role]), [role="complementary"]', color: "brown", label: "complementary"}, {selector: 'body > footer, [role="contentinfo"]', color: "olive", label: "contentinfo"}, {selector: '[role="application"]', color: "teal", label: "application"}, - {selector: 'aside:not([role]), [role="complementary"]', color: "brown", label: "complementary"}, {selector: 'nav, [role="navigation"]', color: "green", label: "navigation"}, - {selector: '[role="search"]', color: "purple", label: "search"} + {selector: 'body > header, [role="banner"]', color: "gray", label: "banner"}, + {selector: '[role="search"]', color: "purple", label: "search"}, + {selector: 'main, [role="main"]', color: "navy", label: "main"} ]; var selectors = targetList.map(function (tgt) {return '
  • ' + tgt.selector + '
  • ';}).join('');