Skip to content

Commit

Permalink
fix: opReturn validation
Browse files Browse the repository at this point in the history
  • Loading branch information
lissavxo committed Jun 4, 2024
1 parent a9749ce commit 445f519
Show file tree
Hide file tree
Showing 13 changed files with 177 additions and 406 deletions.
2 changes: 1 addition & 1 deletion docs/_sidebar.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
- [text](/?id=text)
- [hover-text](/?id=hover-text)
- [goal-amount](/?id=goal-amount)
- [editable](/?id=editable)
- [can-edit](/?id=can-edit)
- [theme](/?id=theme)
- [animation](/?id=animation)
- [success-text](/?id=success-text)
Expand Down
2 changes: 1 addition & 1 deletion docs/zh-cn/_sidebar.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
- [text](/zh-cn/?id=text)
- [hover-text](/zh-cn/?id=hover-text)
- [goal-amount](/zh-cn/?id=goal-amount)
- [editable](/zh-cn/?id=editable)
- [can-edit](/zh-cn/?id=can-edit)
- [theme](/zh-cn/?id=theme)
- [animation](/zh-cn/?id=animation)
- [success-text](/zh-cn/?id=success-text)
Expand Down
2 changes: 1 addition & 1 deletion docs/zh-tw/_sidebar.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
- [text](/zh-tw/?id=text)
- [hover-text](/zh-tw/?id=hover-text)
- [goal-amount](/zh-tw/?id=goal-amount)
- [editable](/zh-tw/?id=editable)
- [can-edit](/zh-tw/?id=can-edit)
- [theme](/zh-tw/?id=theme)
- [animation](/zh-tw/?id=animation)
- [success-text](/zh-tw/?id=success-text)
Expand Down
79 changes: 66 additions & 13 deletions paybutton/dev/demo/index.html
Original file line number Diff line number Diff line change
@@ -1,25 +1,79 @@
<!DOCTYPE html>
<html lang="en">
<html [object Object]>

<head>
<meta charset="utf-8" />
<title>Paybutton Bundle Test</title>
<style>
body {
padding: auto;
font-family: Arial, sans-serif;
}

.buttons-section {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
gap: 20px;
width: 100%;
padding: 5px;
align-items: center;
}

.buttons-section div {
width: 100%;
}

.widgets-section {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
gap: 20px;
width: 100%;
padding: 10px;
align-items: center;
}

.btn {
display: flex;
margin: 10px;
}

.btn button {
text-transform: none;
color: #fff;
/* Bright white text color for better contrast */
border: 1px solid rgb(58, 48, 166);
/* Vibrant purple border */
margin: auto !important;
padding: 0.618em 1.618em !important;
font-size: 1em !important;
min-width: 14em !important;
background: #518efe;
transition: background-position 0.8s ease 0s, color 0.15s ease 0s,
border-color 0.4s ease 0s;
/* Smooth transition for background and border color */
border-radius: 10px !important;
}

.btn button:hover {
cursor: pointer !important;
background: #518efeb7;
color: #101563;
/* Change text color on hover for a cool effect */
}

.btn.purple button {
border: 2px solid #7a33ff;
/* Vibrant purple border */
background: #9a55ff;
}

.btn.purple button:hover {
background: #ebe0fb;
color: #5805f3;/
}
</style>
<link rel="stylesheet" type="text/css" href="style.css">
</head>

<body>
<div class="navbar">
<a href="./index.html#buttons-section">Buttons</a>
<a href="./index.html#widgets-section">Widgets</a>
<a href="./paybutton-generator.html">Generator</a>
</div>

<script src="./paybutton.js"></script>

<div class="buttons-section">
Expand Down Expand Up @@ -77,7 +131,7 @@
</div>
</div>
<br />
<div class="widgets-section" id="widgets-section">
<div class="widgets-section">
<div>
<div id="the_widget" class="paybutton-widget" to="ecash:qrmm7edwuj4jf7tnvygjyztyy0a0qxvl7quss2vxek"
goal-amount="500000" hover-text="BLARG" amount="1000.69" success-text="WOW!" text="Purchase"
Expand Down Expand Up @@ -106,15 +160,14 @@
<br />
</div>
</div>

<script>
function mySuccessFunction(tx) {
console.log({ tx })
console.log(tx)
console.log('Success')
}

function myTransactionFunction(tx) {
console.log({ tx })
console.log(tx)
console.log('Transaction')
}

Expand Down
193 changes: 0 additions & 193 deletions paybutton/dev/demo/paybutton-generator.html

This file was deleted.

Loading

0 comments on commit 445f519

Please sign in to comment.