@@ -11,16 +11,16 @@ import { occlusionY } from "./occlusion";
1111
1212class App {
1313 query_input : HTMLInputElement ;
14- case_sensitive_button : HTMLElement ;
14+ case_insensitive_button : HTMLElement ;
1515 combine_button : HTMLElement ;
1616 smooth_button : HTMLElement ;
1717 error : HTMLElement ;
1818 chart : HTMLElement ;
1919 timing : HTMLElement ;
2020
2121 query : string ;
22- case_sensitive = false ;
23- combine = true ;
22+ case_insensitive = false ;
23+ combine = false ;
2424 smooth = true ;
2525
2626 last_query_res : encoded_query_response = {
@@ -32,8 +32,8 @@ class App {
3232 this . query_input = document . getElementById ( "query" ) ! as HTMLInputElement ;
3333 this . query = this . query_input . value ;
3434 this . query_input . addEventListener ( "keyup" , debounce ( this . query_keystroke . bind ( this ) , 500 ) , false ) ;
35- this . case_sensitive_button = document . getElementById ( "case-sensitive " ) ! ;
36- this . case_sensitive_button . addEventListener ( "click" , this . case_sensitive_button_press . bind ( this ) , false ) ;
35+ this . case_insensitive_button = document . getElementById ( "case-insensitive " ) ! ;
36+ this . case_insensitive_button . addEventListener ( "click" , this . case_insensitive_button_press . bind ( this ) , false ) ;
3737 this . combine_button = document . getElementById ( "combine-series" ) ! ;
3838 this . combine_button . addEventListener ( "click" , this . combine_button_press . bind ( this ) , false ) ;
3939 this . smooth_button = document . getElementById ( "smooth" ) ! ;
@@ -47,8 +47,8 @@ class App {
4747 this . do_query ( ) ;
4848 }
4949
50- case_sensitive_button_press ( ) {
51- this . case_sensitive = ! this . case_sensitive ;
50+ case_insensitive_button_press ( ) {
51+ this . case_insensitive = ! this . case_insensitive ;
5252 this . set_button_states ( ) ;
5353 this . do_query ( ) ;
5454 }
@@ -66,7 +66,7 @@ class App {
6666 }
6767
6868 set_button_states ( ) {
69- this . case_sensitive_button . setAttribute ( "class" , this . case_sensitive ? "on" : "" ) ;
69+ this . case_insensitive_button . setAttribute ( "class" , this . case_insensitive ? "on" : "" ) ;
7070 this . combine_button . setAttribute ( "class" , this . combine ? "on" : "" ) ;
7171 this . smooth_button . setAttribute ( "class" , this . smooth ? "on" : "" ) ;
7272 }
@@ -303,7 +303,7 @@ class App {
303303 this . timing . innerHTML = `Querying...` ;
304304 const endpoint = `${ maybe_slash ( import . meta. env . BASE_URL ) } query` ;
305305 http_get (
306- `${ endpoint } ?q=${ encodeURIComponent ( this . query ) } &ci=${ ! this . case_sensitive } &combine=${ this . combine } ` ,
306+ `${ endpoint } ?q=${ encodeURIComponent ( this . query ) } &ci=${ this . case_insensitive } &combine=${ this . combine } ` ,
307307 ( res : string | Error ) => {
308308 if ( res instanceof Error ) {
309309 this . set_error ( res . message ) ;
0 commit comments