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(){ | |
| $("#menu").on("click","a", function (event) { | |
| //отменяем стандартную обработку нажатия по ссылке | |
| event.preventDefault(); | |
| //забираем идентификатор бока с атрибута href | |
| var id = $(this).attr('href'), | |
| //узнаем высоту от начала страницы до блока на который ссылается якорь |
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 | |
| //Принимаем постовые данные | |
| $name=$_POST['name']; | |
| $phone=$_POST['phone']; | |
| //Тут указываем на какой ящик посылать письмо | |
| $to = "79991570874@yandex.ru"; | |
| //Далее идет тема и само сообщение | |
| // Тема письма | |
| $subject = "Заявка с сайта"; | |
| // Сообщение письма |
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
| Включение кеша браузера | |
| Вариант 1 | |
| <ifModule mod_headers.c> | |
| <FilesMatch "\.(js|css|txt)$"> | |
| Header set Cache-Control "max-age=604800" | |
| </FilesMatch> | |
| <FilesMatch "\.(flv|swf|ico|gif|jpg|jpeg|png)$"> | |
| Header set Cache-Control "max-age=2592000" |
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
| .col-lg-8, .col-md-8, .col-sm-8, .col-xs-8 { | |
| position: relative; | |
| min-height: 1px; | |
| padding-right: 15px; | |
| padding-left: 15px; | |
| } | |
| .col-xs-8 { | |
| width: 12.5%; | |
| float: left; |
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="slide_img" style="background-image: url(img/slide_1.jpg);"></div> | |
| .slide_img { | |
| position: absolute; | |
| left: 0; | |
| top: 0; | |
| width: 100%; | |
| height: 100%; | |
| background-size: cover; | |
| } |
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
| .carousel-inner .overlay { | |
| content: ""; | |
| position: absolute; | |
| width: 100%; | |
| height: 100%; | |
| top: 0; | |
| left: 0; | |
| z-index: 1; | |
| background-color: rgba(35,35,35,.67); | |
| } |
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
| JS: | |
| $(".accordeon dd").hide().prev().click(function() { | |
| $(this).parents(".accordeon").find("dd").not(this).slideUp().prev().removeClass("active"); | |
| $(this).next().not(":visible").slideDown().prev().addClass("active"); | |
| }); | |
| CSS: | |
| .accordeon .active { color: red } | |
| HTML: |
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
| <html> | |
| <head> | |
| <script type="text/javascript" src="jquery-1.7.2.min.js"></script> | |
| <style type="text/css"> | |
| body{ | |
| margin:0; | |
| padding:0; | |
| } |
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
| [[!getPage? &elementClass=`modSnippet` &element=`getResources`]] |
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
| Tabs: | |
| [ | |
| {"caption":"Tab Title", "fields": [ | |
| {"field":"title","caption":"Name"}, | |
| {"field":"description","caption":"Description","inputTVtype":"textarea"}, | |
| {"field":"imageTV","caption":"Photo","inputTV":"imageTV"} | |
| ]} | |
| ] | |
| Table: |