This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <body> | |
| <div id="content"> | |
| <p>lorem 1</p> | |
| <p>lorem 2</p> | |
| <p>lorem 3</p> | |
| <p>lorem 4</p> | |
| <p>lorem 5</p> | |
| </div> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <script> | |
| $('a[href^="#"]').click(function(e) { | |
| e.preventDefault(); | |
| var target = this.hash; | |
| $('html, body').animate({ | |
| scrollTop: $(target).offset().top | |
| }, 500); | |
| return false; | |
| }) | |
| </script> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $(function() { | |
| //item_service--white | |
| $('#menu-header-menu a').click( function (){ | |
| $('#menuButton').toggleClass('is-active'); | |
| $('.headerNavigation').toggleClass('collapsed'); | |
| }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <div class="partners"><?php the_field('partners_title') ?></div> | |
| <?php if(get_field('partners')): ?> | |
| <div class="partners_logo container"> | |
| <?php while(has_sub_field('partners')): ?> | |
| <a href="<?php the_sub_field('partners_link'); ?>"> | |
| <img src="<?php the_sub_field('partners_logo'); ?>" alt=""> | |
| </a> | |
| <?php endwhile; ?> | |
| </div> | |
| <?php endif; ?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $(function () { | |
| $('#menu a').each(function () { | |
| var location = window.location.href; | |
| var link = this.href; | |
| if(location == link) { | |
| $(this).addClass('active'); | |
| } | |
| }); | |
| }); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var price = 28.99; | |
| var discount = 10; | |
| var total = price - (price * (discount / 100)); | |
| if (total > 25) { | |
| freeShipping(); | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| add_filter('nav_menu_css_class', 'my_css_attributes_filter', 100, 1); | |
| add_filter('nav_menu_item_id', 'my_css_attributes_filter', 100, 1); | |
| add_filter('page_css_class', 'my_css_attributes_filter', 100, 1); | |
| function my_css_attributes_filter($var) | |
| { | |
| return is_array($var) ? array_intersect($var, array('current-menu-item')) : ''; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /** | |
| * The template for displaying the front page. | |
| * | |
| * This is the template that displays on the front page only. | |
| * | |
| * @package alessa | |
| */ | |
| get_header(); ?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| window.onload = function() { | |
| let clipLink = document.getElementById('clip_link').onclick = function(event){ | |
| CopyLink(); | |
| return false; | |
| } | |
| let watchBtn = document.querySelector('#watch'); | |
| function showWatchBtn () { |
NewerOlder