Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@yaasita
Created January 4, 2017 20:12
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yaasita/7146860b12e2c9bae6e0218693384c03 to your computer and use it in GitHub Desktop.
Save yaasita/7146860b12e2c9bae6e0218693384c03 to your computer and use it in GitHub Desktop.
(function () {
var reverse = [];
var elm1 = document.querySelector('#archives').querySelectorAll("li");
var i=0;
for(i=0;i<=elm1.length-1;i++){reverse.unshift(elm1[i].innerHTML)}
for(i=0;i<=elm1.length-1;i++){elm1[i].innerHTML=reverse[i]}
})();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment