Commit 5201b95 1 parent de53167 commit 5201b95 Copy full SHA for 5201b95
File tree 3 files changed +6
-6
lines changed
3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 63
63
64
64
<script>
65
65
var win_width = 375;
66
+ var deviation = document.querySelectorAll(".continar,.os-headertop");
66
67
var setFontSize = function() {
67
68
win_width = window.innerWidth;
68
69
if (/Android|webOS|iPhone|iPad|iPod|BlackBerry/i.test(navigator.userAgent) || win_width < 1200) {
75
76
pro = 100
76
77
}
77
78
document.documentElement.style.setProperty("font-size", pro + "px");
78
- // document.documentElement.style.setProperty("transition", "font-size 0.15s");
79
- } else {
80
- documen.querySelectorAll(".continar,.os-headertop").style.transform = "translateX(0)"
79
+ } else if(deviation.length) {
80
+ deviation[0].style.transform = "translateX(0)";
81
81
}
82
82
}
83
83
setFontSize();
Original file line number Diff line number Diff line change 63
63
64
64
<script>
65
65
var win_width = 375;
66
+ var deviation = document.querySelectorAll(".continar,.os-headertop");
66
67
var setFontSize = function() {
67
68
win_width = window.innerWidth;
68
69
if (/Android|webOS|iPhone|iPad|iPod|BlackBerry/i.test(navigator.userAgent) || win_width < 1200) {
75
76
pro = 100
76
77
}
77
78
document.documentElement.style.setProperty("font-size", pro + "px");
78
- // document.documentElement.style.setProperty("transition", "font-size 0.15s");
79
- } else {
80
- documen.querySelectorAll(".continar,.os-headertop").style.transform = "translateX(0)"
79
+ } else if(deviation.length) {
80
+ deviation[0].style.transform = "translateX(0)";
81
81
}
82
82
}
83
83
setFontSize();
You can’t perform that action at this time.
0 commit comments