add an.css

This commit is contained in:
Andrey Kuvshinov
2020-04-09 00:53:14 +03:00
parent 0a06b7595d
commit c8a9ba9576
3 changed files with 173 additions and 20 deletions

View File

@@ -40,7 +40,7 @@ function read_kuri($hash, $page = 1, $scale = 1.5, $promo = false){
return False;
}
$namefile = $price['pricehash'].'.pdf';
$namefile = $hash.'.pdf';
$cachefile = PDFDIR.$namefile;
if (file_exists($cachefile)){

View File

@@ -3,9 +3,10 @@
<title>Еженедельник Аргументы Недели - <?=$title?></title>
<script src="/pub/scripts/pdf.min.js"></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">
</head>
<body style="width: 87%;margin: 0px auto;margin-top: 2%;background: #f5f5f5;">
<body>
<script>
var pdfDoc = null,
pageNum = <?=$page?>,
@@ -58,8 +59,8 @@ _tmr.push({id: "1069168", type: "pageView", start: (new Date()).getTime()});
ga('send', 'pageview');
</script>
<h1 style="font-size: 1.4em;text-align: center;">
<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>
<h1>
<a id="brand_title" href="https://argumenti.ru/">Аргументы Недели</a><a id="page_title" href="<?=$baseurl?>"><?=$title?></a>
</h1>
<!-- Yandex.RTB R-A-50615-61 -->
<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);
})(this, this.document, "yandexContextAsyncCallbacks");
</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):?>
<a style="color:white;" href="<?=$pdfile?>">Если, по какой-то причине у вас не загрузилась газета ниже, то нажмите сюда, чтобы скачать pdf</a>
<a href="<?=$pdfile?>">Если, по какой-то причине у вас не загрузилась газета ниже, то нажмите сюда, чтобы скачать pdf</a>
<?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?>
</p>
<div id="pdfprogress" style="text-align: center;font-weight: bold;margin-top: 13px;font-size: 1.2em;">Идет обращение к серверу...</div>
<ul id="pdf-nav" style="font-size: 1.1em;width: 100%;font-weight:bold;display: flex;justify-content: center;padding:0px;">
<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 style="color:#2c2e35; text-decoration: none;">+ Увеличить</span>
<div id="pdfprogress">Идет обращение к серверу...</div>
<ul id="pdfnav">
<li id="buttom-zoomin" onclick="pdfzoomin()">
<span id="title_plus">+ Увеличить</span>
</li>
<li id="zoompdf" style="list-style-type:none;color:#2c2e35;margin-right: 15px;float: left;font-size: 2em;"></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;">
<span style="color:#2c2e35; text-decoration: none;">Уменьшить -</span>
<li id="zoompdf"></li>
<li id="buttom-zoomout" onclick="pdfzoomout()">
<span id="title_minus">Уменьшить -</span>
</li>
</ul>
<canvas id="the-canvas"></canvas>
<script>startpdfviewer();</script>
<div style="display: flex;flex-wrap:wrap;align-items:center;width: 100%;background: #f5f5f5;box-sizing: border-box;">
<ul id="pdf-nav" style="font-size: 1.1em;width: 100%;font-weight:bold;display: flex;justify-content: center;padding:0px;">
<div id="pagenav">
<ul id="pdfnav">
<?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?>"><&nbsp;Предыдущая страница</a></li>
<li id="navprev"><a href="<?=$prevurl?>"><&nbsp;Предыдущая страница</a></li>
<?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)):?>
<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?>">Следующая страница&nbsp;></a></li>
<li id="navnext"><a href="<?=$nexturl?>">Следующая страница&nbsp;></a></li>
<?endif?>
</ul>
</div>

153
app/pub/css/an.css Normal file
View 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;
}