Skip to content

Commit

Permalink
Moved structure load and removed wait
Browse files Browse the repository at this point in the history
  • Loading branch information
piecole committed Nov 20, 2024
1 parent c51bc04 commit 72fd2a3
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions search.js
Original file line number Diff line number Diff line change
Expand Up @@ -362,19 +362,6 @@ function remove(el){
$(".tablink").click(function(){
tabClick($(".tablink").index(this))
});

if (structurePage == true) {
console.log("Loading structure...")
if(window.location.hash){
let hash = window.location.hash.substring(1)
tabClick(hash);
}else{
// Wait a couple of seconds to load the first structure
setTimeout(function() {
tabClick(0);
}, 2000);
}
};

// Allow region cards to be clicked to reveal their position in the structure
$(".region_info").click(function(e){
Expand Down Expand Up @@ -442,4 +429,17 @@ $(".region_info").click(function(e){
};
viewers[currentStructureNum].render()

});
});

if (structurePage == true) {
console.log("Loading structure...")
if(window.location.hash){
let hash = window.location.hash.substring(1)
tabClick(hash);
}else{
// Wait a couple of seconds to load the first structure?
//setTimeout(function() {
tabClick(0);
//}, 2000);
}
};

0 comments on commit 72fd2a3

Please sign in to comment.