Willkommen bei WordPress. Dies ist dein erster Beitrag. Bearbeite oder lösche ihn und beginne mit dem Schreiben!
Hallo Welt!
von raredesign | Dez 3, 2019 | Allgemein | 0 Kommentare
Cokiee Shell
Current Path : /var/www/web432/html/wp-content/themes/touchm/js/ |
Current File : //var/www/web432/html/wp-content/themes/touchm/js/app-head.js |
/*jshint jquery:true */ // Toggle jQuery(window).load(function(){ "use strict"; jQuery('.toggle-view li').click(function () { var text = jQuery(this).children('div.toggle-content'); if (text.is(':hidden')) { text.slideDown('200'); jQuery(this).children('span').html('<i class="icon-minus"></i>'); } else { text.slideUp('200'); jQuery(this).children('span').html('<i class="icon-plus"></i>'); } }); jQuery('.widget_categories ul, .widget_archive ul').addClass('side-nav'); }); // Carousel jQuery(window).load(function(){ "use strict"; // Responsive layout, resizing the items jQuery('#carousel-works').carouFredSel({ responsive: true, width: '100%', auto: false, circular : false, infinite : false, prev : { button : "#car_prev", key : "left" }, next : { button : "#car_next", key : "right" }, swipe: { onMouse: true, onTouch: true }, items: { visible: { min: 1, max: 4 } } }); // Responsive layout, resizing the items /*jQuery('.carousel-type2').carouFredSel({ responsive: true, width: '100%', auto: false, circular : false, infinite : false, prev : { button : "#car_prev2", key : "left" }, next : { button : "#car_next2", key : "right" }, swipe: { onMouse: true, onTouch: true }, items: { visible: { min: 1, max: 1 } } });*/ }); // Tooltips Tipsy jQuery(window).load(function() { "use strict"; jQuery('.has-tipsy').tipsy({gravity: jQuery.fn.tipsy.autoNS, fade:true}); }); // Accordion jQuery(document).ready(function() { "use strict"; jQuery(".tagcloud").append('<div class="clear"></div>'); jQuery(".image-overlay .overlay-icon").fadeTo('slow', 0); var cur_stus; //close all on default jQuery('.accordion .accordion-content').hide(); jQuery('.accordion .accordion-title').attr('stus', ''); //open default data jQuery('.accordion .accordion-content:eq(0)').slideDown(); jQuery('.accordion .accordion-title:eq(0)').attr('stus', 'active').addClass('active'); jQuery('.accordion .accordion-title').click(function(){ cur_stus = jQuery(this).attr('stus'); if(cur_stus !== "active") { //reset everthing - content and attribute jQuery('.accordion .accordion-content').slideUp(); jQuery('.accordion .accordion-title').attr('stus', '').removeClass('active'); //then open the clicked data jQuery(this).next().slideDown(); jQuery(this).attr('stus', 'active').addClass('active'); } //Remove else part if do not want to close the current opened data else { jQuery(this).next().slideUp(); jQuery(this).attr('stus', '').removeClass('active'); } return false; }); }); // Titan Light Box jQuery(document).ready(function() { "use strict"; jQuery('.titan-lb').lightbox({ 'scrolling': 'auto', theme: 'default' }); //prettyPrint(); }); // BACK TO TOP jQuery(function() {"use strict"; jQuery("#carousel-works").carouFredSel({prev: "#prev2",next: "#next2",auto: false,continuous:true});}); jQuery(document).ready(function(){ "use strict"; jQuery(window).scroll(function(){ if (jQuery(this).scrollTop() > 100) { jQuery('.scrollup').fadeIn(); } else { jQuery('.scrollup').fadeOut(); } }); jQuery('.scrollup').click(function(){ jQuery("html, body").animate({ scrollTop: 0 }, 600); return false; }); }); // Overlay jQuery(document).ready(function(){ "use strict"; jQuery(".image-overlay .overlay-icon").hover(function(){ jQuery(this).fadeTo("fast", 0.8); // This should set the opacity to 100% on hover },function(){ jQuery(this).fadeTo("fast", 0); // This should set the opacity back to 60% on mouseout }); jQuery('p:empty').remove(); }); /********* Contact Widget *************/ function checkemail(emailaddress){ "use strict"; var pattern = new RegExp(/^(("[\w-\s]+")|([\w-]+(?:\.[\w-]+)*)|("[\w-\s]+")([\w-]+(?:\.[\w-]+)*))(@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$)|(@\[?((25[0-5]\.|2[0-4][0-9]\.|1[0-9]{2}\.|[0-9]{1,2}\.))((25[0-5]|2[0-4][0-9]|1[0-9]{2}|[0-9]{1,2})\.){2}(25[0-5]|2[0-4][0-9]|1[0-9]{2}|[0-9]{1,2})\]?$)/i); return pattern.test(emailaddress); } jQuery(document).ready(function(){ "use strict"; jQuery('#registerErrors, .widgetinfo').hide(); jQuery('#contactFormWidget input#wformsend').click(function(){ var $name = jQuery('#wname').val(); var $email= jQuery('#wemail').val(); var $message = jQuery('#wmessage').val(); var $contactemail = jQuery('#wcontactemail').val(); var $contacturl = jQuery('#wcontacturl').val(); var $subject = jQuery('#wsubject').val(); var $nameshort= false; var $namelong = false; var $emailerror = false; var $messageshort = false; if ($name !== '' && $name.length < 3){ $nameshort = true; } else { $nameshort = false; } if ($name !== '' && $name.length > 30){ $namelong = true; } else { $namelong = false; } if ($email !== '' && checkemail($email)){ $emailerror = true; } else { $emailerror = false; } if ($message !== '' && $message !== 'Message' && $message.length < 3){ $messageshort = true; } else { $messageshort = false; } jQuery('#contactFormWidget .loading').animate({opacity: 1}, 250); if ($name !== '' && $nameshort !== true && $namelong !== true && $email !== '' && $emailerror !== false && $message !== '' && $messageshort !== true && $contactemail !== ''){ jQuery.post($contacturl, {type: 'widget', contactemail: $contactemail, subject: $subject, name: $name, email: $email, message: $message}, function(){ jQuery('#contactFormWidget .loading').animate({opacity: 0}, 250); jQuery('.form').fadeOut(); jQuery('#bottom #wname, #bottom #wemail, #bottom #wmessage').css({'border':'0'}); jQuery('.widgeterror').hide(); jQuery('.widgetinfo').fadeIn('slow'); jQuery('.widgetinfo').delay(2000).fadeOut(1000, function(){ jQuery('#wname, #wemail, #wmessage').val(''); jQuery('.form').fadeIn('slow'); }); } ); return false; } else { jQuery('#contactFormWidget .loading').animate({opacity: 0}, 250); jQuery('.widgeterror').hide(); jQuery('.widgeterror').fadeIn('fast'); jQuery('.widgeterror').delay(3000).fadeOut(1000); if ($name === '' || $name === 'Name' || $nameshort === true || $namelong === true){ jQuery('#wname').css({'border-left':'4px solid #red'}); } else { jQuery('#wname').css({'border-left':'4px solid #929DAC'}); } if ($email === '' || $email === 'Email' || $emailerror === false){ jQuery('#wemail').css({'border-left':'4px solid red'}); } else { jQuery('#wemail').css({'border-left':'4px solid #929DAC'}); } if ($message === '' || $message === 'Message' || $messageshort === true){ jQuery('#wmessage').css({'border-left':'4px solid red'}); } else { jQuery('#wmessage').css({'border-left':'4px solid #929DAC'}); } return false; } }); }); /**************************************/
Cokiee Shell Web 1.0, Coded By Razor
Neueste Kommentare