View html5kan2016-10-16-links.md
View github.css
html,
body {
color: black
}
#wrapper {
font: 16px helvetica, arial, freesans, clean, sans-serif;
-webkit-font-smoothing: antialiased;
line-height: 1.6;
padding: 3px;
background: #fff;
View cat.js
class Cat {
constructor(name) {
this.name = name;
}
set name(name) {
this._name = name;
}
get name() {
return this._name;
}
View SassMeister-input.scss
// ----
// Sass (v3.3.14)
// Compass (v1.0.1)
// ----
.Taro {
%_human{
color: yellow;
}
.body1{
View SassMeister-input.scss
// ----
// Sass (v3.3.14)
// Compass (v1.0.1)
// ----
.Taro {
$_color: yellow;
%_Taro-human{
color: $_color;
}
View calendar.js
<script type="text/javascript"><!--
function doCal(xxx) {
var now = new Date();
now.setMonth(xxx-1);
var year = now.getFullYear();
var month = now.getMonth() + 1;
var today = now.getDate();
now.setDate(1);
var startDay = now.getDay();
View detectPositionFixed.js
// a little modified version of
// position: fixed support detection from jQuery mobile.
//
// This script also defines Android2.x as out of support.
//
// https://github.com/jquery/jquery-mobile/blob/master/js/support.js
// http://demos.jquerymobile.com/1.4.4/toolbar-fixed/
// http://jimbergman.net/webkit-version-in-android-version/
Modernizr.addTest('positionfixed', function() {
View head.js
/**
* `html` class tweaking
*/
(function() {
var html = document.getElementsByTagName("html")[0];
/* helpers */
var hasClass = function(node, cls) {
View createSinglePipeRequestFn.js
//===========================================
// API
app.api._createSinglePipeRequestFn = function(options) {
/*
options should have...
type: 'GET' // or 'POST'
url: '/blahblah/'
*/
return (function() {
View htmlDprTweak.js
/**
* `html` class tweaking
* if `devicePixelRatio` was 2, switch html's class
* from `dpr-1` to `dpr-2`
*/
(function() {
var html = document.getElementsByTagName("html")[0];
/* helpers */