React logo reacting
A Pen by Nathan Blenke on CodePen.
(function () { | |
var img = document.createElement('img'); | |
path = encodeURIComponent('https://s3.amazonaws.com/llama0/burningfiremonkey.gif'), | |
width = 600, | |
refresh = 2592000; | |
img.src = 'https://images1-focus-opensocial.googleusercontent.com/gadgets/proxy?url=' + path + '&resize_w=' + width + '&container=focus&refresh=' + refresh; | |
document.body.appendChild(img); | |
}()); |
import express from 'express' | |
import * as path from 'path' | |
import cors from 'cors' | |
const app = express() | |
const PORT = process.env.PORT || 5000 | |
const __dirname = path.resolve(path.dirname('')) | |
app.use(cors()) | |
app.use(express.static(path.join(__dirname, 'public'))) |
<style> | |
.spacer { | |
height: 2800px; | |
} | |
#test { | |
position: fixed; | |
top: 0; | |
left: 0; | |
width: 100%; | |
height: 80px; |
<style> | |
.spacer { | |
height: 2800px; | |
} | |
#test { | |
position: fixed; | |
top: 0; | |
left: 0; | |
width: 100%; | |
height: 80px; |
<!doctype html> | |
<html> | |
<head> | |
<title></title> | |
<style> | |
.boom { | |
width:40px; | |
height:40px; | |
position:relative; |
React logo reacting
A Pen by Nathan Blenke on CodePen.
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Calendar Puzzle</title> | |
<style> | |
.mark {border-top:1px solid red;width:400px;height:30px;} | |
.time {float:left} | |
.event {left:100px;position:absolute;opacity:.4;color:#fff} | |
.event {background:red;width:302px;} | |
/*.event + .event {background:green;width:150px;left:252px;}*/ |
<!DOCTYPE html> | |
<html lang="en" ng-app="app"> | |
<head> | |
<meta content="text/html; charset=utf-8" http-equiv="Content-Type"> | |
<head> | |
<title>Angular</title> | |
</head> | |
<body> | |
<a href="#!/">Home</a> | <a href="#!/test">Test</a> | |
<div ng-view></div> |
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta content="text/html; charset=utf-8" http-equiv="Content-Type"> | |
<head> | |
<title>Backbone</title> | |
</head> | |
<body> | |
<header></header> |
var stagify = function () { | |
if (window.location.search.search('staging=true') !== -1) { | |
$('html') | |
.addClass('staging') | |
.find('a').each(function () { | |
var h = $(this).attr('href'), | |
q = !!h && h.search(/\?/) !== -1 ? '&': '?'; | |
if (!!h && h.search('#') === -1) { | |
$(this).attr('href', h + q + 'staging=true'); | |
} |