-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcompetition.js
33 lines (29 loc) · 1.11 KB
/
competition.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
$(document).on('mouseenter', '.onetex' ,function(e) {
$('.one, .oneone, .oneonetwo, .onetwo').css('display', 'block');
$('.two, .twoone, .twotwo').css('display', 'none');
$('.thi, .thione').css('display', 'none');
})
$(document).on('mouseenter', '.twotex' ,function(e) {
$('.one, .oneone, .oneonetwo, .onetwo').css('display', 'none');
$('.two, .twoone, .twotwo').css('display', 'block');
$('.thi, .thione').css('display', 'none');
})
$(document).on('mouseenter', '.thitex' ,function(e) {
$('.one, .oneone, .oneonetwo, .onetwo').css('display', 'none');
$('.two, .twoone, .twotwo').css('display', 'none');
$('.thi, .thione').css('display', 'block');
})
function WeightChange(a){
$(document).ready(function(){
$(a).hover(function(){
$(a).css('font-weight', '700');
}, function(){
$(a).css('font-weight', '500');
})})
}
WeightChange('.oneone');
WeightChange('.oneonetwo');
WeightChange('.onetwo');
WeightChange('.twoone');
WeightChange('.twotwo');
WeightChange('.thione');