From dc905e43a942e61ed5fd80f628428b7ac84e965b Mon Sep 17 00:00:00 2001 From: Andrey Astafyev Date: Sun, 21 Apr 2019 12:40:15 +0300 Subject: [PATCH] Remove image popup --- static/css/style.css | 47 ---------------------------------------- static/js/image-popup.js | 14 ------------ templates/article.html | 7 ------ templates/base.html | 1 - 4 files changed, 69 deletions(-) delete mode 100644 static/js/image-popup.js diff --git a/static/css/style.css b/static/css/style.css index 54bc180..7c66a77 100644 --- a/static/css/style.css +++ b/static/css/style.css @@ -329,50 +329,3 @@ pre, code, kbd, samp .panel { padding-bottom: 12px; } - -.popup{ - width: 900px; - margin: auto; - text-align: center -} -.popup img{ - width: 200px; - height: 200px; - cursor: pointer -} -.show{ - z-index: 999; - display: none; -} -.show .overlay{ - width: 100%; - height: 100%; - background: rgba(0,0,0,.66); - position: absolute; - top: 0; - left: 0; -} -.show .img-show{ - width: 600px; - height: 400px; - background: #FFF; - position: absolute; - top: 50%; - left: 50%; - transform: translate(-50%,-50%); - overflow: hidden -} -.img-show span{ - position: absolute; - top: 10px; - right: 10px; - z-index: 99; - cursor: pointer; -} -.img-show img{ - width: 100%; - height: 100%; - position: absolute; - top: 0; - left: 0; -} diff --git a/static/js/image-popup.js b/static/js/image-popup.js deleted file mode 100644 index b8482d4..0000000 --- a/static/js/image-popup.js +++ /dev/null @@ -1,14 +0,0 @@ -$(function () { - "use strict"; - - $(".popup img").click(function () { - var $src = $(this).attr("src"); - $(".show").fadeIn(); - $(".img-show img").attr("src", $src); - }); - - $("span, .overlay").click(function () { - $(".show").fadeOut(); - }); - -}); diff --git a/templates/article.html b/templates/article.html index 767d097..6abc958 100644 --- a/templates/article.html +++ b/templates/article.html @@ -87,13 +87,6 @@ {{ article.content }} -
-
-
- X - -
-
{% include 'includes/related-posts.html' %} {% include 'includes/series.html' %} diff --git a/templates/base.html b/templates/base.html index 58f956e..f62e3ec 100644 --- a/templates/base.html +++ b/templates/base.html @@ -265,7 +265,6 @@ {% if BANNER %} {% endif %} - {% include 'includes/sidebar/github-js.html' %} {% include 'includes/disqus_script.html' %} {% include 'includes/ga.html' %}