@@ -11,6 +11,10 @@ const status1 = document.querySelector('#yourStatus');
1111const status2 = document . querySelector ( '#partnerStatus' ) ;
1212const status3 = document . querySelector ( '#mutualStatus' ) ;
1313
14+ const nameToLove = "hande"
15+ const nameToHate = "emirhan"
16+ const yourName = "semih"
17+
1418function calculateStatus ( status , value ) {
1519
1620 if ( value < 10 ) {
@@ -54,7 +58,7 @@ function calculateResult(str1, str2) {
5458 console . log ( str2L ) ;
5559
5660
57- if ( ( str1L == 'hande' ) && ( str2L == 'semih' ) ) {
61+ if ( ( str1L == nameToLove ) && ( str2L == yourName ) ) {
5862 section1 . style . display = 'block' ;
5963 yourCounter . textContent = `${ 800 } %` ;
6064 partnerCounter . textContent = `${ 999 } %` ;
@@ -63,7 +67,7 @@ function calculateResult(str1, str2) {
6367 calculateStatus ( status2 , 999 ) ;
6468 calculateStatus ( status3 , 900 ) ;
6569 }
66- else if ( ( str2L == 'hande' ) && ( str1L == 'semih' ) ) {
70+ else if ( ( str2L == nameToLove ) && ( str1L == yourName ) ) {
6771 section1 . style . display = 'block' ;
6872 yourCounter . textContent = `${ 999 } %` ;
6973 partnerCounter . textContent = `${ 800 } %` ;
@@ -72,7 +76,7 @@ function calculateResult(str1, str2) {
7276 calculateStatus ( status2 , 800 ) ;
7377 calculateStatus ( status3 , 900 ) ;
7478 }
75- else if ( ( str1L == 'hande' ) && ( str2L == 'emirhan' ) ) {
79+ else if ( ( str1L == nameToLove ) && ( str2L == nameToHate ) ) {
7680 section1 . style . display = 'block' ;
7781 yourCounter . textContent = `${ 1 } %` ;
7882 partnerCounter . textContent = `${ 10 } %` ;
@@ -81,7 +85,7 @@ function calculateResult(str1, str2) {
8185 calculateStatus ( status2 , 10 ) ;
8286 calculateStatus ( status3 , 2 ) ;
8387 }
84- else if ( ( str2L == 'hande' ) && ( str1L == 'emirhan' ) ) {
88+ else if ( ( str2L == nameToLove ) && ( str1L == nameToHate ) ) {
8589 section1 . style . display = 'block' ;
8690 yourCounter . textContent = `${ 10 } %` ;
8791 partnerCounter . textContent = `${ 1 } %` ;
0 commit comments