Skip to content

Instantly share code, notes, and snippets.

<!DOCTYPE html>
<html xmlns:og="http://ogp.me/ns#" xmlns:fb="http://www.facebook.com/2008/fbml">
<head>
<meta charset="utf-8">
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script>
<script type="text/javascript"></script>
</head>
<body>
<h1>Hello World</h1>
</body>
var flashvars = {};
var params = {};
var attributes = {};
swfobject.embedSWF("myContent.swf", "idName", "300", "120", "9.0.0","expressInstall.swf", flashvars, params, attributes);
<!DOCTYPE html>
<!--[if lt IE 7]> <html class="ie ie6 lte9 lte8 lte7 no-js"> <![endif]-->
<!--[if IE 7]> <html class="ie ie7 lte9 lte8 lte7 no-js"> <![endif]-->
<!--[if IE 8]> <html class="ie ie8 lte9 lte8 no-js"> <![endif]-->
<!--[if IE 9]> <html class="ie ie9 lte9 no-js"> <![endif]-->
<!--[if gt IE 9]> <html class="ie no-js"> <![endif]-->
<!--[if !IE]><!--> <html class="no-js"> <!--<![endif]-->
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
@allenyang79
allenyang79 / jsbin.aZaHAqa.html
Created August 29, 2013 05:38
angularjs ng-repeat $on $emit
<!DOCTYPE html>
<html>
<head>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.0.7/angular.min.js"></script>
<meta charset=utf-8 />
<title>JS Bin</title>
</head>
<body ng-app>
<div ng-controller="Ctrl">
<ul class="" >
@allenyang79
allenyang79 / jsbin.OGUvoki.html
Created August 29, 2013 05:54
angularjs ng-bind 測試
<!DOCTYPE html>
<html>
<head>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.0.7/angular.min.js"></script>
<meta charset=utf-8 />
<title>JS Bin</title>
</head>
<body ng-app>
<div ng-controller="TextController">
ex1:<br/>
@allenyang79
allenyang79 / jsbin.aNUMANi.html
Created August 29, 2013 09:31
angularjs簡單測試
<html = ng-app="app">
<body ng-controller="TextController">
<p>{{someText.message}}</p>
<input type="checkbox" ng-model="foo">
Starting: <input ng-change="computeNeeded()" ng-model="funding.startingEstimate"><br/>
Recommendation: {{funding.needed*funding.startingEstimate}}<br/>
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.0.1/angular.min.js"></script>
</body>
</html>
@allenyang79
allenyang79 / jsbin.aNUMANi.html
Created August 29, 2013 09:47
angularjs ng-show test
<html = ng-app="app">
<body ng-controller="MyCtrl">
<div>
<ul>
<li ng-repeat="item in items">
<input type="checkbox" ng-model="item.show"/>
<span>{{item.name}}</span><br/>
{{item.show}}<br/>
<img src="{{item.img}}" ng-show="item.show"/>
</li>
.error{
color:#f00;
}
.warning{
color:#0f0;
}
.highlight{
background:#efefef;
}
.error{
color:#f00;
}
.warning{
color:#0f0;
}
.highlight{
background:#efefef;
}
@allenyang79
allenyang79 / jsbin.odoLAza.css
Created August 30, 2013 05:55
angularjs deep watch test
.error{
color:#f00;
}
.warning{
color:#0f0;
}
.highlight{
background:#efefef;
}