Created
November 26, 2013 15:11
-
-
Save oriolrivera/7659996 to your computer and use it in GitHub Desktop.
Countdown con fecha vía php
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 PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> | |
<html> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html;charset=utf-8"> | |
<title>jQuery Countdown</title> | |
<link rel="stylesheet" href="jquery.countdown.css"> | |
<style type="text/css"> | |
#defaultCountdown { width: 240px; height: 45px; } | |
</style> | |
<script type="text/javascript" src="http://localhost/mixtv/public/js/jquery-1.8.0.min.js"></script> | |
<script type="text/javascript" src="jquery.countdown.js"></script> | |
<script type="text/javascript" src="jquery.countdown-es.js"></script> | |
</head> | |
<body> | |
<script> | |
$(function () { | |
var austDay = new Date(); | |
austDay = new Date("<?php echo '2013,12,02 11:50';?>"); | |
$('#defaultCountdown').countdown({until: austDay, format: 'yowdHMS'}); | |
}); | |
</script> | |
<div id="defaultCountdown"></div> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment