Skip to content
This repository has been archived by the owner on Jan 1, 2023. It is now read-only.
/ GuitarRating Public archive

Guitar Shop Rating system app for guitars selection. Created using Javascript/CSS/HTML as university project at Vilnius Gediminas technical university.

Notifications You must be signed in to change notification settings

rengetsu/GuitarRating

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GuitarRatingApp

Guitar Shop Rating system app for guitars selection.

Created using Javascript/CSS/HTML as university project in Vilnius Gediminas technical university.

How algorithm works

At the beginning, all pictures participating in the rating system are assigned an initial rating, and variables are also declared for the subsequent random display of pictures out of order.

var min = 1;
var max = 18;
var rb = Math.random() >= 0.5;
var random = Math.floor(Math.random() * (+max - +min)) + +min;
var rdm2 = Math.floor(Math.random() * (+mee - +mss)) + +mss;

All the pictures that will participate in the rating are assigned numbers, after which they are displayed in turn, two pieces on the screen. You choose either the left or the right picture and you choose the one that you liked the most, after which its rating increases.

function go_left(){ ... }
function go_right(){ ... }

When pressed, the next pair is immediately displayed, and when all pairs have passed, they begin to be displayed in random order, thereby mixing them together.

Also, by pressing the button, you can display a table with ratings of all guitars on the screen.

function showRating(){ ... }

Installation

Just download the project and run the index.html file.

Or to install run the following commands in a working directory:

git clone https://github.com/rengetsu/GuitarRatingApp.git

and also open index.html file.

Screenshot Preview

GitHub Logo

About

Guitar Shop Rating system app for guitars selection. Created using Javascript/CSS/HTML as university project at Vilnius Gediminas technical university.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published