Nico Huber | ee52fbc | 2023-06-24 11:52:57 +0000 | [diff] [blame^] | 1 | var discovery_refresh = function() { |
| 2 | var code = ''; |
| 3 | |
| 4 | if ($('#discovery-openid1')[0].checked) { |
| 5 | code += $('#discovery-templates .openid1').html() + '\n'; |
| 6 | if ($('#discovery-local-id')[0].checked) code += $('.openid1-local-id').html() + '\n'; |
| 7 | } |
| 8 | if ($('#discovery-openid2')[0].checked) { |
| 9 | code += $('#discovery-templates .openid2').html() + '\n'; |
| 10 | if ($('#discovery-local-id')[0].checked) code += $('.openid2-local-id').html() + '\n'; |
| 11 | } |
| 12 | |
| 13 | if (code == '') code = l.code; |
| 14 | |
| 15 | $('#discovery-link-tags').html(code); |
| 16 | } |
| 17 | |
| 18 | $(document).ready(function() { |
| 19 | $('.discovery-checkbox').click(discovery_refresh); |
| 20 | discovery_refresh(); |
| 21 | }); |