Skip to content

Commit

Permalink
solved Dublicate Book Exchange Hub #2101
Browse files Browse the repository at this point in the history
  • Loading branch information
Aman91667 committed Jun 23, 2024
1 parent ebe5e02 commit 2dbdaa6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 37 deletions.
5 changes: 1 addition & 4 deletions assets/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,7 @@ body {
height: 750px;
gap: 2rem;
}
/* container 1 */
h2.h2.section-title.has-underline {
margin-top: 420px;
}


body > main > article > section.section.preview > div > p:nth-child(4){
margin-top:100px;
Expand Down
35 changes: 2 additions & 33 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -1492,40 +1492,9 @@ <h2 class="h2 section-title has-underline">
<button type="button" class="btn btn-primary" id="connectReaderBtn" disabled onclick="validateAndConnect()">Connect with a Reader</button>
</div>

<p class="section-text booktext"style="color: black;">
Connect with fellow readers in our Book Exchange Hub. Sell your old books at half price and give your
favorite reads a new home. Fill out the form below to get started!
</p>

<div class="exchange-form">

<div class="form-fields">
<div class="form-fields">
<label class="form-label" for="bookTitle">Book Title:</label>
<input type="text" id="bookTitle" name="bookTitle" placeholder="Enter the title of your book" required
class="input-field">

<label class="formform-label" for="bookAuthor">Author:</label>
<input type="text" id="bookAuthor" name="bookAuthor" placeholder="Enter the author's name" required
class="input-field">

<label class="form-label" for="yourPrice">Your Price (50% Off):</label>
<div class="currency-container">
<label class="currency-label" for="currency">Currency: </label>
<select id="currency" name="currency" class="input-field currency-select">

<option value="INR">INR</option>
<option value="USD">USD</option>
<option value="EUR">EUR</option>
<option value="GBP">GBP</option>
</select>
</div>
<input type="number" min="0" id="yourPrice" name="yourPrice"
placeholder="Enter your desired selling price" required class="input-field">
=======

<script>
function validateBookTitle() {
const bookTitleInput = document.getElementById('bookTitle');
function validateBookTitle() {leInput = document.getElementById('bookTitle');
const bookTitleValue = bookTitleInput.value.trim();
let isValid = true;

Expand Down

0 comments on commit 2dbdaa6

Please sign in to comment.