diff options
author | Yuchen Pei <hi@ypei.me> | 2021-08-25 16:03:12 +1000 |
---|---|---|
committer | Yuchen Pei <hi@ypei.me> | 2021-08-25 16:03:12 +1000 |
commit | 476ff3b5b7400ea17a018a7855ce65aa43bbf1d4 (patch) | |
tree | 10fcf1b91ff0041a03ad1e258dbe12aec126bb48 | |
parent | 30afa9c9de609b1e1e1b1fc47f7464ed642935c9 (diff) |
Adding a webpage to test internal publicdomain script.
This webpage should be expanded to test all kinds of scenarios:
internal, external, public domain, gpl, weblabels, ...
-rw-r--r-- | test/real-webpages/libtest.html | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/test/real-webpages/libtest.html b/test/real-webpages/libtest.html new file mode 100644 index 0000000..c0ab335 --- /dev/null +++ b/test/real-webpages/libtest.html @@ -0,0 +1,28 @@ +<!DOCTYPE html> +<html> +<head> + <script type="text/javascript"> +// @license magnet:?xt=urn:btih:e95b018ef3580986a04669f1b5879592219e2a7a&dn=public-domain.txt PublicDomain + function CodeHighlightOn(elem, id) + { + var target = document.getElementById(id); + if(null != target) { + elem.classList.add("code-highlighted"); + target.classList.add("code-highlighted"); + } + } + function CodeHighlightOff(elem, id) + { + var target = document.getElementById(id); + if(null != target) { + elem.classList.remove("code-highlighted"); + target.classList.remove("code-highlighted"); + } + } +// @license-end + </script> +</head> +<body> + <p> hello world </p> + </body> +</html> |