add select page
This commit is contained in:
@@ -231,6 +231,13 @@ input[type="email"],input[type="password"]{
|
|||||||
margin-top: 5%;
|
margin-top: 5%;
|
||||||
font-size: 1.2em;
|
font-size: 1.2em;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
#pages{
|
||||||
|
font-size: 150%;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
@media screen and (max-width: 1000px) {
|
@media screen and (max-width: 1000px) {
|
||||||
header .lite-logo {
|
header .lite-logo {
|
||||||
width: 30%;
|
width: 30%;
|
||||||
|
|||||||
@@ -169,4 +169,17 @@ function startpdfviewer(newcurr){
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
function changepage(){
|
||||||
|
|
||||||
|
var e = document.getElementById("pages");
|
||||||
|
var currpage = e.options[e.selectedIndex].value;
|
||||||
|
var newpage = baseurl + currpage;
|
||||||
|
|
||||||
|
location.href = newpage;
|
||||||
|
|
||||||
|
return true;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -10,6 +10,7 @@ function anpromo_kuri($page = 1, $scale = 1){
|
|||||||
|
|
||||||
$file = SITEPATH.'pub/files/source/742.pdf';
|
$file = SITEPATH.'pub/files/source/742.pdf';
|
||||||
$data = pdfs_init($file, $page);
|
$data = pdfs_init($file, $page);
|
||||||
|
$count = $data['count'];
|
||||||
|
|
||||||
$pdfile = SITE.$data['pdfpgurl'];
|
$pdfile = SITE.$data['pdfpgurl'];
|
||||||
|
|
||||||
@@ -32,7 +33,7 @@ function anpromo_kuri($page = 1, $scale = 1){
|
|||||||
$prevurl = "$baseurl$prevpage";
|
$prevurl = "$baseurl$prevpage";
|
||||||
}
|
}
|
||||||
|
|
||||||
$downtitle = 'Если по какой-то причине у вас не загрузилась страница ниже, то нажмите сюда, чтобы скачать pdf';
|
$downtitle = 'Скачать в PDF формате';
|
||||||
|
|
||||||
|
|
||||||
$tempcontent = VIEWPATH.'anpdf2.phtml'; //подшаблон
|
$tempcontent = VIEWPATH.'anpdf2.phtml'; //подшаблон
|
||||||
|
|||||||
@@ -2,6 +2,7 @@
|
|||||||
var pdfDoc = null,
|
var pdfDoc = null,
|
||||||
pageNum = <?=$pagenum?>,
|
pageNum = <?=$pagenum?>,
|
||||||
scale = 1,
|
scale = 1,
|
||||||
|
baseurl ='<?=$baseurl?>',
|
||||||
url = '<?=$pdfile?>',
|
url = '<?=$pdfile?>',
|
||||||
pageRendering = false,
|
pageRendering = false,
|
||||||
pageNumPending = null,
|
pageNumPending = null,
|
||||||
@@ -14,7 +15,7 @@
|
|||||||
<?if ($promo):?>
|
<?if ($promo):?>
|
||||||
<a href="https://argumenti.ru/robomail/486?utm_source=argumenti.ru&utm_medium=subscript&utm_campaign=promo">Получайте «Газету на @email»</a>
|
<a href="https://argumenti.ru/robomail/486?utm_source=argumenti.ru&utm_medium=subscript&utm_campaign=promo">Получайте «Газету на @email»</a>
|
||||||
<?else:?>
|
<?else:?>
|
||||||
<a href="<?=$fullpdf?>"><?=$downtitle?></a><span id="downarrow">↑</span>
|
<a href="<?=$fullpdf?>"><?=$downtitle?></a><span id="downarrow">↑</span> <span id="downarrow">Приятного чтения ↓</span>
|
||||||
<?endif?>
|
<?endif?>
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
@@ -43,7 +44,15 @@
|
|||||||
<div class="navpage"><a href="<?=$prevurl?>"><i class="fas fa-chevron-circle-left"></i></a></div>
|
<div class="navpage"><a href="<?=$prevurl?>"><i class="fas fa-chevron-circle-left"></i></a></div>
|
||||||
<?endif?>
|
<?endif?>
|
||||||
|
|
||||||
<div id="currpage"><?=$page?></div>
|
|
||||||
|
<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>
|
||||||
|
</div>
|
||||||
|
|
||||||
<?if (isset($nexturl)):?>
|
<?if (isset($nexturl)):?>
|
||||||
<div class="navpage"><a href="<?=$nexturl?>"><i class="fas fa-chevron-circle-right"></i></a></div>
|
<div class="navpage"><a href="<?=$nexturl?>"><i class="fas fa-chevron-circle-right"></i></a></div>
|
||||||
|
|||||||
@@ -3,8 +3,8 @@
|
|||||||
<title>Еженедельник Аргументы Недели - <?=$title?></title>
|
<title>Еженедельник Аргументы Недели - <?=$title?></title>
|
||||||
<//base href="<?=SITE?>">
|
<//base href="<?=SITE?>">
|
||||||
<script src="/pub/scripts/pdf.min.js"></script>
|
<script src="/pub/scripts/pdf.min.js"></script>
|
||||||
<script src="/pub/scripts/anviewer.js?ver=45"></script>
|
<script src="/pub/scripts/anviewer.js?ver=48"></script>
|
||||||
<link rel="stylesheet" type="text/css" href="/pub/css/an.css?ver=52">
|
<link rel="stylesheet" type="text/css" href="/pub/css/an.css?ver=55">
|
||||||
<link rel="icon" type="image/ico" href="https://argumenti.ru/favicon.ico">
|
<link rel="icon" type="image/ico" href="https://argumenti.ru/favicon.ico">
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||||
<link rel="stylesheet" href="/pub/fontawesome/css/all.css">
|
<link rel="stylesheet" href="/pub/fontawesome/css/all.css">
|
||||||
|
|||||||
Reference in New Issue
Block a user