/home/techb158/l2hypotheques.com/wp-content/themes/pylon/assets/js
NameSizeModeActions
bootstrap-bundle-min.js810900644editdlrm
bootstrap-select-min.js477060644editdlrm
bootstrap-select.js.map341230644editdlrm
bootstrap.bundle.min.js.map3183380644editdlrm
calculator.js22590644editdlrm
customizer.js12450644editdlrm
inline.js150644editdlrm
jquery-ajaxchimp-min.js23810644editdlrm
jquery-appear-min.js12660644editdlrm
jquery-magnific-popup-min.js202190644editdlrm
jquery-ui.js4517180644editdlrm
jquery.circleGraph.js27230644editdlrm
jquery.easing.min.js25320644editdlrm
jquery.matchHeight.js114920644editdlrm
navigation.js34440644editdlrm
nouislider-min.js238830644editdlrm
odometer-min.js98970644editdlrm
theme.js183760644editdlrm
wNumb-min.js22350644editdlrm
woocommerce.js00644editdlrm
wow.js63000644editdlrm
Edit: /home/techb158/l2hypotheques.com/wp-content/themes/pylon/assets/js/jquery.circleGraph.js (2723B)
(function ($) { $.fn.circleGraphic = function (options) { $.fn.circleGraphic.defaults = { color: '#F90', startAngle: 0, value: 0, //endAngle:50 }; $(this).each(function () { let $this = $(this) var opts = $.extend({}, $.fn.circleGraphic.defaults, options); var percentage = opts.value; var ID = "c" + percentage + Math.random(); $this.append(""); var canvas = document.getElementById(ID), context = canvas.getContext('2d'); var Width = $this.width(); $this.height(Width); var Height = $this.height(); canvas.width = Width; canvas.height = Height; var startAngle = opts.startAngle, endAngle = percentage / 100, angle = startAngle, radius = Width * 0.4; function drawTrackArc() { context.beginPath(); context.strokeStyle = '#fff'; context.lineWidth = 3; context.arc(Width / 2, Height / 2, radius, (Math.PI / 180) * (startAngle * 360 - 90), (Math.PI / 180) * (endAngle * 360 + 270), false); context.stroke(); context.closePath(); } function drawOuterArc(_angle, _color) { var angle = _angle; var color = _color; context.beginPath(); context.strokeStyle = color; context.lineWidth = 3; context.arc(Width / 2, Height / 2, radius, (Math.PI / 180) * (startAngle * 360 - 90), (Math.PI / 180) * (angle * 360 - 90), false); context.stroke(); context.closePath(); } function numOfPercentage(_angle, _color) { var angle = Math.ceil(_angle * 100); var color = _color; context.font = "50px fantasy"; context.fillStyle = color; var metrics = context.measureText(angle); var textWidth = metrics.width; var xPos = Width / 2 - textWidth / 2, yPos = Height / 2 + textWidth / 2; context.fillText(angle + "%", xPos, yPos); } function drawACircleInTheEnd() { let radians = angle * 2 * Math.PI; context.beginPath(); context.arc(Width / 2 + radius * (Math.sin(radians)), Height / 2 - radius * (Math.cos(radians)), 5, 0, 2 * Math.PI, false); context.fillStyle = 'white'; context.fill(); context.lineWidth = 3; context.strokeStyle = options.color; context.stroke(); } function draw() { var loop = setInterval(function () { context.clearRect(0, 0, Width, Height); drawTrackArc(); drawOuterArc(angle, opts.color); // numOfPercentage(angle, opts.color); drawACircleInTheEnd(); angle += 0.01; if (angle > endAngle) { clearInterval(loop); } }, 1000 / 60); } draw(); return $this; }) }; })(jQuery);