pherchristoph
Forum Replies Created
-
Forum: Plugins
In reply to: [RestroPress - Online Food Ordering System] Fooditem addon codeHere you go: https://we.tl/t-HrhafblPiD
Forum: Plugins
In reply to: [RestroPress - Online Food Ordering System] Fooditem description codeAllright it’s the same problem again with the fooditem addons. Is it also possible to get code in there?
Regards
Forum: Plugins
In reply to: [RestroPress - Online Food Ordering System] Fooditem description codeThank you! That is exactly what I needed 🙂
Forum: Plugins
In reply to: [RestroPress - Online Food Ordering System] Fooditem description codeSure – its just a prebuild, so you have to click on “take away” for the plugin
Forum: Plugins
In reply to: [RestroPress - Online Food Ordering System] Fooditem description codeThank you Bibhu,
but it’s not needed for the Food Popup – there my code is working. Its the shown description at the food list.
You can see a screenshot of List and Popup here:
ScreenshotHope there is a solutions to get it work
I don’t know why…but just put dismiss first – it runs!
If anyone like to use this you need to give the <body>-tag an ID.
in my example:
<body id="body">in css:
.modal-open { overflow: hidden !important; z-index: 1 !important; }Put this script in any Box – it will work for all of your boxes!
<script> Boxzilla.on('box.dismiss', function(box) { var element = document.getElementById("body"); element.classList.remove("modal-open"); }); Boxzilla.on('box.show', function(box) { var element = document.getElementById("body"); element.classList.add("modal-open"); }); </script>- This reply was modified 8 years, 3 months ago by pherchristoph.
Alright I’ve got the first part:
<script> Boxzilla.on('box.show', function(box) { var element = document.getElementById("body"); element.classList.add("modal-open"); }); </script>but if i do:
<script> Boxzilla.on('box.show', function(box) { var element = document.getElementById("body"); element.classList.add("modal-open"); }); Boxzilla.on('box.dismiss', function(box) { var element = document.getElementById("body"); element.classList.remove("modal-open"); }); </script>It’s not gonna remove the class…
Page is not ready yet..but this is the Test Version. I’ve put the script just into the Boxzilla thats shown if you use the Menu-Button “Links”.
It’s still scrolling. Tried this code inside a Box, inside the <head> of the page and inside the main script of boxzilla…
tried it with safari and firefox.
Thank you for help so far!
- This reply was modified 8 years, 3 months ago by pherchristoph.
I’m not good with script – so i thought this should work when add it into a box…but its not
<script>
Boxzilla.on(‘box.show’, function(box) {
$(‘body’).css(‘overflow’, ‘hidden’);
});
</script>Forum: Plugins
In reply to: [Onclick show popup] Without UL / LIDid it!
just changed the ul to span.