tms01.nepsetms.com.np Open in urlscan Pro
103.90.85.1  Public Scan

Submitted URL: http://tms01.nepsetms.com.np/assets/js/custom.js
Effective URL: https://tms01.nepsetms.com.np/assets/js/custom.js
Submission: On October 21 via manual from US — Scanned from DE

Form analysis 0 forms found in the DOM

Text Content

$(document).ready(function () {
  var menu = $('.menu');
  var main = $('.main');
  var header = $('.header');
  var headerH = $('.header').outerHeight();
  main.css('margin-top', headerH);

  $(window).resize(function () {
    headerH = $('.header').outerHeight();
    main.css('margin-top', headerH);
    if ($(window).width() < 768) {
      menu.css('padding-top', headerH);
    } else {
      menu.css('padding-top', 0);
    }
  });


  //scrollbar
  //NEPSE Ticker JS
  $('#nepseticker').webTicker({
    height: '18px',
    duplicate: true,
    rssfrequency: 0,
    startEmpty: false,
    transition: "linear"
  });


  //show actions on Market Maker Spread
  //Spread Maker menu
  var spreadMenu = $('.spread__item--menu');
  var spreadAction = $('.spread__item--action');
  spreadMenu.on('click', function (e) {
    $(this).siblings('.spread__item--action').toggleClass('show');
    e.stopPropagation();
  });

  $(document).on('click', function () {
    //datepicker jquery
    $(".xdp").attr("disabled",true);
    if (spreadAction.hasClass('show')) {
      spreadAction.removeClass('show');
    }
  });

  try {
    $('[data-toggle="tooltip"]').tooltip();
  } catch(e) {
    
  }

  //Ticker Width
  var ticker = $("#nepseticker li");
  var tickerWidth = tickerWidth || 0;
  ticker.each(function(){
    tickerWidth += Math.round($(this).outerWidth());
    // tickerWidth += $(this).outerWidth();
  });
  $("#nepseticker").css({'width': tickerWidth});
});

$(window).on('load', function () {
  if ($(window).width() < 768) {
    let menu = $('.menu');
    let headerH = $('.header').outerHeight();
    menu.css('padding-top', headerH);
  }
});