-
Notifications
You must be signed in to change notification settings - Fork 14
/
index.php
169 lines (151 loc) · 5.48 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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
<!--
Author: W3layouts
Author URL: http://w3layouts.com
License: Creative Commons Attribution 3.0 Unported
License URL: http://creativecommons.org/licenses/by/3.0/
-->
<!DOCTYPE html>
<html>
<head>
<title>slock.it| Home</title>
<link href="css/bootstrap.css" rel='stylesheet' type='text/css' />
<!-- jQuery (Bootstrap's JavaScript plugins) -->
<script src="js/jquery.min.js"></script>
<!-- Custom Theme files -->
<link href="css/style.css" rel="stylesheet" type="text/css" media="all" />
<!-- Custom Theme files -->
<meta name="google-site-verification" content="QwKgKR75zOP_7KxJgyAPdNTgML56ndLVddQtUhnxf4k" />
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="keywords" content="slock ethereum jentzsch etherlock anylock padlock lock smartcontract iot" />
<script type="application/x-javascript"> if ( window.location.href.indexOf("#")<0 ) addEventListener("load", function() { setTimeout(hideURLbar, 0); }, false); function hideURLbar(){ window.scrollTo(0,1); } </script>
<!--webfont-->
<link href='http://fonts.googleapis.com/css?family=Source+Sans+Pro:200,300,400,600,700,900' rel='stylesheet' type='text/css'>
<link href='http://fonts.googleapis.com/css?family=Raleway:400,800,300,100,500,700,600,900' rel='stylesheet' type='text/css'>
<!--animated-css-->
<link href="css/animate.css" rel="stylesheet" type="text/css" media="all">
<link rel="icon" type="image/png" href="images/slock_icon.png">
<script src="js/wow.min.js"></script>
<script>
new WOW().init();
</script>
<!--/animated-css-->
<!--script-->
<script type="text/javascript" src="js/move-top.js"></script>
<script type="text/javascript" src="js/easing.js"></script>
<!--/script-->
<script type="text/javascript">
jQuery(document).ready(function($) {
$(".scroll").click(function(event){
event.preventDefault();
$('html,body').animate({scrollTop:$(this.hash).offset().top},900);
});
});
</script>
<link rel="stylesheet" href="css/swipebox.css">
<script src="js/jquery.swipebox.min.js"></script>
<script type="text/javascript">
jQuery(function($) {
$(".swipebox").swipebox();
});
</script>
</head>
<body>
<!---->
<div class="banner">
<div class="container">
<div class="header">
<div class="logo wow fadeInLeft" data-wow-delay="0.5s">
<a href="index.php"><img src="images/logo2.png" alt=""/></a>
</div>
<div class="top-menu">
<span class="menu"> </span>
<ul>
<?php
$arr = array();
$content = "";
if ($handle = opendir('pages')) {
$pages = array();
while (false !== ($file = readdir($handle))) {
if (strpos($file,".html")!==false) $pages[]=$file;
}
closedir($handle);
sort($pages);
}
for ($i=0;$i<count($pages);$i++) {
$file = $pages[$i];
$lines = file("pages/$file");
$pathinfo = pathinfo($file);
if (count($lines)>0) { // there is content
$first = trim(str_replace("-->","",str_replace("<!--","",$lines[0])));
if (!$first) continue;
$id = str_replace(".html","",$file);
$descr = (strlen($first)>0)?$first: $pathinfo['filename'];
echo "<li><a class=\"scroll\" href=\"#$id\">$descr</a></li>";
ob_start();
include "pages/$file";
$content = $content . "<div id=\"$id\" class=\"$id\">". ob_get_clean() . "</div>";
}
}
?>
</ul>
</div>
<div class="clearfix"> </div>
</div>
<!-- script-for-menu -->
<script>
$("span.menu").click(function(){
$(".top-menu ul").slideToggle("slow" , function(){
});
});
</script>
<div id="home" class="banner-text wow fadeInUp" data-wow-delay="0.5s">
<h1>Slock.it </h1>
<h2>If you can lock it, we will let you rent, sell or share it.</h2>
</div>
</div>
</div>
<?php echo $content; ?>
<div class="get-started page">
<div class="container">
<h4 class="wow bounceInLeft" data-wow-delay="0.5s">We are Ready to Help You</h4>
<h3 class="wow bounceInRight" data-wow-delay="0.5s">Lock Smarter</h3>
</div>
</div>
<!---->
<div class="footer">
<div class="container">
<div class="ftr-logo">
<a class="wow bounceIn" data-wow-delay="0.5s" href="index.php"><img src="images/logo2.png" alt=""/></a>
</div>
<div class="copy-right wow bounceInUp" data-wow-delay="0.5s">
<p>Copyright © 2015 slock.it . All Rights Reserved.</p>
</div>
</div>
</div>
<!---->
<script type="text/javascript">
$(document).ready(function() {
/*
var defaults = {
containerID: 'toTop', // fading element id
containerHoverID: 'toTopHover', // fading element hover id
scrollSpeed: 1200,
easingType: 'linear'
};
*/
$().UItoTop({ easingType: 'easeOutQuart' });
});
</script>
<a href="#to-top" id="toTop" style="display: block;"> <span id="toTopHover" style="opacity: 1;"> </span></a>
<!---->
<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-52631731-3', 'auto');
ga('send', 'pageview');
</script>
</body>
</html>