// This variables defines a html-string which containg a law. var art_15 = "

According to article 15 GDPR:

You have the right to be informed about your data

" var art_16 = "

According to article 16 GDPR:

You have the right to rectification

" var art_17 = "

According to article 17 GDPR:

You have the right of obligation to delete.

" var art_18 = "

According to article 18 GDPR:

You have the right to restrict the processing of your data.

" var art_19 = "

According to article 19 GDPR:

You have the right to be informed.

" var art_20 = "

According to article 20 GDPR:

You have the right to data portability.

" var art_21 = "

According to article 21 GDPR:

You have the right to reject the processing of your data.

" var art_22 = "

According to article 22 GDPR:

You have the right to be free from the automatic decision-making of a computer.

" var art_77 = "

According to article 77 GDPR:

You have the right to lodge a complaint with a supervisory authority.

" function get_a_right(){ let arr = [art_15,art_16,art_17,art_18,art_19,art_20,art_21,art_22,art_77]; let right_card = "
"; let random_number = Math.floor(Math.random() * Math.floor(9)); console.log(random_number); return "

"+arr[random_number]+"

"; }