var button;
$('#gp-advantages_01-modal').on('show.bs.modal', function (event) {
button = $(event.relatedTarget) // Button that triggered the modal
button.addClass('active')
var textModal = button.data('text-modal')
var titleModal = button.data('title-modal') // Extract info from data-* attributes
// If necessary, you could initiate an AJAX request here (and then do the updating in a callback).
// Update the modal's content. We'll use jQuery here, but you could use a data binding library or other methods instead.
var modal = $(this)
modal.find('.modal-title').text(titleModal)
modal.find('.modal-body').text(textModal)
});
$('#gp-advantages_01-modal').on('hidden.bs.modal', function (event) {
button.removeClass('active').blur();
});
$('#gp-advantages_01-modal').on('show.bs.modal', function (event) {
var button = $(event.relatedTarget) // Button that triggered the modal
button.addClass('active')
var textModal = button.data('text-modal')
var titleModal = button.data('title-modal') // Extract info from data-* attributes
// If necessary, you could initiate an AJAX request here (and then do the updating in a callback).
// Update the modal's content. We'll use jQuery here, but you could use a data binding library or other methods instead.
var modal = $(this)
modal.find('.modal-title').text(titleModal)
modal.find('.modal-body').text(textModal)
});
$('#gp-advantages_01-modal').on('hidden.bs.modal', function (event) {
var button = $(event.relatedTarget)
button.removeClass('active')
});
$('#gp-advantages_01-modal').on('show.bs.modal', function (event) {
var button = $(event.relatedTarget) // Button that triggered the modal
button.addClass('active')
var textModal = button.data('text-modal')
var titleModal = button.data('title-modal') // Extract info from data-* attributes
// If necessary, you could initiate an AJAX request here (and then do the updating in a callback).
// Update the modal's content. We'll use jQuery here, but you could use a data binding library or other methods instead.
var modal = $(this)
modal.find('.modal-title').text(titleModal)
modal.find('.modal-body').text(textModal)
$('#gp-advantages_01-modal').on('hidden.bs.modal', function (e) {
$(event.relatedTarget).removeClass('active').blur() - ВОТ ЭТА СТРОЧКА НЕ РАБОТАЕТ
})
})
$(document).ready(function() {
$(document).on("click", "[data-triger-class]", function(e){
e.preventDefault();
let target = $(this).data('triger-class');
$('.' + target).toggleClass('active');
});
})
php_value mbstring.internal_encoding UTF-8
php_value default_charset utf-8
php_value opcache.revalidate_freq 0
php_value max_input_vars 10000
php_value default_socket_timeout 60
Options -Indexes
ErrorDocument 404 /404.php
<IfModule mod_php5.c>
php_flag session.use_trans_sid off
#php_flag default_charset UTF-8
#php_value display_errors 1
</IfModule>
<IfModule mod_php7.c>
php_flag session.use_trans_sid off
#php_flag default_charset UTF-8
#php_value display_errors 1
</IfModule>
<IfModule mod_rewrite.c>
Options +FollowSymLinks
RewriteEngine On
RewriteCond %{HTTP_HOST} ^www.тест.рф$ [NC]
RewriteRule ^(.*)$ http://тест.рф/$1 [R=301,L]
#редирект с /index.php
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /index\.php\ HTTP/
RewriteRule ^index\.php$ http://тест.рф/ [R=301,L]
#редирект с внутренних /index.php
RewriteCond %{REQUEST_URI} ^/index.php/(.*)$
RewriteRule (index.php)/(.*) http://тест.рф/$2 [R=permanent,L]
#убирает /index.php в конце алиаса
RewriteRule ^(.*)index\.php$ $1 [R=301,L]
RewriteCond %{REQUEST_URI} ^(.*/[^/\.]+)$
RewriteRule ^(.*)$ http://%{HTTP_HOST}/$1/ [R=301,L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-l
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !/bitrix/urlrewrite.php$
RewriteRule ^(.*)$ /bitrix/urlrewrite.php [L]
RewriteRule .* - [E=REMOTE_USER:%{HTTP:Authorization}]
</IfModule>
<IfModule mod_dir.c>
DirectoryIndex index.php index.html
</IfModule>
<IfModule mod_expires.c>
ExpiresActive on
ExpiresByType image/jpeg "access plus 3 day"
ExpiresByType image/gif "access plus 3 day"
ExpiresByType image/png "access plus 3 day"
ExpiresByType text/css "access plus 3 day"
ExpiresByType application/javascript "access plus 3 day"
</IfModule>
.pipe(cheerio({
run: function ($) {
$('symbol[id^="mono"] [fill]').removeAttr('fill');
$('symbol[id^="mono"] [stroke]').removeAttr('stroke');
$('symbol[id^="mono"] [style]').removeAttr('style');
},
parserOptions: {xmlMode: true}
}))
gulp.task('svgSpriteBuild', function () {
return gulp.src('app/img/icon-svg/*.svg')
// minify svg
.pipe(svgmin({
js2svg: {
pretty: true
}
}))
// remove all fill, style and stroke declarations in out shapes
.pipe(cheerio({
run: function ($) {
$('symbol[id="mono"] [fill]').removeAttr('fill');
$('symbol[id="mono"] [stroke]').removeAttr('stroke');
$('symbol[id="mono"] [style]').removeAttr('style');
},
parserOptions: {xmlMode: true}
}))
// cheerio plugin create unnecessary string '>', so replace it.
.pipe(replace('>', '>'))
// build svg sprite
.pipe(svgSprite({
mode: {
symbol: {
sprite: "../sprite.svg",
render: {
scss: {
dest:'../../../../dev/sass/_sprite-svg.scss',
template: 'dev/sass/templates/_sprite_template.scss'
}
}
}
}
}))
.pipe(gulp.dest('app/img/sprite/'));
});