aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuchen Pei <hi@ypei.me>2021-08-25 16:03:12 +1000
committerYuchen Pei <hi@ypei.me>2021-08-25 16:03:12 +1000
commit476ff3b5b7400ea17a018a7855ce65aa43bbf1d4 (patch)
tree10fcf1b91ff0041a03ad1e258dbe12aec126bb48
parent30afa9c9de609b1e1e1b1fc47f7464ed642935c9 (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.html28
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>