first commit

This commit is contained in:
armansansd
2023-07-12 16:31:19 +01:00
commit 3424b1927b
23306 changed files with 2217776 additions and 0 deletions
+26
View File
@@ -0,0 +1,26 @@
/*!
{
"name": "Base 64 encoding/decoding",
"property": "atobbtoa",
"builderAliases": ["atob-btoa"],
"caniuse": "atob-btoa",
"tags": ["atob", "base64", "WindowBase64", "btoa"],
"authors": ["Christian Ulbrich"],
"notes": [{
"name": "WindowBase64",
"href": "https://www.w3.org/TR/html5/webappapis.html#windowbase64"
}, {
"name": "MDN Docs",
"href": "https://developer.mozilla.org/en-US/docs/Web/API/WindowOrWorkerGlobalScope/atob"
}],
"polyfills": ["base64js"]
}
!*/
/* DOC
Detects support for WindowBase64 API (window.atob && window.btoa).
*/
define(['Modernizr'], function(Modernizr) {
Modernizr.addTest('atobbtoa', 'atob' in window && 'btoa' in window, {aliases: ['atob-btoa']});
});
+16
View File
@@ -0,0 +1,16 @@
/*!
{
"name": "Framed window",
"property": "framed",
"tags": ["window"],
"builderAliases": ["window_framed"]
}
!*/
/* DOC
Tests if page is iframed.
*/
define(['Modernizr'], function(Modernizr) {
// github.com/Modernizr/Modernizr/issues/242
Modernizr.addTest('framed', window.location !== top.location);
});
+25
View File
@@ -0,0 +1,25 @@
/*!
{
"name": "matchMedia",
"property": "matchmedia",
"caniuse": "matchmedia",
"tags": ["matchmedia"],
"authors": ["Alberto Elias"],
"notes": [{
"name": "W3C Spec",
"href": "https://drafts.csswg.org/cssom-view/#the-mediaquerylist-interface"
}, {
"name": "MDN Docs",
"href": "https://developer.mozilla.org/en-US/docs/Web/API/Window.matchMedia"
}],
"polyfills": ["matchmediajs"]
}
!*/
/* DOC
Detects support for matchMedia.
*/
define(['Modernizr', 'prefixed'], function(Modernizr, prefixed) {
Modernizr.addTest('matchmedia', !!prefixed('matchMedia', window));
});