|
9 | 9 | <!-- start *****REPLACE***** SEO meta details--> |
10 | 10 | <meta name="description" content="Xero-Java SDK Accounting API Documentation"> |
11 | 11 | <title>Xero-Java Accounting SDK Docs</title> |
12 | | - <meta name="keywords" content="Xero-Java, java, sdk, documentation, docs, XeroAPI, Xero, developer"> |
| 12 | + <meta name="keywords" content="Xero-Java, Java, sdk, documentation, docs, XeroAPI, Xero, developer"> |
13 | 13 | <!-- end *****REPLACE***** SEO meta details--> |
14 | 14 | <meta name="author" content="Xero Developer Evangelists"> |
15 | 15 | <link rel="shortcut icon" href="https://developer.xero.com/static/favicon.ico" type="image/x-icon"> |
|
309 | 309 | } |
310 | 310 |
|
311 | 311 | #content { |
312 | | - padding-top: 65px; |
| 312 | + padding-top: 80px; |
313 | 313 | z-index: -1; |
314 | 314 | margin-left: 270px; |
315 | 315 | } |
|
826 | 826 |
|
827 | 827 | .xero-logo { |
828 | 828 | float: left; |
| 829 | + margin-top: 5px; |
| 830 | +} |
| 831 | + |
| 832 | +.language { |
| 833 | + background: #fff; |
| 834 | + border-radius: 50%; |
| 835 | + padding: 1px; |
829 | 836 | } |
830 | 837 |
|
831 | 838 | .language, .api-set-wrapper { |
832 | 839 | float: left; |
833 | | - margin-left: 20px; |
| 840 | + margin-left: 30px; |
834 | 841 | } |
835 | 842 |
|
836 | 843 | .language img { |
837 | 844 | height: 30px; |
838 | 845 | width: auto; |
| 846 | + padding: 5px; |
839 | 847 | } |
840 | 848 |
|
841 | 849 | .api-set { |
842 | 850 | float: left; |
843 | 851 | margin-left: 30px; |
| 852 | + margin-top: 5px; |
844 | 853 | } |
845 | 854 |
|
846 | 855 | .api-set-wrapper { |
847 | 856 | padding-top: 5px; |
848 | 857 | } |
849 | 858 |
|
850 | | -.api-set-name { |
851 | | - color: #fff; |
852 | | -} |
853 | | - |
854 | 859 | </style> |
855 | 860 | </head> |
856 | 861 | <body> |
|
5749 | 5754 | </div> |
5750 | 5755 | <fieldset class='api-set'> |
5751 | 5756 | <select name="form" id="language-set-selection" onchange="routeDocs(this);"> |
| 5757 | + <option data-url="#">-SDK-</option> |
5752 | 5758 | <option data-url="https://xeroapi.github.io/Xero-Java/v4/accounting/index.html" value="java">Java</option> |
5753 | 5759 | <option data-url="https://xeroapi.github.io/xero-node/accounting/index.html" value="node">Node</option> |
5754 | | - <option data-url="https://github.com/XeroAPI/Xero-NetStandard" value="dotnet">C#</option> |
| 5760 | + <option data-url="https://xeroapi.github.io/Xero-NetStandard/accounting/index.html" value="dotnet">C#</option> |
5755 | 5761 | <option data-url="https://xeroapi.github.io/xero-php-oauth2/docs/v2/accounting/index.html" value="php">PHP</option> |
5756 | 5762 | <option data-url="https://xeroapi.github.io/xero-python/v1/accounting/index.html" value="python">Python</option> |
5757 | 5763 | <option data-url="https://xeroapi.github.io/xero-ruby/accounting/index.html" value="ruby">Ruby</option> |
5758 | 5764 | </select> |
5759 | 5765 | </fieldset> |
5760 | 5766 | <div class='language'> |
5761 | | - <img alt="" width="115" height="30" class="xrh-app-image" src="https://i.imgur.com/hTwRNlp.png"> |
| 5767 | + <img alt="xero-java icon" class="xrh-app-image language-logo" src="https://i.imgur.com/YlFfXNk.png"> |
5762 | 5768 | <!-- *****REPLACE***** with a small png of your language --> |
5763 | 5769 | </div> |
5764 | 5770 | <fieldset class='api-set'> |
5765 | 5771 | <select name="form" id="api-set-selection" onchange="routeDocs(this);"> |
5766 | 5772 | <!-- *****REPLACE***** `xero-node` with the correct repo naming pattern + also add/delete api sets (ex. Ruby does not have Bankfeeds) --> |
| 5773 | + <option data-url="#">-API-</option> |
5767 | 5774 | <option data-url="https://xeroapi.github.io/Xero-Java/v4/accounting/index.html" value="Accounting">Accounting</option> |
5768 | 5775 | </select> |
5769 | 5776 | </fieldset> |
5770 | 5777 | <div class='api-set-wrapper'> |
5771 | | - <span class='api-set-name'>Accounting API</span> |
5772 | 5778 | <script> |
5773 | 5779 | $(document).ready(function() { |
5774 | 5780 | const location = window.location.href.toLowerCase() |
5775 | 5781 | let sdkLang |
5776 | 5782 | let sdkName |
5777 | 5783 | if( location.includes('ruby') ){ |
5778 | 5784 | sdkLang = 'ruby' |
5779 | | - sdkName = 'Xero-Java' |
| 5785 | + sdkName = 'xero-ruby' |
5780 | 5786 | } else if (location.includes('node')){ |
5781 | 5787 | sdkLang = 'node' |
5782 | 5788 | sdkName = 'xero-node' |
5783 | 5789 | } else if (location.includes('php')){ |
5784 | 5790 | sdkLang = 'php' |
5785 | 5791 | sdkName = 'xero-php-oauth2' |
5786 | | - } else if (location.includes('dotnet')){ |
| 5792 | + } else if (location.includes('xero-netstandard') || location.includes('csharp')){ |
5787 | 5793 | sdkLang = 'dotnet' |
5788 | 5794 | sdkName = 'Xero-NetStandard' |
5789 | 5795 | } else if (location.includes('java')){ |
|
0 commit comments