Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <div mnt-watch-product="ZAL-BE-DP521I09O-K11">
- <button type="button" onclick="Monotote.show('ZAL-BE-DP521I09O-K11')">View details</button>
- Available: <span></span>
- </div>
- <script>
- // define `_mnt` with a `publisherKey`
- _mnt.onReady = function(){
- Monotote.on("watch-product-availability-state-change", function(info){
- // it contains `element` and `available` properties
- info.element.querySelector('span').innerText = info.available;
- });
- };
- </script>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement