Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * The Javascript file for Optimizer
- *
- * Stores all the javascript of the template.
- *
- * @package LayerFramework
- *
- * @since LayerFramework 1.0
- */
- jQuery(window).ready(function() {
- //MENU Animation
- if (jQuery(window).width() > 768) {
- jQuery('#topmenu ul > li').not('#topmenu ul > li.mega-menu-item').hoverIntent(function(){
- jQuery(this).find('.sub-menu, ul.children').eq(0).removeClass('animated fadeOut').addClass('animated fadeInUp menushow');
- }, function(){
- jQuery(this).find('.sub-menu, ul.children').eq(0).addClass('animated fadeOut').delay(300).queue(function(next){ jQuery(this).removeClass("animated fadeInUp menushow");next();});
- });
- jQuery('#topmenu ul li ul li').not('#topmenu ul li.mega-menu-item ul.mega-sub-menu li').hoverIntent(function(){
- jQuery(this).find('.sub-menu, ul.children').eq(0).removeClass('animated fadeOut').addClass('animated fadeInUp menushow');
- }, function(){
- jQuery(this).find('.sub-menu, ul.children').eq(0).addClass('animated fadeOut').delay(300).queue(function(next){
- jQuery(this).removeClass("animated fadeInUp menushow");next();});
- });
- jQuery('#topmenu ul li').not('#topmenu ul li.mega-menu-item, #topmenu ul li ul li').hover(function(){
- jQuery(this).addClass('menu_hover');
- }, function(){
- jQuery(this).removeClass('menu_hover');
- });
- jQuery('#topmenu li').has("ul").addClass('zn_parent_menu');
- jQuery('.zn_parent_menu > a').append('<span class="menu_arrow"><i class="fa-angle-down"></i></span>');
- }
- //TOPMENU ICON STYLE
- jQuery('.menu_style_5 ul>li a').each(function() {
- jQuery(this).attr('title', jQuery(this).find('.menu_icon').attr('title'))
- jQuery(this).miniTip({content: jQuery(this).attr('title')});
- jQuery(this).find('.menu_icon').attr('title', '');
- });
- //Slider CTA Buttons Scroll function
- jQuery('.cta_buttons a[href^="#"]').each(function() {
- var scrollidraw = jQuery(this).attr('href');
- var scrollid = scrollidraw.substr(0, scrollidraw.indexOf('='));
- var scrollname = scrollidraw.substr(scrollidraw.indexOf("=") + 1);
- jQuery(this).attr('href', '#'+scrollname);
- jQuery(this).click(function() {
- //e.preventDefault();
- jQuery(this).attr('data-scrollid', scrollid);
- jQuery('html, body').animate({scrollTop: jQuery(scrollid).offset().top -100}, 'slow')
- });
- });
- //NEW TOPMENU Onepage Scroll function
- jQuery('#topmenu ul>li[class^="optimizer_front_"], #topbar_menu ul>li[class^="optimizer_front_"], #topmenu ul>li[class^="ast_"]').each(function(){
- var getClass = jQuery.grep(this.className.split(" "), function(v, i){if( v.indexOf('optimizer_front_') === 0){ return v.indexOf('optimizer_front_') ===0; }else{ return v.indexOf('ast_') ===0; } }).join();
- if(jQuery('#'+getClass).length){
- jQuery('#topmenu ul .'+getClass+' a, #topbar_menu ul .'+getClass+' a').click(function(e) {e.preventDefault(); jQuery('html, body').animate({scrollTop: jQuery('#'+getClass).offset().top -100}, 'slow'); });
- var menucount = jQuery('#topmenu ul>li').length;
- var onemenucount = jQuery('#topmenu ul>li[class^="optimizer_front_"]').length;
- if(menucount == onemenucount){jQuery('body').addClass('optimizer_onepager');}
- if(menucount == onemenucount){
- var inview = new Waypoint.Inview({
- element: jQuery('#'+getClass)[0],
- enter: function(direction) {
- jQuery('.header ul li').removeClass('current-menu-item onepagemenu_highlight');
- jQuery('.header ul li.'+getClass).addClass('current-menu-item onepagemenu_highlight');
- },
- });
- jQuery(window).bind("scroll", function() {
- if (jQuery(this).scrollTop() < 300) {
- jQuery('.header ul li').removeClass('current-menu-item onepagemenu_highlight');
- }
- });
- }else{
- var inview = new Waypoint.Inview({
- element: jQuery('#'+getClass)[0],
- enter: function(direction) { jQuery('.header ul li.'+getClass).addClass('current-menu-item onepagemenu_highlight'); },
- exited: function(direction) { jQuery('.header ul li.'+getClass).removeClass('current-menu-item onepagemenu_highlight'); }
- });
- }
- }
- });
- //Scroll to the specific widget when clicked from other pages
- jQuery(window).bind("load", function() {
- if(window.location.hash) {
- var currenturl = window.location.href;
- jQuery('#topmenu a[href="'+currenturl+'"], #topbar_menu a[href="'+currenturl+'"]').each(function(){
- var matchedmenu = jQuery(this).parent();
- var getClass = jQuery.grep(matchedmenu.attr('class').split(" "), function(v, i){if( v.indexOf('optimizer_front_') === 0){ return v.indexOf('optimizer_front_') ===0; }else{ return v.indexOf('ast_') ===0; } }).join();
- if(jQuery('#'+getClass).length){
- jQuery('html, body').animate({scrollTop: jQuery('#'+getClass).offset().top -100}, 'slow');
- }
- });
- }
- });
- //Load Logo in Middle
- if(jQuery('.logo_middle #topmenu .menu-header').length !==0){ var menunum = jQuery('.logo_middle #topmenu ul.menu>li').not('li.menu-item.menu-item-language').length;}else{ var menunum = jQuery('.logo_middle #topmenu .menu ul>li').length;}
- var logopos = Math.round(menunum/2);
- jQuery('.logo_middle #topmenu ul.menu > li:nth-child('+logopos+'), .logo_middle #topmenu .menu>ul>li:nth-child('+logopos+')').after('<div class="logo">'+jQuery('.logo_middle .logo').html()+'</div>');
- jQuery('.logo_middle, .logo_middle #topmenu .logo').animate({"opacity": "1"});
- //CENTER MENU ITEMS VERTICALLY FOR MENU STYLE2
- jQuery('.logo_middle #topmenu').waitForImages(function() {
- jQuery('.logo_middle #topmenu .menu-item, #topmenu .head_soc').not('.logo_middle #topmenu .menu-item .menu-item').css({ "bottom":(jQuery(".logo_middle #topmenu").height() / 2) /2});
- });
- //Slider empty content
- jQuery('.acord_text p:empty, .acord_text h3 a:empty, .nivoinner h3 a:empty').css({"display":"none"});
- //Equal height - BLOCKS
- jQuery('.midrow_blocks_wrap').each(function(index, element) {
- jQuery(this).waitForImages(function() {
- jQuery(this).find('.midrow_block').matchHeight({ property: 'min-height', byRow: 'height'});
- });
- });
- //Layout1 Animation
- jQuery(".lay1").each(function(index, element) {
- var divs = jQuery(this).find(".hentry");
- for(var i = 0; i < divs.length; i+=3) {
- divs.slice(i, i+3).wrapAll("<div class='ast_row'></div>");
- }
- if (jQuery(window).width() < 1200) {
- var flaywidth = jQuery(this).find(".hentry").width();
- jQuery(this).find('.post_image').css({"maxHeight":(flaywidth * 66)/100});
- }
- });
- jQuery('.lay1 .postitle a:empty').closest("h2").addClass('no_title');
- jQuery('.no_title').css({"padding":"0"});
- jQuery('.lay1 h2.postitle a').each(function() {
- if(jQuery(this).height() >80){ jQuery(this).parent().parent().parent().addClass('lowreadmo'); }
- });
- jQuery('.lts_layout1 .listing-item h2').each(function() {
- if(jQuery(this).outerHeight() >76){ jQuery(this).parent().addClass('lowreadmo'); }
- });
- // TO_TOP
- jQuery(window).bind("scroll", function() {
- if (jQuery(this).scrollTop() > 800) {
- jQuery(".to_top").fadeIn('slow');
- } else {
- jQuery(".to_top").fadeOut('fast');
- }
- });
- jQuery(".to_top").click(function() {
- jQuery("html, body").animate({ scrollTop: 0 }, "slow");
- return false;
- });
- //Divider icon style
- jQuery('.div_middle i.fa-minus').after('<i class="fa fa-minus"></i><i class="fa fa-minus"></i>');
- jQuery('.homeposts_title.title_border-center, .homeposts_title.title_border-left, .homeposts_title.title_border-right, .about_inner.title_border-center, .about_inner.title_border-left, .about_inner.title_border-right').each(function(index, element) {
- var wtitle = jQuery(this).find('.home_title span, .block_header span, .about_header span');
- var wstitle = jQuery(this).find('.home_subtitle');
- if(wtitle.width() > wstitle.width()){ jQuery(this).find('.div_left, .div_right').css({"width":"calc(47% - "+wtitle.width() / 2+"px)"}); }
- if(wtitle.width() < wstitle.width()){ jQuery(this).find('.div_left, .div_right').css({"width":"calc(47% - "+wstitle.width() / 2+"px)"}); }
- if(jQuery(this).find('.home_title span, .block_header span').length == 0 && jQuery(this).find('.home_subtitle').length == 0){ jQuery(this).addClass('widget_notitle'); }
- });
- //STICKY SINGLE SHARE LEFT ICONS
- jQuery(".share_pos_left").stick_in_parent();
- //Share Buttons move after:
- jQuery('.share_foot.share_pos_after').appendTo(".single_post_content");
- //STATIC SLIDER IMAGE FIXED
- jQuery('.stat_has_img').waitForImages(function() {
- var statimg = jQuery(".stat_has_img .stat_bg_img").attr('src');
- var body_size = jQuery('.stat_has_img .stat_content_inner .center').height() + 120;
- var statimgheight = jQuery(".stat_has_img .stat_bg_img").height() + jQuery(".header").height();
- if(body_size > statimgheight){var statimgheight = body_size + jQuery(".header").height();}
- var hheight = jQuery(".header").height();
- jQuery("body.home").prepend('<div class="stat_bg" style="height:'+statimgheight+'px"><img src="'+statimg+'" /></div><div class="stat_bg_overlay overlay_off" style="height:'+statimgheight+'px" />');
- jQuery('#slidera').css({"minHeight":"initial"});
- jQuery('.home .stat_has_img .stat_bg_img').css('opacity', 0);
- //Static Slider Overlay on scroll
- overlayon = jQuery(".home .stat_has_img");
- overlayon.waypoint({ handler: function(direction) { jQuery('.home .stat_bg_overlay').removeClass("overlay_off").addClass("overlay_on"); }, offset: '-170px' });
- overlayoff = jQuery(".home .stat_has_img");
- overlayoff.waypoint({ handler: function(direction) { jQuery('.home .stat_bg_overlay').removeClass("overlay_on").addClass("overlay_off");; }, offset: '-90px' });
- });
- jQuery('.stat_has_img').waitForImages(function() {
- if (jQuery(window).width() > 480) {
- var resizeTimer;
- jQuery(window).bind("load resize", function() {
- clearTimeout(resizeTimer);
- resizeTimer = setTimeout(function() {
- var body_size = jQuery('.stat_has_img .stat_content_inner .center').height() + 120;
- jQuery('#stat_img, .stat_bg, .stat_bg img, .stat_bg_overlay').css('min-height',body_size);
- }, 50);
- });
- }
- var slidercontent_pos = jQuery('.stat_content_inner').position();
- if (slidercontent_pos.top < 0) {jQuery('.stat_content_inner').css({"bottom":"10%"})}
- });
- jQuery(window).bind("load resize", function() {
- if (jQuery(window).width() <= 480) {
- jQuery(".stat_bg_img").css({"opacity":"0"});
- jQuery('.stat_content_inner').waitForImages(function() { jQuery("#stat_img").height(jQuery(".stat_content_inner").height()); });
- var statbg = jQuery(".stat_bg_img").attr('src');
- jQuery(".stat_has_img").css({"background":"url("+statbg+")", "background-repeat":"no-repeat", "background-size":"cover"});
- jQuery('.has_sticky_header .header').waitForImages(function() {
- });
- }
- if (jQuery(window).width() > 480) {
- var statbg = jQuery(".stat_bg_img").attr('src');
- jQuery(".stat_has_img").css({"background":"url("+statbg+") top center", "background-repeat":"no-repeat", "background-size":"cover"});
- jQuery('.has_trans_header .stat_content_inner, .has_trans_header .header').waitForImages(function() {
- var mhheight = jQuery(".has_trans_header .header").height();
- jQuery(".has_trans_header .stat_content_inner").css({"paddingTop":mhheight});
- });
- jQuery('.page_header_transparent .has_header_img .pagetitle_wrap').css({"top":jQuery(".page_header_transparent .header").height()})
- }
- });
- //WAYPOINT ANIMATIONS
- if (jQuery(window).width() > 480) {
- jQuery('.home #zn_nivo, .home #accordion').waitForImages(function() {
- //Header color on scroll
- var sliderheight = jQuery('.home #zn_nivo, .home #accordion').height();
- stickyheadwaypoint = jQuery(".home #zn_nivo, .home #accordion");
- stickyheadwaypoint.waypoint({ handler: function(direction) { jQuery(".is-sticky .header").addClass("headcolor"); }, offset: '-'+sliderheight/2+'px' });
- stickyheadwaypoint.waypoint({ handler: function(direction) { jQuery(".is-sticky .header").removeClass("headcolor"); }, offset: '-90px' });
- });
- //BLOCKS Animation
- blockswaypoint = jQuery(".midrow_blocks .midrow_bloc");
- blockswaypoint.css({"opacity":"0"});
- blockswaypoint.waypoint({ handler: function(direction) { blockswaypoint.addClass('animated bounceIn'); }, offset: '90%' });
- //WELCOME Animation
- textwaypoint = jQuery(".welcmblock .text_block_wrap");
- textwaypoint.css({"opacity":"0"});
- textwaypoint.waypoint({ handler: function(direction) { textwaypoint.addClass('animated fadeIn'); }, offset: '90%' });
- //Posts Animation
- postswaypoint = jQuery(".home .postsblck .center");
- postswaypoint.css({"opacity":"0"});
- postswaypoint.waypoint({ handler: function(direction) { postswaypoint.addClass('animated fadeInUp'); }, offset: '85%' });
- //Call to Action
- ctawaypoint = jQuery(".home_action_left, .home_action_right");
- ctawaypoint.waypoint({ handler: function(direction) { ctawaypoint.addClass('animated fadeIn'); }, offset: '100%' });
- //Testimonial
- testiwaypoint = jQuery(".home_testi .center");
- testiwaypoint.css({"opacity":"0"});
- testiwaypoint.waypoint({ handler: function(direction) { testiwaypoint.addClass('animated fadeIn'); }, offset: '95%' });
- //Footer Widgets
- footerwaypoint = jQuery(".home #footer .widgets");
- footerwaypoint.css({"opacity":"0"});
- footerwaypoint.waypoint({ handler: function(direction) { footerwaypoint.addClass('animated fadeInUp'); }, offset: '90%' });
- //MAP
- mapwaypoint = jQuery(".ast_map");
- mapwaypoint.waypoint({ handler: function(direction) { mapwaypoint.addClass('animated fadeIn'); }, offset: '95%' });
- //Clients
- clientswaypoint = jQuery(".client_logoimg");
- clientswaypoint.css({"opacity":"0"});
- clientswaypoint.waypoint({ handler: function(direction) { clientswaypoint.addClass('animated fadeInUp'); }, offset: '95%' });
- }
- //Next Previous post button Link
- var link = jQuery('.ast-next > a').attr('href');
- jQuery('.right_arro').attr('href', link);
- var link = jQuery('.ast-prev > a').attr('href');
- jQuery('.left_arro').attr('href', link);
- //Gallery Template
- jQuery("#sidebar .widget_pages ul li a, #sidebar .widget_meta ul li a, #sidebar .widget_nav_menu ul li a, #sidebar .widget_categories ul li a, #sidebar .widget_recent_entries ul li a, #sidebar .widget_recent_comments ul li, #sidebar .widget_archive ul li, #sidebar .widget_rss ul li").prepend('<i class="fa-double-angle-right"></i> ');
- jQuery('#sidebar .fa-double-angle-right').css({"opacity":"0.5"})
- //Mobile Menu
- var padmenu = jQuery("#simple-menu").html();
- jQuery('#simple-menu').sidr({name: 'sidr-main', source: '#topmenu', side: 'right'});
- //Make Icons show up in sidr
- jQuery('.sidr-class-menu-item i').attr('class', function(_, klass) {
- return 'fa fa' + klass.split('-fa').pop();
- });
- jQuery("#topmenu .head_soc").clone().appendTo(".sidr-class-head_soc");
- //Topbar Hamburger Menu
- var topadmenu = jQuery("#topbar-hamburger-menu").html();
- jQuery('#topbar-hamburger-menu').sidr({ name: 'sidr-topbar', source: '#topbar_menu', side: 'right'});
- jQuery(".sidr").prepend("<div class='pad_menutitle'><i class='fa fa-bars'></i><span><i class='fa-times'></i></span></div>");
- jQuery(".pad_menutitle span").click(function() {
- jQuery.sidr('close', 'sidr-main');
- jQuery.sidr('close', 'sidr-topbar');
- preventDefaultEvents: false;
- });
- //Hamburger Compatibility
- jQuery('.sidr-class-menu li[class^="sidr-class-optimizer_front_"]').each(function(){
- var getClassraw = jQuery.grep(this.className.split(" "), function(v, i){return v.indexOf('sidr-class-optimizer_front_') === 0; }).join();
- var getClass = getClassraw.replace("sidr-class-", "");
- if(jQuery('#'+getClass).length){
- jQuery('.sidr-class-menu .'+getClassraw+' a').click(function(e) {e.preventDefault(); jQuery('html, body').animate({scrollTop: jQuery('#'+getClass).offset().top -100}, 'slow'); });
- }
- });
- //If the topmenu is empty remove it
- if (jQuery(window).width() < 1025) {
- if(jQuery("#topmenu:has(ul)").length == 0){
- jQuery('#simple-menu, #dropdown-menu').addClass('hide_mob_menu');
- }
- }
- //Dropdown Mobile Menu
- jQuery("#dropdown-menu").toggle(function(e) {
- jQuery('#topmenu.mobile_dropdown').css("top", jQuery('.head_inner').outerHeight()).slideDown(300);
- jQuery("#dropdown-menu i.fa-chevron-down").removeClass('fa-chevron-down').addClass('fa-chevron-up');
- }, function(){
- jQuery('#topmenu.mobile_dropdown').slideUp(300);
- jQuery("#dropdown-menu i.fa-chevron-up").removeClass('fa-chevron-up').addClass('fa-chevron-down');
- });
- //NivoSlider Navigation Bug Fix
- if (jQuery(window).width() < 480) {
- jQuery(".nivo-control").text('');
- }
- //slider porgressbar loader
- jQuery('.slider-wrapper').waitForImages(function() {
- jQuery("#zn_nivo, .nivo-controlNav, #slide_acord, .nivoinner").css({"display":"block"});
- jQuery(".pbar_wrap, .pbar_overlay").fadeOut();
- jQuery('.slider-wrapper').css({"minHeight":"initial"});
- });
- //TESTIMONIAL SLIDE
- jQuery('.home_testi .looper').on('shown', function(e){
- jQuery('.looper-nav > li', this).removeClass('active').eq(e.relatedIndex).addClass('active');
- });
- //HEADER SWITCH
- jQuery('#slidera').has('.stat_has_img').addClass('selected_stat');
- jQuery('#slidera').has('.slide_wrap').addClass('selected_slide');
- if (jQuery(window).width() < 1025) {
- jQuery('.dlthref').removeAttr("href");
- }
- //WIDGET BORDER
- jQuery("#sidebar .widget .widgettitle, .related_h3, h3#comments, #reply-title").after("<span class='widget_border' />");
- //Rearragnge comment form box
- jQuery(".comm_wrap").insertAfter(".comment-form-comment");
- jQuery(".comm_wrap input").placeholder();
- //404 class is not being added in body
- jQuery('body').has('.error_msg').addClass('error404');
- //TOP Header Search
- jQuery('.head_search i').toggle(function(){
- jQuery('.head_search form').css({"width":"170px"});
- },function(){
- jQuery('.head_search form').css({"width":"0px"});
- });
- //MAILCHIMP
- jQuery('.mc-field-group').each(function() {
- var placeholder = jQuery(this).find('label').text();
- jQuery(this).find('input').attr('placeholder', ''+placeholder+'')
- });
- //Subscribe2
- jQuery('.ast_subs_form').has("#s2email").addClass('ast_subscribe2');
- //Center Call to Action Button
- jQuery('.cta_button_right .home_action_right').flexVerticalCenter({ cssAttribute: 'padding-top', parentSelector: '.cta_button_right' });
- jQuery('.cta_button_left .home_action_right').flexVerticalCenter({ cssAttribute: 'padding-top', parentSelector: '.cta_button_left' });
- //Next-Previous Post Image Check
- jQuery(".nav-box.ast-prev, .nav-box.ast-next").not(":has(img)").addClass('navbox-noimg');
- //Make sure the footer always stays to the bottom of the page when the page is short
- jQuery(window).bind("load", function() {
- var docHeight = jQuery(window).height();
- var footerHeight = jQuery('#footer').height();
- var footerTop = jQuery('#footer').position().top + footerHeight;
- if (footerTop < docHeight) { jQuery('#footer').css('margin-top', 1 + (docHeight - footerTop) + 'px'); }
- /*Widget Parallax*/
- /* if (jQuery(window).width() >= 480) {
- jQuery('.parallax_img').each(function(index, element) {
- jQuery(this).parallax({naturalHeight: jQuery(this).parent().outerHeight(), bleed: 50, iosFix: true, androidFix: true}).css({"backgroundImage":"none"});
- });
- }*/
- });
- //Woocommerce
- jQuery('.lay1.optimposts, .lay2.optimposts, .lay4.optimposts').each(function(index, element) { jQuery(this).waitForImages(function() { jQuery(this).find('.type-product').matchHeight({property: 'min-height'}); }); });
- jQuery('.lay1.optimposts .type-product').each(function(index, element) {
- if (jQuery(window).width() >= 960) { jQuery(this).find('.button.add_to_cart_button').prependTo(jQuery(this).find('.imgwrap')); }
- jQuery(this).find('span.price').prependTo(jQuery(this).find('.post_image '));
- });
- //MENU WIDGET & TOPBAR MENU DROPDOWN
- jQuery('#frontsidebar .widget_nav_menu ul.menu li, #topbar_menu ul li').not('#topbar_menu ul > li.mega-menu-item').hoverIntent( function(){
- jQuery(this).find('ul:first').fadeIn();
- }, function(){
- jQuery(this).find('ul:first').fadeOut();
- });
- //Hide the Next Previous Post area when empty
- if( !jQuery('body.single #ast_nextprev .ast-prev').length && !jQuery('body.single #ast_nextprev .ast-next').length){jQuery('body.single #ast_nextprev').hide()}
- //Portfolio Share Buttons
- jQuery('.portfolio_wrapper .social_buttons').append('<div class="lgn_more"><i class="fa fa-ellipsis-h"></i></div>');
- jQuery('.portfolio_wrapper .social_buttons .lgn_stmbl, .portfolio_wrapper .social_buttons .lgn_del, .portfolio_wrapper .social_buttons .lgn_digg, .portfolio_wrapper .social_buttons .lgn_email, .portfolio_wrapper .social_buttons .lgn_print').wrapAll('<div class="social_more" />');
- jQuery('.portfolio_wrapper .lgn_more').toggle(function(e) {
- jQuery('.portfolio_wrapper .social_more').addClass('social_more_show');
- }, function(){
- jQuery('.portfolio_wrapper .social_more').removeClass('social_more_show');
- });
- //IF iOS, Hide the video slider:
- if(getMobileOperatingSystem() == 'iOS'){
- jQuery('body').addClass('is-ios');
- }else{
- jQuery('body').addClass('not-ios');
- }
- //Check If Safari
- if(isSafari == true){
- jQuery('body').addClass('is_safari');
- }
- //Newsletter--------------
- jQuery('.optim_newsletter_form .mimi_field').each(function(index, element) { jQuery(this).find('br').remove(); });
- jQuery('.optim_newsletter_form label').each(function(index, element) {
- if(jQuery(this).next().is('input')){
- jQuery(this).addClass('placeholder_label');
- }
- });
- jQuery('.optim_newsletter_form input[type="text"], .optim_newsletter_form input[type="email"], .optim_newsletter_form input[type="phone"]').each(function(index, element) {
- if(jQuery(this).prev().is('label') ){
- var attr = jQuery(this).attr('placeholder');
- if (typeof attr == typeof undefined || attr == false) {
- jQuery(this).attr('placeholder', jQuery(this).prev().text());
- }
- }
- });
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement