-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdigital-garden.php
84 lines (82 loc) · 2.86 KB
/
digital-garden.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
<!doctype html>
<html lang="en">
<head>
<?php include 'includes/meta.html';?>
<title>Digital Garden</title>
<?php include 'includes/link.html';?>
<script>
function includeHTML() {
var z, i, elmnt, file, xhttp;
/*loop through a collection of all HTML elements:*/
z = document.getElementsByTagName("*");
for (i = 0; i < z.length; i++) {
elmnt = z[i];
/*search for elements with a certain atrribute:*/
file = elmnt.getAttribute("w3-include-html");
if (file) {
/*make an HTTP request using the attribute value as the file name:*/
xhttp = new XMLHttpRequest();
xhttp.onreadystatechange = function() {
if (this.readyState == 4) {
if (this.status == 200) {elmnt.innerHTML = this.responseText;}
if (this.status == 404) {elmnt.innerHTML = "Page not found.";}
/*remove the attribute, and call this function once more:*/
elmnt.removeAttribute("w3-include-html");
includeHTML();
}
}
xhttp.open("GET", file, true);
xhttp.send();
/*exit the function:*/
return;
}
}
};
</script>
<script src="/lib/w3.js"></script>
</head>
<body>
<?php include 'includes/navbar-digital-garden.php';?>
<header>
<div class="jumbotron" id="holden-hardcastle">
<div class="container">
<div class="row">
<div class="col-md-6 col-md-offset-3">
<h1>Holden Hardcastle's Digital Garden</h1>
<p>A collection of evolving ideas that aren't strictly organised by their publication date. They're inherently exploratory – notes are linked through contextual associations. They aren't refined or complete - notes are published as half-finished thoughts that will grow and evolve over time. They're less rigid, less performative, and less perfect than the personal websites we're used to seeing.</p>
</div>
</div>
</div>
</div>
</header>
<main>
<section>
<div w3-include-HTML="archive/additional-materials.html"></div>
</section>
<section>
<?php include 'archive/zip-drive.php';?>
</section>
<section>
<?php include 'archive/additional-materials.php';?>
</section>
<section>
<?php include 'archive/removeable-cartridges.php';?>
</section>
<section>
<?php include 'archive/design-issues.php';?>
</section>
<section>
<?php include 'archive/inspiration.php';?>
</section>
<section>
<?php include 'archive/sketchbook.php';?>
</section>
<?php include 'includes/footer-social.php';?>
</main>
<!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
<script src="bootstrap/js/jquery-1.11.3.min.js"></script>
<!-- Include all compiled plugins (below), or include individual files as needed -->
<!-- script src="js/bootstrap.min.js"></script-->
</body>
</html>