-
Notifications
You must be signed in to change notification settings - Fork 768
/
terms&cond.html
257 lines (244 loc) · 8.43 KB
/
terms&cond.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
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
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Terms of Services - BuddyTrail</title>
<link rel="stylesheet" href="terms.css" />
<link
rel="icon"
href="https://img.icons8.com/?size=100&id=11808&format=png&color=000000"
/>
<link
rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css"
/>
<body>
<div class="container">
<!-- Table of contents on the left side -->
<div class="toc">
<h2>Table of Contents</h2>
<ul>
<li><a href="#section1">1. Introduction</a></li>
<li><a href="#section2">2. Book Swapping Process</a></li>
<li><a href="#section3">3. Borrowing Period</a></li>
<li><a href="#section4">4. Late Returns</a></li>
<li><a href="#section5">5. Book Condition</a></li>
<li><a href="#section6">6. Privacy and Data</a></li>
<li><a href="#section7">7. Disputes</a></li>
<li><a href="#section8">8. Changes to Terms</a></li>
</ul>
</div>
<!-- Main content on the right side -->
<div class="main-content">
<h1>Book Swap Terms and Conditions</h1>
<h2 id="section1">1. Introduction</h2>
<p>
Welcome to our book swap community! By participating in book swaps on our platform, you agree to the following terms and conditions.
</p>
<h2 id="section2">2. Book Swapping Process</h2>
<ul>
<li>Users can list books they want to swap.</li>
<li>Other users can express interest in swapping those books.</li>
<li>Once both parties agree, they arrange the swap.</li>
</ul>
<h2 id="section3">3. Borrowing Period</h2>
<p>
Borrowers can keep the swapped book for a specified period (e.g., 2 weeks). Extensions may be allowed if both parties agree.
</p>
<h2 id="section4">4. Late Returns</h2>
<p>If a borrower doesn't return the book on time, the following actions may be taken:</p>
<ul>
<li>First Reminder: A friendly reminder via email or notification.</li>
<li>Second Reminder: A stronger reminder with a potential warning.</li>
<li>Third Reminder: Suspension of book swap privileges.</li>
<li>Further Actions: Legal steps or penalties (if necessary).</li>
</ul>
<h2 id="section5">5. Book Condition</h2>
<p>Borrowers must return books in the same condition they received them. Minor wear and tear are acceptable, but significant damage may result in penalties.</p>
<h2 id="section6">6. Privacy and Data</h2>
<p>We respect your privacy. Read our privacy policy for details on data handling.</p>
<h2 id="section7">7. Disputes</h2>
<p>
In case of disputes, we encourage open communication between users. If unresolved, contact our support team for assistance.
</p>
<h2 id="section8">8. Changes to Terms</h2>
<p>We may update these terms. Check back for any changes.</p>
</div>
</div>
<script>
const toggleButton = document.getElementById('toggle-button');
const tableOfContents = document.getElementById('table-of-contents');
toggleButton.addEventListener('click', () => {
if (tableOfContents.style.display === 'none' || tableOfContents.style.display === '') {
tableOfContents.style.display = 'block'; // Show the table of contents
toggleButton.textContent = 'Hide Table of Contents'; // Update button text
} else {
tableOfContents.style.display = 'none'; // Hide the table of contents
toggleButton.textContent = 'Show Table of Contents'; // Update button text
}
});
</script>
<div>
<button id="translateButton">Translate</button>
</div>
<style>
/* Fixed translate button */
#translateButton {
position: fixed;
/* bottom: 20px; */
top:-15rem;
right: 4.4rem;
z-index: 1000;
width: 53px;
height: 53px;
border-radius: 50%;
border: none;
background:linear-gradient(hwb(357 6% 36%),#d26d6d);
color: white;
text-align: center;
display: inline-block;
font-size: 16px;
cursor: pointer;
display: flex;
justify-content: center;
align-items: center;
font-size: 12px;
line-height: 1;
text-align: center;
white-space: nowrap;
transition: transform 0.3s ease;
margin-top: 75.8vh;
margin-right:opx;
}
#translateButton:hover {
transform: scale(1.2);
}
/* The popup modal */
.popup {
display: none;
position: fixed;
z-index: 1000;
left: 0;
top: 0;
width: 100%;
height: 100%;
overflow: auto;
background-color: rgb(0,0,0);
background-color: rgba(0,0,0,0.4);
}
/* Popup content */
.popup-content {
background:linear-gradient(hwb(357 6% 36%),#d26d6d);
margin-top: 600px;
padding: 20px;
border: 1px solid #888;
width: 300px;
border-radius: 10px;
position: relative;
margin-left: 1160px;
/* margin-right: 0px; */
}
/* Close button */
.close {
color: #073725;
float: right;
font-size: 28px;
font-weight: bold;
cursor: pointer;
}
.close:hover,
.close:focus {
color: black;
text-decoration: none;
}
/* Hide the default Google Translate widget */
.goog-te-banner-frame.skiptranslate, .goog-te-gadget-icon {
display: none !important;
}
body {
top: 0px !important;
}
/* Hide the "Powered by Google" branding */
.goog-logo-link {
display: none !important;
}
.goog-te-gadget {
height: 28px !important;
overflow: hidden;
}
/* Hide Google Translate notifications */
.goog-te-spinner-pos,
.goog-te-spinner,
.goog-te-balloon-frame,
.goog-te-banner-frame,
.goog-te-banner,
.goog-te-balloon {
display: none !important;
}
/* Custom styles for the Google Translate dropdown */
#google_translate_element select {
background: #ffffff;
border: 1px solid #ccc;
color: #d26d6d;
padding: 5px;
font-size: 14px;
border-radius: 5px;
}
/* Hide the Google Translate bar */
body > .skiptranslate {
display: none !important;
}
.goog-te-banner-frame.skiptranslate {
display: none !important;
}
.goog-te-banner-frame {
display: none !important;
}
.goog-te-banner {
display: none !important;
}
</style>
<script>
document.addEventListener('DOMContentLoaded', function() {
// Get the popup
var popup = document.getElementById('translatePopup');
// Get the button that opens the popup
var btn = document.getElementById('translateButton');
// Get the <span> element that closes the popup
var span = document.getElementsByClassName('close')[0];
// When the user clicks the button, open the popup
btn.onclick = function() {
popup.style.display = 'block';
}
// When the user clicks on <span> (x), close the popup
span.onclick = function() {
popup.style.display = 'none';
}
// When the user clicks anywhere outside of the popup, close it
window.onclick = function(event) {
if (event.target == popup) {
popup.style.display = 'none';
}
}
});
</script>
<!-- Popup for Google Translate -->
<div id="translatePopup" class="popup">
<div class="popup-content">
<span class="close">×</span>
<div id="google_translate_element"></div>
</div>
</div>
<script type="text/javascript">
function googleTranslateElementInit() {
new google.translate.TranslateElement({
pageLanguage: 'en',
}, 'google_translate_element');
}
</script>
<script type="text/javascript" src="//translate.google.com/translate_a/element.js?cb=googleTranslateElementInit"></script>
<!-- Your custom JavaScript -->
<script src="script.js"></script>
</body>
</html>