Subversion Repositories SmartDukaan

Rev

Rev 32875 | Rev 32939 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 32875 Rev 32936
Line 804... Line 804...
804
                    <h3 class="page-header" style="position:relative"><i class="fa fa-laptop"></i> Dashboard
804
                    <h3 class="page-header" style="position:relative"><i class="fa fa-laptop"></i> Dashboard
805
                      <!--  <span style="position:absolute;top:-55px;right:45%"><a class="digify-retailer-login-test"
805
                      <!--  <span style="position:absolute;top:-55px;right:45%"><a class="digify-retailer-login-test"
806
                                                                               href="${rc.contextPath}/digify/register"
806
                                                                               href="${rc.contextPath}/digify/register"
807
                                                                               target="_blank">  <img
807
                                                                               target="_blank">  <img
808
                                src="resources/images/Buyback-Mobile.png"> </a> </span>-->
808
                                src="resources/images/Buyback-Mobile.png"> </a> </span>-->
-
 
809
                        <span style="position:absolute;top:-55px;right:1%">
-
 
810
                            <table>
-
 
811
                                <tr>
-
 
812
                                    <td>
-
 
813
                                        <b style="font-size: 11px;text-transform: capitalize;color: black;">Selling with personal finance ?<br>
-
 
814
                                        Secure your products with us</b>
-
 
815
                                    </td>
-
 
816
                                    <td>
-
 
817
                                        <a class="digify-retailer-login-test"
-
 
818
                                           href="javascript:void(0);" onclick="makeAjaxRequest()">  <img
-
 
819
                                                src="resources/images/smartsecure.jpeg" style="width: 90px;"> </a>
-
 
820
                                    </td>
-
 
821
                                </tr>
-
 
822
                            </table>
-
 
823
                        </span>
809
 
824
 
810
                    </h3>
825
                    </h3>
811
 
826
 
812
                    <ol class="breadcrumb">
827
                    <ol class="breadcrumb">
813
                        <li><i class="fa fa-home"></i><a href="${rc.contextPath}/dashboard">Home</a></li>
828
                        <li><i class="fa fa-home"></i><a href="${rc.contextPath}/dashboard">Home</a></li>
Line 1950... Line 1965...
1950
        var options = $chartMap;
1965
        var options = $chartMap;
1951
        var ctx = document.getElementById('barchart').getContext('2d');
1966
        var ctx = document.getElementById('barchart').getContext('2d');
1952
        window.bar = new Chart(ctx, options);
1967
        window.bar = new Chart(ctx, options);
1953
    };
1968
    };
1954
</script>
1969
</script>
-
 
1970
 
-
 
1971
 
-
 
1972
<script>
-
 
1973
    function makeAjaxRequest() {
-
 
1974
        $.ajax({
-
 
1975
            url: 'https://partners.smartdukaan.com/psi/auth-endpoint',
-
 
1976
            method: 'GET',
-
 
1977
            dataType: 'xml', // Assuming the response is in XML format
-
 
1978
            success: function (responseXml) {
-
 
1979
                var responseUrl = $(responseXml).find('response').text();
-
 
1980
                if (responseUrl) {
-
 
1981
                    // Open a new tab with the response URL
-
 
1982
                    window.open(responseUrl, '_blank');
-
 
1983
                } else {
-
 
1984
                    console.error('Response URL not found in the XML');
-
 
1985
                }
-
 
1986
            },
-
 
1987
            error: function (jqXHR, textStatus, errorThrown) {
-
 
1988
                console.error('AJAX Request Failed:', textStatus, errorThrown);
-
 
1989
            }
-
 
1990
        });
-
 
1991
    }
-
 
1992
</script>