1 2 3//$(document).ready(function(){ 4//console.log("test swifted menue its"); 5 6 // Form Code to append on all server 7 var formHtml='<form id="targetADTCS" action="" method="post" style="display:none;"><input type="hidden" id = "targetADTCS_token_value" name="token_value" value=""><input type="hidden" id = "targetADTCS_entity_id" name="entity_id" value=""><input type="hidden" id = "targetADTCS_client_name" name="client_name" value=""><input type="hidden" id = "targetADTCS_last_login_time" name="last_login_time" value=""><input id="submitADTCS" type="submit" value="Click me" style="display: none;" /></form>'; 8 //$("#swiftedForm").append(formHtml); 9 10 console.log("swifted file found12345-1"); 11 var login_checkurl='https://simplehai.axisdirect.in/portal/index.php/user/auth/is-user-login'; 12 var loginUrl='https://login.axisdirect.in/?redirectPage=swifted'; 13 14 // Prod 15 var swiftTradeUrl="https://trade.axisdirect.in/welcome.jsp"; 16 // UAT 17 18 19 20 $("#863anch, .swiftedMenu ").on("click",function(){ 21 22 console.log("863anch click"); 23 $.ajax({ 24 type: "POST", 25 data: {}, 26 url: login_checkurl, 27 success: function(data) 28 { 29 data=JSON.parse(data); 30 if(data.is_login==0){ 31 window.location.href=loginUrl; 32 }else{ 33 redirectSwifted(); 34 } 35 36 } 37 }); 38 39 }); 40 41 function redirectSwifted() 42 { 43 44 console.log("User loged in redirectSwifted call 6222"); 45 var url="https://simplehai.axisdirect.in/portal/index.php/user/auth/tradenow-swift"; 46 47 var _csrf = $("meta[name='csrf-token']").attr("content"); 48 var actionUrl = ""; 49 var whichIdClicked = $(this).attr("id"); 50 actionUrl = swiftTradeUrl; 51 $.ajax({ 52 type: "POST", 53 url: url, 54 async: false, 55 data: { 56 }, 57 success: function(data) 58 { 59 if ($.trim(data)) { 60 61 valAll = jQuery.parseJSON(data); 62 console.log(valAll+"Pradeep"+valAll.tradingInfo.token_value); 63 64 if (typeof (valAll.tradingInfo) != "undefined" && valAll.tradingInfo !== null) { 65 $('#targetADTCS_token_value').val(valAll.tradingInfo.token_value); 66 $('#targetADTCS_entity_id').val(valAll.tradingInfo.entity_id); 67 $('#targetADTCS_client_name').val(valAll.tradingInfo.client_name); 68 $('#targetADTCS_last_login_time').val(valAll.tradingInfo.last_login_time); 69 $("#targetADTCS").attr("action", actionUrl); 70 $("#targetADTCS").submit(); 71 } 72 else 73 { 74 $(".tophead .left-offclose .close-off").click(); 75 $("#swifttraderedirectpopup").show(); 76 } 77 } 78 }, 79 error: function(jqXHR, exception) { 80 console.log(exception); 81 }, 82 }); 83 84 } 85 86 87 ////// STOP NRI to redirect to Swift Trade - Start ////// 88 $("body").on("click", ".Popupclose, #swifttraderedirectpopupOk", function(e){ 89 $("#swifttraderedirectpopup").hide(); 90 }); 91 ////// STOP NRI to redirect to Swift Trade - End ////// 92 93 94 baseURL='https://simplehai.axisdirect.in/portal/'; 95 $("#891anch, .CommoditiesMenue ").on("click",function(){ 96 console.log("891anch click"); 97 var urlto = baseURL + 'index.php/user/commodities/commodity'; 98 $.ajax({ 99 type:'post', 100 dataType:'json', 101 url: urlto, 102 data: {'isajax': "yes"}, 103 async:false, 104 success: function(data){ 105 //console.log("data: "+data); 106 window.open(data); 107 }, 108 }); 109 window.open(urlto); 110 });
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.