How to use query method in robotframework-ioslibrary

Best Python code snippet using robotframework-ioslibrary_python

main-backend.js

Source:main-backend.js Github

copy

Full Screen

1/**2 * Wordpress Admin Area Enhancements.3 *4 * Theme options are hidden / shown so the user only see's what is required.5 */6/* ----------------------------------------------------------------------------------7 ADD MODAL BOX TO CONFIRM DEMO INSTALLATION8---------------------------------------------------------------------------------- */9jQuery(document).ready(function(){10 (function ( $ ) {11 if ( $.isFunction($.fn.confirm) ) {12 $( '.demo-installer .button-install' ).confirm({13 title:'Demo Install',14 text: '<p>Are you sure you want to install the demo content?</p><p>Installer should only be <strong>run once</strong> and should be on a <strong>fresh installation of WordPress</strong>.</p><p style="margin: 0;"><strong><u>IMPORTANT:</u></strong> Running the installer on a live site can override your existing content.</p>',15 confirmButton: 'Yes I am',16 cancelButton: 'No',17 });18 }19 }( jQuery ));20});21/* ----------------------------------------------------------------------------------22 ADD CLASSES TO MAIN THEME OPTIONS23---------------------------------------------------------------------------------- */24jQuery(document).ready(function(){25 jQuery( 'td fieldset' ).each(function() {26 var mainclass = jQuery(this).attr("id");27 jQuery('fieldset[id='+mainclass+']').closest("tr").attr('id', 'section-' + mainclass );28 });29 // Specifically to add id to homepage slider options.30 jQuery( '#redux-slides-accordion' ).closest("tr").attr('id', 'section-thinkup_homepage_sliderpreset' );31 jQuery( '#section-thinkup_homepage_sliderpresetwidth' ).prev('tr').attr( 'id', 'section-thinkup_homepage_sliderpresetheight' );32// jQuery( '#section-thinkup_homepage_sliderpresetwidth' ).prev('tr').attr( 'id', 'section-thinkup_homepage_sliderstyle' );33 jQuery( '#section-thinkup_homepage_sliderpresetheight' ).prev('tr').attr( 'id', 'section-thinkup_homepage_sliderspeed' );34});35/* ----------------------------------------------------------------------------------36 ADD CLASSES TO META THEME OPTIONS - TICKET #2930037---------------------------------------------------------------------------------- */38jQuery(document).ready(function($){39 $( 'th label' ).each(function() {40 var label = $(this),41 metaclass = label.attr( 'for' );42 if ( metaclass !== '' && metaclass !== undefined ) {43 label.closest( 'tr' ).addClass( metaclass );44 }45 });46});47/* ----------------------------------------------------------------------------------48 HIDE / SHOW BLOG OPTIONS PANEL (PAGE POST TYPE)49---------------------------------------------------------------------------------- */50jQuery(document).ready(function(){51 // Hide / show blog options panel on page load52 if ( jQuery( '#page_template option:selected' ).attr( 'value' ) == 'template-blog.php' ) {53 jQuery( '#thinkup_bloginfo' ).slideDown();54 } else if ( jQuery( '#page_template option:selected' ).attr( 'value' ) != 'template-blog.php' ) {55 jQuery( '#thinkup_bloginfo' ).slideUp();56 }57 jQuery( '#page_template' ).change( function() {58 // Hide / show blog options panel when template option is changed59 if ( jQuery( '#page_template option:selected' ).attr( 'value' ) == 'template-blog.php' ) {60 jQuery( '#thinkup_bloginfo' ).slideDown();61 } else if ( jQuery( '#page_template option:selected' ).attr( 'value' ) != 'template-blog.php' ) {62 jQuery( '#thinkup_bloginfo' ).slideUp();63 }64 });65 // Meta Blog Options - Enable Featured Carousel66 if(jQuery('tr._thinkup_meta_blogstyle input[value=option2]').is(":checked")){67 jQuery('tr._thinkup_meta_blogstyle1layout').show();68 }69 else if(jQuery('tr._thinkup_meta_blogstyle input[value=option2]').not(":checked")){70 jQuery('tr._thinkup_meta_blogstyle1layout').hide();71 }72 if(jQuery('tr._thinkup_meta_blogstyle input[value=option3]').is(":checked")){73 jQuery('tr._thinkup_meta_blogstyle2layout').show();74 }75 else if(jQuery('tr._thinkup_meta_blogstyle input[value=option3]').not(":checked")){76 jQuery('tr._thinkup_meta_blogstyle2layout').hide();77 }78 // Meta Blog Options - Hide / Show Option on Check79 jQuery('tr._thinkup_meta_blogstyle input[type=radio]').change(function() {80 if(jQuery('tr._thinkup_meta_blogstyle input[value=option2]').is(":checked")){81 jQuery('tr._thinkup_meta_blogstyle1layout').show();82 }83 else if(jQuery('tr._thinkup_meta_blogstyle input[value=option2]').not(":checked")){84 jQuery('tr._thinkup_meta_blogstyle1layout').hide();85 }86 if(jQuery('tr._thinkup_meta_blogstyle input[value=option3]').is(":checked")){87 jQuery('tr._thinkup_meta_blogstyle2layout').show();88 }89 else if(jQuery('tr._thinkup_meta_blogstyle input[value=option3]').not(":checked")){90 jQuery('tr._thinkup_meta_blogstyle2layout').hide();91 }92 });93});94/* ----------------------------------------------------------------------------------95 HIDE / SHOW PORTFOLIO OPTIONS PANEL (PAGE POST TYPE)96---------------------------------------------------------------------------------- */97jQuery(document).ready(function(){98 // Hide / show portfolio options panel on page load99 if ( jQuery( '#page_template option:selected' ).attr( 'value' ) == 'template-portfolio.php' ) {100 jQuery( '#thinkup_portfolioinfo' ).slideDown();101 } else if ( jQuery( '#page_template option:selected' ).attr( 'value' ) != 'template-portfolio.php' ) {102 jQuery( '#thinkup_portfolioinfo' ).slideUp();103 }104 jQuery( '#page_template' ).change( function() {105 // Hide / show portfolio options panel when template option is changed106 if ( jQuery( '#page_template option:selected' ).attr( 'value' ) == 'template-portfolio.php' ) {107 jQuery( '#thinkup_portfolioinfo' ).slideDown();108 } else if ( jQuery( '#page_template option:selected' ).attr( 'value' ) != 'template-portfolio.php' ) {109 jQuery( '#thinkup_portfolioinfo' ).slideUp();110 }111 });112 // Meta Portfolio Options - Enable Slider113 if(jQuery('tr._thinkup_meta_portfoliosliderswitch input').is(":checked")){114 jQuery('tr._thinkup_meta_portfolioslidercategory').show();115 jQuery('tr._thinkup_meta_portfoliosliderheight').show();116 }117 else if(jQuery('tr._thinkup_meta_portfoliosliderswitch input').not(":checked")){118 jQuery('tr._thinkup_meta_portfolioslidercategory').hide();119 jQuery('tr._thinkup_meta_portfoliosliderheight').hide();120 }121 // Meta Portfolio Options - Enable Featured Carousel122 if(jQuery('tr._thinkup_meta_portfoliofeaturedswitch input').is(":checked")){123 jQuery('tr._thinkup_meta_portfoliofeaturedcategory').show();124 jQuery('tr._thinkup_meta_portfoliofeatureditems').show();125 jQuery('tr._thinkup_meta_portfoliofeaturedscroll').show();126 }127 else if(jQuery('tr._thinkup_meta_portfoliofeaturedswitch input').not(":checked")){128 jQuery('tr._thinkup_meta_portfoliofeaturedcategory').hide();129 jQuery('tr._thinkup_meta_portfoliofeatureditems').hide();130 jQuery('tr._thinkup_meta_portfoliofeaturedscroll').hide();131 }132 // Meta Portfolio Options - Hide / Show Option on Check133 jQuery('input[type=checkbox]').change(function() {134 // Slider135 if(jQuery('tr._thinkup_meta_portfoliosliderswitch input').is(":checked")){136 jQuery('tr._thinkup_meta_portfolioslidercategory').fadeIn();137 jQuery('tr._thinkup_meta_portfoliosliderheight').fadeIn();138 }139 else if(jQuery('tr._thinkup_meta_portfoliosliderswitch input').not(":checked")){140 jQuery('tr._thinkup_meta_portfolioslidercategory').fadeOut();141 jQuery('tr._thinkup_meta_portfoliosliderheight').fadeOut();142 }143 // Featured Carousel144 if(jQuery('tr._thinkup_meta_portfoliofeaturedswitch input').is(":checked")){145 jQuery('tr._thinkup_meta_portfoliofeaturedcategory').fadeIn();146 jQuery('tr._thinkup_meta_portfoliofeatureditems').fadeIn();147 jQuery('tr._thinkup_meta_portfoliofeaturedscroll').fadeIn();148 }149 else if(jQuery('tr._thinkup_meta_portfoliofeaturedswitch input').not(":checked")){150 jQuery('tr._thinkup_meta_portfoliofeaturedcategory').fadeOut();151 jQuery('tr._thinkup_meta_portfoliofeatureditems').fadeOut();152 jQuery('tr._thinkup_meta_portfoliofeaturedscroll').fadeOut();153 }154 });155});156/* ----------------------------------------------------------------------------------157 HIDE / SHOW TEAM OPTIONS PANEL (PAGE POST TYPE)158---------------------------------------------------------------------------------- */159jQuery(document).ready(function(){160 // Hide / show Team options panel on page load161 if ( jQuery( '#page_template option:selected' ).attr( 'value' ) == 'template-team.php' ) {162 jQuery( '#thinkup_teamsettings' ).slideDown();163 } else if ( jQuery( '#page_template option:selected' ).attr( 'value' ) != 'template-team.php' ) {164 jQuery( '#thinkup_teamsettings' ).slideUp();165 }166 jQuery( '#page_template' ).change( function() {167 // Hide / show Team options panel when template option is changed168 if ( jQuery( '#page_template option:selected' ).attr( 'value' ) == 'template-team.php' ) {169 jQuery( '#thinkup_teamsettings' ).slideDown();170 } else if ( jQuery( '#page_template option:selected' ).attr( 'value' ) != 'template-team.php' ) {171 jQuery( '#thinkup_teamsettings' ).slideUp();172 }173 });174 // Meta Team Options - Grid Layout175 if(jQuery('tr._thinkup_meta_teamstyleswitch input[value=option1]').is(":checked")){176 jQuery('tr._thinkup_meta_teamlayout').hide();177 } else if(jQuery('tr._thinkup_meta_teamstyleswitch input[value=option1]').not(":checked")){178 jQuery('tr._thinkup_meta_teamlayout').show();179 }180 181 // Meta Portfolio Options - Hide / Show Option on radio change182 jQuery('input[type=radio]').change(function() {183 if(jQuery('tr._thinkup_meta_teamstyleswitch input[value=option1]').is(":checked")){184 jQuery('tr._thinkup_meta_teamlayout').fadeOut('slow');185 } else if(jQuery('tr._thinkup_meta_teamstyleswitch input[value=option1]').not(":checked")){186 jQuery('tr._thinkup_meta_teamlayout').fadeIn('slow');187 }188 });189});190/* ----------------------------------------------------------------------------------191 HIDE / SHOW TESTIMONIAL OPTIONS PANEL (PAGE POST TYPE)192---------------------------------------------------------------------------------- */193jQuery(document).ready(function(){194 // Hide / show Testimonial options panel on page load195 if ( jQuery( '#page_template option:selected' ).attr( 'value' ) == 'template-testimonial.php' ) {196 jQuery( '#thinkup_testimonialsettings' ).slideDown();197 } else if ( jQuery( '#page_template option:selected' ).attr( 'value' ) != 'template-testimonial.php' ) {198 jQuery( '#thinkup_testimonialsettings' ).slideUp();199 }200 jQuery( '#page_template' ).change( function() {201 // Hide / show Testimonial options panel when template option is changed202 if ( jQuery( '#page_template option:selected' ).attr( 'value' ) == 'template-testimonial.php' ) {203 jQuery( '#thinkup_testimonialsettings' ).slideDown();204 } else if ( jQuery( '#page_template option:selected' ).attr( 'value' ) != 'template-testimonial.php' ) {205 jQuery( '#thinkup_testimonialsettings' ).slideUp();206 }207 });208});209/* ----------------------------------------------------------------------------------210 HIDE / SHOW POST TYPE SPECIFIC OPTIONS PANEL211---------------------------------------------------------------------------------- */212jQuery(document).ready(function(){213 // Blog Post - Enable Author Bio214 if( jQuery( 'body' ).hasClass( 'post-type-post' ) ) {215 jQuery( 'tr._thinkup_meta_authorbio' ).show();216 } else {217 jQuery( 'tr._thinkup_meta_authorbio' ).hide();218 }219});220/* ----------------------------------------------------------------------------------221 HIDE / SHOW OPTIONS ON PAGE LOAD222---------------------------------------------------------------------------------- */223jQuery(document).ready(function(){224 // General - Logo Settings (Option 1) - DONE 225// if(jQuery('#section-thinkup_general_logoswitch input[value=option1]').is(":checked")){226// jQuery('#section-thinkup_general_logolink').show();227// jQuery('#section-thinkup_general_logolinkretina').show();228// }229// else if(jQuery('#section-thinkup_general_logoswitch input[value=option1]').not(":checked")){230// jQuery('#section-thinkup_general_logolink').hide();231// jQuery('#section-thinkup_general_logolinkretina').hide();232// }233 // General - Logo Settings (Option 2) - DONE234// if(jQuery('#section-thinkup_general_logoswitch input[value=option2]').is(":checked")){235// jQuery('#section-thinkup_general_sitetitle').show();236// jQuery('#section-thinkup_general_sitedescription').show();237// }238// else if(jQuery('#section-thinkup_general_logoswitch input[value=option2]').not(":checked")){239// jQuery('#section-thinkup_general_sitetitle').hide();240// jQuery('#section-thinkup_general_sitedescription').hide();241// }242 // === Select sidebar for Page Layout - DONE243// if( jQuery('#section-thinkup_general_layout input[value=option2]').is(":checked") || jQuery('#section-thinkup_general_layout input[value=option3]').is(":checked") ){244// jQuery('#section-thinkup_general_sidebars').show();245// }246// else if(jQuery('#section-thinkup_general_layout input[value=option2]').not(":checked") || jQuery('#section-thinkup_general_layout input[value=option3]').not(":checked") ){247// jQuery('#section-thinkup_general_sidebars').hide();248// }249 // Select sidebar for Homepage Layout - DONE250// if( jQuery('#section-thinkup_homepage_layout input[value=option2]').is(":checked") || jQuery('#section-thinkup_homepage_layout input[value=option3]').is(":checked") ){251// jQuery('#section-thinkup_homepage_sidebars').show();252// }253// else if(jQuery('#section-thinkup_homepage_layout input[value=option2]').not(":checked") || jQuery('#section-thinkup_homepage_layout input[value=option3]').not(":checked") ){254// jQuery('#section-thinkup_homepage_sidebars').hide();255// }256 // Header - Choose Header Style (Option 2) - DONE 257// if(jQuery('#section-thinkup_header_styleswitch input[value=option1]').is(":checked")){258// jQuery('#section-thinkup_header_locationswitch').show();259// }260// else if(jQuery('#section-thinkup_header_styleswitch input[value=option1]').not(":checked")){261// jQuery('#section-thinkup_header_locationswitch').hide();262// }263 // Select sidebar for Blog Layout - DONE264// if( jQuery('#section-thinkup_blog_layout input[value=option2]').is(":checked") || jQuery('#section-thinkup_blog_layout input[value=option3]').is(":checked") ){265// jQuery('#section-thinkup_blog_sidebars').show();266// }267// else if(jQuery('#section-thinkup_blog_layout input[value=option2]').not(":checked") || jQuery('#section-thinkup_blog_layout input[value=option3]').not(":checked") ){268// jQuery('#section-thinkup_blog_sidebars').hide();269// }270 // Select Blog Style - DONE271// if( jQuery('#section-thinkup_blog_style input[value=option1]').is(":checked") ){272// jQuery('#section-thinkup_blog_style1layout').show();273// }274// else if(jQuery('#section-thinkup_blog_style input[value=option1]').not(":checked") ){275// jQuery('#section-thinkup_blog_style1layout').hide();276// }277// if( jQuery('#section-thinkup_blog_style input[value=option2]').is(":checked") ){278// jQuery('#section-thinkup_blog_style2layout').show();279// }280// else if(jQuery('#section-thinkup_blog_style input[value=option2]').not(":checked") ){281// jQuery('#section-thinkup_blog_style2layout').hide();282// }283 // Select Blog Style - DONE284// if( jQuery('#section-thinkup_blog_postswitch input[value=option1]').is(":checked") ){285// jQuery('#section-thinkup_blog_postexcerpt').show();286// }287// else if(jQuery('#section-thinkup_blog_postswitch input[value=option1]').not(":checked") ){288// jQuery('#section-thinkup_blog_postexcerpt').hide();289// }290 // Select sidebar for Post Layout - DONE291// if( jQuery('#section-thinkup_post_layout input[value=option2]').is(":checked") || jQuery('#section-thinkup_post_layout input[value=option3]').is(":checked") ){292// jQuery('#section-thinkup_post_sidebars').show();293// }294// else if(jQuery('#section-thinkup_post_layout input[value=option2]').not(":checked") || jQuery('#section-thinkup_post_layout input[value=option3]').not(":checked") ){295// jQuery('#section-thinkup_post_sidebars').hide();296// }297 // Select sidebar for Portfolio Layout DONE298// if( jQuery('#section-thinkup_portfolio_layout input[value=option5]').is(":checked") || jQuery('#section-thinkup_portfolio_layout input[value=option6]').is(":checked") || jQuery('#section-thinkup_portfolio_layout input[value=option7]').is(":checked") || jQuery('#section-thinkup_portfolio_layout input[value=option8]').is(":checked") ){299// jQuery('#section-thinkup_portfolio_sidebars').show();300// }301// else if(jQuery('#section-thinkup_portfolio_layout input[value=option5]').not(":checked") || jQuery('#section-thinkup_portfolio_layout input[value=option6]').not(":checked") || jQuery('#section-thinkup_portfolio_layout input[value=option7]').not(":checked") || jQuery('#section-thinkup_portfolio_layout input[value=option8]').not(":checked") ){302// jQuery('#section-thinkup_portfolio_sidebars').hide();303// }304 // Select sidebar for Project Layout - DONE305// if( jQuery('#section-thinkup_project_layout input[value=option2]').is(":checked") || jQuery('#section-thinkup_project_layout input[value=option3]').is(":checked") ){306// jQuery('#section-thinkup_project_sidebars').show();307// }308// else if(jQuery('#section-thinkup_project_layout input[value=option2]').not(":checked") || jQuery('#section-thinkup_project_layout input[value=option3]').not(":checked") ){309// jQuery('#section-thinkup_project_sidebars').hide();310// }311 // Select sidebar for WooCommerce Shop Layout - DONE312// if( jQuery('#section-thinkup_woocommerce_layout input[value=option5]').is(":checked") || jQuery('#section-thinkup_woocommerce_layout input[value=option6]').is(":checked") || jQuery('#section-thinkup_woocommerce_layout input[value=option7]').is(":checked") || jQuery('#section-thinkup_woocommerce_layout input[value=option8]').is(":checked") ){313// jQuery('#section-thinkup_woocommerce_sidebars').show();314// }315// else if(jQuery('#section-thinkup_woocommerce_layout input[value=option5]').not(":checked") || jQuery('#section-thinkup_woocommerce_layout input[value=option6]').not(":checked") || jQuery('#section-thinkup_woocommerce_layout input[value=option7]').not(":checked") || jQuery('#section-thinkup_woocommerce_layout input[value=option8]').not(":checked") ){316// jQuery('#section-thinkup_woocommerce_sidebars').hide();317// }318 // Select sidebar for WooCommerce Product Layout - DONE319// if( jQuery('#section-thinkup_woocommerce_layoutproduct input[value=option2]').is(":checked") || jQuery('#section-thinkup_woocommerce_layoutproduct input[value=option3]').is(":checked") ){320// jQuery('#section-thinkup_woocommerce_sidebarsproduct').show();321// }322// else if(jQuery('#section-thinkup_woocommerce_layoutproduct input[value=option2]').not(":checked") || jQuery('#section-thinkup_woocommerce_layoutproduct input[value=option3]').not(":checked") ){323// jQuery('#section-thinkup_woocommerce_sidebarsproduct').hide();324// }325 // Homepage - Enable Homepage Blog - DONE326// if(jQuery('#section-thinkup_homepage_blog input').is(":checked")){327// jQuery('#section-thinkup_homepage_addtext').hide();328// jQuery('#section-thinkup_homepage_addtextparagraph').hide();329// jQuery('#section-thinkup_homepage_addpage').hide();330// }331// else if(jQuery('#section-thinkup_homepage_blog input').not(":checked")){332// jQuery('#section-thinkup_homepage_addtext').show();333// jQuery('#section-thinkup_homepage_addtextparagraph').show();334// jQuery('#section-thinkup_homepage_addpage').show();335// }336 // Homepage - Enable Slider337// if(jQuery('#thinkup_homepage_sliderswitch-buttonsetoption1').is(":checked")){338// jQuery('#section-thinkup_homepage_sliderpreset').show();339// jQuery('#section-thinkup_homepage_sliderspeed').show();340// jQuery('#section-thinkup_homepage_sliderstyle').show();341// jQuery('#section-thinkup_homepage_sliderpresetwidth').show();342// jQuery('#section-thinkup_homepage_sliderpresetheight').show();343// }344// else if(jQuery('#thinkup_homepage_sliderswitch-buttonsetoption1').not(":checked")){345// jQuery('#section-thinkup_homepage_sliderpreset').hide();346// jQuery('#section-thinkup_homepage_sliderspeed').hide();347// jQuery('#section-thinkup_homepage_sliderstyle').hide();348// jQuery('#section-thinkup_homepage_sliderpresetwidth').hide();349// jQuery('#section-thinkup_homepage_sliderpresetheight').hide();350// }351// if(jQuery('#thinkup_homepage_sliderswitch-buttonsetoption2').is(":checked")){352// jQuery('#section-thinkup_homepage_slidername').show();353// }354// else if(jQuery('#thinkup_homepage_sliderswitch-buttonsetoption2').not(":checked")){355// jQuery('#section-thinkup_homepage_slidername').hide();356// } 357 // Homepage - Button 1 Call To Action Intro Link (Option 1) - DONE358// if(jQuery('#section-thinkup_homepage_introactionlink1 input[value=option1]').is(":checked")){359// jQuery('#section-thinkup_homepage_introactionpage1').show();360// }361// else if(jQuery('#section-thinkup_homepage_introactionlink1 input[value=option1]').not(":checked")){362// jQuery('#section-thinkup_homepage_introactionpage1').hide();363// }364 // Homepage - Button 1 Call To Action Intro Link (Option 2) - DONE365// if(jQuery('#section-thinkup_homepage_introactionlink1 input[value=option2]').is(":checked")){366// jQuery('#section-thinkup_homepage_introactioncustom1').show();367// }368// else if(jQuery('#section-thinkup_homepage_introactionlink1 input[value=option2]').not(":checked")){369// jQuery('#section-thinkup_homepage_introactioncustom1').hide();370// }371 // Homepage - Button 2 Call To Action Intro Link (Option 1) - DONE372// if(jQuery('#section-thinkup_homepage_introactionlink2 input[value=option1]').is(":checked")){373// jQuery('#section-thinkup_homepage_introactionpage2').show();374// }375// else if(jQuery('#section-thinkup_homepage_introactionlink2 input[value=option1]').not(":checked")){376// jQuery('#section-thinkup_homepage_introactionpage2').hide();377// }378 // Homepage - Button 2 Call To Action Intro Link (Option 2) - DONE379// if(jQuery('#section-thinkup_homepage_introactionlink2 input[value=option2]').is(":checked")){380// jQuery('#section-thinkup_homepage_introactioncustom2').show();381// }382// else if(jQuery('#section-thinkup_homepage_introactionlink2 input[value=option2]').not(":checked")){383// jQuery('#section-thinkup_homepage_introactioncustom2').hide();384// }385 // Homepage - Button 1 Call To Action Outro Link (Option 1) - DONE386// if(jQuery('#section-thinkup_homepage_outroactionlink1 input[value=option1]').is(":checked")){387// jQuery('#section-thinkup_homepage_outroactionpage1').show();388// }389// else if(jQuery('#section-thinkup_homepage_outroactionlink1 input[value=option1]').not(":checked")){390// jQuery('#section-thinkup_homepage_outroactionpage1').hide();391// }392 // Homepage - Button 1 Call To Action Outro Link (Option 2) - DONE393// if(jQuery('#section-thinkup_homepage_outroactionlink1 input[value=option2]').is(":checked")){394// jQuery('#section-thinkup_homepage_outroactioncustom1').show();395// }396// else if(jQuery('#section-thinkup_homepage_outroactionlink1 input[value=option2]').not(":checked")){397// jQuery('#section-thinkup_homepage_outroactioncustom1').hide();398// }399 // Homepage - Button 2 Call To Action Outro Link (Option 1) - DONE400// if(jQuery('#section-thinkup_homepage_outroactionlink2 input[value=option1]').is(":checked")){401// jQuery('#section-thinkup_homepage_outroactionpage2').show();402// }403// else if(jQuery('#section-thinkup_homepage_outroactionlink2 input[value=option1]').not(":checked")){404// jQuery('#section-thinkup_homepage_outroactionpage2').hide();405// }406 // Homepage - Button 2 Call To Action Outro Link (Option 2) - DONE407// if(jQuery('#section-thinkup_homepage_outroactionlink2 input[value=option2]').is(":checked")){408// jQuery('#section-thinkup_homepage_outroactioncustom2').show();409// }410// else if(jQuery('#section-thinkup_homepage_outroactionlink2 input[value=option2]').not(":checked")){411// jQuery('#section-thinkup_homepage_outroactioncustom2').hide();412// }413 // Footer - Button 1 Call To Action Outro Link (Option 1) - DONE414// if(jQuery('#section-thinkup_footer_outroactionlink1 input[value=option1]').is(":checked")){415// jQuery('#section-thinkup_footer_outroactionpage1').show();416// }417// else if(jQuery('#section-thinkup_footer_outroactionlink1 input[value=option1]').not(":checked")){418// jQuery('#section-thinkup_footer_outroactionpage1').hide();419// }420 // Footer - Button 1 Call To Action Outro Link (Option 2) - DONE421// if(jQuery('#section-thinkup_footer_outroactionlink1 input[value=option2]').is(":checked")){422// jQuery('#section-thinkup_footer_outroactioncustom1').show();423// }424// else if(jQuery('#section-thinkup_footer_outroactionlink1 input[value=option2]').not(":checked")){425// jQuery('#section-thinkup_footer_outroactioncustom1').hide();426// }427 // Footer - Button 2 Call To Action Outro Link (Option 1) - DONE428// if(jQuery('#section-thinkup_footer_outroactionlink2 input[value=option1]').is(":checked")){429// jQuery('#section-thinkup_footer_outroactionpage2').show();430// }431// else if(jQuery('#section-thinkup_footer_outroactionlink2 input[value=option1]').not(":checked")){432// jQuery('#section-thinkup_footer_outroactionpage2').hide();433// }434 // Footer - Button 2 Call To Action Outro Link (Option 2) - DONE435// if(jQuery('#section-thinkup_footer_outroactionlink2 input[value=option2]').is(":checked")){436// jQuery('#section-thinkup_footer_outroactioncustom2').show();437// }438// else if(jQuery('#section-thinkup_footer_outroactionlink2 input[value=option2]').not(":checked")){439// jQuery('#section-thinkup_footer_outroactioncustom2').hide();440// }441 // Notification Bar - Add Button Link (Option 1) - DONE442// if(jQuery('#section-thinkup_notification_link input[value=option1]').is(":checked")){443// jQuery('#section-thinkup_notification_linkpage').show('slow');444// }445// else if(jQuery('#section-thinkup_notification_link input[value=option1]').not(":checked")){446// jQuery('#section-thinkup_notification_linkpage').hide('slow');447// }448 // Notification Bar - Add Button Link (Option 2) - DONE449// if(jQuery('#section-thinkup_notification_link input[value=option2]').is(":checked")){450// jQuery('#section-thinkup_notification_linkcustom').show('slow');451// }452// else if(jQuery('#section-thinkup_notification_link input[value=option2]').not(":checked")){453// jQuery('#section-thinkup_notification_linkcustom').hide('slow');454// }455 // Typography - Body Font (Font Family) - DONE456// if(jQuery('#section-thinkup_font_bodyswitch input').is(":checked")){457// jQuery('#section-thinkup_font_bodystandard').hide();458// jQuery('#section-thinkup_font_bodygoogle').show();459// }460// else if(jQuery('#section-thinkup_font_bodyswitch input').not(":checked")){461// jQuery('#section-thinkup_font_bodystandard').show();462// jQuery('#section-thinkup_font_bodygoogle').hide();463// }464 // Typography - Body Headings (Font Family) - DONE465// if(jQuery('#section-thinkup_font_bodyheadingswitch input').is(":checked")){466// jQuery('#section-thinkup_font_bodyheadingstandard').hide();467// jQuery('#section-thinkup_font_bodyheadinggoogle').show();468// }469// else if(jQuery('#section-thinkup_font_bodyheadingswitch input').not(":checked")){470// jQuery('#section-thinkup_font_bodyheadingstandard').show();471// jQuery('#section-thinkup_font_bodyheadinggoogle').hide();472// }473 // Typography - Footer Headings (Font Family) - DONE474// if(jQuery('#section-thinkup_font_footerheadingswitch input').is(":checked")){475// jQuery('#section-thinkup_font_footerheadingstandard').hide();476// jQuery('#section-thinkup_font_footerheadinggoogle').show();477// }478// else if(jQuery('#section-thinkup_font_footerheadingswitch input').not(":checked")){479// jQuery('#section-thinkup_font_footerheadingstandard').show();480// jQuery('#section-thinkup_font_footerheadinggoogle').hide();481// }482 // Typography - Pre Header Menu (Font Family) - DONE483// if(jQuery('#section-thinkup_font_preheaderswitch input').is(":checked")){484// jQuery('#section-thinkup_font_preheaderstandard').hide();485// jQuery('#section-thinkup_font_preheadergoogle').show();486// }487// else if(jQuery('#section-thinkup_font_preheaderswitch input').not(":checked")){488// jQuery('#section-thinkup_font_preheaderstandard').show();489// jQuery('#section-thinkup_font_preheadergoogle').hide();490// }491 // Typography - Main Header Menu (Font Family) - DONE492// if(jQuery('#section-thinkup_font_mainheaderswitch input').is(":checked")){493// jQuery('#section-thinkup_font_mainheaderstandard').hide();494// jQuery('#section-thinkup_font_mainheadergoogle').show();495// }496// else if(jQuery('#section-thinkup_font_mainheaderswitch input').not(":checked")){497// jQuery('#section-thinkup_font_mainheaderstandard').show();498// jQuery('#section-thinkup_font_mainheadergoogle').hide();499// }500 // Typography - Main Footer Menu (Font Family) - DONE501// if(jQuery('#section-thinkup_font_mainfooterswitch input').is(":checked")){502// jQuery('#section-thinkup_font_mainfooterstandard').hide();503// jQuery('#section-thinkup_font_mainfootergoogle').show();504// }505// else if(jQuery('#section-thinkup_font_mainfooterswitch input').not(":checked")){506// jQuery('#section-thinkup_font_mainfooterstandard').show();507// jQuery('#section-thinkup_font_mainfootergoogle').hide();508// }509 // Typography - Post Footer Menu (Font Family) - DONE510// if(jQuery('#section-thinkup_font_postfooterswitch input').is(":checked")){511// jQuery('#section-thinkup_font_postfooterstandard').hide();512// jQuery('#section-thinkup_font_postfootergoogle').show();513// }514// else if(jQuery('#section-thinkup_font_postfooterswitch input').not(":checked")){515// jQuery('#section-thinkup_font_postfooterstandard').show();516// jQuery('#section-thinkup_font_postfootergoogle').hide();517// }518 // Typography - Slider Title (Font Family) - DONE519// if(jQuery('#section-thinkup_font_slidertitleswitch input').is(":checked")){520// jQuery('#section-thinkup_font_slidertitlestandard').hide();521// jQuery('#section-thinkup_font_slidertitlegoogle').show();522// }523// else if(jQuery('#section-thinkup_font_slidertitleswitch input').not(":checked")){524// jQuery('#section-thinkup_font_slidertitlestandard').show();525// jQuery('#section-thinkup_font_slidertitlegoogle').hide();526// }527 // Typography - Slider Description (Font Family) - DONE528// if(jQuery('#section-thinkup_font_slidertextswitch input').is(":checked")){529// jQuery('#section-thinkup_font_slidertextstandard').hide();530// jQuery('#section-thinkup_font_slidertextgoogle').show();531// }532// else if(jQuery('#section-thinkup_font_slidertextswitch input').not(":checked")){533// jQuery('#section-thinkup_font_slidertextstandard').show();534// jQuery('#section-thinkup_font_slidertextgoogle').hide();535// }536 // Meta General Page Options - Header Position537 if( jQuery('tr._thinkup_meta_headerstyle input[value=option2]').is(":checked") ){538 jQuery('tr._thinkup_meta_headerlocation').show();539 }540 else if( jQuery('tr._thinkup_meta_headerstyle input[value=option2]').not(":checked") ){541 jQuery('tr._thinkup_meta_headerlocation').hide();542 }543 // Meta General Page Options - Enable Slider544 if(jQuery('tr._thinkup_meta_slider input').is(":checked")){545 jQuery('tr._thinkup_meta_slidername').show();546 }547 else if(jQuery('tr._thinkup_meta_slider input').not(":checked")){548 jQuery('tr._thinkup_meta_slidername').hide();549 }550 // Meta General Page Options - Page Layout (Options 3 & 4)551 if(jQuery('tr._thinkup_meta_layout input[value=option3]').is(":checked") || jQuery('tr._thinkup_meta_layout input[value=option4]').is(":checked")){552 jQuery('tr._thinkup_meta_sidebars').show();553 }554 else if(jQuery('tr._thinkup_meta_layout input[value=option3]').not(":checked") || jQuery('tr._thinkup_meta_layout input[value=option4]').not(":checked")){555 jQuery('tr._thinkup_meta_sidebars').hide();556 }557});558/* ----------------------------------------------------------------------------------559 HIDE / SHOW OPTIONS ON RADIO CLICK560---------------------------------------------------------------------------------- */561jQuery(document).ready(function(){562 jQuery('input[type=radio]').change(function() {563 // General - Logo Settings (Option 1) - DONE564// if(jQuery('#section-thinkup_general_logoswitch input[value=option1]').is(":checked")){565// jQuery('#section-thinkup_general_logolink').fadeIn('slow');566// jQuery('#section-thinkup_general_logolinkretina').fadeIn('slow');567// }568// else if(jQuery('#section-thinkup_general_logoswitch input[value=option1]').not(":checked")){569// jQuery('#section-thinkup_general_logolink').fadeOut('slow');570// jQuery('#section-thinkup_general_logolinkretina').fadeOut('slow');571// }572 /* General - Logo Settings (Option 2) - DONE */573// if(jQuery('#section-thinkup_general_logoswitch input[value=option2]').is(":checked")){574// jQuery('#section-thinkup_general_sitetitle').fadeIn('slow');575// jQuery('#section-thinkup_general_sitedescription').fadeIn('slow');576// }577// else if(jQuery('#section-thinkup_general_logoswitch input[value=option2]').not(":checked")){578// jQuery('#section-thinkup_general_sitetitle').fadeOut('slow');579// jQuery('#section-thinkup_general_sitedescription').fadeOut('slow');580// }581 // Homepage - Enable Slider582// if(jQuery('#thinkup_homepage_sliderswitch-buttonsetoption1').is(":checked")){583// jQuery('#section-thinkup_homepage_sliderpreset').fadeIn('slow');584// jQuery('#section-thinkup_homepage_sliderspeed').fadeIn('slow');585// jQuery('#section-thinkup_homepage_sliderstyle').fadeIn('slow');586// jQuery('#section-thinkup_homepage_sliderpresetwidth').fadeIn('slow');587// jQuery('#section-thinkup_homepage_sliderpresetheight').fadeIn('slow');588// }589// else if(jQuery('#thinkup_homepage_sliderswitch-buttonsetoption1').not(":checked")){590// jQuery('#section-thinkup_homepage_sliderpreset').fadeOut('slow');591// jQuery('#section-thinkup_homepage_sliderspeed').fadeOut('slow');592// jQuery('#section-thinkup_homepage_sliderstyle').fadeOut('slow');593// jQuery('#section-thinkup_homepage_sliderpresetwidth').fadeOut('slow');594// jQuery('#section-thinkup_homepage_sliderpresetheight').fadeOut('slow');595// }596// if(jQuery('#thinkup_homepage_sliderswitch-buttonsetoption2').is(":checked")){597// jQuery('#section-thinkup_homepage_slidername').fadeIn('slow');598// }599// else if(jQuery('#thinkup_homepage_sliderswitch-buttonsetoption2').not(":checked")){600// jQuery('#section-thinkup_homepage_slidername').fadeOut('slow');601// }602 /* Homepage - Button 1 Call To Action Intro Link (Option 1) - DONE */603// if(jQuery('#section-thinkup_homepage_introactionlink1 input[value=option1]').is(":checked")){604// jQuery('#section-thinkup_homepage_introactionpage1').fadeIn('slow');605// }606// else if(jQuery('#section-thinkup_homepage_introactionlink1 input[value=option1]').not(":checked")){607// jQuery('#section-thinkup_homepage_introactionpage1').fadeOut('slow');608// }609 /* Homepage - Button 1 Call To Action Intro Link (Option 2) - DONE */610// if(jQuery('#section-thinkup_homepage_introactionlink1 input[value=option2]').is(":checked")){611// jQuery('#section-thinkup_homepage_introactioncustom1').fadeIn('slow');612// }613// else if(jQuery('#section-thinkup_homepage_introactionlink1 input[value=option2]').not(":checked")){614// jQuery('#section-thinkup_homepage_introactioncustom1').fadeOut('slow');615// }616 /* Homepage - Button 2 Call To Action Intro Link (Option 1) - DONE */617// if(jQuery('#section-thinkup_homepage_introactionlink2 input[value=option1]').is(":checked")){618// jQuery('#section-thinkup_homepage_introactionpage2').fadeIn('slow');619// }620// else if(jQuery('#section-thinkup_homepage_introactionlink2 input[value=option1]').not(":checked")){621// jQuery('#section-thinkup_homepage_introactionpage2').fadeOut('slow');622// }623 /* Homepage - Button 2 Call To Action Intro Link (Option 2) - DONE */624// if(jQuery('#section-thinkup_homepage_introactionlink2 input[value=option2]').is(":checked")){625// jQuery('#section-thinkup_homepage_introactioncustom2').fadeIn('slow');626// }627// else if(jQuery('#section-thinkup_homepage_introactionlink2 input[value=option2]').not(":checked")){628// jQuery('#section-thinkup_homepage_introactioncustom2').fadeOut('slow');629// }630 /* Homepage - Button 1 Call To Action Outro Link (Option 1) - DONE */631// if(jQuery('#section-thinkup_homepage_outroactionlink1 input[value=option1]').is(":checked")){632// jQuery('#section-thinkup_homepage_outroactionpage1').fadeIn('slow');633// }634// else if(jQuery('#section-thinkup_homepage_outroactionlink1 input[value=option1]').not(":checked")){635// jQuery('#section-thinkup_homepage_outroactionpage1').fadeOut('slow');636// }637 /* Homepage - Button 1 Call To Action Outro Link (Option 2) - DONE */638// if(jQuery('#section-thinkup_homepage_outroactionlink1 input[value=option2]').is(":checked")){639// jQuery('#section-thinkup_homepage_outroactioncustom1').fadeIn('slow');640// }641// else if(jQuery('#section-thinkup_homepage_outroactionlink1 input[value=option2]').not(":checked")){642// jQuery('#section-thinkup_homepage_outroactioncustom1').fadeOut('slow');643// }644 /* Homepage - Button 2 Call To Action Outro Link (Option 1) - DONE */645// if(jQuery('#section-thinkup_homepage_outroactionlink2 input[value=option1]').is(":checked")){646// jQuery('#section-thinkup_homepage_outroactionpage2').fadeIn('slow');647// }648// else if(jQuery('#section-thinkup_homepage_outroactionlink2 input[value=option1]').not(":checked")){649// jQuery('#section-thinkup_homepage_outroactionpage2').fadeOut('slow');650// }651 /* Homepage - Button 2 Call To Action Outro Link (Option 2) - DONE */652// if(jQuery('#section-thinkup_homepage_outroactionlink2 input[value=option2]').is(":checked")){653// jQuery('#section-thinkup_homepage_outroactioncustom2').fadeIn('slow');654// }655// else if(jQuery('#section-thinkup_homepage_outroactionlink2 input[value=option2]').not(":checked")){656// jQuery('#section-thinkup_homepage_outroactioncustom2').fadeOut('slow');657// }658 // Header - Choose Header Style (Option 1) - DONE 659// if(jQuery('#section-thinkup_header_styleswitch input[value=option1]').is(":checked")){660// jQuery('#section-thinkup_header_locationswitch').fadeIn('slow');661// }662// else if(jQuery('#section-thinkup_header_styleswitch input[value=option1]').not(":checked")){663// jQuery('#section-thinkup_header_locationswitch').fadeOut('slow');664// }665 /* Footer - Button 1 Call To Action Outro Link (Option 1) - DONE */666// if(jQuery('#section-thinkup_footer_outroactionlink1 input[value=option1]').is(":checked")){667// jQuery('#section-thinkup_footer_outroactionpage1').fadeIn('slow');668// }669// else if(jQuery('#section-thinkup_footer_outroactionlink1 input[value=option1]').not(":checked")){670// jQuery('#section-thinkup_footer_outroactionpage1').fadeOut('slow');671// }672 /* Footer - Button 1 Call To Action Outro Link (Option 2) - DONE */673// if(jQuery('#section-thinkup_footer_outroactionlink1 input[value=option2]').is(":checked")){674// jQuery('#section-thinkup_footer_outroactioncustom1').fadeIn('slow');675// }676// else if(jQuery('#section-thinkup_footer_outroactionlink1 input[value=option2]').not(":checked")){677// jQuery('#section-thinkup_footer_outroactioncustom1').fadeOut('slow');678// }679 /* Footer - Button 2 Call To Action Outro Link (Option 1) - DONE */680// if(jQuery('#section-thinkup_footer_outroactionlink2 input[value=option1]').is(":checked")){681// jQuery('#section-thinkup_footer_outroactionpage2').fadeIn('slow');682// }683// else if(jQuery('#section-thinkup_footer_outroactionlink2 input[value=option1]').not(":checked")){684// jQuery('#section-thinkup_footer_outroactionpage2').fadeOut('slow');685// }686 /* Footer - Button 2 Call To Action Outro Link (Option 2) - DONE */687// if(jQuery('#section-thinkup_footer_outroactionlink2 input[value=option2]').is(":checked")){688// jQuery('#section-thinkup_footer_outroactioncustom2').fadeIn('slow');689// }690// else if(jQuery('#section-thinkup_footer_outroactionlink2 input[value=option2]').not(":checked")){691// jQuery('#section-thinkup_footer_outroactioncustom2').fadeOut('slow');692// }693 /* Notification Bar - Add Button Link (Option 1) - DONE */694// if(jQuery('#section-thinkup_notification_link input[value=option1]').is(":checked")){695// jQuery('#section-thinkup_notification_linkpage').fadeIn('slow');696// }697// else if(jQuery('#section-thinkup_notification_link input[value=option1]').not(":checked")){698// jQuery('#section-thinkup_notification_linkpage').fadeOut('slow');699// }700 /* Notification Bar - Add Button Link (Option 2) - DONE */701// if(jQuery('#section-thinkup_notification_link input[value=option2]').is(":checked")){702// jQuery('#section-thinkup_notification_linkcustom').fadeIn('slow');703// }704// else if(jQuery('#section-thinkup_notification_link input[value=option2]').not(":checked")){705// jQuery('#section-thinkup_notification_linkcustom').fadeOut('slow');706// }707 // Meta General Page Options - Header Position708 if( jQuery('tr._thinkup_meta_headerstyle input[value=option2]').is(":checked") ){709 jQuery('tr._thinkup_meta_headerlocation').fadeIn();710 }711 else if( jQuery('tr._thinkup_meta_headerstyle input[value=option2]').not(":checked") ){712 jQuery('tr._thinkup_meta_headerlocation').fadeOut();713 }714 /* Meta General Page Options - Page Layout (Options 3 & 4) */715 if(jQuery('tr._thinkup_meta_layout input[value=option3]').is(":checked") || jQuery('tr._thinkup_meta_layout input[value=option4]').is(":checked")){716 jQuery('tr._thinkup_meta_sidebars').fadeIn();717 }718 else if(jQuery('tr._thinkup_meta_layout input[value=option3]').not(":checked") || jQuery('tr._thinkup_meta_layout input[value=option4]').not(":checked")){719 jQuery('tr._thinkup_meta_sidebars').fadeOut();720 }721 });722});723/* ----------------------------------------------------------------------------------724 HIDE / SHOW OPTIONS ON CHECKBOX CLICK725---------------------------------------------------------------------------------- */726jQuery(document).ready(function(){727 jQuery('input[type=checkbox]').change(function() {728 /* Homepage - Enable Homepage Blog - DONE */729// if(jQuery('#section-thinkup_homepage_blog input').is(":checked")){730// jQuery('#section-thinkup_homepage_addtext').fadeOut();731// jQuery('#section-thinkup_homepage_addtextparagraph').fadeOut();732// jQuery('#section-thinkup_homepage_addpage').fadeOut();733// }734// else if(jQuery('#section-thinkup_homepage_blog input').not(":checked")){735// jQuery('#section-thinkup_homepage_addtext').fadeIn();736// jQuery('#section-thinkup_homepage_addtextparagraph').fadeIn();737// jQuery('#section-thinkup_homepage_addpage').fadeIn();738// }739 740 /* Typography - Body Font (Font Family) - DONE */741// if(jQuery('#section-thinkup_font_bodyswitch input').is(":checked")){742// jQuery('#section-thinkup_font_bodystandard').fadeOut();743// jQuery('#section-thinkup_font_bodygoogle').fadeIn();744// }745// else if(jQuery('#section-thinkup_font_bodyswitch input').not(":checked")){746// jQuery('#section-thinkup_font_bodystandard').fadeIn();747// jQuery('#section-thinkup_font_bodygoogle').fadeOut();748// }749 /* Typography - Body Headings (Font Family) - DONE */750// if(jQuery('#section-thinkup_font_bodyheadingswitch input').is(":checked")){751// jQuery('#section-thinkup_font_bodyheadingstandard').fadeOut();752// jQuery('#section-thinkup_font_bodyheadinggoogle').fadeIn();753// }754// else if(jQuery('#section-thinkup_font_bodyheadingswitch input').not(":checked")){755// jQuery('#section-thinkup_font_bodyheadingstandard').fadeIn();756// jQuery('#section-thinkup_font_bodyheadinggoogle').fadeOut();757// }758 /* Typography - Footer Headings (Font Family) - DONE */759// if(jQuery('#section-thinkup_font_footerheadingswitch input').is(":checked")){760// jQuery('#section-thinkup_font_footerheadingstandard').fadeOut();761// jQuery('#section-thinkup_font_footerheadinggoogle').fadeIn();762// }763// else if(jQuery('#section-thinkup_font_footerheadingswitch input').not(":checked")){764// jQuery('#section-thinkup_font_footerheadingstandard').fadeIn();765// jQuery('#section-thinkup_font_footerheadinggoogle').fadeOut();766// }767 /* Typography - Pre Header Menu (Font Family) - DONE */768// if(jQuery('#section-thinkup_font_preheaderswitch input').is(":checked")){769// jQuery('#section-thinkup_font_preheaderstandard').fadeOut();770// jQuery('#section-thinkup_font_preheadergoogle').fadeIn();771// }772// else if(jQuery('#section-thinkup_font_preheaderswitch input').not(":checked")){773// jQuery('#section-thinkup_font_preheaderstandard').fadeIn();774// jQuery('#section-thinkup_font_preheadergoogle').fadeOut();775// }776 /* Typography - Main Header Menu (Font Family) - DONE */777// if(jQuery('#section-thinkup_font_mainheaderswitch input').is(":checked")){778// jQuery('#section-thinkup_font_mainheaderstandard').fadeOut();779// jQuery('#section-thinkup_font_mainheadergoogle').fadeIn();780// }781// else if(jQuery('#section-thinkup_font_mainheaderswitch input').not(":checked")){782// jQuery('#section-thinkup_font_mainheaderstandard').fadeIn();783// jQuery('#section-thinkup_font_mainheadergoogle').fadeOut();784// }785 /* Typography - Main Footer Menu (Font Family) - DONE */786// if(jQuery('#section-thinkup_font_mainfooterswitch input').is(":checked")){787// jQuery('#section-thinkup_font_mainfooterstandard').fadeOut();788// jQuery('#section-thinkup_font_mainfootergoogle').fadeIn();789// }790// else if(jQuery('#section-thinkup_font_mainfooterswitch input').not(":checked")){791// jQuery('#section-thinkup_font_mainfooterstandard').fadeIn();792// jQuery('#section-thinkup_font_mainfootergoogle').fadeOut();793// }794 /* Typography - Post Footer Menu (Font Family) - DONE */795// if(jQuery('#section-thinkup_font_postfooterswitch input').is(":checked")){796// jQuery('#section-thinkup_font_postfooterstandard').fadeOut();797// jQuery('#section-thinkup_font_postfootergoogle').fadeIn();798// }799// else if(jQuery('#section-thinkup_font_postfooterswitch input').not(":checked")){800// jQuery('#section-thinkup_font_postfooterstandard').fadeIn();801// jQuery('#section-thinkup_font_postfootergoogle').fadeOut();802// }803 /* Typography - Slider Title (Font Family) - DONE */804// if(jQuery('#section-thinkup_font_slidertitleswitch input').is(":checked")){805// jQuery('#section-thinkup_font_slidertitlestandard').fadeOut();806// jQuery('#section-thinkup_font_slidertitlegoogle').fadeIn();807// }808// else if(jQuery('#section-thinkup_font_slidertitleswitch input').not(":checked")){809// jQuery('#section-thinkup_font_slidertitlestandard').fadeIn();810// jQuery('#section-thinkup_font_slidertitlegoogle').fadeOut();811// }812 /* Typography - Slider Text (Font Family) - DONE */813// if(jQuery('#section-thinkup_font_slidertextswitch input').is(":checked")){814// jQuery('#section-thinkup_font_slidertextstandard').fadeOut();815// jQuery('#section-thinkup_font_slidertextgoogle').fadeIn();816// }817// else if(jQuery('#section-thinkup_font_slidertextswitch input').not(":checked")){818// jQuery('#section-thinkup_font_slidertextstandard').fadeIn();819// jQuery('#section-thinkup_font_slidertextgoogle').fadeOut();820// }821 /* Meta General Page Options - Enable Slider */822 if(jQuery('tr._thinkup_meta_slider input').is(":checked")){823 jQuery('tr._thinkup_meta_slidername').show();824 }825 else if(jQuery('tr._thinkup_meta_slider input').not(":checked")){826 jQuery('tr._thinkup_meta_slidername').hide();827 }828 });829});830/* ----------------------------------------------------------------------------------831 HIDE / SHOW OPTIONS ON SIDEBAR IMAGE CLICK - MAIN OPTIONS PANEL832---------------------------------------------------------------------------------- */833jQuery(document).ready(function(){834 jQuery('input[type=radio]').change(function() {835 /* Select sidebar for Page Layout - DONE */836// if( jQuery('#section-thinkup_general_layout input[value=option2]').is(":checked") || jQuery('#section-thinkup_general_layout input[value=option3]').is(":checked") ){837// jQuery('#section-thinkup_general_sidebars').fadeIn();838// }839// else if(jQuery('#section-thinkup_general_layout input[value=option2]').not(":checked") || jQuery('#section-thinkup_general_layout input[value=option3]').not(":checked") ){840// jQuery('#section-thinkup_general_sidebars').fadeOut();841// }842 /* Select sidebar for Homepage Layout - DONE */843// if( jQuery('#section-thinkup_homepage_layout input[value=option2]').is(":checked") || jQuery('#section-thinkup_homepage_layout input[value=option3]').is(":checked") ){844// jQuery('#section-thinkup_homepage_sidebars').fadeIn();845// }846// else if(jQuery('#section-thinkup_homepage_layout input[value=option2]').not(":checked") || jQuery('#section-thinkup_homepage_layout input[value=option3]').not(":checked") ){847// jQuery('#section-thinkup_homepage_sidebars').fadeOut();848// }849 /* Select sidebar for Blog Layout - DONE */850// if( jQuery('#section-thinkup_blog_layout input[value=option2]').is(":checked") || jQuery('#section-thinkup_blog_layout input[value=option3]').is(":checked") ){851// jQuery('#section-thinkup_blog_sidebars').fadeIn();852// }853// else if(jQuery('#section-thinkup_blog_layout input[value=option2]').not(":checked") || jQuery('#section-thinkup_blog_layout input[value=option3]').not(":checked") ){854// jQuery('#section-thinkup_blog_sidebars').fadeOut();855// }856 // Select Blog Style - DONE857// if( jQuery('#section-thinkup_blog_style input[value=option1]').is(":checked") ){858// jQuery('#section-thinkup_blog_style1layout').fadeIn();859// }860// else if(jQuery('#section-thinkup_blog_style input[value=option1]').not(":checked") ){861// jQuery('#section-thinkup_blog_style1layout').fadeOut();862// }863// if( jQuery('#section-thinkup_blog_style input[value=option2]').is(":checked") ){864// jQuery('#section-thinkup_blog_style2layout').fadeIn();865// }866// else if(jQuery('#section-thinkup_blog_style input[value=option2]').not(":checked") ){867// jQuery('#section-thinkup_blog_style2layout').fadeOut();868// }869 // Select Blog Style - DONE870// if( jQuery('#section-thinkup_blog_postswitch input[value=option1]').is(":checked") ){871// jQuery('#section-thinkup_blog_postexcerpt').fadeIn();872// }873// else if(jQuery('#section-thinkup_blog_postswitch input[value=option1]').not(":checked") ){874// jQuery('#section-thinkup_blog_postexcerpt').fadeOut();875// }876 /* Select sidebar for Post Layout - DONE */877// if( jQuery('#section-thinkup_post_layout input[value=option2]').is(":checked") || jQuery('#section-thinkup_post_layout input[value=option3]').is(":checked") ){878// jQuery('#section-thinkup_post_sidebars').fadeIn();879// }880// else if(jQuery('#section-thinkup_post_layout input[value=option2]').not(":checked") || jQuery('#section-thinkup_post_layout input[value=option3]').not(":checked") ){881// jQuery('#section-thinkup_post_sidebars').fadeOut();882// }883 /* Select sidebar for Portfolio Layout - DONE */884// if( jQuery('#section-thinkup_portfolio_layout input[value=option5]').is(":checked") || jQuery('#section-thinkup_portfolio_layout input[value=option6]').is(":checked") || jQuery('#section-thinkup_portfolio_layout input[value=option7]').is(":checked") || jQuery('#section-thinkup_portfolio_layout input[value=option8]').is(":checked") ){885// jQuery('#section-thinkup_portfolio_sidebars').fadeIn();886// }887// else if(jQuery('#section-thinkup_portfolio_layout input[value=option5]').not(":checked") || jQuery('#section-thinkup_portfolio_layout input[value=option6]').not(":checked") || jQuery('#section-thinkup_portfolio_layout input[value=option7]').not(":checked") || jQuery('#section-thinkup_portfolio_layout input[value=option8]').not(":checked") ){888// jQuery('#section-thinkup_portfolio_sidebars').fadeOut();889// }890 /* Select sidebar for Project Layout - DONE */891// if( jQuery('#section-thinkup_project_layout input[value=option2]').is(":checked") || jQuery('#section-thinkup_project_layout input[value=option3]').is(":checked") ){892// jQuery('#section-thinkup_project_sidebars').fadeIn();893// }894// else if(jQuery('#section-thinkup_project_layout input[value=option2]').not(":checked") || jQuery('#section-thinkup_project_layout input[value=option3]').not(":checked") ){895// jQuery('#section-thinkup_project_sidebars').fadeOut();896// }897 /* Select sidebar for WooCommerce Shop Layout - DONE */898// if( jQuery('#section-thinkup_woocommerce_layout input[value=option5]').is(":checked") || jQuery('#section-thinkup_woocommerce_layout input[value=option6]').is(":checked") || jQuery('#section-thinkup_woocommerce_layout input[value=option7]').is(":checked") || jQuery('#section-thinkup_woocommerce_layout input[value=option8]').is(":checked") ){899// jQuery('#section-thinkup_woocommerce_sidebars').fadeIn();900// }901// else if(jQuery('#section-thinkup_woocommerce_layout input[value=option5]').not(":checked") || jQuery('#section-thinkup_woocommerce_layout input[value=option6]').not(":checked") || jQuery('#section-thinkup_woocommerce_layout input[value=option7]').not(":checked") || jQuery('#section-thinkup_woocommerce_layout input[value=option8]').not(":checked") ){902// jQuery('#section-thinkup_woocommerce_sidebars').fadeOut();903// }904 // Select sidebar for WooCommerce Product Layout - DONE905// if( jQuery('#section-thinkup_woocommerce_layoutproduct input[value=option2]').is(":checked") || jQuery('#section-thinkup_woocommerce_layoutproduct input[value=option3]').is(":checked") ){906// jQuery('#section-thinkup_woocommerce_sidebarsproduct').fadeIn();907// }908// else if(jQuery('#section-thinkup_woocommerce_layoutproduct input[value=option2]').not(":checked") || jQuery('#section-thinkup_woocommerce_layoutproduct input[value=option3]').not(":checked") ){909// jQuery('#section-thinkup_woocommerce_sidebarsproduct').fadeOut();910// }911 });...

Full Screen

Full Screen

jquery-1.9.js

Source:jquery-1.9.js Github

copy

Full Screen

1/*2 * Copyright 2011 The Closure Compiler Authors.3 *4 * Licensed under the Apache License, Version 2.0 (the "License");5 * you may not use this file except in compliance with the License.6 * You may obtain a copy of the License at7 *8 * http://www.apache.org/licenses/LICENSE-2.09 *10 * Unless required by applicable law or agreed to in writing, software11 * distributed under the License is distributed on an "AS IS" BASIS,12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.13 * See the License for the specific language governing permissions and14 * limitations under the License.15 */16/**17 * @fileoverview Externs for jQuery 1.9 - 1.11 & 2.0 - 2.118 *19 * The jQuery API is identical for the 1.9.x+ and 2.0+ branches. In addition,20 * the API has not changed in releases since that date. These externs are valid21 * for all jQuery releases since 1.9 and 2.0.22 *23 * Note that some functions use different return types depending on the number24 * of parameters passed in. In these cases, you may need to annotate the type25 * of the result in your code, so the JSCompiler understands which type you're26 * expecting. For example:27 * <code>var elt = /** @type {Element} * / (foo.get(0));</code>28 *29 * @see http://api.jquery.com/30 * @externs31 */32/**33 * @typedef {(Window|Document|Element|Array<Element>|string|jQuery|34 * NodeList)}35 */36var jQuerySelector;37/** @typedef {function(...)|Array<function(...)>} */38var jQueryCallback;39/** @typedef {40 {41 accepts: (Object<string, string>|undefined),42 async: (?boolean|undefined),43 beforeSend: (function(jQuery.jqXHR, (jQueryAjaxSettings|Object<string, *>))|undefined),44 cache: (?boolean|undefined),45 complete: (function(jQuery.jqXHR, string)|undefined),46 contents: (Object<string, RegExp>|undefined),47 contentType: (?string|undefined),48 context: (Object<?, ?>|jQueryAjaxSettings|undefined),49 converters: (Object<string, Function>|undefined),50 crossDomain: (?boolean|undefined),51 data: (Object<?, ?>|?string|Array<?>|undefined),52 dataFilter: (function(string, string):?|undefined),53 dataType: (?string|undefined),54 error: (function(jQuery.jqXHR, string, string)|undefined),55 global: (?boolean|undefined),56 headers: (Object<?, ?>|undefined),57 ifModified: (?boolean|undefined),58 isLocal: (?boolean|undefined),59 jsonp: (?string|undefined),60 jsonpCallback: (?string|function()|undefined),61 mimeType: (?string|undefined),62 password: (?string|undefined),63 processData: (?boolean|undefined),64 scriptCharset: (?string|undefined),65 statusCode: (Object<number, function()>|undefined),66 success: (function(?, string, jQuery.jqXHR)|undefined),67 timeout: (?number|undefined),68 traditional: (?boolean|undefined),69 type: (?string|undefined),70 url: (?string|undefined),71 username: (?string|undefined),72 xhr: (function():(ActiveXObject|XMLHttpRequest)|undefined),73 xhrFields: (Object<?, ?>|undefined)74 }} */75var jQueryAjaxSettings;76/**77 * @constructor78 * @param {(jQuerySelector|Element|Object|Array<Element>|jQuery|string|79 * function())=} arg180 * @param {(Element|jQuery|Document|81 * Object<string, (string|function(!jQuery.Event))>)=} arg282 * @return {!jQuery}83 */84function jQuery(arg1, arg2) {}85/**86 * @const87 */88var $ = jQuery;89/**90 * @param {(jQuerySelector|Array<Element>|string|jQuery)} arg191 * @param {Element=} context92 * @return {!jQuery}93 * @nosideeffects94 */95jQuery.prototype.add = function(arg1, context) {};96/**97 * @param {(jQuerySelector|Array<Element>|string|jQuery)=} arg198 * @return {!jQuery}99 * @nosideeffects100 */101jQuery.prototype.addBack = function(arg1) {};102/**103 * @param {(string|function(number,String))} arg1104 * @return {!jQuery}105 */106jQuery.prototype.addClass = function(arg1) {};107/**108 * @param {(string|Element|jQuery|function(number))} arg1109 * @param {(string|Element|Array<Element>|jQuery)=} content110 * @return {!jQuery}111 */112jQuery.prototype.after = function(arg1, content) {};113/**114 * @param {(string|jQueryAjaxSettings|Object<string,*>)} arg1115 * @param {(jQueryAjaxSettings|Object<string, *>)=} settings116 * @return {!jQuery.jqXHR}117 */118jQuery.ajax = function(arg1, settings) {};119/**120 * @param {function(!jQuery.Event,XMLHttpRequest,(jQueryAjaxSettings|Object<string, *>))} handler121 * @return {!jQuery}122 */123jQuery.prototype.ajaxComplete = function(handler) {};124/**125 * @param {function(!jQuery.Event,jQuery.jqXHR,(jQueryAjaxSettings|Object<string, *>),*)} handler126 * @return {!jQuery}127 */128jQuery.prototype.ajaxError = function(handler) {};129/**130 * @param {(string|function((jQueryAjaxSettings|Object<string, *>),(jQueryAjaxSettings|Object<string, *>),jQuery.jqXHR))} dataTypes131 * @param {function((jQueryAjaxSettings|Object<string, *>),(jQueryAjaxSettings|Object<string, *>),jQuery.jqXHR)=} handler132 */133jQuery.ajaxPrefilter = function(dataTypes, handler) {};134/**135 * @param {function(!jQuery.Event,jQuery.jqXHR,(jQueryAjaxSettings|Object<string, *>))} handler136 * @return {!jQuery}137 */138jQuery.prototype.ajaxSend = function(handler) {};139/** @const {jQueryAjaxSettings|Object<string, *>} */140jQuery.ajaxSettings;141/** @type {Object<string, boolean>} */142jQuery.ajaxSettings.flatOptions = {};143/** @type {boolean} */144jQuery.ajaxSettings.processData;145/** @type {Object<string, string>} */146jQuery.ajaxSettings.responseFields = {};147/** @param {jQueryAjaxSettings|Object<string, *>} options */148jQuery.ajaxSetup = function(options) {};149/**150 * @param {function()} handler151 * @return {!jQuery}152 */153jQuery.prototype.ajaxStart = function(handler) {};154/**155 * @param {function()} handler156 * @return {!jQuery}157 */158jQuery.prototype.ajaxStop = function(handler) {};159/**160 * @param {function(!jQuery.Event,XMLHttpRequest,(jQueryAjaxSettings|Object<string, *>), ?)} handler161 * @return {!jQuery}162 */163jQuery.prototype.ajaxSuccess = function(handler) {};164/**165 * @deprecated Please use .addBack(selector) instead.166 * @return {!jQuery}167 * @nosideeffects168 */169jQuery.prototype.andSelf = function() {};170/**171 * @param {Object<string,*>} properties172 * @param {(string|number|function()|Object<string,*>)=} arg2173 * @param {(string|function())=} easing174 * @param {function()=} complete175 * @return {!jQuery}176 */177jQuery.prototype.animate = function(properties, arg2, easing, complete) {};178/**179 * @param {(string|Element|Array<Element>|jQuery|function(number,string))} arg1180 * @param {...(string|Element|Array<Element>|jQuery)} content181 * @return {!jQuery}182 */183jQuery.prototype.append = function(arg1, content) {};184/**185 * @param {(jQuerySelector|Element|jQuery)} target186 * @return {!jQuery}187 */188jQuery.prototype.appendTo = function(target) {};189/**190 * @param {(string|Object<string,*>)} arg1191 * @param {(string|number|boolean|function(number,string))=} arg2192 * @return {(string|!jQuery)}193 */194jQuery.prototype.attr = function(arg1, arg2) {};195/**196 * @param {(string|Element|jQuery|function())} arg1197 * @param {(string|Element|Array<Element>|jQuery)=} content198 * @return {!jQuery}199 */200jQuery.prototype.before = function(arg1, content) {};201/**202 * @param {(string|Object<string, function(!jQuery.Event)>)} arg1203 * @param {(Object<string, *>|function(!jQuery.Event)|boolean)=} eventData204 * @param {(function(!jQuery.Event)|boolean)=} arg3205 * @return {!jQuery}206 */207jQuery.prototype.bind = function(arg1, eventData, arg3) {};208/**209 * @param {(function(!jQuery.Event)|Object<string, *>)=} arg1210 * @param {function(!jQuery.Event)=} handler211 * @return {!jQuery}212 */213jQuery.prototype.blur = function(arg1, handler) {};214/**215 * @constructor216 * @private217 */218jQuery.callbacks = function () {};219/**220 * @param {string=} flags221 * @return {!jQuery.callbacks}222 */223jQuery.Callbacks = function (flags) {};224/** @param {function()} callbacks */225jQuery.callbacks.prototype.add = function(callbacks) {};226/** @return {undefined} */227jQuery.callbacks.prototype.disable = function() {};228/** @return {undefined} */229jQuery.callbacks.prototype.empty = function() {};230/** @param {...*} var_args */231jQuery.callbacks.prototype.fire = function(var_args) {};232/** @return {boolean} */233jQuery.callbacks.prototype.fired = function() {};234/** @param {...*} var_args */235jQuery.callbacks.prototype.fireWith = function(var_args) {};236/**237 * @param {function()} callback238 * @return {boolean}239 * @nosideeffects240 */241jQuery.callbacks.prototype.has = function(callback) {};242/** @return {undefined} */243jQuery.callbacks.prototype.lock = function() {};244/** @return {boolean} */245jQuery.callbacks.prototype.locked = function() {};246/** @param {function()} callbacks */247jQuery.callbacks.prototype.remove = function(callbacks) {};248/**249 * @param {(function(!jQuery.Event)|Object<string, *>)=} arg1250 * @param {function(!jQuery.Event)=} handler251 * @return {!jQuery}252 */253jQuery.prototype.change = function(arg1, handler) {};254/**255 * @param {jQuerySelector=} selector256 * @return {!jQuery}257 * @nosideeffects258 */259jQuery.prototype.children = function(selector) {};260/**261 * @param {string=} queueName262 * @return {!jQuery}263 */264jQuery.prototype.clearQueue = function(queueName) {};265/**266 * @param {(function(!jQuery.Event)|Object<string, *>)=} arg1267 * @param {function(!jQuery.Event)=} handler268 * @return {!jQuery}269 */270jQuery.prototype.click = function(arg1, handler) {};271/**272 * @param {boolean=} withDataAndEvents273 * @param {boolean=} deepWithDataAndEvents274 * @return {!jQuery}275 * @suppress {checkTypes} see https://code.google.com/p/closure-compiler/issues/detail?id=583276 */277jQuery.prototype.clone = function(withDataAndEvents, deepWithDataAndEvents) {};278/**279 * @param {(jQuerySelector|jQuery|Element|string)} arg1280 * @param {Element=} context281 * @return {!jQuery}282 * @nosideeffects283 */284jQuery.prototype.closest = function(arg1, context) {};285/**286 * @param {Element} container287 * @param {Element} contained288 * @return {boolean}289 */290jQuery.contains = function(container, contained) {};291/**292 * @return {!jQuery}293 * @nosideeffects294 */295jQuery.prototype.contents = function() {};296/** @type {Element|Document} */297jQuery.prototype.context;298/**299 * @param {(string|Object<string,*>)} arg1300 * @param {(string|number|function(number,*))=} arg2301 * @return {(string|!jQuery)}302 */303jQuery.prototype.css = function(arg1, arg2) {};304/** @type {Object<string, *>} */305jQuery.cssHooks;306/**307 * @param {Element} elem308 * @param {string=} key309 * @param {*=} value310 * @return {*}311 */312jQuery.data = function(elem, key, value) {};313/**314 * @param {(string|Object<string, *>)=} arg1315 * @param {*=} value316 * @return {*}317 */318jQuery.prototype.data = function(arg1, value) {};319/**320 * @param {(function(!jQuery.Event)|Object<string, *>)=} arg1321 * @param {function(!jQuery.Event)=} handler322 * @return {!jQuery}323 */324jQuery.prototype.dblclick = function(arg1, handler) {};325/**326 * @constructor327 * @implements {jQuery.Promise}328 * @param {function()=} opt_fn329 * @see http://api.jquery.com/category/deferred-object/330 */331jQuery.deferred = function(opt_fn) {};332/**333 * @constructor334 * @extends {jQuery.deferred}335 * @param {function()=} opt_fn336 * @return {!jQuery.Deferred}337 */338jQuery.Deferred = function(opt_fn) {};339/**340 * @override341 * @param {jQueryCallback} alwaysCallbacks342 * @param {jQueryCallback=} alwaysCallbacks2343 * @return {!jQuery.deferred}344 */345jQuery.deferred.prototype.always346 = function(alwaysCallbacks, alwaysCallbacks2) {};347/**348 * @override349 * @param {jQueryCallback} doneCallbacks350 * @param {jQueryCallback=} doneCallbacks2351 * @return {!jQuery.deferred}352 */353jQuery.deferred.prototype.done = function(doneCallbacks, doneCallbacks2) {};354/**355 * @override356 * @param {jQueryCallback} failCallbacks357 * @param {jQueryCallback=} failCallbacks2358 * @return {!jQuery.deferred}359 */360jQuery.deferred.prototype.fail = function(failCallbacks, failCallbacks2) {};361/**362 * @param {...*} var_args363 * @return {!jQuery.deferred}364 */365jQuery.deferred.prototype.notify = function(var_args) {};366/**367 * @param {Object} context368 * @param {...*} var_args369 * @return {!jQuery.deferred}370 */371jQuery.deferred.prototype.notifyWith = function(context, var_args) {};372/**373 * @deprecated Please use deferred.then() instead.374 * @override375 * @param {function()=} doneFilter376 * @param {function()=} failFilter377 * @param {function()=} progressFilter378 * @return {!jQuery.Promise}379 */380jQuery.deferred.prototype.pipe =381 function(doneFilter, failFilter, progressFilter) {};382/**383 * @param {jQueryCallback} progressCallbacks384 * @return {!jQuery.deferred}385 */386jQuery.deferred.prototype.progress = function(progressCallbacks) {};387/**388 * @param {Object=} target389 * @return {!jQuery.Promise}390 */391jQuery.deferred.prototype.promise = function(target) {};392/**393 * @param {...*} var_args394 * @return {!jQuery.deferred}395 */396jQuery.deferred.prototype.reject = function(var_args) {};397/**398 * @param {Object} context399 * @param {Array<*>=} args400 * @return {!jQuery.deferred}401 */402jQuery.deferred.prototype.rejectWith = function(context, args) {};403/**404 * @param {...*} var_args405 * @return {!jQuery.deferred}406 */407jQuery.deferred.prototype.resolve = function(var_args) {};408/**409 * @param {Object} context410 * @param {Array<*>=} args411 * @return {!jQuery.deferred}412 */413jQuery.deferred.prototype.resolveWith = function(context, args) {};414/** @return {string} */415jQuery.deferred.prototype.state = function() {};416/**417 * @override418 * @param {jQueryCallback} doneCallbacks419 * @param {jQueryCallback=} failCallbacks420 * @param {jQueryCallback=} progressCallbacks421 * @return {!jQuery.deferred}422 */423jQuery.deferred.prototype.then424 = function(doneCallbacks, failCallbacks, progressCallbacks) {};425/**426 * @param {number} duration427 * @param {string=} queueName428 * @return {!jQuery}429 */430jQuery.prototype.delay = function(duration, queueName) {};431/**432 * @param {string} selector433 * @param {(string|Object<string,*>)} arg2434 * @param {(function(!jQuery.Event)|Object<string, *>)=} arg3435 * @param {function(!jQuery.Event)=} handler436 * @return {!jQuery}437 */438jQuery.prototype.delegate = function(selector, arg2, arg3, handler) {};439/**440 * @param {Element} elem441 * @param {string=} queueName442 */443jQuery.dequeue = function(elem, queueName) {};444/**445 * @param {string=} queueName446 * @return {!jQuery}447 */448jQuery.prototype.dequeue = function(queueName) {};449/**450 * @param {jQuerySelector=} selector451 * @return {!jQuery}452 */453jQuery.prototype.detach = function(selector) {};454/**455 * @param {Object} collection456 * @param {function((number|string),?)} callback457 * @return {Object}458 */459jQuery.each = function(collection, callback) {};460/**461 * @param {function(number,Element)} fnc462 * @return {!jQuery}463 */464jQuery.prototype.each = function(fnc) {};465/** @return {!jQuery} */466jQuery.prototype.empty = function() {};467/**468 * @return {!jQuery}469 * @nosideeffects470 */471jQuery.prototype.end = function() {};472/**473 * @param {number} arg1474 * @return {!jQuery}475 */476jQuery.prototype.eq = function(arg1) {};477/** @param {string} message */478jQuery.error = function(message) {};479/**480 * @deprecated Please use .on( "error", handler ) instead.481 * @param {(function(!jQuery.Event)|Object<string, *>)} arg1482 * @param {function(!jQuery.Event)=} handler483 * @return {!jQuery}484 */485jQuery.prototype.error = function(arg1, handler) {};486/** @const */487jQuery.event = {};488/** @type {Array<string>} */489jQuery.event.props;490/** @type {Object<string, Object>} */491jQuery.event.special;492/**493 * @constructor494 * @param {string} eventType495 * @param {Object=} properties496 * @return {!jQuery.Event}497 */498jQuery.Event = function(eventType, properties) {};499/** @type {boolean} */500jQuery.Event.prototype.altKey;501/** @type {boolean} */502jQuery.Event.prototype.bubbles;503/** @type {number} */504jQuery.Event.prototype.button;505/** @type {boolean} */506jQuery.Event.prototype.cancelable;507/** @type {string} */508jQuery.Event.prototype.charChode;509/** @type {number} */510jQuery.Event.prototype.clientX;511/** @type {number} */512jQuery.Event.prototype.clientY;513/** @type {boolean} */514jQuery.Event.prototype.ctrlKey;515/** @type {Element} */516jQuery.Event.prototype.currentTarget;517/** @type {Object<string, *>} */518jQuery.Event.prototype.data;519/** @type {Element} */520jQuery.Event.prototype.delegateTarget;521/** @type {number} */522jQuery.Event.prototype.detail;523/** @type {number} */524jQuery.Event.prototype.eventPhase;525/**526 * @return {boolean}527 * @nosideeffects528 */529jQuery.Event.prototype.isDefaultPrevented = function() {};530/**531 * @return {boolean}532 * @nosideeffects533 */534jQuery.Event.prototype.isImmediatePropagationStopped = function() {};535/**536 * @return {boolean}537 * @nosideeffects538 */539jQuery.Event.prototype.isPropagationStopped = function() {};540/** @type {boolean} */541jQuery.Event.prototype.metaKey;542/** @type {string} */543jQuery.Event.prototype.namespace;544/** @type {number} */545jQuery.Event.prototype.offsetX;546/** @type {number} */547jQuery.Event.prototype.offsetY;548/** @type {Event} */549jQuery.Event.prototype.originalEvent;550/** @type {Element} */551jQuery.Event.prototype.originalTarget;552/** @type {number} */553jQuery.Event.prototype.pageX;554/** @type {number} */555jQuery.Event.prototype.pageY;556/** @return {undefined} */557jQuery.Event.prototype.preventDefault = function() {};558/** @type {Object<string, *>} */559jQuery.Event.prototype.props;560/** @type {Element} */561jQuery.Event.prototype.relatedTarget;562/** @type {*} */563jQuery.Event.prototype.result;564/** @type {number} */565jQuery.Event.prototype.screenX;566/** @type {number} */567jQuery.Event.prototype.screenY;568/** @type {boolean} */569jQuery.Event.prototype.shiftKey;570/** @return {undefined} */571jQuery.Event.prototype.stopImmediatePropagation = function() {};572/** @return {undefined} */573jQuery.Event.prototype.stopPropagation = function() {};574/** @type {Element} */575jQuery.Event.prototype.target;576/** @type {number} */577jQuery.Event.prototype.timeStamp;578/** @type {string} */579jQuery.Event.prototype.type;580/** @type {Window} */581jQuery.Event.prototype.view;582/** @type {number} */583jQuery.Event.prototype.which;584/**585 * @param {(Object|boolean)} arg1586 * @param {...*} var_args587 * @return {Object}588 */589jQuery.extend = function(arg1, var_args) {};590/**591 * @param {(Object|boolean)} arg1592 * @param {...*} var_args593 * @return {Object}594 */595jQuery.prototype.extend = function(arg1, var_args) {};596/**597 * @param {(string|number|function())=} duration598 * @param {(function()|string)=} arg2599 * @param {function()=} callback600 * @return {!jQuery}601 */602jQuery.prototype.fadeIn = function(duration, arg2, callback) {};603/**604 * @param {(string|number|function())=} duration605 * @param {(function()|string)=} arg2606 * @param {function()=} callback607 * @return {!jQuery}608 */609jQuery.prototype.fadeOut = function(duration, arg2, callback) {};610/**611 * @param {(string|number)} duration612 * @param {number} opacity613 * @param {(function()|string)=} arg3614 * @param {function()=} callback615 * @return {!jQuery}616 */617jQuery.prototype.fadeTo = function(duration, opacity, arg3, callback) {};618/**619 * @param {(string|number|function())=} duration620 * @param {(string|function())=} easing621 * @param {function()=} callback622 * @return {!jQuery}623 */624jQuery.prototype.fadeToggle = function(duration, easing, callback) {};625/**626 * @param {(jQuerySelector|function(number,Element)|Element|jQuery)} arg1627 * @return {!jQuery}628 * @see http://api.jquery.com/filter/629 */630jQuery.prototype.filter = function(arg1) {};631/**632 * @param {(jQuerySelector|jQuery|Element)} arg1633 * @return {!jQuery}634 * @nosideeffects635 */636jQuery.prototype.find = function(arg1) {};637/** @return {!jQuery} */638jQuery.prototype.first = function() {};639/** @see http://docs.jquery.com/Plugins/Authoring */640jQuery.fn = jQuery.prototype;641/**642 * @param {(function(!jQuery.Event)|Object<string, *>)=} arg1643 * @param {function(!jQuery.Event)=} handler644 * @return {!jQuery}645 */646jQuery.prototype.focus = function(arg1, handler) {};647/**648 * @param {(function(!jQuery.Event)|Object<string, *>)} arg1649 * @param {function(!jQuery.Event)=} handler650 * @return {!jQuery}651 */652jQuery.prototype.focusin = function(arg1, handler) {};653/**654 * @param {(function(!jQuery.Event)|Object<string, *>)} arg1655 * @param {function(!jQuery.Event)=} handler656 * @return {!jQuery}657 */658jQuery.prototype.focusout = function(arg1, handler) {};659/** @const */660jQuery.fx = {};661/** @type {number} */662jQuery.fx.interval;663/** @type {boolean} */664jQuery.fx.off;665/**666 * @param {string} url667 * @param {(Object<string,*>|string|668 * function(string,string,jQuery.jqXHR))=} data669 * @param {(function(string,string,jQuery.jqXHR)|string)=} success670 * @param {string=} dataType671 * @return {!jQuery.jqXHR}672 */673jQuery.get = function(url, data, success, dataType) {};674/**675 * @param {number=} index676 * @return {(Element|Array<Element>)}677 * @nosideeffects678 */679jQuery.prototype.get = function(index) {};680/**681 * @param {string} url682 * @param {(Object<string,*>|683 * function(Object<string,*>,string,jQuery.jqXHR))=} data684 * @param {function(Object<string,*>,string,jQuery.jqXHR)=} success685 * @return {!jQuery.jqXHR}686 * @see http://api.jquery.com/jquery.getjson/#jQuery-getJSON-url-data-success687 */688jQuery.getJSON = function(url, data, success) {};689/**690 * @param {string} url691 * @param {function(Node,string,jQuery.jqXHR)=} success692 * @return {!jQuery.jqXHR}693 */694jQuery.getScript = function(url, success) {};695/** @param {string} code */696jQuery.globalEval = function(code) {};697/**698 * @template T699 * @param {!Array<T>} arr700 * @param {function(*,number)} fnc701 * @param {boolean=} invert702 * @return {!Array<T>}703 */704jQuery.grep = function(arr, fnc, invert) {};705/**706 * @param {(string|Element)} arg1707 * @return {!jQuery}708 * @nosideeffects709 */710jQuery.prototype.has = function(arg1) {};711/**712 * @param {string} className713 * @return {boolean}714 * @nosideeffects715 */716jQuery.prototype.hasClass = function(className) {};717/**718 * @param {!Element} elem719 * @return {boolean}720 * @nosideeffects721 */722jQuery.hasData = function(elem) {};723/**724 * @param {(string|number|function(number,number))=} arg1725 * @return {(number|!jQuery)}726 */727jQuery.prototype.height = function(arg1) {};728/**729 * @param {(string|number|function())=} duration730 * @param {(function()|string)=} arg2731 * @param {function()=} callback732 * @return {!jQuery}733 */734jQuery.prototype.hide = function(duration, arg2, callback) {};735/** @param {boolean} hold */736jQuery.holdReady = function(hold) {};737/**738 * @param {function(!jQuery.Event)} arg1739 * @param {function(!jQuery.Event)=} handlerOut740 * @return {!jQuery}741 */742jQuery.prototype.hover = function(arg1, handlerOut) {};743/**744 * @param {(string|function(number,string))=} arg1745 * @return {(string|!jQuery)}746 */747jQuery.prototype.html = function(arg1) {};748/**749 * @param {*} value750 * @param {Array<*>} arr751 * @param {number=} fromIndex752 * @return {number}753 * @nosideeffects754 */755jQuery.inArray = function(value, arr, fromIndex) {};756/**757 * @param {(jQuerySelector|Element|jQuery)=} arg1758 * @return {number}759 */760jQuery.prototype.index = function(arg1) {};761/**762 * @return {number}763 * @nosideeffects764 */765jQuery.prototype.innerHeight = function() {};766/**767 * @return {number}768 * @nosideeffects769 */770jQuery.prototype.innerWidth = function() {};771/**772 * @param {(jQuerySelector|Element|jQuery)} target773 * @return {!jQuery}774 */775jQuery.prototype.insertAfter = function(target) {};776/**777 * @param {(jQuerySelector|Element|jQuery)} target778 * @return {!jQuery}779 */780jQuery.prototype.insertBefore = function(target) {};781/**782 * @param {(jQuerySelector|function(number)|jQuery|Element)} arg1783 * @return {boolean}784 */785jQuery.prototype.is = function(arg1) {};786/**787 * @param {*} obj788 * @return {boolean}789 * @nosideeffects790 */791jQuery.isArray = function(obj) {};792/**793 * @param {Object} obj794 * @return {boolean}795 * @nosideeffects796 */797jQuery.isEmptyObject = function(obj) {};798/**799 * @param {*} obj800 * @return {boolean}801 * @nosideeffects802 */803jQuery.isFunction = function(obj) {};804/**805 * @param {*} value806 * @return {boolean}807 * @nosideeffects808 */809jQuery.isNumeric = function(value) {};810/**811 * @param {*} obj812 * @return {boolean}813 * @nosideeffects814 */815jQuery.isPlainObject = function(obj) {};816/**817 * @param {*} obj818 * @return {boolean}819 * @nosideeffects820 */821jQuery.isWindow = function(obj) {};822/**823 * @param {Element} node824 * @return {boolean}825 * @nosideeffects826 */827jQuery.isXMLDoc = function(node) {};828/** @type {string} */829jQuery.prototype.jquery;830/**831 * @constructor832 * @extends {XMLHttpRequest}833 * @implements {jQuery.Promise}834 * @private835 * @see http://api.jquery.com/jQuery.ajax/#jqXHR836 */837jQuery.jqXHR = function () {};838/**839 * @override840 * @param {jQueryCallback} alwaysCallbacks841 * @param {jQueryCallback=} alwaysCallbacks2842 * @return {!jQuery.jqXHR}843 */844jQuery.jqXHR.prototype.always =845 function(alwaysCallbacks, alwaysCallbacks2) {};846/**847 * @deprecated848 * @param {function()} callback849 * @return {!jQuery.jqXHR}850*/851jQuery.jqXHR.prototype.complete = function (callback) {};852/**853 * @override854 * @param {jQueryCallback} doneCallbacks855 * @return {!jQuery.jqXHR}856 */857jQuery.jqXHR.prototype.done = function(doneCallbacks) {};858/**859 * @deprecated860 * @param {function()} callback861 * @return {!jQuery.jqXHR}862*/863jQuery.jqXHR.prototype.error = function (callback) {};864/**865 * @override866 * @param {jQueryCallback} failCallbacks867 * @return {!jQuery.jqXHR}868 */869jQuery.jqXHR.prototype.fail = function(failCallbacks) {};870/**871 * @deprecated872 * @override873 */874jQuery.jqXHR.prototype.onreadystatechange = function (callback) {};875/**876 * @override877 * @param {function()=} doneFilter878 * @param {function()=} failFilter879 * @param {function()=} progressFilter880 * @return {!jQuery.jqXHR}881 */882jQuery.jqXHR.prototype.pipe =883 function(doneFilter, failFilter, progressFilter) {};884/**885 * @deprecated886 * @param {function()} callback887 * @return {!jQuery.jqXHR}888*/889jQuery.jqXHR.prototype.success = function (callback) {};890/**891 * @override892 * @param {jQueryCallback} doneCallbacks893 * @param {jQueryCallback=} failCallbacks894 * @param {jQueryCallback=} progressCallbacks895 * @return {!jQuery.jqXHR}896 */897jQuery.jqXHR.prototype.then =898 function(doneCallbacks, failCallbacks, progressCallbacks) {};899/**900 * @param {(function(!jQuery.Event)|Object<string, *>)=} arg1901 * @param {function(!jQuery.Event)=} handler902 * @return {!jQuery}903 */904jQuery.prototype.keydown = function(arg1, handler) {};905/**906 * @param {(function(!jQuery.Event)|Object<string, *>)=} arg1907 * @param {function(!jQuery.Event)=} handler908 * @return {!jQuery}909 */910jQuery.prototype.keypress = function(arg1, handler) {};911/**912 * @param {(function(!jQuery.Event)|Object<string, *>)=} arg1913 * @param {function(!jQuery.Event)=} handler914 * @return {!jQuery}915 */916jQuery.prototype.keyup = function(arg1, handler) {};917/** @return {!jQuery} */918jQuery.prototype.last = function() {};919/** @type {number} */920jQuery.prototype.length;921/**922 * @deprecated Please avoid the document loading Event invocation of923 * .load() and use .on( "load", handler ) instead. (The AJAX924 * module invocation signature is OK.)925 * @param {(function(!jQuery.Event)|Object<string, *>|string)} arg1926 * @param {(function(!jQuery.Event)|Object<string,*>|string)=} arg2927 * @param {function(string,string,XMLHttpRequest)=} complete928 * @return {!jQuery}929 */930jQuery.prototype.load = function(arg1, arg2, complete) {};931/**932 * @param {*} obj933 * @return {Array<*>}934 */935jQuery.makeArray = function(obj) {};936/**937 * @param {(Array<*>|Object<string, *>)} arg1938 * @param {(function(*,number)|function(*,(string|number)))} callback939 * @return {Array<*>}940 */941jQuery.map = function(arg1, callback) {};942/**943 * @param {function(number,Element)} callback944 * @return {!jQuery}945 */946jQuery.prototype.map = function(callback) {};947/**948 * @param {Array<*>} first949 * @param {Array<*>} second950 * @return {Array<*>}951 */952jQuery.merge = function(first, second) {};953/**954 * @param {(function(!jQuery.Event)|Object<string, *>)=} arg1955 * @param {function(!jQuery.Event)=} handler956 * @return {!jQuery}957 */958jQuery.prototype.mousedown = function(arg1, handler) {};959/**960 * @param {(function(!jQuery.Event)|Object<string, *>)=} arg1961 * @param {function(!jQuery.Event)=} handler962 * @return {!jQuery}963 */964jQuery.prototype.mouseenter = function(arg1, handler) {};965/**966 * @param {(function(!jQuery.Event)|Object<string, *>)=} arg1967 * @param {function(!jQuery.Event)=} handler968 * @return {!jQuery}969 */970jQuery.prototype.mouseleave = function(arg1, handler) {};971/**972 * @param {(function(!jQuery.Event)|Object<string, *>)=} arg1973 * @param {function(!jQuery.Event)=} handler974 * @return {!jQuery}975 */976jQuery.prototype.mousemove = function(arg1, handler) {};977/**978 * @param {(function(!jQuery.Event)|Object<string, *>)=} arg1979 * @param {function(!jQuery.Event)=} handler980 * @return {!jQuery}981 */982jQuery.prototype.mouseout = function(arg1, handler) {};983/**984 * @param {(function(!jQuery.Event)|Object<string, *>)=} arg1985 * @param {function(!jQuery.Event)=} handler986 * @return {!jQuery}987 */988jQuery.prototype.mouseover = function(arg1, handler) {};989/**990 * @param {(function(!jQuery.Event)|Object<string, *>)=} arg1991 * @param {function(!jQuery.Event)=} handler992 * @return {!jQuery}993 */994jQuery.prototype.mouseup = function(arg1, handler) {};995/**996 * @param {jQuerySelector=} selector997 * @return {!jQuery}998 * @nosideeffects999 */1000jQuery.prototype.next = function(selector) {};1001/**1002 * @param {string=} selector1003 * @return {!jQuery}1004 * @nosideeffects1005 */1006jQuery.prototype.nextAll = function(selector) {};1007/**1008 * @param {(jQuerySelector|Element)=} arg11009 * @param {jQuerySelector=} filter1010 * @return {!jQuery}1011 * @nosideeffects1012 */1013jQuery.prototype.nextUntil = function(arg1, filter) {};1014/**1015 * @param {boolean=} removeAll1016 * @return {Object}1017 */1018jQuery.noConflict = function(removeAll) {};1019/**1020 * @return {function()}1021 * @nosideeffects1022 */1023jQuery.noop = function() {};1024/**1025 * @param {(jQuerySelector|Array<Element>|function(number)|jQuery)} arg11026 * @return {!jQuery}1027 */1028jQuery.prototype.not = function(arg1) {};1029/**1030 * @return {number}1031 * @nosideeffects1032 */1033jQuery.now = function() {};1034/**1035 * @param {(string|Object<string,*>)=} arg11036 * @param {(string|function(!jQuery.Event))=} selector1037 * @param {function(!jQuery.Event)=} handler1038 * @return {!jQuery}1039 */1040jQuery.prototype.off = function(arg1, selector, handler) {};1041/**1042 * @param {({left:number,top:number}|1043 * function(number,{top:number,left:number}))=} arg11044 * @return {({left:number,top:number}|!jQuery)}1045 */1046jQuery.prototype.offset = function(arg1) {};1047/**1048 * @return {!jQuery}1049 * @nosideeffects1050 */1051jQuery.prototype.offsetParent = function() {};1052/**1053 * @param {(string|Object<string,*>)} arg11054 * @param {*=} selector1055 * @param {*=} data1056 * @param {function(!jQuery.Event)=} handler1057 * @return {!jQuery}1058 */1059jQuery.prototype.on = function(arg1, selector, data, handler) {};1060/**1061 * @param {(string|Object<string,*>)} arg11062 * @param {*=} arg21063 * @param {*=} arg31064 * @param {function(!jQuery.Event)=} handler1065 * @return {!jQuery}1066 */1067jQuery.prototype.one = function(arg1, arg2, arg3, handler) {};1068/**1069 * @param {boolean=} includeMargin1070 * @return {number}1071 * @nosideeffects1072 */1073jQuery.prototype.outerHeight = function(includeMargin) {};1074/**1075 * @param {boolean=} includeMargin1076 * @return {number}1077 * @nosideeffects1078 */1079jQuery.prototype.outerWidth = function(includeMargin) {};1080/**1081 * @param {(Object<string, *>|Array<Object<string, *>>)} obj1082 * @param {boolean=} traditional1083 * @return {string}1084 */1085jQuery.param = function(obj, traditional) {};1086/**1087 * @param {jQuerySelector=} selector1088 * @return {!jQuery}1089 * @nosideeffects1090 */1091jQuery.prototype.parent = function(selector) {};1092/**1093 * @param {jQuerySelector=} selector1094 * @return {!jQuery}1095 * @nosideeffects1096 */1097jQuery.prototype.parents = function(selector) {};1098/**1099 * @param {(jQuerySelector|Element)=} arg11100 * @param {jQuerySelector=} filter1101 * @return {!jQuery}1102 * @nosideeffects1103 */1104jQuery.prototype.parentsUntil = function(arg1, filter) {};1105/**1106 * @param {string} data1107 * @param {(Element|boolean)=} context1108 * @param {boolean=} keepScripts1109 * @return {Array<Element>}1110 */1111jQuery.parseHTML = function(data, context, keepScripts) {};1112/**1113 * @param {string} json1114 * @return {string|number|Object<string, *>|Array<?>|boolean}1115 */1116jQuery.parseJSON = function(json) {};1117/**1118 * @param {string} data1119 * @return {Document}1120 */1121jQuery.parseXML = function(data) {};1122/**1123 * @return {{left:number,top:number}}1124 * @nosideeffects1125 */1126jQuery.prototype.position = function() {};1127/**1128 * @param {string} url1129 * @param {(Object<string,*>|string|1130 * function(string,string,jQuery.jqXHR))=} data1131 * @param {(function(string,string,jQuery.jqXHR)|string|null)=} success1132 * @param {string=} dataType1133 * @return {!jQuery.jqXHR}1134 */1135jQuery.post = function(url, data, success, dataType) {};1136/**1137 * @param {(string|Element|jQuery|function(number,string))} arg11138 * @param {(string|Element|jQuery)=} content1139 * @return {!jQuery}1140 */1141jQuery.prototype.prepend = function(arg1, content) {};1142/**1143 * @param {(jQuerySelector|Element|jQuery)} target1144 * @return {!jQuery}1145 */1146jQuery.prototype.prependTo = function(target) {};1147/**1148 * @param {jQuerySelector=} selector1149 * @return {!jQuery}1150 * @nosideeffects1151 */1152jQuery.prototype.prev = function(selector) {};1153/**1154 * @param {jQuerySelector=} selector1155 * @return {!jQuery}1156 * @nosideeffects1157 */1158jQuery.prototype.prevAll = function(selector) {};1159/**1160 * @param {(jQuerySelector|Element)=} arg11161 * @param {jQuerySelector=} filter1162 * @return {!jQuery}1163 * @nosideeffects1164 */1165jQuery.prototype.prevUntil = function(arg1, filter) {};1166/**1167 * @param {(string|Object)=} type1168 * @param {Object=} target1169 * @return {!jQuery.Promise}1170 */1171jQuery.prototype.promise = function(type, target) {};1172/**1173 * @interface1174 * @private1175 * @see http://api.jquery.com/Types/#Promise1176 */1177jQuery.Promise = function () {};1178/**1179 * @param {jQueryCallback} alwaysCallbacks1180 * @param {jQueryCallback=} alwaysCallbacks21181 * @return {!jQuery.Promise}1182 */1183jQuery.Promise.prototype.always =1184 function(alwaysCallbacks, alwaysCallbacks2) {};1185/**1186 * @param {jQueryCallback} doneCallbacks1187 * @return {!jQuery.Promise}1188 */1189jQuery.Promise.prototype.done = function(doneCallbacks) {};1190/**1191 * @param {jQueryCallback} failCallbacks1192 * @return {!jQuery.Promise}1193 */1194jQuery.Promise.prototype.fail = function(failCallbacks) {};1195/**1196 * @param {function()=} doneFilter1197 * @param {function()=} failFilter1198 * @param {function()=} progressFilter1199 * @return {!jQuery.Promise}1200 */1201jQuery.Promise.prototype.pipe =1202 function(doneFilter, failFilter, progressFilter) {};1203/**1204 * @param {jQueryCallback} doneCallbacks1205 * @param {jQueryCallback=} failCallbacks1206 * @param {jQueryCallback=} progressCallbacks1207 * @return {!jQuery.Promise}1208 */1209jQuery.Promise.prototype.then =1210 function(doneCallbacks, failCallbacks, progressCallbacks) {};1211/**1212 * @param {(string|Object<string,*>)} arg11213 * @param {(string|number|boolean|function(number,String))=} arg21214 * @return {(string|boolean|!jQuery)}1215 */1216jQuery.prototype.prop = function(arg1, arg2) {};1217/**1218 * @param {...*} var_args1219 * @return {function()}1220 */1221jQuery.proxy = function(var_args) {};1222/**1223 * @param {Array<Element>} elements1224 * @param {string=} name1225 * @param {Array<*>=} args1226 * @return {!jQuery}1227 */1228jQuery.prototype.pushStack = function(elements, name, args) {};1229/**1230 * @param {(string|Array<function()>|function(function()))=} queueName1231 * @param {(Array<function()>|function(function()))=} arg21232 * @return {(Array<Element>|!jQuery)}1233 */1234jQuery.prototype.queue = function(queueName, arg2) {};1235/**1236 * @param {Element} elem1237 * @param {string=} queueName1238 * @param {(Array<function()>|function())=} arg31239 * @return {(Array<Element>|!jQuery)}1240 */1241jQuery.queue = function(elem, queueName, arg3) {};1242/**1243 * @param {function()} handler1244 * @return {!jQuery}1245 */1246jQuery.prototype.ready = function(handler) {};1247/**1248 * @param {string=} selector1249 * @return {!jQuery}1250 */1251jQuery.prototype.remove = function(selector) {};1252/**1253 * @param {string} attributeName1254 * @return {!jQuery}1255 */1256jQuery.prototype.removeAttr = function(attributeName) {};1257/**1258 * @param {(string|function(number,string))=} arg11259 * @return {!jQuery}1260 */1261jQuery.prototype.removeClass = function(arg1) {};1262/**1263 * @param {(string|Array<string>)=} arg11264 * @return {!jQuery}1265 */1266jQuery.prototype.removeData = function(arg1) {};1267/**1268 * @param {Element} elem1269 * @param {string=} name1270 * @return {!jQuery}1271 */1272jQuery.removeData = function(elem, name) {};1273/**1274 * @param {string} propertyName1275 * @return {!jQuery}1276 */1277jQuery.prototype.removeProp = function(propertyName) {};1278/**1279 * @param {jQuerySelector} target1280 * @return {!jQuery}1281 */1282jQuery.prototype.replaceAll = function(target) {};1283/**1284 * @param {(string|Element|jQuery|function())} arg11285 * @return {!jQuery}1286 */1287jQuery.prototype.replaceWith = function(arg1) {};1288/**1289 * @param {(function(!jQuery.Event)|Object<string, *>)=} arg11290 * @param {function(!jQuery.Event)=} handler1291 * @return {!jQuery}1292 */1293jQuery.prototype.resize = function(arg1, handler) {};1294/**1295 * @param {(function(!jQuery.Event)|Object<string, *>)=} arg11296 * @param {function(!jQuery.Event)=} handler1297 * @return {!jQuery}1298 */1299jQuery.prototype.scroll = function(arg1, handler) {};1300/**1301 * @param {number=} value1302 * @return {(number|!jQuery)}1303 */1304jQuery.prototype.scrollLeft = function(value) {};1305/**1306 * @param {number=} value1307 * @return {(number|!jQuery)}1308 */1309jQuery.prototype.scrollTop = function(value) {};1310/**1311 * @param {(function(!jQuery.Event)|Object<string, *>)=} arg11312 * @param {function(!jQuery.Event)=} handler1313 * @return {!jQuery}1314 */1315jQuery.prototype.select = function(arg1, handler) {};1316/**1317 * @return {string}1318 * @nosideeffects1319 */1320jQuery.prototype.serialize = function() {};1321/**1322 * @return {Array<Object<string, *>>}1323 * @nosideeffects1324 */1325jQuery.prototype.serializeArray = function() {};1326/**1327 * @param {(string|number|function())=} duration1328 * @param {(function()|string)=} arg21329 * @param {function()=} callback1330 * @return {!jQuery}1331 */1332jQuery.prototype.show = function(duration, arg2, callback) {};1333/**1334 * @param {jQuerySelector=} selector1335 * @return {!jQuery}1336 * @nosideeffects1337 */1338jQuery.prototype.siblings = function(selector) {};1339/**1340 * @deprecated Please use the .length property instead.1341 * @return {number}1342 * @nosideeffects1343 */1344jQuery.prototype.size = function() {};1345/**1346 * @param {number} start1347 * @param {number=} end1348 * @return {!jQuery}1349 */1350jQuery.prototype.slice = function(start, end) {};1351/**1352 * @param {(Object<string,*>|string|number)=} optionsOrDuration1353 * @param {(function()|string)=} completeOrEasing1354 * @param {function()=} complete1355 * @return {!jQuery}1356 */1357jQuery.prototype.slideDown =1358 function(optionsOrDuration, completeOrEasing, complete) {};1359/**1360 * @param {(Object<string,*>|string|number)=} optionsOrDuration1361 * @param {(function()|string)=} completeOrEasing1362 * @param {function()=} complete1363 * @return {!jQuery}1364 */1365jQuery.prototype.slideToggle =1366 function(optionsOrDuration, completeOrEasing, complete) {};1367/**1368 * @param {(Object<string,*>|string|number)=} optionsOrDuration1369 * @param {(function()|string)=} completeOrEasing1370 * @param {function()=} complete1371 * @return {!jQuery}1372 */1373jQuery.prototype.slideUp =1374 function(optionsOrDuration, completeOrEasing, complete) {};1375/**1376 * @param {(boolean|string)=} arg11377 * @param {boolean=} arg21378 * @param {boolean=} jumpToEnd1379 * @return {!jQuery}1380 */1381jQuery.prototype.stop = function(arg1, arg2, jumpToEnd) {};1382/**1383 * @param {(function(!jQuery.Event)|Object<string, *>)=} arg11384 * @param {function(!jQuery.Event)=} handler1385 * @return {!jQuery}1386 */1387jQuery.prototype.submit = function(arg1, handler) {};1388/** @type {Object<string, *>}1389 * @deprecated Please try to use feature detection instead.1390 */1391jQuery.support;1392/**1393 * @deprecated Please try to use feature detection instead.1394 * @type {boolean}1395 */1396jQuery.support.boxModel;1397/** @type {boolean} */1398jQuery.support.changeBubbles;1399/** @type {boolean} */1400jQuery.support.cors;1401/** @type {boolean} */1402jQuery.support.cssFloat;1403/** @type {boolean} */1404jQuery.support.hrefNormalized;1405/** @type {boolean} */1406jQuery.support.htmlSerialize;1407/** @type {boolean} */1408jQuery.support.leadingWhitespace;1409/** @type {boolean} */1410jQuery.support.noCloneEvent;1411/** @type {boolean} */1412jQuery.support.opacity;1413/** @type {boolean} */1414jQuery.support.style;1415/** @type {boolean} */1416jQuery.support.submitBubbles;1417/** @type {boolean} */1418jQuery.support.tbody;1419/**1420 * @param {(string|number|boolean|function(number,string))=} arg11421 * @return {(string|!jQuery)}1422 */1423jQuery.prototype.text = function(arg1) {};1424/**1425 * @return {Array<Element>}1426 * @nosideeffects1427 */1428jQuery.prototype.toArray = function() {};1429/**1430 * Refers to the method from the Effects category. There used to be a toggle1431 * method on the Events category which was removed starting version 1.9.1432 * @param {(number|string|Object<string,*>|boolean)=} arg11433 * @param {(function()|string)=} arg21434 * @param {function()=} arg31435 * @return {!jQuery}1436 */1437jQuery.prototype.toggle = function(arg1, arg2, arg3) {};1438/**1439 * @param {(string|boolean|function(number,string,boolean))=} arg11440 * @param {boolean=} flag1441 * @return {!jQuery}1442 */1443jQuery.prototype.toggleClass = function(arg1, flag) {};1444/**1445 * @param {(string|jQuery.Event)} arg11446 * @param {...*} var_args1447 * @return {!jQuery}1448 */1449jQuery.prototype.trigger = function(arg1, var_args) {};1450/**1451 * @param {string|jQuery.Event} eventType1452 * @param {Array<*>=} extraParameters1453 * @return {*}1454 */1455jQuery.prototype.triggerHandler = function(eventType, extraParameters) {};1456/**1457 * @param {string} str1458 * @return {string}1459 * @nosideeffects1460 */1461jQuery.trim = function(str) {};1462/**1463 * @param {*} obj1464 * @return {string}1465 * @nosideeffects1466 */1467jQuery.type = function(obj) {};1468/**1469 * @param {(string|function(!jQuery.Event)|jQuery.Event)=} arg11470 * @param {(function(!jQuery.Event)|boolean)=} arg21471 * @return {!jQuery}1472 */1473jQuery.prototype.unbind = function(arg1, arg2) {};1474/**1475 * @param {string=} arg11476 * @param {(string|Object<string,*>)=} arg21477 * @param {function(!jQuery.Event)=} handler1478 * @return {!jQuery}1479 */1480jQuery.prototype.undelegate = function(arg1, arg2, handler) {};1481/**1482 * @param {Array<Element>} arr1483 * @return {Array<Element>}1484 */1485jQuery.unique = function(arr) {};1486/**1487 * @deprecated Please use .on( "unload", handler ) instead.1488 * @param {(function(!jQuery.Event)|Object<string, *>)} arg11489 * @param {function(!jQuery.Event)=} handler1490 * @return {!jQuery}1491 */1492jQuery.prototype.unload = function(arg1, handler) {};1493/** @return {!jQuery} */1494jQuery.prototype.unwrap = function() {};1495/**1496 * @param {(string|Array<string>|function(number,*))=} arg11497 * @return {(string|number|Array<string>|!jQuery)}1498 */1499jQuery.prototype.val = function(arg1) {};1500/**1501 * Note: The official documentation (https://api.jquery.com/jQuery.when/) says1502 * jQuery.when accepts deferreds, but it actually accepts any type, e.g.:1503 *1504 * jQuery.when(jQuery.ready, jQuery.ajax(''), jQuery('#my-element'), 1)1505 *1506 * If an argument is not an "observable" (a promise-like object) it is wrapped1507 * into a promise.1508 * @param {*} deferred1509 * @param {...*} deferreds1510 * @return {!jQuery.Promise}1511 */1512jQuery.when = function(deferred, deferreds) {};1513/**1514 * @param {(string|number|function(number,number))=} arg11515 * @return {(number|!jQuery)}1516 */1517jQuery.prototype.width = function(arg1) {};1518/**1519 * @param {(string|jQuerySelector|Element|jQuery|function(number))} arg11520 * @return {!jQuery}1521 */1522jQuery.prototype.wrap = function(arg1) {};1523/**1524 * @param {(string|jQuerySelector|Element|jQuery)} wrappingElement1525 * @return {!jQuery}1526 */1527jQuery.prototype.wrapAll = function(wrappingElement) {};1528/**1529 * @param {(string|jQuerySelector|Element|jQuery|function(number))} arg11530 * @return {!jQuery}1531 */...

Full Screen

Full Screen

color.js

Source:color.js Github

copy

Full Screen

1jQuery(document).ready(function($)2{3 // Template 14 jQuery('#acx_csma_logo_text_color1_div').hide();5 jQuery('#acx_csma_logo_text_color1_div').farbtastic('#acx_csma_logo_text_color1');6 jQuery('#acx_csma_logo_text_color1').click(function(){jQuery('#acx_csma_logo_text_color1_div').slideDown()});7 jQuery('#acx_csma_logo_text_color1').blur(function(){jQuery('#acx_csma_logo_text_color1_div').slideUp()});8 9 jQuery('#acx_csma_title_color1_div').hide();10 jQuery('#acx_csma_title_color1_div').farbtastic('#acx_csma_title_color1');11 jQuery('#acx_csma_title_color1').click(function(){jQuery('#acx_csma_title_color1_div').slideDown()});12 jQuery('#acx_csma_title_color1').blur(function(){jQuery('#acx_csma_title_color1_div').slideUp()});13 14 jQuery('#acx_csma_subtitle_color1_div').hide();15 jQuery('#acx_csma_subtitle_color1_div').farbtastic('#acx_csma_subtitle_color1');16 jQuery('#acx_csma_subtitle_color1').click(function(){jQuery('#acx_csma_subtitle_color1_div').slideDown()});17 jQuery('#acx_csma_subtitle_color1').blur(function(){jQuery('#acx_csma_subtitle_color1_div').slideUp()});18 19 jQuery('#acx_csma_inside_bg_color1_div').hide();20 jQuery('#acx_csma_inside_bg_color1_div').farbtastic('#acx_csma_inside_bg_color1');21 jQuery('#acx_csma_inside_bg_color1').click(function(){jQuery('#acx_csma_inside_bg_color1_div').slideDown()});22 jQuery('#acx_csma_inside_bg_color1').blur(function(){jQuery('#acx_csma_inside_bg_color1_div').slideUp()});23 24 jQuery('#acx_csma_inside_title_color1_div').hide();25 jQuery('#acx_csma_inside_title_color1_div').farbtastic('#acx_csma_inside_title_color1');26 jQuery('#acx_csma_inside_title_color1').click(function(){jQuery('#acx_csma_inside_title_color1_div').slideDown()});27 jQuery('#acx_csma_inside_title_color1').blur(function(){jQuery('#acx_csma_inside_title_color1_div').slideUp()});28 29 jQuery('#acx_csma_timer_bg_color1_div').hide();30 jQuery('#acx_csma_timer_bg_color1_div').farbtastic('#acx_csma_timer_bg_color1'); 31 jQuery('#acx_csma_timer_bg_color1').click(function(){jQuery('#acx_csma_timer_bg_color1_div').slideDown()});32 jQuery('#acx_csma_timer_bg_color1').blur(function(){jQuery('#acx_csma_timer_bg_color1_div').slideUp()});33 34 jQuery('#acx_csma_timer_iptext_color1_div').hide();35 jQuery('#acx_csma_timer_iptext_color1_div').farbtastic('#acx_csma_timer_iptext_color1'); 36 jQuery('#acx_csma_timer_iptext_color1').click(function(){jQuery('#acx_csma_timer_iptext_color1_div').slideDown()});37 jQuery('#acx_csma_timer_iptext_color1').blur(function(){jQuery('#acx_csma_timer_iptext_color1_div').slideUp()});38 39 40 jQuery('#acx_csma_timer_input_bg_color1_div').hide();41 jQuery('#acx_csma_timer_input_bg_color1_div').farbtastic('#acx_csma_timer_input_bg_color1'); 42 jQuery('#acx_csma_timer_input_bg_color1').click(function(){jQuery('#acx_csma_timer_input_bg_color1_div').slideDown()});43 jQuery('#acx_csma_timer_input_bg_color1').blur(function(){jQuery('#acx_csma_timer_input_bg_color1_div').slideUp()});44 45 jQuery('#acx_csma_timer_head_color1_div').hide();46 jQuery('#acx_csma_timer_head_color1_div').farbtastic('#acx_csma_timer_head_color1'); 47 jQuery('#acx_csma_timer_head_color1').click(function(){jQuery('#acx_csma_timer_head_color1_div').slideDown()});48 jQuery('#acx_csma_timer_head_color1').blur(function(){jQuery('#acx_csma_timer_head_color1_div').slideUp()});49 50 jQuery('#acx_csma_subscribe_bg_color1_div').hide();51 jQuery('#acx_csma_subscribe_bg_color1_div').farbtastic('#acx_csma_subscribe_bg_color1'); 52 jQuery('#acx_csma_subscribe_bg_color1').click(function(){jQuery('#acx_csma_subscribe_bg_color1_div').slideDown()});53 jQuery('#acx_csma_subscribe_bg_color1').blur(function(){jQuery('#acx_csma_subscribe_bg_color1_div').slideUp()});54 55 56 jQuery('#acx_csma_subscribe_btn_text_color1_div').hide();57 jQuery('#acx_csma_subscribe_btn_text_color1_div').farbtastic('#acx_csma_subscribe_btn_text_color1'); 58 jQuery('#acx_csma_subscribe_btn_text_color1').click(function(){jQuery('#acx_csma_subscribe_btn_text_color1_div').slideDown()});59 jQuery('#acx_csma_subscribe_btn_text_color1').blur(function(){jQuery('#acx_csma_subscribe_btn_text_color1_div').slideUp()});60 61 jQuery('#acx_csma_subscribe_btn_color1_div').hide();62 jQuery('#acx_csma_subscribe_btn_color1_div').farbtastic('#acx_csma_subscribe_btn_color1'); 63 jQuery('#acx_csma_subscribe_btn_color1').click(function(){jQuery('#acx_csma_subscribe_btn_color1_div').slideDown()});64 jQuery('#acx_csma_subscribe_btn_color1').blur(function(){jQuery('#acx_csma_subscribe_btn_color1_div').slideUp()});65 66 jQuery('#acx_csma_subscribe_btn_hover_color1_div').hide();67 jQuery('#acx_csma_subscribe_btn_hover_color1_div').farbtastic('#acx_csma_subscribe_btn_hover_color1'); 68 jQuery('#acx_csma_subscribe_btn_hover_color1').click(function(){jQuery('#acx_csma_subscribe_btn_hover_color1_div').slideDown()});69 jQuery('#acx_csma_subscribe_btn_hover_color1').blur(function(){jQuery('#acx_csma_subscribe_btn_hover_color1_div').slideUp()});70 71 jQuery('#acx_csma_subscribe_btn_hover_bgcolor1_div').hide();72 jQuery('#acx_csma_subscribe_btn_hover_bgcolor1_div').farbtastic('#acx_csma_subscribe_btn_hover_bgcolor1'); 73 jQuery('#acx_csma_subscribe_btn_hover_bgcolor1').click(function(){jQuery('#acx_csma_subscribe_btn_hover_bgcolor1_div').slideDown()});74 jQuery('#acx_csma_subscribe_btn_hover_bgcolor1').blur(function(){jQuery('#acx_csma_subscribe_btn_hover_bgcolor1_div').slideUp()});75 76 jQuery('#acx_csma_subscribe_title_color1_div').hide();77 jQuery('#acx_csma_subscribe_title_color1_div').farbtastic('#acx_csma_subscribe_title_color1'); 78 jQuery('#acx_csma_subscribe_title_color1').click(function(){jQuery('#acx_csma_subscribe_title_color1_div').slideDown()});79 jQuery('#acx_csma_subscribe_title_color1').blur(function(){jQuery('#acx_csma_subscribe_title_color1_div').slideUp()});80 81 jQuery('#acx_csma_footer_bgcolor1_div').hide();82 jQuery('#acx_csma_footer_bgcolor1_div').farbtastic('#acx_csma_footer_bgcolor1'); 83 jQuery('#acx_csma_footer_bgcolor1').click(function(){jQuery('#acx_csma_footer_bgcolor1_div').slideDown()});84 jQuery('#acx_csma_footer_bgcolor1').blur(function(){jQuery('#acx_csma_footer_bgcolor1_div').slideUp()});85 86 jQuery('#acx_csma_footer_text_color1_div').hide();87 jQuery('#acx_csma_footer_text_color1_div').farbtastic('#acx_csma_footer_text_color1'); 88 jQuery('#acx_csma_footer_text_color1').click(function(){jQuery('#acx_csma_footer_text_color1_div').slideDown()});89 jQuery('#acx_csma_footer_text_color1').blur(function(){jQuery('#acx_csma_footer_text_color1_div').slideUp()});90 91 // Template 292 jQuery('#acx_csma_logo_text_color2_div').hide();93 jQuery('#acx_csma_logo_text_color2_div').farbtastic('#acx_csma_logo_text_color2');94 jQuery('#acx_csma_logo_text_color2').click(function(){jQuery('#acx_csma_logo_text_color2_div').slideDown()});95 jQuery('#acx_csma_logo_text_color2').blur(function(){jQuery('#acx_csma_logo_text_color2_div').slideUp()});96 97 jQuery('#acx_csma_logo_bg_color2_div').hide();98 jQuery('#acx_csma_logo_bg_color2_div').farbtastic('#acx_csma_logo_bg_color2');99 jQuery('#acx_csma_logo_bg_color2').click(function(){jQuery('#acx_csma_logo_bg_color2_div').slideDown()});100 jQuery('#acx_csma_logo_bg_color2').blur(function(){jQuery('#acx_csma_logo_bg_color2_div').slideUp()});101 102 jQuery('#acx_csma_bg_color2_div').hide();103 jQuery('#acx_csma_bg_color2_div').farbtastic('#acx_csma_bg_color2');104 jQuery('#acx_csma_bg_color2').click(function(){jQuery('#acx_csma_bg_color2_div').slideDown()});105 jQuery('#acx_csma_bg_color2').blur(function(){jQuery('#acx_csma_bg_color2_div').slideUp()});106 jQuery('#acx_csma_title_color2_div').hide();107 jQuery('#acx_csma_title_color2_div').farbtastic('#acx_csma_title_color2'); 108 jQuery('#acx_csma_title_color2').click(function(){jQuery('#acx_csma_title_color2_div').slideDown()});109 jQuery('#acx_csma_title_color2').blur(function(){jQuery('#acx_csma_title_color2_div').slideUp()});110 111 jQuery('#acx_csma_subtitle_color2_div').hide();112 jQuery('#acx_csma_subtitle_color2_div').farbtastic('#acx_csma_subtitle_color2'); 113 jQuery('#acx_csma_subtitle_color2').click(function(){jQuery('#acx_csma_subtitle_color2_div').slideDown()});114 jQuery('#acx_csma_subtitle_color2').blur(function(){jQuery('#acx_csma_subtitle_color2_div').slideUp()});115 116 jQuery('#acx_csma_inside_bg_color2_div').hide();117 jQuery('#acx_csma_inside_bg_color2_div').farbtastic('#acx_csma_inside_bg_color2'); 118 jQuery('#acx_csma_inside_bg_color2').click(function(){jQuery('#acx_csma_inside_bg_color2_div').slideDown()});119 jQuery('#acx_csma_inside_bg_color2').blur(function(){jQuery('#acx_csma_inside_bg_color2_div').slideUp()});120 121 jQuery('#acx_csma_divider_bg_color2_div').hide();122 jQuery('#acx_csma_divider_bg_color2_div').farbtastic('#acx_csma_divider_bg_color2'); 123 jQuery('#acx_csma_divider_bg_color2').click(function(){jQuery('#acx_csma_divider_bg_color2_div').slideDown()});124 jQuery('#acx_csma_divider_bg_color2').blur(function(){jQuery('#acx_csma_divider_bg_color2_div').slideUp()});125 126 jQuery('#acx_csma_timer_title_color2_div').hide();127 jQuery('#acx_csma_timer_title_color2_div').farbtastic('#acx_csma_timer_title_color2'); 128 jQuery('#acx_csma_timer_title_color2').click(function(){jQuery('#acx_csma_timer_title_color2_div').slideDown()});129 jQuery('#acx_csma_timer_title_color2').blur(function(){jQuery('#acx_csma_timer_title_color2_div').slideUp()});130 131 jQuery('#acx_csma_subscribe_btn_color2_div').hide();132 jQuery('#acx_csma_subscribe_btn_color2_div').farbtastic('#acx_csma_subscribe_btn_color2'); 133 jQuery('#acx_csma_subscribe_btn_color2').click(function(){jQuery('#acx_csma_subscribe_btn_color2_div').slideDown()});134 jQuery('#acx_csma_subscribe_btn_color2').blur(function(){jQuery('#acx_csma_subscribe_btn_color2_div').slideUp()});135 136 jQuery('#acx_csma_subscribe_btn_bg_color2_div').hide();137 jQuery('#acx_csma_subscribe_btn_bg_color2_div').farbtastic('#acx_csma_subscribe_btn_bg_color2'); 138 jQuery('#acx_csma_subscribe_btn_bg_color2').click(function(){jQuery('#acx_csma_subscribe_btn_bg_color2_div').slideDown()});139 jQuery('#acx_csma_subscribe_btn_bg_color2').blur(function(){jQuery('#acx_csma_subscribe_btn_bg_color2_div').slideUp()});140 141 jQuery('#acx_csma_timer_input_bg_color2_div').hide();142 jQuery('#acx_csma_timer_input_bg_color2_div').farbtastic('#acx_csma_timer_input_bg_color2'); 143 jQuery('#acx_csma_timer_input_bg_color2').click(function(){jQuery('#acx_csma_timer_input_bg_color2_div').slideDown()});144 jQuery('#acx_csma_timer_input_bg_color2').blur(function(){jQuery('#acx_csma_timer_input_bg_color2_div').slideUp()});145 146 jQuery('#acx_csma_timer_iptext_color2_div').hide();147 jQuery('#acx_csma_timer_iptext_color2_div').farbtastic('#acx_csma_timer_iptext_color2'); 148 jQuery('#acx_csma_timer_iptext_color2').click(function(){jQuery('#acx_csma_timer_iptext_color2_div').slideDown()});149 jQuery('#acx_csma_timer_iptext_color2').blur(function(){jQuery('#acx_csma_timer_iptext_color2_div').slideUp()});150 151 jQuery('#acx_csma_timer_head_color2_div').hide();152 jQuery('#acx_csma_timer_head_color2_div').farbtastic('#acx_csma_timer_head_color2'); 153 jQuery('#acx_csma_timer_head_color2').click(function(){jQuery('#acx_csma_timer_head_color2_div').slideDown()});154 jQuery('#acx_csma_timer_head_color2').blur(function(){jQuery('#acx_csma_timer_head_color2_div').slideUp()});155 156 jQuery('#acx_csma_desc_text_color2_div').hide();157 jQuery('#acx_csma_desc_text_color2_div').farbtastic('#acx_csma_desc_text_color2'); 158 jQuery('#acx_csma_desc_text_color2').click(function(){jQuery('#acx_csma_desc_text_color2_div').slideDown()});159 jQuery('#acx_csma_desc_text_color2').blur(function(){jQuery('#acx_csma_desc_text_color2_div').slideUp()});160 161 jQuery('#acx_csma_desc_content_color2_div').hide();162 jQuery('#acx_csma_desc_content_color2_div').farbtastic('#acx_csma_desc_content_color2'); 163 jQuery('#acx_csma_desc_content_color2').click(function(){jQuery('#acx_csma_desc_content_color2_div').slideDown()});164 jQuery('#acx_csma_desc_content_color2').blur(function(){jQuery('#acx_csma_desc_content_color2_div').slideUp()});165 jQuery('#acx_csma_social_bg_color2_div').hide();166 jQuery('#acx_csma_social_bg_color2_div').farbtastic('#acx_csma_social_bg_color2'); 167 jQuery('#acx_csma_social_bg_color2').click(function(){jQuery('#acx_csma_social_bg_color2_div').slideDown()});168 jQuery('#acx_csma_social_bg_color2').blur(function(){jQuery('#acx_csma_social_bg_color2_div').slideUp()});169 170 jQuery('#acx_csma_social_link_color2_div').hide();171 jQuery('#acx_csma_social_link_color2_div').farbtastic('#acx_csma_social_link_color2'); 172 jQuery('#acx_csma_social_link_color2').click(function(){jQuery('#acx_csma_social_link_color2_div').slideDown()});173 jQuery('#acx_csma_social_link_color2').blur(function(){jQuery('#acx_csma_social_link_color2_div').slideUp()});174 // Template 3175 jQuery('#acx_csma_logo_text_color3_div').hide();176 jQuery('#acx_csma_logo_text_color3_div').farbtastic('#acx_csma_logo_text_color3');177 jQuery('#acx_csma_logo_text_color3').click(function(){jQuery('#acx_csma_logo_text_color3_div').slideDown()});178 jQuery('#acx_csma_logo_text_color3').blur(function(){jQuery('#acx_csma_logo_text_color3_div').slideUp()});179 180 jQuery('#acx_csma_title_color3_div').hide();181 jQuery('#acx_csma_title_color3_div').farbtastic('#acx_csma_title_color3'); 182 jQuery('#acx_csma_title_color3').click(function(){jQuery('#acx_csma_title_color3_div').slideDown()});183 jQuery('#acx_csma_title_color3').blur(function(){jQuery('#acx_csma_title_color3_div').slideUp()});184 185 jQuery('#acx_csma_subtitle_color3_div').hide();186 jQuery('#acx_csma_subtitle_color3_div').farbtastic('#acx_csma_subtitle_color3'); 187 jQuery('#acx_csma_subtitle_color3').click(function(){jQuery('#acx_csma_subtitle_color3_div').slideDown()});188 jQuery('#acx_csma_subtitle_color3').blur(function(){jQuery('#acx_csma_subtitle_color3_div').slideUp()});189 190 jQuery('#acx_csma_subscribe_title_color3_div').hide();191 jQuery('#acx_csma_subscribe_title_color3_div').farbtastic('#acx_csma_subscribe_title_color3'); 192 jQuery('#acx_csma_subscribe_title_color3').click(function(){jQuery('#acx_csma_subscribe_title_color3_div').slideDown()});193 jQuery('#acx_csma_subscribe_title_color3').blur(function(){jQuery('#acx_csma_subscribe_title_color3_div').slideUp()}); 194 195 196 jQuery('#acx_csma_subscribe_btn_text_color3_div').hide();197 jQuery('#acx_csma_subscribe_btn_text_color3_div').farbtastic('#acx_csma_subscribe_btn_text_color3'); 198 jQuery('#acx_csma_subscribe_btn_text_color3').click(function(){jQuery('#acx_csma_subscribe_btn_text_color3_div').slideDown()});199 jQuery('#acx_csma_subscribe_btn_text_color3').blur(function(){jQuery('#acx_csma_subscribe_btn_text_color3_div').slideUp()});200 201 jQuery('#acx_csma_subscribe_btn_color3_div').hide();202 jQuery('#acx_csma_subscribe_btn_color3_div').farbtastic('#acx_csma_subscribe_btn_color3'); 203 jQuery('#acx_csma_subscribe_btn_color3').click(function(){jQuery('#acx_csma_subscribe_btn_color3_div').slideDown()});204 jQuery('#acx_csma_subscribe_btn_color3').blur(function(){jQuery('#acx_csma_subscribe_btn_color3_div').slideUp()});205 206 jQuery('#acx_csma_subscribe_btn_hover_color3_div').hide();207 jQuery('#acx_csma_subscribe_btn_hover_color3_div').farbtastic('#acx_csma_subscribe_btn_hover_color3'); 208 jQuery('#acx_csma_subscribe_btn_hover_color3').click(function(){jQuery('#acx_csma_subscribe_btn_hover_color3_div').slideDown()});209 jQuery('#acx_csma_subscribe_btn_hover_color3').blur(function(){jQuery('#acx_csma_subscribe_btn_hover_color3_div').slideUp()});210 211 jQuery('#acx_csma_subscribe_btn_hover_bgcolor3_div').hide();212 jQuery('#acx_csma_subscribe_btn_hover_bgcolor3_div').farbtastic('#acx_csma_subscribe_btn_hover_bgcolor3'); 213 jQuery('#acx_csma_subscribe_btn_hover_bgcolor3').click(function(){jQuery('#acx_csma_subscribe_btn_hover_bgcolor3_div').slideDown()});214 jQuery('#acx_csma_subscribe_btn_hover_bgcolor3').blur(function(){jQuery('#acx_csma_subscribe_btn_hover_bgcolor3_div').slideUp()});215 216 jQuery('#acx_csma_inside_title_color3_div').hide();217 jQuery('#acx_csma_inside_title_color3_div').farbtastic('#acx_csma_inside_title_color3'); 218 jQuery('#acx_csma_inside_title_color3').click(function(){jQuery('#acx_csma_inside_title_color3_div').slideDown()});219 jQuery('#acx_csma_inside_title_color3').blur(function(){jQuery('#acx_csma_inside_title_color3_div').slideUp()});220 221 jQuery('#acx_csma_timer_iptext_color3_div').hide();222 jQuery('#acx_csma_timer_iptext_color3_div').farbtastic('#acx_csma_timer_iptext_color3'); 223 jQuery('#acx_csma_timer_iptext_color3').click(function(){jQuery('#acx_csma_timer_iptext_color3_div').slideDown()});224 jQuery('#acx_csma_timer_iptext_color3').blur(function(){jQuery('#acx_csma_timer_iptext_color3_div').slideUp()});225 226 jQuery('#acx_csma_timer_head_color3_div').hide();227 jQuery('#acx_csma_timer_head_color3_div').farbtastic('#acx_csma_timer_head_color3'); 228 jQuery('#acx_csma_timer_head_color3').click(function(){jQuery('#acx_csma_timer_head_color3_div').slideDown()});229 jQuery('#acx_csma_timer_head_color3').blur(function(){jQuery('#acx_csma_timer_head_color3_div').slideUp()});230 231 jQuery('#acx_csma_desc_text_color3_div').hide();232 jQuery('#acx_csma_desc_text_color3_div').farbtastic('#acx_csma_desc_text_color3'); 233 jQuery('#acx_csma_desc_text_color3').click(function(){jQuery('#acx_csma_desc_text_color3_div').slideDown()});234 jQuery('#acx_csma_desc_text_color3').blur(function(){jQuery('#acx_csma_desc_text_color3_div').slideUp()});235 236 jQuery('#acx_csma_desc_content_color3_div').hide();237 jQuery('#acx_csma_desc_content_color3_div').farbtastic('#acx_csma_desc_content_color3'); 238 jQuery('#acx_csma_desc_content_color3').click(function(){jQuery('#acx_csma_desc_content_color3_div').slideDown()});239 jQuery('#acx_csma_desc_content_color3').blur(function(){jQuery('#acx_csma_desc_content_color3_div').slideUp()});240 241 jQuery('#acx_csma_footer_color3_div').hide();242 jQuery('#acx_csma_footer_color3_div').farbtastic('#acx_csma_footer_color3'); 243 jQuery('#acx_csma_footer_color3').click(function(){jQuery('#acx_csma_footer_color3_div').slideDown()});244 jQuery('#acx_csma_footer_color3').blur(function(){jQuery('#acx_csma_footer_color3_div').slideUp()});245 246 jQuery('#acx_csma_social_link_title_color3_div').hide();247 jQuery('#acx_csma_social_link_title_color3_div').farbtastic('#acx_csma_social_link_title_color3'); 248 jQuery('#acx_csma_social_link_title_color3').click(function(){jQuery('#acx_csma_social_link_title_color3_div').slideDown()});249 jQuery('#acx_csma_social_link_title_color3').blur(function(){jQuery('#acx_csma_social_link_title_color3_div').slideUp()});250 // Template 4251 jQuery('#acx_csma_logo_text_color4_div').hide();252 jQuery('#acx_csma_logo_text_color4_div').farbtastic('#acx_csma_logo_text_color4');253 jQuery('#acx_csma_logo_text_color4').click(function(){jQuery('#acx_csma_logo_text_color4_div').slideDown()});254 jQuery('#acx_csma_logo_text_color4').blur(function(){jQuery('#acx_csma_logo_text_color4_div').slideUp()});255 256 jQuery('#acx_csma_inside_bg_color4_div').hide();257 jQuery('#acx_csma_inside_bg_color4_div').farbtastic('#acx_csma_inside_bg_color4');258 jQuery('#acx_csma_inside_bg_color4').click(function(){jQuery('#acx_csma_inside_bg_color4_div').slideDown()});259 jQuery('#acx_csma_inside_bg_color4').blur(function(){jQuery('#acx_csma_inside_bg_color4_div').slideUp()});260 jQuery('#acx_csma_title_color4_div').hide();261 jQuery('#acx_csma_title_color4_div').farbtastic('#acx_csma_title_color4'); 262 jQuery('#acx_csma_title_color4').click(function(){jQuery('#acx_csma_title_color4_div').slideDown()});263 jQuery('#acx_csma_title_color4').blur(function(){jQuery('#acx_csma_title_color4_div').slideUp()});264 265 jQuery('#acx_csma_timer_iptext_color4_div').hide();266 jQuery('#acx_csma_timer_iptext_color4_div').farbtastic('#acx_csma_timer_iptext_color4'); 267 jQuery('#acx_csma_timer_iptext_color4').click(function(){jQuery('#acx_csma_timer_iptext_color4_div').slideDown()});268 jQuery('#acx_csma_timer_iptext_color4').blur(function(){jQuery('#acx_csma_timer_iptext_color4_div').slideUp()});269 270 jQuery('#acx_csma_timer_head_color4_div').hide();271 jQuery('#acx_csma_timer_head_color4_div').farbtastic('#acx_csma_timer_head_color4'); 272 jQuery('#acx_csma_timer_head_color4').click(function(){jQuery('#acx_csma_timer_head_color4_div').slideDown()});273 jQuery('#acx_csma_timer_head_color4').blur(function(){jQuery('#acx_csma_timer_head_color4_div').slideUp()});274 275 jQuery('#acx_csma_progress_bar_color4_div').hide();276 jQuery('#acx_csma_progress_bar_color4_div').farbtastic('#acx_csma_progress_bar_color4'); 277 jQuery('#acx_csma_progress_bar_color4').click(function(){jQuery('#acx_csma_progress_bar_color4_div').slideDown()});278 jQuery('#acx_csma_progress_bar_color4').blur(function(){jQuery('#acx_csma_progress_bar_color4_div').slideUp()});279 280 jQuery('#acx_csma_progress_bar_bg_color4_div').hide();281 jQuery('#acx_csma_progress_bar_bg_color4_div').farbtastic('#acx_csma_progress_bar_bg_color4'); 282 jQuery('#acx_csma_progress_bar_bg_color4').click(function(){jQuery('#acx_csma_progress_bar_bg_color4_div').slideDown()});283 jQuery('#acx_csma_progress_bar_bg_color4').blur(function(){jQuery('#acx_csma_progress_bar_bg_color4_div').slideUp()});284 285 jQuery('#acx_csma_progress_bar_text_color4_div').hide();286 jQuery('#acx_csma_progress_bar_text_color4_div').farbtastic('#acx_csma_progress_bar_text_color4'); 287 jQuery('#acx_csma_progress_bar_text_color4').click(function(){jQuery('#acx_csma_progress_bar_text_color4_div').slideDown()});288 jQuery('#acx_csma_progress_bar_text_color4').blur(function(){jQuery('#acx_csma_progress_bar_text_color4_div').slideUp()});289 290 jQuery('#acx_csma_subscription_title_color4_div').hide();291 jQuery('#acx_csma_subscription_title_color4_div').farbtastic('#acx_csma_subscription_title_color4'); 292 jQuery('#acx_csma_subscription_title_color4').click(function(){jQuery('#acx_csma_subscription_title_color4_div').slideDown()});293 jQuery('#acx_csma_subscription_title_color4').blur(function(){jQuery('#acx_csma_subscription_title_color4_div').slideUp()});294 295 jQuery('#acx_csma_subscription_btn_color4_div').hide();296 jQuery('#acx_csma_subscription_btn_color4_div').farbtastic('#acx_csma_subscription_btn_color4'); 297 jQuery('#acx_csma_subscription_btn_color4').click(function(){jQuery('#acx_csma_subscription_btn_color4_div').slideDown()});298 jQuery('#acx_csma_subscription_btn_color4').blur(function(){jQuery('#acx_csma_subscription_btn_color4_div').slideUp()});299 300 jQuery('#acx_csma_subscription_btn_bg_color4_div').hide();301 jQuery('#acx_csma_subscription_btn_bg_color4_div').farbtastic('#acx_csma_subscription_btn_bg_color4'); 302 jQuery('#acx_csma_subscription_btn_bg_color4').click(function(){jQuery('#acx_csma_subscription_btn_bg_color4_div').slideDown()});303 jQuery('#acx_csma_subscription_btn_bg_color4').blur(function(){jQuery('#acx_csma_subscription_btn_bg_color4_div').slideUp()});304 // Template 5305 jQuery('#acx_csma_logo_text_color5_div').hide();306 jQuery('#acx_csma_logo_text_color5_div').farbtastic('#acx_csma_logo_text_color5');307 jQuery('#acx_csma_logo_text_color5').click(function(){jQuery('#acx_csma_logo_text_color5_div').slideDown()});308 jQuery('#acx_csma_logo_text_color5').blur(function(){jQuery('#acx_csma_logo_text_color5_div').slideUp()});309 310 jQuery('#acx_csma_bgcolor5_div').hide();311 jQuery('#acx_csma_bgcolor5_div').farbtastic('#acx_csma_bgcolor5');312 jQuery('#acx_csma_bgcolor5').click(function(){jQuery('#acx_csma_bgcolor5_div').slideDown()});313 jQuery('#acx_csma_bgcolor5').blur(function(){jQuery('#acx_csma_bgcolor5_div').slideUp()});314 jQuery('#acx_csma_inside_bg_color5_div').hide();315 jQuery('#acx_csma_inside_bg_color5_div').farbtastic('#acx_csma_inside_bg_color5');316 jQuery('#acx_csma_inside_bg_color5').click(function(){jQuery('#acx_csma_inside_bg_color5_div').slideDown()});317 jQuery('#acx_csma_inside_bg_color5').blur(function(){jQuery('#acx_csma_inside_bg_color5_div').slideUp()});318 jQuery('#acx_csma_title_color5_div').hide();319 jQuery('#acx_csma_title_color5_div').farbtastic('#acx_csma_title_color5'); 320 jQuery('#acx_csma_title_color5').click(function(){jQuery('#acx_csma_title_color5_div').slideDown()});321 jQuery('#acx_csma_title_color5').blur(function(){jQuery('#acx_csma_title_color5_div').slideUp()});322 323 jQuery('#acx_csma_timer_iptext_color5_div').hide();324 jQuery('#acx_csma_timer_iptext_color5_div').farbtastic('#acx_csma_timer_iptext_color5'); 325 jQuery('#acx_csma_timer_iptext_color5').click(function(){jQuery('#acx_csma_timer_iptext_color5_div').slideDown()});326 jQuery('#acx_csma_timer_iptext_color5').blur(function(){jQuery('#acx_csma_timer_iptext_color5_div').slideUp()});327 328 jQuery('#acx_csma_timer_head_color5_div').hide();329 jQuery('#acx_csma_timer_head_color5_div').farbtastic('#acx_csma_timer_head_color5'); 330 jQuery('#acx_csma_timer_head_color5').click(function(){jQuery('#acx_csma_timer_head_color5_div').slideDown()});331 jQuery('#acx_csma_timer_head_color5').blur(function(){jQuery('#acx_csma_timer_head_color5_div').slideUp()});332 333 jQuery('#acx_csma_progress_bar_color5_div').hide();334 jQuery('#acx_csma_progress_bar_color5_div').farbtastic('#acx_csma_progress_bar_color5'); 335 jQuery('#acx_csma_progress_bar_color5').click(function(){jQuery('#acx_csma_progress_bar_color5_div').slideDown()});336 jQuery('#acx_csma_progress_bar_color5').blur(function(){jQuery('#acx_csma_progress_bar_color5_div').slideUp()});337 338 jQuery('#acx_csma_progress_bar_bg_color5_div').hide();339 jQuery('#acx_csma_progress_bar_bg_color5_div').farbtastic('#acx_csma_progress_bar_bg_color5'); 340 jQuery('#acx_csma_progress_bar_bg_color5').click(function(){jQuery('#acx_csma_progress_bar_bg_color5_div').slideDown()});341 jQuery('#acx_csma_progress_bar_bg_color5').blur(function(){jQuery('#acx_csma_progress_bar_bg_color5_div').slideUp()});342 343 jQuery('#acx_csma_progress_bar_text_color5_div').hide();344 jQuery('#acx_csma_progress_bar_text_color5_div').farbtastic('#acx_csma_progress_bar_text_color5'); 345 jQuery('#acx_csma_progress_bar_text_color5').click(function(){jQuery('#acx_csma_progress_bar_text_color5_div').slideDown()});346 jQuery('#acx_csma_progress_bar_text_color5').blur(function(){jQuery('#acx_csma_progress_bar_text_color5_div').slideUp()});347 348 jQuery('#acx_csma_subscribe_bg_color5_div').hide();349 jQuery('#acx_csma_subscribe_bg_color5_div').farbtastic('#acx_csma_subscribe_bg_color5'); 350 jQuery('#acx_csma_subscribe_bg_color5').click(function(){jQuery('#acx_csma_subscribe_bg_color5_div').slideDown()});351 jQuery('#acx_csma_subscribe_bg_color5').blur(function(){jQuery('#acx_csma_subscribe_bg_color5_div').slideUp()});352 353 jQuery('#acx_csma_launch_title_color5_div').hide();354 jQuery('#acx_csma_launch_title_color5_div').farbtastic('#acx_csma_launch_title_color5'); 355 jQuery('#acx_csma_launch_title_color5').click(function(){jQuery('#acx_csma_launch_title_color5_div').slideDown()});356 jQuery('#acx_csma_launch_title_color5').blur(function(){jQuery('#acx_csma_launch_title_color5_div').slideUp()});357 358 jQuery('#acx_csma_primary_color3_div').hide();359 jQuery('#acx_csma_primary_color3_div').farbtastic('#acx_csma_primary_color3'); 360 jQuery('#acx_csma_primary_color3').click(function(){jQuery('#acx_csma_primary_color3_div').slideDown()});361 jQuery('#acx_csma_primary_color3').blur(function(){jQuery('#acx_csma_primary_color3_div').slideUp()});362 363 jQuery('#acx_csma_secondary_color3_div').hide();364 jQuery('#acx_csma_secondary_color3_div').farbtastic('#acx_csma_secondary_color3'); 365 jQuery('#acx_csma_secondary_color3').click(function(){jQuery('#acx_csma_secondary_color3_div').slideDown()});366 jQuery('#acx_csma_secondary_color3').blur(function(){jQuery('#acx_csma_secondary_color3_div').slideUp()});367 368 jQuery('#acx_csma_left_bar_color3_div').hide();369 jQuery('#acx_csma_left_bar_color3_div').farbtastic('#acx_csma_left_bar_color3'); 370 jQuery('#acx_csma_left_bar_color3').click(function(){jQuery('#acx_csma_left_bar_color3_div').slideDown()});371 jQuery('#acx_csma_left_bar_color3').blur(function(){jQuery('#acx_csma_left_bar_color3_div').slideUp()});372 373 jQuery('#acx_csma_timer_color3_div').hide();374 jQuery('#acx_csma_timer_color3_div').farbtastic('#acx_csma_timer_color3'); 375 jQuery('#acx_csma_timer_color3').click(function(){jQuery('#acx_csma_timer_color3_div').slideDown()});376 jQuery('#acx_csma_timer_color3').blur(function(){jQuery('#acx_csma_timer_color3_div').slideUp()});377 378 379 380 ...

Full Screen

Full Screen

bwg_shortcode.js

Source:bwg_shortcode.js Github

copy

Full Screen

1var bwg_shortcode_type;2jQuery(document).ready(function () {3 jQuery(".mce-toolbar-grp.mce-inline-toolbar-grp.mce-container.mce-panel", parent.document).hide();4 // Add tabs.5 jQuery(".bwg_tabs").each(function () {6 jQuery(this).tabs({7 activate: function( event, ui ) {8 var bwg_shortcode_type_new = bwg_shortcode_type ? bwg_shortcode_type : (ui.newPanel.attr('id') == 'bwg_tab_albums_content' ? 'album_compact_preview' : 'thumbnails');9 bwg_shortcode_type = jQuery('input[name=gallery_type]:checked').val();10 bwg_gallery_type(bwg_shortcode_type_new);11 }12 });13 });14 jQuery("#use_option_defaults").on("change", function () {15 var use_option_defaults = jQuery(this).prop('checked');16 var custom_options_conainer = jQuery("#custom_options_conainer");17 if (use_option_defaults) {18 custom_options_conainer.hide();19 }20 else {21 custom_options_conainer.show();22 }23 }).trigger('change');24 jQuery(".hndle, .handlediv").each(function () {25 jQuery(this).off('click').on('click', function () {26 jQuery(this).parent(".postbox").toggleClass('closed');27 });28 });29 if (typeof bwg_update_shortcode == 'function') {30 bwg_update_shortcode();31 }32 jQuery('#custom_options_conainer .postbox .hndle').click(function() {33 var body = jQuery('html, body');34 var top = jQuery(this).offset().top - 35;35 body.animate({ scrollTop: top }, 500 );36 });37 // Changing label Number of image rows to columns in masonry view38 jQuery('input[name=masonry]').on('click', function(){39 if(jQuery(this).val() == 'horizontal') {40 jQuery('.masonry_col_num').hide();41 jQuery('.masonry_row_num').show();42 } else {43 jQuery('.masonry_row_num').hide();44 jQuery('.masonry_col_num').show();45 }46 });47});48jQuery(window).load(function() {49 bwg_shortcode_load();50});51function bwg_shortcode_load() {52 jQuery(".loading_div", window.parent.document).remove();53 jQuery("#loading_div.bwg_show").hide();54 jQuery(document).trigger("onUploadShortcode");55 jQuery(".spider_int_input").keypress(function (event) {56 var chCode1 = event.which || event.paramlist_keyCode;57 if (chCode1 > 31 && (chCode1 < 48 || chCode1 > 57) && (chCode1 != 46)) {58 return false;59 }60 return true;61 });62}63function bwg_shortcode_hide_show_params() {64 jQuery("#tr_search_box_width").hide();65 jQuery("#tr_search_box_placeholder").hide();66 jQuery("#tr_masonry_search_box_width").hide();67 jQuery("#tr_masonry_search_box_placeholder").hide();68 jQuery("#tr_mosaic_search_box_width").hide();69 jQuery("#tr_mosaic_search_box_placeholder").hide();70 jQuery("#tr_image_browser_search_box_width").hide();71 jQuery("#tr_image_browser_search_box_placeholder").hide();72 jQuery("#tr_blog_style_search_box_width").hide();73 jQuery("#tr_blog_style_search_box_placeholder").hide();74 jQuery("#tr_album_search_box_width").hide();75 jQuery("#tr_album_search_box_placeholder").hide();76 jQuery("#tr_album_masonry_search_box_width").hide();77 jQuery("#tr_album_masonry_search_box_placeholder").hide();78 jQuery("#tr_album_extended_search_box_width").hide();79 jQuery("#tr_album_extended_search_box_placeholder").hide();80 jQuery("#tr_slideshow_filmstrip_height").hide();81 jQuery("#tr_slideshow_title_position").hide();82 jQuery("#tr_slideshow_full_width_title").hide();83 jQuery("#tr_slideshow_description_position").hide();84 jQuery("#tr_slideshow_music_url").hide();85 jQuery("#tr_autohide_slideshow_navigation").hide();86 jQuery("#tr_load_more_image_count").hide();87 jQuery("#tr_masonry_load_more_image_count").hide();88 jQuery("#tr_mosaic_load_more_image_count").hide();89 jQuery("#tr_blog_style_load_more_image_count").hide();90 jQuery("#tr_album_mosaic").hide();91 jQuery("#tr_album_resizable_mosaic").hide();92 jQuery("#tr_album_mosaic_total_width").hide();93 jQuery("#tr_album_extended_mosaic").hide();94 jQuery("#tr_album_extended_resizable_mosaic").hide();95 jQuery("#tr_album_extended_mosaic_total_width").hide();96 jQuery("#tr_show_masonry_thumb_description").hide();97 if (jQuery('#show_search_box_1').is(':checked')) {98 jQuery( "#tr_search_box_width" ).show();99 jQuery( "#tr_search_box_placeholder" ).show();100 }101 if (jQuery('#masonry_show_search_box_1').is(':checked')) {102 jQuery( "#tr_masonry_search_box_width" ).show();103 jQuery( "#tr_masonry_search_box_placeholder" ).show();104 }105 if (jQuery('#mosaic_show_search_box_1').is(':checked')) {106 jQuery("#tr_mosaic_search_box_width").show();107 jQuery("#tr_mosaic_search_box_placeholder").show();108 }109 if (jQuery('#image_browser_show_search_box_1').is(':checked')) {110 jQuery("#tr_image_browser_search_box_width").show();111 jQuery("#tr_image_browser_search_box_placeholder").show();112 }113 if (jQuery('#blog_style_show_search_box_1').is(':checked')) {114 jQuery("#tr_blog_style_search_box_width").show();115 jQuery("#tr_blog_style_search_box_placeholder").show();116 }117 if (jQuery('#album_show_search_box_1').is(':checked')) {118 jQuery("#tr_album_search_box_width").show();119 jQuery("#tr_album_search_box_placeholder").show();120 }121 if (jQuery('#album_masonry_show_search_box_1').is(':checked')) {122 jQuery("#tr_album_masonry_search_box_width").show();123 jQuery("#tr_album_masonry_search_box_placeholder").show();124 }125 if (jQuery('#album_extended_show_search_box_1').is(':checked')) {126 jQuery("#tr_album_extended_search_box_width").show();127 jQuery("#tr_album_extended_search_box_placeholder").show();128 }129 if (jQuery('#slideshow_enable_filmstrip_yes').is(':checked')) {130 jQuery("#tr_slideshow_filmstrip_height").show();131 }132 if (jQuery('#slideshow_enable_title_yes').is(':checked')) {133 jQuery("#tr_slideshow_title_position").show();134 jQuery("#tr_slideshow_full_width_title").show();135 }136 if (jQuery('#slideshow_enable_description_yes').is(':checked')) {137 jQuery("#tr_slideshow_description_position").show();138 }139 if (jQuery('#slideshow_enable_music_yes').is(':checked')) {140 jQuery("#tr_slideshow_music_url").show();141 }142 if (jQuery('#slideshow_enable_ctrl_yes').is(':checked')) {143 jQuery("#tr_autohide_slideshow_navigation").show();144 }145 if (jQuery('#image_enable_page_loadmore').is(':checked')) {146 jQuery("#tr_load_more_image_count").show();147 }148 if (jQuery('#masonry_image_enable_page_loadmore').is(':checked')) {149 jQuery("#tr_masonry_load_more_image_count").show();150 }151 if (jQuery('#mosaic_image_enable_page_loadmore').is(':checked')) {152 jQuery("#tr_mosaic_load_more_image_count").show();153 }154 if (jQuery('#blog_style_enable_page_2').is(':checked')) {155 jQuery("#tr_blog_style_load_more_image_count").show();156 }157 if (jQuery('#album_view_type_2').is(':checked')) {158 jQuery("#tr_album_mosaic").show();159 jQuery("#tr_album_resizable_mosaic").show();160 jQuery("#tr_album_mosaic_total_width").show();161 }162 if (jQuery('#album_extended_view_type_2').is(':checked')) {163 jQuery("#tr_album_extended_mosaic").show();164 jQuery("#tr_album_extended_resizable_mosaic").show();165 jQuery("#tr_album_extended_mosaic_total_width").show();166 }167 if (jQuery('#masonry_0').is(':checked')) {168 jQuery("#tr_show_masonry_thumb_description").show();169 }170 bwg_pagination_description(jQuery('input[name=image_enable_page]:checked'));171 bwg_pagination_description(jQuery('input[name=masonry_image_enable_page]:checked'));172 bwg_pagination_description(jQuery('input[name=mosaic_image_enable_page]:checked'));173 bwg_pagination_description(jQuery('input[name=blog_style_enable_page]:checked'));174 bwg_pagination_description(jQuery('input[name=album_enable_page]:checked'));175 bwg_pagination_description(jQuery('input[name=album_masonry_enable_page]:checked'));176 bwg_pagination_description(jQuery('input[name=album_extended_enable_page]:checked'));177}178function bwg_watermark(watermark_type) {179 jQuery("#" + watermark_type).prop('checked', true);180 jQuery("#tr_watermark_link").css('display', 'none');181 jQuery("#tr_watermark_url").css('display', 'none');182 jQuery("#tr_watermark_width_height").css('display', 'none');183 jQuery("#tr_watermark_opacity").css('display', 'none');184 jQuery("#tr_watermark_text").css('display', 'none');185 jQuery("#tr_watermark_font_size").css('display', 'none');186 jQuery("#tr_watermark_font").css('display', 'none');187 jQuery("#tr_watermark_color").css('display', 'none');188 jQuery("#tr_watermark_position").css('display', 'none');189 bwg_enable_disable('', '', 'watermark_bottom_right');190 switch (watermark_type) {191 case 'watermark_type_text': {192 jQuery("#tr_watermark_link").css('display', '');193 jQuery("#tr_watermark_opacity").css('display', '');194 jQuery("#tr_watermark_text").css('display', '');195 jQuery("#tr_watermark_font_size").css('display', '');196 jQuery("#tr_watermark_font").css('display', '');197 jQuery("#tr_watermark_color").css('display', '');198 jQuery("#tr_watermark_position").css('display', '');199 break;200 }201 case 'watermark_type_image': {202 jQuery("#tr_watermark_link").css('display', '');203 jQuery("#tr_watermark_url").css('display', '');204 jQuery("#tr_watermark_width_height").css('display', '');205 jQuery("#tr_watermark_opacity").css('display', '');206 jQuery("#tr_watermark_position").css('display', '');207 break;208 }209 }210}211function bwg_enable_disable(display, id, current) {212 jQuery("#" + current).prop('checked', true);213 jQuery("#" + id).css('display', display);214 if(id == 'tr_slideshow_title_position') { 215 jQuery("#tr_slideshow_full_width_title").css('display', display);216 }217}218function bwg_popup_fullscreen() { 219 if (jQuery("#popup_fullscreen_1").is(':checked')) {220 jQuery("#tr_popup_width_height").css('display', 'none');221 }222 else {223 jQuery("#tr_popup_width_height").css('display', '');224 }225}226function bwg_thumb_click_action() {227 if (jQuery("#thumb_click_action_1").is(':checked')) {228 jQuery("#tr_thumb_link_target").css('display', 'none');229 jQuery("#tbody_popup").css('display', '');230 jQuery("#tr_popup_width_height").css('display', '');231 jQuery("#tr_popup_effect").css('display', '');232 jQuery("#tr_popup_interval").css('display', '');233 jQuery("#tr_popup_enable_filmstrip").css('display', '');234 if (jQuery("input[name=popup_enable_filmstrip]:checked").val() == 1) {235 bwg_enable_disable('', 'tr_popup_filmstrip_height', 'popup_filmstrip_yes');236 }237 else {238 bwg_enable_disable('none', 'tr_popup_filmstrip_height', 'popup_filmstrip_no');239 }240 jQuery("#tr_popup_enable_ctrl_btn").css('display', '');241 if (jQuery("input[name=popup_enable_ctrl_btn]:checked").val() == 1) {242 bwg_enable_disable('', 'tbody_popup_ctrl_btn', 'popup_ctrl_btn_yes');243 }244 else {245 bwg_enable_disable('none', 'tbody_popup_ctrl_btn', 'popup_ctrl_btn_no');246 }247 jQuery("#tr_popup_enable_fullscreen").css('display', '');248 jQuery("#tr_popup_enable_info").css('display', '');249 jQuery("#tr_popup_enable_rate").css('display', '');250 jQuery("#tr_popup_enable_comment").css('display', '');251 jQuery("#tr_popup_enable_facebook").css('display', '');252 jQuery("#tr_popup_enable_twitter").css('display', '');253 jQuery("#tr_popup_enable_google").css('display', '');254 jQuery("#tr_popup_enable_ecommerce").css('display', '');255 jQuery("#tr_popup_enable_pinterest").css('display', '');256 jQuery("#tr_popup_enable_tumblr").css('display', '');257 bwg_popup_fullscreen();258 }259 else {260 jQuery("#tr_thumb_link_target").css('display', jQuery("#thumb_click_action_2").is(':checked') ? '' : 'none');261 jQuery("#tbody_popup").css('display', 'none');262 jQuery("#tbody_popup_ctrl_btn").css('display', 'none');263 jQuery("#tr_popup_enable_ctrl_btn").css('display', 'none');264 }265}266function bwg_show_search_box() { 267 if (jQuery("#show_search_box_1").is(':checked')) {268 jQuery("#tr_search_box_width").css('display', '');269 }270 else {271 jQuery("#tr_search_box_width").css('display', 'none');272 }273}274function bwg_change_compuct_album_view_type() {275 if (jQuery("input[name=compuct_album_view_type]:checked").val() == 'thumbnail') {276 jQuery("#compuct_album_image_thumb_dimensions").html(bwg_image_thumb);277 jQuery("#compuct_album_image_thumb_dimensions_x").css('display', '');278 jQuery("#compuct_album_image_thumb_width").css('display', '');279 jQuery("#compuct_album_image_thumb_height").css('display', '');280 jQuery("#tr_compuct_album_image_title").css('display', '');281 jQuery("#tr_compuct_album_mosaic_hor_ver").css('display', 'none');282 jQuery("#tr_compuct_album_resizable_mosaic").css('display', 'none');283 jQuery("#tr_compuct_album_mosaic_total_width").css('display', 'none');284 jQuery("#tr_compuct_album_image_column_number").css('display', '');285 }286 287 else if(jQuery("input[name=compuct_album_view_type]:checked").val() == 'masonry'){288 jQuery("#compuct_album_image_thumb_dimensions").html(bwg_image_thumb_width); 289 jQuery("#compuct_album_image_thumb_dimensions_x").css('display', 'none');290 jQuery("#compuct_album_image_thumb_width").css('display', '');291 jQuery("#compuct_album_image_thumb_height").css('display', 'none');292 jQuery("#tr_compuct_album_image_title").css('display', 'none');293 jQuery("#tr_compuct_album_mosaic_hor_ver").css('display', 'none');294 jQuery("#tr_compuct_album_resizable_mosaic").css('display', 'none');295 jQuery("#tr_compuct_album_mosaic_total_width").css('display', 'none');296 jQuery("#tr_compuct_album_image_column_number").css('display', '');297 }298 else {/*mosaic*/299 jQuery("#compuct_album_image_thumb_dimensions_x").css('display', 'none');300 jQuery("#tr_compuct_album_image_column_number").css('display', 'none');301 jQuery("#tr_compuct_album_image_title").css('display', '');302 jQuery("#tr_compuct_album_mosaic_hor_ver").css('display', '');303 jQuery("#tr_compuct_album_resizable_mosaic").css('display', '');304 jQuery("#tr_compuct_album_mosaic_total_width").css('display', '');305 if(jQuery("input[name=compuct_album_mosaic_hor_ver]:checked").val() == 'vertical'){306 jQuery("#compuct_album_image_thumb_dimensions").html(bwg_image_thumb_width);307 jQuery("#compuct_album_image_thumb_height").css('display', 'none');308 jQuery("#compuct_album_image_thumb_width").css('display', '');309 }310 else{311 jQuery("#compuct_album_image_thumb_dimensions").html(bwg_image_thumb_height);312 jQuery("#compuct_album_image_thumb_width").css('display', 'none');313 jQuery("#compuct_album_image_thumb_height").css('display', '');314 }315 316 }317 318}319function bwg_change_label(id, text) {320 jQuery('#' + id).html(text);321}322function bwg_gallery_type(gallery_type) {323 jQuery("#" + gallery_type).prop('checked', true);324 jQuery("#tr_gallery").css('display', 'none');325 jQuery("#tr_album").css('display', 'none');326 var basic_metabox_title = jQuery('#bwg_basic_metabox_title');327 basic_metabox_title.text(basic_metabox_title.attr('data-title-gallery'));328 jQuery("#tr_ecommerce_icon_hover").css('display', 'none');329 jQuery("#tr_ecommerce_icon_hover .ecommerce_icon_show").css('display', 'none');330 jQuery("#tr_tag").css('display', 'none');331 // Popup.332 jQuery("#tbody_popup").css('display', 'none');333 jQuery("#tr_popup_width_height").css('display', 'none');334 jQuery("#tr_popup_effect").css('display', 'none');335 jQuery("#tr_popup_interval").css('display', 'none');336 jQuery("#tr_popup_enable_filmstrip").css('display', 'none');337 jQuery("#tr_popup_filmstrip_height").css('display', 'none');338 jQuery("#tr_popup_enable_ctrl_btn").css('display', 'none');339 jQuery("#tr_popup_enable_fullscreen").css('display', 'none');340 jQuery("#tr_popup_enable_info").css('display', 'none');341 jQuery("#tr_popup_info_full_width").css('display', 'none');342 jQuery("#tr_popup_enable_rate").css('display', 'none');343 jQuery("#tr_popup_enable_comment").css('display', 'none');344 jQuery("#tr_popup_enable_facebook").css('display', 'none');345 jQuery("#tr_popup_enable_twitter").css('display', 'none');346 jQuery("#tr_popup_enable_google").css('display', 'none');347 jQuery("#tr_popup_enable_ecommerce").css('display', 'none');348 jQuery("#tr_popup_enable_pinterest").css('display', 'none');349 jQuery("#tr_popup_enable_tumblr").css('display', 'none');350 jQuery("#tr_popup_info_always_show").css('display', 'none');351 // Watermark.352 jQuery("#tr_watermark_type").css('display', '');353 if (jQuery("input[name=watermark_type]:checked").val() == 'image') {354 bwg_watermark('watermark_type_image');355 }356 else if (jQuery("input[name=watermark_type]:checked").val() == 'text'){357 bwg_watermark('watermark_type_text');358 }359 else {360 bwg_watermark('watermark_type_none');361 }362 jQuery('.gallery_options').hide();363 jQuery('#' + gallery_type + '_options').show();364 switch (gallery_type) {365 case 'thumbnails': {366 jQuery('#options_link').attr('href', jQuery('#options_link').attr('data-href') + '&active_tab=1&gallery_type=' + gallery_type);367 jQuery("#tr_gallery").css('display', '');368 jQuery("#tr_ecommerce_icon_hover").css('display', '');369 jQuery("#tr_ecommerce_icon_hover .ecommerce_icon_show").css('display', ''); 370 jQuery("#tr_tag").css('display', '');371 jQuery("#bwg_pro_version").html('Thumbnails');372 jQuery("#bwg_pro_version_link").attr("href", "http://wpdemo.web-dorado.com/thumbnails-view-2/");373 jQuery(".wd-free-msg").hide();374 jQuery("#insert").attr("style", "visibility: visible;");375 jQuery(".bwg-pro-views").show();376 break;377 }378 case 'thumbnails_masonry': {379 jQuery('#options_link').attr('href', jQuery('#options_link').attr('data-href') + '&active_tab=1&gallery_type=' + gallery_type);380 jQuery("#tr_ecommerce_icon_hover").css('display', '');381 jQuery("#tr_gallery").css('display', '');382 jQuery("#tr_tag").css('display', '');383 jQuery("#bwg_pro_version").html('Masonry');384 jQuery("#bwg_pro_version_link").attr("href", "http://wpdemo.web-dorado.com/masonry-view/");385 jQuery(".wd-free-msg").show();386 if ( jQuery(".wd-free-msg").length != 0 ) {387 jQuery("#insert").attr("style", "visibility: hidden;");388 jQuery(".bwg-pro-views").hide();389 }390 break;391 }392 case 'thumbnails_mosaic': {393 jQuery('#options_link').attr('href', jQuery('#options_link').attr('data-href') + '&active_tab=1&gallery_type=' + gallery_type);394 jQuery("#tr_ecommerce_icon_hover ").css('display', '');395 jQuery("#tr_gallery").css('display', '');396 jQuery("#tr_tag").css('display', '');397 jQuery("#bwg_pro_version").html('Mosaic');398 jQuery("#bwg_pro_version_link").attr("href", "http://wpdemo.web-dorado.com/mosaic-view/");399 jQuery(".wd-free-msg").show();400 if ( jQuery(".wd-free-msg").length != 0 ) {401 jQuery("#insert").attr("style", "visibility: hidden;");402 jQuery(".bwg-pro-views").hide();403 }404 break;405 }406 case 'slideshow': {407 jQuery('#options_link').attr('href', jQuery('#options_link').attr('data-href') + '&active_tab=1&gallery_type=' + gallery_type);408 jQuery("#tr_gallery").css('display', '');409 jQuery("#tr_tag").css('display', '');410 jQuery("#bwg_pro_version").html('Slideshow');411 jQuery("#bwg_pro_version_link").attr("href", "http://wpdemo.web-dorado.com/slideshow-view/");412 jQuery(".wd-free-msg").hide();413 jQuery("#insert").attr("style", "visibility: visible;");414 jQuery(".bwg-pro-views").show();415 break;416 }417 case 'image_browser': {418 jQuery('#options_link').attr('href', jQuery('#options_link').attr('data-href') + '&active_tab=1&gallery_type=' + gallery_type);419 jQuery("#tr_gallery").css('display', '');420 jQuery("#tr_tag").css('display', '');421 jQuery("#bwg_pro_version").html('Image browser');422 jQuery("#bwg_pro_version_link").attr("href", "http://wpdemo.web-dorado.com/image-browser-view/");423 jQuery(".wd-free-msg").hide();424 jQuery("#insert").attr("style", "visibility: visible;");425 jQuery(".bwg-pro-views").show();426 break;427 }428 case 'album_compact_preview': {429 jQuery('#options_link').attr('href', jQuery('#options_link').attr('data-href') + '&active_tab=2&album_type=' + gallery_type);430 jQuery("#tr_album").css('display', '');431 basic_metabox_title.text(basic_metabox_title.attr('data-title-album'));432 jQuery("#bwg_pro_version").html('Compuct gallery group');433 jQuery("#bwg_pro_version_link").attr("href", "http://wpdemo.web-dorado.com/compact-album-view/");434 jQuery(".wd-free-msg").hide();435 jQuery("#insert").attr("style", "visibility: visible;");436 jQuery(".bwg-pro-views").show();437 break;438 }439 case 'album_extended_preview': {440 jQuery('#options_link').attr('href', jQuery('#options_link').attr('data-href') + '&active_tab=2&album_type=' + gallery_type);441 jQuery("#tr_album").css('display', '');442 jQuery("#bwg_pro_version").html('Extended gallery group');443 jQuery("#bwg_pro_version_link").attr("href", "http://wpdemo.web-dorado.com/extended-album-view/");444 jQuery(".wd-free-msg").hide();445 jQuery("#insert").attr("style", "visibility: visible;");446 jQuery(".bwg-pro-views").show();447 break;448 }449 case 'album_masonry_preview': {450 jQuery('#options_link').attr('href', jQuery('#options_link').attr('data-href') + '&active_tab=2&album_type=' + gallery_type);451 jQuery("#tr_album").css('display', '');452 jQuery("#bwg_pro_version").html('Masonry gallery group');453 jQuery("#bwg_pro_version_link").attr("href", "http://wpdemo.web-dorado.com/masonry-album-view/");454 jQuery(".wd-free-msg").show();455 if ( jQuery(".wd-free-msg").length != 0 ) {456 jQuery("#insert").attr("style", "visibility: hidden;");457 jQuery(".bwg-pro-views").hide();458 }459 break;460 } 461 case 'blog_style': {462 jQuery('#options_link').attr('href', jQuery('#options_link').attr('data-href') + '&active_tab=1&gallery_type=' + gallery_type);463 jQuery("#tr_gallery").css('display', '');464 jQuery("#tr_tag").css('display', '');465 jQuery("#bwg_pro_version").html('Blog style');466 jQuery("#bwg_pro_version_link").attr("href", "http://wpdemo.web-dorado.com/blog-style-view/");467 jQuery(".wd-free-msg").show();468 if ( jQuery(".wd-free-msg").length != 0 ) {469 jQuery("#insert").attr("style", "visibility: hidden;");470 jQuery(".bwg-pro-views").hide();471 }472 break;473 }474 case 'carousel': {475 jQuery('#options_link').attr('href', jQuery('#options_link').attr('data-href') + '&active_tab=1&gallery_type=' + gallery_type);476 jQuery("#tr_gallery").css('display', '');477 jQuery("#tr_tag").css('display', '');478 jQuery("#bwg_pro_version").html('Carousel');479 jQuery("#bwg_pro_version_link").attr("href", "http://wpdemo.web-dorado.com/gallery-carousel/");480 jQuery(".wd-free-msg").show();481 if ( jQuery(".wd-free-msg").length != 0 ) {482 jQuery("#insert").attr("style", "visibility: hidden;");483 jQuery(".bwg-pro-views").hide();484 }485 break;486 }487 }488 jQuery("#tbody_popup").css('display', '');489 jQuery("#tr_popup_width_height").css('display', '');490 jQuery("#tr_popup_effect").css('display', '');491 jQuery("#tr_popup_interval").css('display', '');492 jQuery("#tr_popup_enable_filmstrip").css('display', '');493 if (jQuery("input[name=popup_enable_filmstrip]:checked").val() == 1) {494 bwg_enable_disable('', 'tr_popup_filmstrip_height', 'popup_filmstrip_yes');495 }496 else {497 bwg_enable_disable('none', 'tr_popup_filmstrip_height', 'popup_filmstrip_no');498 }499 jQuery("#tr_popup_enable_ctrl_btn").css('display', '');500 if (jQuery("input[name=popup_enable_ctrl_btn]:checked").val() == 1) {501 bwg_enable_disable('', 'tbody_popup_ctrl_btn', 'popup_ctrl_btn_yes');502 }503 else {504 bwg_enable_disable('none', 'tbody_popup_ctrl_btn', 'popup_ctrl_btn_no');505 }506 jQuery("#tr_popup_enable_fullscreen").css('display', '');507 jQuery("#tr_popup_enable_info").css('display', '');508 jQuery("#tr_popup_info_full_width").css('display', '');509 jQuery("#tr_popup_enable_rate").css('display', '');510 jQuery("#tr_popup_enable_comment").css('display', '');511 jQuery("#tr_popup_enable_facebook").css('display', '');512 jQuery("#tr_popup_enable_twitter").css('display', '');513 jQuery("#tr_popup_enable_google").css('display', '');514 jQuery("#tr_popup_enable_ecommerce").css('display', '');515 jQuery("#tr_popup_enable_pinterest").css('display', '');516 jQuery("#tr_popup_enable_tumblr").css('display', '');517 jQuery("#tr_popup_info_always_show").css('display', '');518 bwg_popup_fullscreen();519 bwg_thumb_click_action();520 bwg_shortcode_hide_show_params();521}522function bwg_onKeyDown(e) {523 var e = e || window.event;524 var chCode1 = e.which || e.paramlist_keyCode;525 if (chCode1 != 37 && chCode1 != 38 && chCode1 != 39 && chCode1 != 40) {526 if ((!e.ctrlKey && !e.metaKey) || (chCode1 != 86 && chCode1 != 67 && chCode1 != 65 && chCode1 != 88)) {527 e.preventDefault();528 }529 }530}531function spider_select_value(obj) {532 obj.focus();533 obj.select();534}535function bwg_change_fonts(cont, google_fonts) {536 var fonts;537 if (jQuery("#" + google_fonts).is(":checked") == true) {538 fonts = bwg_objectGGF;539 }540 else {541 fonts = {'arial' : 'Arial', 'lucida grande' : 'Lucida grande', 'segoe ui' : 'Segoe ui', 'tahoma' : 'Tahoma', 'trebuchet ms' : 'Trebuchet ms', 'verdana' : 'Verdana', 'cursive' : 'Cursive', 'fantasy' : 'Fantasy', 'monospace' : 'Monospace', 'serif' : 'Serif'};542 }543 var fonts_option = "";544 for (var i in fonts) {545 fonts_option += '<option value="' + i + '">' + fonts[i] + '</option>';546 }547 jQuery("#" + cont).html(fonts_option);548}549function bwg_change_tab() {550 var width = jQuery(window).width();551 if (width < 1280) {552 jQuery(".bwg_change_gallery_type").hide();553 jQuery(".bwg_select_gallery_type").show();554 jQuery(".tabs_views").show();555 jQuery(".bwg_hr_shortcode").css({'display':'none'});556 }557 else {558 jQuery(".bwg_change_gallery_type").show();559 jQuery(".bwg_select_gallery_type").hide();560 jQuery(".tabs_views").hide(); 561 jQuery(".bwg_hr_shortcode").css({'display':''});562 }563}564/**565 * Get selected text from textarea.566 *567 * @param id568 * @returns {*}569 */570function bwg_get_textarea_selection(id) {571 var textComponent = top.document.getElementById(id);572 var selectedText;573 if (textComponent.selectionStart !== undefined) {574 // Standards Compliant Version575 var startPos = textComponent.selectionStart;576 var endPos = textComponent.selectionEnd;577 selectedText = textComponent.value.substring(startPos, endPos);578 }579 else if (document.selection !== undefined) {580 // IE Version581 textComponent.focus();582 var sel = document.selection.createRange();583 selectedText = sel.text;584 }585 return selectedText;586}587function bwg_pagination_description(that) {588 obj = jQuery(that);589 obj.closest('.wd-group').find('.description').hide();590 jQuery('#' + obj.attr('name') + '_' + obj.val() + '_description').show();...

Full Screen

Full Screen

Automation Testing Tutorials

Learn to execute automation testing from scratch with LambdaTest Learning Hub. Right from setting up the prerequisites to run your first automation test, to following best practices and diving deeper into advanced test scenarios. LambdaTest Learning Hubs compile a list of step-by-step guides to help you be proficient with different test automation frameworks i.e. Selenium, Cypress, TestNG etc.

LambdaTest Learning Hubs:

YouTube

You could also refer to video tutorials over LambdaTest YouTube channel to get step by step demonstration from industry experts.

Run robotframework-ioslibrary automation tests on LambdaTest cloud grid

Perform automation testing on 3000+ real desktop and mobile devices online.

Try LambdaTest Now !!

Get 100 minutes of automation test minutes FREE!!

Next-Gen App & Browser Testing Cloud

Was this article helpful?

Helpful

NotHelpful