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