Putting countdown on page
PermalinkBut the script I need to put on the page gets 'wiped' by c5.
[code]
<script>
var test1 = new Countdown({
year : 2020,
month : 1,
day : 1,
hour : 0,
ampm : "am",
minute : 0,
second : 0 // < - no comma on last item!!
});
</script>
[code]
How can I make it work?
<script>
$(document).ready(function () {
var test1 = new Countdown( {
year : 2020,
month : 1,
day : 1,
hour : 0,
ampm : "am",
minute : 0,
second : 0 // < - no comma on last item!!
});}
</script>
Tried that. Doesn't render anything on the page.
Is your countdown function writing anything to the screen ? Did you test that?
Add a console.log("test1" + test1) to test if it's being called (or some other testing tool)
$(document).ready(function () {
//do your thing
}