metro4
Version:
The front-end framework for Build responsive, mobile-first projects on the web with the first front-end component library in Metro Style
75 lines (68 loc) • 2.9 kB
HTML
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
<link href="../metro/css/metro-all.css?ver=@@b-version" rel="stylesheet">
<title>Test Accordion - Metro 4 :: Popular HTML, CSS and JS library</title>
</head>
<body class="m4-cloak">
<div class="container">
<h1>Accordion test page</h1>
<h3>Role</h3>
<div data-role="accordion" id="a1">
<div class="frame">
<div class="heading">Header 1</div>
<div class="content">
<div class="p-2">Cur luba manducare? Pol, a bene ionicis tormento. Warm, sichuan-style pudding is best garnished with aged BBQ sauce.</div>
</div>
</div>
<div class="frame active">
<div class="heading">Header 2</div>
<div class="content">
<div class="p-2">Wildly open a starship. Belay, ye small wench- set sails for hunger! Springy, juicy pudding is best blended with whole ice water.</div>
</div>
</div>
<div class="frame">
<div class="heading">Header 3</div>
<div class="content">
<div class="p-2">Bitter turkey can be made tasty by brushing with sweet chili sauce. Popcorn combines greatly with grey peanut butter.</div>
</div>
</div>
</div>
<br>
<h3>Runtime</h3>
<div id="a2">
<div class="frame">
<div class="heading">Header 1</div>
<div class="content">
<div class="p-2">Cur luba manducare? Pol, a bene ionicis tormento. Warm, sichuan-style pudding is best garnished with aged BBQ sauce.</div>
</div>
</div>
<div class="frame active">
<div class="heading">Header 2</div>
<div class="content">
<div class="p-2">Wildly open a starship. Belay, ye small wench- set sails for hunger! Springy, juicy pudding is best blended with whole ice water.</div>
</div>
</div>
<div class="frame">
<div class="heading">Header 3</div>
<div class="content">
<div class="p-2">Bitter turkey can be made tasty by brushing with sweet chili sauce. Popcorn combines greatly with grey peanut butter.</div>
</div>
</div>
</div>
</div>
<script>
window.addEventListener('metroinitiated', function() {
console.log('ku');
})
</script>
<script src="../metro/js/metro.js?ver=@@b-version"></script>
<script>
$(function(){
$("#a2").accordion();
})
</script>
</body>
</html>