web-bugs icon indicating copy to clipboard operation
web-bugs copied to clipboard

mdpr.jp - see bug description

Open kudodo opened this issue 11 years ago • 11 comments

URL: http://mdpr.jp Browser / Version: Firefox 37.0.2 Operating System: Android Problem type: Something else - I'll add details below

Steps to Reproduce

  1. Navigate to: http://mdpr.jp
  2. …

Expected Behavior: There should be menu and Ad displayed in the bottom of the windows.

Actual Behavior: Menu and Ad are not displayed. See screenshots. Country: jp

kudodo avatar May 11 '15 03:05 kudodo

Firefox, No menu and Ads screenshot_2015-05-11-12-41-55

With Chrome, there is a menu and Ad in the bottom of the screen. screenshot_2015-05-11-12-41-20

kudodo avatar May 11 '15 04:05 kudodo

There are additional issues.

on iOS, there is a pink menu which is appearing on the right side when scrolling up at body > div.ui-page.ui-page-theme-a.ui-page-header-fixed.ui-page-active > div.pagetop.overray This is controlled by


function scrollCheck(){var now=$('body').scrollTop();if(now>0) $('.pagetop').fadeIn(1000);else $('.pagetop').fadeOut(500);}
$.extend($.lazyLoadXT,{edgeY:300});
$(function(){$(document).on('scrollstop',function(event){scrollCheck();});
$('.pagetop a.scrollto').click(function(){$('html,body').animate({scrollTop:0},'slow');return false;});
$('.header-logo,.footer-logo').click(function(){location.href='/';return false;});
$('.footer-logo-travel').click(function(){window.open('http://travel.mdpr.jp');return false;});
$('.footer-logo-celebtimes').click(function(){window.open('http://www.celebtimes.net');return false;});
});

For the ads, the Yahoo! banner has a 320 x 0 size. But I didn't yet why it was not populated.

karlcow avatar May 11 '15 16:05 karlcow

I don't get Ads in Chrome, but it may be that Yahoo! Japan doesn't bother to send ads to a US IP? edit: Also not getting ads in iOS Safari, so let's ignore that part of the bug.

As for the missing menu, the scrollstop event that @karlcow showed is part of jQuery Mobile. I don't see any open issues in their tracker related to compat problems. I need a remote debugger to better understand.

miketaylr avatar May 12 '15 14:05 miketaylr

One of the ad scripts is throwing a TypeError on a.srcElement: http://sh.adingo.jp/?G=1000011366&guid=ON

k: function (a) {
        if (null === a.srcElement.offsetParent || 'undefined' === typeof a.srcElement.offsetParent || 'undefined' === typeof a.srcElement.offsetParent.className ||
        a.srcElement.offsetParent.id !== this.overlay_id) null !== this.a && (clearTimeout(this.a), this.a = null),
        this.show()
      },

event.srcElement is a non-standard IE-ism that WebKit implemented. So that might explain the problem (but Chrome and iOS still don't show me ads).

miketaylr avatar May 12 '15 15:05 miketaylr

OK:

function scrollCheck(){
  var now=$('body').scrollTop();
  if(now>0) $('.pagetop').fadeIn(1000);
  else $('.pagetop').fadeOut(500);
 }

In Firefox, $('body').scrollTop() is always 0.

$(document).scrollTop() will return the correct scroll offset across all browsers, so they could change to that to get the site working.

AFAICT, per spec, $('body').scrollTop() should only be non-zero for quirks mode documents. So it seems like the site is just doing something that works in webkit browsers. The recommended fix is to call scrollTop on $(document).

miketaylr avatar May 12 '15 15:05 miketaylr

mdpr aka modelpress belongs to Netnative. They basically run three people sites. The director is 松下 佳憲. It seems there are cooperating with Syngula for the sites.

One of the contact address is [email protected]

Let's try.

karlcow avatar May 19 '15 14:05 karlcow

9 days later still no answer. We should try to find another contact. I'm switching back to needscontact.

karlcow avatar May 28 '15 07:05 karlcow

I will try with the first email on http://net-native.net/contact/c_modelpress/ but I think we still need to find a human contact if possible. I have the feeling the site is not created by them, but probably by an agency. Maybe.

karlcow avatar May 28 '15 07:05 karlcow

Shared this report with their developers.

chikoski avatar Jun 11 '15 11:06 chikoski

Model Press fixed the issue caused by $('body').scrollTop(), which was mentioned at https://github.com/webcompat/web-bugs/issues/1090#issuecomment-101323945

chikoski avatar Jun 17 '15 05:06 chikoski

ok this is fixed. We need now to fix #1264

Thanks to mdpr and @chikoski !! :v:

karlcow avatar Jun 18 '15 05:06 karlcow