1if( typeof pixflow_js_opt === 'undefined' ){ 2 var pixflow_js_opt = {"pie_chart_color":"#ccc","pie_track_color":"#333","pie_chart_size":"150"}; 3} 4 5var $ = jQuery; 6(function ($) { 7 var Reg_Email = /^\w+([\-\.]\w+)*@([a-z0-9]+(\-+[a-z0-9]+)?\.)+[a-z]{2,5}$/i, 8 $window = $(window), 9 isTouchDevice = 'ontouchstart' in window; 10 hash = window.location.hash; 11 12 13/*-----------------------------------------------------------------------------------*/ 14/* Resume 15/*-----------------------------------------------------------------------------------*/ 16 17 function Resume(){ 18 if(($(window).width()>768) && !($('.vertical-page').length)){ 19 $(".experiences").after('<ul id="fooX" />').next().html($(".experiences").html()); 20 $(".experiences li:odd").remove(); 21 $("#fooX li:even").remove(); 22 23 $(".experiences").carouFredSel({ 24 auto:false, 25 align:"left", 26 synchronise : "#fooX", 27 circular:true, 28 infinite:false, 29 width:'100%', 30 prev: '#resume-exp-prev', 31 next: '#resume-exp-next', 32 swipe: { 33 onMouse: true, 34 onTouch: true 35 } 36 37 }); 38 $("#fooX").carouFredSel({ 39 auto: false, 40 circular:true, 41 align:"left", 42 width:'100%', 43 infinite:false 44 }); 45 } 46 47 //For Responsive View 48 $(window).resize(function(){ 49 var Width=$(window).width(); 50 if((Width<=768)&&(Width>480) && !($('.vertical-page').length)){ 51 if($('.hideme').css('opacity')==1) 52 $('.car').trigger('destroy',true); 53 $(".experiences").trigger('destroy',true); 54 $("#fooX").trigger('destroy',true); 55 $(".portfolio").mCustomScrollbar("destroy"); 56 } 57 else if( (Width<=480) && !($('.vertical-page').length)){ 58 59 if($('.hideme').css('opacity')==1) 60 $('.car').trigger('destroy',true); 61 $(".experiences").trigger('destroy',true); 62 $("#fooX").trigger('destroy',true); 63 $(".portfolio").mCustomScrollbar("destroy"); 64 65 } 66 else if ( (Width>768) && !($('.vertical-page').length) ){ 67 if($('.hideme').css('opacity')==1) 68 chart_carousel(); 69 70 $(".experiences").carouFredSel({ 71 auto:false, 72 synchronise : "#fooX", 73 align:"left", 74 circular:true, 75 infinite:false, 76 width:'100%', 77 prev: '#resume-exp-prev', 78 next: '#resume-exp-next', 79 swipe: { 80 onMouse: true, 81 onTouch: true 82 } 83 84 }); 85 $("#fooX").carouFredSel({ 86 auto: false, 87 align:"left", 88 width:'100%', 89 circular:true, 90 infinite:false 91 }); 92 93 } 94 }); 95 96 var mainpartFlag= 0,$element,topFlag=0; 97 98 //if page not load from top show UP button 99 if ( ( $('.vertical-page').length ) && ( $(window).scrollTop()>= 100 ) ) 100 { 101 topFlag=1; 102 $('.go-to-top').css('opacity',1); 103 104 } 105 106 //Scrolling mainpart to Appear element 107 if ( $('.vertical-page').length || ($(window).width()<768) ) 108 { 109 $element=$(window); 110 } 111 else 112 { 113 $element=$('.mainpart'); 114 } 115 116 $element.scroll(function(){ 117 var i=$(window).scrollTop(); 118 119 120 // show up button on scrolling 121 if ( ( i > 900 )) 122 { 123 $('.go-to-top').css('opacity',1); 124 125 } 126 // Hide UP button when we are at top of the page 127 if ( ( i < 850 ) ) 128 { 129 $('.go-to-top').css('opacity',0); 130 } 131 132 133 // Check the location of each desired element 134 $('#resume').each( function(i){ 135 136 var left_of_object = $(this).position().left + $(this).outerWidth(); //+600 137 var left_of_container= $('.mainpart').scrollLeft() + $('.mainpart').width(); 138 139 var top_of_object = $(this).position().top ; //+300 140 var top_of_container= $(window).scrollTop() + $(window).height(); 141 142 if ( ($(window).width()<768) && (mainpartFlag === 0) ) { 143 mainpartFlag=1; 144 $('.hideme').animate({'opacity':'1'},'fast',function(){ 145 init_chart(); 146 viewP(); 147 }); 148 } else { 149 // If the object is completely visible in the window, fade it it 150 if( ((left_of_container > left_of_object ) || (top_of_container > top_of_object)) && (mainpartFlag === 0) ){ 151 mainpartFlag=1; 152 $('.hideme').animate({'opacity':'1'},'fast',function(){ 153 init_chart(); 154 viewP(); 155 if( ($(window).width()>768) && !($('.vertical-page').length) ) 156 chart_carousel(); 157 });
158 } 159 } 160 }); 161 }); 162 } 163 164/*-----------------------------------------------------------------------------------*/ 165/* Easy Pie Chart Function 166/*-----------------------------------------------------------------------------------*/ 167 168 var init_chart=(function() { 169 $('.chart').easyPieChart({ 170 scaleColor:false, 171 barColor: pixflow_js_opt.pie_chart_color, 172 lineWidth:25, 173 trackColor: pixflow_js_opt.pie_track_color, 174 lineCap:'butt', 175 animate:1500, 176 size: pixflow_js_opt.pie_chart_size 177 }); 178 }); 179 180 181 var init_shortcode_chart=(function() { 182 $('.shortcode_chart_skin').easyPieChart({ 183 scaleColor:false, 184 barColor: pixflow_js_opt.pie_chart_color, 185 lineWidth:5, 186 trackColor: pixflow_js_opt.pie_track_color, 187 lineCap:'butt', 188 animate:1200, 189 size: pixflow_js_opt.pie_chart_size 190 }); 191 192 $('.shortcode_chart').easyPieChart({ 193 scaleColor:false, 194 barColor: pixflow_js_opt.pie_chart_color, 195 lineWidth:5, 196 trackColor: pixflow_js_opt.pie_track_color, 197 lineCap:'butt', 198 animate:1200, 199 size: pixflow_js_opt.pie_chart_size 200 }); 201 }); 202 203/*-----------------------------------------------------------------------------------*/ 204/* chart carousel 205/*-----------------------------------------------------------------------------------*/ 206 207 var chart_carousel=(function(){ 208 $('.car').carouFredSel({ 209 auto: false, 210 circular:false, 211 infinite:false, 212 prev: '#prev2', 213 next: '#next2', 214 mousewheel:false, 215 swipe: { 216 onMouse: true, 217 onTouch: true 218 } 219 }); 220 }); 221 222/*-----------------------------------------------------------------------------------*/ 223/* viewP 224/*-----------------------------------------------------------------------------------*/ 225 226 var viewP=(function(){ 227 $('.chart span').css('visibility','visible'); 228 $('.chartbox p').css('visibility','visible'); 229 }); 230 231 $(document).ready(function () { 232 init_shortcode_chart(); 233 if($('#resume').length) 234 Resume(); 235 }); 236 //End $(document).ready 237 238})(jQuery);
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.