diff --git a/package.json b/package.json index e9993aa824cbdb5fd264b1906e9e21c0dba0c930..ee892e84c46c1a730013d70723f2512d26794aad 100644 --- a/package.json +++ b/package.json @@ -7,6 +7,8 @@ "devDependencies": { "bootstrap-sass": "^3.3.7", "gulp": "^3.9.1", + "gulp-clean-css": "^3.2.0", + "gulp-uglify": "^2.1.2", "jquery": "^3.1.0", "laravel-elixir": "^6.0.0-9", "laravel-elixir-vue-2": "^0.2.0", diff --git a/public/build/js/scriptResultPage-c6b34cc3ab.js b/public/build/js/scriptResultPage-fb8443e82a.js similarity index 96% rename from public/build/js/scriptResultPage-c6b34cc3ab.js rename to public/build/js/scriptResultPage-fb8443e82a.js index ed1b148fc91361394fd15f20a585d2c43c09f851..8ce3eb0afe17d917f46a1aa8196e584e8480ad0a 100644 --- a/public/build/js/scriptResultPage-c6b34cc3ab.js +++ b/public/build/js/scriptResultPage-fb8443e82a.js @@ -1,8 +1,9 @@ $(document).ready(function () { - createCustomFocuses() - var focus = $('#foki > li.active > a').attr('aria-controls') - var custom = $('#foki > li.active').hasClass('custom-focus-tab-selector') - getDocumentReadyForUse(focus, custom) + createCustomFocuses(); + var focus = $('#foki > li.active > a').attr('aria-controls'); + var custom = $('#foki > li.active').hasClass('custom-focus-tab-selector'); + getDocumentReadyForUse(focus, custom); + botProtection(); }) function tabs () { @@ -31,18 +32,18 @@ function tabs () { } function getDocumentReadyForUse (fokus, custom = false) { - clickLog() - popovers() - if (fokus === 'bilder') imageLoader() - if (custom) initialLoadContent(fokus) + clickLog(); + popovers(); + if (fokus === 'bilder') imageLoader(); + if (custom) initialLoadContent(fokus); // pagination() - tabs() - theme() - fokiChanger() - pluginInfo() - productWidget() - $('iframe:not(.resized)').iFrameResize() - $('iframe').addClass('resized') + tabs(); + theme(); + fokiChanger(); + pluginInfo(); + productWidget(); + $('iframe:not(.resized)').iFrameResize(); + $('iframe').addClass('resized'); } function pluginInfo () { @@ -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 () { $('[data-toggle=popover]').each(function (e) { $(this).popover('destroy') diff --git a/public/build/rev-manifest.json b/public/build/rev-manifest.json index 6057c57bf364dda6a8b4ced17c0eddc4dcdc86cb..1f0c4d65f780c253183f99f3c3f6dfa79c3f706c 100644 --- a/public/build/rev-manifest.json +++ b/public/build/rev-manifest.json @@ -1,7 +1,7 @@ { "js/editLanguage.js": "js/editLanguage-1ce447084a.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/settings.js": "js/settings-0af8170dff.js", "js/widgets.js": "js/widgets-40195be855.js" diff --git a/public/js/botProtection.js b/public/js/botProtection.js deleted file mode 100644 index 8e4661d5738bdb3ec8bce20a120c909bfa0ad63c..0000000000000000000000000000000000000000 --- a/public/js/botProtection.js +++ /dev/null @@ -1,11 +0,0 @@ -$(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 diff --git a/public/js/scriptResultPage.js b/public/js/scriptResultPage.js index ed1b148fc91361394fd15f20a585d2c43c09f851..8ce3eb0afe17d917f46a1aa8196e584e8480ad0a 100644 --- a/public/js/scriptResultPage.js +++ b/public/js/scriptResultPage.js @@ -1,8 +1,9 @@ $(document).ready(function () { - createCustomFocuses() - var focus = $('#foki > li.active > a').attr('aria-controls') - var custom = $('#foki > li.active').hasClass('custom-focus-tab-selector') - getDocumentReadyForUse(focus, custom) + createCustomFocuses(); + var focus = $('#foki > li.active > a').attr('aria-controls'); + var custom = $('#foki > li.active').hasClass('custom-focus-tab-selector'); + getDocumentReadyForUse(focus, custom); + botProtection(); }) function tabs () { @@ -31,18 +32,18 @@ function tabs () { } function getDocumentReadyForUse (fokus, custom = false) { - clickLog() - popovers() - if (fokus === 'bilder') imageLoader() - if (custom) initialLoadContent(fokus) + clickLog(); + popovers(); + if (fokus === 'bilder') imageLoader(); + if (custom) initialLoadContent(fokus); // pagination() - tabs() - theme() - fokiChanger() - pluginInfo() - productWidget() - $('iframe:not(.resized)').iFrameResize() - $('iframe').addClass('resized') + tabs(); + theme(); + fokiChanger(); + pluginInfo(); + productWidget(); + $('iframe:not(.resized)').iFrameResize(); + $('iframe').addClass('resized'); } function pluginInfo () { @@ -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 () { $('[data-toggle=popover]').each(function (e) { $(this).popover('destroy')