allenhzy commited on
Commit
50238de
1 Parent(s): e82af3f
Files changed (1) hide show
  1. index.html +3 -3
index.html CHANGED
@@ -32,17 +32,17 @@
32
  <script id="MathJax-script" async src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js"></script>
33
 
34
  <script>
35
- $('#adaptive-loss-formula-list > a').on('click', function(e) {
36
  e.preventDefault();
37
  if (!$(this).hasClass('selected')) {
38
 
39
- print('event')
40
  $('.formula').hide(200);
41
  $('.formula-list > a').removeClass('selected');
42
  $(this).addClass('selected');
43
  var target = $(this).attr('href');
44
  // alert(target)
45
- print(target)
46
  $(target).show(200);
47
  }
48
  });
 
32
  <script id="MathJax-script" async src="https://cdn.jsdelivr.net/npm/mathjax@3/es5/tex-mml-chtml.js"></script>
33
 
34
  <script>
35
+ $('#adaptive-loss-formula-list').on('click', 'a', function(e) {
36
  e.preventDefault();
37
  if (!$(this).hasClass('selected')) {
38
 
39
+ console.log('event')
40
  $('.formula').hide(200);
41
  $('.formula-list > a').removeClass('selected');
42
  $(this).addClass('selected');
43
  var target = $(this).attr('href');
44
  // alert(target)
45
+ console.log(target)
46
  $(target).show(200);
47
  }
48
  });