Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

TypeError: $(...).calendar is not a function #246

Open
rclerc opened this issue Apr 23, 2019 · 0 comments
Open

TypeError: $(...).calendar is not a function #246

rclerc opened this issue Apr 23, 2019 · 0 comments

Comments

@rclerc
Copy link

rclerc commented Apr 23, 2019

I'm trying to use this calendar, but it doesn't work . I don't know why.
this is my code :
`

<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script> <script src="/Suivi_CSM/theme/js/moment.min.js"></script> <script src="/Suivi_CSM/theme/calendars/lodash.min.js"></script> <script src="/Suivi_CSM/theme/calendars/bootstrap-year-calendar.min.js"></script> <script> var today = new Date(); var aujourdhui = today.getFullYear() + "-" + ("0"+ today.getMonth()).slice(-2)+ "-" + ("0"+today.getDate()).slice(-2); </script>
  <nav class="navbar justify-content-center navbar-default">
    <div class="container-fluid">
      <div class="navbar-header">
        <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
          <span class="sr-only">Toggle navigation</span>
          <span class="icon-bar"></span>
          <span class="icon-bar"></span>
          <span class="icon-bar"></span>
        </button>
        
        <a class="navbar-brand" href="/Suivi_CSM/app/" style="padding-top: 0px;"><img src="../img/logoSodiFrance-50x50.png"/></a>
      	
      </div>
      <div id="navbar" class="navbar-collapse collapse">
        <ul class="nav navbar-nav justify-content-center">
			<li><a href="/Suivi_CSM/app/"><span class="glyphicon glyphicon-home"></span>Accueil <span class="sr-only">(current)</span></a></li>
			<li class="dropdown">
	          	<a class="dropdown-toggle" data-toggle="dropdown" href="#"><span class="glyphicon glyphicon-cog "></span> Admin</a>
				<ul class="dropdown-menu">
					<li><a href="/Suivi_CSM/app/projets">Les projets</a></li>
					<li><a href="/Suivi_CSM/app/familles">Les Familles</a></li>
					<li><a href="/Suivi_CSM/app/collabs">Collaborateurs</a></li>
					<li><a href="/Suivi_CSM/app/activites">Activités</a></li>
				</ul>
			</li>
			<li><a href="/Suivi_CSM/app/saisieRF?day="+><span class="glyphicon glyphicon-tasks"></span>Saisies</a></li>
			<li class="dropdown">
				<a class="dropdown-toggle" data-toggle="dropdown" href="#"><span class="glyphicon glyphicon-list-alt "></span> Bilans</a>
				<ul class="dropdown-menu">
					<li><a href="/Suivi_CSM/app/bilanHebdo">Hebdomadaire</a></li>
				</ul>
			</li>
		</ul>
		<ul class="nav navbar-nav navbar-right">
			
			
				<li><a href="#">Richard</a></li>
				<li><a href="/Suivi_CSM/app/logout"><span class="glyphicon glyphicon-log-out"></span> Logout</a></li>
			
            	<li><a href="#"><span class="glyphicon glyphicon-question-sign"></span>Aide</a></li>
        </ul>
      </div><!--/.nav-collapse -->
    </div><!--/.container-fluid -->
  </nav>
<script>src="https://code.jquery.com/ui/1.11.3/jquery-ui.min.js" </script> <script src="https://cdn.jsdelivr.net/lodash/4.11.2/lodash.min.js"></script> <script src="/Suivi_CSM/theme/calendars/bootstrap-datepicker.min.js"></script> <script src="/Suivi_CSM/theme/calendars/bootstrap-year-calendar.min.js"></script>

Bilan Hebdomadaire :

<script> $(function() { console.log("jquery fonctionne"); $('#calendar').calendar({ displayWeekNumber: true }); $('.calendar').clickDay(function(e){ console.log(e) }); }) </script> <script src="/Suivi_CSM/theme/jquery/jquery.min.js"></script> <script src="/Suivi_CSM/theme/bootstrap3/js/bootstrap.min.js"></script> <script src="/Suivi_CSM/theme/bootstrap-table/bootstrap-table.min.js"></script> <script src="/Suivi_CSM/theme/bootstrap-table/bootstrap-table-fr-FR.js"></script> <script src="/Suivi_CSM/theme/js/script.js"></script> `
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant