This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<video id="video" controls width=640 height=360 src="myvideo.m3u8"></video> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Mozilla/5.0 (Windows Phone 10.0; Android 4.2.1; DEVICE INFO) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/39.0.2171.71 Mobile Safari/537.36 Edge/12.0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<title>Media Queries Level 4 Demo</title> | |
<style> | |
body, html { | |
margin: 0; | |
padding: 0; | |
width: 100%; | |
height: 100%; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.disable300msDelay { | |
touch-action: manipulation; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// code for IE | |
if (window.ActiveXObject || xhttp.responseType == "msxml-document") { | |
xml.setProperty("SelectionLanguage", "XPath"); | |
nodes = xml.selectNodes(path); | |
for (i = 0; i < nodes.length; i++) { | |
document.write(nodes[i].childNodes[0].nodeValue); | |
document.write("<br>"); | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function PhysicsEngine(global, foreign, heap) { | |
"use asm"; | |
… | |
// Function Declaration | |
function square(x) { | |
x = +x; | |
return +(x*x); | |
} | |
… | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let x = "outside"; | |
function outer(a = () => eval("x")) { | |
let x = "inside"; | |
return a(); | |
} | |
outer(); // "inside", should be "outside" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function fn() { return "outside" } | |
function outer(a = fn()) { | |
function fn() { return "inside" }; | |
return fn(); | |
} | |
outer(); // "outside" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var toggleGainState = function(elementId, elementClass, outputElement){ | |
var ele = document.getElementById(elementId); | |
return function(){ | |
if (outputElement.gain.value === 0) { | |
outputElement.gain.value = 1; | |
ele.classList.remove(elementClass); | |
} else { | |
outputElement.gain.value = 0; | |
ele.classList.add(elementClass); | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(function (window) { | |
document.addEventListener("DOMContentLoaded", function (e) { | |
var supports = { | |
srcset: false, | |
currentSrc: false, | |
sizes: false, | |
picture: false | |
}; |
OlderNewer