Skip to content
Snippets Groups Projects
Commit 0d0c06cf authored by Diego Sampaio's avatar Diego Sampaio
Browse files

Add RTL switch to fontello demo page

parent e851cca6
No related branches found
No related tags found
No related merge requests found
......@@ -236,7 +236,9 @@ body {
font-weight: normal;
font-style: normal;
}
.rtl .demo-icon {
direction: rtl;
}
.demo-icon
{
......@@ -286,6 +288,13 @@ body {
}
}
function toggleRTL(check) {
if (check.checked) {
document.getElementById('icons').classList.add('rtl');
} else {
document.getElementById('icons').classList.remove('rtl');
}
}
</script>
</head>
<body>
......@@ -294,9 +303,14 @@ body {
fontello
<small>font demo</small>
</h1>
<label class="switch">
<input type="checkbox" onclick="toggleCodes(this.checked)">show codes
</label>
<div class="switch">
<label>
<input type="checkbox" onclick="toggleCodes(this.checked)">show codes
</label>
<label>
<input type="checkbox" onclick="toggleRTL(this)">RTL
</label>
</div>
</div>
<div id="icons" class="container">
<div class="row">
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment