Skip to content

Commit

Permalink
Wrapping the headers in their own div, and hide when in electron
Browse files Browse the repository at this point in the history
  • Loading branch information
itssimple committed Jul 19, 2018
1 parent 90bfd1f commit d1c9b46
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 10 deletions.
12 changes: 9 additions & 3 deletions edj.main.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,10 @@ edjdata = {
current: null,
max: null,
},
materials: { Raw: [], Manufactured: []}
materials: {
Raw: [],
Manufactured: []
}
},
gamemode: null,
cansynthesizelifesupport: false
Expand All @@ -54,6 +57,9 @@ edjdata = {
if (edjApp.is_electron) {
document.querySelector('.platformHelp').style.display = 'none';
document.querySelector('.directorySelection').style.display = 'none';
document.querySelector('.htmlHeader').style.display = 'none';
} else {
document.querySelector('.winpathButton').addEventListener('click', () => { edj.copyFilePath('#winpath'); });
}
document.querySelector('.winpathButton').addEventListener('click', () => {
edj.copyFilePath('#winpath');
});
}
17 changes: 10 additions & 7 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,10 @@
</head>

<body>
<h1>Elite Dangerous: Web Journal Reader</h1>
<h2>Welcome Commander</h2>
<div class="htmlHeader">
<h1>Elite Dangerous: Web Journal Reader</h1>
<h2>Welcome Commander</h2>
</div>
<div class="platformHelp">
<p>Select your journal directory:</p>
<p>Windows:
Expand All @@ -18,19 +20,20 @@ <h2>Welcome Commander</h2>
<a href="#" class="winpathButton">Copy</a>
</span>
</p>
<label class="directorySelection">
<input type="file" id="logDirectory" multiple webkitdirectory directory mozdirectory allowdir /> Select your Journal directory
</label>
<br />
</div>
<label class="directorySelection">
<input type="file" id="logDirectory" multiple webkitdirectory directory mozdirectory allowdir /> Select your Journal directory
</label>
<br />

<div class="player-info">
<span id="cmdrname">CMDR &lt;Load the journal&gt;</span>
<span id="location">&lt;Load the journal&gt;</span>
<div id="fuelLevel">
<div id="fuelBar"></div>
</div>
<div id="canSynthOxygen">

</div>
</div>
<script type="text/javascript" src="edj.main.js?v=1.0.3"></script>
Expand Down

0 comments on commit d1c9b46

Please sign in to comment.