Skip to content

Instantly share code, notes, and snippets.

roseforyou

Block or report user

Report or block roseforyou

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View index.html
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>JS Bin</title>
<script src="https://code.createjs.com/createjs-2015.11.26.min.js"></script>
</head>
<style>
#demoCanvas {
View point-in-semicircle.html
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>point-in-semicircle</title>
<script src="jquery-1.7.2.min.js"></script>
<style>
body{
border:0;
@roseforyou
roseforyou / index.html
Created Jul 17, 2015 — forked from anonymous/index.html
canvas 二次方贝赛尔曲线 打点
View index.html
<!DOCTYPE html>
<html>
<head>
<script src="https://code.jquery.com/jquery-1.9.1.min.js"></script>
<meta charset="utf-8">
<title>JS Bin</title>
</head>
<script>
function quadraticBzier(p, p0, p1, p2){
return Math.pow(1-p,2)*p0 +2*p*(1-p)*p1+Math.pow(p,2)*p2;
View index.html
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>world cup</title>
<script src="http://code.jquery.com/jquery-1.9.1.min.js"></script>
<script src="http://underscorejs.org/underscore-min.js"></script>
<style id="jsbin-css">
body{
font: 12px 微软雅黑,tahoma,arial;
View worldcup.html
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>world cup</title>
<script src="http://code.jquery.com/jquery-1.9.1.min.js"></script>
<script src="http://underscorejs.org/underscore-min.js"></script>
<style id="jsbin-css">
body{
font: 12px 微软雅黑,tahoma,arial;
View woldcup.js
//中央球场列表
$('.football_bg').removeClass('football_bg').css({
width: '93px',
height: '106px',
position: 'absolute',
left: '14px',
top: '27px',
'font-size': '12px'
}).show();
$('.football_bg2').removeClass('football_bg2').css({
View jsbin.nequsuno.html
<!DOCTYPE html>
<html>
<head>
<script src="http://code.jquery.com/jquery-1.9.1.min.js"></script>
<script src="http://sole.github.io/tween.js/build/tween.min.js"></script>
<script src="http://sole.github.io/tween.js/examples/js/RequestAnimationFrame.js"></script>
<meta charset="utf-8">
<title>JS Bin</title>
</head>
View jsbin.jebiweji.html
<!DOCTYPE html>
<html>
<head>
<script src="http://code.jquery.com/jquery-1.9.1.min.js"></script>
<script src="http://sole.github.io/tween.js/build/tween.min.js"></script>
<meta charset="utf-8">
<title>JS Bin</title>
<style>
#target{
width:50px;
@roseforyou
roseforyou / getURLparams.js
Last active Aug 29, 2015
get URL parameters, key and value
View getURLparams.js
//URL: http://www.example.com/?var1=val1&var2=val2=val3&test=3&test=43&aaa=#2
//window.location.search will return "?var1=val1&var2=val2=val3&test=3&test=43&aaa="
//use the location.search, because # could be remove.
//refer:
//https://gist.github.com/alkos333/1771618
//http://papermashup.com/read-url-get-variables-withjavascript/
//http://jquery-howto.blogspot.com/2009/09/get-url-parameters-values-with-jquery.html
View jsbin.IkExEpo.html
<!DOCTYPE html>
<html>
<head>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.8/jquery.min.js"></script>
<meta charset=utf-8 />
<title>JS Bin</title>
</head>
<body>
<a id="_js_checkAll" href="#">全选</a>&nbsp;<a id="_js_cancelAll" href="#">取消全选</a><br>
<input type="checkbox" name="vehicle" value="address">Address<br>
You can’t perform that action at this time.