Javascript
Javascript
Out of context: Reply #14
- Started
- Last post
- 16 Responses
- oey0
<script type="text/javascript" src="js/jquery.countdown.min.js"></script>
<script>
$(function(){
var d = new Date(2016-10-19);
d.setTime(1476864846*1000);
$('#countdown').countdown(d,
function(event) {
$(this).html(event.strftime('<span>TAGE BIS ZUM DINNER:</span><br>%D:%H:%M:%S'));
});
});</script>
- https://jsfiddle.net…kingsteven
- or without the timestamp: (using the date set by string when declaring d)
https://jsfiddle.net…kingsteven - or midday tomorrow:
https://jsfiddle.net…kingsteven - now it's working and I don't even know why. I changed the "src" like to the same it was before. back and forth like 5 times. saved and refreshed.oey
- and suddenly working like a charm...one hour just delete that line and write it again...WTF?!oey
- bring up your browsers javascript console and have a look for errors, it's usually something real simple.kingsteven
- what a fucking headache..yesterday I was working on this simple jquery shit for an hour after trying to do it 2 hours via javascript...simply not working.oey
- can't understand why I couldn't manage to do it via javascript. and the src linking not working and then suddenly bam! grrrrr!oey
- thanks kingsteven for the link!oey
- I just saw your links. the notes were not updating. tripple thanks @kingsteven!oey
- Go damn it, indent your shitty code :)Maaku
- God*Maaku