This commit is contained in:
rulingcom 2023-02-10 09:06:30 +08:00
parent ed254c1792
commit c409eab1db
2 changed files with 34 additions and 21 deletions

View File

@ -11,6 +11,11 @@
this.replaceWith(new_html); this.replaceWith(new_html);
} }
}); });
try{
var isMobile = (window.matchMedia ? window.matchMedia("(any-pointer:coarse)").matches : ("ontouchstart" in document.documentElement));
}catch(e){
var isMobile = false;
}
function fix_first_element(force_fix) { function fix_first_element(force_fix) {
if(!force_fix && window.already_fix_first_element){ if(!force_fix && window.already_fix_first_element){
return; return;
@ -706,6 +711,7 @@ function transdate(){
window.temp_scrollY = document.documentElement.scrollTop; window.temp_scrollY = document.documentElement.scrollTop;
window.temp_scrollX = document.documentElement.scrollLeft; window.temp_scrollX = document.documentElement.scrollLeft;
} }
if(!isMobile){
$(document).on('focusin','*',function(event){ $(document).on('focusin','*',function(event){
// event.stopPropagation(); // event.stopPropagation();
if(window.focus_timeout_id){ if(window.focus_timeout_id){
@ -733,6 +739,7 @@ function transdate(){
} }
} }
}); });
}
$('.group').each(function(){ $('.group').each(function(){
if ($(this).text().trim()==''){ if ($(this).text().trim()==''){
$(this).css('padding',0); $(this).css('padding',0);

View File

@ -147,12 +147,18 @@ body{
.w-ba-banner{ .w-ba-banner{
display: flex; display: flex;
flex-direction: row-reverse; flex-direction: row-reverse;
align-items: center;
.w-ba-banner__wrap{ .w-ba-banner__wrap{
flex: 0 0 65%; flex: 0 0 65%;
} }
.ad-overlay{ .ad-overlay{
position: relative; position: relative;
background: none; background: none;
width: 35%;
p{
max-width: 100%;
overflow-wrap: break-word;
}
} }
} }
} }