mirror of
https://github.com/compiler-explorer/compiler-explorer.git
synced 2026-05-16 09:03:34 -04:00
Inline the escape_html type instead of importing from tom-select's internal dist/types/ path, which was removed in v2.5.1. The type is just (str: string) => string, so there's no need to depend on the package's internal file layout. Also fix missing iframe title attributes in test/embedding.html. --------- Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
24 lines
961 B
HTML
24 lines
961 B
HTML
<!doctype html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8" />
|
|
<title>Embedding test</title>
|
|
</head>
|
|
<body>
|
|
<div>Test; here's some inline Compiler Explorer stuff:</div>
|
|
<iframe
|
|
title="Compiler Explorer embedded view"
|
|
width="800px"
|
|
height="200px"
|
|
src="http://localhost:10240/e#source:'int+main()%7B%7D',compiler:g44,options:'-O2',filters:'colouriseAsm,intel,commentOnly,directives,labels,compileOnChange'"
|
|
></iframe>
|
|
</body>
|
|
<div>And here's some text after</div>
|
|
<iframe
|
|
title="Compiler Explorer embedded view"
|
|
width="800px"
|
|
height="200px"
|
|
src="http://localhost:10240/e#compiler:/usr/bin/g%2B%2B,filters:'colouriseAsm,readOnly,labels,directives,commentOnly,intel',options:'-O2',source:'//+Type+your+code+here,+or+load+an+example.%0Aint+square(int+num)+%7B%0A++++return+num+*+num%3B%0A%7D%0A'"
|
|
></iframe>
|
|
</html>
|