Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!--Josh Codepen Test-->
- <?php if($top_notification_bar){ ?>
- <div id="yagerbar" class="yagerbar shakebutton">
- <div class="yagerbar-wrap">
- <input type="checkbox" class="yagerbar-toggle">
- <a href="#" class="yagerbar-arrow"></a>
- <div class="yagerbar-content"><?php the_field('top_notification_bar'); ?></div>
- </div>
- </div>
- <!--may need this for edge ^--
- // Internet Explorer 6-11
- var isIE = /*@cc_on!@*/false || !!document.documentMode;
- // Edge 20+
- var isEdge = !isIE && !!window.StyleMedia;
- if(isIE || isEdge){
- document.getElementById("hellobar").style.display = "none";
- }-->
- <?php }else{ ?>
- <?php } ?>
- <!--Josh Codepen end test-->
- <?php if($mobile_text){ ?>
- <script type="text/javascript">
- window.onload = function () {
- document.getElementById('close').onclick = function () {
- document.getElementById('yagerbar2').style.display = "none"
- };
- };
- </script>
- <div id="yagerbar2" class="yagerbar2 shakebutton">
- <div class="yagerbar-wrap">
- <a href="#" id="close">x</a>
- <h2 style="text-align:center;margin-top:30px;color:#fff;"><?php the_field('mobile_h2'); ?></h2>
- <div class="yagerbar-content"><?php the_field('mobile_text'); ?></div>
- </div>
- </div>
- <?php }else{ ?>
- <?php } ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement