Akron | 5e1252e | 2022-12-19 17:57:56 +0100 | [diff] [blame] | 1 | <!DOCTYPE html> |
| 2 | <html> |
| 3 | <head> |
Akron | 83b77a7 | 2023-03-17 13:37:06 +0100 | [diff] [blame] | 4 | <title>{{ .title }}</title> |
Akron | 773209f | 2023-03-10 16:55:11 +0100 | [diff] [blame] | 5 | <link href="https://korap.ids-mannheim.de/css/kalamar-plugin-latest.css" type="text/css" rel="stylesheet" /> |
| 6 | <script data-server="{{ .korapServer }}" src="https://korap.ids-mannheim.de/js/korap-plugin-latest.js"></script> |
Akron | 5fcb475 | 2023-03-10 19:35:10 +0100 | [diff] [blame] | 7 | <style><!-- |
| 8 | @font-face { |
| 9 | font-family: 'FontAwesome'; |
| 10 | src: url('https://korap.ids-mannheim.de/font/fontawesome-webfont.eot?v=4.3.0'); |
| 11 | src: url('https://korap.ids-mannheim.de/font/fontawesome-webfont.eot?#iefix&v=4.3.0') format('embedded-opentype'), url('https://korap.ids-mannheim.de/font/fontawesome-webfont.woff2?v=4.3.0') format('woff2'), url('https://korap.ids-mannheim.de/font/fontawesome-webfont.woff?v=4.3.0') format('woff'), url('https://korap.ids-mannheim.de/font/fontawesome-webfont.ttf?v=4.3.0') format('truetype'), url('https://korap.ids-mannheim.de/font/fontawesome-webfont.svg?v=4.3.0#fontawesomeregular') format('svg'); |
| 12 | font-weight: normal; |
| 13 | font-style: normal; |
| 14 | } |
| 15 | --></style> |
Akron | 5e1252e | 2022-12-19 17:57:56 +0100 | [diff] [blame] | 16 | </head> |
| 17 | <body> |
Akron | 83b77a7 | 2023-03-17 13:37:06 +0100 | [diff] [blame] | 18 | <h1>{{ .title }}</h1> |
Akron | 9e76933 | 2022-12-21 11:25:38 +0100 | [diff] [blame] | 19 | <section style="background-color: #fefefe"> |
Akron | 9baa3eb | 2022-12-20 20:24:24 +0100 | [diff] [blame] | 20 | <p id="buy">...</p> |
| 21 | </section> |
Akron | 8d25e1e | 2022-12-20 16:00:38 +0100 | [diff] [blame] | 22 | <script defer=""><!-- |
| 23 | "use strict"; |
| 24 | |
| 25 | function pluginit(P) { |
| 26 | |
| 27 | P.resize(); |
| 28 | |
| 29 | // Request metadata from the embedding match |
| 30 | P.requestMsg( |
| 31 | { |
| 32 | 'action':'get', |
| 33 | 'key':'textSigle' |
| 34 | }, function (d) { |
| 35 | var textSigle = d.value.value; |
| 36 | var xhttp = new XMLHttpRequest(); |
Akron | 8d25e1e | 2022-12-20 16:00:38 +0100 | [diff] [blame] | 37 | xhttp.onload = function() { |
Akron | c2d2d3b | 2022-12-21 11:29:59 +0100 | [diff] [blame] | 38 | if (this.status === 404) { |
Akron | 0c4aff0 | 2023-03-20 15:20:00 +0100 | [diff] [blame] | 39 | document.getElementById("buy").innerHTML = "{{ .noAccess }}" |
Akron | c2d2d3b | 2022-12-21 11:29:59 +0100 | [diff] [blame] | 40 | } else { |
| 41 | var ret = this.responseText.split(","); |
Akron | 83b77a7 | 2023-03-17 13:37:06 +0100 | [diff] [blame] | 42 | document.getElementById("buy").innerHTML = "{{ .fromProvider }} <a target=\"_blank\" href=\"" + ret[1] + "\" class=\"external\">" + ret[0] + "</a>."; |
Akron | c2d2d3b | 2022-12-21 11:29:59 +0100 | [diff] [blame] | 43 | } |
Akron | 8d25e1e | 2022-12-20 16:00:38 +0100 | [diff] [blame] | 44 | P.resize(); |
| 45 | } |
| 46 | xhttp.open("GET", textSigle, true); |
| 47 | xhttp.send(); |
| 48 | } |
| 49 | ); |
| 50 | |
| 51 | if (window.dynCall) { |
| 52 | window.dynCall(P) |
| 53 | }; |
| 54 | |
| 55 | // Set plugin object globally |
| 56 | window.Plugin = P; |
| 57 | |
| 58 | }; |
| 59 | --> |
| 60 | </script> |
Akron | 5e1252e | 2022-12-19 17:57:56 +0100 | [diff] [blame] | 61 | </body> |
| 62 | </html> |