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
body:before{ | |
content: '本番環境'; | |
position: fixed; | |
top: 0; | |
bottom: 0; | |
left: 0; | |
right: 0; | |
z-index: 9999; | |
color: #F00; |
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
'use strict'; | |
var m = require('./mithril'); | |
var twitterText = require('twitter-text'); | |
var newTweet = {}; | |
newTweet.Tweet = function Tweet(status) { | |
status = status || ''; | |
this.status = m.prop(status); |
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
'use strict'; | |
function isElementInViewport (el) { | |
var rect = el.getBoundingClientRect(); | |
return rect.bottom > 0 | |
&& rect.right > 0 | |
&& rect.top < (window.innerHeight || document.documentElement.clientHeight) | |
&& rect.left < (window.innerWidth || document.documentElement.clientWidth); | |
} |
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
/*jslint latedef:false*/ | |
'use strict'; | |
var CodeMirror = require('codemirror'); | |
var twitterText = require('twitter-text'); | |
CodeMirror.defineSimpleMode = function(name, states) { | |
CodeMirror.defineMode(name, function(config) { | |
return CodeMirror.simpleMode(config, states); | |
}); |