Skip to content

Commit f904a2c

Browse files
committed
fix that powered by category was not opened
1 parent 9b86c3c commit f904a2c

3 files changed

Lines changed: 22 additions & 18 deletions

File tree

‎css/stylesheet.css‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ button {
4545
}
4646

4747
button:hover {
48-
background: rgba(0, 0, 0, .15);
48+
background: rgba(0, 0, 0, .15) !important;
4949
}
5050

5151
button.active {

‎index.html‎

Lines changed: 18 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -40,23 +40,24 @@ <h3>
4040
<a href="https://github.com/parkjs814/AlgorithmVisualizer/wiki">
4141
<button><i class="fa fa-book"></i> Documentation</button>
4242
</a>
43-
<button class="category"><i class="fa fa-github"></i> Powered by ...</button>
44-
<a href="https://github.com/jquery/jquery">
45-
<button class="indent">jquery/jquery</button>
46-
</a>
47-
<a href="https://github.com/ajaxorg/ace">
48-
<button class="indent">ajaxorg/ace</button>
49-
</a>
50-
<a href="https://github.com/jacomyal/sigma.js">
51-
<button class="indent">jacomyal/sigma.js</button>
52-
</a>
53-
<a href="https://github.com/FortAwesome/Font-Awesome">
54-
<button class="indent">FortAwesome/Font-Awesome</button>
55-
</a>
56-
<a href="https://github.com/simonwhitaker/github-fork-ribbon-css">
57-
<button class="indent">simonwhitaker/github-fork-ribbon-css</button>
58-
</a>
59-
43+
<button class="category" id="powered-by"><i class="fa fa-github"></i> Powered by ...</button>
44+
<div id="powered-by-list">
45+
<a href="https://github.com/jquery/jquery">
46+
<button class="indent">jquery/jquery</button>
47+
</a>
48+
<a href="https://github.com/ajaxorg/ace">
49+
<button class="indent">ajaxorg/ace</button>
50+
</a>
51+
<a href="https://github.com/jacomyal/sigma.js">
52+
<button class="indent">jacomyal/sigma.js</button>
53+
</a>
54+
<a href="https://github.com/FortAwesome/Font-Awesome">
55+
<button class="indent">FortAwesome/Font-Awesome</button>
56+
</a>
57+
<a href="https://github.com/simonwhitaker/github-fork-ribbon-css">
58+
<button class="indent">simonwhitaker/github-fork-ribbon-css</button>
59+
</a>
60+
</div>
6061
</div>
6162
<a class="github-fork-ribbon left-bottom" href="http://github.com/parkjs814/AlgorithmVisualizer"
6263
title="Fork me on GitHub">Fork me on GitHub</a>

‎js/script.js‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -178,6 +178,9 @@ $.getJSON('./algorithm/category.json', function (data) {
178178
})(category);
179179
}
180180
});
181+
$('#powered-by').click(function () {
182+
$('#powered-by-list button').toggleClass('collapse');
183+
});
181184

182185
var sidemenu_percent;
183186
$('#navigation').click(function () {

0 commit comments

Comments
 (0)