I AM LISTENING TO
|
  • HOME
  • BOOK ME
  • SERVICES
  • PORTFOLIO
  • BLOG
  • PODCAST
  • CONTACT
  • DATA PRIVACY
WHAT I LIKE
  • English
  • German
  • HOME
  • BOOK ME
  • SERVICES
  • PORTFOLIO
  • BLOG
  • PODCAST
  • CONTACT
  • DATA PRIVACY
  • AGB
Development Javascript

Simple function to randomly reorder a list

18. January 2015






Home » Development » Simple function to randomly reorder a list


1
2
3
4
5
6
7
var reorder = function(selector){
var ul = document.querySelector(selector);
for (var i = ul.children.length; i >= 0; i--) {
     ul.appendChild(ul.children[Math.random() * i | 0]);
}
  
  }




Subscribe
Notify of
guest
I allow portalzine.de the storage of my data. To keep track of comments and prevent abuse, we'll store the name, email, comment, and IP address and timestamp of your comment. You can delete your comments later at any time. Detailed information can be found in our Privacy Policy.
guest
I allow portalzine.de the storage of my data. To keep track of comments and prevent abuse, we'll store the name, email, comment, and IP address and timestamp of your comment. You can delete your comments later at any time. Detailed information can be found in our Privacy Policy.
0 Comments
Inline Feedbacks
View all comments



team_alex

Alexander Gräf

Portfolio

Book Me

Get in touch

Live Chat

Alexander

I am a full-stack developer. My expertise include:

  • Server, Network and Hosting Environments
  • Data Modeling / Import / Export
  • Business Logic
  • API Layer / Action layer / MVC
  • User Interfaces
  • User Experience
  • Understand what the customer and the business needs

 

I love programming,  design and know my way around server architecture as well.  I would never feel complete, with one of these missing.

I have a broad range of interests, that’s why I constantly dive into new technologies and expand my knowledge where ever required. Technologies are evolving fast and I enjoy using the latest.

Apart from that, I am a peace loving guy who tries to have people around him that think the same.  I truly believe in the principle: “If you help someone, someone will help you, when you need it."

Services
Previous Next

Flexbox Patterns … components build to flex
jQuery Stuck it to them :)
OpenLog – track console errors & warnings in real time with Node
vUnit – microlib that allows you to size elements based on the viewport dimensions


  • ♩
  • ♪
  • ♫
  • ♬
  • ♩
  • ♪
  • ♫
  • ♬


Stettiner Str. Nord 20
49624 Löningen
Germany
Telefon +49 (0) 5432 904243

ideas@portalzine.de


© 2002-2022 portalZINE® NMN. All rights reserved.

wpDiscuz