Commit c8c0a20b791ce979afecfc1ded2a4daa61ff4bef
1 parent
c7b7260c
rebase popup into home page
Showing
2 changed files
with
32 additions
and
3 deletions
Show diff stats
src/app/frontend/views/index.php
... | ... | @@ -245,9 +245,6 @@ $page_title = isset( $page_title ) && !empty( $page_title ) ? $page_title : ''; |
245 | 245 | </div> |
246 | 246 | </div> |
247 | 247 | |
248 | -<div class="open-delivery-modal hidden_modal"> | |
249 | - <div><img src="/images/popup_full.png" class="popup_full"><img src="/images/popup_open.png" class="popup_mobile"><span class="modal_close"></span></div> | |
250 | -</div> | |
251 | 248 | <div class="delivery-form-par"> |
252 | 249 | <div class="close-white"></div> |
253 | 250 | <div class="popup-main-delivery"> | ... | ... |
src/app/frontend/views/page/index.php
... | ... | @@ -321,6 +321,38 @@ js, fjs); |
321 | 321 | |
322 | 322 | </div> |
323 | 323 | |
324 | +<!-- popup button --> | |
325 | +<div class="open-delivery-modal hidden_modal"> | |
326 | + <div><img src="/images/popup_full.png" class="popup_full"><img src="/images/popup_open.png" class="popup_mobile"><span class="modal_close"></span></div> | |
327 | +</div> | |
328 | +<!-- popup button --> | |
329 | + | |
330 | +<!-- popup js --> | |
331 | +<script> | |
332 | + $(document).ready(function(){ | |
333 | + setTimeout(function(){$(".open-delivery-modal").show();},1000); | |
334 | + }); | |
335 | + $(".open-delivery-modal div img").click(function(){ | |
336 | + $(".delivery-form-par").show(); | |
337 | + $(".delivery-form-par").animate({opacity: "1"}, 500, function() {}); | |
338 | + $(".delivery-form-par .popup-main-delivery").animate({opacity: "1",top: "15%"}, 300, function() {}); | |
339 | + }); | |
340 | + $(".delivery-form-par .close-white").click(function(){ | |
341 | + $(".delivery-form-par .popup-main-delivery").animate({opacity: "0",top: "-50%"}, 300, function() {}); | |
342 | + $(".delivery-form-par").animate({opacity: "0"}, 500, function() {}); | |
343 | + setTimeout(function(){$(".delivery-form-par").hide();}, 600); | |
344 | + }); | |
345 | + $(".delivery-form-par .close-popup").click(function(){ | |
346 | + $(".delivery-form-par .popup-main-delivery").animate({opacity: "0",top: "-50%"}, 300, function() {}); | |
347 | + $(".delivery-form-par").animate({opacity: "0"}, 500, function() {}); | |
348 | + setTimeout(function(){$(".delivery-form-par").hide();}, 600); | |
349 | + }); | |
350 | + $(".modal_close").click(function(){ | |
351 | + $(".open-delivery-modal").hide(); | |
352 | + }); | |
353 | +</script> | |
354 | +<!-- popup button --> | |
355 | + | |
324 | 356 | <script> |
325 | 357 | $(document).ready(function() { |
326 | 358 | <?php foreach($active_sales as $k => $sale): ?> | ... | ... |