add reader lite
This commit is contained in:
@@ -483,6 +483,26 @@ input[type="email"],input[type="password"], input[type="text"], input[type="tel"
|
||||
font-size: 1.2em;
|
||||
}
|
||||
|
||||
|
||||
.footer-text{
|
||||
margin-top:10px;
|
||||
background: white;
|
||||
border: 1px solid #dcdcdc;
|
||||
padding: 10px;
|
||||
font-size: .8em;
|
||||
line-height: 17px;
|
||||
}
|
||||
|
||||
embed[type="application/pdf"] {
|
||||
display: block;
|
||||
width: 100vw;
|
||||
height: 100vh;
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
}
|
||||
|
||||
|
||||
@media screen and (max-width: 1260px) {
|
||||
.book_mini{
|
||||
font-size: .9em;
|
||||
@@ -599,6 +619,9 @@ input[type="email"],input[type="password"], input[type="text"], input[type="tel"
|
||||
width: 100%;
|
||||
font-size: 1.3em;
|
||||
}
|
||||
.zoomstatus{
|
||||
display: none;
|
||||
}
|
||||
.firstpage{
|
||||
margin-right: 15px!important;
|
||||
}
|
||||
|
||||
@@ -178,11 +178,11 @@ function startpdfviewer(newcurr){
|
||||
embed = false;
|
||||
}
|
||||
else if (category == 3){
|
||||
embed = true;
|
||||
embed = false; //true;
|
||||
}
|
||||
|
||||
if(isOpera){
|
||||
embed = true;
|
||||
embed = false;
|
||||
}
|
||||
|
||||
if (detect.phone()){
|
||||
@@ -191,7 +191,8 @@ function startpdfviewer(newcurr){
|
||||
|
||||
|
||||
if (embed){
|
||||
document.getElementById(pdfcanvas).innerHTML = '<embed src="'+ url +'" width="100%" type="application/pdf" style="height: 100vh;">';
|
||||
//document.getElementById(pdfcanvas).innerHTML = '<embed src="'+ url +'" width="100%" type="application/pdf" style="height: 100vh;">';
|
||||
document.getElementById(pdfcanvas).innerHTML = '<object data="'+ url +'" type="application/pdf" width="100%" height="100%" style="border: none;"><param name="toolbar" value="0"><param name="navpanes" value="0"><param name="view" value="FitH"></object>';
|
||||
}
|
||||
|
||||
else {
|
||||
|
||||
@@ -306,7 +306,9 @@ function read_kuri($hash, $page = 0, $promo = 'full', $version = null){
|
||||
$htmlurl = "/readtext/$hash/$page/$promo";
|
||||
|
||||
$tempcontent = VIEWPATH.'anpdf3.phtml'; //подшаблон
|
||||
include VIEWPATH.'layout.phtml'; //центральный шаблон
|
||||
include VIEWPATH.'layout_lite.phtml'; //центральный шаблон
|
||||
|
||||
//include $tempcontent;
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -11,6 +11,60 @@
|
||||
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);</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>
|
||||
@@ -25,81 +79,5 @@
|
||||
<?endif?>
|
||||
</p>
|
||||
|
||||
<div id="stuff-bar">
|
||||
<div id="zoomnav">
|
||||
<div id="title_minus" onclick="resize_minus()">
|
||||
<span><i class="fas fa-search-minus"></i></span>
|
||||
</div>
|
||||
|
||||
<div id="zoomstatus_up" class="zoomstatus">100%</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>
|
||||
|
||||
<div id="the-canvas">
|
||||
<noscript>
|
||||
<embed src="<?=$pdfile?>" width="100%" type="application/pdf" style="height: 100vh;">
|
||||
</noscript>
|
||||
</div>
|
||||
|
||||
<script>startpdfviewer(newcurr);</script>
|
||||
<div id="stuff-bar">
|
||||
<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="navpage"><a href="<?=$prevurl?>"><i class="fas fa-chevron-circle-left"></i></a></div>
|
||||
<?endif?>
|
||||
<div id="currpage"><?=$page?></div>
|
||||
<?if (isset($nexturl)):?>
|
||||
<div class="navpage"><a href="<?=$nexturl?>"><i class="fas fa-chevron-circle-right"></i></a></div>
|
||||
<?endif?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
|
||||
@@ -18,7 +18,7 @@
|
||||
<?endif?>
|
||||
<div class="textanons"><?=$book['priceanons']?></div>
|
||||
<?if ($buy_status): // если книжка куплена?>
|
||||
<p class="price"><a href="<?=$book['links']['pdf']?>">Читать PDF</a></p>
|
||||
<p class="price"><a href="<?=$book['links']['pdf']?>" target="_blank">Читать PDF</a></p>
|
||||
<!-- <p><a href="<?=$book['links']['text']?>">Читать текст</a></p> -->
|
||||
<?if ($book['category_id'] == 1):?>
|
||||
<p class="price"><a href="<?=$book['links']['download']?>">Скачать PDF</a></p>
|
||||
|
||||
@@ -1,29 +1,86 @@
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>Еженедельник Аргументы Недели - <?=$title?></title>
|
||||
<title><?=$title?></title>
|
||||
<//base href="<?=SITE?>">
|
||||
<script src="/pub/scripts/pdf.min.js"></script>
|
||||
<script src="/pub/scripts/anviewer.js?ver=43"></script>
|
||||
<link rel="stylesheet" type="text/css" href="/pub/css/an.css?ver=76">
|
||||
<link rel="icon" type="image/ico" href="https://argumenti.ru/favicon.ico">
|
||||
<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=38"></script>
|
||||
<link rel="stylesheet" type="text/css" href="/pub/css/an.css?ver=253">
|
||||
<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" />
|
||||
<link rel="apple-touch-icon" sizes="72x72" href="/apple-touch-icon-72x72.png?ver=2" />
|
||||
<link rel="apple-touch-icon" sizes="76x76" href="/apple-touch-icon-76x76.png?ver=2" />
|
||||
<link rel="apple-touch-icon" sizes="114x114" href="/apple-touch-icon-114x114.png?ver=2" />
|
||||
<link rel="apple-touch-icon" sizes="120x120" href="/apple-touch-icon-120x120.png?ver=2" />
|
||||
<link rel="apple-touch-icon" sizes="144x144" href="/apple-touch-icon-144x144.png?ver=2" />
|
||||
<link rel="apple-touch-icon" sizes="152x152" href="/apple-touch-icon-152x152.png?ver=2" />
|
||||
<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon-180x180.png?ver=2" />
|
||||
<link rel="icon" type="image/ico" href="/favicon.ico?ver=2" />
|
||||
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png?ver=2">
|
||||
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png?ver=2">
|
||||
<?if (isset($description)):?>
|
||||
<meta name="description" content="<?=$description?>">
|
||||
<?endif?>
|
||||
<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/v4-shims.css">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
|
||||
<header style="justify-content:center;">
|
||||
<div class="lite-logo">
|
||||
<a href="https://klan.argumenti.ru">
|
||||
<img src="https://argumenti.ru/images/argumenti/klan_logo.png?ver=1">
|
||||
</a>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<!-- Rating Mail.ru counter -->
|
||||
<script type="text/javascript">
|
||||
var _tmr = window._tmr || (window._tmr = []);
|
||||
_tmr.push({id: "1069168", type: "pageView", start: (new Date()).getTime()});
|
||||
(function (d, w, id) {
|
||||
if (d.getElementById(id)) return;
|
||||
var ts = d.createElement("script"); ts.type = "text/javascript"; ts.async = true; ts.id = id;
|
||||
ts.src = "https://top-fwz1.mail.ru/js/code.js";
|
||||
var f = function () {var s = d.getElementsByTagName("script")[0]; s.parentNode.insertBefore(ts, s);};
|
||||
if (w.opera == "[object Opera]") { d.addEventListener("DOMContentLoaded", f, false); } else { f(); }
|
||||
})(document, window, "topmailru-code");
|
||||
</script><noscript><div>
|
||||
<img src="https://top-fwz1.mail.ru/counter?id=1069168;js=na" style="border:0;position:absolute;left:-9999px;" alt="Top.Mail.Ru" />
|
||||
</div></noscript>
|
||||
<!-- //Rating Mail.ru counter -->
|
||||
<!-- Yandex.Metrika counter -->
|
||||
<script type="text/javascript" >
|
||||
(function(m,e,t,r,i,k,a){m[i]=m[i]||function(){(m[i].a=m[i].a||[]).push(arguments)};
|
||||
m[i].l=1*new Date();k=e.createElement(t),a=e.getElementsByTagName(t)[0],k.async=1,k.src=r,a.parentNode.insertBefore(k,a)})
|
||||
(window, document, "script", "https://mc.yandex.ru/metrika/tag.js", "ym");
|
||||
|
||||
ym(26004090, "init", {
|
||||
clickmap:true,
|
||||
trackLinks:true,
|
||||
accurateTrackBounce:true,
|
||||
webvisor:true
|
||||
});
|
||||
</script>
|
||||
<noscript><div><img src="https://mc.yandex.ru/watch/26004090" style="position:absolute; left:-9999px;" alt="" /></div></noscript>
|
||||
<!-- /Yandex.Metrika counter -->
|
||||
<script>
|
||||
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
|
||||
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
|
||||
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
|
||||
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
|
||||
|
||||
ga('create', 'UA-11186859-1', 'auto');
|
||||
ga('send', 'pageview');
|
||||
|
||||
</script>
|
||||
|
||||
<?if (isset($tempcontent))
|
||||
include($tempcontent);
|
||||
|
||||
if (file_exists($tempcontent))
|
||||
include($tempcontent);
|
||||
else
|
||||
echo $tempcontent;
|
||||
?>
|
||||
|
||||
<p class="footer-text">Распространение электронной версии еженедельника «Аргументы недели» осуществляется учредителем - ООО «Издательство «Аргументы недели», юр.адрес: 119002,ул.Арбат, д.29,1-й эт, пом.IV.ком.2, ОГРН 1207700354223</p>
|
||||
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user