correct nav book

This commit is contained in:
arlemp@selectel.ru
2024-05-31 18:45:45 +03:00
parent 4189d0e19f
commit d82fbdaf8f
5 changed files with 29 additions and 12 deletions

View File

@@ -311,16 +311,26 @@ h1 {
color: white;
font-size: 1.4em;
justify-content: center;
padding-left: 6px;
}
#stuff-bar a {
color: white;
}
#zoomnav, #pagenav {
width: 45%;
display: flex;
justify-content: center;
align-items: center;
}
#zoomnav{
width: 40%;
}
#pagenav {
width: 60%;
}
#zoomnav div, #pagenav div {
margin-right: 15px;
}
@@ -359,6 +369,11 @@ h1 {
font-size: 1.2em;
}
.click-info{
font-size: .8em;
text-align: right;
}
.book_small{
position:relative;
}
@@ -616,7 +631,6 @@ embed[type="application/pdf"] {
margin-right: 0px;
}
#zoomnav, #pagenav {
width: 100%;
font-size: 1.3em;
}
.zoomstatus{

View File

@@ -7,7 +7,7 @@ function renderPage() {
var el_title = document.getElementById('pdfprogress');
//el_title.innerHTML = 'Идет подготовка страницы ...';
el_title.innerHTML = 'Идет подготовка страницы ...';
pageRendering = true;
// Using promise to fetch the page
@@ -34,6 +34,8 @@ function renderPage() {
canvas.height = viewport.height;
canvas.width = viewport.width;
canvas.innerHTML = '';
// Render PDF page into canvas context
var renderContext = {
canvasContext: context,
@@ -50,7 +52,7 @@ function renderPage() {
pageNumPending = null;
}
// el_title.innerHTML = '';
el_title.innerHTML = '';
});
});

View File

@@ -290,8 +290,8 @@ function read_kuri($hash, $page = 0, $promo = 'full', $version = null){
if ($page > 1) {
//$title = $price['pricename']." / $page стр.";
$title = $price['pricename'];
$title = $price['pricename']." / стр. $page - Аргументы Недели";
//$title = $price['pricename'];
$prevpage = $page - 1;
$prevurl = "$baseurl$prevpage";
if ($promo == 'full'){

View File

@@ -13,8 +13,8 @@
</script>
<div id="the-canvas">
<div id="pdfprogress"></div>
<noscript>
<embed src="<?=$pdfile?>" width="100%" type="application/pdf" style="height: 100vh;">
</noscript>
@@ -68,7 +68,6 @@
<option value="<?=$i?>"<?=$selected?>><?=$i?></option>
<?endfor?>
</select>
<i class="fas fa-chevron-down"></i>
</div>
<?if (isset($nexturl)):?>
@@ -81,6 +80,7 @@
</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>
@@ -92,8 +92,9 @@
<?if ($category == 1):?>
<span id="downarrow">/ <a href="<?=$htmlurl?>">режим PDF</a></span>
<span id="downarrow">/ <a href="<?=$htmlurl?>">Режим для чтения</a></span>
<?endif?>
</p>
<?endif?>
</p>
<p class="click-info"><i class="fa fa-mouse-pointer" aria-hidden="true"></i> кликайте чтобы листать страницы</p>

View File

@@ -4,8 +4,8 @@
<//base href="<?=SITE?>">
<script src="/pub/scripts/pdf.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/mobile-detect/1.4.4/mobile-detect.min.js"></script>
<script src="/pub/scripts/klanviewer.js?ver=39"></script>
<link rel="stylesheet" type="text/css" href="/pub/css/an.css?ver=253">
<script src="/pub/scripts/klanviewer.js?ver=43"></script>
<link rel="stylesheet" type="text/css" href="/pub/css/an.css?ver=257">
<link rel="shortcut icon" href="/favicon.ico?ver=2" type="image/x-icon" />
<link rel="apple-touch-icon" href="/apple-touch-icon.png?ver=2" />
<link rel="apple-touch-icon" sizes="57x57" href="/apple-touch-icon-57x57.png?ver=2" />