Advertisement
Jawad0099

Untitled

Aug 19th, 2019
367
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.61 KB | None | 0 0
  1. <body>
  2. <script type="text/javascript"><!--
  3.  
  4.  
  5.  
  6.  
  7. jQuery(function($)
  8. {
  9.  
  10. var currentPage = $('#wrapper').attr('class');
  11.  
  12. // if there is landingPage to load
  13. if( $('#requestedPage').length != 0 )
  14. {
  15. net.exchangesolutions.fn.handleNavigationState(true);
  16.  
  17. // un-hide the sidebar
  18. $('#EssoExtraSideBar').show();
  19.  
  20.  
  21. var requestedPage = $('#requestedPage').text();
  22.  
  23. if(requestedPage == 'ProgramMessage')
  24. {
  25. //Submit the page instead of reloading the JFrame as its a submit button with all parameters being submitted
  26. $("#contactus").submit();
  27. }
  28. else
  29. {
  30. if(requestedPage.search(".page") == -1)
  31. {
  32. requestedPage+=".page";
  33. }
  34. $('#main_frame').loadJFrame('/member/'+requestedPage);
  35. }
  36. }
  37. else
  38. {
  39. // redirect to member home static template
  40.  
  41. // Temporary disable redirect
  42. // TODO: remove these two line and uncomment redirect below
  43. //$('#EssoExtraSideBar').show();
  44. //$('#main_frame').loadJFrame('/member/MemberMain.page');
  45.  
  46. window.location = "member_home.aspx"
  47. }
  48.  
  49. });
  50.  
  51.  
  52.  
  53.  
  54. // --></script>
  55.  
  56.  
  57. <!-- Hide the sidebar in case we need to redirect -->
  58. <div id="EssoExtraSideBar" style="display: none">
  59.  
  60. <div id="welcome" class="box">
  61. <div class="boxtop points"></div>
  62.  
  63. <div class="boxmiddle">
  64. <span class="customer_name">
  65. Andy
  66. </Span>
  67. <span class="customer_signout">
  68. <a href="/member/loyalty?service=membersiteRestartService" id="logout">
  69. (log out)
  70. </a>
  71. </span>
  72. <span class="points_hdr">
  73. Current Points
  74. </span>
  75. <span class="customer_points_total">
  76. 0
  77. </span>
  78. <span class="customer_callout">
  79. From Free Gas and Car Washes, to Gift Cards and Lottery Tickets, Esso Extra has something for everyone.
  80. </span>
  81. <a href="all_rewards.aspx" id="loggedInRewardStatus" jframe="no">
  82. <img src="/member/images/btn_brws_rwrds.png" class="points_btn"/>
  83. </a>
  84. </div>
  85.  
  86. <div class="boxbottom points"></div>
  87. </div>
  88.  
  89.  
  90.  
  91. </div>
  92.  
  93. </body>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement