-
Notifications
You must be signed in to change notification settings - Fork 0
/
pc.php
127 lines (124 loc) · 7.69 KB
/
pc.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
<!DOCTYPE html>
<html>
<head>
<title><?=$local->service->brand?></title>
<meta charset="UTF-8">
<? include 'meter.php'; ?>
<? include 'SEO.php'; ?>
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<script src="https://code.jquery.com/jquery-3.4.1.slim.min.js" integrity="sha384-J6qa4849blE2+poT4WnyKhv5vZF5SrPo0iEjwBvKU7imGFAV0wwj1yYfoRSJoZ+n" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/umd/popper.min.js" integrity="sha384-Q6E9RHvbIyZFJoft+2mJbHaEWldlvI9IOYy5n3zV9zzTtmI3UksdQRVvoxMfooAo" crossorigin="anonymous"></script>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/css/bootstrap.min.css" integrity="sha384-Vkoo8x4CGsO3+Hhxv8T/Q5PaXtkKtu6ug5TOeNV6gBiFeWPGFN9MuhOf23Q9Ifjh" crossorigin="anonymous">
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.4.1/js/bootstrap.min.js" integrity="sha384-wfSDF2E50Y2D1uUdj0O3uMBJnjuUD4Ih7YwaYd1iqfktj0Uod8GCExl3Og8ifwB6" crossorigin="anonymous"></script>
<link rel="stylesheet" href="front/fonts/SF Display/SFUIDisplay.css">
<link rel="stylesheet" href="/front/css/styles.css">
<script src="https://kit.fontawesome.com/581d130f1d.js" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/jquery.redirect.min.js"></script>
<script src="/front/js/ajax.js"></script>
<link rel="icon" type="image/png" sizes="32x32" href="./front/img/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="96x96" href="./front/img/favicon-96x96.png">
<link rel="icon" type="image/png" sizes="16x16" href="./front/img/favicon-16x16.png">
<meta name="yandex-verification" content="6ed243612a212ef4" />
</head>
<body>
<div class="wrapper container-fluid ">
<div class="row placeholder justify-content-center"><img height="60px" src="./front/img/logo.png" alt="<?=$local->service->brand?>"></div>
<div id="step_0">
<div class="row justify-content-center align-items-center" style="height: 100vh;" >
<div class="col-md-12 h1 text-center">
<?=$local->service->{"18-question"}?><br>
<button class="btn btn-success btn-lg" onclick='next_step("step_1", "step_0")' href="#"><?=$local->service->yes?></button>
<button class="btn btn-danger btn-lg" onclick='not_18()' href="#"><?=$local->service->no?></button>
</div>
</div>
</div>
<div id="step_1" style="display: none;">
<div class="row justify-content-center align-items-center" style="height: 100vh;">
<div class="b-md-4 col-md-3 h1 block" onclick='next_step("step_2_c", "step_1")' href="#"><i class="fas fa-venus-mars fa-4x"></i> <br><?=$local->service->classic?></div>
<div class="b-md-4 col-md-3 h1 block" onclick='next_step("step_2_g", "step_1")'> <i class="fas fa-mars-double fa-4x"></i> <br><?=$local->service->gay?></div>
<?
$j = file_get_contents($_SERVER['DOCUMENT_ROOT'].'/api/cats.data' );
$data = json_decode($j);
?>
<div class="b-md-4 col-md-3 h1 block" onclick='viewer("all")'><i class="fas fa-dice fa-4x"></i> <br><?=$local->service->random?></div>
</div>
</div>
<div id="step_2_c" style="display: none;">
<div class="row justify-content-center align-items-center" style="height: calc(100vh - 20px);">
<button class="btn back-button" onclick='next_step("step_1","step_2_c")'><i class="fas fa-arrow-left fa-2x"></i></button>
<div class="row justify-content-center align-items-center" style="width:100vw;height: calc(100vh - 20px);">
<div class="col-md-12 block h2 text-center"><?=$local->service->{"most-popular"}?></div>
<div class="row col-md-12 justify-content-center">
<?
$j = file_get_contents($_SERVER['DOCUMENT_ROOT'].'/api/cats.data' );
$data = json_decode($j);
echo '<div id="all_classic" class="b-md-4 h3 block" onclick=\'cat_all("classic")\'>'.$local->service->all.'</div>';
for($i = 0; isset($data->{"popularClassic"}[$i]); $i++){
echo '<div id="'.$data->{"popularClassic"}[$i].'" class="b-md-4 h3 block" onclick=\'cat_clicked("'.$data->{"popularClassic"}[$i].'", false)\'>'.$local->{"categories"}->{$data->{"popularClassic"}[$i]}.'</div>';
}
?>
</div>
<button id="allB" class="btn btn-light btn-lg col-md-6 more-btn" onclick='next_step("other", "allB")'><?=$local->service->more?></button>
<button id="lessB" style="display: none;" class="btn btn-light btn-lg col-md-6 more-btn" onclick='next_step("allB", "other")'><?=$local->service->less?></button>
</div>
<div id="other" class="row col-md-12 justify-content-center" style="display: none;transition: 0.5s;">
<div class="col-md-12"></div>
<div class="row text-center justify-content-center">
<?
$j = file_get_contents($_SERVER['DOCUMENT_ROOT'].'/api/cats.data' );
$data = json_decode($j);
for($i = 0; isset($data->{"classic"}[$i]); $i++){
$duplicate = false;
for($j = 0; isset($data->{"popularClassic"}[$j]); $j++)
if($data->{"classic"}[$i] == $data->{"popularClassic"}[$j])
$duplicate = true;
if(!$duplicate)
echo '<div id="'.$data->{"classic"}[$i].'" class="b-md-4 h3 block" onclick=\'cat_clicked("'.$data->{"classic"}[$i].'", false)\'>'.$local->{"categories"}->{$data->{"classic"}[$i]}.'</div>';
}
?>
</div>
</div>
<button class="btn btn-light go-btn" style="display:none;" onclick='viewer()'><i class="fas fa-play"></i></button>
</div>
</div>
<div id="step_2_g" style="display: none;">
<div class="row justify-content-center">
<button class="btn back-button" onclick='next_step("step_1","step_2_g")'><i class="fas fa-arrow-left fa-2x"></i></button>
<div class="row justify-content-center align-items-center" style="width:100vw;height: calc(100vh - 20px);">
<div class="col-md-10 block h2 text-center"><?=$local->service->{"most-popular"}?></div>
<div class="row col-md-12 justify-content-center">
<?
$j = file_get_contents($_SERVER['DOCUMENT_ROOT'].'/api/cats.data' );
$data = json_decode($j);
echo '<div id="all_gay" class="b-md-4 h3 block" onclick=\'cat_all("gay")\'>'.$local->service->all.'</div>';
for($i = 0; isset($data->{"popularGay"}[$i]); $i++){
echo '<div id="'.$data->{"popularGay"}[$i].'" class="b-md-4 h3 block" onclick=\'cat_clicked("'.$data->{"popularGay"}[$i].'", false)\'>'.$local->{"categories"}->{"Gay"}->{$data->{"popularGay"}[$i]}.'</div>';
}
?>
</div>
<button id="allB1" class="btn btn-light btn-lg col-md-6 more-btn" onclick='next_step("other1", "allB1")'><?=$local->service->more?></button>
<button id="lessB1" style="display: none;" class="btn btn-light btn-lg col-md-6 more-btn" onclick='next_step("allB1", "other1")'><?=$local->service->less?></button>
</div>
<div id="other1" class="row col-md-12 justify-content-center" style="display: none">
<div class="col-md-12"></div>
<div class="row text-center justify-content-center">
<?
$j = file_get_contents($_SERVER['DOCUMENT_ROOT'].'/api/cats.data' );
$data = json_decode($j);
for($i = 0; isset($data->{"gay"}[$i]); $i++){
$duplicate = false;
for($j = 0; isset($data->{"popularGay"}[$j]); $j++)
if($data->{"gay"}[$i] == $data->{"popularGay"}[$j])
$duplicate = true;
if(!$duplicate)
echo '<div id="'.$data->{"gay"}[$i].'" class="b-md-4 h3 block" onclick=\'cat_clicked("'.$data->{"gay"}[$i].'", false)\'>'.$local->{"categories"}->{"Gay"}->{$data->{"gay"}[$i]}.'</div>';
}
?>
</div>
</div>
<button class="btn btn-light go-btn" style="display:none;" onclick='viewer()'><i class="fas fa-play"></i></button>
</div>
</div>
</div>
</body>
</html>