text stringlengths 9 39.2M | dir stringlengths 26 295 | lang stringclasses 185
values | created_date timestamp[us] | updated_date timestamp[us] | repo_name stringlengths 1 97 | repo_full_name stringlengths 7 106 | star int64 1k 183k | len_tokens int64 1 13.8M |
|---|---|---|---|---|---|---|---|---|
```less
/* FONT PATH
* -------------------------- */
@font-face {
font-family: 'FontAwesome';
src: url('@{fa-font-path}/fontawesome-webfont.eot?v=@{fa-version}');
src: url('@{fa-font-path}/fontawesome-webfont.eot?#iefix&v=@{fa-version}') format('embedded-opentype'),
url('@{fa-font-path}/fontawesome-webfont.... | /content/code_sandbox/public/vendor/fontawesome/less/path.less | less | 2016-03-03T01:33:10 | 2024-08-16T12:05:02 | Attendize | Attendize/Attendize | 3,955 | 194 |
```less
// List Icons
// -------------------------
.@{fa-css-prefix}-ul {
padding-left: 0;
margin-left: @fa-li-width;
list-style-type: none;
> li { position: relative; }
}
.@{fa-css-prefix}-li {
position: absolute;
left: -@fa-li-width;
width: @fa-li-width;
top: (2em / 14);
text-align: center;
&.@{f... | /content/code_sandbox/public/vendor/fontawesome/less/list.less | less | 2016-03-03T01:33:10 | 2024-08-16T12:05:02 | Attendize | Attendize/Attendize | 3,955 | 124 |
```less
// Extras
// --------------------------
``` | /content/code_sandbox/public/vendor/fontawesome/less/extras.less | less | 2016-03-03T01:33:10 | 2024-08-16T12:05:02 | Attendize | Attendize/Attendize | 3,955 | 7 |
```less
// Variables
// --------------------------
@fa-font-path: "../fonts";
//@fa-font-path: "//netdna.bootstrapcdn.com/font-awesome/4.2.0/fonts"; // for referencing Bootstrap CDN font files directly
@fa-css-prefix: fa;
@fa-version: "4.2.0";
@fa-border-color: #eee;
@fa-inverse: ... | /content/code_sandbox/public/vendor/fontawesome/less/variables.less | less | 2016-03-03T01:33:10 | 2024-08-16T12:05:02 | Attendize | Attendize/Attendize | 3,955 | 6,193 |
```less
// Fixed Width Icons
// -------------------------
.@{fa-css-prefix}-fw {
width: (18em / 14);
text-align: center;
}
``` | /content/code_sandbox/public/vendor/fontawesome/less/fixed-width.less | less | 2016-03-03T01:33:10 | 2024-08-16T12:05:02 | Attendize | Attendize/Attendize | 3,955 | 34 |
```less
// Spinning Icons
// --------------------------
.@{fa-css-prefix}-spin {
-webkit-animation: fa-spin 2s infinite linear;
animation: fa-spin 2s infinite linear;
}
@-webkit-keyframes fa-spin {
0% {
-webkit-transform: rotate(0deg);
transform: rotate(0deg);
}
100% {
-webkit-tr... | /content/code_sandbox/public/vendor/fontawesome/less/spinning.less | less | 2016-03-03T01:33:10 | 2024-08-16T12:05:02 | Attendize | Attendize/Attendize | 3,955 | 158 |
```less
// Base Class Definition
// -------------------------
.@{fa-css-prefix} {
display: inline-block;
font: normal normal normal 14px/1 FontAwesome; // shortening font declaration
font-size: inherit; // can't have font-size inherit on line above, so need to override
text-rendering: auto; // optimizelegibili... | /content/code_sandbox/public/vendor/fontawesome/less/core.less | less | 2016-03-03T01:33:10 | 2024-08-16T12:05:02 | Attendize | Attendize/Attendize | 3,955 | 104 |
```less
// Rotated & Flipped Icons
// -------------------------
.@{fa-css-prefix}-rotate-90 { .fa-icon-rotate(90deg, 1); }
.@{fa-css-prefix}-rotate-180 { .fa-icon-rotate(180deg, 2); }
.@{fa-css-prefix}-rotate-270 { .fa-icon-rotate(270deg, 3); }
.@{fa-css-prefix}-flip-horizontal { .fa-icon-flip(-1, 1, 0); }
.@{fa-cs... | /content/code_sandbox/public/vendor/fontawesome/less/rotated-flipped.less | less | 2016-03-03T01:33:10 | 2024-08-16T12:05:02 | Attendize | Attendize/Attendize | 3,955 | 212 |
```less
// Bordered & Pulled
// -------------------------
.@{fa-css-prefix}-border {
padding: .2em .25em .15em;
border: solid .08em @fa-border-color;
border-radius: .1em;
}
.pull-right { float: right; }
.pull-left { float: left; }
.@{fa-css-prefix} {
&.pull-left { margin-right: .3em; }
&.pull-right { margi... | /content/code_sandbox/public/vendor/fontawesome/less/bordered-pulled.less | less | 2016-03-03T01:33:10 | 2024-08-16T12:05:02 | Attendize | Attendize/Attendize | 3,955 | 105 |
```less
/*!
* Font Awesome 4.2.0 by @davegandy - path_to_url - @fontawesome
*/
@import "variables.less";
@import "mixins.less";
@import "path.less";
@import "core.less";
@import "larger.less";
@import "fixed-width.less";
@import "list.less";
@import "bordered-pulled.less";
@import "spinning.less";
@import "rotated-... | /content/code_sandbox/public/vendor/fontawesome/less/font-awesome.less | less | 2016-03-03T01:33:10 | 2024-08-16T12:05:02 | Attendize | Attendize/Attendize | 3,955 | 111 |
```less
// Icon Sizes
// -------------------------
/* makes the font 33% larger relative to the icon container */
.@{fa-css-prefix}-lg {
font-size: (4em / 3);
line-height: (3em / 4);
vertical-align: -15%;
}
.@{fa-css-prefix}-2x { font-size: 2em; }
.@{fa-css-prefix}-3x { font-size: 3em; }
.@{fa-css-prefix}-4x { f... | /content/code_sandbox/public/vendor/fontawesome/less/larger.less | less | 2016-03-03T01:33:10 | 2024-08-16T12:05:02 | Attendize | Attendize/Attendize | 3,955 | 128 |
```less
/* Font Awesome uses the Unicode Private Use Area (PUA) to ensure screen
readers do not read off random characters that represent icons */
.@{fa-css-prefix}-glass:before { content: @fa-var-glass; }
.@{fa-css-prefix}-music:before { content: @fa-var-music; }
.@{fa-css-prefix}-search:before { content: @fa-var-... | /content/code_sandbox/public/vendor/fontawesome/less/icons.less | less | 2016-03-03T01:33:10 | 2024-08-16T12:05:02 | Attendize | Attendize/Attendize | 3,955 | 9,988 |
```css
/*!
* Font Awesome 4.2.0 by @davegandy - path_to_url - @fontawesome
*/@font-face{font-family:'FontAwesome';src:url('../fonts/fontawesome-webfont.eot?v=4.2.0');src:url('../fonts/fontawesome-webfont.eot?#iefix&v=4.2.0') format('embedded-opentype'),url('../fonts/fontawesome-webfont.woff?v=4.2.0') format('woff'),... | /content/code_sandbox/public/vendor/fontawesome/css/font-awesome.min.css | css | 2016-03-03T01:33:10 | 2024-08-16T12:05:02 | Attendize | Attendize/Attendize | 3,955 | 7,533 |
```html
<!DOCTYPE html>
<html ng-app="Directives">
<head>
<title>Angular example with a single list</title>
<link rel="stylesheet" href="../bower_components/basscss/css/basscss.css">
</head>
<body>
<div class="clearfix mb2 white bg-navy">
<div class="left">
<a href="index.html" class="button ... | /content/code_sandbox/public/vendor/html.sortable/examples/angular-single.html | html | 2016-03-03T01:33:10 | 2024-08-16T12:05:02 | Attendize | Attendize/Attendize | 3,955 | 750 |
```javascript
'use strict';
var app = angular.module('Directives', ['htmlSortable']);
app.controller('MainCtrl', function($scope) {
$scope.sortableOptions = {
connectWith: '.connected'
};
$scope.dataSets = {
firstSet: [
{ id: 1, name: 'A' },
{ id: 2, name: 'B' },
{ id: 3, name: 'C' },
{ ... | /content/code_sandbox/public/vendor/html.sortable/examples/angular-ngRepeat-connected.js | javascript | 2016-03-03T01:33:10 | 2024-08-16T12:05:02 | Attendize | Attendize/Attendize | 3,955 | 232 |
```html
<!DOCTYPE html>
<html ng-app="Directives">
<head>
<title>Angular example with connected lists</title>
<link rel="stylesheet" href="../bower_components/basscss/css/basscss.css">
</head>
<body>
<div class="clearfix mb2 white bg-navy">
<div class="left">
<a href="index.html" class="butto... | /content/code_sandbox/public/vendor/html.sortable/examples/angular-connected.html | html | 2016-03-03T01:33:10 | 2024-08-16T12:05:02 | Attendize | Attendize/Attendize | 3,955 | 904 |
```javascript
'use strict';
var app = angular.module('Directives', ['htmlSortable']);
app.controller('MainCtrl', function($scope) {
$scope.data1 = [
{ id: 1, name: 'A' },
{ id: 2, name: 'B' },
{ id: 3, name: 'C' },
{ id: 4, name: 'D' }
];
$scope.add = function () {
$scope.data1.push({id: $s... | /content/code_sandbox/public/vendor/html.sortable/examples/angular-single.js | javascript | 2016-03-03T01:33:10 | 2024-08-16T12:05:02 | Attendize | Attendize/Attendize | 3,955 | 156 |
```javascript
'use strict';
var app = angular.module('Directives', ['htmlSortable']);
app.controller('MainCtrl', function($scope) {
$scope.sortableOptions = {
connectWith: '.connected'
};
$scope.data1 = [
{ id: 1, name: 'A' },
{ id: 2, name: 'B' },
{ id: 3, name: 'C' },
{ id: 4, name: 'D' }... | /content/code_sandbox/public/vendor/html.sortable/examples/angular-connected.js | javascript | 2016-03-03T01:33:10 | 2024-08-16T12:05:02 | Attendize | Attendize/Attendize | 3,955 | 273 |
```html
<!DOCTYPE html>
<html ng-app="Directives">
<head>
<title>Angular example with connected lists</title>
<link rel="stylesheet" href="../bower_components/basscss/css/basscss.css">
</head>
<body>
<div class="clearfix mb2 white bg-navy">
<div class="left">
<a href="index.html" class="butto... | /content/code_sandbox/public/vendor/html.sortable/examples/angular-ngRepeat-connected.html | html | 2016-03-03T01:33:10 | 2024-08-16T12:05:02 | Attendize | Attendize/Attendize | 3,955 | 807 |
```html
<!doctype html>
<head>
<meta charset="utf-8">
<title>HTML5 Sortable jQuery Plugin</title>
<link rel="stylesheet" href="../bower_components/basscss/css/basscss.css">
</head>
<body>
<div class="clearfix mb2 white bg-navy">
<div class="left">
<a href="index.html" class="button py2 m0 button-transparent"... | /content/code_sandbox/public/vendor/html.sortable/examples/index.html | html | 2016-03-03T01:33:10 | 2024-08-16T12:05:02 | Attendize | Attendize/Attendize | 3,955 | 3,887 |
```javascript
!function(e){"use strict";e.module("htmlSortable",[]).directive("htmlSortable",["$timeout","$parse",function(t,a){return{require:"?ngModel",link:function(n,r,o,l){var s,i,p=e.noop;o.htmlSortableCallback&&(p=a(o.htmlSortableCallback)),s=e.extend({},n.$eval(o.htmlSortable)),r.sortable(s),l&&(i=a(o.ngModel),... | /content/code_sandbox/public/vendor/html.sortable/dist/html.sortable.angular.min.js | javascript | 2016-03-03T01:33:10 | 2024-08-16T12:05:02 | Attendize | Attendize/Attendize | 3,955 | 316 |
```css
/*!
* Font Awesome 4.2.0 by @davegandy - path_to_url - @fontawesome
*/
/* FONT PATH
* -------------------------- */
@font-face {
font-family: 'FontAwesome';
src: url('../fonts/fontawesome-webfont.eot?v=4.2.0');
src: url('../fonts/fontawesome-webfont.eot?#iefix&v=4.2.0') format('embedded-opentype'), url... | /content/code_sandbox/public/vendor/fontawesome/css/font-awesome.css | css | 2016-03-03T01:33:10 | 2024-08-16T12:05:02 | Attendize | Attendize/Attendize | 3,955 | 8,272 |
```javascript
;(function(root, factory) {
if (typeof define === 'function' && define.amd) {
define(['jquery'], factory);
} else if (typeof exports === 'object') {
module.exports = factory(require('jquery'));
} else {
root.sortable = factory(root.jQuery);
}
}(this, function($) {
/*
* HTML5 Sortable ... | /content/code_sandbox/public/vendor/html.sortable/dist/html.sortable.js | javascript | 2016-03-03T01:33:10 | 2024-08-16T12:05:02 | Attendize | Attendize/Attendize | 3,955 | 3,106 |
```javascript
!function(e,t){"function"==typeof define&&define.amd?define(["jquery"],t):"object"==typeof exports?module.exports=t(require("jquery")):e.sortable=t(e.jQuery)}(this,function(e){"use strict";var t,a,r=e(),n=[],i=function(e){e.off("dragstart.h5s"),e.off("dragend.h5s"),e.off("selectstart.h5s"),e.off("dragover... | /content/code_sandbox/public/vendor/html.sortable/dist/html.sortable.min.js | javascript | 2016-03-03T01:33:10 | 2024-08-16T12:05:02 | Attendize | Attendize/Attendize | 3,955 | 1,456 |
```javascript
/*
* AngularJS integration with the HTML5 Sortable jQuery Plugin
* path_to_url
*
*
* Thanks to the following contributors: samantp.
*
* Released under the MIT license.
*/
;(function(angular) {
'use strict';
angular.module('htmlSortable', [])
.directive('htmlSortable', [
'$timeout', ... | /content/code_sandbox/public/vendor/html.sortable/dist/html.sortable.angular.js | javascript | 2016-03-03T01:33:10 | 2024-08-16T12:05:02 | Attendize | Attendize/Attendize | 3,955 | 601 |
```javascript
/*global module */
module.exports = function( grunt ) {
'use strict';
grunt.initConfig({
meta: {
version: '2.8.3',
banner: '/*!\n' +
' * Modernizr v<%= meta.version %>\n' +
' * www.modernizr.com\n *\n' +
' * Available under the BSD a... | /content/code_sandbox/public/vendor/modernizr/grunt.js | javascript | 2016-03-03T01:33:10 | 2024-08-16T12:05:02 | Attendize | Attendize/Attendize | 3,955 | 369 |
```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 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.