<!DOCTYPE html>
<
html
lang
=
"en"
>
<
head
>
<
meta
charset
=
"UTF-8"
/>
<
meta
http-equiv
=
"X-UA-Compatible"
content
=
"IE=edge"
/>
<
meta
name
=
"viewport"
content
=
"width=device-width, initial-scale=1.0"
/>
<
link
rel
=
"stylesheet"
href
=
<
script
type
=
"module"
src
=
</
script
>
<
script
nomodule
=
""
src
=
</
script
>
</
script
>
</
head
>
<
body
>
<
center
>
<
h1
style
=
"color:green"
>GeeksforGeeks</
h1
>
<
strong
>Blaze UI Pillar Boxes</
strong
>
</
center
>
<
div
class
=
"u-pillar-box-super"
></
div
>
<
div
style="border-width:1px;
border-color:black; border-style:solid;">
<
div
style
=
"display: flex;"
>
<
div
class
=
"item"
style="border-width:1px;
border-color:green; border-style:solid;">
Car
</
div
>
<
div
class
=
"item"
style="border-width:1px;
border-color:green; border-style:solid;">
Chair
</
div
>
<
div
class
=
"item"
style="border-width:1px;
border-color:green; border-style:solid;">
Ludo
</
div
>
</
div
>
</
div
>
<
center
style
=
"padding:4px;"
>
<
button
class="c-button c-button--success
u-small"
onclick
=
"toggleStyle(0)"
>
Super
</
button
>
<
button
class="c-button c-button--success
u-small"
onclick
=
"toggleStyle(1)"
>
Xlarge
</
button
>
<
button
class="c-button c-button--success
u-small"
onclick
=
"toggleStyle(2)"
>
Large
</
button
>
<
button
class="c-button c-button--success
u-small"
onclick
=
"toggleStyle(3)"
>
Medium
</
button
>
<
button
class="c-button c-button--success
u-small"
onclick
=
"toggleStyle(4)"
>
Small
</
button
>
<
button
class="c-button c-button--success
u-small"
onclick
=
"toggleStyle(5)"
>
Xsmall
</
button
>
<
button
class="c-button c-button--success
u-small"
onclick
=
"toggleStyle(6)"
>
Tiny
</
button
>
<
button
class="c-button c-button--success
u-small"
onclick
=
"toggleStyle(7)"
>
None
</
button
>
</
center
>
<
script
>
const pillarStyles = [
'u-pillar-box-super',
'u-pillar-box-xlarge',
'u-pillar-box-large',
'u-pillar-box-medium',
'u-pillar-box-small',
'u-pillar-box-xsmall',
'u-pillar-box-tiny',
'u-pillar-box-none',
]
let current = pillarStyles[0]
$('.item').addClass(current)
function toggleStyle(index) {
$('.item').removeClass(current)
current = pillarStyles[index]
$('.item').addClass(current)
}
</
script
>
</
body
>
</
html
>