mirror of
https://github.com/jlengrand/fortnoxovertime.git
synced 2026-03-10 08:21:17 +00:00
Adds a help link to be made later, and adds the development mode checkbox
This commit is contained in:
@@ -13,4 +13,8 @@ img {
|
||||
|
||||
#overtimeValue {
|
||||
display:inline;
|
||||
}
|
||||
|
||||
#help{
|
||||
float:right;
|
||||
}
|
||||
@@ -18,8 +18,13 @@
|
||||
</div>
|
||||
<div class="settings">
|
||||
<h2>Advanced</h2>
|
||||
Change Overtime value: <input type="rtext" name="hours" id="alterHours">
|
||||
Change Overtime value: <input type="text" name="hours" id="alterHours">
|
||||
<input type="button" value="Ok" id="submitButton">
|
||||
|
||||
<input type="checkbox" name="devMode" id="devMode" value="dev">Development Mode<br>
|
||||
|
||||
|
||||
<a id="help" href="http://localhost">Help here</a>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
@@ -65,13 +65,23 @@ function sleep(millis, callback) {
|
||||
, millis);
|
||||
}
|
||||
|
||||
function setDevMode(){
|
||||
var state = document.getElementById("devMode").checked;
|
||||
alert(state);
|
||||
saveChromeStorage("dev", state);
|
||||
}
|
||||
|
||||
|
||||
document.addEventListener('DOMContentLoaded', function () {
|
||||
|
||||
//adding element to the button
|
||||
//adding event to the button
|
||||
button = document.getElementById("submitButton");
|
||||
button.onclick = alterOvertime;
|
||||
|
||||
// adding event to the checkbox
|
||||
button = document.getElementById("devMode");
|
||||
button.onclick = setDevMode;
|
||||
|
||||
showOvertime();
|
||||
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user