dynamic zoom

This commit is contained in:
Andrey Kuvshinov
2020-05-21 14:19:20 +03:00
parent 30b4a6209c
commit 7aacafae8e
2 changed files with 6 additions and 1 deletions

View File

@@ -216,6 +216,11 @@ function promo_kuri($hash, $page = 0, $promo = true){
$pagenum = 1; $pagenum = 1;
$newcurr = strtotime($price['BeginDate']); $newcurr = strtotime($price['BeginDate']);
if ($price['category_id'] ==3)
$scale = 2;
else
$scale = 1;
if ($promo){ if ($promo){
$filedown = True; $filedown = True;

View File

@@ -1,7 +1,7 @@
<script> <script>
var pdfDoc = null, var pdfDoc = null,
pageNum = <?=$pagenum?>, pageNum = <?=$pagenum?>,
scale = 1, scale = <?=$scale?>,
baseurl ='<?=$baseurl?>', baseurl ='<?=$baseurl?>',
url = '<?=$pdfile?>', url = '<?=$pdfile?>',
pageRendering = false, pageRendering = false,