CMP-Opdracht12

Size
2,241 Kb
Views
40,480

How do I make an cmp-opdracht12?

What is a cmp-opdracht12? How do you make a cmp-opdracht12? This script and codes were developed by Sanne Van Gastel on 30 July 2022, Saturday.

CMP-Opdracht12 Previews

CMP-Opdracht12 - Script Codes HTML Codes

<!DOCTYPE html>
<html >
<head> <meta charset="UTF-8"> <title>CMP-Opdracht12</title> <link rel="stylesheet" href="css/style.css">
</head>
<body> <h1>Let's Play A Game</h1>
<p>Put the artists in alphabetical order</p>
<div class='output'></div>
<div class="container"> <div class='a'>Nightwish</div> <div class='a'>Muse</div> <div class='a'>David Bowie</div> <div class='a'>Foo Fighters</div> <div class='a'>Within Temptation</div> <div class='a'>Halestorm</div> <div class='a'>Tegan and Sara</div> <div class='a'>Delain</div> <div class='a'>Nirvana</div> <div class='a'>Lacuna Coil</div> <div class='a'>Three Days Grace</div> <div class='a'>Laura Jansen</div>
</div> <script src='https://cdnjs.cloudflare.com/ajax/libs/dragula/3.7.2/dragula.min.js'></script> <script src="js/index.js"></script>
</body>
</html>

CMP-Opdracht12 - Script Codes CSS Codes

.gu-transit { opacity: 0.2; -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=20)"; filter: alpha(opacity=20);
}
body{ width: 50%; margin: auto; font-family: 'Roboto', sans-serif;
}
.container{ list-style-type: none; }
.a{ background-color: coral; margin: 0.5em 1em 0.5em 0; padding: 0.5em; border-radius: 0.2em;
}
.output{ display: none;
}
.ex-moved { background-color: lightgrey;
}

CMP-Opdracht12 - Script Codes JS Codes

function main() { dragula([document.querySelector('.container')]) .on('drop', function() { var mijnOutput = document.getElementsByClassName("output")[0]; var mijnDivs = document.getElementsByClassName("container")[0].children; var teller = 0; var mijnString = ""; while (teller < mijnDivs.length) { mijnString += mijnDivs[teller].innerHTML + ", "; teller++; } mijnOutput.innerHTML = mijnString.substring(0, mijnString.length-2); });
}
window.onload = function() { main();
}
CMP-Opdracht12 - Script Codes
CMP-Opdracht12 - Script Codes
Home Page Home
Developer Sanne Van Gastel
Username SannevanGastel
Uploaded July 30, 2022
Rating 3
Size 2,241 Kb
Views 40,480
Do you need developer help for CMP-Opdracht12?

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!

Sanne Van Gastel (SannevanGastel) Script Codes
Create amazing Facebook ads 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!