Skip to content

Commit

Permalink
Support loading link profile from url
Browse files Browse the repository at this point in the history
  • Loading branch information
virresh committed Aug 4, 2024
1 parent 35d79a4 commit 39c56df
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions python_client/app/templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -222,6 +222,7 @@ <h5 class="modal-title" id="exampleModalLabel">Modal title</h5>
<option data-cc="https://virresh.github.io/StockD/py/nse_live_8july2024.json">NSE Daily (default)</option>
<option data-cc="https://virresh.github.io/StockD/py/nse_with_delivery_8july2024.json">NSE Daily (with Delivery)</option>
<option data-cc="https://virresh.github.io/StockD/py/nse_archives_8july2024.json">NSE Archives</option>
<option data-cc="https://virresh.github.io/StockD/py/nse_archives.json">NSE Archives Legacy</option>
<option data-cc="https://virresh.github.io/StockD/py/nse_old.json">NSE Old</option>
</select>
</div>
Expand Down Expand Up @@ -304,6 +305,11 @@ <h1 class="display-4">StockD v<span id="versionTxt">4.0</span></h1>
// el is the selected item "option"
$('#linkProfile').val(el.data('cc'));
});
$('#linkProfileEditable').on('change', function(e, el) {
if(this.value.startsWith("http")) {
$('#linkProfile').val(this.value);
}
});
window.sPrefDirty = false;
$('#loader').hide();
};
Expand Down

0 comments on commit 39c56df

Please sign in to comment.