From 5d44b575221487bde57e096e3dca5485d6552536 Mon Sep 17 00:00:00 2001 From: Sebastian Date: Thu, 15 Jul 2021 14:20:25 +0200 Subject: [PATCH] Load outdatedbrowser from local scripts. --- .../scripts/outdatedbrowser/lang/en.html | 3 +++ .../outdatedbrowser/outdatedbrowser.min.css | 8 +++++++ .../outdatedbrowser/outdatedbrowser.min.js | 8 +++++++ frontend/app/index.html | 22 +++++++------------ 4 files changed, 27 insertions(+), 14 deletions(-) create mode 100644 backend/src/Squidex/wwwroot/scripts/outdatedbrowser/lang/en.html create mode 100644 backend/src/Squidex/wwwroot/scripts/outdatedbrowser/outdatedbrowser.min.css create mode 100644 backend/src/Squidex/wwwroot/scripts/outdatedbrowser/outdatedbrowser.min.js diff --git a/backend/src/Squidex/wwwroot/scripts/outdatedbrowser/lang/en.html b/backend/src/Squidex/wwwroot/scripts/outdatedbrowser/lang/en.html new file mode 100644 index 0000000000..48b2b1e26f --- /dev/null +++ b/backend/src/Squidex/wwwroot/scripts/outdatedbrowser/lang/en.html @@ -0,0 +1,3 @@ +
Your browser is out of date!
+

Update your browser to view this website correctly. Update my browser now

+

×

diff --git a/backend/src/Squidex/wwwroot/scripts/outdatedbrowser/outdatedbrowser.min.css b/backend/src/Squidex/wwwroot/scripts/outdatedbrowser/outdatedbrowser.min.css new file mode 100644 index 0000000000..a133f5aadf --- /dev/null +++ b/backend/src/Squidex/wwwroot/scripts/outdatedbrowser/outdatedbrowser.min.css @@ -0,0 +1,8 @@ +/*!-------------------------------------------------------------------- +STYLES "Outdated Browser" +Version: 1.1.2 - 2015 +author: Burocratik +website: http://www.burocratik.com +* @preserve +-----------------------------------------------------------------------*/ +#outdated{display:none;position:fixed;top:0;left:0;width:100%;height:170px;text-align:center;text-transform:uppercase;z-index:1500;background-color:#f25648;color:#fff}* html #outdated{position:absolute}#outdated h6{font-size:25px;line-height:25px;margin:30px 0 10px}#outdated p{font-size:12px;line-height:12px;margin:0}#outdated #btnUpdateBrowser{display:block;position:relative;padding:10px 20px;margin:30px auto 0;width:230px;color:#fff;text-decoration:none;border:2px solid #fff;cursor:pointer}#outdated #btnUpdateBrowser:hover{color:#f25648;background-color:#fff}#outdated .last{position:absolute;top:10px;right:25px;width:20px;height:20px}#outdated #btnCloseUpdateBrowser{display:block;position:relative;width:100%;height:100%;text-decoration:none;color:#fff;font-size:36px;line-height:36px} \ No newline at end of file diff --git a/backend/src/Squidex/wwwroot/scripts/outdatedbrowser/outdatedbrowser.min.js b/backend/src/Squidex/wwwroot/scripts/outdatedbrowser/outdatedbrowser.min.js new file mode 100644 index 0000000000..55ca0c61de --- /dev/null +++ b/backend/src/Squidex/wwwroot/scripts/outdatedbrowser/outdatedbrowser.min.js @@ -0,0 +1,8 @@ +/*!-------------------------------------------------------------------- +JAVASCRIPT "Outdated Browser" +Version: 1.1.2 - 2015 +author: Burocratik +website: http://www.burocratik.com +* @preserve +-----------------------------------------------------------------------*/ +var outdatedBrowser=function(t){function o(t){s.style.opacity=t/100,s.style.filter="alpha(opacity="+t+")"}function e(t){o(t),1==t&&(s.style.display="block"),100==t&&(u=!0)}function r(){var t=document.getElementById("btnCloseUpdateBrowser"),o=document.getElementById("btnUpdateBrowser");s.style.backgroundColor=bkgColor,s.style.color=txtColor,s.children[0].style.color=txtColor,s.children[1].style.color=txtColor,o.style.color=txtColor,o.style.borderColor&&(o.style.borderColor=txtColor),t.style.color=txtColor,t.onmousedown=function(){return s.style.display="none",!1},o.onmouseover=function(){this.style.color=bkgColor,this.style.backgroundColor=txtColor},o.onmouseout=function(){this.style.color=txtColor,this.style.backgroundColor=bkgColor}}function l(){var t=!1;if(window.XMLHttpRequest)t=new XMLHttpRequest;else if(window.ActiveXObject)try{t=new ActiveXObject("Msxml2.XMLHTTP")}catch(o){try{t=new ActiveXObject("Microsoft.XMLHTTP")}catch(o){t=!1}}return t}function a(t){var o=l();return o&&(o.onreadystatechange=function(){n(o)},o.open("GET",t,!0),o.send(null)),!1}function n(t){var o=document.getElementById("outdated");return 4==t.readyState&&(o.innerHTML=200==t.status||304==t.status?t.responseText:d,r()),!1}var s=document.getElementById("outdated");this.defaultOpts={bgColor:"#f25648",color:"#ffffff",lowerThan:"transform",languagePath:"../outdatedbrowser/lang/en.html"},t?("IE8"==t.lowerThan||"borderSpacing"==t.lowerThan?t.lowerThan="borderSpacing":"IE9"==t.lowerThan||"boxShadow"==t.lowerThan?t.lowerThan="boxShadow":"IE10"==t.lowerThan||"transform"==t.lowerThan||""==t.lowerThan||"undefined"==typeof t.lowerThan?t.lowerThan="transform":("IE11"==t.lowerThan||"borderImage"==t.lowerThan)&&(t.lowerThan="borderImage"),this.defaultOpts.bgColor=t.bgColor,this.defaultOpts.color=t.color,this.defaultOpts.lowerThan=t.lowerThan,this.defaultOpts.languagePath=t.languagePath,bkgColor=this.defaultOpts.bgColor,txtColor=this.defaultOpts.color,cssProp=this.defaultOpts.lowerThan,languagePath=this.defaultOpts.languagePath):(bkgColor=this.defaultOpts.bgColor,txtColor=this.defaultOpts.color,cssProp=this.defaultOpts.lowerThan,languagePath=this.defaultOpts.languagePath);var u=!0,i=function(){var t=document.createElement("div"),o="Khtml Ms O Moz Webkit".split(" "),e=o.length;return function(r){if(r in t.style)return!0;for(r=r.replace(/^[a-z]/,function(t){return t.toUpperCase()});e--;)if(o[e]+r in t.style)return!0;return!1}}();if(!i(""+cssProp)){if(u&&"1"!==s.style.opacity){u=!1;for(var c=1;100>=c;c++)setTimeout(function(t){return function(){e(t)}}(c),8*c)}" "===languagePath||0==languagePath.length?r():a(languagePath);var d='
Your browser is out-of-date!

Update your browser to view this website correctly. Update my browser now

×

'}}; \ No newline at end of file diff --git a/frontend/app/index.html b/frontend/app/index.html index 31f83bb61d..2b56157ae5 100644 --- a/frontend/app/index.html +++ b/frontend/app/index.html @@ -20,12 +20,13 @@ - + - + @@ -52,16 +56,6 @@ -
-
Your browser is out-of-date!
- -

- Update your browser to view this website correctly. Update my browser now -

- -

- × -

-
+
\ No newline at end of file