Skip to content

Commit eeea7db

Browse files
author
nivida
committed
Zoom++
1 parent 84e9471 commit eeea7db

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

heart.js

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,14 @@
11
var mapData = [];
22
jQuery(document).ready(function()
33
{
4-
if (location.search != "")
4+
var xScale = $(window).width() / 640;
5+
var yScale = $(window).height() / 530;
6+
7+
var scale = Math.floor(Math.max(1,Math.min(xScale, yScale)));
8+
9+
$('#wrapper').css('zoom', scale);
10+
11+
if (location.search != "")
512
{
613
var queryString = location.search.split("=");
714
data.currentLevel = parseInt(queryString[1]);

0 commit comments

Comments
 (0)