You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I force the resolution it seems to work, but if I don't, it doesn't.
Works when I do: document.cookie='resolution=480'; path=/';
Does not work, when I do: document.cookie='resolution='+Math.max(screen.width,screen.height)+'; path=/';
I've got the line before any other javascript. htaccess and adaptive-images is working due to it correctly resizing and stored in ai-cache when forcing the resolution..So I can only guess that the other snippet is not actually getting the resolution correctly? Like it's not correctly doing number 5 in the details instructions: "The PHP file looks for a cookie and finds that the user has a maximum screen size of 480px." How can I test what resolution it's picking up? What "cookie" is this referring to as its source for resolution?
The text was updated successfully, but these errors were encountered:
Can't seem to get this to work.
If I force the resolution it seems to work, but if I don't, it doesn't.
Works when I do:
document.cookie='resolution=480'; path=/';
Does not work, when I do:
document.cookie='resolution='+Math.max(screen.width,screen.height)+'; path=/';
I've got the line before any other javascript. htaccess and adaptive-images is working due to it correctly resizing and stored in ai-cache when forcing the resolution..So I can only guess that the other snippet is not actually getting the resolution correctly? Like it's not correctly doing number 5 in the details instructions: "The PHP file looks for a cookie and finds that the user has a maximum screen size of 480px." How can I test what resolution it's picking up? What "cookie" is this referring to as its source for resolution?
The text was updated successfully, but these errors were encountered: