Created
January 4, 2017 20:12
-
-
Save yaasita/7146860b12e2c9bae6e0218693384c03 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(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