Skip to content

Commit

Permalink
Improved settings depending on render location.
Browse files Browse the repository at this point in the history
  • Loading branch information
harvzor committed Oct 6, 2020
1 parent a142a16 commit 3b85da9
Show file tree
Hide file tree
Showing 5 changed files with 79 additions and 84 deletions.
81 changes: 0 additions & 81 deletions dist/csp/js/edit.js

This file was deleted.

71 changes: 71 additions & 0 deletions dist/csp/js/settings.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions dist/csp/js/wrapper.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
window.reloadStartPage = function() {
document.querySelector('iframe#startpage')
.contentWindow.location.reload(true);
};
6 changes: 3 additions & 3 deletions dist/csp/settings.html
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<!DOCTYPE html>
<html>
<head lang="en">
<title>Edit | Custom Start Page</title>
<title>Settings | Custom Start Page</title>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href="/csp/css/bootstrap.min.css" rel="stylesheet">
Expand All @@ -12,7 +12,7 @@
<main>
<div class="container">
<header class="page-header">
<h1>Edit</h1>
<h1>Settings</h1>
<p>Customise the page. These options change depending on the page you've chosen.</p>
</header>
<div id="form"></div>
Expand All @@ -22,7 +22,7 @@ <h1>Edit</h1>
<script src="/csp/js/react-dom.production.min.js"></script>
<script src="/csp/js/react-jsonschema-form.js"></script>
<script src="/csp/js/storage.js"></script>
<script src="/csp/js/edit.js"></script>
<script src="/csp/js/settings.js"></script>
</main>
<footer class="main-footer">
<div class="container">
Expand Down
1 change: 1 addition & 0 deletions dist/csp/wrapper.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,5 @@
<body>
<iframe id="startpage" src="/index"></iframe>
<iframe id="settings" src="/settings"></iframe>
<script src="/csp/js/wrapper.js"></script>
</html>

0 comments on commit 3b85da9

Please sign in to comment.