diff --git a/app/pub/css/an.css b/app/pub/css/an.css index 512a451..c76cea9 100644 --- a/app/pub/css/an.css +++ b/app/pub/css/an.css @@ -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%; diff --git a/app/pub/scripts/anviewer.js b/app/pub/scripts/anviewer.js index ffca8ee..76a198a 100644 --- a/app/pub/scripts/anviewer.js +++ b/app/pub/scripts/anviewer.js @@ -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; + +} + + diff --git a/app/routes/anpdf.php b/app/routes/anpdf.php index 2dff9e8..4e6e55a 100644 --- a/app/routes/anpdf.php +++ b/app/routes/anpdf.php @@ -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'; //подшаблон diff --git a/app/views/anpdf2.phtml b/app/views/anpdf2.phtml index 220dee5..82ec788 100644 --- a/app/views/anpdf2.phtml +++ b/app/views/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 @@ Получайте «Газету на @email» - =$downtitle?>↑ + =$downtitle?>↑ Приятного чтения ↓
@@ -42,8 +43,16 @@ - -