Skip to content

Commit 90edf6a

Browse files
Explorer GEOPHIRES About link, adjust result display height (hide unused profile graphs elts)
1 parent ee67609 commit 90edf6a

File tree

4 files changed

+27
-10
lines changed

4 files changed

+27
-10
lines changed

explorer/explorer-map.js

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,9 +149,22 @@ initMap().then(async () => {
149149
$(summaryTable).append($(`<thead><tr><th colspan='2'>PRE-CACLULATED FACILITY RESULTS: ${facilityName}</th></tr></thead>`))
150150
$(summaryTable).append(getTbody(facilityData.geophires_summary))
151151

152+
153+
// WIP...
154+
/*
155+
'End-Use Option': EndUseOption.DIRECT_USE_HEAT.value,
156+
'Reservoir Model': 1,
157+
'Time steps per year': 6,
158+
'Reservoir Depth': 3,
159+
'Gradient 1': temp_gradient,
160+
*/
161+
// let geophiresDeeplinkHash = 'abc'
162+
// let geophiresDeeplink = `/geothermal/geophires#${geophiresDeeplinkHash}`
163+
152164
$('#results').empty()
153165
.append(summaryTable)
154-
// .append(infoTable.clone())
166+
//.append(infoTable.clone())
167+
//.append($(`<a href='${geophiresDeeplink}'>geophires</a>`))
155168

156169
resetGenerationProfileGraphs()
157170
});

explorer/explorer.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,9 @@
1717
color: #d3d3d3;
1818
}
1919

20-
#geophires-ui {
20+
/*#geophires-ui {
2121
min-height: 625px;
22-
}
22+
}*/
2323

2424
.path-breadcrumb {
2525
font-size: 15px;

explorer/index.html

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -122,8 +122,8 @@ <h3>GEOPHIRES Result</h3>
122122
<div id="results">
123123
Click a facility on the map to see its pre-calculated GEOPHIRES result summary.
124124
</div>
125-
<div id="generation-profile-graphs">
126-
<div id="power-generation-profile-chart" style="width: 100%; height: 250px"></div>
125+
<div id="generation-profile-graphs" style="display: none;">
126+
<div id="power-generation-profile-chart" style="width: 100%; height: 250px;"></div>
127127
<br/>
128128
<div id="heat-electricity-extraction-generation-profile-chart"
129129
style="width: 100%; height: 250px"></div>
@@ -161,11 +161,7 @@ <h2><a id="about">About</a></h2>
161161
<a href="https://www.linkedin.com/in/jboden/">John Boden, SPE</a>
162162
</li>
163163
<li>
164-
GEOPHIRES by
165-
<a href="https://www.linkedin.com/in/malcolmiross/">Malcolm Ross</a>,
166-
<a href="https://www.linkedin.com/in/koenraad-beckers-980a617/">Koenraad Beckers</a>:
167-
<a href="https://github.com/softwareengineerprogrammer/GEOPHIRES-X">forked</a>
168-
from <a href="https://github.com/malcolm-dsider/GEOPHIRES-X">malcolm-dsider/GEOPHIRES-X</a>
164+
GEOPHIRES: see <a href="/geothermal/geophires/#about">GEOPHIRES Web Interface</a> About section
169165
</li>
170166
</ul>
171167
</div>

explorer/util.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,14 @@ function setUrlHash(urlHash) {
6767
function setVisible(elt, isVisible) {
6868
if (isVisible) {
6969
$(elt).removeClass('hidden')
70+
try {
71+
console.debug($(elt).css('display'))
72+
if($(elt).css('display') === 'none'){
73+
$(elt).css('display', '')
74+
}
75+
}catch (e) {
76+
console.warn('Error checking display property', e)
77+
}
7078
} else {
7179
$(elt).addClass('hidden')
7280
}

0 commit comments

Comments
 (0)