Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Optimize the handleAction code #56

Merged
merged 6 commits into from
May 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
{
"liveServer.settings.port": 5501
"liveServer.settings.port": 5501,
"githubPullRequests.ignoredPullRequestBranches": [
"master"
]
}
Binary file modified documentation/assets/images/authorize-your-twitter-account.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 6 additions & 1 deletion documentation/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,12 @@ <h6 id="#step6">Step 6: Claim Your Airdrop</h6>

<h6 id="#step7">Final Step: (Optional) Get Your Promotion Code</h6>
<p>If you have finished all of the missions, you can get your promotion code to recommend to others and automatically get additional $Lotso tokens for rewards when they claim their airdrop.</p>
<img src="assets/images/get-your-promotion-code.jpg" />
<img src="assets/images/get-your-promotion-code.png" />
<br><br><br><br>

<h6 id="#step8">Reward Check Step: (Optional) Check Your Total Reward</h6>
<p>After user claimed the airdrop via the promotion code you've provided, you can check your total reward as a gift in the popup window and reclaim the rewarded airdrop from the step 4.</p>
<img src="assets/images/reward-check-popup.png" />
<br><br><br><br>

<!-- Social Information -->
Expand Down
27 changes: 14 additions & 13 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -98,9 +98,9 @@ <h5 class="modal-title">Block Kill</h5>
<div class="modal-body">
<form>
<div class="info-txt">
<div><strong>Public Chain:</strong> Base</div>
<div><strong>Initial Liquidity Pool:</strong> 1ETH</div>
<div><strong>Risk Warning:</strong> "Prohibited to purchase within the first 40 seconds after market opening——anti-bot measures."</div>
<p><strong>Public Chain:</strong> Base</p>
<p><strong>Initial Liquidity Pool:</strong> 1ETH</p>
<p><strong>Risk Warning:</strong> "Prohibited to purchase within the first 40 seconds after market opening——anti-bot measures."</p>
</div>
</form>
</div>
Expand All @@ -122,7 +122,7 @@ <h5 class="modal-title">PvP Mode</h5>
<div class="modal-body">
<form>
<div class="info-txt">
<div>All users can only buy and cannot sell. Except after 3 days from opening or there are 1000 ETH in the liquidity pool.</div>
<p>All users can only buy and cannot sell. Except after 3 days from opening or there are 1000 ETH in the liquidity pool.</p>
</div>
</form>
</div>
Expand All @@ -144,7 +144,7 @@ <h5 class="modal-title">Buy Limit</h5>
<div class="modal-body">
<form>
<div class="info-txt">
<div>Before trading opens, each address can buy a maximum of 2% of tokens. Once trading is open, this restriction will be lifted in preparation for listing on exchanges.</div>
<p>Before trading opens, each address can buy a maximum of 2% of tokens. Once trading is open, this restriction will be lifted in preparation for listing on exchanges.</p>
</div>
</form>
</div>
Expand All @@ -166,8 +166,8 @@ <h5 class="modal-title">Slippage</h5>
<div class="modal-body">
<form>
<div class="info-txt">
<div><strong>Before trading opens:</strong> No slippage</div>
<div><strong>After trading opens:</strong> 1 buy, 1 sale</div>
<p><strong>Before trading opens:</strong> No slippage</p>
<p><strong>After trading opens:</strong> 1 buy, 1 sale</p>
</div>
</form>
</div>
Expand All @@ -193,8 +193,10 @@ <h5 class="modal-title" id="walletAddressTitle">Notes Before Connecting</h5>
<div id="walletAddressHint2">By clicking "Accept and Continue", you agree to our <a href="#" data-toggle="modal" data-target="#termsModal">terms and conditions</a> and <a href="#" data-toggle="modal" data-target="#privacyModal">privacy policy</a>. You will be prompted to connect your wallet via an external link. Ensure you're using a trusted and secure wallet service.</div>
</div>
</form>
<div id="gotoSection" style="display: none;">
<button type="button" id="checkAirdropButton" class="dropboxx2" data-dismiss="modal">Check Your Airdrop</button>
<div id="claimReward" class="info-txt" style="display: none;">
<p>Your total reward is: <span id="totalAirdropReward"></span></p>
<p><small>Press the following button to claim your reward.</small></p>
<button type="button" id="claimRewardBtn" class="dropboxx2" data-dismiss="modal">Check Your Reward</button>
</div>
</div>
<div class="modal-footer">
Expand Down Expand Up @@ -408,8 +410,7 @@ <h5 class="modal-title">Subscription</h5>
<div class="input-group contact-input mb-3">
<input type="email" name="email" id="subscriptionEmail" class="form-control box-bg" placeholder="Email Address" aria-label="Username">
</div>
<div id="subscriptionEmailError" class="error-message"></div>
<div id="subscriptionSuccess" class="success-message"></div>
<div id="subscriptionInfo"></div>
</div>
<div class="modal-footer mf-2">
<button type="submit" class="dropboxx2">Subscribe</button>
Expand Down Expand Up @@ -614,7 +615,7 @@ <h3>Authorize Your Twitter to Unlock</h3>
<input id="promotion-code-input" type="text" class="form-control box-bg" placeholder="Input promotion code here..." aria-label="Username">
<button type="button" id="promotion-code-check-btn" class="check-btn" onclick="checkPromotionCode(event)"><i class="fa fa-arrow-down" aria-hidden="true"></i></button>
</div>
<div id="promotion-input-error" class="error-message"></div>
<div id="promotionInputMessage"></div>
</form>
</div>
</div>
Expand Down Expand Up @@ -1459,7 +1460,7 @@ <h2>
</script>
<script>
$(document).ready(function () {
$('#checkAirdropButton').click(function() {
$('#claimRewardBtn').click(function() {
// Close the modal (Bootstrap 4 with jQuery)
$('#connectModal').modal('hide');

Expand Down
Loading
Loading