Skip to content
This repository has been archived by the owner on Jan 21, 2020. It is now read-only.

Commit

Permalink
Merge pull request #1211 from njam/issue-1211
Browse files Browse the repository at this point in the history
Send viewport size as custom variable to Revive
  • Loading branch information
njam committed May 13, 2014
2 parents 7b678ab + 0ade78f commit 2068b4f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions client-vendor/after-body/jquery.openx/jquery.openx.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,9 @@
src += "&mmm_fo=1";
}

variables['window-width'] = $(window).width();
variables['window-height'] = $(window).height();

var variablesQuery = encodeUrlQuery(variables);
if ('' !== variablesQuery) {
src += '&' + variablesQuery;
Expand Down

0 comments on commit 2068b4f

Please sign in to comment.