A mixin for writing @font-face rules in SASS.
Create a font face rule. Embedded OpenType, WOFF2, WOFF, TrueType, and SVG files are automatically sourced.
+font-face(Samplino, fonts/Samplino)
//Copy Card number to clipboard | |
function handlePaste(e) { | |
(e.originalEvent || e).stopPropagation(); | |
(e.originalEvent || e).preventDefault(); | |
var clipboardData = (e.originalEvent || e).clipboardData.getData('text/plain'); | |
var data = clipboardData.match(/.{4}/g); | |
for (var i= 0; i < data.length; i++) { | |
$('#pan1').val(data[0]); | |
$('#pan2').val(data[1]); | |
$('#pan3').val(data[2]); |
var src = "___library/7-kazan/1/*"; | |
var dst = "_ready"; | |
var gulp = require('gulp'), | |
imagemin = require('gulp-imagemin'), | |
cache = require('gulp-cache'), | |
del = require('del'), | |
imageResize = require('gulp-image-resize'), | |
watermark = require("gulp-watermark"), | |
rename = require("gulp-rename"); |
$('[type="sending"]').on('click', function (e) { | |
e.preventDefault(); | |
var formID = $(this).closest('form'); | |
formID.validate({ | |
rules: { name: 'required', phone: 'required'} | |
}); | |
if (formID.valid()) { | |
$.post('/lib/Mailer/class.phpmailer.php', formID.serialize()); |
$('img.img-svg').each(function () { | |
var $img = $(this); | |
var imgID = $img.attr('id'); | |
var imgClass = $img.attr('class'); | |
var imgURL = $img.attr('src'); | |
$.get(imgURL, function (data) { | |
// Get the SVG tag, ignore the rest | |
var $svg = $(data).find('svg'); | |
// Add replaced image's ID to the new SVG | |
if (typeof imgID !== 'undefined') { |
Tabs: | |
[ | |
{"caption":"Tab Title", "fields": [ | |
{"field":"title","caption":"Name"}, | |
{"field":"description","caption":"Description","inputTVtype":"textarea"}, | |
{"field":"imageTV","caption":"Photo","inputTV":"imageTV"} | |
]} | |
] | |
Table: |
var md = new MobileDetect(window.navigator.userAgent); | |
if(!md.mobile()) { | |
$('.player').mb_YTPlayer({ | |
videoURL: 'https://youtu.be/-nGuAFKg7FQ', | |
containment: 'header', | |
showControls: false, | |
autoPlay: true, | |
mute: true, | |
startAt: 0, | |
opasity: 1 |
var wow = new WOW( | |
{ | |
boxClass: 'wow', | |
animateClass: 'animated', | |
offset: 100, // отступ до элемента, когда будет срабатывать анимация, по умолчанию 0 | |
mobile: false, | |
live: true | |
} | |
); | |
wow.init(); |
//Parallax for Stellar | |
$('.parallax').stellar({ | |
verticalOffset: 300, | |
horizontalScrolling: false, | |
verticalScrolling: true, | |
parallaxBackgrounds: true, | |
offsetParent: true, | |
backgroundRatio: 2 | |
}); |
<?php if ( have_posts() ) : query_posts('p=1'); | |
while (have_posts()) : the_post(); ?> | |
<?php the_title(); ?> | |
<?php the_content(); ?> | |
<?php the_post_thumbnail(array(100, 100)); ?> | |
<? endwhile; endif; wp_reset_query(); ?> |