A Pen by Martin Baillie

Size
2,210 Kb
Views
4,048

How do I make an a pen by martin baillie?

What is a a pen by martin baillie? How do you make a a pen by martin baillie? This script and codes were developed by Martin Baillie on 25 January 2023, Wednesday.

A Pen by Martin Baillie Previews

A Pen by Martin Baillie - Script Codes HTML Codes

<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>A Pen by Martin Baillie</title> <link rel="stylesheet" href="css/style.css">
</head>
<body> <input type="submit" value="shuffle">
<ul id="numberlist"> <li class="content1">1</li> <li class="content2">2</li> <li class="content3">3</li> <li class="content4">4</li>
</ul> <script src='https://code.jquery.com/jquery-2.2.4.min.js'></script> <script src="js/index.js"></script>
</body>
</html>

A Pen by Martin Baillie - Script Codes CSS Codes

ul { list-style: none; position: relative;
}
li { width: 100px; line-height: 2em; text-align: center; transition: all 1s ease-out;
/* position: absolute; */
/* left: 0; */
}
.content1 { background-color: #eee;
/* top: 0; */
}
.content2 { background-color: #ddd;
/* top: 30px; */
}
.content3 { background-color: #ccc;
/* top: 60px; */
}
.content4 { background-color: #bbb;
/* top: 90px; */
}

A Pen by Martin Baillie - Script Codes JS Codes

var random = function(min, max) { return Math.floor((Math.random() * max) + min); }, shuffle = function(arr) { // https://bost.ocks.org/mike/shuffle/ var i = arr.length, tempValue, randomI; // While there remain elements to shuffle… while (i) { // Pick a remaining element… randomI = Math.floor(Math.random() * i--); // And swap it with the current element. tempValue = arr[i]; arr[i] = arr[randomI]; arr[randomI] = tempValue; } return arr; };
$(function() { $('[value="shuffle"]').on('click', function() { var numbers = []; // $('li').each(function(i, e) { // numbers[i] = $(this).html(); // }); // console.log($('#numberlist').children().first().appendTo('#numberlist')); console.log(shuffle($('#numberlist'))); }); // $('.content1').appendTo('ul').animate({ // top: '30px' // }); // $('.content2').prependTo('ul').animate({ // top: '0px' // });
})();
A Pen by Martin Baillie - Script Codes
A Pen by Martin Baillie - Script Codes
Home Page Home
Developer Martin Baillie
Username martin42
Uploaded January 25, 2023
Rating 3
Size 2,210 Kb
Views 4,048
Do you need developer help for A Pen by Martin Baillie?

Find the perfect freelance services for your business! Fiverr's mission is to change how the world works together. Fiverr connects businesses with freelancers offering digital services in 500+ categories. Find Developer!

Martin Baillie (martin42) Script Codes
Create amazing video scripts with AI!

Jasper is the AI Content Generator that helps you and your team break through creative blocks to create amazing, original content 10X faster. Discover all the ways the Jasper AI Content Platform can help streamline your creative workflows. Start For Free!