fix sizing
This commit is contained in:
parent
480736e877
commit
194ebc58de
1 changed files with 6 additions and 3 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue