Skip to content
This repository was archived by the owner on Jan 1, 2023. It is now read-only.

Commit 532dfae

Browse files
authored
Update README.md
1 parent f386e87 commit 532dfae

File tree

1 file changed

+21
-3
lines changed

1 file changed

+21
-3
lines changed

README.md

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,29 @@
11
# GuitarRatingApp
2-
Guitar Shop Rating system app for guitars selection. Created using Javascript/CSS/HTML as University project.
2+
Guitar Shop Rating system app for guitars selection.
3+
4+
Created using Javascript/CSS/HTML as university project in Vilnius Gediminas technical university.
35

46
## How algorithm works
5-
At the beginning, all the pictures that will participate in the rating are assigned numbers, after which they are displayed in turn, two pieces on the screen.
6-
You are given 2 pictures to choose from and you choose the one that you liked the most, after which its rating increases.
7+
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.
8+
```javascript
9+
var min = 1;
10+
var max = 18;
11+
var rb = Math.random() >= 0.5;
12+
var random = Math.floor(Math.random() * (+max - +min)) + +min;
13+
var rdm2 = Math.floor(Math.random() * (+mee - +mss)) + +mss;
14+
```
15+
All the pictures that will participate in the rating are assigned numbers, after which they are displayed in turn, two pieces on the screen.
16+
You choose either the left or the right picture and you choose the one that you liked the most, after which its rating increases.
17+
```javascript
18+
function go_left(){ ... }
19+
function go_right(){ ... }
20+
```
721
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.
22+
823
Also, by pressing the button, you can display a table with ratings of all guitars on the screen.
24+
```javascript
25+
function showRating(){ ... }
26+
```
927

1028
## Installation
1129

0 commit comments

Comments
 (0)