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
function timeSince(timeStamp) { | |
var now = new Date(), | |
secondsPast = (now.getTime() - timeStamp.getTime()) / 1000; | |
if(secondsPast < 60){ | |
return parseInt(secondsPast) + 's'; | |
} | |
if(secondsPast < 3600){ | |
return parseInt(secondsPast/60) + 'm'; | |
} | |
if(secondsPast <= 86400){ |
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> | |
<style> | |
body{ | |
margin: 0px auto; | |
text-align: left; | |
width: 600px; | |
} |
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
<html> | |
<head> | |
<style> | |
body { | |
margin:auto; | |
width:600px; | |
} |
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> | |
<title>Overlay Test</title> | |
<style> | |
div.overlay{ | |
position:fixed; | |
top:0; | |
left:0; | |
width:100%; |
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
@charset 'UTF-8'; | |
/* | |
* Author: Name @Bolt Brasil | |
* Project: Project Name | |
* Date: Date of Project | |
*/ | |
/* ==========>> Summary | |
=Imports |