I AM LISTENING TO
|
START
BUCHE MICH
LEISTUNGEN
PORTFOLIO
PODCAST
KONTAKT
DATENSCHUTZ
WAS ICH LIEBE
START
BUCHE MICH
LEISTUNGEN
PORTFOLIO
PODCAST
KONTAKT
DATENSCHUTZ
AGB
BLOG FILTER
ALL
Consulting
Design
SVG
Development
API
Adwords
Analytics
Bootstrap
CSS
Database
Deployment
Essentials
HTML5
Home Automation
Hosting
IoT
Javascript
LMS
Magento
Mobile
PHP
Python
Realbasic
Ruby
Security
WebRTC
WordPress
SEO / Structured Data
Flexbox
Pre-processor
SASS
AMP
AngularJS
Backbone
Horizontal Accordion
Node.js
Polyfill
jQuery
TWIG
ACF
AMP-WP
Gutenberg
Timber
Visual Composer
WPLMS
Shopping
General
Alex
DIY
Tech
Hardware
Games
LED
Mac OSX
Streaming
Backbone
SASS
Custom Design
HTML5
Podcast
Hardware
Node.js
Webdesign
Strategy
Flexbox
Audit
Maintenance
Localization
Portfolio
Design
Timber
General
WebRTC
Adwords
Hosting
CSS Grid
Development
Dorit
Documentation
Consulting
IoT
Javascript
Visual Composer
Video production
Learning Management System
Solutions
WPML
Consulting
Shopping
AMP
AMP-WP
PMS
ACF
Mobile
Development
WordPress
Essentials
DIVI
Mac OSX
Magento
Gutenberg
Pre-processor
eCommerce / Shopping
Polyfill
Bootstrap
Setup
Portfolio TV
Data Import / Export
Games
TWIG
Tech
Analytics
CSS
Realbasic
Security
Python
LED
DIY
Changelog
AngularJS
Horizontal Accordion
Print
Audio production
SEO / Structured Data
LMS
WebTV / Internet TV / Podcast
Streaming
Database
jQuery
API
Quality Management
Planning
Ruby
WPLMS
Elementor
Home Automation
SVG
Deployment
WordPress
WPML
SEO / Structured Data
WebVR
Alex
Hosting
PHP
Home
•
Archives for
•
Archives for
•
Archives for
18. Januar 2015
Simple function to randomly reorder a list
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]); } }
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
]
)
;
}
}
readmore
♩
♪
♫
♬
♩
♪
♫
♬