Hello to who may be viewing this I am new to Wix and have limited knowledge in a few different programming languages so excuse me if this is a rather easy code and I am just rather bad at this.
So what I am having trouble achieving on my Wix website is, a Like and Dislike function with the use of a database to store the values and then use them in other code to create what is known as a progress bar in most languages. What i am trying to achieve is making a button that will add a single integer into a feild_type in my Wix database I plan to use this method with one column named Likes and the other Dislikes. With the information in the database i would like to display it in the form of a progress bar with the like count being the width (covered portion) of the bar and the dislike being the remainder. Of course to be able to get the percentages from the data input into the columns they would require equations like so x = likes y = dislikes (x/x+y)*100 this would give me the percentage of likes.
If anyone could help me out it would be much appreciated for a reference the site I am trying to add this function to is www.ScientiaForum.com I plan to add this script to each of the titled tiles on the homepage (I have left a sample of the progress bar i currently have on the philosophy tile).