I am using a third party package. When I use a code the code functions as it should.
<template name ="gamePage">
<h2>Counting down 15 minutes (900 seconds)</h2>
<div id="CountDownTimer" data-timer="900" style="width: 1000px; height: 250px;"></div>
<script>
$("#CountDownTimer").TimeCircles({ time: { Days: { show: false }, Hours: { show: false }}});
</script>
</template>
However, when I try to remove the and instead have the javascript function be in the page it does not work.
Template.gamePage.test123 = function() {
$("#CountDownTimer").TimeCircles({ time: { Days: { show: false }, Hours: { show: false }}});
};
<template name ="gamePage">
<h2>Counting down 15 minutes (900 seconds)</h2>
<div id="CountDownTimer" data-timer="900" style="width: 1000px; height: 250px;"></div>
{{test123}}
</template>
What is the proper way of doing this?
<head>...</head>), are you loading jQuery or Meteor first?