# learnpress/4.4.6/assets/src/apps/js/frontend/single-curriculum/components/progress.js

LearnPress – WordPress LMS Plugin for Create and Sell Online Courses, version 4.4.6. 16 lines.

- Page: https://pluginprobe.com/plugins/learnpress/4.4.6/code/assets/src/apps/js/frontend/single-curriculum/components/progress.js
- Raw: https://pluginprobe.com/plugins/learnpress/4.4.6/raw/assets/src/apps/js/frontend/single-curriculum/components/progress.js
- Modified: 2026-08-31T10:33:54+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/learnpress/4.4.6/code/assets/src/apps/js/frontend/single-curriculum/components/progress.js#L10-L20`.

```javascript
const $ = jQuery;

export const progressBar = () => {
	$( '.learn-press-progress' ).each( function() {
		const $progress = $( this );
		const $active = $progress.find( '.learn-press-progress__active' );
		const value = $active.data( 'value' );

		if ( value === undefined ) {
			return;
		}

		$active.css( 'left', -( 100 - parseInt( value ) ) + '%' );
	} );
};

```
