Skip to content

Commit

Permalink
Deploying to gh-pages from @ 0ca4e41 🚀
Browse files Browse the repository at this point in the history
  • Loading branch information
moisbo committed Nov 7, 2023
0 parents commit 0d10a86
Show file tree
Hide file tree
Showing 8 changed files with 297 additions and 0 deletions.
1 change: 1 addition & 0 deletions assets/index-8dc4287f.css

Large diffs are not rendered by default.

96 changes: 96 additions & 0 deletions assets/index-df1f4bc2.js

Large diffs are not rendered by default.

Binary file added favicon.ico
Binary file not shown.
Binary file added images/edit_help.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/ife_main_colour-300x59.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
16 changes: 16 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>SOCRATES Web</title>
<script type="module" crossorigin src="./assets/index-df1f4bc2.js"></script>
<link rel="stylesheet" href="./assets/index-8dc4287f.css">
</head>
<body>
<div id="app"></div>

<!-- Single Page Apps for GitHub Pages -->
<!-- <script type="text/javascript" src="/spa_github.js"></script>-->
</body>
</html>
164 changes: 164 additions & 0 deletions sample-data-20-year.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,164 @@
{
"soil": {
"soil_properties": 7,
"cec": 80,
"initial_oc": 1.2
},
"simulation": {
"start_year": 1963,
"period_length": 20,
"rotation_length": 3
},
"climate": {
"climate_method_data_entry": 1,
"average_annual_rainfall": 600,
"annual_mean_temperature": 16.7,
"randomize_rain_and_temperature": 0,
"annual_rainfall": [
{
"rainfall": 1
},
{
"rainfall": 1
}
],
"month_rain_temp": [
{
"rainfall": null,
"temperature": null
},
{
"rainfall": null,
"temperature": null
}
]
},
"rotation": [
{
"year": 1,
"plant": 6,
"stubble": null,
"graze": null,
"fertiliser": 0
},
{
"year": 2,
"plant": 0,
"stubble": 0,
"graze": null,
"fertiliser": 200
},
{
"year": 3,
"plant": 5,
"stubble": null,
"graze": 1,
"fertiliser": 0
}
],
"yields": {
"yields_method_data_entry": 0,
"annual_yields": [
{
"year": 1963,
"rotation": "Fallow",
"yield": 0
},
{
"year": 1964,
"rotation": "Wheat",
"yield": 3311
},
{
"year": 1965,
"rotation": "Legume Pasture",
"yield": 3638
},
{
"year": 1966,
"rotation": "Fallow",
"yield": 0
},
{
"year": 1967,
"rotation": "Wheat",
"yield": 1195
},
{
"year": 1968,
"rotation": "Legume Pasture",
"yield": 7357
},
{
"year": 1969,
"rotation": "Fallow",
"yield": 0
},
{
"year": 1970,
"rotation": "Wheat",
"yield": 2724
},
{
"year": 1971,
"rotation": "Legume Pasture",
"yield": 3034
},
{
"year": 1972,
"rotation": "Fallow",
"yield": 0
},
{
"year": 1973,
"rotation": "Wheat",
"yield": 1682
},
{
"year": 1974,
"rotation": "Legume Pasture",
"yield": 5208
},
{
"year": 1975,
"rotation": "Fallow",
"yield": 0
},
{
"year": 1976,
"rotation": "Wheat",
"yield": 2912
},
{
"year": 1977,
"rotation": "Legume Pasture",
"yield": 2034
},
{
"year": 1978,
"rotation": "Fallow",
"yield": 0
},
{
"year": 1979,
"rotation": "Wheat",
"yield": 2238
},
{
"year": 1980,
"rotation": "Legume Pasture",
"yield": 1273
},
{
"year": 1981,
"rotation": "Fallow",
"yield": 0
},
{
"year": 1982,
"rotation": "Wheat",
"yield": 1768
}
]
}
}
20 changes: 20 additions & 0 deletions spa_github.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
// Single Page Apps for GitHub Pages
// MIT License
// https://github.com/rafgraph/spa-github-pages
// This script checks to see if a redirect is present in the query string,
// converts it back into the correct url and adds it to the
// browser's history using window.history.replaceState(...),
// which won't cause the browser to attempt to load the new url.
// When the single page app is loaded further down in this file,
// the correct url will be waiting in the browser's history for
// the single page app to route accordingly.
(function (l) {
if (l.search[1] === '/') {
var decoded = l.search.slice(1).split('&').map(function (s) {
return s.replace(/~and~/g, '&');
}).join('?');
window.history.replaceState(null, null,
l.pathname.slice(0, -1) + decoded + l.hash
);
}
}(window.location));

0 comments on commit 0d10a86

Please sign in to comment.