This file contains 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. Install ffmpeg: | |
brew install ffmpeg --with-vpx --with-vorbis --with-libvorbis --with-vpx --with-vorbis --with-theora --with-libogg --with-libvorbis --with-gpl --with-version3 --with-nonfree --with-postproc --with-libaacplus --with-libass --with-libcelt --with-libfaac --with-libfdk-aac --with-libfreetype --with-libmp3lame --with-libopencore-amrnb --with-libopencore-amrwb --with-libopenjpeg --with-openssl --with-libopus --with-libschroedinger --with-libspeex --with-libtheora --with-libvo-aacenc --with-libvorbis --with-libvpx --with-libx264 --with-libxvid | |
2. Convert: | |
ffmpeg -i input-file.mp4 -c:v libvpx -crf 10 -b:v 1M -c:a libvorbis output-file.webm |
This file contains 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
@supports (-webkit-backdrop-filter: none) or (backdrop-filter: none) { | |
.modal { | |
-webkit-backdrop-filter: blur(10px); | |
backdrop-filter: blur(10px); | |
background-color: rgba(255, 255, 255, 0.5); | |
} | |
} |
This file contains 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 arabic = /[\u0600-\u06FF]/; | |
var string = 'عربية'; // some Arabic string from Wikipedia | |
alert(arabic.test(string)); // displays true |
This file contains 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. Open the CF7 contact form which you want to edit in wordpress Admin area. You set up the [checkbox] snippet which produces the checkbox in the contact form on your website: | |
[checkbox contact_sendmail "Send me a copy of this message"] | |
2. Activate Mail(2) | |
3. Add to functions.php | |
function check_mail_send_contactform($cf7) | |
{ | |
$submission = WPCF7_Submission::get_instance(); |
This file contains 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
input:-webkit-autofill, | |
input:-webkit-autofill:hover, | |
input:-webkit-autofill:focus, | |
textarea:-webkit-autofill, | |
textarea:-webkit-autofill:hover, | |
textarea:-webkit-autofill:focus, | |
select:-webkit-autofill, | |
select:-webkit-autofill:hover, | |
select:-webkit-autofill:focus { | |
border: 1px solid green; |
This file contains 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
/** | |
* Stop an iframe or HTML5 <video> from playing | |
* @param {Element} element The element that contains the video | |
*/ | |
var stopVideo = function ( element ) { | |
element.querySelectorAll('iframe').forEach(function(item) { | |
if ( iframe.contentWindow ) { /* send stop to content */ | |
stopVideo(iframe.contentWindow.document); | |
} | |
else { /* Cross Domain, resetting src is all we can do, and the iframe might fail loading same url */ |
This file contains 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 a = $('.test'); | |
$({scale: 1}).animate({ | |
scale: 2 | |
}, { | |
duration: 2000, | |
step: function(now, fx) { | |
a.css('transform', 'scale(' + now + ')') | |
} | |
}, 'linear'); |
This file contains 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-tap-highlight-color: transparent; |
This file contains 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 parallaxMouse = function(el, coeff, direction) { | |
$(window).bind('mousemove', function(e) { | |
parallaxScroll(e); | |
}); | |
function parallaxScroll(e) { | |
$(el).each(function() { | |
var container = $('body'), | |
containerWidth = container.width(), | |
containerHeight = container.height(), |
NewerOlder