Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -78,7 +78,7 @@ with gr.Blocks() as demo:
|
|
| 78 |
<img src='https://upload.wikimedia.org/wikipedia/commons/thumb/0/09/Shopping_cart_icon.svg/512px-Shopping_cart_icon.svg.png' alt='Cart' style='width: 40px;' onclick='toggleCartPopup()'>
|
| 79 |
</div>
|
| 80 |
<div id='cart-popup' style='display: none; position: fixed; top: 50px; right: 10px; background: white; padding: 20px; border-radius: 5px; box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);'>
|
| 81 |
-
<div id='cart-content'></div>
|
| 82 |
<button onclick='toggleCartPopup()' style='margin-top: 10px; padding: 5px 10px; background-color: #007bff; color: white; border: none; border-radius: 3px;'>Close</button>
|
| 83 |
</div>
|
| 84 |
|
|
@@ -127,6 +127,5 @@ with gr.Blocks() as demo:
|
|
| 127 |
}
|
| 128 |
</script>
|
| 129 |
""")
|
| 130 |
-
|
| 131 |
|
| 132 |
demo.launch()
|
|
|
|
| 78 |
<img src='https://upload.wikimedia.org/wikipedia/commons/thumb/0/09/Shopping_cart_icon.svg/512px-Shopping_cart_icon.svg.png' alt='Cart' style='width: 40px;' onclick='toggleCartPopup()'>
|
| 79 |
</div>
|
| 80 |
<div id='cart-popup' style='display: none; position: fixed; top: 50px; right: 10px; background: white; padding: 20px; border-radius: 5px; box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);'>
|
| 81 |
+
<div id='cart-content'>Your cart is empty.</div>
|
| 82 |
<button onclick='toggleCartPopup()' style='margin-top: 10px; padding: 5px 10px; background-color: #007bff; color: white; border: none; border-radius: 3px;'>Close</button>
|
| 83 |
</div>
|
| 84 |
|
|
|
|
| 127 |
}
|
| 128 |
</script>
|
| 129 |
""")
|
|
|
|
| 130 |
|
| 131 |
demo.launch()
|