What do you think the following code does?
function fn(msg, time) {
setTimeout(function() {
console.log(msg);
}, time);
}
fn('it works', 1000);
/* some uses for :hover Pseudo class and '~' selector */ | |
/*/ 360deg Goggle view /*/ | |
/* le wrapper */ | |
.g { | |
width: 600px; | |
height: 400px; | |
margin: 50px auto; |
What do you think the following code does?
function fn(msg, time) {
setTimeout(function() {
console.log(msg);
}, time);
}
fn('it works', 1000);
/** | |
* Masking an image with a gradient (answer to question) | |
*/ | |
div { | |
width: 200px; height: 200px; | |
background: linear-gradient(white, hsla(0,0%,100%,0)), | |
url(http://placekitten.com/200/200); | |
} |
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Pure CSS3 Slideshow Without Page Jump · CodePen</title> | |
<style> |
YUI.add('node-scroll-info', function (Y) { | |
/** | |
Provides the ScrollInfo Node plugin, which exposes convenient events and methods | |
related to scrolling. | |
@module node-scroll-info | |
**/ | |
/** |
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="UTF-8"> | |
<title>CodePen · A Pen by maxw3st</title> | |
<style> |
#!/usr/bin/ruby | |
require 'time' | |
def format_time(seconds) | |
hours = (seconds / 3600).to_i | |
minutes = ((seconds % 3600) / 60).to_i | |
seconds = (seconds % 60).to_i | |
minutes = "0#{minutes}" if minutes < 10 | |
seconds = "0#{seconds}" if seconds < 10 |
/** | |
* Gradient The first commented line is your dabblet’s title | |
*/ | |
background: #f06; | |
background: linear-gradient(45deg, #f06, yellow); | |
min-height: 100%; |
/** | |
* Floating buttons with adjusting drop shadows @simurai | |
*/ | |
html { | |
background: hsl(30,40%,90%); | |
} | |
body { | |
text-align: center; | |
padding-top: 100px; |