Skip to content

Commit

Permalink
update index
Browse files Browse the repository at this point in the history
  • Loading branch information
abakaldin committed Mar 3, 2022
1 parent 79a253d commit 18a6f56
Show file tree
Hide file tree
Showing 833 changed files with 7,439 additions and 4,143 deletions.
8 changes: 5 additions & 3 deletions .github/jekyll/_layouts/template.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ <h2 class="h2">Available versions</h2>
{% assign vers = site.data.zabbix_templates[page.folder].versions %}
{% for vr in vers %}
<li>
<a class="js_tab" id="ver_{{ vr.version | replace: " .", "_" }}" href="#body">ver. {{ vr.version }}
<a class="js_tab" id="ver_{{ vr.version | replace: ".", "_" }}" href="#body">ver. {{ vr.version }}
</a>
</li>
{% endfor %}
Expand All @@ -50,14 +50,16 @@ <h2 class="h2">Available versions</h2>
<script>
(function () {
{% assign last_vers = vers | last %}
console.log('#content_ver_{{ last_vers.version | replace: ".", "_"}}');
console.log('#ver_{{ last_vers.version | replace: ".", "_" }}');
//console.log('#content_ver_{{ last_vers.version | replace: ".", "_"}}');
//console.log('#ver_{{ last_vers.version | replace: ".", "_" }}');
$('.readme').hide();
$('#content_ver_{{ last_vers.version | replace: ".", "_" }}').fadeIn('slow');
$('#ver_{{ last_vers.version | replace: ".", "_" }}').addClass('active');

{% for vr in vers %}
$('#ver_{{ vr.version | replace: ".", "_" }}').click(function () {
//console.log('#content_ver_{{ vr.version | replace: ".", "_" }}');
//console.log('#ver_{{ vr.version | replace: ".", "_" }}');
$('.readme').hide();
$('#content_ver_{{ vr.version | replace: ".", "_" }}').fadeIn('slow');
$('.js_tab').removeClass('active')
Expand Down
Loading

0 comments on commit 18a6f56

Please sign in to comment.