summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax2017-05-02 00:42:58 +0200
committerMax2017-05-02 00:42:58 +0200
commit7956f70696e800f688aa366c9ecb342665b64620 (patch)
tree78155c3222f1fefdc400199232761a6464e9d7b2
parenta44a7b4b76117ec1bbaceb48408ec4d5d28d89d8 (diff)
downloadgospeladlershof.de-7956f70696e800f688aa366c9ecb342665b64620.tar.gz
"Don't actually copy these 2 lines!" -They said it.
-rw-r--r--intern.gospeladlershof.de/assets/js/ie-emulation-modes-warning.js51
-rw-r--r--intern.gospeladlershof.de/header.php4
2 files changed, 0 insertions, 55 deletions
diff --git a/intern.gospeladlershof.de/assets/js/ie-emulation-modes-warning.js b/intern.gospeladlershof.de/assets/js/ie-emulation-modes-warning.js
deleted file mode 100644
index 3f97ba5..0000000
--- a/intern.gospeladlershof.de/assets/js/ie-emulation-modes-warning.js
+++ /dev/null
@@ -1,51 +0,0 @@
-// NOTICE!! DO NOT USE ANY OF THIS JAVASCRIPT
-// IT'S JUST JUNK FOR OUR DOCS!
-// ++++++++++++++++++++++++++++++++++++++++++
-/*!
- * Copyright 2014-2015 Twitter, Inc.
- *
- * Licensed under the Creative Commons Attribution 3.0 Unported License. For
- * details, see https://creativecommons.org/licenses/by/3.0/.
- */
-// Intended to prevent false-positive bug reports about Bootstrap not working properly in old versions of IE due to folks testing using IE's unreliable emulation modes.
-(function () {
- 'use strict';
-
- function emulatedIEMajorVersion() {
- var groups = /MSIE ([0-9.]+)/.exec(window.navigator.userAgent)
- if (groups === null) {
- return null
- }
- var ieVersionNum = parseInt(groups[1], 10)
- var ieMajorVersion = Math.floor(ieVersionNum)
- return ieMajorVersion
- }
-
- function actualNonEmulatedIEMajorVersion() {
- // Detects the actual version of IE in use, even if it's in an older-IE emulation mode.
- // IE JavaScript conditional compilation docs: https://msdn.microsoft.com/library/121hztk3%28v=vs.94%29.aspx
- // @cc_on docs: https://msdn.microsoft.com/library/8ka90k2e%28v=vs.94%29.aspx
- var jscriptVersion = new Function('/*@cc_on return @_jscript_version; @*/')() // jshint ignore:line
- if (jscriptVersion === undefined) {
- return 11 // IE11+ not in emulation mode
- }
- if (jscriptVersion < 9) {
- return 8 // IE8 (or lower; haven't tested on IE<8)
- }
- return jscriptVersion // IE9 or IE10 in any mode, or IE11 in non-IE11 mode
- }
-
- var ua = window.navigator.userAgent
- if (ua.indexOf('Opera') > -1 || ua.indexOf('Presto') > -1) {
- return // Opera, which might pretend to be IE
- }
- var emulated = emulatedIEMajorVersion()
- if (emulated === null) {
- return // Not IE
- }
- var nonEmulated = actualNonEmulatedIEMajorVersion()
-
- if (emulated !== nonEmulated) {
- window.alert('WARNING: You appear to be using IE' + nonEmulated + ' in IE' + emulated + ' emulation mode.\nIE emulation modes can behave significantly differently from ACTUAL older versions of IE.\nPLEASE DON\'T FILE BOOTSTRAP BUGS based on testing in IE emulation modes!')
- }
-})();
diff --git a/intern.gospeladlershof.de/header.php b/intern.gospeladlershof.de/header.php
index 7ac7cdf..a3cab04 100644
--- a/intern.gospeladlershof.de/header.php
+++ b/intern.gospeladlershof.de/header.php
@@ -35,10 +35,6 @@ if ( defined("LOGIN_SITE") && LOGIN_SITE ) {
}
?>
- <!-- Just for debugging purposes. Don't actually copy these 2 lines! -->
- <!--[if lt IE 9]><script src="/assets/js/ie8-responsive-file-warning.js"></script><![endif]-->
- <script src="/assets/js/ie-emulation-modes-warning.js"></script>
-
<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script>