-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path_subject_box.php
75 lines (61 loc) · 3.21 KB
/
_subject_box.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
<?php
if (!isset($subject_id)) { $subject_id = 0; }
if (!isset($subject_type)) { $subject_type = "random"; }
?>
<div class="subject-box">
<div class="position-badge">
<span><?php echo $subject_type != "sorted" ? "" : ($subject_id == 0 ? "🥇" : ($subject_id == 1 ? "🥈" : ($subject_id == 2 ? "🥉" : ""))) ?></span>
</div>
<div class="row mb-4">
<div class="col text-right subject-info">
<span style="font-size: 14px;" id="subject-<?php echo $subject_type ?>-<?php echo $subject_id ?>-emoji">🧑</span>
<div>
<span class="subject-id-wrapper">
<span class="subject">subject</span> #<span id="subject-<?php echo $subject_type ?>-<?php echo $subject_id ?>-id">0</span>
</span>
<br />
<span class="subject-name" id="subject-<?php echo $subject_type ?>-<?php echo $subject_id ?>-name"></span>
</div>
</div>
</div>
<div class="luck-bar-wrapper mt-2 <?php echo $subject_type=="noluck" || $subject_type=="sorted-2" ? "d-none" : "" ?>">
<div class="row">
<div class="col">
🍀 <span class="luck">Luck</span>
</div>
<div class="col text-right">
<span class="subject-box-figure" id="subject-<?php echo $subject_type ?>-<?php echo $subject_id ?>-raw-luck"></span><span class="of-100">/100</span>
</div>
</div>
<div class="progress">
<div id="subject-<?php echo $subject_type ?>-<?php echo $subject_id ?>-raw-luck-bar" class="progress-bar bg-success" role="progressbar" style="width: 0%" aria-valuenow="0" aria-valuemin="0" aria-valuemax="100"></div>
</div>
</div>
<div class="effort-bar-wrapper mt-2 <?php echo $subject_type=="sorted-2" ? "d-none" : "" ?>">
<div class="row">
<div class="col">
🏋️ <span class="skill">Skill</span>
</div>
<div class="col text-right">
<span class="subject-box-figure" id="subject-<?php echo $subject_type ?>-<?php echo $subject_id ?>-raw-effort"></span><span class="of-100">/100</span>
</div>
</div>
<div class="progress">
<div id="subject-<?php echo $subject_type ?>-<?php echo $subject_id ?>-raw-effort-bar" class="progress-bar bg-secondary" role="progressbar" style="width: 0%" aria-valuenow="0" aria-valuemin="0" aria-valuemax="100"></div>
</div>
</div>
<div class="success-bar-wrapper mt-2 <?php echo $subject_type=="noluck" ? "d-none" : "" ?>">
<div class="row">
<div class="col">
🏆 <span class="total">Total</span>
</div>
<div class="col text-right">
<span class="subject-box-figure" id="subject-<?php echo $subject_type ?>-<?php echo $subject_id ?>-result-total-score"></span><span class="of-100">/100</span>
</div>
</div>
<div class="progress">
<div id="subject-<?php echo $subject_type ?>-<?php echo $subject_id ?>-result-effort-component-bar" class="progress-bar bg-warning" role="progressbar" style="width: 0%" aria-valuenow="0" aria-valuemin="0" aria-valuemax="100"></div>
<div id="subject-<?php echo $subject_type ?>-<?php echo $subject_id ?>-result-luck-component-bar" class="progress-bar bg-success" role="progressbar" style="width: 0%" aria-valuenow="0" aria-valuemin="0" aria-valuemax="100"></div>
</div>
</div>
</div>