1jQuery(document).ready(function() { 2 3 "use strict"; 4 //CLIENTS CAROUFREDSEL... 5 if(jQuery('#dt-sc-clients_container').size()) { 6 jQuery('#dt-sc-clients_container').carouFredSel({ 7 responsive: true, 8 width: '100%', 9 scroll: 1, 10 auto: true, 11 prev: '.dt-sc-clients-nav .dt-sc-prev', 12 next: '.dt-sc-clients-nav .dt-sc-next', 13 items: { 14 width: 250, 15 visible: { 16 min: 1, 17 max: 4 18 } 19 }, 20 swipe: { 21 onTouch: true, 22 onMouse: true 23 } 24 }); 25 } 26 27 //TWEET CAROUFREDSEL... 28 if(jQuery('#dt-sc-tweets_container .dt-sc-tweet_list').size()) { 29 jQuery('#dt-sc-tweets_container .dt-sc-tweet_list').carouFredSel({ 30 width: 'auto', 31 height: 'auto', 32 scroll: { 33 items: 1, 34 duration: 400 35 }, 36 direction: 'up', 37 prev: '.dt-sc-tweet-nav .dt-sc-prev', 38 next: '.dt-sc-tweet-nav .dt-sc-next', 39 items: { 40 height: 'auto', 41 visible: { 42 min: 1, 43 max: 1 44 } 45 } 46 }); 47 } 48 49 //CONTACT BOX VALIDATION & MAIL SENDING.... 50 jQuery('form[name="frmcontact"]').submit(function () { 51 52 var This = jQuery(this); 53 54 var action = jQuery(This).attr('action'); 55 56 var data_value = unescape(jQuery(This).serialize()); 57 jQuery.ajax({ 58 type: "POST", 59 url:action, 60 data: data_value, 61 error: function (xhr, status, error) { 62 confirm('The page save failed.'); 63 }, 64 success: function (response) { 65 jQuery('#ajax_contact_msg').html(response); 66 } 67 }); 68 69 return false; 70 }); 71 72 //TABS... 73 if(jQuery('ul.dt-sc-tabs-frame').length > 0) { 74 jQuery('ul.dt-sc-tabs-frame').tabs('> .dt-sc-tabs-frame-content'); 75 } 76 77 if(jQuery('ul.dt-sc-tabs-vertical-frame').length > 0) { 78 jQuery('ul.dt-sc-tabs-vertical-frame').tabs('> .dt-sc-tabs-vertical-frame-content'); 79 } 80 81 /*Toggle shortcode*/ 82 jQuery('.dt-sc-toggle').toggle(function(){ jQuery(this).addClass('active'); },function(){ jQuery(this).removeClass('active'); }); 83 jQuery('.dt-sc-toggle').click(function(){ jQuery(this).next('.dt-sc-toggle-content').slideToggle(); }); 84 jQuery('.dt-sc-toggle-frame-set').each(function(){ 85 var $this = jQuery(this), 86 $toggle = $this.find('.dt-sc-toggle-accordion'); 87 $toggle.click(function(){ 88 if( jQuery(this).next().is(':hidden') ) { 89 $this.find('.dt-sc-toggle-accordion').removeClass('active').next().slideUp(); 90 jQuery(this).toggleClass('active').next().slideDown(); 91 } 92 return false; 93 }); 94 //Activate First Item always 95 $this.find('.dt-sc-toggle-accordion:first').addClass("active"); 96 $this.find('.dt-sc-toggle-accordion:first').next().slideDown(); 97 });/* Toggle Shortcode end*/ 98 99 //TESTIMONIAL QUOTE... 100 if(jQuery('.dt-sc-quotes_wrapper').size()) { 101 jQuery('.dt-sc-quotes_wrapper').quovolver({ 102 children : 'li', 103 transitionSpeed : 300, 104 autoPlay : true, 105 equalHeight : true, 106 navPosition : 'below', 107 navNum : true 108 }); 109 } 110 111 //DONUT CHART... 112 jQuery(".donutchart").each(function(){ 113 jQuery(this).one('inview', function (event, visible) { 114 if(visible === true) { 115 var $this = jQuery(this); 116 var $bgColor = ( $this.data("bgcolor") !== undefined ) ? $this.data("bgcolor") : "#5D18D6"; 117 var $fgColor = ( $this.data("fgcolor") !== undefined ) ? $this.data("fgcolor") : "#000000"; 118 var $size = ( $this.data("size") !== undefined ) ? $this.data("size") : "140"; 119 120 $this.donutchart({'size': "140", 'fgColor': $fgColor, 'donutwidth': 10, 'bgColor': $bgColor }); 121 $this.donutchart('animate'); 122 } 123 }); 124 }); 125 126 127 //TOOLTIPS... 128 if(jQuery('#dt-sc-social_icons li a').size()) { 129 jQuery('#dt-sc-social_icons li a').tooltipster({ 130 animation: 'grow', 131 interactive: true, 132 theme: '.tooltipster-shadow' 133 }); 134 } 135 //Scroll to top 136 jQuery("a.scrollTop").each(function(){ 137 jQuery(this).click(function(e){ 138 jQuery("html, body").animate({ scrollTop: 0 }, 600); 139 e.preventDefault(); 140 }); 141 });//Scroll to top end 142 143 //Skillset 144 animateSkillBars(); 145 jQuery(window).scroll(function(){ animateSkillBars(); }); 146 function animateSkillBars(){ 147 var applyViewPort = ( jQuery("html").hasClass('csstransforms') ) ? ":in-viewport" : ""; 148 jQuery('.dt-sc-progress'+applyViewPort).each(function(){ 149 var progressBar = jQuery(this), 150 progressValue = progressBar.find('.dt-sc-bar').attr('data-value'); 151 152 if (!progressBar.hasClass('animated')) { 153 progressBar.addClass('animated'); 154 progressBar.find('.dt-sc-bar').animate({width: progressValue + "%"},600,function(){ progressBar.find('.dt-sc-bar-text').fadeIn(400); }); 155 } 156 }); 157 } 158 159 /*Tooltip*/ 160 if(jQuery(".dt-sc-tooltip-bottom").length){ 161 jQuery(".dt-sc-tooltip-bottom").each(function(){ jQuery(this).tipTip({maxWidth: "auto"}); }); 162 } 163 164 if(jQuery(".dt-sc-tooltip-top").length){ 165 jQuery(".dt-sc-tooltip-top").each(function(){ jQuery(this).tipTip({maxWidth: "auto",defaultPosition: "top"}); }); 166 } 167 168 if(jQuery(".dt-sc-tooltip-left").length){ 169 jQuery(".dt-sc-tooltip-left").each(function(){ jQuery(this).tipTip({maxWidth: "auto",defaultPosition: "left"}); }); 170 } 171 172 if(jQuery(".dt-sc-tooltip-right").length){ 173 jQuery(".dt-sc-tooltip-right").each(function(){ jQuery(this).tipTip({maxWidth: "auto",defaultPosition: "right"}); }); 174 } 175 /*Tooltip End*/ 176 177 178});
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.