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) { | |
| $('[data-toggle="popover"],[data-original-title]').each(function () { | |
| //the 'is' for buttons that trigger popups | |
| //the 'has' for icons within a button that triggers a popup | |
| if (!$(this).is(e.target) && $(this).has(e.target).length === 0 && $('.popover').has(e.target).length === 0) { | |
| (($(this).popover('hide').data('bs.popover')||{}).inState||{}).click = false // fix for BS 3.3.6 | |
| } | |
| }); | |
| }); |
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
| <a href="<?php echo home_url(); ?>">Home</a> |
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() { | |
| $('.hover').bind('touchstart touchend', function(e) { | |
| e.preventDefault(); | |
| $(this).toggleClass('hover_effect'); | |
| }); | |
| }); | |
| element:hover, element.hover_effect { | |
| rule:properties; | |
| } |
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
| <button id='submit' class='wpcf7-form-control wpcf7-submit'>SUBMIT <span class='glyphicon glyphicon-menu-right'></span></button> |
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="wrapper"> | |
| <video class="video"> | |
| <source src="http://e14aaeb709f7cde1ae68-a1d0a134a31b545b257b15f8a8ba5726.r70.cf3.rackcdn.com/projects/31432/1427815464209-bf74131a7528d0ea5ce8c0710f530bb5/1280x720.mp4" type="video/mp4" /> | |
| </video> | |
| <div class="playpause"></div> | |
| </div> | |
| $('.video').parent().click(function () { | |
| if($(this).children(".video").get(0).paused){ | |
| $(this).children(".video").get(0).play(); |
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("video").hover(function(event) { | |
| if(event.type === "mouseenter") { | |
| jQuery(this).attr("controls", ""); | |
| } else if(event.type === "mouseleave") { | |
| jQuery(this).removeAttr("controls"); | |
| } | |
| }); |
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('a').on('click touchend', function(e) { | |
| var el = jQuery(this); | |
| var link = el.attr('href'); | |
| window.location = link; | |
| }); | |
| Нужно помнить, что это повлияет на все ссылки <a>, в частности те что открываются в новом окне будут тоже открываться в том же |
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
| /* These are technically the same, but use both */ | |
| overflow-wrap: break-word; | |
| word-wrap: break-word; | |
| -ms-word-break: break-all; | |
| /* This is the dangerous one in WebKit, as it breaks things wherever */ | |
| word-break: break-all; | |
| /* Instead use this non-standard one: */ | |
| word-break: break-word; |
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
| <meta name = "format-detection" content = "telephone=no"> |
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
| /* doesnt work on ios */ | |
| <div class="container"> | |
| <img /> | |
| </div> | |
| .container{ | |
| width: 70px; | |
| height: 70px; | |
| -webkit-display: flex; |