Skip to content

Instantly share code, notes, and snippets.

View triskweline's full-sized avatar

Henning Koch triskweline

View GitHub Profile
- ofo
- bar
bam
- zzz
Test
- foo
- bar
baz
- bam
Foo
- foo
- bar
code
code
- baz
@triskweline
triskweline / test.html
Created June 24, 2018 07:59
Custom Elements v0 vs. DOMParser
<!doctype html>
<html>
<head>
<title>Custom elements test</title>
</head>
<body>
<h3>Custom elements from HTML</h3>
<ol class="from-html" start="0">
@triskweline
triskweline / jquery_shuffle_children.js
Created November 15, 2018 08:44 — forked from joseluisq/jquery_shuffle_children.js
Shuffle child elements with jQuery
jQuery.fn.shuffleChildren = function(){
var p = this[0];
for (var i = p.children.length; i >= 0; i--) {
p.appendChild(p.children[Math.random() * i | 0]);
}
};