@@ -113,14 +113,14 @@ <h2>Closest Match: <span class="weight-300" id="ideology-label"></span></h2>
113113 }
114114
115115 revolution = getQueryVariable ( "a" )
116- utopian = getQueryVariable ( "b" )
116+ scientific = getQueryVariable ( "b" )
117117 central = getQueryVariable ( "c" )
118- national = getQueryVariable ( "d" )
118+ international = getQueryVariable ( "d" )
119119 party = getQueryVariable ( "e" )
120120 reform = ( 100 - revolution ) . toFixed ( 1 )
121- scientific = ( 100 - utopian ) . toFixed ( 1 )
121+ utopian = ( 100 - scientific ) . toFixed ( 1 )
122122 decentral = ( 100 - central ) . toFixed ( 1 )
123- international = ( 100 - national ) . toFixed ( 1 )
123+ national = ( 100 - international ) . toFixed ( 1 )
124124 union = ( 100 - party ) . toFixed ( 1 )
125125
126126 setBarValue ( "revolution" , revolution )
@@ -135,9 +135,9 @@ <h2>Closest Match: <span class="weight-300" id="ideology-label"></span></h2>
135135 setBarValue ( "union" , union )
136136
137137 document . getElementById ( "a-label" ) . innerHTML = setLabel ( revolution , aArray )
138- document . getElementById ( "b-label" ) . innerHTML = setLabel ( utopian , bArray )
138+ document . getElementById ( "b-label" ) . innerHTML = setLabel ( scientific , bArray )
139139 document . getElementById ( "c-label" ) . innerHTML = setLabel ( central , cArray )
140- document . getElementById ( "d-label" ) . innerHTML = setLabel ( national , dArray )
140+ document . getElementById ( "d-label" ) . innerHTML = setLabel ( international , dArray )
141141 document . getElementById ( "e-label" ) . innerHTML = setLabel ( party , eArray )
142142
143143 ideology = ""
@@ -146,8 +146,8 @@ <h2>Closest Match: <span class="weight-300" id="ideology-label"></span></h2>
146146 dist = 0
147147 dist += Math . pow ( Math . abs ( ideologies [ i ] . stats . a - revolution ) , 2 )
148148 dist += Math . pow ( Math . abs ( ideologies [ i ] . stats . c - central ) , 2 )
149- dist += Math . pow ( Math . abs ( ideologies [ i ] . stats . b - utopian ) , 1.73856063 )
150- dist += Math . pow ( Math . abs ( ideologies [ i ] . stats . d - national ) , 1.73856063 )
149+ dist += Math . pow ( Math . abs ( ideologies [ i ] . stats . b - scientific ) , 1.73856063 )
150+ dist += Math . pow ( Math . abs ( ideologies [ i ] . stats . d - international ) , 1.73856063 )
151151 dist += Math . pow ( Math . abs ( ideologies [ i ] . stats . e - party ) , 1.73856063 )
152152 if ( dist < ideodist ) {
153153 ideology = ideologies [ i ] . name
0 commit comments