File: /var/www/vhosts/uyarreklam.com.tr/httpdocs/scripts.js.tar
var/www/vhosts/uyarreklam.com.tr/httpdocs/wp-content/themes/vadimarketv4/js/scripts.js 0000644 00000022017 15154176103 0025345 0 ustar 00 jQuery(document).ready(function(){
jQuery('ul.sf-menu').superfish({
animation: {opacity:'show',height:'show'},
speed: 'slow',
});
});
jQuery(function ($) {
$(document).on("click","a.mobnav_bar",function(){
$(".mobil_menu").addClass("acilsin");
return false;
});
$(document).on("click","a.mobnav_close",function(){
$(".mobil_menu").removeClass("acilsin");
return false;
});
$(function () {
var children = $('.mobilmenu li a').filter(function () { return $(this).nextAll().length > 0 })
$('<i class="toChild icon-down-open-mini"></i>').insertAfter(children)
$('.mobilmenu .toChild').click(function (e) {
$(this).next().addClass("mmenuh").slideToggle(300);
return false;
});
})
});
$(document).ready(function(){
$(document).on("click",".sepetim a.link",function(){
$(".sepetoverlay").addClass("active");
$(".sepet-panel").addClass("active");return false
});
$(document).on("click",".sepetoverlay",function(){
$(".sepetoverlay").removeClass("active");
$(".sepet-panel").removeClass("active");return false
});
});
$('.anaslide').slick({
infinite: true,
autoplay: true,
autoplaySpeed: 5000,
fade: false,
slidesToShow: 1,
slidesToScroll: 1,
prevArrow: '<i class="icon-left-open-big"></i>',
nextArrow: '<i class="icon-right-open-big"></i>',
responsive: [
{
breakpoint: 1024,
settings: {
dots: false,
arrows:true
}
},
{
breakpoint: 600,
settings: {
dots: false,
arrows:true
}
},
{
breakpoint: 480,
settings: {
dots: true,
arrows:false
}
}
]
});
$('.anaslide-nav > div').click(function() {
$('.anaslide').slick('slickGoTo',$(this).index());
});
(function($) {
'use strict';
$( '.indirim-geri-sayim, .geri-sayim-single' ).each( function() {
var indirim_gerisayim_text = tv_options.indirim_gerisayim_text;
var indirim_zaman_farki = $(this).children('.indirim-zaman-farki').text();
var gerisay_output = $(this).children('.geri-sayim');
var target_date = ( new Date().getTime() ) + ( indirim_zaman_farki * 1000 );
var gun, saat, dakika, saniye;
setInterval( function () {
var current_date = new Date().getTime();
var saniye_left = (target_date - current_date) / 1000;
gun = parseInt(saniye_left / 86400);
saniye_left = saniye_left % 86400;
saat = parseInt(saniye_left / 3600);
saniye_left = saniye_left % 3600;
dakika = parseInt(saniye_left / 60);
saniye = parseInt(saniye_left % 60);
gerisay_output.html( '<div data-value="' + gun + '" class="gun"><span class="value">' + gun + '</span><span>' + indirim_gerisayim_text.gun_text + '</span></div><div class="saat"><span class="value">' + saat + '</span><span>' + indirim_gerisayim_text.saat_text + '</span></div><div class="dakika"><span class="value">'
+ dakika + '</span><span>' + indirim_gerisayim_text.dakika_text + '</span></div><div class="saniye"><span class="value">' + saniye + '</span><span>' + indirim_gerisayim_text.saniye_text + '</span></div>' );
}, 1000 );
});
})(jQuery);
$(document).ready(function() {
$('.tab a:not(:first)').addClass('inactive');
$('.tabcontent').hide();
$('.tabcontent:first').show();
$('.tab a').click(function(){
var t = $(this).attr('id');
if($(this).hasClass('inactive')){
$('.tab a').addClass('inactive');
$(this).removeClass('inactive');
$('.tabcontent').hide();
$('#'+ t + 'C').fadeIn('slow');
}
});
});
$(document).ready(function(){
$('.urunler-tabs .tabcontent.wslide').slick({
dots: false,
infinite: true,
autoplay: true,
autoplaySpeed: 5000,
speed: 300,
slidesToShow: 5,
slidesToScroll: 5,
prevArrow: '<i class="icon-left-open-big"></i>',
nextArrow: '<i class="icon-right-open-big"></i>',
responsive: [
{
breakpoint: 1024,
settings: {
slidesToShow: 5,
slidesToScroll: 5,
}
},
{
breakpoint: 768,
settings: {
slidesToShow: 2,
slidesToScroll: 2,
arrows:false
}
},
{
breakpoint: 600,
settings: {
slidesToShow: 2,
slidesToScroll: 2,
arrows:false
}
},
{
breakpoint: 480,
settings: {
slidesToShow: 2,
slidesToScroll: 2,
arrows:false
}
}
]
});
$('a.tablinks').click(function() {
$('.urunler-tabs .tabcontent.wslide').slick('setPosition');
});
});
if ($('#yukari').length) {
var scrollTrigger = 400,
backToTop = function () {
var scrollTop = $(window).scrollTop();
if (scrollTop > scrollTrigger) {
$('#yukari').addClass('show');
} else {
$('#yukari').removeClass('show');
}
};
backToTop();
$(window).on('scroll', function () {
backToTop();
});
$('#yukari').on('click', function (e) {
e.preventDefault();
$('html,body').animate({
scrollTop: 0
}, 700);
});
}
$(document).on("click",".girisyap",function(){
$(".girisyap").removeClass("pasif").addClass("aktif");
$(".uyeol").removeClass("aktif").addClass("pasif");
$(".girisyapform").removeClass("gizle").addClass("goster");
$(".kayitolform").removeClass("goster").addClass("gizle");
return false;
});
$(document).on("click",".uyeol",function(){
$(".uyeol").removeClass("pasif").addClass("aktif");
$(".girisyap").removeClass("aktif").addClass("pasif");
$(".kayitolform").removeClass("gizle").addClass("goster");
$(".girisyapform").removeClass("goster").addClass("gizle");
return false;
});
$(document).ready(function () {
if(window.location.hash) {
if (window.location.hash == "#login") {
$(".girisyap").removeClass("pasif").addClass("aktif");
$(".uyeol").removeClass("aktif").addClass("pasif");
$(".girisyapform").removeClass("gizle").addClass("goster");
$(".kayitolform").removeClass("goster").addClass("gizle");
} else {
$(".uyeol").removeClass("pasif").addClass("aktif");
$(".girisyap").removeClass("aktif").addClass("pasif");
$(".kayitolform").removeClass("gizle").addClass("goster");
$(".girisyapform").removeClass("goster").addClass("gizle");
}
}
});
$(document).ready(function($){
$('.quantity').on('click', '.arttir', function(e) {
$input = $(this).prev('input.qty');
var val = parseInt($input.val());
$input.val( val+1 ).change();
});
$('.quantity').on('click', '.azalt',
function(e) {
$input = $(this).next('input.qty');
var val = parseInt($input.val());
if (val > 0) {
$input.val( val-1 ).change();
}
});
});
$(document).ajaxComplete(function(){
$('.quantity').off('click', '.arttir').on('click', '.arttir', function(e) {
$input = $(this).prev('input.qty');
var val = parseInt($input.val());
$input.val( val+1 ).change();
});
$('.quantity').off('click', '.azalt').on('click', '.azalt',
function(e) {
$input = $(this).next('input.qty');
var val = parseInt($input.val());
if (val > 1) {
$input.val( val-1 ).change();
}
});
});
$(document).on("click","a.paylas-ac",function(){
$(".paylas-wrap").removeClass("gizle").addClass("goster");
return false;
});
$(document).on("click","a.paylas-kapat",function(){
$(".paylas-wrap").removeClass("goster").addClass("gizle");
return false;
});
$('.urun-paylas').on('click','a', function(e){
e.preventDefault();
var data = $(this).attr('data-href');
window.open(data, 'Paylaş', 'height=350,width=700');
});
$(document).ready(function(){
$(".benzer-urunler.wslide").slick({
dots: false,
infinite: true,
autoplay: true,
autoplaySpeed: 5000,
speed: 300,
slidesToShow: 5,
slidesToScroll: 5,
prevArrow: '<i class="icon-left-open-big"></i>',
nextArrow: '<i class="icon-right-open-big"></i>',
responsive: [
{
breakpoint: 1024,
settings: {
slidesToShow: 5,
slidesToScroll: 5,
}
},
{
breakpoint: 600,
settings: {
slidesToShow: 2,
slidesToScroll: 2,
arrows:false
}
},
{
breakpoint: 480,
settings: {
slidesToShow: 2,
slidesToScroll: 2,
arrows:false
}
}
]
});
});
if ($('.mobil_add_cart').length) {
var scrollTrigger = 800,
backToTop = function () {
var scrollTop = $(window).scrollTop();
if (scrollTop > scrollTrigger) {
$('.mobil_add_cart').addClass('fix');
} else {
$('.mobil_add_cart').removeClass('fix');
}
};
backToTop();
$(window).on('scroll', function () {
backToTop();
});
}
$(document).ready(function() {
$('.popup-video').magnificPopup({
disableOn: 700,
type: 'iframe',
mainClass: 'mfp-fade',
removalDelay: 160,
preloader: false,
fixedContentPos: false
});
}); var/www/vhosts/uyarreklam.com.tr/httpdocs/wp-content/plugins/contact-form-7/admin/js/scripts.js 0000644 00000020403 15154252740 0026767 0 ustar 00 ( function( $ ) {
'use strict';
if ( typeof wpcf7 === 'undefined' || wpcf7 === null ) {
return;
}
$( function() {
var welcomePanel = $( '#wpcf7-welcome-panel' );
var updateWelcomePanel;
updateWelcomePanel = function( visible ) {
$.post( ajaxurl, {
action: 'wpcf7-update-welcome-panel',
visible: visible,
welcomepanelnonce: $( '#welcomepanelnonce' ).val()
} );
};
$( 'a.welcome-panel-close', welcomePanel ).click( function( event ) {
event.preventDefault();
welcomePanel.addClass( 'hidden' );
updateWelcomePanel( 0 );
$( '#wpcf7-welcome-panel-show' ).prop( 'checked', false );
} );
$( '#wpcf7-welcome-panel-show' ).click( function( event ) {
if ( this.checked ) {
welcomePanel.removeClass( 'hidden' );
updateWelcomePanel( 1 );
} else {
welcomePanel.addClass( 'hidden' );
updateWelcomePanel( 0 );
}
} );
$( '#contact-form-editor' ).tabs( {
active: wpcf7.activeTab,
activate: function( event, ui ) {
$( '#active-tab' ).val( ui.newTab.index() );
}
} );
$( '#contact-form-editor-tabs' ).focusin( function( event ) {
$( '#contact-form-editor .keyboard-interaction' ).css(
'visibility', 'visible' );
} ).focusout( function( event ) {
$( '#contact-form-editor .keyboard-interaction' ).css(
'visibility', 'hidden' );
} );
wpcf7.toggleMail2( 'input:checkbox.toggle-form-table' );
$( 'input:checkbox.toggle-form-table' ).click( function( event ) {
wpcf7.toggleMail2( this );
} );
if ( '' === $( '#title' ).val() ) {
$( '#title' ).focus();
}
wpcf7.titleHint();
$( '.contact-form-editor-box-mail span.mailtag' ).click( function( event ) {
var range = document.createRange();
range.selectNodeContents( this );
window.getSelection().addRange( range );
} );
wpcf7.updateConfigErrors();
$( '[data-config-field]' ).change( function() {
var postId = $( '#post_ID' ).val();
if ( ! postId || -1 == postId ) {
return;
}
var data = [];
$( this ).closest( 'form' ).find( '[data-config-field]' ).each( function() {
var val = $( this ).val();
if ( $( this ).is( '[type=checkbox]' ) ) {
val = $( this ).is( ':checked' ) ? 1 : 0;
}
data.push( {
'name': $( this ).attr( 'name' ).replace( /^wpcf7-/, '' ).replace( /-/g, '_' ),
'value': val
} );
} );
data.push( { 'name': 'context', 'value': 'dry-run' } );
$.ajax( {
method: 'POST',
url: wpcf7.apiSettings.getRoute( '/contact-forms/' + postId ),
beforeSend: function( xhr ) {
xhr.setRequestHeader( 'X-WP-Nonce', wpcf7.apiSettings.nonce );
},
data: data
} ).done( function( response ) {
wpcf7.configValidator.errors = response.config_errors;
wpcf7.updateConfigErrors();
} );
} );
$( window ).on( 'beforeunload', function( event ) {
var changed = false;
$( '#wpcf7-admin-form-element :input[type!="hidden"]' ).each( function() {
if ( $( this ).is( ':checkbox, :radio' ) ) {
if ( this.defaultChecked != $( this ).is( ':checked' ) ) {
changed = true;
}
} else if ( $( this ).is( 'select' ) ) {
$( this ).find( 'option' ).each( function() {
if ( this.defaultSelected != $( this ).is( ':selected' ) ) {
changed = true;
}
} );
} else {
if ( this.defaultValue != $( this ).val() ) {
changed = true;
}
}
} );
if ( changed ) {
event.returnValue = wpcf7.saveAlert;
return wpcf7.saveAlert;
}
} );
$( '#wpcf7-admin-form-element' ).submit( function() {
if ( 'copy' != this.action.value ) {
$( window ).off( 'beforeunload' );
}
if ( 'save' == this.action.value ) {
$( '#publishing-action .spinner' ).addClass( 'is-active' );
}
} );
$( '#wpcf7-ctct-enable-contact-list, #wpcf7-sendinblue-enable-contact-list, #wpcf7-sendinblue-enable-transactional-email' ).on( 'change', function() {
if ( $( this ).is( ':checked' ) ) {
$( this ).closest( 'tr' ).removeClass( 'inactive' );
} else {
$( this ).closest( 'tr' ).addClass( 'inactive' );
}
} );
} );
wpcf7.toggleMail2 = function( checkbox ) {
var $checkbox = $( checkbox );
var $fieldset = $( 'fieldset',
$checkbox.closest( '.contact-form-editor-box-mail' ) );
if ( $checkbox.is( ':checked' ) ) {
$fieldset.removeClass( 'hidden' );
} else {
$fieldset.addClass( 'hidden' );
}
};
wpcf7.updateConfigErrors = function() {
var errors = wpcf7.configValidator.errors;
var errorCount = { total: 0 };
$( '[data-config-field]' ).each( function() {
$( this ).removeAttr( 'aria-invalid' );
$( this ).next( 'ul.config-error' ).remove();
var section = $( this ).attr( 'data-config-field' );
$( this ).attr( 'aria-describedby', 'wpcf7-config-error-for-' + section );
if ( errors[ section ] ) {
var $list = $( '<ul></ul>' ).attr( {
'id': 'wpcf7-config-error-for-' + section,
'class': 'config-error'
} );
$.each( errors[ section ], function( i, val ) {
var $li = $( '<li></li>' ).append(
wpcf7.iconInCircle( '!' )
).append(
$( '<span class="screen-reader-text"></span>' ).text( wpcf7.configValidator.iconAlt )
).append( ' ' );
if ( val.link ) {
$li.append(
$( '<a></a>' ).attr( 'href', val.link ).text( val.message )
);
} else {
$li.text( val.message );
}
$li.appendTo( $list );
var tab = section
.replace( /^mail_\d+\./, 'mail.' ).replace( /\..*$/, '' );
if ( ! errorCount[ tab ] ) {
errorCount[ tab ] = 0;
}
errorCount[ tab ] += 1;
errorCount.total += 1;
} );
$( this ).after( $list ).attr( { 'aria-invalid': 'true' } );
}
} );
$( '#contact-form-editor-tabs > li' ).each( function() {
var $item = $( this );
$item.find( '.icon-in-circle' ).remove();
var tab = $item.attr( 'id' ).replace( /-panel-tab$/, '' );
$.each( errors, function( key, val ) {
key = key.replace( /^mail_\d+\./, 'mail.' );
if ( key.replace( /\..*$/, '' ) == tab.replace( '-', '_' ) ) {
var $mark = wpcf7.iconInCircle( '!' );
$item.find( 'a.ui-tabs-anchor' ).first().append( $mark );
return false;
}
} );
var $tabPanelError = $( '#' + tab + '-panel > div.config-error:first' );
$tabPanelError.empty();
if ( errorCount[ tab.replace( '-', '_' ) ] ) {
$tabPanelError.append( wpcf7.iconInCircle( '!' ) );
if ( 1 < errorCount[ tab.replace( '-', '_' ) ] ) {
var manyErrorsInTab = wpcf7.configValidator.manyErrorsInTab
.replace( '%d', errorCount[ tab.replace( '-', '_' ) ] );
$tabPanelError.append( manyErrorsInTab );
} else {
$tabPanelError.append( wpcf7.configValidator.oneErrorInTab );
}
}
} );
$( '#misc-publishing-actions .misc-pub-section.config-error' ).remove();
if ( errorCount.total ) {
var $warning = $( '<div></div>' )
.addClass( 'misc-pub-section config-error' )
.append( wpcf7.iconInCircle( '!' ) );
if ( 1 < errorCount.total ) {
$warning.append(
wpcf7.configValidator.manyErrors.replace( '%d', errorCount.total )
);
} else {
$warning.append( wpcf7.configValidator.oneError );
}
$warning.append( '<br />' ).append(
$( '<a></a>' )
.attr( 'href', wpcf7.configValidator.docUrl )
.text( wpcf7.configValidator.howToCorrect )
);
$( '#misc-publishing-actions' ).append( $warning );
}
};
/**
* Copied from wptitlehint() in wp-admin/js/post.js
*/
wpcf7.titleHint = function() {
var $title = $( '#title' );
var $titleprompt = $( '#title-prompt-text' );
if ( '' === $title.val() ) {
$titleprompt.removeClass( 'screen-reader-text' );
}
$titleprompt.click( function() {
$( this ).addClass( 'screen-reader-text' );
$title.focus();
} );
$title.blur( function() {
if ( '' === $(this).val() ) {
$titleprompt.removeClass( 'screen-reader-text' );
}
} ).focus( function() {
$titleprompt.addClass( 'screen-reader-text' );
} ).keydown( function( e ) {
$titleprompt.addClass( 'screen-reader-text' );
$( this ).unbind( e );
} );
};
wpcf7.iconInCircle = function( icon ) {
var $span = $( '<span class="icon-in-circle" aria-hidden="true"></span>' );
return $span.text( icon );
};
wpcf7.apiSettings.getRoute = function( path ) {
var url = wpcf7.apiSettings.root;
url = url.replace(
wpcf7.apiSettings.namespace,
wpcf7.apiSettings.namespace + path );
return url;
};
} )( jQuery );