yanmai
Goto Top

ProgessCircle in jQuery funktioniert nicht

Hallo ihr Administratoren,
ich möchte in meine Website einen ProgressCircle einbauen, dafür habe ich diesen Code:

<div style="padding-top: 20px;">  
			<div class="firstx"></div>  
		</div>
		
		<script>
				$('.firstx').circleProgress({  
				value: 0.0,
				size: 100.0,

				startAngle: -Math.PI,

				thickness: 'auto',  

				fill: {
				},
				emptyFill: 'rgba(0, 0, 0, .1)',  
				animation: {
				  duration: 1200,
				  easing: 'circleProgressEasing'  
				},

				animationStartValue: 0.0,

				reverse: false,
				lineCap: 'butt',  
				});
		</script>

Und ganz unten in der Datei:
<script src="circle-progress.js"></script>  
			<script src="jquery-3.1.1.min.js"></script>  

Aber es wird kein Kreis dargestellt. Als Fehler von der Browser Konsole bekomme ich folgendes: Uncaught TypeError: $(...).circleProgress is not a function

Wie kann ich diesen Fehler beheben?

Content-Key: 328550

Url: https://administrator.de/contentid/328550

Printed on: April 19, 2024 at 20:04 o'clock

Mitglied: 132272
132272 Feb 05, 2017, updated at Feb 06, 2017 at 21:59:45 (UTC)
Goto Top
Falsche Reihenfolge von jquery und plugin.
Jquery und das Plugin müssen vor der Benutzung geladen werden nicht "ganz unten in der Datei"

https://jsfiddle.net/sfy9jean/1/

Gruß
Mitglied: 132272
132272 Feb 11, 2017 at 11:28:55 (UTC)
Goto Top