add an.css
This commit is contained in:
@@ -40,7 +40,7 @@ function read_kuri($hash, $page = 1, $scale = 1.5, $promo = false){
|
|||||||
return False;
|
return False;
|
||||||
}
|
}
|
||||||
|
|
||||||
$namefile = $price['pricehash'].'.pdf';
|
$namefile = $hash.'.pdf';
|
||||||
$cachefile = PDFDIR.$namefile;
|
$cachefile = PDFDIR.$namefile;
|
||||||
|
|
||||||
if (file_exists($cachefile)){
|
if (file_exists($cachefile)){
|
||||||
|
|||||||
@@ -3,9 +3,10 @@
|
|||||||
<title>Еженедельник Аргументы Недели - <?=$title?></title>
|
<title>Еженедельник Аргументы Недели - <?=$title?></title>
|
||||||
<script src="/pub/scripts/pdf.min.js"></script>
|
<script src="/pub/scripts/pdf.min.js"></script>
|
||||||
<script src="/pub/scripts/anviewer.js?ver=5"></script>
|
<script src="/pub/scripts/anviewer.js?ver=5"></script>
|
||||||
|
<link rel="stylesheet" type="text/css" href="/pub/css/an.css">
|
||||||
<link rel="icon" type="image/ico" href="https://argumenti.ru/favicon.ico">
|
<link rel="icon" type="image/ico" href="https://argumenti.ru/favicon.ico">
|
||||||
</head>
|
</head>
|
||||||
<body style="width: 87%;margin: 0px auto;margin-top: 2%;background: #f5f5f5;">
|
<body>
|
||||||
<script>
|
<script>
|
||||||
var pdfDoc = null,
|
var pdfDoc = null,
|
||||||
pageNum = <?=$page?>,
|
pageNum = <?=$page?>,
|
||||||
@@ -58,8 +59,8 @@ _tmr.push({id: "1069168", type: "pageView", start: (new Date()).getTime()});
|
|||||||
ga('send', 'pageview');
|
ga('send', 'pageview');
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
<h1 style="font-size: 1.4em;text-align: center;">
|
<h1>
|
||||||
<a style="color: #4e4f55;text-decoration:underline;" href="https://argumenti.ru/">Аргументы Недели</a> → <a style="color: #4e4f55;text-decoration:underline;letter-spacing: 0.3px;" href="<?=$baseurl?>"><?=$title?></a>
|
<a id="brand_title" href="https://argumenti.ru/">Аргументы Недели</a> → <a id="page_title" href="<?=$baseurl?>"><?=$title?></a>
|
||||||
</h1>
|
</h1>
|
||||||
<!-- Yandex.RTB R-A-50615-61 -->
|
<!-- Yandex.RTB R-A-50615-61 -->
|
||||||
<div id="yandex_rtb_R-A-50615-61"></div>
|
<div id="yandex_rtb_R-A-50615-61"></div>
|
||||||
@@ -81,36 +82,35 @@ _tmr.push({id: "1069168", type: "pageView", start: (new Date()).getTime()});
|
|||||||
t.parentNode.insertBefore(s, t);
|
t.parentNode.insertBefore(s, t);
|
||||||
})(this, this.document, "yandexContextAsyncCallbacks");
|
})(this, this.document, "yandexContextAsyncCallbacks");
|
||||||
</script>
|
</script>
|
||||||
<p style="width: 100%;background: #69c;display: flex;height: 51px;align-items: center;justify-content: center;font-weight: bold;font-size: 1.1em;">
|
<p id="downloadtitle">
|
||||||
<?if ($filedown):?>
|
<?if ($filedown):?>
|
||||||
<a style="color:white;" href="<?=$pdfile?>">Если, по какой-то причине у вас не загрузилась газета ниже, то нажмите сюда, чтобы скачать pdf</a>
|
<a href="<?=$pdfile?>">Если, по какой-то причине у вас не загрузилась газета ниже, то нажмите сюда, чтобы скачать pdf</a>
|
||||||
<?else:?>
|
<?else:?>
|
||||||
<a style="color:white;" 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>
|
||||||
<?endif?>
|
<?endif?>
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<div id="pdfprogress" style="text-align: center;font-weight: bold;margin-top: 13px;font-size: 1.2em;">Идет обращение к серверу...</div>
|
<div id="pdfprogress">Идет обращение к серверу...</div>
|
||||||
<ul id="pdf-nav" style="font-size: 1.1em;width: 100%;font-weight:bold;display: flex;justify-content: center;padding:0px;">
|
<ul id="pdfnav">
|
||||||
|
<li id="buttom-zoomin" onclick="pdfzoomin()">
|
||||||
<li id="buttom-zoomin" onclick="pdfzoomin()" style="list-style-type:none;float: left;padding: 2px 10px;font-size: 1.6em;display: flex;align-items: center;cursor: pointer;border: 3px solid #2c2e35;border-radius: 20px;margin-right: 15px;">
|
<span id="title_plus">+ Увеличить</span>
|
||||||
<span style="color:#2c2e35; text-decoration: none;">+ Увеличить</span>
|
|
||||||
</li>
|
</li>
|
||||||
<li id="zoompdf" style="list-style-type:none;color:#2c2e35;margin-right: 15px;float: left;font-size: 2em;"></li>
|
<li id="zoompdf"></li>
|
||||||
<li id="buttom-zoomout" onclick="pdfzoomout()" style="list-style-type:none;float: left;padding: 2px 10px;font-size: 1.6em;display: flex;align-items: center;cursor: pointer;border: 3px solid #2c2e35;border-radius: 20px;">
|
<li id="buttom-zoomout" onclick="pdfzoomout()">
|
||||||
<span style="color:#2c2e35; text-decoration: none;">Уменьшить -</span>
|
<span id="title_minus">Уменьшить -</span>
|
||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
<canvas id="the-canvas"></canvas>
|
<canvas id="the-canvas"></canvas>
|
||||||
<script>startpdfviewer();</script>
|
<script>startpdfviewer();</script>
|
||||||
|
|
||||||
<div style="display: flex;flex-wrap:wrap;align-items:center;width: 100%;background: #f5f5f5;box-sizing: border-box;">
|
<div id="pagenav">
|
||||||
<ul id="pdf-nav" style="font-size: 1.1em;width: 100%;font-weight:bold;display: flex;justify-content: center;padding:0px;">
|
<ul id="pdfnav">
|
||||||
<?if (isset($prevurl)):?>
|
<?if (isset($prevurl)):?>
|
||||||
<li style="list-style-type:none;margin-right: 15px;float: left;border: 3px solid #2c2e35;border-radius: 28px;padding: 2px 10px;font-size: 1.3em;display: flex;align-items: center;"><a style="color:#2c2e35;text-decoration: none;" href="<?=$prevurl?>">< Предыдущая страница</a></li>
|
<li id="navprev"><a href="<?=$prevurl?>">< Предыдущая страница</a></li>
|
||||||
<?endif?>
|
<?endif?>
|
||||||
<li style="list-style-type:none;color:#2c2e35;margin-right: 15px;float: left;font-size: 2em;"><?=$page?></li>
|
<li id="currpage"><?=$page?></li>
|
||||||
<?if (isset($nexturl)):?>
|
<?if (isset($nexturl)):?>
|
||||||
<li style="list-style-type:none;float: left;border: 3px solid #2c2e35;border-radius: 28px;padding: 2px 10px;font-size: 1.3em;display: flex;align-items: center;"><a style="color:#2c2e35;text-decoration: none;" href="<?=$nexturl?>">Следующая страница ></a></li>
|
<li id="navnext"><a href="<?=$nexturl?>">Следующая страница ></a></li>
|
||||||
<?endif?>
|
<?endif?>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
153
app/pub/css/an.css
Normal file
153
app/pub/css/an.css
Normal file
@@ -0,0 +1,153 @@
|
|||||||
|
body {
|
||||||
|
width: 87%;
|
||||||
|
margin: 0px auto;
|
||||||
|
margin-top: 2%;
|
||||||
|
background: #f5f5f5;
|
||||||
|
}
|
||||||
|
|
||||||
|
h1 {
|
||||||
|
font-size: 1.4em;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
#brand_title{
|
||||||
|
color: #4e4f55;
|
||||||
|
text-decoration:underline;
|
||||||
|
}
|
||||||
|
|
||||||
|
#page_title{
|
||||||
|
color: #4e4f55;
|
||||||
|
text-decoration:underline;
|
||||||
|
letter-spacing: 0.3px;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
#downloadtitle{
|
||||||
|
width: 100%;
|
||||||
|
background: #69c;
|
||||||
|
display: flex;
|
||||||
|
height: 51px;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
font-weight: bold;
|
||||||
|
font-size: 1.1em;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
#downloadtitle a{
|
||||||
|
color:white;
|
||||||
|
}
|
||||||
|
|
||||||
|
#pdfprogress {
|
||||||
|
text-align: center;
|
||||||
|
font-weight: bold;
|
||||||
|
margin-top: 13px;
|
||||||
|
font-size: 1.2em;
|
||||||
|
}
|
||||||
|
|
||||||
|
#pdfnav {
|
||||||
|
font-size: 1.1em;
|
||||||
|
width: 100%;
|
||||||
|
font-weight:bold;
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
padding:0px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#buttom-zoomin{
|
||||||
|
list-style-type:none;
|
||||||
|
float: left;
|
||||||
|
padding: 2px 10px;
|
||||||
|
font-size: 1.6em;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
cursor: pointer;
|
||||||
|
border: 3px solid #2c2e35;
|
||||||
|
border-radius: 20px;
|
||||||
|
margin-right: 15px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#zoompdf{
|
||||||
|
list-style-type:none;
|
||||||
|
color:#2c2e35;
|
||||||
|
margin-right: 15px;
|
||||||
|
float: left;
|
||||||
|
font-size: 2em;
|
||||||
|
}
|
||||||
|
|
||||||
|
#buttom-zoomout{
|
||||||
|
list-style-type:none;
|
||||||
|
float: left;
|
||||||
|
padding: 2px 10px;
|
||||||
|
font-size: 1.6em;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
cursor: pointer;
|
||||||
|
border: 3px solid #2c2e35;
|
||||||
|
border-radius: 20px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#title_plus{
|
||||||
|
color:#2c2e35;
|
||||||
|
text-decoration: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
#title_minus{
|
||||||
|
color:#2c2e35;
|
||||||
|
text-decoration: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
#pagenav{
|
||||||
|
display: flex;
|
||||||
|
flex-wrap:wrap;
|
||||||
|
align-items:center;
|
||||||
|
width: 100%;
|
||||||
|
background: #f5f5f5;
|
||||||
|
box-sizing: border-box;
|
||||||
|
}
|
||||||
|
|
||||||
|
#pdfnav{
|
||||||
|
font-size: 1.1em;
|
||||||
|
width: 100%;
|
||||||
|
font-weight:bold;
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
padding:0px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#pdfnav a{
|
||||||
|
color:#2c2e35;
|
||||||
|
text-decoration: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
#navprev{
|
||||||
|
list-style-type:none;
|
||||||
|
margin-right: 15px;
|
||||||
|
float: left;
|
||||||
|
border: 3px solid #2c2e35;
|
||||||
|
border-radius: 28px;
|
||||||
|
padding: 2px 10px;
|
||||||
|
font-size: 1.3em;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
#navnext{
|
||||||
|
list-style-type:none;
|
||||||
|
float: left;
|
||||||
|
border: 3px solid #2c2e35;
|
||||||
|
border-radius: 28px;
|
||||||
|
padding: 2px 10px;
|
||||||
|
font-size: 1.3em;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
#currpage{
|
||||||
|
list-style-type:none;
|
||||||
|
color:#2c2e35;
|
||||||
|
margin-right: 15px;
|
||||||
|
float: left;
|
||||||
|
font-size: 2em;
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user