4 ms·
I like how they set the price: $(function() { var price = localStorage.getItem('price'); if(!price) { price = Math.ceil(Math.random() * 3);
by misframer 12y ago
I like how they set the price:
$(function() {
var price = localStorage.getItem('price');
if(!price) {
price = Math.ceil(Math.random() * 3);
localStorage.setItem('price', price);
}
$('#price').html(price);
});
- akosednar 12y agoAnd there seems to be no validation of the localStorage. I could set it to 0.000001 for example and it would work.
- paukiatwee 12y agoThis is interesting. Any one know what is the reason to use "random" pricing? Especially only diff 1-2 dollars.
- chadkruse 12y agoWaffle user here...they're just doing some market/price testing. They don't actually charge a fee yet.