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
| <link rel='stylesheet' href='<?php bloginfo('template_url') ?>/css/main.css?v=<?php echo time(); ?> ' | |
| type='text/css' media='all'/> | |
| <?php wp_head(); ?> |
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
| ul.front-list li::before { | |
| content: "•"; | |
| color: #63B724; | |
| display: inline-block; | |
| width: 1em; | |
| margin-left: -1em | |
| } |
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
| #somelement { | |
| position: absolute; | |
| left: 50%; | |
| transform: translateX(-50%) | |
| } |
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
| $(document).ready(function () { | |
| var menu = $('#menu-topmenu'); | |
| var hasChildren = menu.find(".menu-item-has-children"); | |
| hasChildren.each(function () { | |
| $(this).find('.sub-menu').hide(); | |
| var aHref = $(this).children('a'); | |
| aHref.html(aHref.html() + ' <i class="fas fa-caret-down"></i>'); | |
| }); |
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
| .product-main { | |
| display: flex; | |
| flex-direction: column; | |
| height: 100%; | |
| justify-content: center; | |
| align-items: center; | |
| } | |
| .container{ | |
| display: flex; |
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
| // Returns a function, that, as long as it continues to be invoked, will not | |
| // be triggered. The function will be called after it stops being called for | |
| // N milliseconds. If `immediate` is passed, trigger the function on the | |
| // leading edge, instead of the trailing. | |
| function debounce(func, wait, immediate) { | |
| var timeout; | |
| return function() { | |
| var context = this, args = arguments; | |
| var later = function() { | |
| timeout = null; |
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 n = 34523453.345 | |
| n.toLocaleString("ru") | |
| "34 523 453.345" |
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
| add_action( 'wp_enqueue_scripts', 'theme_name_scripts' ); | |
| function theme_name_scripts() { | |
| wp_enqueue_style( 'info-style', get_template_directory_uri() . '/info-widget/info.css', array(), time(), 'all' ); | |
| wp_enqueue_script("jquery"); | |
| wp_enqueue_script( 'info-script', get_template_directory_uri() . '/info-widget/script.js', array( 'jquery' ), time(), true ); | |
| } |
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
| @media only screen and (min-width: 768px) and (max-width: 1199px) { | |
| } | |
| @media only screen and (max-width: 767px) { | |
| } | |
| min-width: 320px; |
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
| jQuery(document).ready(function ($) { | |
| }); |
OlderNewer