1jQuery.noConflict(); 2 3var $ = jQuery; 4 5$(document).ready(function(){ 6 7$(".post-attachement").fitVids(); 8$(".video_sc").fitVids(); 9$('.post').each(function() { 10 11 $(this).find('.more-link').each(function() { 12 $(this).parents('.post').find('.post-info').append(this); 13 })}) 14 15 16 $("#hide").click(function(){ 17 $("#option_panel").css({"right":"-196px"}); 18 $("#hide").css({"right":"196px", "opacity":"0"}); 19 $("#show").css({"right":"0px", "opacity":"1"}); 20 21}) 22$("#show").click(function(){ 23 $("#option_panel").css({"right":"0px"}); 24 $("#hide").css({"right":"196px", "opacity":"1"}); 25 $("#show").css({"right":"0px", "opacity":"0"}); 26}) 27 28 $('#to_boxed').click(function(){ 29 $("#newcolor").empty(); 30 $( "<style>#boxed_layout{width:1200px; margin:60px auto;}</style>" ).appendTo( "#newlayout" ) 31 }) 32 $('#to_wide').click(function(){ 33 $("#newcolor").empty(); 34 $( "<style>#boxed_layout{width:100%; margin:0px auto;}</style>" ).appendTo( "#newlayout" ) 35 }) 36 37 38 39 $('#cb1').click(function(){ 40 $("#newcolor").empty(); 41$( "<style>body{background-color:#3B5A7A;}.page_title_ctn{background:#5F83A8;}#footer_bg{background-color:#47698D;}.widget_post_title a,.more{color:#444444}.isotope-item a,.portfolio_desc a{color:#888}.post a,.pagination a,.sb_widget a,#comments a{color:#424242}#footer a:hover{color:#000}.tp-bannertimer{background:#618AB6; opacity:0.9; max-height:3px;}.tab-holder .tabs li.active a{border-top:3px solid #618AB6;}.testimonial-next:hover, .testimonial-prev:hover,.ta_c,.carousel_left:hover, .carousel_right:hover,.rp_left:hover,.rp_right:hover,.staff_left:hover,.staff_right:hover,.partners_left:hover,.partners_right:hover,.pb_bg,.pagination .current,.pagination a.active,.pagination a:hover,.pagination a:active,.page-numbers:hover,.current,.pricetable .pricetable-button-container a,.post-date-ctn,#options a.active, #options a:active, #options .selected a,#search-form input[type=submit],.cline,.cline_blog,.more-link:hover,.more:hover,.f_cta_button a,.post_link,#wp-calendar caption,.tagcloud a,#footer .wpcf7 input[type=submit],img[alt='Image 6']{background-color:#618AB6;}#footer a:hover,.testimonial-author a:hover,a,.post a:hover,#comments a:hover,.widget_post_title a:hover,.more:hover,.sb_widget a:hover,nav ul li a:hover,.current-menu-item a,#mobile-menu ul ul li a:before,#footer a,.page_subtitle,.img_link,#wp-calendar a{color:#618AB6;}.top_email a,.post .button_sc_ ,nav ul ul li a,.post .more-link:hover{color:#fff;}#top_bar{background:#618AB6;}#footer_cta_box{background:#2B3D50;}#footer_coms{background-color:#3B5A7A;} .current-menu-item a,nav ul li a:hover{border-bottom: 5px solid #618AB6;}</style>" ).appendTo( "#newcolor" ) 42 43 }) 44 45 46 $('#cb2').click(function(){ 47 $("#newcolor").empty(); 48$( "<style>body{background-color:#3B5A7A;}.page_title_ctn{background:#5F83A8;}#footer_bg{background-color:#1d1d1d;}.widget_post_title a,.more{color:#444444}.isotope-item a,.portfolio_desc a{color:#888}.post a,.pagination a,.sb_widget a,#comments a{color:#424242}#footer a:hover{color:#000}.tp-bannertimer{background:#618AB6; opacity:0.9; max-height:3px;}.tab-holder .tabs li.active a{border-top:3px solid #618AB6;}.testimonial-next:hover, .testimonial-prev:hover,.ta_c,.carousel_left:hover, .carousel_right:hover,.rp_left:hover,.rp_right:hover,.staff_left:hover,.staff_right:hover,.partners_left:hover,.partners_right:hover,.pb_bg,.pagination .current,.pagination a.active,.pagination a:hover,.pagination a:active,.page-numbers:hover,.current,.pricetable .pricetable-button-container a,.post-date-ctn,#options a.active, #options a:active, #options .selected a,#search-form input[type=submit],.cline,.cline_blog,.more-link:hover,.more:hover,.f_cta_button a,.post_link,#wp-calendar caption,.tagcloud a,#footer .wpcf7 input[type=submit],img[alt='Image 6']{background-color:#618AB6;}#footer a:hover,.testimonial-author a:hover,a,.post a:hover,#comments a:hover,.widget_post_title a:hover,.more:hover,.sb_widget a:hover,nav ul li a:hover,.current-menu-item a,#mobile-menu ul ul li a:before,#footer a,.page_subtitle,.img_link,#wp-calendar a{color:#618AB6;}.top_email a,.post .button_sc_ ,nav ul ul li a,.post .more-link:hover{color:#fff;}#top_bar{background:#444444;}#footer_cta_box{background:#303030;}#footer_coms{background-color:#3B5A7A;} .current-menu-item a,nav ul li a:hover{border-bottom: 5px solid #618AB6;}</style>" ).appendTo( "#newcolor" ) 49 50 }) 51 52 53 $('#cb3').click(function(){ 54 $("#newcolor").empty(); 55$( "<style>body{background-color:#58784A;}.page_title_ctn{background:#97C47E;}#footer_bg{background-color:#5F854C;}.widget_post_title a,.more{color:#444444}.isotope-item a,.portfolio_desc a{color:#888}.post a,.pagination a,.sb_widget a,#comments a{color:#424242}#footer a:hover{color:#000}.tp-bannertimer{background:#97C47E; opacity:0.9; max-height:3px;}.tab-holder .tabs li.active a{border-top:3px solid #97C47E;}.testimonial-next:hover, .testimonial-prev:hover,.ta_c,.carousel_left
55:hover, .carousel_right:hover,.rp_left:hover,.rp_right:hover,.staff_left:hover,.staff_right:hover,.partners_left:hover,.partners_right:hover,.pb_bg,.pagination .current,.pagination a.active,.pagination a:hover,.pagination a:active,.page-numbers:hover,.current,.pricetable .pricetable-button-container a,.post-date-ctn,#options a.active, #options a:active, #options .selected a,#search-form input[type=submit],.cline,.cline_blog,.more-link:hover,.more:hover,.f_cta_button a,.post_link,#wp-calendar caption,.tagcloud a,#footer .wpcf7 input[type=submit],img[alt='Image 6']{background-color:#97C47E;}#footer a:hover,.testimonial-author a:hover,a,.post a:hover,#comments a:hover,.widget_post_title a:hover,.more:hover,.sb_widget a:hover,nav ul li a:hover,.current-menu-item a,#mobile-menu ul ul li a:before,#footer a,.page_subtitle,.img_link,#wp-calendar a{color:#97C47E;}.top_email a,.post .button_sc_ ,nav ul ul li a,.post .more-link:hover{color:#fff;}#top_bar{background:#97C47E;}#footer_cta_box{background:#3B5C2C;}#footer_coms{background-color:#58784A;} .current-menu-item a,nav ul li a:hover{border-bottom: 5px solid #97C47E;}</style>" ).appendTo( "#newcolor" ) 56 57 }) 58 59 60 $('#cb4').click(function(){ 61 $("#newcolor").empty(); 62$( "<style>body{background-color:#58784A;}.page_title_ctn{background:#97C47E;}#footer_bg{background-color:#1d1d1d;}.widget_post_title a,.more{color:#444444}.isotope-item a,.portfolio_desc a{color:#888}.post a,.pagination a,.sb_widget a,#comments a{color:#424242}#footer a:hover{color:#000}.tp-bannertimer{background:#97C47E; opacity:0.9; max-height:3px;}.tab-holder .tabs li.active a{border-top:3px solid #97C47E;}.testimonial-next:hover, .testimonial-prev:hover,.ta_c,.carousel_left:hover, .carousel_right:hover,.rp_left:hover,.rp_right:hover,.staff_left:hover,.staff_right:hover,.partners_left:hover,.partners_right:hover,.pb_bg,.pagination .current,.pagination a.active,.pagination a:hover,.pagination a:active,.page-numbers:hover,.current,.pricetable .pricetable-button-container a,.post-date-ctn,#options a.active, #options a:active, #options .selected a,#search-form input[type=submit],.cline,.cline_blog,.more-link:hover,.more:hover,.f_cta_button a,.post_link,#wp-calendar caption,.tagcloud a,#footer .wpcf7 input[type=submit],img[alt='Image 6']{background-color:#97C47E;}#footer a:hover,.testimonial-author a:hover,a,.post a:hover,#comments a:hover,.widget_post_title a:hover,.more:hover,.sb_widget a:hover,nav ul li a:hover,.current-menu-item a,#mobile-menu ul ul li a:before,#footer a,.page_subtitle,.img_link,#wp-calendar a{color:#97C47E;}.top_email a,.post .button_sc_ ,nav ul ul li a,.post .more-link:hover{color:#fff;}#top_bar{background:#444444;}#footer_cta_box{background:#303030;}#footer_coms{background-color:#58784A;} .current-menu-item a,nav ul li a:hover{border-bottom: 5px solid #97C47E;}</style>" ).appendTo( "#newcolor" ) 63 64 }) 65 66 67 $('#cb5').click(function(){ 68 $("#newcolor").empty(); 69$( "<style>body{background-color:#6D2222;}.page_title_ctn{background:#bd3333;}#footer_bg{background-color:#802929;}.widget_post_title a,.more{color:#444444}.isotope-item a,.portfolio_desc a{color:#888}.post a,.pagination a,.sb_widget a,#comments a{color:#424242}#footer a:hover{color:#000}.tp-bannertimer{background:#C23838; opacity:0.9; max-height:3px;}.tab-holder .tabs li.active a{border-top:3px solid #C23838;}.testimonial-next:hover, .testimonial-prev:hover,.ta_c,.carousel_left:hover, .carousel_right:hover,.rp_left:hover,.rp_right:hover,.staff_left:hover,.staff_right:hover,.partners_left:hover,.partners_right:hover,.pb_bg,.pagination .current,.pagination a.active,.pagination a:hover,.pagination a:active,.page-numbers:hover,.current,.pricetable .pricetable-button-container a,.post-date-ctn,#options a.active, #options a:active, #options .selected a,#search-form input[type=submit],.cline,.cline_blog,.more-link:hover,.more:hover,.f_cta_button a,.post_link,#wp-calendar caption,.tagcloud a,#footer .wpcf7 input[type=submit],img[alt='Image 6']{background-color:#C23838;}#footer a:hover,.testimonial-author a:hover,a,.post a:hover,#comments a:hover,.widget_post_title a:hover,.more:hover,.sb_widget a:hover,nav ul li a:hover,.current-menu-item a,#mobile-menu ul ul li a:before,#footer a,.page_subtitle,.img_link,#wp-calendar a{color:#C23838;}.top_email a,.post .button_sc_ ,nav ul ul li a,.post .more-link:hover{color:#fff;}#top_bar{background:#C23838;}#footer_cta_box{background:#5F0909;}#footer_coms{background-color:#6D2222;} .current-menu-item a,nav ul li a:hover{border-bottom: 5px solid #C23838;}</style>" ).appendTo( "#newcolor" ) 70 71 }) 72 73 74 $('#cb6').click(function(){ 75 $("#newcolor").empty(); 76$( "<style>body{background-color:#6D2222;}.page_title_ctn{background:#bd3333;}#footer_bg{background-color:#1d1d1d;}.widget_post_title a,.more{color:#444444}.isotope-item a,.portfolio_desc a{color:#888}.post a,.pagination a,.sb_widget a,#comments a{color:#424242}#footer a:hover{color:#000}.tp-bannertimer{background:#C23838; opacity:0.9; max-height:3px;}.tab-holder .tabs li.active a{border-top:3px solid #C23838;}.testimonial-next:hover, .testimonial-prev:hover,.ta_c,.carousel_left
76:hover, .carousel_right:hover,.rp_left:hover,.rp_right:hover,.staff_left:hover,.staff_right:hover,.partners_left:hover,.partners_right:hover,.pb_bg,.pagination .current,.pagination a.active,.pagination a:hover,.pagination a:active,.page-numbers:hover,.current,.pricetable .pricetable-button-container a,.post-date-ctn,#options a.active, #options a:active, #options .selected a,#search-form input[type=submit],.cline,.cline_blog,.more-link:hover,.more:hover,.f_cta_button a,.post_link,#wp-calendar caption,.tagcloud a,#footer .wpcf7 input[type=submit],img[alt='Image 6']{background-color:#C23838;}#footer a:hover,.testimonial-author a:hover,a,.post a:hover,#comments a:hover,.widget_post_title a:hover,.more:hover,.sb_widget a:hover,nav ul li a:hover,.current-menu-item a,#mobile-menu ul ul li a:before,#footer a,.page_subtitle,.img_link,#wp-calendar a{color:#C23838;}.top_email a,.post .button_sc_ ,nav ul ul li a,.post .more-link:hover{color:#fff;}#top_bar{background:#444444;}#footer_cta_box{background:#303030;}#footer_coms{background-color:#6D2222;} .current-menu-item a,nav ul li a:hover{border-bottom: 5px solid #C23838;}</style>" ).appendTo( "#newcolor" ) 77 78 }) 79 80 $('#cb7').click(function(){ 81 $("#newcolor").empty(); 82$( "<style>body{background-color:#BE7505;}.page_title_ctn{background:#EEA435;}#footer_bg{background-color:#CA8112;}.widget_post_title a,.more{color:#444444}.isotope-item a,.portfolio_desc a{color:#888}.post a,.pagination a,.sb_widget a,#comments a{color:#424242}#footer a:hover{color:#000}.tp-bannertimer{background:#EEA435; opacity:0.9; max-height:3px;}.tab-holder .tabs li.active a{border-top:3px solid #EEA435;}.testimonial-next:hover, .testimonial-prev:hover,.ta_c,.carousel_left:hover, .carousel_right:hover,.rp_left:hover,.rp_right:hover,.staff_left:hover,.staff_right:hover,.partners_left:hover,.partners_right:hover,.pb_bg,.pagination .current,.pagination a.active,.pagination a:hover,.pagination a:active,.page-numbers:hover,.current,.pricetable .pricetable-button-container a,.post-date-ctn,#options a.active, #options a:active, #options .selected a,#search-form input[type=submit],.cline,.cline_blog,.more-link:hover,.more:hover,.f_cta_button a,.post_link,#wp-calendar caption,.tagcloud a,#footer .wpcf7 input[type=submit],img[alt='Image 6']{background-color:#EEA435;}#footer a:hover,.testimonial-author a:hover,a,.post a:hover,#comments a:hover,.widget_post_title a:hover,.more:hover,.sb_widget a:hover,nav ul li a:hover,.current-menu-item a,#mobile-menu ul ul li a:before,#footer a,.page_subtitle,.img_link,#wp-calendar a{color:#EEA435;}.top_email a,.post .button_sc_ ,nav ul ul li a,.post .more-link:hover{color:#fff;}#top_bar{background:#EEA435;}#footer_cta_box{background:#BD7100;}#footer_coms{background-color:#BE7505;} .current-menu-item a,nav ul li a:hover{border-bottom: 5px solid #EEA435;}</style>" ).appendTo( "#newcolor" ) 83 84 }) 85 86 $('#cb8').click(function(){ 87 $("#newcolor").empty(); 88$( "<style>body{background-color:#BE7505;}.page_title_ctn{background:#EEA435;}#footer_bg{background-color:#1d1d1d;}.widget_post_title a,.more{color:#444444}.isotope-item a,.portfolio_desc a{color:#888}.post a,.pagination a,.sb_widget a,#comments a{color:#424242}#footer a:hover{color:#000}.tp-bannertimer{background:#EEA435; opacity:0.9; max-height:3px;}.tab-holder .tabs li.active a{border-top:3px solid #EEA435;}.testimonial-next:hover, .testimonial-prev:hover,.ta_c,.carousel_left:hover, .carousel_right:hover,.rp_left:hover,.rp_right:hover,.staff_left:hover,.staff_right:hover,.partners_left:hover,.partners_right:hover,.pb_bg,.pagination .current,.pagination a.active,.pagination a:hover,.pagination a:active,.page-numbers:hover,.current,.pricetable .pricetable-button-container a,.post-date-ctn,#options a.active, #options a:active, #options .selected a,#search-form input[type=submit],.cline,.cline_blog,.more-link:hover,.more:hover,.f_cta_button a,.post_link,#wp-calendar caption,.tagcloud a,#footer .wpcf7 input[type=submit],img[alt='Image 6']{background-color:#EEA435;}#footer a:hover,.testimonial-author a:hover,a,.post a:hover,#comments a:hover,.widget_post_title a:hover,.more:hover,.sb_widget a:hover,nav ul li a:hover,.current-menu-item a,#mobile-menu ul ul li a:before,#footer a,.page_subtitle,.img_link,#wp-calendar a{color:#EEA435;}.top_email a,.post .button_sc_ ,nav ul ul li a,.post .more-link:hover{color:#fff;}#top_bar{background:#444444;}#footer_cta_box{background:#303030;}#footer_coms{background-color:#BE7505;} .current-menu-item a,nav ul li a:hover{border-bottom: 5px solid #EEA435;}</style>" ).appendTo( "#newcolor" ) 89 90 }) 91 92 93 $('#cb9').click(function(){ 94 $("#newcolor").empty(); 95$( "<style>body{background-color:#582E97;}#footer_bg{background-color:#6741A0;}.page_title_ctn{background:#8361B6;}.widget_post_title a,.more{color:#444444}.isotope-item a,.portfolio_desc a{color:#888}.post a,.pagination a,.sb_widget a,#comments a{color:#424242}#footer a:hover{color:#000}.tp-bannertimer{background:#8361B6; opacity:0.9; max-height:3px;}.tab-holder .tabs li.active a{border-top:3px solid #8361B6;}.testimonial-next:hover, .testimonial-prev:hover,.ta_c,.carousel_left
95:hover, .carousel_right:hover,.rp_left:hover,.rp_right:hover,.staff_left:hover,.staff_right:hover,.partners_left:hover,.partners_right:hover,.pb_bg,.pagination .current,.pagination a.active,.pagination a:hover,.pagination a:active,.page-numbers:hover,.current,.pricetable .pricetable-button-container a,.post-date-ctn,#options a.active, #options a:active, #options .selected a,#search-form input[type=submit],.cline,.cline_blog,.more-link:hover,.more:hover,.f_cta_button a,.post_link,#wp-calendar caption,.tagcloud a,#footer .wpcf7 input[type=submit],img[alt='Image 6']{background-color:#8361B6;}#footer a:hover,.testimonial-author a:hover,a,.post a:hover,#comments a:hover,.widget_post_title a:hover,.more:hover,.sb_widget a:hover,nav ul li a:hover,.current-menu-item a,#mobile-menu ul ul li a:before,#footer a,.page_subtitle,.img_link,#wp-calendar a{color:#8361B6;}.top_email a,.post .button_sc_ ,nav ul ul li a,.post .more-link:hover{color:#fff;}#top_bar{background:#8361B6;}#footer_cta_box{background:#321064;}#footer_coms{background-color:#582E97;} .current-menu-item a,nav ul li a:hover{border-bottom: 5px solid #8361B6;}</style>" ).appendTo( "#newcolor" ) 96 97 }) 98 99 100 $('#cb10').click(function(){ 101 $("#newcolor").empty(); 102$( "<style>body{background-color:#582E97;}#footer_bg{background-color:#1d1d1d;}.page_title_ctn{background:#8361B6;}.widget_post_title a,.more{color:#444444}.isotope-item a,.portfolio_desc a{color:#888}.post a,.pagination a,.sb_widget a,#comments a{color:#424242}#footer a:hover{color:#000}.tp-bannertimer{background:#8361B6; opacity:0.9; max-height:3px;}.tab-holder .tabs li.active a{border-top:3px solid #8361B6;}.testimonial-next:hover, .testimonial-prev:hover,.ta_c,.carousel_left:hover, .carousel_right:hover,.rp_left:hover,.rp_right:hover,.staff_left:hover,.staff_right:hover,.partners_left:hover,.partners_right:hover,.pb_bg,.pagination .current,.pagination a.active,.pagination a:hover,.pagination a:active,.page-numbers:hover,.current,.pricetable .pricetable-button-container a,.post-date-ctn,#options a.active, #options a:active, #options .selected a,#search-form input[type=submit],.cline,.cline_blog,.more-link:hover,.more:hover,.f_cta_button a,.post_link,#wp-calendar caption,.tagcloud a,#footer .wpcf7 input[type=submit],img[alt='Image 6']{background-color:#8361B6;}#footer a:hover,.testimonial-author a:hover,a,.post a:hover,#comments a:hover,.widget_post_title a:hover,.more:hover,.sb_widget a:hover,nav ul li a:hover,.current-menu-item a,#mobile-menu ul ul li a:before,#footer a,.page_subtitle,.img_link,#wp-calendar a{color:#8361B6;}.top_email a,.post .button_sc_ ,nav ul ul li a,.post .more-link:hover{color:#fff;}#top_bar{background:#444444;}#footer_cta_box{background:#303030;}#footer_coms{background-color:#582E97;} .current-menu-item a,nav ul li a:hover{border-bottom: 5px solid #8361B6;}</style>" ).appendTo( "#newcolor" ) 103 104 }) 105 106 $('#bg01').click(function(){ 107 $( "<style>body{background:url(http://ryuka-design.com/Maxon/wp-content/themes/Maxon/bg/bg01.jpg) fixed top center; -webkit-background-size: cover; -moz-background-size: cover; -o-background-size: cover; background-size: cover;</style>" ).appendTo( "#newbg" ) 108 }) 109 $('#bg02').click(function(){ 110 $( "<style>body{background:url(http://ryuka-design.com/Maxon/wp-content/themes/Maxon/bg/bg02.jpg) fixed top center; -webkit-background-size: cover; -moz-background-size: cover; -o-background-size: cover; background-size: cover;</style>" ).appendTo( "#newbg" ) 111 }) 112 $('#bg03').click(function(){ 113 $( "<style>body{background:url(http://ryuka-design.com/Maxon/wp-content/themes/Maxon/bg/bg03.jpg) fixed top center; -webkit-background-size: cover; -moz-background-size: cover; -o-background-size: cover; background-size: cover;</style>" ).appendTo( "#newbg" ) 114 }) 115 $('#bg04').click(function(){ 116 $( "<style>body{background:url(http://ryuka-design.com/Maxon/wp-content/themes/Maxon/bg/bg04.jpg) fixed top center; -webkit-background-size: cover; -moz-background-size: cover; -o-background-size: cover; background-size: cover;</style>" ).appendTo( "#newbg" ) 117 }) 118 119 120$(window).load(function() { 121 122//*** Loading effect ***// 123 124$('#map_canvas').append('<div id="top_shadow"></div>'); 125$('.rev_slider').append('<div id="top_shadow"></div>'); 126$('.column br').remove(); 127 128 129 130 131 132 133}); 134 135$('#to_top').click(function () { 136 137$('html, body').animate({scrollTop: 0}, 'slow'); 138 return false;
139 140 }); 141 142//*** Superfish box ***// 143 144 145 $('nav ul').superfish({ 146 147 animation: {height:'show'}, // slide-down effect without fade-in 148 149 delay: 1000 // 1.2 second delay on mouseout 150 151 }); 152 153//*** Share box ***// 154 155$('.post-share').click(function(){ //Adds click event listener 156 $('#posts .share-box').toggle('slow'); // Toggles visibility. Use the 'slow' parameter to add a nice effect. 157 158 }); 159 160//*** Search form ***// 161 162var searchvisible = 0; 163 $("#searchtop").click(function(e){ 164 //This stops the page scrolling to the top on a # link. 165 e.preventDefault(); 166 if (searchvisible ===0) { 167 //Search is currently hidden. Slide down and show it. 168 $("#search-form").slideDown('1000','easeInOutBack'); 169 $("#s").focus(); //Set focus on the search input field. 170 searchvisible = 1; //Set search visible flag to visible. 171 } else { 172 //Search is currently showing. Slide it back up and hide it. 173 $("#search-form").slideUp('400','linear'); 174 searchvisible = 0; 175 } 176 }); 177 178//*** Toggle ***// 179 180$('.toggle-content').each(function() { 181 182if(!$(this).hasClass('default-open')){ 183 184$(this).hide(); 185 186} 187 188}); 189 190$("div.toggle").click(function(){ 191 192if($(this).hasClass('active')){ 193 194$(this).removeClass("active"); 195 196}else{ 197 198$(this).addClass("active"); 199 200} 201 202return false; 203 204}); 205 206$("div.toggle").click(function(){ 207 208$(this).next(".toggle-content").slideToggle(); 209 210}); 211 212//*** Tabs ***// 213 214$('.tabs-wrapper').each(function() { 215 var t = 1; 216 217 $(this).find('li').each(function() { 218 $(this).find('a').attr('href', '#tab'+t); 219 $(this).parents('.tabs-wrapper').find('.tabs').append(this); 220 t++; 221 }); 222 /* GET ALL BODY */ 223 var t = 1; 224 $(this).find('.tab_content').each(function() { 225 $(this).attr('id', 'tab'+t); 226 $(this).parents('.tabs-wrapper').find('.tabs-container').append(this); 227 t++; 228 }); 229$(this).find(".tab_content").hide(); //Hide all content 230 231$(this).find("ul.tabs li:first").addClass("active").show(); //Activate first tab 232 233$(this).find(".tab_content:first").show(); //Show first tab content 234 235}); 236 237//On Click Event 238 239$("ul.tabs li").click(function(e) { 240 241$(this).parents('.tabs-wrapper').find("ul.tabs li").removeClass("active"); //Remove any "active" class 242 243$(this).addClass("active"); //Add "active" class to selected tab 244 245$(this).parents('.tabs-wrapper').find(".tab_content").hide(); //Hide all tab content 246 247var activeTab = $(this).find("a").attr("href"); //Find the href attribute value to identify the active tab + content 248 249$(this).parents('.tabs-wrapper').find(activeTab).fadeIn(); //Fade in the active ID content 250 251e.preventDefault(); 252 253}); 254 255$("ul.tabs li a").click(function(e) { 256 257e.preventDefault(); 258 259}); 260 261 262//*** Change nav button ***// 263 264 265 266 267 268$("<div id='nav_button' />").appendTo("nav"); 269 270 271 272$(window).resize(function() { 273 274if ($(window).width() > 1020) { 275 276 $("#mobile-menu").slideUp('400','linear'); 277 var mobilenav = 0; 278$("nav ul").show(); 279 280$("nav ul a").click(function(){ 281 282$("nav ul").show(); 283 284}) 285 286} 287 288if ($(window).width() < 1020) { 289var mobilenav = 0; 290$("nav ul").hide(); 291 292$("#nav_button").show(); 293 294} 295 296}); 297var mobilenav = 0; 298 $("#nav_button").click(function(e){ 299 e.preventDefault(); 300 if (mobilenav ===0) { 301 $("#mobile-menu").slideDown('700','linear'); 302 mobilenav = 1; 303 } else { 304 305 $("#mobile-menu").slideUp('700','linear'); 306 mobilenav = 0; 307 } 308 }); 309$(function() { 310 311//*** Portfolio filter effect ***// 312 313$("#portfolio-filter li a").click(function(){ 314 315$("#portfolio-filter li a").removeClass("active"); 316 317$(this).addClass("active"); 318 319}); 320 321}); 322 323//*** Share icon effect ***// 324 325$('.social-networks li, .share-box li, .social-icon, .social li').mouseenter(function(){ 326 327$(this).find('.popup').fadeIn(); 328 329}); 330 331$('.social-networks li, .share-box li, .social-icon, .social li').mouseleave(function(){ 332 333$(this).find('.popup').fadeOut(); 334 335}); 336 337//*** Load Flexsliders ***// 338 339$('.flexslider').flexslider({ 340 341animation: "slide", //String: Select your animation type, "fade" or "slide" 342 343slideDirection: "horizontal", 344 345directionNav: true, 346 347start: function(slider){ // init the height of the first item on start 348 349var $new_height = slider.slides.eq().height(); 350
351slider.height($new_height); 352 353}, 354 355before: function(slider){ // init the height of the next item before slide 356 357var $new_height = slider.slides.eq(slider.animatingTo).height(); 358 359if($new_height != slider.height()){ 360 361slider.animate({ height: $new_height }, 400); 362 363} 364 365} 366 367}); 368 369//*** Setup prettyPhoto ***// 370 371$('.blog_post_single a').has('img').addClass('prettyPhoto'); 372 373$('.blog_post_single a img').click(function () { 374 375var desc = $(this).attr('title'); 376 377$('.blog_post_single a').has('img').attr('title', desc); 378 379}); 380 381$("a[class^='prettyPhoto']").prettyPhoto({ 382 383opacity: 0.50, 384 385theme: 'light_square', 386 387show_title: false, 388 389horizontal_padding: 20, 390 391social_tools: false 392 393}); 394 395$('#page_content a').has('img').addClass('prettyPhoto'); 396 397$('#page_content a img').click(function () { 398 399var desc = $(this).attr('title'); 400 401$('#page_content a').has('img').attr('title', desc); 402 403}); 404 405$("a[class^='prettyPhoto']").prettyPhoto({ 406 407opacity: 0.50, 408 409theme: 'light_square', 410 411show_title: false, 412 413horizontal_padding: 20, 414 415social_tools: false 416 417}); 418 419 420//*** Testimonials ***// 421 422$(window).load(function() { 423 424$(".testimonials-wrapper .testimonial").first().show().addClass('active').siblings('.testimonial').hide().removeClass('active'); 425 426$(".testimonials-wrapper .testimonial-next").click(function(){ 427 428if (typeof($finish)=="undefined" || $finish == true) 429 430$finish = false; 431 432else 433 434return false; 435 436if ($(this).parent().find('.testimonial.active').next('.testimonial').length == 0) { 437 438$(this).parent().find('.testimonial.active').animate({ left: '300%' },{ duration: 300, easing: 'easeInOutExpo', complete: function(){ 439 440$(this).hide().removeClass('active').parent().find('.testimonial').first().addClass('active').css('position','relative').css('left','-300%').fadeIn().animate({left:0},{ duration: 400, easing: 'easeInOutExpo', complete: function() { $finish = true; } }); 441 442}}); 443 444} else { 445 446$(this).parent().find('.testimonial.active').animate({ left: '300%' },{ duration: 300, easing: 'easeInOutExpo', complete: function(){ 447 448$(this).hide().removeClass('active').css('position','absolute').next('.testimonial').addClass('active').css('position','relative').css('left','-300%').fadeIn().animate({left:0},{ duration: 400, easing: 'easeInOutExpo', complete: function() { $finish = true; } }); 449 450}}); 451 452} 453 454}); 455 456$(".testimonials-wrapper .testimonial-prev").click(function(){ 457 458if (typeof($finish)=="undefined" || $finish == true) 459 460$finish = false; 461 462else 463 464return false; 465 466if ($(this).parent().find('.testimonial.active').prev('.testimonial').length == 0) { 467 468$(this).parent().find('.testimonial.active').animate({ left: '-300%' },{ duration: 300, easing: 'easeInOutExpo', complete: function(){ 469 470$(this).hide().removeClass('active').parent().find('.testimonial').last().addClass('active').css('position','relative').css('left','300%').fadeIn().animate({left:0},{ duration: 400, easing: 'easeInOutExpo', complete: function() { $finish = true; } }); 471 472}}); 473 474} else { 475 476$(this).parent().find('.testimonial.active').animate({ left: '-300%' },{ duration: 300, easing: 'easeInOutExpo', complete: function(){ 477 478$(this).hide().removeClass('active').css('position','absolute').prev('.testimonial').addClass('active').css('position','relative').css('left','300%').fadeIn().animate({left:0},{ duration: 400, easing: 'easeInOutExpo', complete: function() { $finish = true; } }); 479 480}}); 481 482} 483 484}); 485 486}); 487 488});
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.