10 ms·
Neat idea. Small HTML oops: the semantic link was trying, but missed, so not middle-clickable: <div class="box ingredient-box clickable nounderline"
by neilv 3y ago
Neat idea. Small HTML oops: the semantic link was trying, but missed, so not middle-clickable:
<div class="box ingredient-box clickable nounderline"
onclick="location.href='/recipe/refried-beans';">
<h3>
<span class="display-block">
<a href='/recipe/refried-beans'></a>
Refried Beans
</span>
</h3>
</div>
A more structural HTML, plus modern CSS styling, would work a little better in modern browsers, and degrade better in lightweight and older browsers.
- jamesbvaughan 3y agoI'd like to better understand the intent with that code. What is it trying to achieve that this does not? <a class="box ingredient-box clickable nounderline" href="/recipe/refried-beans"> <h3> <span class="display-block"> Refried Beans </span> </h3> </div>
- nine_k 3y agoA link that's only clickable by JS looks like an anti-scraping measure :(