diff --git a/templates/_wallpapers.js b/templates/_wallpapers.js index 16cae47..72a58af 100644 --- a/templates/_wallpapers.js +++ b/templates/_wallpapers.js @@ -1,18 +1,5 @@ -{% macro wallpapers(selector, enable_reddit=True, overlay="rgba(0,0,0,0.7)", duration=60) %} +{% macro wallpapers(selector, enable_reddit=False, overlay="rgba(0,0,0,0.7)", duration=60) %} // Macro to set the background wallpapers for a given element via `selector` -{% if enable_reddit %} -RedditWallpapers({ - isFixed: 'true', - id: '{{ selector }}', - isOverlayed: 'true', - overlay: '{{ overlay }}', - duration: {{ duration }}, - limit: 20, - timeout: 1, - category: ['CityPorn'], - defaultImg: "{{ url_for('static', filename='images/dbg.jpg') }}" -}) -{% else %} $('{{ selector }}').css({ 'background-size': 'cover', 'background-repeat': 'no-repeat', @@ -20,5 +7,4 @@ $('{{ selector }}').css({ 'background-attachment': 'fixed', 'background-image': "linear-gradient({{ overlay }}, {{ overlay }}), url({{ url_for('static', filename='images/dbg.jpg') }})" }) -{% endif %} {% endmacro %} diff --git a/templates/base.html b/templates/base.html index 91cb618..26c8631 100644 --- a/templates/base.html +++ b/templates/base.html @@ -49,7 +49,7 @@ localStorage.redWallIndex = undefined sessionStorage.toClear = 'yes' } - {{ wallpapers('.widw', enable_reddit=settings.visual_effects) }} + {{ wallpapers('.widw', enable_reddit=False) }} disciple({ identifier: '.disciple', msg_text: "{{ translate('You made changes on the previous form without submitting. Do you wish to restore it ?', 'en', [defLang]) }}",