diff --git a/layouts/_default/baseof.html b/layouts/_default/baseof.html index 266ac16..3837154 100644 --- a/layouts/_default/baseof.html +++ b/layouts/_default/baseof.html @@ -38,7 +38,6 @@ - @@ -60,18 +59,11 @@ {{ partial "footer.html" }} - {{ partial "survey.html" }} - - {{/* - survey related JS - */}} - - diff --git a/layouts/partials/survey.html b/layouts/partials/survey.html deleted file mode 100644 index d7f4a29..0000000 --- a/layouts/partials/survey.html +++ /dev/null @@ -1,7 +0,0 @@ -
- -
-

Yeah! aweb ist für den Deutschen Podcast Preis nominiert! Hilf uns mit deiner Stimme!

- Jetzt voten! -
-
diff --git a/src/js/survey.js b/src/js/survey.js deleted file mode 100644 index 4f24e1e..0000000 --- a/src/js/survey.js +++ /dev/null @@ -1,27 +0,0 @@ -(function($) { - 'use strict'; - - var cookieName = 'vote-dismiss'; - var hasCookies = typeof Mozilla.Cookies !== 'undefined' && Mozilla.Cookies.enabled(); - - var $surveyBanner; - - // ensure cookies are available and the visitors has not previously dismissed the banner - if (hasCookies && !Mozilla.Cookies.getItem(cookieName)) { - $surveyBanner = $('#survey-banner'); - - // show the banner - $('#survey-dismiss').one('click', function() { - // don't show the banner again for 7 days - var d = new Date(); - var noShowDays = 7; - - d.setTime(d.getTime() + (noShowDays * 24 * 60 * 60 * 1000)); - Mozilla.Cookies.setItem(cookieName, true, d.toUTCString(), '/'); - - $surveyBanner.removeClass('visible'); - }); - - $surveyBanner.addClass('visible'); - } -})(window.jQuery); diff --git a/src/scss/survey.scss b/src/scss/survey.scss deleted file mode 100644 index 077e9dc..0000000 --- a/src/scss/survey.scss +++ /dev/null @@ -1,98 +0,0 @@ -// This Source Code Form is subject to the terms of the Mozilla Public -// License, v. 2.0. If a copy of the MPL was not distributed with this -// file, You can obtain one at http://mozilla.org/MPL/2.0/. - -@import 'includes/mixins'; -@import 'includes/variables'; - -.survey-banner { - bottom: 0; - background: #6a1887; - border-top: 2px solid #000; - box-shadow: 0 0 15px 0 rgba(0,0,0,0.3); - color: #fff; - display: none; - left: 0; - position: fixed; - text-align: center; - width: 100%; - - a, - a:active, - a:link, - a:visited { - @include font-size(18px); - background-color: #ffffff; - border-radius: 2px; - border: 2px solid #000000; - box-shadow: 2px 2px 0 0 #000000; - box-sizing: border-box; - color: #000000; - display: inline-block; - font-weight: bold; - line-height: 1.5; - padding: 10px 30px; - text-decoration: none; - -webkit-transition: background-color 50ms, box-shadow 50ms, color 50ms, transform 50ms; - transition: background-color 50ms, box-shadow 50ms, color 50ms, transform 50ms; - } - - a:focus, - a:hover, - a:visited:focus, - a:visited:hover { - -webkit-transform: translate(-2px, -2px); - transform: translate(-2px, -2px); - box-shadow: 4px 4px 0 0 #000000; - } - - a:active { - -webkit-transform: translate(2px, 2px); - transform: translate(2px, 2px); - box-shadow: 0 0 0 0 #000000; - } - - button { - background: url('/images/survey-close.svg') center center no-repeat; - background-size: 12px 12px; - box-sizing: border-box; - border-radius: 2px; - border: 1px solid #fff; - cursor: pointer; - height: 18px; - position: absolute; - right: 10px; - top: 10px; - width: 18px; - z-index: 1; - - &:focus { - background-color: #000; - } - - span { - @include visually-hidden(); - } - } - - p { - margin: 0; - padding: 10px 0; - } - - &.visible { - display: block; - } -} - -@supports (transform: translateY(100px)) { - .survey-banner { - display: block; - transform: translateY(200px); - transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275); - - &.visible { - transform: translateY(0); - } - } -} diff --git a/static/images/survey-close.svg b/static/images/survey-close.svg deleted file mode 100644 index 8f83d0e..0000000 --- a/static/images/survey-close.svg +++ /dev/null @@ -1 +0,0 @@ -