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
| $('.toggle-mnu').on('click', function() { | |
| $('.sandwich').toggleClass('active'); | |
| $('nav ul').slideToggle(); | |
| }); |
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
| $('<span>+</span>').insertAfter('li.menu-item-has-children a'); | |
| $("li.menu-item-has-children").click(function() { | |
| $(this).find('span').text(function(i, text) { | |
| return text === "+" ? "-" : "+"; | |
| }) | |
| }); |
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 ga = __gaTracker; | |
| $('#form_footer input[type="submit"]').on('click', function() { | |
| ga('send', 'event', 'call-back-request', 'click', 'call-back-request'); | |
| }); |
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() { | |
| $('#form').submit(function() { | |
| $.ajax({ | |
| type: 'POST', | |
| url: 'mail.php', | |
| data: $(this).serialize() |
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 | |
| $recepient = "volos88@gmail.com"; | |
| $sitename = "Ajax форма"; | |
| $name = trim($_POST["name"]); | |
| $phone = trim($_POST["phone"]); | |
| $text = trim($_POST["text"]); | |
| $message = "Имя: $name \nТелефон: $phone \nТекст: $text"; |
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> | |
| <head> | |
| <title>Box Shadow</title> | |
| <style> | |
| .box { | |
| height: 150px; | |
| width: 300px; | |
| margin: 20px; |
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
| .crossOut | |
| background: url("data:image/svg+xml;utf-8,<svg xmlns='http://www.w3.org/2000/svg' x='0px' y='0px' width='123px' height='51px' viewBox='0 0 123 51' enable-background='new 0 0 123 51' preserveAspectRatio='none' xml:space='preserve'><line fill='none' x1='123' y1='0' x2='0' y2='51' style='stroke:rgb(255,0,0); stroke-width:2' /></svg>") no-repeat scroll 0 0 / 100% 100% transparent | |
| background-repeat: no-repeat | |
| background-position: center center | |
| background-size: 100% 100%, auto | |
| border: solid #f00 2px | |
| padding: 0 !important |
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
| http://codepen.io/chriscoyier/pen/zDGkw |
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).on('click', function (e) { | |
| if (!$(e.target).hasClass('element') && $(e.target).parents('element').length === 0) { | |
| // do some stuff | |
| } | |
| }); |
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
| aHR0cDovL3d3dy55b3Vwb3JuLmNvbS93YXRjaC8xMDM3NzcyMy9ob3QtZ2VybWFuLXRlZW4tYmFiZS1nZXRzLWZ1Y2tlZC1ob3QvP2Zyb209Y2F0ZWc= | |
| aHR0cHM6Ly93d3cueW91cG9ybi5jb20vd2F0Y2gvMTI1OTM1MDcvdGVlbnktbG92ZXJzLWhpcy1nZi1mdWNrcy1saWtlLWEtY291cnRlc2FuLw== | |
| aHR0cDovL3d3dy55b3Vwb3JuLmNvbS93YXRjaC8xMDE4NjMzMy9lcm90aWNheC1hLXZpZXctdG8tZm9yZXZlci8/ZnJvbT1yZWxhdGVkMyZhbD0yJmZyb21faWQ9MTAxODYzMzMmcG9zPTEx | |
| aHR0cDovL3d3dy5wb3JuaHViLmNvbS92aWV3X3ZpZGVvLnBocD92aWV3a2V5PXBoNTY5NWU4N2M5OTlmZA== | |
| aHR0cDovL3d3dy5wb3JuaHViLmNvbS92aWV3X3ZpZGVvLnBocD92aWV3a2V5PXBoNTY3NWU0MDVhMTE0NQ== | |
| aHR0cDovL3d3dy5yZWR0dWJlLmNvbS81NTA0ODM= | |
| aHR0cDovL3d3dy5wb3JuaHViLmNvbS92aWV3X3ZpZGVvLnBocD92aWV3a2V5PXBoNTU5MmY1OTUxZTU3ZA0KaHR0cDovL3d3dy5yZWR0dWJlLmNvbS8xNjAyNTQ= | |
| anRvbTcwNzFAZ21haWwuY29tDQpkQmx0bm0xMw== |