Convert jQuery to JS

In Progress Posted 2 years ago Paid on delivery
In Progress Paid on delivery

I need to convert a star rating script which uses jQuery and PHP. I am making some changes on one of my website, jQuery will be removed and no other JS library/framework will be used. I need to convert jQuery part of the star rating script to work as vanilla Javascript. All endpoints/URLs, HTML, CSS class names, comments and variable names (wherever possible) should remain unmodified. The main thing is to convert the jQuery functions/logic to Vanilla JS.

Some hints:

1. Serverside PHP part is OK, it will not be modified. When a new rating is made, the API endpoint should receive the data in the same format as before.

2. On some pages there are multiple objects with their ratings, on some there is only a single entity with its rating.

3. "data-id" HTML parameter (example: "8.47-6053") is a combination of average rating and entity ID.

I attach 2 JS files with the code be converted and 1 file with the example of usage in the HTML code. Please convert code in the files [login to view URL] and jRating.jquery.js.

JavaScript jQuery / Prototype CSS AJAX

Project ID: #31801645

About the project

4 proposals Remote project Active 2 years ago

Awarded to:

sakshamrana2

Hi, The prospect of making your project from me can be exciting as I can provide the best results from my team at unbeatable prices. I read your project details carefully and went through the attachments as well, I a More

$15 USD in 3 days
(0 Reviews)
0.0

4 freelancers are bidding on average $29 for this job

lechaantonov333

Dear Client! I'm reaylly interested in your project. I'm a Web Developer and have good experiences in HTML,CSS, JAVAXCRIPT, PHP and various frameworks. I'm good in MVC model. I can help you well. Lets discuss more deta More

$20 USD in 7 days
(1 Review)
1.8
Jacktracker

Hey there, Are you looking for a front-end web developer or react developer? So you are at the right place. If you want a website with beautiful and animated UI using HTML, CSS, javascript, react js. I am a highly pro More

$30 USD in 2 days
(1 Review)
0.4