Skip to content
Snippets Groups Projects
Commit 218093ec authored by Dominik Hebeler's avatar Dominik Hebeler
Browse files

Merge branch '505-bot-protection-funktioniert-nicht-mehr' into 'development'

Bot Protection wieder angeschaltet

Closes #505

See merge request !876
parents 61082538 de1fef60
No related branches found
No related tags found
1 merge request!1365Resolve "Filter Options for MetaGer"
...@@ -7,6 +7,8 @@ ...@@ -7,6 +7,8 @@
"devDependencies": { "devDependencies": {
"bootstrap-sass": "^3.3.7", "bootstrap-sass": "^3.3.7",
"gulp": "^3.9.1", "gulp": "^3.9.1",
"gulp-clean-css": "^3.2.0",
"gulp-uglify": "^2.1.2",
"jquery": "^3.1.0", "jquery": "^3.1.0",
"laravel-elixir": "^6.0.0-9", "laravel-elixir": "^6.0.0-9",
"laravel-elixir-vue-2": "^0.2.0", "laravel-elixir-vue-2": "^0.2.0",
......
$(document).ready(function () { $(document).ready(function () {
createCustomFocuses() createCustomFocuses();
var focus = $('#foki > li.active > a').attr('aria-controls') var focus = $('#foki > li.active > a').attr('aria-controls');
var custom = $('#foki > li.active').hasClass('custom-focus-tab-selector') var custom = $('#foki > li.active').hasClass('custom-focus-tab-selector');
getDocumentReadyForUse(focus, custom) getDocumentReadyForUse(focus, custom);
botProtection();
}) })
function tabs () { function tabs () {
...@@ -31,18 +32,18 @@ function tabs () { ...@@ -31,18 +32,18 @@ function tabs () {
} }
function getDocumentReadyForUse (fokus, custom = false) { function getDocumentReadyForUse (fokus, custom = false) {
clickLog() clickLog();
popovers() popovers();
if (fokus === 'bilder') imageLoader() if (fokus === 'bilder') imageLoader();
if (custom) initialLoadContent(fokus) if (custom) initialLoadContent(fokus);
// pagination() // pagination()
tabs() tabs();
theme() theme();
fokiChanger() fokiChanger();
pluginInfo() pluginInfo();
productWidget() productWidget();
$('iframe:not(.resized)').iFrameResize() $('iframe:not(.resized)').iFrameResize();
$('iframe').addClass('resized') $('iframe').addClass('resized');
} }
function pluginInfo () { function pluginInfo () {
...@@ -85,6 +86,14 @@ function clickLog () { ...@@ -85,6 +86,14 @@ function clickLog () {
}) })
} }
function botProtection() {
if ($("meta[name=pqr]").length > 0) {
var link = atob($("meta[name=pqr]").attr("content"));
var hash = $("meta[name=pq]").attr("content");
document.location.href = link + "&bot=" + hash;
}
}
function popovers () { function popovers () {
$('[data-toggle=popover]').each(function (e) { $('[data-toggle=popover]').each(function (e) {
$(this).popover('destroy') $(this).popover('destroy')
......
{ {
"js/editLanguage.js": "js/editLanguage-1ce447084a.js", "js/editLanguage.js": "js/editLanguage-1ce447084a.js",
"js/kontakt.js": "js/kontakt-9365c46d5a.js", "js/kontakt.js": "js/kontakt-9365c46d5a.js",
"js/scriptResultPage.js": "js/scriptResultPage-c6b34cc3ab.js", "js/scriptResultPage.js": "js/scriptResultPage-fb8443e82a.js",
"js/scriptStartPage.js": "js/scriptStartPage-5e21fefbc8.js", "js/scriptStartPage.js": "js/scriptStartPage-5e21fefbc8.js",
"js/settings.js": "js/settings-0af8170dff.js", "js/settings.js": "js/settings-0af8170dff.js",
"js/widgets.js": "js/widgets-40195be855.js" "js/widgets.js": "js/widgets-40195be855.js"
......
$(document).ready(function() {
botProtection();
});
function botProtection() {
if ($("meta[name=pqr]").length > 0) {
var link = atob($("meta[name=pqr]").attr("content"));
var hash = $("meta[name=pq]").attr("content");
document.location.href = link + "&bot=" + hash;
}
}
\ No newline at end of file
$(document).ready(function () { $(document).ready(function () {
createCustomFocuses() createCustomFocuses();
var focus = $('#foki > li.active > a').attr('aria-controls') var focus = $('#foki > li.active > a').attr('aria-controls');
var custom = $('#foki > li.active').hasClass('custom-focus-tab-selector') var custom = $('#foki > li.active').hasClass('custom-focus-tab-selector');
getDocumentReadyForUse(focus, custom) getDocumentReadyForUse(focus, custom);
botProtection();
}) })
function tabs () { function tabs () {
...@@ -31,18 +32,18 @@ function tabs () { ...@@ -31,18 +32,18 @@ function tabs () {
} }
function getDocumentReadyForUse (fokus, custom = false) { function getDocumentReadyForUse (fokus, custom = false) {
clickLog() clickLog();
popovers() popovers();
if (fokus === 'bilder') imageLoader() if (fokus === 'bilder') imageLoader();
if (custom) initialLoadContent(fokus) if (custom) initialLoadContent(fokus);
// pagination() // pagination()
tabs() tabs();
theme() theme();
fokiChanger() fokiChanger();
pluginInfo() pluginInfo();
productWidget() productWidget();
$('iframe:not(.resized)').iFrameResize() $('iframe:not(.resized)').iFrameResize();
$('iframe').addClass('resized') $('iframe').addClass('resized');
} }
function pluginInfo () { function pluginInfo () {
...@@ -85,6 +86,14 @@ function clickLog () { ...@@ -85,6 +86,14 @@ function clickLog () {
}) })
} }
function botProtection() {
if ($("meta[name=pqr]").length > 0) {
var link = atob($("meta[name=pqr]").attr("content"));
var hash = $("meta[name=pq]").attr("content");
document.location.href = link + "&bot=" + hash;
}
}
function popovers () { function popovers () {
$('[data-toggle=popover]').each(function (e) { $('[data-toggle=popover]').each(function (e) {
$(this).popover('destroy') $(this).popover('destroy')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment