text
stringlengths
9
39.2M
dir
stringlengths
25
226
lang
stringclasses
163 values
created_date
timestamp[s]
updated_date
timestamp[s]
repo_name
stringclasses
751 values
repo_full_name
stringclasses
752 values
star
int64
1.01k
183k
len_tokens
int64
1
18.5M
```unknown {"version":3,"sources":["html.sortable.js"],"names":["root","factory","define","amd","exports","module","require","sortable","jQuery","this","$","dragging","draggingHeight","placeholders","sortables","_removeItemEvents","items","off","_removeSortableEvents","_attachGhost","event","ghost","dataTransfer","effe...
/content/code_sandbox/public/vendor/html.sortable/dist/html.sortable.min.js.map
unknown
2016-03-03T01:33:10
2024-08-16T12:05:02
Attendize
Attendize/Attendize
3,955
7,331
```javascript /*! * Modernizr v2.8.3 * www.modernizr.com * * Available under the BSD and MIT licenses: www.modernizr.com/license/ */ /* * Modernizr tests which native CSS3 and HTML5 features are available in * the current UA and makes the results available to you in two ways: * as properties on a global Modern...
/content/code_sandbox/public/vendor/modernizr/modernizr.js
javascript
2016-03-03T01:33:10
2024-08-16T12:05:02
Attendize
Attendize/Attendize
3,955
11,587
```html <!DOCTYPE html> <html class="+no-js no-js- no-js i-has-no-js"> <head> <meta charset="UTF-8"> <title>Modernizr Test Suite</title> <link rel="stylesheet" href="qunit/qunit.css"> <style> body { margin-bottom: 150px;} #testbed { font-family: Helvetica; color: #444; padding-bottom: 100px;} #te...
/content/code_sandbox/public/vendor/modernizr/test/basic.html
html
2016-03-03T01:33:10
2024-08-16T12:05:02
Attendize
Attendize/Attendize
3,955
670
```html <!DOCTYPE html> <html class="+no-js no-js- no-js i-has-no-js"> <head> <meta charset="UTF-8"> <title>Modernizr Test Suite</title> <link rel="stylesheet" href="qunit/qunit.css"> <style> body { margin-bottom: 150px;} #testbed { font-family: Helvetica; color: #444; padding-bottom: 100px;} #te...
/content/code_sandbox/public/vendor/modernizr/test/index.html
html
2016-03-03T01:33:10
2024-08-16T12:05:02
Attendize
Attendize/Attendize
3,955
963
```javascript // Avoid `console` errors in browsers that lack a console if (!(window.console && console.log)) { (function() { var noop = function() {}; var methods = ['assert', 'clear', 'count', 'debug', 'dir', 'dirxml', 'error', 'exception', 'group', 'groupCollapsed', 'groupEnd', 'info', 'log', 'm...
/content/code_sandbox/public/vendor/modernizr/test/js/setup.js
javascript
2016-03-03T01:33:10
2024-08-16T12:05:02
Attendize
Attendize/Attendize
3,955
409
```javascript QUnit.begin = function() { console.log("Starting test suite"); console.log("================================================\n"); }; QUnit.moduleDone = function(opts) { if(opts.failed === 0) { console.log("\u2714 All tests passed in '"+opts.name+"' module"); } else { console.log("\u2716 "+ opts.f...
/content/code_sandbox/public/vendor/modernizr/test/js/unit.js
javascript
2016-03-03T01:33:10
2024-08-16T12:05:02
Attendize
Attendize/Attendize
3,955
4,864
```javascript var myscript = document.createElement('script'), ref = document.getElementsByTagName('script')[0]; myscript.src = 'path_to_url setTimeout(function(){ ref.parentNode.insertBefore(myscript, ref); }, 100); // mapping Modernizr terms over to caniuse terms var map = { audio : 'audio', borderimag...
/content/code_sandbox/public/vendor/modernizr/test/js/unit-caniuse.js
javascript
2016-03-03T01:33:10
2024-08-16T12:05:02
Attendize
Attendize/Attendize
3,955
1,518
```html <!DOCTYPE html> <html class="+no-js no-js- no-js i-has-no-js"> <head> <meta charset="UTF-8"> <title>Modernizr Test Suite</title> <link rel="stylesheet" href="qunit/qunit.css"> <style> body { margin-bottom: 150px;} #testbed { font-family: Helvetica; color: #444; padding-bottom: 100px;} #te...
/content/code_sandbox/public/vendor/modernizr/test/js/basic.html
html
2016-03-03T01:33:10
2024-08-16T12:05:02
Attendize
Attendize/Attendize
3,955
685
```javascript function dumpModernizr(){ var str = ''; dumpModernizr.old = dumpModernizr.old || {}; for (var prop in Modernizr) { // skip previously done ones. if (dumpModernizr.old[prop]) continue; else dumpModernizr.old[prop] = true; if (typeof Modernizr[prop] === 'function') continu...
/content/code_sandbox/public/vendor/modernizr/test/js/dumpdata.js
javascript
2016-03-03T01:33:10
2024-08-16T12:05:02
Attendize
Attendize/Attendize
3,955
519
```javascript // path_to_url // tweaked to run without a UI. (function () { function getPropertyDescriptors(object) { var props = { }; for (var prop in object) { // nerfing for firefox who goes crazy over some objects like sessionStorage try { props[prop] ...
/content/code_sandbox/public/vendor/modernizr/test/js/lib/detect-global.js
javascript
2016-03-03T01:33:10
2024-08-16T12:05:02
Attendize
Attendize/Attendize
3,955
1,148
```javascript /* * This is the JSONSelect reference implementation, in javascript. */ (function(exports) { var // localize references toString = Object.prototype.toString; function jsonParse(str) { try { if(JSON && JSON.parse){ return JSON.parse(str); } ...
/content/code_sandbox/public/vendor/modernizr/test/js/lib/jsonselect.js
javascript
2016-03-03T01:33:10
2024-08-16T12:05:02
Attendize
Attendize/Attendize
3,955
2,492
```javascript // uaparser by lindsey simon, // ported to node by tobie // path_to_url // browserized by paul irish (function(exports){ exports.uaparse = parse; function parse(ua) { for (var i=0; i < parsers.length; i++) { var result = parsers[i](ua); if (result) { return result; } } re...
/content/code_sandbox/public/vendor/modernizr/test/js/lib/uaparser.js
javascript
2016-03-03T01:33:10
2024-08-16T12:05:02
Attendize
Attendize/Attendize
3,955
2,544
```javascript // Array.prototype.indexOf polyfill if (!Array.prototype.indexOf){ Array.prototype.indexOf = function(searchElement /*, fromIndex */) { "use strict"; if (this === void 0 || this === null) throw new TypeError(); var t = Object(this); var len = t.length >>> 0; if (len === 0...
/content/code_sandbox/public/vendor/modernizr/test/js/lib/polyfills.js
javascript
2016-03-03T01:33:10
2024-08-16T12:05:02
Attendize
Attendize/Attendize
3,955
1,596
```html <!DOCTYPE html> <!-- saved from url=(0025)path_to_url --> <html class=" no-js"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><title>WCIU test page</title> <meta charset="utf-8"> <!-- pull in latest modernizr --> <script src="../modernizr.js"></script> <script src="./caniuse_files/jq...
/content/code_sandbox/public/vendor/modernizr/test/caniuse.html
html
2016-03-03T01:33:10
2024-08-16T12:05:02
Attendize
Attendize/Attendize
3,955
25,995
```javascript (function(){var k=void 0,aa=encodeURIComponent,l=String,o=Math,ba="push",ca="cookie",p="charAt",q="indexOf",da="getTime",r="toString",t="window",v="length",w="document",x="split",y="location",ea="protocol",fa="href",z="substring",A="join",C="toLowerCase";var ga="_gat",ha="_gaq",ia="4.9.4",ja="_gaUserPrefs...
/content/code_sandbox/public/vendor/modernizr/test/caniuse_files/ga.js
javascript
2016-03-03T01:33:10
2024-08-16T12:05:02
Attendize
Attendize/Attendize
3,955
11,734
```html <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "path_to_url"><html xmlns="path_to_url"> <head> <meta http-equiv="content-type" content="text/html; charset=utf-8" /> <title>Untitled</title> </head> <body><p>true</p> <script> <![CDATA[ window.parent.setResult...
/content/code_sandbox/public/vendor/modernizr/test/caniuse_files/xhtml.html
html
2016-03-03T01:33:10
2024-08-16T12:05:02
Attendize
Attendize/Attendize
3,955
121
```html <?xml version="1.0" encoding="utf-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1 plus MathML 2.0//EN" "path_to_url"><html xmlns="path_to_url" xmlns:html="path_to_url"> <head> <meta http-equiv="content-type" content="text/html; charset=utf-8" /> <title>Untitled</title> </head> <body> <math xmlns="path_to_ur...
/content/code_sandbox/public/vendor/modernizr/test/caniuse_files/mathml.html
html
2016-03-03T01:33:10
2024-08-16T12:05:02
Attendize
Attendize/Attendize
3,955
746
```javascript // Modernizr v1.7 www.modernizr.com window.Modernizr=function(a,b,c){function G(){e.input=function(a){for(var b=0,c=a.length;b<c;b++)t[a[b]]=!!(a[b]in l);return t}("autocomplete autofocus list placeholder max min multiple pattern required step".split(" ")),e.inputtypes=function(a){for(var d=0,e,f,h,i=a.l...
/content/code_sandbox/public/vendor/modernizr/test/caniuse_files/modernizr-1.7.min.js
javascript
2016-03-03T01:33:10
2024-08-16T12:05:02
Attendize
Attendize/Attendize
3,955
2,720
```javascript /*! * jQuery JavaScript Library v1.6.1 * path_to_url * * Dual licensed under the MIT or GPL Version 2 licenses. * path_to_url * * Includes Sizzle.js * path_to_url * * Date: Thu May 12 15:04:36 2011 -0400 */ (function(a,b){function cy(a){return f.isWindow(a)?a:a.nodeType===9?a.defaultView||a.par...
/content/code_sandbox/public/vendor/modernizr/test/caniuse_files/jquery.min.js
javascript
2016-03-03T01:33:10
2024-08-16T12:05:02
Attendize
Attendize/Attendize
3,955
29,575
```html <!DOCTYPE html> <html> <head> <meta charset="utf-8" /> <title>popstate event test</title> </head> <body> <script> (function() { var test_id; function showResult(r) { if(test_id && window.parent.setResult) { parent.setResult(test_id, r); } else { alert(r); } } if(location.hash.length) { ...
/content/code_sandbox/public/vendor/modernizr/test/caniuse_files/pushstate.html
html
2016-03-03T01:33:10
2024-08-16T12:05:02
Attendize
Attendize/Attendize
3,955
176
```html <!DOCTYPE html> <!-- saved from url=(0045)path_to_url --> <html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><script> if(location.href.indexOf('?') >= 0) { document.write('FAIL'); } </script> </head><body><form action="path_to_url" method="post"> <input type="url" name="foo" requi...
/content/code_sandbox/public/vendor/modernizr/test/caniuse_files/form_validation.html
html
2016-03-03T01:33:10
2024-08-16T12:05:02
Attendize
Attendize/Attendize
3,955
106
```html <!DOCTYPE html> <html> <head> <meta charset="utf-8" /> <title>hashchange test</title> </head> <body style="background:red;overflow:hidden;"> <script> addEventListener('hashchange', function() { document.body.style.background = 'lime'; }, false); location.hash = Math.random(); </script> </body> </html> ```
/content/code_sandbox/public/vendor/modernizr/test/caniuse_files/hashchange.html
html
2016-03-03T01:33:10
2024-08-16T12:05:02
Attendize
Attendize/Attendize
3,955
75
```groff <?xml version="1.0"?> <svg xmlns="path_to_url" viewBox="0 0 30 30"> <rect fill="#00ff00" x="0" y="0" width="30" height="30"> </rect> </svg> ```
/content/code_sandbox/public/vendor/modernizr/test/caniuse_files/svg-img.svg.1
groff
2016-03-03T01:33:10
2024-08-16T12:05:02
Attendize
Attendize/Attendize
3,955
60
```css body { font-family: "Lucida Grande", Lucida, Verdana, sans-serif; font-size: 12px; } a { text-decoration: none; } a:hover { text-decoration: underline; } table, tr, th, td { border: 1px solid #AAA; } table { margin-top: 1em; width: 100%; } tbody th { text-align: left; font-size: 14px; width: 200px;...
/content/code_sandbox/public/vendor/modernizr/test/caniuse_files/style.css
css
2016-03-03T01:33:10
2024-08-16T12:05:02
Attendize
Attendize/Attendize
3,955
663
```css /** * QUnit v1.9.0 - A JavaScript Unit Testing Framework * * path_to_url * * Dual licensed under the MIT (MIT-LICENSE.txt) * or GPL (GPL-LICENSE.txt) licenses. */ /** Font Family and Sizes */ #qunit-tests, #qunit-header, #qunit-banner, #qunit-testrunner-toolbar, #qunit-userAgent, #qunit-testresult { fo...
/content/code_sandbox/public/vendor/modernizr/test/qunit/qunit.css
css
2016-03-03T01:33:10
2024-08-16T12:05:02
Attendize
Attendize/Attendize
3,955
1,417
```javascript /*! * jQuery JavaScript Library v1.7b2 * path_to_url * * Dual licensed under the MIT or GPL Version 2 licenses. * path_to_url * * Includes Sizzle.js * path_to_url * * Date: Thu Oct 13 21:12:55 2011 -0400 */ (function( window, undefined ) { // Use the correct document accordingly with window ar...
/content/code_sandbox/public/vendor/modernizr/test/js/lib/jquery-1.7b2.js
javascript
2016-03-03T01:33:10
2024-08-16T12:05:02
Attendize
Attendize/Attendize
3,955
68,846
```javascript /** * Wait until the test condition is true or a timeout occurs. Useful for waiting * on a server response or for a ui change (fadeIn, etc.) to occur. * * @param testFx javascript condition that evaluates to a boolean, * it can be passed in as a string (e.g.: "1 == 1" or "$('#bar').is(':visible')" or * as...
/content/code_sandbox/public/vendor/modernizr/test/qunit/run-qunit.js
javascript
2016-03-03T01:33:10
2024-08-16T12:05:02
Attendize
Attendize/Attendize
3,955
649
```javascript // a[download] attribute // When used on an <a>, this attribute signifies that the resource it // points to should be downloaded by the browser rather than navigating to it. // path_to_url#downloading-resources // By Addy Osmani Modernizr.addTest('adownload', 'download' in document.createElement('a')); ...
/content/code_sandbox/public/vendor/modernizr/feature-detects/a-download.js
javascript
2016-03-03T01:33:10
2024-08-16T12:05:02
Attendize
Attendize/Attendize
3,955
73
```javascript // Stylable scrollbars detection Modernizr.addTest('cssscrollbar', function() { var bool, styles = "#modernizr{overflow: scroll; width: 40px }#" + Modernizr._prefixes .join("scrollbar{width:0px}"+' #modernizr::') .split('#') .slice(1) .join('#') + "scrollbar{width:0px}"; Moderniz...
/content/code_sandbox/public/vendor/modernizr/feature-detects/css-scrollbars.js
javascript
2016-03-03T01:33:10
2024-08-16T12:05:02
Attendize
Attendize/Attendize
3,955
131
```javascript // Sticky positioning - constrains an element to be positioned inside the // intersection of its container box, and the viewport. Modernizr.addTest('csspositionsticky', function () { var prop = 'position:'; var value = 'sticky'; var el = document.createElement('modernizr'); var mStyle = e...
/content/code_sandbox/public/vendor/modernizr/feature-detects/css-positionsticky.js
javascript
2016-03-03T01:33:10
2024-08-16T12:05:02
Attendize
Attendize/Attendize
3,955
111
```javascript // <output> // path_to_url#the-output-element // by Addy Osmani Modernizr.addTest('outputelem', 'value' in document.createElement('output')); ```
/content/code_sandbox/public/vendor/modernizr/feature-detects/elem-output.js
javascript
2016-03-03T01:33:10
2024-08-16T12:05:02
Attendize
Attendize/Attendize
3,955
38
```javascript // getUserMedia // path_to_url // By Eric Bidelman Modernizr.addTest('getusermedia', !!Modernizr.prefixed('getUserMedia', navigator)); ```
/content/code_sandbox/public/vendor/modernizr/feature-detects/getusermedia.js
javascript
2016-03-03T01:33:10
2024-08-16T12:05:02
Attendize
Attendize/Attendize
3,955
37
```javascript // test by github.com/nsfmc // "The 'rem' unit ('root em') is relative to the computed // value of the 'font-size' value of the root element." // path_to_url#relative0 // you can test by checking if the prop was ditched // path_to_url Modernizr.addTest('cssremunit', function(){ var div = document.c...
/content/code_sandbox/public/vendor/modernizr/feature-detects/css-remunit.js
javascript
2016-03-03T01:33:10
2024-08-16T12:05:02
Attendize
Attendize/Attendize
3,955
117
```javascript // defer script // By Theodoor van Donge Modernizr.addTest('scriptdefer', 'defer' in document.createElement('script')); ```
/content/code_sandbox/public/vendor/modernizr/feature-detects/script-defer.js
javascript
2016-03-03T01:33:10
2024-08-16T12:05:02
Attendize
Attendize/Attendize
3,955
31
```javascript // cubic-bezier values can't be > 1 for Webkit until bug #45761 (path_to_url is fixed // By @calvein Modernizr.addTest('cubicbezierrange', function() { var el = document.createElement('div'); el.style.cssText = Modernizr._prefixes.join('transition-timing-function' + ':cubic-bezier(1,0,0,1.1); ');...
/content/code_sandbox/public/vendor/modernizr/feature-detects/css-cubicbezierrange.js
javascript
2016-03-03T01:33:10
2024-08-16T12:05:02
Attendize
Attendize/Attendize
3,955
102
```javascript // IE8 compat mode aka Fake IE7 // by Erich Ocean // In this case, IE8 will be acting as IE7. You may choose to remove features in this case. // related: // james.padolsey.com/javascript/detect-ie-in-js-using-conditional-comments/ Modernizr.addTest('ie8compat',function(){ return (!window.addEventL...
/content/code_sandbox/public/vendor/modernizr/feature-detects/ie8compat.js
javascript
2016-03-03T01:33:10
2024-08-16T12:05:02
Attendize
Attendize/Attendize
3,955
91
```javascript // test if IE userdata supported // msdn.microsoft.com/en-us/library/ms531424(v=vs.85).aspx // test by @stereobooster Modernizr.addTest('userdata', function(){ return !!document.createElement('div').addBehavior; }); ```
/content/code_sandbox/public/vendor/modernizr/feature-detects/userdata.js
javascript
2016-03-03T01:33:10
2024-08-16T12:05:02
Attendize
Attendize/Attendize
3,955
58
```javascript // <time> element // path_to_url#the-time-element-0 // by Addy Osmani Modernizr.addTest('time', 'valueAsDate' in document.createElement('time')); ```
/content/code_sandbox/public/vendor/modernizr/feature-detects/elem-time.js
javascript
2016-03-03T01:33:10
2024-08-16T12:05:02
Attendize
Attendize/Attendize
3,955
43
```javascript // Browser support test for the HTML5 <ruby>, <rt> and <rp> elements // path_to_url#the-ruby-element // // by @alrra Modernizr.addTest('ruby', function () { var ruby = document.createElement('ruby'), rt = document.createElement('rt'), rp = document.createElement('rp'), docEle...
/content/code_sandbox/public/vendor/modernizr/feature-detects/elem-ruby.js
javascript
2016-03-03T01:33:10
2024-08-16T12:05:02
Attendize
Attendize/Attendize
3,955
416
```javascript // this tests passes for webkit's proprietary `-webkit-mask` feature // www.webkit.org/blog/181/css-masks/ // developer.apple.com/library/safari/#documentation/InternetWeb/Conceptual/SafariVisualEffectsProgGuide/Masks/Masks.html // it does not pass mozilla's implementation of `mask` for SVG // dev...
/content/code_sandbox/public/vendor/modernizr/feature-detects/css-mask.js
javascript
2016-03-03T01:33:10
2024-08-16T12:05:02
Attendize
Attendize/Attendize
3,955
131
```javascript // EXIF Orientation test // iOS looks at the EXIF Orientation flag in jpgs and rotates the image // accordingly. Looks like most desktop browsers just ignore this data. // description: www.impulseadventure.com/photo/exif-orientation.html // Bug trackers: // bugzil.la/298619 (unimplemented) // crb...
/content/code_sandbox/public/vendor/modernizr/feature-detects/exif-orientation.js
javascript
2016-03-03T01:33:10
2024-08-16T12:05:02
Attendize
Attendize/Attendize
3,955
492
```javascript // canvas.toDataURL type support // path_to_url#dom-canvas-todataurl // This test is asynchronous. Watch out. (function () { if (!Modernizr.canvas) { return false; } var image = new Image(), canvas = document.createElement('canvas'), ctx = canvas.getContext('2d'); ...
/content/code_sandbox/public/vendor/modernizr/feature-detects/canvas-todataurl-type.js
javascript
2016-03-03T01:33:10
2024-08-16T12:05:02
Attendize
Attendize/Attendize
3,955
196
```javascript // Detect support for svg filters - path_to_url // Should fail in Safari: path_to_url // detect by erik dahlstrom Modernizr.addTest('svgfilters', function(){ var result = false; try { result = typeof SVGFEColorMatrixElement !== undefined && SVGFEColorMatrixElement.SVG_FECOLORMAT...
/content/code_sandbox/public/vendor/modernizr/feature-detects/svg-filters.js
javascript
2016-03-03T01:33:10
2024-08-16T12:05:02
Attendize
Attendize/Attendize
3,955
95
```javascript // Navigation Timing (Performance) // path_to_url // path_to_url // By Scott Murphy (uxder) Modernizr.addTest('performance', !!Modernizr.prefixed('performance', window)); ```
/content/code_sandbox/public/vendor/modernizr/feature-detects/performance.js
javascript
2016-03-03T01:33:10
2024-08-16T12:05:02
Attendize
Attendize/Attendize
3,955
42
```javascript Modernizr.addTest('sharedworkers', function(){ return !!window.SharedWorker; }); ```
/content/code_sandbox/public/vendor/modernizr/feature-detects/workers-sharedworkers.js
javascript
2016-03-03T01:33:10
2024-08-16T12:05:02
Attendize
Attendize/Attendize
3,955
19
```javascript // Test for `seamless` attribute in iframes. // // Spec: path_to_url#attr-iframe-seamless Modernizr.addTest('seamless', 'seamless' in document.createElement('iframe')); ```
/content/code_sandbox/public/vendor/modernizr/feature-detects/iframe-seamless.js
javascript
2016-03-03T01:33:10
2024-08-16T12:05:02
Attendize
Attendize/Attendize
3,955
49
```javascript /* Allan Lei path_to_url Check adapted from path_to_url Test: path_to_url */ Modernizr.addTest('bgpositionxy', function() { return Modernizr.testStyles('#modernizr {background-position: 3px 5px;}', function(elem) { var cssStyleDeclaration = window.getComputedStyle ? getComputedStyle(ele...
/content/code_sandbox/public/vendor/modernizr/feature-detects/css-backgroundposition-xy.js
javascript
2016-03-03T01:33:10
2024-08-16T12:05:02
Attendize
Attendize/Attendize
3,955
157
```javascript // CSS Regions // path_to_url // By: Mihai Balan // We start with a CSS parser test then we check page geometry to see if it's affected by regions // Later we might be able to retire the second part, as WebKit builds with the false positives die out Modernizr.addTest('regions', function() { /* Get the...
/content/code_sandbox/public/vendor/modernizr/feature-detects/css-regions.js
javascript
2016-03-03T01:33:10
2024-08-16T12:05:02
Attendize
Attendize/Attendize
3,955
500
```javascript /** * Unicode special character support * * Detection is made by testing missing glyph box rendering against star character * If widths are the same, this "probably" means the browser didn't support the star character and rendered a glyph box instead * Just need to ensure the font characters have di...
/content/code_sandbox/public/vendor/modernizr/feature-detects/unicode.js
javascript
2016-03-03T01:33:10
2024-08-16T12:05:02
Attendize
Attendize/Attendize
3,955
211
```javascript // server sent events aka eventsource // dev.w3.org/html5/eventsource/ Modernizr.addTest('eventsource', !!window.EventSource); ```
/content/code_sandbox/public/vendor/modernizr/feature-detects/network-eventsource.js
javascript
2016-03-03T01:33:10
2024-08-16T12:05:02
Attendize
Attendize/Attendize
3,955
33
```javascript // MathML // path_to_url // By Addy Osmani // Based on work by Davide (@dpvc) and David (@davidcarlisle) // in path_to_url Modernizr.addTest('mathml', function(){ var hasMathML = false; if ( document.createElementNS ) { var ns = "path_to_url", div = document.createElement("div"); div.style....
/content/code_sandbox/public/vendor/modernizr/feature-detects/mathml.js
javascript
2016-03-03T01:33:10
2024-08-16T12:05:02
Attendize
Attendize/Attendize
3,955
175
```javascript // path_to_url#context-menus // Demo at path_to_url Modernizr.addTest( 'contextmenu', ('contextMenu' in document.documentElement && 'HTMLMenuItemElement' in window) ); ```
/content/code_sandbox/public/vendor/modernizr/feature-detects/contextmenu.js
javascript
2016-03-03T01:33:10
2024-08-16T12:05:02
Attendize
Attendize/Attendize
3,955
48
```javascript // path_to_url Modernizr.addTest('shapes', Modernizr.testAllProps('shapeOutside', 'content-box', true)); ```
/content/code_sandbox/public/vendor/modernizr/feature-detects/css-shapes.js
javascript
2016-03-03T01:33:10
2024-08-16T12:05:02
Attendize
Attendize/Attendize
3,955
29
```javascript // johanbrook.com/browsers/native-momentum-scrolling-ios-5/ // introduced in iOS5b2. Possible API may change... Modernizr.addTest("overflowscrolling",function(){ return Modernizr.testAllProps("overflowScrolling"); }); ```
/content/code_sandbox/public/vendor/modernizr/feature-detects/css-overflow-scrolling.js
javascript
2016-03-03T01:33:10
2024-08-16T12:05:02
Attendize
Attendize/Attendize
3,955
55
```javascript // Microdata support // path_to_url // By Addy Osmani Modernizr.addTest('microdata', !!(document['getItems'])); ```
/content/code_sandbox/public/vendor/modernizr/feature-detects/dom-microdata.js
javascript
2016-03-03T01:33:10
2024-08-16T12:05:02
Attendize
Attendize/Attendize
3,955
33
```javascript /** * QUnit v1.9.0 - A JavaScript Unit Testing Framework * * path_to_url * * Dual licensed under the MIT (MIT-LICENSE.txt) * or GPL (GPL-LICENSE.txt) licenses. */ (function( window ) { var QUnit, config, onErrorFnPrev, testId = 0, fileName = (sourceFromStacktrace( 0 ) || "" ).replace(/(:\d+)+...
/content/code_sandbox/public/vendor/modernizr/test/qunit/qunit.js
javascript
2016-03-03T01:33:10
2024-08-16T12:05:02
Attendize
Attendize/Attendize
3,955
14,166
```javascript // lol. we already have a test for datalist built in! silly you. // Helpful links while you're here, though.. // path_to_url // path_to_url // path_to_url Modernizr.addTest('datalistelem', Modernizr.input.list ); ```
/content/code_sandbox/public/vendor/modernizr/feature-detects/elem-datalist.js
javascript
2016-03-03T01:33:10
2024-08-16T12:05:02
Attendize
Attendize/Attendize
3,955
58
```javascript // Detects whether input type="file" is available on the platform // E.g. iOS < 6 and some android version don't support this // It's useful if you want to hide the upload feature of your app on devices that // don't support it (iphone, ipad, etc). Modernizr.addTest('fileinput', function() { var...
/content/code_sandbox/public/vendor/modernizr/feature-detects/forms-fileinput.js
javascript
2016-03-03T01:33:10
2024-08-16T12:05:02
Attendize
Attendize/Attendize
3,955
101
```javascript // classList // path_to_url // By Addy Osmani Modernizr.addTest('classlist', 'classList' in document.documentElement); ```
/content/code_sandbox/public/vendor/modernizr/feature-detects/dom-classlist.js
javascript
2016-03-03T01:33:10
2024-08-16T12:05:02
Attendize
Attendize/Attendize
3,955
32
```javascript // By @mathias, based on path_to_url Modernizr.addTest('details', function() { var doc = document, el = doc.createElement('details'), fake, root, diff; if (!('open' in el)) { // return early if possible; thanks @aFarkas! return false; } root = doc.bo...
/content/code_sandbox/public/vendor/modernizr/feature-detects/elem-details.js
javascript
2016-03-03T01:33:10
2024-08-16T12:05:02
Attendize
Attendize/Attendize
3,955
179
```javascript // dev.opera.com/articles/view/css3-object-fit-object-position/ Modernizr.addTest('object-fit', !!Modernizr.prefixed('objectFit') ); ```
/content/code_sandbox/public/vendor/modernizr/feature-detects/css-objectfit.js
javascript
2016-03-03T01:33:10
2024-08-16T12:05:02
Attendize
Attendize/Attendize
3,955
35
```javascript // by jussi-kalliokoski // This test is asynchronous. Watch out. // The test will potentially add garbage to console. (function(){ try { var data = 'Modernizr', worker = new Worker('data:text/javascript;base64,dGhpcy5vbm1lc3NhZ2U9ZnVuY3Rpb24oZSl7cG9zdE1lc3NhZ2UoZS5kYXRhKX0='); w...
/content/code_sandbox/public/vendor/modernizr/feature-detects/workers-dataworkers.js
javascript
2016-03-03T01:33:10
2024-08-16T12:05:02
Attendize
Attendize/Attendize
3,955
222
```javascript // Vibration API // path_to_url // path_to_url Modernizr.addTest('vibrate', !!Modernizr.prefixed('vibrate', navigator)); ```
/content/code_sandbox/public/vendor/modernizr/feature-detects/vibration.js
javascript
2016-03-03T01:33:10
2024-08-16T12:05:02
Attendize
Attendize/Attendize
3,955
35
```javascript // GamePad API // path_to_url // By Eric Bidelman // FF has Gamepad API support only in special builds, but not in any release (even behind a flag) // Their current implementation has no way to feature detect, only events to bind to. // path_to_url#toc-featuredetect // but a patch will bring them up t...
/content/code_sandbox/public/vendor/modernizr/feature-detects/gamepad.js
javascript
2016-03-03T01:33:10
2024-08-16T12:05:02
Attendize
Attendize/Attendize
3,955
121
```javascript // path_to_url#at-supports // github.com/Modernizr/Modernizr/issues/648 // Relies on the fact that a browser vendor should expose the CSSSupportsRule interface // path_to_url#the-csssupportsrule-interface Modernizr.addTest("supports","CSSSupportsRule" in window); ```
/content/code_sandbox/public/vendor/modernizr/feature-detects/css-supports.js
javascript
2016-03-03T01:33:10
2024-08-16T12:05:02
Attendize
Attendize/Attendize
3,955
68
```javascript // Web Audio API // path_to_url // By Addy Osmani Modernizr.addTest('webaudio', !!(window.webkitAudioContext || window.AudioContext)); ```
/content/code_sandbox/public/vendor/modernizr/feature-detects/audio-webaudio-api.js
javascript
2016-03-03T01:33:10
2024-08-16T12:05:02
Attendize
Attendize/Attendize
3,955
37
```javascript // binaryType is truthy if there is support.. returns "blob" in new-ish chrome. // plus.google.com/115535723976198353696/posts/ERN6zYozENV // github.com/Modernizr/Modernizr/issues/370 Modernizr.addTest('websocketsbinary', function() { var protocol = 'https:'==location.protocol?'wss':'ws', protoBin; ...
/content/code_sandbox/public/vendor/modernizr/feature-detects/websockets-binary.js
javascript
2016-03-03T01:33:10
2024-08-16T12:05:02
Attendize
Attendize/Attendize
3,955
149
```javascript // by tauren // path_to_url Modernizr.addTest('cookies', function () { // Quick test if browser has cookieEnabled host property if (navigator.cookieEnabled) return true; // Create cookie document.cookie = "cookietest=1"; var ret = document.cookie.indexOf("cookietest=") != -1; // Delete cooki...
/content/code_sandbox/public/vendor/modernizr/feature-detects/cookies.js
javascript
2016-03-03T01:33:10
2024-08-16T12:05:02
Attendize
Attendize/Attendize
3,955
116
```javascript //By Stefan Wallin //tests for progressbar-support. All browsers that don't support progressbar returns undefined =) Modernizr.addTest("progressbar",function(){ return document.createElement('progress').max !== undefined; }); //tests for meter-support. All browsers that don't support meters returns ...
/content/code_sandbox/public/vendor/modernizr/feature-detects/elem-progress-meter.js
javascript
2016-03-03T01:33:10
2024-08-16T12:05:02
Attendize
Attendize/Attendize
3,955
85
```javascript // dataset API for data-* attributes // test by @phiggins42 Modernizr.addTest('dataset', function(){ var n = document.createElement("div"); n.setAttribute("data-a-b", "c"); return !!(n.dataset && n.dataset.aB === "c"); }); ```
/content/code_sandbox/public/vendor/modernizr/feature-detects/dom-dataset.js
javascript
2016-03-03T01:33:10
2024-08-16T12:05:02
Attendize
Attendize/Attendize
3,955
63
```javascript // Low Battery Level // Enable a developer to remove CPU intensive CSS/JS when battery is low // developer.mozilla.org/en/DOM/window.navigator.mozBattery // By: Paul Sayre Modernizr.addTest('lowbattery', function () { var minLevel = 0.20, battery = Modernizr.prefixed('battery', navigator); return !!...
/content/code_sandbox/public/vendor/modernizr/feature-detects/battery-level.js
javascript
2016-03-03T01:33:10
2024-08-16T12:05:02
Attendize
Attendize/Attendize
3,955
93
```javascript // Test for CSS 3 UI "resize" property // path_to_url#resize // path_to_url Modernizr.addTest('cssresize', Modernizr.testAllProps('resize')); ```
/content/code_sandbox/public/vendor/modernizr/feature-detects/css-resize.js
javascript
2016-03-03T01:33:10
2024-08-16T12:05:02
Attendize
Attendize/Attendize
3,955
43
```javascript // Mozilla Audio Data API // path_to_url // by Addy Osmani Modernizr.addTest('audiodata', !!(window.Audio)); ```
/content/code_sandbox/public/vendor/modernizr/feature-detects/audio-audiodata-api.js
javascript
2016-03-03T01:33:10
2024-08-16T12:05:02
Attendize
Attendize/Attendize
3,955
33
```javascript // path_to_url // Similar to path_to_url Modernizr.addTest('cssvhunit', function() { var bool; Modernizr.testStyles("#modernizr { height: 50vh; }", function(elem, rule) { var height = parseInt(window.innerHeight/2,10), compStyle = parseInt((window.getComputedStyle ? ...
/content/code_sandbox/public/vendor/modernizr/feature-detects/css-vhunit.js
javascript
2016-03-03T01:33:10
2024-08-16T12:05:02
Attendize
Attendize/Attendize
3,955
109
```javascript // impressivewebs.com/reverse-ordered-lists-html5 // polyfill: github.com/impressivewebs/HTML5-Reverse-Ordered-Lists Modernizr.addTest('olreversed', 'reversed' in document.createElement('ol')); ```
/content/code_sandbox/public/vendor/modernizr/feature-detects/lists-reversed.js
javascript
2016-03-03T01:33:10
2024-08-16T12:05:02
Attendize
Attendize/Attendize
3,955
57
```javascript // Quota Storage Management API // This API can be used to check how much quota an origin is using and request more // Currently only implemented in Chrome. // path_to_url // By Addy Osmani Modernizr.addTest('quotamanagement', function(){ var storage = Modernizr.prefixed('StorageInfo', window); retu...
/content/code_sandbox/public/vendor/modernizr/feature-detects/quota-management-api.js
javascript
2016-03-03T01:33:10
2024-08-16T12:05:02
Attendize
Attendize/Attendize
3,955
94
```javascript // Detects whether input form="form_id" is available on the platform // E.g. IE 10 (and below), don't support this Modernizr.addTest("formattribute", function() { var form = document.createElement("form"), input = document.createElement("input"), div = document.createElement("div"), id = "formtest"...
/content/code_sandbox/public/vendor/modernizr/feature-detects/forms-formattribute.js
javascript
2016-03-03T01:33:10
2024-08-16T12:05:02
Attendize
Attendize/Attendize
3,955
184
```javascript // code.google.com/speed/webp/ // by rich bradshaw, ryan seddon, and paul irish // This test is asynchronous. Watch out. (function(){ var image = new Image(); image.onerror = function() { Modernizr.addTest('webp', false); }; image.onload = function() { Modernizr.addTest('webp', ...
/content/code_sandbox/public/vendor/modernizr/feature-detects/img-webp.js
javascript
2016-03-03T01:33:10
2024-08-16T12:05:02
Attendize
Attendize/Attendize
3,955
152
```javascript Modernizr.addTest('fullscreen',function(){ for(var i = 0; i < Modernizr._domPrefixes.length; i++) { if( document[Modernizr._domPrefixes[i].toLowerCase() + 'CancelFullScreen']) return true; } return !!document['cancelFullScreen'] || false; }); // path_to_url#//apple_ref/...
/content/code_sandbox/public/vendor/modernizr/feature-detects/fullscreen-api.js
javascript
2016-03-03T01:33:10
2024-08-16T12:05:02
Attendize
Attendize/Attendize
3,955
97
```javascript // strict mode // test by @kangax Modernizr.addTest('strictmode', function(){ return (function(){ "use strict"; return !this; })(); }); ```
/content/code_sandbox/public/vendor/modernizr/feature-detects/es5-strictmode.js
javascript
2016-03-03T01:33:10
2024-08-16T12:05:02
Attendize
Attendize/Attendize
3,955
39
```javascript // Test for `sandbox` attribute in iframes. // // Spec: path_to_url#attr-iframe-sandbox Modernizr.addTest('sandbox', 'sandbox' in document.createElement('iframe')); ```
/content/code_sandbox/public/vendor/modernizr/feature-detects/iframe-sandbox.js
javascript
2016-03-03T01:33:10
2024-08-16T12:05:02
Attendize
Attendize/Attendize
3,955
42
```javascript /* path_to_url path_to_url#background-position Example: path_to_url */ (function() { var elem = document.createElement('a'), eStyle = elem.style, val = "right 10px bottom 10px"; Modernizr.addTest('bgpositionshorthand', function(){ eStyle.cssText = "backgroun...
/content/code_sandbox/public/vendor/modernizr/feature-detects/css-backgroundposition-shorthand.js
javascript
2016-03-03T01:33:10
2024-08-16T12:05:02
Attendize
Attendize/Attendize
3,955
97
```javascript // Blob constructor // path_to_url#constructorBlob Modernizr.addTest('blobconstructor', function () { try { return !!new Blob(); } catch (e) { return false; } }); ```
/content/code_sandbox/public/vendor/modernizr/feature-detects/blob-constructor.js
javascript
2016-03-03T01:33:10
2024-08-16T12:05:02
Attendize
Attendize/Attendize
3,955
47
```javascript // by james a rosen. // path_to_url Modernizr.addTest('createelement-attrs', function() { try { return document.createElement("<input name='test' />").getAttribute('name') == 'test'; } catch(e) { return false; } }); ```
/content/code_sandbox/public/vendor/modernizr/feature-detects/dom-createElement-attrs.js
javascript
2016-03-03T01:33:10
2024-08-16T12:05:02
Attendize
Attendize/Attendize
3,955
62
```javascript // native JSON support. // developer.mozilla.org/en/JSON // this will also succeed if you've loaded the JSON2.js polyfill ahead of time // ... but that should be obvious. :) Modernizr.addTest('json', !!window.JSON && !!JSON.parse); ```
/content/code_sandbox/public/vendor/modernizr/feature-detects/json.js
javascript
2016-03-03T01:33:10
2024-08-16T12:05:02
Attendize
Attendize/Attendize
3,955
58
```javascript // tests if page is iframed // github.com/Modernizr/Modernizr/issues/242 Modernizr.addTest('framed', function(){ return window.location != top.location; }); ```
/content/code_sandbox/public/vendor/modernizr/feature-detects/window-framed.js
javascript
2016-03-03T01:33:10
2024-08-16T12:05:02
Attendize
Attendize/Attendize
3,955
43
```javascript // display: table and table-cell test. (both are tested under one name "table-cell" ) // By @scottjehl // all additional table display values are here: path_to_url though Scott has seen some IE false positives with that sort of weak detection. // more testing neccessary perhaps. Modernizr.addTest( "disp...
/content/code_sandbox/public/vendor/modernizr/feature-detects/css-displaytable.js
javascript
2016-03-03T01:33:10
2024-08-16T12:05:02
Attendize
Attendize/Attendize
3,955
217
```javascript // input[type="number"] localized input/output // // Detects whether input type="number" is capable of receiving and // // displaying localized numbers, e.g. with comma separator // // path_to_url // // Based on path_to_url#L9 // // By Peter Janes Modernizr.addTest('localizedNumber', function() { var...
/content/code_sandbox/public/vendor/modernizr/feature-detects/forms-inputnumber-l10n.js
javascript
2016-03-03T01:33:10
2024-08-16T12:05:02
Attendize
Attendize/Attendize
3,955
257
```javascript // DataView // path_to_url // By Addy Osmani Modernizr.addTest('dataview', (typeof DataView !== 'undefined' && 'getFloat64' in DataView.prototype)); ```
/content/code_sandbox/public/vendor/modernizr/feature-detects/dataview-api.js
javascript
2016-03-03T01:33:10
2024-08-16T12:05:02
Attendize
Attendize/Attendize
3,955
42
```javascript // Track element + Timed Text Track API // path_to_url#the-track-element // path_to_url#text-track-api // // While IE10 has implemented the track element, IE10 does not expose the underlying APIs to create timed text tracks by JS (really sad) // By Addy Osmani Modernizr.addTest({ texttrackapi: (typeof (d...
/content/code_sandbox/public/vendor/modernizr/feature-detects/elem-track.js
javascript
2016-03-03T01:33:10
2024-08-16T12:05:02
Attendize
Attendize/Attendize
3,955
127
```javascript // path_to_url // documentMode is needed for false positives in oldIE, please see issue above Modernizr.addTest('cssfilters', function() { var el = document.createElement('div'); el.style.cssText = Modernizr._prefixes.join('filter' + ':blur(2px); '); return !!el.style.length && ((document.docu...
/content/code_sandbox/public/vendor/modernizr/feature-detects/css-filters.js
javascript
2016-03-03T01:33:10
2024-08-16T12:05:02
Attendize
Attendize/Attendize
3,955
88
```javascript // Dart // By Theodoor van Donge // path_to_url Modernizr.addTest('dart', !!Modernizr.prefixed('startDart', navigator)); ```
/content/code_sandbox/public/vendor/modernizr/feature-detects/dart.js
javascript
2016-03-03T01:33:10
2024-08-16T12:05:02
Attendize
Attendize/Attendize
3,955
37
```javascript /* * Test for SubPixel Font Rendering * (to infer if GDI or DirectWrite is used on Windows) * Authors: @derSchepp, @gerritvanaaken, @rodneyrehm, @yatil, @ryanseddon * Web: path_to_url */ Modernizr.addTest('subpixelfont', function() { var bool, styles = "#modernizr{position: absolute; top:...
/content/code_sandbox/public/vendor/modernizr/feature-detects/css-subpixelfont.js
javascript
2016-03-03T01:33:10
2024-08-16T12:05:02
Attendize
Attendize/Attendize
3,955
217
```javascript // developer.mozilla.org/en/CSS/background-repeat // test page: jsbin.com/uzesun/ // path_to_url (function(){ function getBgRepeatValue(elem){ return (window.getComputedStyle ? getComputedStyle(elem, null).getPropertyValue('background') : elem.currentStyle['background...
/content/code_sandbox/public/vendor/modernizr/feature-detects/css-backgroundrepeat.js
javascript
2016-03-03T01:33:10
2024-08-16T12:05:02
Attendize
Attendize/Attendize
3,955
155
```javascript // requestAnimationFrame // Offload animation repainting to browser for optimized performance. // path_to_url // By Addy Osmani Modernizr.addTest('raf', !!Modernizr.prefixed('requestAnimationFrame', window)); ```
/content/code_sandbox/public/vendor/modernizr/feature-detects/requestanimationframe.js
javascript
2016-03-03T01:33:10
2024-08-16T12:05:02
Attendize
Attendize/Attendize
3,955
49
```javascript // Tests for the ability to use Web Intents (path_to_url // By Eric Bidelman Modernizr.addTest('webintents', function() { return !!Modernizr.prefixed('startActivity', navigator); }); ```
/content/code_sandbox/public/vendor/modernizr/feature-detects/web-intents.js
javascript
2016-03-03T01:33:10
2024-08-16T12:05:02
Attendize
Attendize/Attendize
3,955
49
```javascript // Filesystem API // dev.w3.org/2009/dap/file-system/file-dir-sys.html // The API will be present in Chrome incognito, but will throw an exception. // See crbug.com/93417 // // By Eric Bidelman (@ebidel) Modernizr.addTest('filesystem', !!Modernizr.prefixed('requestFileSystem', window)); ```
/content/code_sandbox/public/vendor/modernizr/feature-detects/file-filesystem.js
javascript
2016-03-03T01:33:10
2024-08-16T12:05:02
Attendize
Attendize/Attendize
3,955
79
```javascript // last-child pseudo selector // path_to_url Modernizr.addTest('lastchild', function(){ return Modernizr.testStyles("#modernizr div {width:100px} #modernizr :last-child{width:200px;display:block}", function (elem) { return elem.lastChild.offsetWidth > elem.firstChild.offsetWidth; }, 2); }); `...
/content/code_sandbox/public/vendor/modernizr/feature-detects/css-lastchild.js
javascript
2016-03-03T01:33:10
2024-08-16T12:05:02
Attendize
Attendize/Attendize
3,955
74
```javascript // path_to_url // path_to_url Modernizr.addTest('cssvmaxunit', function(){ var bool; Modernizr.testStyles("#modernizr { width: 50vmax; }", function(elem, rule) { var one_vw = window.innerWidth/100, one_vh = window.innerHeight/100, compWidth = parseInt((window.getCom...
/content/code_sandbox/public/vendor/modernizr/feature-detects/css-vmaxunit.js
javascript
2016-03-03T01:33:10
2024-08-16T12:05:02
Attendize
Attendize/Attendize
3,955
129
```javascript // path_to_url // path_to_url Modernizr.addTest('cssvminunit', function(){ var bool; Modernizr.testStyles("#modernizr { width: 50vmin; }", function(elem, rule) { var one_vw = window.innerWidth/100, one_vh = window.innerHeight/100, compWidth = parseInt((window.getCom...
/content/code_sandbox/public/vendor/modernizr/feature-detects/css-vminunit.js
javascript
2016-03-03T01:33:10
2024-08-16T12:05:02
Attendize
Attendize/Attendize
3,955
129