github.com/pion/webrtc/v3@v3.2.24/examples/example.html (about) 1 <html> 2 <!-- 3 SPDX-FileCopyrightText: 2023 The Pion community <https://pion.ly> 4 SPDX-License-Identifier: MIT 5 --> 6 <head> 7 <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> 8 <link href="https://fonts.googleapis.com/css?family=Quicksand:400,500,700" rel="stylesheet"> 9 <title>{{ .Title }} | Pion</title> 10 <style> 11 body { 12 font-family: "Quicksand", sans-serif; 13 font-weight: 400; 14 margin: 4em 10%; 15 } 16 </style> 17 <link rel="stylesheet" type="text/css" href="demo.css"> 18 </head> 19 <body> 20 <h1>{{ .Title }}</h1> 21 <p><a href="/">< Home</a></p> 22 23 <div> 24 {{ template "demo.html" }} 25 </div> 26 </body> 27 {{ if .JS }} 28 <script src="demo.js"></script> 29 {{ else }} 30 <script src="/wasm_exec.js"></script> 31 <script> 32 const go = new Go(); 33 WebAssembly.instantiateStreaming(fetch("demo.wasm"), go.importObject).then((result) => { 34 go.run(result.instance); 35 }); 36 </script> 37 {{ end }} 38 </html>