Ignore:
Timestamp:
Mar 14, 2012, 9:19:25 AM (12 years ago)
Author:
patdenice
Message:

Automaticaly set better derivative params for mobile theme according to screen size.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/themes/smartpocket/template/footer.tpl

    r13243 r13545  
    1515</div>
    1616{/if}
     17{footer_script require='jquery'}
     18document.cookie = 'screen_size='+jQuery(document).width()+'x'+jQuery(document).height()+';path={$COOKIE_PATH}';
     19{/footer_script}
    1720{get_combined_scripts load='footer'}
    1821</div><!-- /page -->
Note: See TracChangeset for help on using the changeset viewer.