Skip to content

Commit 8967e96

Browse files
committed
remove jQuery
1 parent 2989d12 commit 8967e96

File tree

1 file changed

+0
-29
lines changed

1 file changed

+0
-29
lines changed

_layouts/default.html

Lines changed: 0 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -14,34 +14,5 @@
1414

1515
<div id="page-top"><a href="#top"><img src="/img/svg/up.svg" alt="Up" width="24px" /></a></div>
1616
{% include footer.html %}
17-
18-
<script>
19-
window.onload = function() {
20-
var agent = window.navigator.userAgent.toLowerCase();
21-
var ie11 = (agent.indexOf('trident/7') !== -1);
22-
if(ie11){
23-
var spimg = document.getElementsByClassName("sponsors-rank-img");
24-
for(var i = 0; i < spimg.length; i++) {
25-
spimg[i].style.height = "auto";
26-
spimg[i].style.maxHeight = "none";
27-
}
28-
}
29-
var btn = $('#page-top');
30-
//スクロールしてページトップから100に達したらボタンを表示
31-
$(window).on('load scroll', function(){
32-
if($(this).scrollTop() > 100) {
33-
btn.addClass('active');
34-
}else{
35-
btn.removeClass('active');
36-
}
37-
});
38-
39-
$('.navbar-nav > a , .dropdown-menu>a').on('click', function(){
40-
if(this.id != 'navbarDropdown'){
41-
$('.navbar-collapse').collapse('hide');
42-
}
43-
});
44-
}
45-
</script>
4617
</body>
4718
</html>

0 commit comments

Comments
 (0)