Skip to content

Commit

Permalink
adv
Browse files Browse the repository at this point in the history
  • Loading branch information
maxcom committed Dec 25, 2018
1 parent da76bf3 commit c40fa0e
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 18 deletions.
18 changes: 5 additions & 13 deletions src/main/webapp/WEB-INF/jsp/index.jsp
Expand Up @@ -36,6 +36,7 @@
<div id="mainpage">
<div id="news">

<%--
<c:if test="${showAdsense}">
<div align="center" width="100%">
<style>
Expand Down Expand Up @@ -73,32 +74,23 @@
</script>
</div>
</c:if>
<%--
--%>
<div style="text-align: center; margin-top: 0.5em; height: 105px" id="interpage">
</div>
<script type="text/javascript">
$script.ready('lorjs', function () {
var ads = [
{
type: 'rimg',
img728: '/linuxpiter/728x90 Linux.jpg',
img468: '/linuxpiter/468x60 Linux.jpg',
img320: '/linuxpiter/320x100 Linux.jpg',
href: 'https://linuxpiter.com/speakers'
},
{
type: 'rimg',
img728: '/linuxpiter/728x90 PiterPy.jpg',
img468: '/linuxpiter/468x60 PiterPy.jpg',
img320: '/linuxpiter/320x100 PiterPy.jpg',
href: 'https://piterpy.com/speakers'
img730: '/adv/Linux_730x90.png',
img320: '/adv/Linux_320x100.png',
href: 'https://otus.ru/lessons/linux/?utm_source=linuxorg&utm_medium=cpm&utm_campaign=linux&utm_content=banner&utm_term=banner'
}
];
init_interpage_adv(ads);
});
</script>
--%>

<c:if test="${template.moderatorSession or template.correctorSession}">
<div class="nav" style="border-bottom: none">
Expand Down
Binary file added src/main/webapp/adv/Linux_320x100.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/main/webapp/adv/Linux_730x90.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 1 addition & 5 deletions src/main/webapp/js/lor.js
Expand Up @@ -111,11 +111,7 @@ function init_interpage_adv(ads) {
if (window.matchMedia("(min-width: 768px)").matches) {
// img.attr('width', 728);
img.attr('height', 90);
img.attr('src', ad.img728);
} else if (window.matchMedia("(min-width: 500px)").matches) {
img.attr('width', 468);
img.attr('height', 60);
img.attr('src', ad.img468);
img.attr('src', ad.img730);
} else {
img.attr('width', 320);
img.attr('height', 100);
Expand Down

0 comments on commit c40fa0e

Please sign in to comment.