100 lines
2.9 KiB
PHTML
100 lines
2.9 KiB
PHTML
<script>
|
|
var pdfDoc = null,
|
|
pageNum = <?=$pagenum?>,
|
|
category = <?=$category?>,
|
|
baseurl ='<?=$baseurl?>',
|
|
url = '<?=$pdfile?>?ver=2',
|
|
pageRendering = false,
|
|
pageNumPending = null,
|
|
nexturl = '<?=$nexturl?>?ver=2',
|
|
newcurr ='<?=$newcurr?>?ver=2',
|
|
prevurl = '<?=$prevurl?>?ver=2';
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<div id="the-canvas">
|
|
<noscript>
|
|
<embed src="<?=$pdfile?>" width="100%" type="application/pdf" style="height: 100vh;">
|
|
</noscript>
|
|
</div>
|
|
|
|
<script>startpdfviewer(newcurr);
|
|
|
|
var canvasDiv = document.getElementById('the-canvas');
|
|
|
|
canvasDiv.addEventListener('click', function() {
|
|
window.location.href = nexturl;
|
|
});
|
|
|
|
canvasDiv.addEventListener('dblclick', function(event) {
|
|
event.stopPropagation();
|
|
window.location.href = prevurl;
|
|
});
|
|
|
|
</script>
|
|
|
|
|
|
<div id="stuff-bar">
|
|
|
|
<a href="<?=SITE?>"><i class="fas fa-home"></i></a>
|
|
|
|
<div id="zoomnav">
|
|
<div id="title_minus" onclick="resize_minus()">
|
|
<span><i class="fas fa-search-minus"></i></span>
|
|
</div>
|
|
|
|
<div id="title_plus" onclick="resize_plus()">
|
|
<span><i class="fas fa-search-plus"></i></span>
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div id="pagenav">
|
|
<?if (isset($prevurl)):?>
|
|
<div class="firstpage">
|
|
<a href="<?=$baseurl?>1">
|
|
<i class="fas fa-angle-double-left"></i>
|
|
</a>
|
|
</div>
|
|
<div class="navpage"><a href="<?=$prevurl?>"><i class="fas fa-chevron-circle-left"></i></a></div>
|
|
<?endif?>
|
|
|
|
<div id="currpage">
|
|
<select id="pages" onchange="changepage()">
|
|
<?for ($i = 1; $i <= $count; $i++):?>
|
|
<?$selected = ($page == $i) ? ' selected' : ''?>
|
|
<option value="<?=$i?>"<?=$selected?>><?=$i?></option>
|
|
<?endfor?>
|
|
</select>
|
|
<i class="fas fa-chevron-down"></i>
|
|
</div>
|
|
|
|
<?if (isset($nexturl)):?>
|
|
<div class="navpage"><a href="<?=$nexturl?>"><i class="fas fa-chevron-circle-right"></i></a></div>
|
|
<?if (isset($endurl)):?>
|
|
<div class="navpage"><a href="<?=$endurl?>"><i class="fas fa-angle-double-right"></i></a></div>
|
|
<?endif?>
|
|
<?endif?>
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<p id="downloadtitle">
|
|
<?if ($promo == 'pr'):?>
|
|
<a href="https://argumenti.ru/robomail/486?utm_source=argumenti.ru&utm_medium=subscript&utm_campaign=promo" target="_blank">Получайте «Газету на @email»</a>
|
|
<?else:?>
|
|
<?if ($filedown):?>
|
|
<a href="<?=$fullpdf?>?ver=1" target="_blank"><?=$downtitle?></a>
|
|
<?endif?>
|
|
<?endif?>
|
|
<?if ($category == 1):?>
|
|
<span id="downarrow">/ <a href="<?=$htmlurl?>">режим PDF</a></span>
|
|
<span id="downarrow">/ <a href="<?=$htmlurl?>">Режим для чтения</a></span>
|
|
<?endif?>
|
|
</p>
|
|
|
|
|
|
|