Skip to content

Instantly share code, notes, and snippets.

View qcgm1978's full-sized avatar
😈
Fight

Youth qcgm1978

😈
Fight
  • 20:51 (UTC -12:00)
View GitHub Profile
@qcgm1978
qcgm1978 / dabblet.css
Last active February 24, 2019 06:23 — forked from csssecrets/dabblet.css
Translucent borders
/**
* Translucent borders
*/
body {
background: url('http://csssecrets.io/images/stone-art.jpg');
}
div {
border: 10px solid hsla(0,0%,100%,.5);
<style id="jsbin-css">
#DIV_1, #DIV_3 {
color: rgb(51, 51, 51);
height: 1495px;
width: 568px;
perspective-origin: 284px 747.5px;
transform-origin: 284px 747.5px;
border: 0px none rgb(51, 51, 51);
font: normal normal normal normal 12px/15.6000003814697px Arial, 'Microsoft YaHei';
outline: rgb(51, 51, 51) none 0px;
<style id="jsbin-css">
#DIV_1 {
color: rgb(109, 110, 112);
height: 165px;
left: 304px;
position: absolute;
text-align: center;
top: 247px;
width: 400px;
z-index: 99999;
describe 'js, clone a function ',->
it " clones the function with '{}' acting as it's new 'this' parameter, or nothing passed works too",->
oldFunc=->
this.num=1
oldFunc.prototype.increNum=->
this.num++
func= new oldFunc()
func.increNum()
newFunc = oldFunc.bind();
test( "hello test", ->
ok Polymer instanceof Function
);