This repository was archived by the owner on Jul 20, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +3
-15
lines changed Expand file tree Collapse file tree 2 files changed +3
-15
lines changed Original file line number Diff line number Diff line change 232232} ;
233233
234234window . mpds_host = 'https://mpds.io' ;
235- window . srv_host = ( window . location . hostname == 'localhost' || window . location . hostname == '127.0.0.1' || window . location . hostname == '' ) ? 'http://127.0.0.1:5000' : 'https://labs.mpds.io' ;
235+ window . srv_host = ( window . location . hostname == 'localhost' || window . location . hostname == '127.0.0.1' || window . location . hostname == '' ) ? 'http://127.0.0.1:' + window . location . port : 'https://labs.mpds.io' ;
236236window . api_host = 'https://api.mpds.io/v0' ;
237237
238238window . srch_endpoint = window . api_host + '/search/facet' ;
319319 for ( var prop_id in window . prop_models ) {
320320 var data = document . getElementById ( 'slider_' + prop_id ) . noUiSlider . get ( ) ;
321321
322- if ( prop_id == 'x' || prop_id == 't' ) {
323- data [ 0 ] *= 10 ;
324- data [ 1 ] *= 10 ;
322+ if ( prop_id == 'w' && window . disabled_w ) data = [ 0 , 0 ] ;
325323
326- } else if ( prop_id == 'w' ) {
327- if ( window . disabled_w ) {
328- data [ 0 ] = 0 ;
329- data [ 1 ] = 0 ;
330-
331- } else {
332- data [ 0 ] *= 10 ;
333- data [ 1 ] *= 10 ;
334- }
335- }
336324 numeric_search [ prop_id ] = data ;
337325 }
338326
Original file line number Diff line number Diff line change 123123< script type ="text/javascript ">
124124"use strict" ;
125125window . player_src = 'player.html' ;
126- window . req_endpoint = ( window . location . hostname == 'localhost' || window . location . hostname == '127.0.0.1' || window . location . hostname == '' ) ? 'http://127.0.0.1:5000 /predict' : 'https://labs.mpds.io/predict' ;
126+ window . req_endpoint = ( window . location . hostname == 'localhost' || window . location . hostname == '127.0.0.1' || window . location . hostname == '' ) ? 'http://127.0.0.1:' + window . location . port + ' /predict' : 'https://labs.mpds.io/predict' ;
127127window . local_supported = window . File && window . FileReader && window . FileList && window . Blob ;
128128window . playerdata = null ;
129129
You can’t perform that action at this time.
0 commit comments