-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
57 lines (53 loc) · 1.39 KB
/
index.php
File metadata and controls
57 lines (53 loc) · 1.39 KB
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
<?php
require(__DIR__ . '/vendor/autoload.php');
use Interact\Client;
$client = new Client("F1OSc0H1EV6gF071u57WL27h8sh8Y3PUB", "");
?>
<html>
<head>
<title>example - artemis</title>
<?php
if ( $client->getFeature("RegistrationForm")->isB() ) {
?>
<link rel="stylesheet" href="style-bad.css">
<?php
}
else {
?>
<link rel="stylesheet" href="style.css">
<?php
}
?>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css">
<script src="https://code.jquery.com/jquery-3.2.1.min.js"></script>
</head>
<body>
<div class="container">
<div class="nav">
<div class="nav-logo">
<i class="fa fa-twitter" aria-hidden="true"></i>
</div>
</div>
<?php
if ( $client->getFeature("RegistrationForm")->isA() ) {
include('./src/good-template.php');
}
elseif ( $client->getFeature("RegistrationForm")->isB() ) {
include('./src/bad-template.php');
}
else {
?>
<div class="content">
<div class="content-body">
Feature is Closed
</div>
</div>
<?php
}
?>
</div>
<script>
<?php echo $client->getInitCode() ?>
</script>
</body>
</html>