Bachelorarbeit: "Ein Tool zur Erklärung von Datenschutzrichtlinien"
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

23 lines
1.6 KiB

// This variables defines a html-string which containg a law.
var art_15 = "<div><p> According to article 15 GDPR: </p><p>You have the right to be informed about your data</p></div>"
var art_16 = "<div><p> According to article 16 GDPR: </p><p>You have the right to rectification</p></div>"
var art_17 = "<div><p> According to article 17 GDPR: </p><p>You have the right of obligation to delete.</p></div>"
var art_18 = "<div><p> According to article 18 GDPR: </p><p>You have the right to restrict the processing of your data.</p></div>"
var art_19 = "<div><p> According to article 19 GDPR: </p><p>You have the right to be informed.</p></div>"
var art_20 = "<div><p> According to article 20 GDPR: </p><p>You have the right to data portability.</p></div>"
var art_21 = "<div><p> According to article 21 GDPR: </p><p>You have the right to reject the processing of your data.</p></div>"
var art_22 = "<div><p> According to article 22 GDPR: </p><p>You have the right to be free from the automatic decision-making of a computer.</p></div>"
var art_77 = "<div><p> According to article 77 GDPR: </p><p>You have the right to lodge a complaint with a supervisory authority.</p></div>"
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 = "<div class='mdc-card' id='rightcard'> ";
let random_number = Math.floor(Math.random() * Math.floor(9));
console.log(random_number);
return "<div class='mdc-card' id='right-card'><image src="+"'../../pic_data_base/law_hammer.png'"+ "width='64' height='64' ><p>"+arr[random_number]+"</p></div>";
}