Skip to content

Instantly share code, notes, and snippets.

// Note: Some Emscripten settings will significantly limit the speed of the generated code.
// Note: Some Emscripten settings may limit the speed of the generated code.
// The Module object: Our interface to the outside world. We import
// and export values on it, and do the work to get that through
// closure compiler if necessary. There are various ways Module can be used:
// 1. Not defined. We create it here
// 2. A function parameter, function(Module) { ..generated code.. }
// 3. pre-run appended it, var Module = {}; ..generated code..
// 4. External script tag defines var Module.
// We need to do an eval in order to handle the closure compiler
<!DOCTYPE html>
<html>
<head>
<meta charset=utf-8 />
<title>JS Bin</title>
</head>
<body>
</body>
</html>
<!DOCTYPE html>
<html>
<head>
<meta charset=utf-8 />
<title>JS Bin</title>
</head>
<body>
</body>
</html>
p{
font-size: 48px;
color: #666;
}
span{
display: block;
font-size: 18px;
color: #999;
}
<!DOCTYPE html>
<html>
<head>
<meta charset=utf-8 />
<title>押すなよ!</title>
</head>
<body>
<button id="pressme">押すなよ!</button>
</body>
</html>
.error{
font-weight: bold;
color: rgb(240, 240, 240);
background-color: rgb(240, 48, 48);
padding: 10px;
}
.error{
font-weight: bold;
color: rgb(240, 240, 240);
background-color: rgb(240, 48, 48);
padding: 10px;
}
<!DOCTYPE html>
<html>
<head>
<meta charset=utf-8 />
<title>JS Bin</title>
</head>
<body>
</body>
</html>
<!DOCTYPE html>
<html>
<head>
<meta charset=utf-8 />
<title>JS Bin</title>
</head>
<body>
</body>
</html>
<!DOCTYPE html>
<html>
<head>
<meta charset=utf-8 />
<title>JS Bin</title>
</head>
<body>
</body>
</html>