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
| # ~/.gitconfig | |
| # Add this to your global git configuration file | |
| # Change phpstorm to webstorm, if you use that. | |
| # Diff and merge tool changes | |
| # Run `git difftool <directory/file>...` or `git mergetool <directory/file>...` | |
| [merge] | |
| tool = phpstorm | |
| [diff] | |
| tool = phpstorm |
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
| # ~/.gitconfig | |
| # Add this to your global git configuration file | |
| # Change webstorm to phpstorm, if you use that. | |
| # Diff and merge tool changes | |
| # Run `git difftool <directory/file>...` or `git mergetool <directory/file>...` | |
| [merge] | |
| tool = phpstorm | |
| [diff] | |
| tool = phpstorm |
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
| //Logging | |
| const log = val => console.log(val), | |
| error = message => console.error(message), | |
| type = val => log(typeof val) | |
| //Math | |
| let random = (min, max) => Math.random() * (max - min + 1) + min, | |
| floor = val => Math.floor(val), | |
| abs = val => Math.abs(val) |
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
| <!DOCTYPE HTML> | |
| <html prefix="og: http://ogp.me/ns#"> | |
| <head> | |
| <title>[[*title]]</title> | |
| <meta charset="utf-8" /> | |
| <base href="[[++site_url]]" /> | |
| <meta name="viewport" content="width=device-width, initial-scale=1" /> | |
| <meta name="description" content="[[*description]]" /> | |
| <meta name="keywords" content="[[*keywords]]" /> |
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
| /*Webkit scroll*/ | |
| html::-webkit-scrollbar { | |
| width: 10px; | |
| } | |
| html::-webkit-scrollbar-thumb { | |
| border-width: 1px 1px 1px 2px; | |
| border-color: #aaa; | |
| background-color: #2C2423; | |
| } | |
| html::-webkit-scrollbar-thumb:hover { |
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 if ($this->params->get('show_description', 1) || $this->params->def('show_description_image', 1)) : ?> | |
| <div class="category-desc clearfix"> | |
| <?php if ($this->params->get('show_description_image') && $this->category->getParams()->get('image')) : ?> | |
| <img src="<?php echo $this->category->getParams()->get('image'); ?>" alt="<?php echo htmlspecialchars($this->category->getParams()->get('image_alt')); ?>"/> | |
| <?php endif; ?> | |
| <?php if ($this->params->get('show_description') && $this->category->description) : ?> | |
| <?php | |
| $cat_desc = JHtml::_('content.prepare', $this->category->description, '', 'com_content.category'); | |
| $cat_desc_explode = explode('<hr id="category-desc-readmore" />', $cat_desc); ?> | |
| <div class="category-desc1"> |
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
| /* (320x480) iPhone (Original, 3G, 3GS) */ | |
| @media only screen and (min-device-width: 320px) and (max-device-width: 480px) { | |
| /* insert styles here */ | |
| } | |
| /* (320x480) Smartphone, Portrait */ | |
| @media only screen and (device-width: 320px) and (orientation: portrait) { | |
| /* insert styles here */ | |
| } | |
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> | |
| var textBlock = $(".fs_text_block"); | |
| /*Перебераем все блоки и проверяем кол-во символов в блоке, если оно меньше 1000 скрываем спойлер*/ | |
| $(textBlock).each(function() { | |
| var lengthTextBlock = $(this).text().length; | |
| if (lengthTextBlock < 1000) { | |
| $(this).parent().addClass( "low-length" ); | |
| } | |
| }) | |
| /* Клик */ |
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
| history.pushState("", document.title, window.location.pathname); |
NewerOlder