Rev 876 | Rev 891 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
635 | daniel-mar | 1 | /* |
2 | * OIDplus 2.0 |
||
3 | * Copyright 2019 - 2021 Daniel Marschall, ViaThinkSoft |
||
4 | * |
||
5 | * Licensed under the Apache License, Version 2.0 (the "License"); |
||
6 | * you may not use this file except in compliance with the License. |
||
7 | * You may obtain a copy of the License at |
||
8 | * |
||
9 | * http://www.apache.org/licenses/LICENSE-2.0 |
||
10 | * |
||
11 | * Unless required by applicable law or agreed to in writing, software |
||
12 | * distributed under the License is distributed on an "AS IS" BASIS, |
||
13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
||
14 | * See the License for the specific language governing permissions and |
||
15 | * limitations under the License. |
||
16 | */ |
||
17 | |||
18 | var OIDplusPagePublicWhois = { |
||
19 | |||
890 | daniel-mar | 20 | openInBrowser: function() { |
21 | var url = $("#whois_url_bar")[0].innerText; |
||
22 | //document.location.href = url; |
||
23 | window.open(url); |
||
24 | }, |
||
25 | |||
635 | daniel-mar | 26 | refresh_whois_url_bar: function() { |
890 | daniel-mar | 27 | var format = "text"; |
635 | daniel-mar | 28 | var radios = $("[name=format]"); |
29 | |||
30 | for (var i = 0, length = radios.length; i < length; i++) { |
||
31 | if (radios[i].checked) { |
||
32 | format = radios[i].value; |
||
33 | } |
||
34 | } |
||
35 | |||
890 | daniel-mar | 36 | var query = $("#whois_query")[0].value; |
37 | if (format != "text") query += "$format="+format; |
||
38 | |||
39 | var auth = $("#whois_auth")[0].value; |
||
40 | if (auth != "") query += "$auth="+auth; |
||
41 | |||
42 | $("#whois_url_bar")[0].innerHTML = getSystemUrl() + 'plugins/viathinksoft/publicPages/100_whois/whois/webwhois.php?query=' + encodeURIComponent(query); |
||
43 | $("#whois_query_bar")[0].innerHTML = query; |
||
635 | daniel-mar | 44 | } |
45 | |||
46 | }; |