source: extensions/Automatic_Oversize/picture_js.tpl @ 31844

Last change on this file since 31844 was 31834, checked in by lexming, 7 years ago

Initial commit

File size: 397 bytes
Line 
1{footer_script require='jquery'}{literal}
2jQuery().ready(function() {
3  if (jQuery("#theImage").size() > 0) {
4    function save_available_size() {
5      var width = window.screen.width;
6      var height = window.screen.height;
7
8      document.cookie= 'available_size='+width+'x'+height+';path={/literal}{$COOKIE_PATH}{literal}';
9    }
10    save_available_size();
11  }
12});
13{/literal}{/footer_script}
Note: See TracBrowser for help on using the repository browser.