Skip to content

Commit feb0264

Browse files
committedDec 13, 2023
add examples
1 parent 167d2bf commit feb0264

File tree

2 files changed

+58
-0
lines changed

2 files changed

+58
-0
lines changed
 

‎__pycache__/app.cpython-310.pyc

272 Bytes
Binary file not shown.

‎templates/index.html

+58
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,38 @@
7171
0% { transform: rotate(0deg); }
7272
100% { transform: rotate(360deg); }
7373
}
74+
75+
.example-searches {
76+
margin-top: 40px;
77+
text-align: center;
78+
}
79+
80+
.example-searches ul {
81+
list-style: none;
82+
padding: 0;
83+
}
84+
85+
.example-searches li {
86+
margin-bottom: 8px;
87+
}
88+
89+
.example-searches button {
90+
margin-left: 10px;
91+
padding: 4px 8px;
92+
font-size: 0.6em;
93+
}
94+
95+
.footer {
96+
text-align: center;
97+
margin-top: 30px;
98+
margin-bottom: 1px;
99+
font-size: 0.6em;
100+
}
101+
102+
.footer .heart {
103+
color: #d29656;
104+
}
105+
74106
</style>
75107
</head>
76108
<!-- Google tag (gtag.js) -->
@@ -126,7 +158,33 @@ <h4>Powered by <a href="https://envio.dev" target="_blank">Hypersync</a></h4>
126158
<input type="submit" value="Submit" />
127159
</form>
128160
<div class="loader" id="loader"></div>
161+
<div class="example-searches">
162+
<h4>Example Searches:</h4>
163+
<ul>
164+
<li>
165+
<span>Blast L2 Bridge - Event Density</span>
166+
<button onclick="prefillForm('0x5F6AE08B8AeB7078cf2F96AFb089D7c9f51DA47d', 'event', 'eth')">Fill</button>
167+
</li>
168+
<li>
169+
<span>OP Token - Transaction Density</span>
170+
<button onclick="prefillForm('0x4200000000000000000000000000000000000042', 'transaction', 'optimism')">Fill</button>
171+
</li>
172+
<li>
173+
<span>Fren Pet - Event Density</span>
174+
<button onclick="prefillForm('0x0e22B5f3E11944578b37ED04F5312Dfc246f443C', 'event', 'base')">Fill</button>
175+
</li>
176+
</ul>
177+
</div>
178+
<!-- <div class="footer">
179+
<p>Made with <span class="heart">❤️</span> by envio</p>
180+
<p><a href="https://discord.gg/zNZYBNtbZV" target="_blank">Have ideas? Let's Chat</a></p>
181+
</div> -->
129182
<script>
183+
function prefillForm(address, type, network) {
184+
document.getElementById('address').value = address;
185+
document.getElementById('type').value = type;
186+
document.getElementById('network').value = network;
187+
}
130188
document.querySelector('form').onsubmit = function() {
131189
document.getElementById('loader').style.display = 'block';
132190
};

0 commit comments

Comments
 (0)
Please sign in to comment.