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
var arr = [ 1 , 2 , 3 , 4 , 5 ]; | |
function shuffle( arr ) { | |
var inputArr = arr; | |
var shuffledArr = []; | |
var loops = inputArr.length; | |
var randomNumber; | |
for ( var i = 0; i < loops; i++ ) { | |
randomNumber = Math.floor( Math.random() * ( loops - i ) ); |
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
/*sinceHow | |
@Author Simone Luise | |
@Mail me@simoneluise.com | |
A simple function to calcunate how much time has elapsed since a date. | |
The funcion have only one attribute: "time". | |
Time must be a valid string for generate a new Data() object. Like: |
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
<p><video src="tgif.vid" autoplay controls onerror="failed(event)"></video></p> | |
<p><a href="tgif.vid">Download the video file</a>.</p> |