source:
extensions/Automatic_Oversize/picture_js.tpl
@
31942
Last change on this file since 31942 was 31834, checked in by , 8 years ago | |
---|---|
File size: 397 bytes |
Rev | Line | |
---|---|---|
[31834] | 1 | {footer_script require='jquery'}{literal} |
2 | jQuery().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.