always nice to do this stuff with just css
This file contains hidden or 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 name="description" content="Background-color ramdomizer"> | |
<meta charset="utf-8"> | |
<title>JS Bin</title> | |
<style id="jsbin-css"> | |
body{ | |
background-color: coral; | |
transition: all ease 0.5s; |
This file contains hidden or 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
<?php | |
function secondsToTime($seconds) { | |
$dtF = new DateTime("@0"); | |
$dtT = new DateTime("@$seconds"); | |
return $dtF->diff($dtT)->format('%a days, %h hours, %i minutes and %s seconds'); | |
} | |
echo secondsToTime(1640467); |
This file contains hidden or 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> | |
<head> | |
<meta name="description" content="anchors fill its father, so its easier on mobile" /> | |
<title></title> | |
<style id="jsbin-css"> | |
.std { | |
width: 200px; | |
border: solid 1px green; | |
height: 50px; |
This file contains hidden or 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> | |
<head> | |
<title></title> | |
<style id="jsbin-css"> | |
.std { | |
width: 200px; | |
border: solid 1px green; | |
height: 50px; |
This file contains hidden or 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> | |
<script src="http://code.jquery.com/jquery-2.1.1.min.js"></script> | |
<meta charset="utf-8"> | |
<title>JS Bin</title> | |
</head> | |
<body> | |
<script id="jsbin-javascript"> |
This file contains hidden or 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
/** | |
* The first commented line is your dabblet’s title | |
*/ | |
/** | |
* Diablo2 assassin | |
w 4163 23 h 2252 16 | |
*/ |
This file contains hidden or 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
/** | |
* ¡Asteroid! | |
8192 128 | |
*/ | |
@keyframes motion{ | |
from{ background-position: 0 0; } | |
to{ background-position: -8192px 0;} | |
} |
This file contains hidden or 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
/** | |
* ¡Asteroid! | |
8192 128 | |
*/ | |
@keyframes motion{ | |
from{ background-position: 0 0; } | |
to{ background-position: -8192px 0;} | |
} |