fix sizing

This commit is contained in:
Manuel Friedli 2014-06-28 15:58:28 +02:00
parent 480736e877
commit 194ebc58de

View file

@ -45,10 +45,13 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
<script type="text/javascript">
(function($) {
var width = $(window).width();
var height = $(window).height();
var size = (width < height ? width : height - 50) + 'px';
var height = $(window).height() - 150;
var size = width < height ? width : height;
if (size < 200) {
size = 200;
}
$('#uhr').uhr({
width: size,
width: size + 'px',
language: 'de_CH',
});
})(jQuery);