Skip to content

Commit

Permalink
Changed order of targetList items: based on label length
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicholas Hoyt committed Apr 20, 2015
1 parent 3ad6ee2 commit 984752f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions landmarks.js
Original file line number Diff line number Diff line change
@@ -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 '<li>' + tgt.selector + '</li>';}).join('');
Expand Down

0 comments on commit 984752f

Please sign in to comment.