equation
Browse files- 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
|
36 |
e.preventDefault();
|
37 |
if (!$(this).hasClass('selected')) {
|
38 |
|
39 |
-
|
40 |
$('.formula').hide(200);
|
41 |
$('.formula-list > a').removeClass('selected');
|
42 |
$(this).addClass('selected');
|
43 |
var target = $(this).attr('href');
|
44 |
// alert(target)
|
45 |
-
|
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 |
});
|