This file contains 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>JS Bin</title> | |
<style id="jsbin-css"> | |
label { | |
display: inline-block; | |
cursor: pointer; | |
position: relative; |
This file contains 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
var params = $window.location.search.substring(1); | |
if(params && $window.opener) { | |
var pair = params.split('='); | |
$window.opener.postMessage(pair[1], $window.location.origin); | |
} | |
var popup = this.$window.open('auth/facebook', '', 'width=500, height=500'); | |
this.$window.focus(); | |
this.$window.addEventListener('message', (e) => { |
This file contains 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
<div class="nb-drop-down"> | |
<button class="nb-main-item">Main Item</button> | |
<ul class="nb-list"> | |
<li>Item One</li> | |
<li>Item Two</li> | |
<li>Item Three</li> | |
</ul> | |
</div> | |
<div style="margin-top:100px;"> |
This file contains 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
.row | |
.c-6 | |
h1 hello world | |
.row | |
.c-4 | |
h1 inside | |
.c-6.c-last | |
h1 right | |
.c-6.c-last | |
h1 second hello |
This file contains 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
<section ui-view class="view"></section> |
This file contains 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
.row { | |
*zoom: 1; | |
} | |
.row:before, .row:after { | |
display: table; | |
content: ''; | |
line-height: 0; | |
} | |
.row:after { | |
clear: both; |
This file contains 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>JS Bin</title> | |
</head> | |
<body> | |
<div> | |
<ul> | |
<li><a href="" class='first'>1</a></li> |
This file contains 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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>JS Bin</title> | |
</head> | |
<body> | |
<div> | |
<ul> | |
<li><a href="" class='first'>1</a></li> |
This file contains 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
let p = document.querySelector('p'); | |
let pHeight = parseInt(window.getComputedStyle(p).height) * -1; | |
// console.log(p.clientHeight ) | |
document.addEventListener('scroll', (e) => { | |
if(p.getBoundingClientRect().top === 0) { | |
console.log('arrive to this ele'); | |
} | |
if(p.getBoundingClientRect().top === pHeight) { |
This file contains 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 { | |
margin: 50px; | |
} | |
table { | |
width: 100%; | |
border-spacing: 0px; | |
} | |
th, td { | |
text-align: left; |
OlderNewer