diff --git a/wwwroot/css/empty.css b/wwwroot/css/empty.css index 6b1b2d8..8e8cbb5 100644 --- a/wwwroot/css/empty.css +++ b/wwwroot/css/empty.css @@ -29,18 +29,18 @@ img { width: 100%; } - #img_controls.playing:hover { - opacity: 1; - transition-property: opacity; - transition-duration: 2.5s; - } +#img_controls.playing:hover { + opacity: 1; + transition-property: opacity; + transition-duration: 2.5s; +} - #img_controls.playing:not(:hover) { - opacity: 0; - transition-delay: 2.5s; - transition-property: opacity; - transition-duration: 2.5s; - } +#img_controls.playing:not(:hover) { + opacity: 0; + transition-delay: 2.5s; + transition-property: opacity; + transition-duration: 2.5s; +} @media (max-aspect-ratio: 2746/3688) { #div_manchu #img_manchu { diff --git a/wwwroot/lib/modernizr/modernizr.js b/wwwroot/lib/modernizr/modernizr.js index 3365339..2e18f78 100644 --- a/wwwroot/lib/modernizr/modernizr.js +++ b/wwwroot/lib/modernizr/modernizr.js @@ -23,7 +23,6 @@ */ window.Modernizr = (function( window, document, undefined ) { - var version = '2.8.3', Modernizr = {}, @@ -91,11 +90,9 @@ window.Modernizr = (function( window, document, undefined ) { featureName, // used in testing loop - /*>>teststyles*/ // Inject element with style element and some CSS rules injectElementWithStyles = function( rule, callback, nodes, testnames ) { - var style, ret, node, docOverflow, div = document.createElement('div'), // After page load injecting a fake body doesn't work so check if body exists @@ -144,7 +141,6 @@ window.Modernizr = (function( window, document, undefined ) { } return !!ret; - }, /*>>teststyles*/ @@ -153,7 +149,6 @@ window.Modernizr = (function( window, document, undefined ) { // by Scott Jehl and Paul Irish // gist.github.com/786768 testMediaQuery = function( mq ) { - var matchMedia = window.matchMedia || window.msMatchMedia; if ( matchMedia ) { return matchMedia(mq) && matchMedia(mq).matches || false; @@ -168,11 +163,9 @@ window.Modernizr = (function( window, document, undefined ) { }); return bool; - }, /*>>mq*/ - /*>>hasevent*/ // // isEventSupported determines if a given element supports the given event @@ -183,7 +176,6 @@ window.Modernizr = (function( window, document, undefined ) { // Modernizr.hasEvent("textInput") // in Webkit. github.com/Modernizr/Modernizr/issues/333 // ... isEventSupported = (function() { - var TAGNAMES = { 'select': 'input', 'change': 'input', 'submit': 'form', 'reset': 'form', @@ -191,7 +183,6 @@ window.Modernizr = (function( window, document, undefined ) { }; function isEventSupported( eventName, element ) { - element = element || document.createElement(TAGNAMES[eventName] || 'div'); eventName = 'on' + eventName; @@ -243,7 +234,6 @@ window.Modernizr = (function( window, document, undefined ) { if (!Function.prototype.bind) { Function.prototype.bind = function bind(that) { - var target = this; if (typeof target != "function") { @@ -252,9 +242,7 @@ window.Modernizr = (function( window, document, undefined ) { var args = slice.call(arguments, 1), bound = function () { - if (this instanceof bound) { - var F = function(){}; F.prototype = target.prototype; var self = new F(); @@ -267,16 +255,12 @@ window.Modernizr = (function( window, document, undefined ) { return result; } return self; - } else { - return target.apply( that, args.concat(slice.call(arguments)) ); - } - }; return bound; @@ -351,7 +335,6 @@ window.Modernizr = (function( window, document, undefined ) { for ( var i in props ) { var item = obj[props[i]]; if ( item !== undefined) { - // return the property name as a string if (elem === false) return props[i]; @@ -376,7 +359,6 @@ window.Modernizr = (function( window, document, undefined ) { * compatibility. */ function testPropsAll( prop, prefixed, elem ) { - var ucProp = prop.charAt(0).toUpperCase() + prop.slice(1), props = (prop + ' ' + cssomPrefixes.join(ucProp + ' ') + ucProp).split(' '); @@ -392,7 +374,6 @@ window.Modernizr = (function( window, document, undefined ) { } /*>>testallprops*/ - /** * Tests * ----- @@ -462,7 +443,6 @@ window.Modernizr = (function( window, document, undefined ) { return bool; }; - // geolocation is often considered a trivial feature detect... // Turns out, it's quite tricky to get right: // @@ -477,12 +457,10 @@ window.Modernizr = (function( window, document, undefined ) { return 'geolocation' in navigator; }; - tests['postmessage'] = function() { return !!window.postMessage; }; - // Chrome incognito mode used to throw an exception when using openDatabase // It doesn't anymore. tests['websqldatabase'] = function() { @@ -525,7 +503,6 @@ window.Modernizr = (function( window, document, undefined ) { return 'WebSocket' in window || 'MozWebSocket' in window; }; - // css-tricks.com/rgba-browser-support/ tests['rgba'] = function() { // Set an rgba() color and check the returned value @@ -557,8 +534,6 @@ window.Modernizr = (function( window, document, undefined ) { return (/(url\s*\(.*?){3}/).test(mStyle.background); }; - - // this will false positive in Opera Mini // github.com/Modernizr/Modernizr/issues/396 @@ -570,7 +545,6 @@ window.Modernizr = (function( window, document, undefined ) { return testPropsAll('borderImage'); }; - // Super comprehensive table about all the unique implementations of // border-radius: muddledramblings.com/table-of-css3-border-radius-compliance @@ -588,7 +562,6 @@ window.Modernizr = (function( window, document, undefined ) { return document.createElement('div').style.textShadow === ''; }; - tests['opacity'] = function() { // Browsers that actually have CSS Opacity implemented have done so // according to spec, which means their return values are within the @@ -602,7 +575,6 @@ window.Modernizr = (function( window, document, undefined ) { return (/^0.55$/).test(mStyle.opacity); }; - // Note, Android < 4 will pass this test, but can only animate // a single property at a time // goo.gl/v3V4Gp @@ -610,12 +582,10 @@ window.Modernizr = (function( window, document, undefined ) { return testPropsAll('animationName'); }; - tests['csscolumns'] = function() { return testPropsAll('columnCount'); }; - tests['cssgradients'] = function() { /** * For CSS Gradients syntax, please see: @@ -639,19 +609,15 @@ window.Modernizr = (function( window, document, undefined ) { return contains(mStyle.backgroundImage, 'gradient'); }; - tests['cssreflections'] = function() { return testPropsAll('boxReflect'); }; - tests['csstransforms'] = function() { return !!testPropsAll('transform'); }; - tests['csstransforms3d'] = function() { - var ret = !!testPropsAll('perspective'); // Webkit's 3D transforms are passed off to the browser's own graphics renderer. @@ -659,7 +625,6 @@ window.Modernizr = (function( window, document, undefined ) { // some conditions. As a result, Webkit typically recognizes the syntax but // will sometimes throw a false positive, thus we must do a more thorough check: if ( ret && 'webkitPerspective' in docElement.style ) { - // Webkit allows this media query to succeed only if the feature is enabled. // `@media (transform-3d),(-webkit-transform-3d){ ... }` injectElementWithStyles('@media (transform-3d),(-webkit-transform-3d){#modernizr{left:9px;position:absolute;height:3px;}}', function( node, rule ) { @@ -669,12 +634,10 @@ window.Modernizr = (function( window, document, undefined ) { return ret; }; - tests['csstransitions'] = function() { return testPropsAll('transition'); }; - /*>>fontface*/ // @font-face detection routine by Diego Perini // javascript.nwbox.com/CSSSupport/ @@ -708,8 +671,6 @@ window.Modernizr = (function( window, document, undefined ) { return bool; }; - - // These tests evaluate support of the video/audio elements, as well as // testing what types of content they support. // @@ -739,7 +700,6 @@ window.Modernizr = (function( window, document, undefined ) { bool.webm = elem.canPlayType('video/webm; codecs="vp8, vorbis"').replace(/^no$/,''); } - } catch(e) { } return bool; @@ -767,7 +727,6 @@ window.Modernizr = (function( window, document, undefined ) { return bool; }; - // In FF4, if disabled, window.localStorage should === null. // Normally, we could not test that directly and need to do a @@ -805,17 +764,14 @@ window.Modernizr = (function( window, document, undefined ) { } }; - tests['webworkers'] = function() { return !!window.Worker; }; - tests['applicationcache'] = function() { return !!window.applicationCache; }; - // Thanks to Erik Dahlstrom tests['svg'] = function() { return !!document.createElementNS && !!document.createElementNS(ns.svg, 'svg').createSVGRect; @@ -879,9 +835,7 @@ window.Modernizr = (function( window, document, undefined ) { // Big thanks to @miketaylr for the html5 forms expertise. miketaylr.com/ Modernizr['inputtypes'] = (function(props) { - for ( var i = 0, bool, inputElemType, defaultView, len = props.length; i < len; i++ ) { - inputElem.setAttribute('type', inputElemType = props[i]); bool = inputElem.type !== 'text'; @@ -889,12 +843,10 @@ window.Modernizr = (function( window, document, undefined ) { // If the type does, we feed it a textual value, which shouldn't be valid. // If the value doesn't stick, we know there's input sanitization which infers a custom UI if ( bool ) { - inputElem.value = smile; inputElem.style.cssText = 'position:absolute;visibility:hidden;'; if ( /^range$/.test(inputElemType) && inputElem.style.WebkitAppearance !== undefined ) { - docElement.appendChild(inputElem); defaultView = document.defaultView; @@ -906,18 +858,15 @@ window.Modernizr = (function( window, document, undefined ) { (inputElem.offsetHeight !== 0); docElement.removeChild(inputElem); - } else if ( /^(search|tel)$/.test(inputElemType) ){ // Spec doesn't define any special parsing or detectable UI // behaviors so we pass these through as true // Interestingly, opera fails the earlier test, so it doesn't // even make it here. - } else if ( /^(url|email)$/.test(inputElemType) ) { // Real url and email support comes with prebaked validation. bool = inputElem.checkValidity && inputElem.checkValidity() === false; - } else { // If the upgraded input compontent rejects the :) text, we got a winner bool = inputElem.value != smile; @@ -932,12 +881,9 @@ window.Modernizr = (function( window, document, undefined ) { } /*>>webforms*/ - // End of test definitions // ----------------------- - - // Run through all tests and detect their support in the current UA. // todo: hypothetically we could be doing an array of tests and use a basic loop here. for ( var feature in tests ) { @@ -957,7 +903,6 @@ window.Modernizr = (function( window, document, undefined ) { Modernizr.input || webforms(); /*>>webforms*/ - /** * addTest allows the user to define their own feature tests * the result will be added onto the Modernizr object, @@ -974,7 +919,6 @@ window.Modernizr = (function( window, document, undefined ) { } } } else { - feature = feature.toLowerCase(); if ( Modernizr[feature] !== undefined ) { @@ -992,13 +936,11 @@ window.Modernizr = (function( window, document, undefined ) { docElement.className += ' ' + (test ? '' : 'no-') + feature; } Modernizr[feature] = test; - } return Modernizr; // allow chaining. }; - // Reset modElem.cssText to nothing to reduce memory footprint. setCss(''); modElem = inputElem = null; @@ -1058,7 +1000,6 @@ window.Modernizr = (function( window, document, undefined ) { supportsHtml5Styles = true; supportsUnknownElements = true; } - }()); /*--------------------------------------------------------------------------*/ @@ -1180,7 +1121,6 @@ window.Modernizr = (function( window, document, undefined ) { data.frag = data.createFrag(); } - ownerDocument.createElement = function(nodeName) { //abort shiv if (!html5.shivMethods) { @@ -1244,7 +1184,6 @@ window.Modernizr = (function( window, document, undefined ) { * html5 = { 'elements': 'mark section', 'shivCSS': false, 'shivMethods': false }; */ var html5 = { - /** * An array or space separated string of node names of the elements to shiv. * @memberOf html5 @@ -1303,7 +1242,6 @@ window.Modernizr = (function( window, document, undefined ) { // shiv the document shivDocument(document); - }(this, document)); /*>>shiv*/ @@ -1354,14 +1292,12 @@ window.Modernizr = (function( window, document, undefined ) { Modernizr.testAllProps = testPropsAll; /*>>testallprops*/ - /*>>teststyles*/ // Modernizr.testStyles() allows you to add custom styles to the document and test an element afterwards // Modernizr.testStyles('#modernizr { position:absolute }', function(elem, rule){ ... }) Modernizr.testStyles = injectElementWithStyles; /*>>teststyles*/ - /*>>prefixed*/ // Modernizr.prefixed() returns the prefixed or nonprefixed property name variant of your input // Modernizr.prefixed('boxSizing') // 'MozBoxSizing' @@ -1392,7 +1328,6 @@ window.Modernizr = (function( window, document, undefined ) { }; /*>>prefixed*/ - /*>>cssclasses*/ // Remove "no-js" class from element, if it exists: docElement.className = docElement.className.replace(/(^|\s)no-js(\s|$)/, '$1$2') + @@ -1402,5 +1337,4 @@ window.Modernizr = (function( window, document, undefined ) { /*>>cssclasses*/ return Modernizr; - -})(this, this.document); +})(this, this.document); \ No newline at end of file