This repository has been archived by the owner on Jan 2, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
50 lines (36 loc) · 1.8 KB
/
index.html
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
<html>
<head>
<!-- A single-page home automation map, using JQuery -->
<!-- JQuery, loaded from a CDN -->
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.11.2/jquery.min.js"></script>
<!-- this is the file with info (including JS functions) for the various data types supported by the system. -->
<!-- to add a feature type, either modify this file or use JS to add an object to JADATA.dataTypes -->
<script src="js/data-types.js"></script>
<!-- this is the JS file that does the home automation -->
<script src="js/home-setup.js"></script>
<!-- custom fonts defined here, using google just because it's free -->
<link href="http://fonts.googleapis.com/css?family=Parisienne|Lora" rel="stylesheet" type="text/css">
<!-- CSS Styling, mostly formatting the control panel -->
<link href="css/styles.css" rel="stylesheet" type="text/css">
</head>
<body>
<div id="content">
<h1>Just Another Automated Home</h1>
<div id="control-panel">
<h2>Control Panel</h2>
<!-- this container will be filled with the home automation controls -->
<div id="control-panel-content"></div>
</div>
<!-- this is the SVG floor plan for the home to be animated & automated -->
<!-- To use a different home, you'll need to change 2 things: this SVG & the JSON file, data/home-object.json -->
<object type="image/svg+xml" data="media/floor-plan.svg" class="home-map" id="home-map">Your browser does not support SVG</object>
<script>
var homeID = 'home',
featureTypeID = 'feature-types',
containerID = 'control-panel-content';
// set up the home data from the JSON object
JAHOME.initHomeData("data/home-object.json", JADATA.dataTypes, homeID, featureTypeID, containerID);
</script>
</div>
</body>
</html>