-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathindex.php
89 lines (88 loc) · 4.03 KB
/
index.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
85
86
87
88
89
<?php // [email protected]
include 'inc.global.php';
function error($msg) {} // catch-all ?>
<!doctype html>
<html lang="en">
<!--
Why are you listening to this song backwards?
You could have been on a date with a girl.
-->
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<meta name="robots" content="index,follow,noarchive">
<meta name="language" content="en">
<title>JOSHUA</title>
<meta name="description" content="Personal homepage and playground of Alexander Støver. Built around a jQuery operating system (command prompt) named JOSHUA. Go Team Norway!">
<meta name="keywords" content="alexander, støver, alexander støver, stoever, astoever, destru kaneda, destru, destryu, jquery, os, command-line, prompt, shell, emulator, javascript">
<meta name="author" content="[email protected]">
<meta property="og:image" content="images/opengraph.jpg?<?= $version ?>">
<meta property="og:site_name" content="jQuery Operating System, HUA!">
<meta property="og:title" content="Personal homepage of Alexander Støver">
<meta property="og:description" content="Quite possibly the nerdiest homepage ever made.">
<meta property="og:type" content="website">
<link rel="image_src" href="images/opengraph.jpg?<?= $version ?>">
<link rel="icon" type="image/png" href="images/favicon.png?<?= $version ?>">
<link rel="stylesheet" type="text/css" href="joshua.css?<?= $version ?>" media="screen">
<?php // theme handling
if (isset($_COOKIE['theme'])) $theme = $_COOKIE['theme'];
else $theme = $defaultTheme;
if (in_array($theme, $nextgenThemes)) echo "\t".'<link rel="stylesheet" type="text/css" href="themes/nextgen.css?'.$version.'" media="screen">'."\n";
echo "\t".'<link rel="stylesheet" type="text/css" href="themes/'.$theme.'.css?'.$version.'" media="screen">'."\n";
?>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-139019-9', 'einhyrning.com');
ga('send', 'pageview');
</script>
<script src="//ajax.googleapis.com/ajax/libs/jquery/2.1.0/jquery.min.js"></script>
<script src="resources/joshua.external.min.js?<?= $version ?>"></script>
<script src="resources/joshua.effects.min.js?<?= $version ?>"></script>
<script>
// global settings
var version = '<?= $version ?>',
title = '<?= $title ?>',
theme = '<?= $theme ?>',
termPrompt = '<?= $termPrompt ?>',
nextgenThemes = ["<?= implode('","', $nextgenThemes) ?>"];
</script>
<script src="joshua.js?<?= $version ?>"></script>
</head>
<body>
<div id="wrapper">
<div id="joshua">
<h1><?= $header ?></h1>
<div id="output"></div>
<div id="input">
<input type="text" id="prompt" autocomplete="off">
</div>
</div>
<div id="desktop">
<ul id="windows" class="icons">
<li><a data-window="customize" title="Customization options and effects">Customize</a>
<li><a data-window="superplastic" title="You must escape!">Superplastic</a>
<!-- outdated API <li><a data-window="videos" title="Stream (long) videos on YouTube">Video Player</a> -->
<!-- outdated API <li><a data-window="music" title="Listen to my music">MP3 Player</a> -->
</ul>
<ul id="links" class="icons">
<li><a class="external" href="http://soundcloud.com/binaerpilot" title="Robot music for hackers and other nerds">BINÆRPILOT</a>
<li><a class="external" href="http://twitter.com/notdestru">Twitter</a>
<li><a class="external" href="http://facebook.com/binaerpilot">Facebook</a>
<li><a class="external" href="http://twitch.com/notdestru">Twitch</a>
</ul>
</div>
<div id="apps">
<div id="speak"></div>
<?php // apps
$d = scandir('.');
foreach ($d as $file) {
if (stristr($file, 'app.')) include $file;
} ?>
</div>
<div id="loader"></div>
</div>
</body>
</html>