Debian Codegraph @

doc/pasdoc/html-parts/castle-engine-website-base/castle-engine.js

raw symbols SCIP
1 'use strict';
2
3 function cge_update_download_size()
4 {
5 var thumbnails = jQuery('.thumbnails');
6 if (thumbnails.length != 0) {
7 var window_width = jQuery(window).width();
8 var download = jQuery('.download');
9 if (window_width > 600) {
10 download.css('max-width', (window_width - 250) + 'px');
11 //console.log('Max size of download: ', download.css('max-width'));
12 } else {
13 // in this case, CSS makes .thumbnails take full page width
14 download.css('max-width', '');
15 //console.log('Max size of download cleared');
16 }
17 }
18 }
19
20 jQuery(window).resize(function() {
21 cge_update_download_size();
22 });
23
24 jQuery(document).ready(function() {
25 cge_update_download_size();
26 });
27
28 jQuery("#toggle-details").click(function() {
29 jQuery("#details").toggle(50);
30 });