1(function ($) { 2 'use strict'; 3 4$(document).ready(function () { 5var months = ['January','February','March','April','May','June','July','August','September','October','November','December']; 6 var now = new Date(); 7 var thisMonth = months[now.getMonth()]; 8 var thisYear = now.getFullYear(); 9 var date_line = "<p class='dateline'>As on August 2026" + /*thisMonth +" "+ thisYear +*/ "</p>"; 10 //console.log(date_line); 11 $(".tab-pill").append(date_line); 12 }); 13 14 Drupal.behaviors.customJs = { 15 attach: function (context, setting) { 16 $(document).ready(function () { 17 /* if($(window).width() >= 768) {*/ 18 // Select and loop the container element of the elements you want to 19 // equalise 20 $('.row').each(function () { 21 22 // Cache the highest 23 var highestBox = 0; 24 25 // Select and loop the elements you want to equalise 26 $('.fund-box', this).each(function () { 27 28 // If this box is higher than the cached highest then store it 29 if ($(this).height() > highestBox) { 30 highestBox = $(this).height(); 31 } 32 }); 33 34 // Set the height of all those children to whichever was highest 35 $('.fund-box', this).height(highestBox); 36 37 }); 38 }); 39 40 /* datepicker start */ 41 $(document).ready(function () { 42 $('.datepicker-span').click(function(){ 43 $(this).prev().datepicker("show"); 44 }); 45 /* hide the citizenship popup */ 46 //if(getCookie('isPopupLoad') == "") 47 //$('#myModal').modal(); 48 49 $('nav#mob-menu .navbar-toggle-custom .menu').click(function(){ 50 $('body').addClass("fixedPosition"); 51 }); 52 $('.closeMobileNav').click(function(){ 53 $('body').removeClass("fixedPosition"); 54 }); 55 }); 56 /* datepicker end */ 57 } 58 }; 59 60 /* js to load and show loader image on team page added on 11 dec 2018 starts*/ 61 // Sets the fullscreen progress indicator. 62 Drupal.behaviors.privacyPolicyLinked = { 63 attach: function (context) { 64 Drupal.Ajax.prototype.setProgressIndicatorFullscreen = function () { 65 this.progress.element = $('<div class="ajax-progress ajax-progress-fullscreen"><img src="'+drupalSettings.path.baseUrl+'themes/custom/taurus/images/ajax-loader.gif"></div>'); 66 $('body .pager').before(this.progress.element); 67 }; 68 } 69 }; 70 /* js to load and show loader image on team page added on 11 dec 2018 ends*/ 71 72 /*code to make div hide show for distributor page starts */ 73 $(document).ready(function() { 74 $("input[name$='inlineRadioOptions']").click(function() { 75 var radioVal = $(this).val(); 76 var dpValue = $(this).attr('dp-val'); 77 $(".dist-opt-ans").show(); 78 $(".dist-opt-ans").html(dpValue); 79 }); 80 }); 81 $(document).ready(function() { 82 $('#nav-regular .chart-tab li.active').click(); 83 }); 84 /*code to make div hide show for distributor page ends */ 85 86})(jQuery); 87 88 jQuery('#right-button').click(function (event){ 89 event.preventDefault(); 90 jQuery('.inner').animate({ 91 scrollLeft: "+=187px" 92 }, "slow"); 93 }); 94 95 jQuery('#left-button').click(function (event){ 96 event.preventDefault(); 97 jQuery('.inner').animate({ 98 scrollLeft: "-=187px" 99 }, "slow"); 100 }); 101 jQuery('#right-button_r').click(function (event){ 102 event.preventDefault(); 103 jQuery('.inner').animate({ 104 scrollLeft: "+=187px" 105 }, "slow"); 106 }); 107 108 jQuery('#left-button_r').click(function (event){ 109 event.preventDefault(); 110 jQuery('.inner').animate({ 111 scrollLeft: "-=187px" 112 }, "slow"); 113 }); 114 115 116jQuery('#regular-link').click(function (){ 117 jQuery("#direct-link").removeClass("active"); 118 jQuery(this).addClass("active"); 119 }); 120jQuery('#direct-link').click(function (){
121 jQuery('#nav-direct .chart-tab li.active').click(); 122 jQuery("#regular-link").removeClass("active"); 123 jQuery(this).addClass("active"); 124 }); 125function generate_direct_chart(chart_id,filter_val,nodeId,directPlanId,benchmarkPlanId){ 126 var xAxis = new Array(); 127 var nav = new Array(); 128 var bench = new Array(); 129 jQuery.ajax({ 130 type: 'POST', 131 url: drupalSettings.path.baseUrl + "api/post", 132 data:"nodeId="+nodeId+"®ular_directPlanId="+directPlanId+"&benchmarkPlanId="+benchmarkPlanId+"&filter_val="+filter_val, 133 dataType: "json", 134 success: function(resultData) { 135 jQuery.each(resultData.r_d_result, function (key, val) { 136 xAxis.push(key); 137 /*nav.push(val.rd);*/ 138 nav.push(val.rd_tooltip); 139 bench.push(val.bench); 140 }); 141 myChart.update(); 142 } 143 }); 144 var ctx = document.getElementById("myChart"+chart_id+"_direct").getContext('2d'); 145 var myChart = new Chart(ctx, { 146 type: 'line', 147 data: { 148 labels: xAxis, 149 datasets: [{ 150 label: 'Nav', 151 fill: false, 152 borderColor: "rgb(230,217,255)", 153 data: nav, 154 }/*,{ 155 label: 'Benchmark', 156 fill: false, 157 borderColor: "rgb(255,128,64)", 158 data: bench, 159 }*/] 160 }, 161 options: { 162 legend:{labels: {fontColor: 'white'},display:false}, 163 responsive: true, 164 tooltips: { 165 mode: 'index', 166 intersect: false, 167 }, 168 hover: { 169 mode: 'nearest', 170 intersect: true 171 }, 172 scales:{ 173 yAxes: [{ 174 ticks: { 175 fontColor: 'white' 176 }, 177 gridLines: { 178 color: "#FFFFFF", 179 display:false 180 }, 181 }], 182 xAxes: [{ 183 gridLines: { 184 color: "#FFFFFF", 185 display:false 186 }, 187 ticks: { 188 display: false //this will remove only the label 189 }, 190 zeroLineColor: '#FFFFFF' 191 }] 192 } 193 } 194 }); 195} 196function generate_regular_chart(chart_id,filter_val,nodeId,regularPlanId,benchmarkPlanId){ 197 var xAxis = new Array(); 198 var nav = new Array(); 199 var bench = new Array(); 200 jQuery.ajax({ 201 type: 'POST', 202 url: drupalSettings.path.baseUrl + "api/post", 203 data:"nodeId="+nodeId+"®ular_directPlanId="+regularPlanId+"&benchmarkPlanId="+benchmarkPlanId+"&filter_val="+filter_val, 204 dataType: "json", 205 success: function(resultData) { 206 jQuery.each(resultData.r_d_result, function (key, val) { 207 xAxis.push(key); 208 /*nav.push(val.rd);*/ 209 nav.push(val.rd_tooltip); 210 bench.push(val.bench); 211 }); 212 myChart.update(); 213 } 214 }); 215 var ctx = document.getElementById("myChart"+chart_id); 216 var dataFirst = { 217 label: 'Nav', 218 fill: false, 219 borderColor: "rgb(230,217,255)", 220 data: nav, 221 }; 222 223 var dataSecond = { 224 label: 'Benchmark', 225 fill: false, 226 borderColor: "rgb(255,128,64)", 227 data: bench, 228 }; 229 var speedData = { 230 labels: xAxis, 231 /*datasets: [dataFirst, dataSecond]*/ 232 datasets: [dataFirst] 233 }; 234 235 var chartOptions = { 236 legend:{labels: {fontColor: 'white'},display:false}, 237 responsive: true, 238 tooltips: { 239 mode: 'index', 240 intersect: false, 241 }, 242 hover: { 243 mode: 'nearest', 244 intersect: true 245 }, 246 scales:{ 247 yAxes: [{ 248 ticks: { 249 fontColor: 'white' 250 }, 251 gridLines: { 252 color: "#FFFFFF", 253 display:false 254 }, 255 }], 256 xAxes: [{ 257 gridLines: { 258 color: "#FFFFFF", 259 display:false 260 }, 261 ticks: { 262 display: false //this will remove only the label 263 },
264 zeroLineColor: '#FFFFFF' 265 }] 266 } 267 }; 268 var myChart = new Chart(ctx, { 269 type: 'line', 270 data: speedData, 271 options: chartOptions 272 }); 273} 274 275function setCookie(){ 276 document.cookie = "isPopupLoad=1"; 277 jQuery('#myModal').modal('hide'); 278} 279 280function getCookie(cname) { 281 var name = cname + "="; 282 var decodedCookie = decodeURIComponent(document.cookie); 283 var ca = decodedCookie.split(';'); 284 for(var i = 0; i <ca.length; i++) { 285 var c = ca[i]; 286 while (c.charAt(0) == ' ') { 287 c = c.substring(1); 288 } 289 if (c.indexOf(name) == 0) { 290 return c.substring(name.length, c.length); 291 } 292 } 293 return ""; 294} 295 296jQuery(document).ready(function($){ 297 298 299$("header").append('<button id="narrateBtn" class="play">Screen Reader</button>'); 300 301 302// narrator start 303 304const CONTENT_SELECTOR = 'body'; 305 const btn = document.getElementById('narrateBtn'); 306 const synth = window.speechSynthesis; 307 function getText() { 308 const sel = String(window.getSelection()).trim(); 309 if (sel) return sel; 310 const el = document.querySelector(CONTENT_SELECTOR); 311 return el ? el.innerText.trim() : document.body.innerText.trim(); 312 } 313 314 function speak(text) { 315 const u = new SpeechSynthesisUtterance(text); 316 // Optional: set voice/language/rate 317 u.lang = 'hi-IN'; // try 'hi-IN' for Hindi, 'mr-IN' for Marathi 318 u.rate = 1; // 0.5â2 319 u.onend = () => btn.textContent = 'Screen Reader'; 320 u.onend = () => btn.classList.add('play'); 321 u.onend = () => btn.classList.remove('pause'); 322 u.onerror = () => btn.textContent = 'Screen Reader'; 323 u.onerror = () => btn.classList.add('play'); 324 u.onerror = () => btn.classList.remove('pause'); 325 synth.speak(u); 326 } 327 328 btn.addEventListener('click', () => { 329 console.log('start'); 330 if (!('speechSynthesis' in window)) { 331 alert('Sorry, your browser does not support speech synthesis.'); 332 return; 333 } 334 if (synth.speaking || synth.paused) { 335 synth.cancel(); 336 btn.textContent = 'Screen Reader'; 337 btn.classList.add('play') 338 } else { 339 const text = getText(); 340 if (!text) return; 341 btn.textContent = 'Stop'; 342 btn.onend = () => btn.classList.remove('play'); 343 btn.classList.add('pause') 344 speak(text); 345 } 346 }); 347// narrator end 348 349 350//Custome Banner in mobile 351// if ($(window).width() < 768) { 352// $(".carousel-inner div.item:nth-child(1) img").attr("src","/sites/default/files/2022-11/Banner_sm.jpg"); 353 354// } 355 356 357 358// $(".bnBx button").click(function () { 359// $('.bnBx').hide(); 360// }); 361 362// $('#myWoldCr').carousel({ 363// interval: 5000, 364// cycle: true 365// }); 366 367 368 369 370 371}); 372 373 374 375document.addEventListener('keydown', function (e) { 376 if (e.key === 'Escape') { 377 const activeElement = document.activeElement; 378 379 if (activeElement.closest('.dropdown-menu')) { 380 const submenu = activeElement.closest('.dropdown-menu'); 381 const trigger = submenu.closest('.dropdown-submenu')?.querySelector('a'); 382 383 submenu.style.display = 'none'; 384 385 if (trigger) { 386 trigger.setAttribute('aria-expanded', 'false'); 387 trigger.focus(); 388 } 389 390 e.preventDefault(); 391 } 392 } 393}); 394 395 396 397 398 399 400 401 402 403 404 405var href = document.location.href; 406var page_name = href.substr(href.lastIndexOf('/') + 1); 407 408 409 410jQuery(document).ready(function($){ 411if(page_name=="taurus-largecap-equity-fund" || page_name=="taurus-discovery-midcap-fund" || page_name=="taurus-ethical-fund" ||page_name=="taurus-infrastructure-fund" ||page_name=="taurus-nifty-index-fund" ||page_name=="taurus-starshare-multi-cap-fund" ||page_name=="taurus-banking-and-financial-services-fund" ||page_name=="taurus-tax-shield") 412{ 413 //$(".fund-graph > .container").append('<div class="fund_portfolio_btn"><a href="https://taurusmutualfund.com/fund-portfolio-analysis.php?pg='+page_name+'" target="_blank">Click here to View</a></div>'); 414 $("#fund_portfolio_direct").append('<iframe src="https://taurusmutualfund.com/fund-portfolio-analysis.php?pg='+page_name+'" name="banner" width="100%" marginwidth="0" height="475" marginheight="0" align="top" scrolling="No" frameborder="0" hspace="0" vspace="0" title="Fund Portfolio Analysis">Browser not compatible. </iframe>'); 415 $("#fund_portfolio_regular").append('<iframe src="https://taurusmutualfund.com/fund-portfolio-analysis.php?pg='+page_name+'" name="banner" width="100%" marginwidth="0" height="475" marginheight="0" align="top" scrolling="No" frameborder="0" hspace="0" vspace="0" title="Fund Portfolio Analysis">Browser not compatible. </iframe>'); 416} 417 418// var params = getParameterByName(pg, location.href); 419// alert(params); 420 421// if(params!=""){ 422// alert(params); 423 424// } 425 426}); 427 428 429function getParameterByName(name, url) { 430 if (!url) url = window.location.href; 431 name = name.replace(/[\[\]]/g, '\\$&'); 432 var regex = new RegExp('[?&]' + name + '(=([^&#]*)|&|#|$)'), 433 results = regex.exec(url); 434 if (!results) return null; 435 if (!results[2]) return ''; 436 return decodeURIComponent(results[2].replace(/\+/g, ' ')); 437} 438 439
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.