<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
<title>Static Template</title>
</head>
<body>
<script>
console.clear();
removeChar("eloquent");
function removeChar(str) {
for (var i = 1; i < str.length - 1; i++) {
console.log(str[i]);
}
}
</script>
</body>
</html>
.burger .burger-list {
display: none;
}
.burger.burger-active .burger-list {
display: block;
}
body {
overflow-x: hidden;
}
<div class="spoiler">
<div class="spoiler__btn">Spoiler</div>
<ul class="spoiler__list">
<li class="spoiler__item" tabindex="-1">First</li>
<li class="spoiler__item" tabindex="-1"><a tabindex="-1" href="tel:+782123">+782123</a></li>
<li class="spoiler__item" tabindex="-1">Third</li>
</ul>
</div>
<div class="another">
<h3>Another Section</h3>
</div>
<div class="spoiler" tabindex="0">
<div class="spoiler__btn">Spoiler</div>
<ul class="spoiler__list" tabindex="0">
<li class="spoiler__item" tabindex="0">First</li>
<li class="spoiler__item" tabindex="0"><a href="tel:+782123">+782123</a></li>
<li class="spoiler__item" tabindex="0">Third</li>
</ul>
</div>
<div class="another">
<h3>Another Section</h3>
</div>
{data[activeIndex].content.copy}