1
0
mirror of https://github.com/kkapsner/CanvasBlocker synced 2024-12-22 04:40:20 +01:00

Minimal styling on test pages

For #106
This commit is contained in:
kkapsner 2020-11-21 13:58:32 +01:00
parent 7178b409c3
commit 1125d6f1a8
13 changed files with 31 additions and 13 deletions

View File

@ -5,6 +5,7 @@
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<link href="testIcon.svg" type="image/png" rel="icon">
<link href="testIcon.svg" type="image/png" rel="shortcut icon">
<link rel="stylesheet" href="../default.css" type="text/css">
<style>
table {
border-collapse: collapse;
@ -15,6 +16,9 @@
border: 1px solid lightgray;
padding: 1px 5px;
}
table.hashes td:nth-child(2){
font-size: 70%;
}
</style>
</head>
<body>

View File

@ -1,6 +1,6 @@
<?php
header("Content-Security-Policy: default-src 'none'; img-src 'self'; script-src 'self'");
header("Content-Security-Policy: default-src 'none'; img-src 'self'; script-src 'self'; style-src 'self'");
?>
<!DOCTYPE html>
@ -10,6 +10,7 @@ header("Content-Security-Policy: default-src 'none'; img-src 'self'; script-src
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<link href="testIcon.svg" type="image/png" rel="icon">
<link href="testIcon.svg" type="image/png" rel="shortcut icon">
<link rel="stylesheet" href="../default.css" type="text/css">
</head>
<body>
<h1>CSP test</h1>

View File

@ -5,6 +5,7 @@
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<link href="testIcon.svg" type="image/png" rel="icon">
<link href="testIcon.svg" type="image/png" rel="shortcut icon">
<link rel="stylesheet" href="../default.css" type="text/css">
<style>
iframe, object, embed {
display: block;
@ -12,6 +13,9 @@
width: 100%;
height: 7em;
}
#code {
font-size: 70%;
}
</style>
<link rel="stylesheet" href="data:text/css;base64,Ym9keXtiYWNrZ3JvdW5kLWNvbG9yOiNlMGZmZTA7fQ==">
</head>

View File

@ -5,6 +5,7 @@
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<link href="testIcon.svg" type="image/png" rel="icon">
<link href="testIcon.svg" type="image/png" rel="shortcut icon">
<link rel="stylesheet" href="../default.css" type="text/css">
<style>
.notRun {
color: lightgray;

View File

@ -6,6 +6,7 @@
<title>iFrame Test</title>
<link href="testIcon.svg" type="image/png" rel="icon">
<link href="testIcon.svg" type="image/png" rel="shortcut icon">
<link rel="stylesheet" href="../default.css" type="text/css">
</head>
<body>
<div id="text">
@ -22,14 +23,12 @@
<script src="iframeTest.js"></script>
<iframe></iframe><script>
const pageText = document.getElementById("text").innerHTML;
const pageTitle = document.querySelector("head title").textContent;
const headHTML = document.querySelector("head").innerHTML;
function restoreContent(){
"use strict";
document.body.innerHTML = pageText;
const title = document.createElement("title");
title.textContent = pageTitle;
document.getElementsByTagName("head")[0].appendChild(title);
document.getElementsByTagName("head")[0].innerHTML = headHTML;
}
const iframe = window[0];

View File

@ -5,9 +5,10 @@
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<link href="testIcon.svg" type="image/png" rel="icon">
<link href="testIcon.svg" type="image/png" rel="shortcut icon">
<link rel="stylesheet" href="../default.css" type="text/css">
<style>
.marked {
background-color: red;
background-color: lightcoral;
}
</style>
</head>

View File

@ -5,6 +5,7 @@
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<link href="testIcon.svg" type="image/png" rel="icon">
<link href="testIcon.svg" type="image/png" rel="shortcut icon">
<link rel="stylesheet" href="../default.css" type="text/css">
</head>
<body>
<h1>Performance test</h1>

View File

@ -5,11 +5,7 @@
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<link href="testIcon.svg" type="image/png" rel="icon">
<link href="testIcon.svg" type="image/png" rel="shortcut icon">
<style type="text/css">
h3 {
margin: 0.2em 0;
}
</style>
<link rel="stylesheet" href="../default.css" type="text/css">
<style type="text/css"></style>
</head>
<body>

View File

@ -5,6 +5,7 @@
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<link href="testIcon.svg" type="image/png" rel="icon">
<link href="testIcon.svg" type="image/png" rel="shortcut icon">
<link rel="stylesheet" href="../default.css" type="text/css">
<?php
echo "<script>" . file_get_contents("testAPI.js");
echo file_get_contents("canvasAPI.js") . "</script>";
@ -25,13 +26,13 @@
padding: 1em;
}
.ok {
background-color: green;
background-color: lightgreen;
}
.kok {
background-color: orange;
}
.nok {
background-color: red;
background-color: lightcoral;
}
</style>
</head>

View File

@ -6,6 +6,12 @@
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<link href="testIcon.svg" type="image/png" rel="icon">
<link href="testIcon.svg" type="image/png" rel="shortcut icon">
<link rel="stylesheet" href="../default.css" type="text/css">
<style type="text/css">
.hash {
font-size: 70%;
}
</style>
</head>
<body>
<h1>Canvas test</h1>

View File

@ -5,9 +5,11 @@
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<link href="testIcon.svg" type="image/png" rel="icon">
<link href="testIcon.svg" type="image/png" rel="shortcut icon">
<link rel="stylesheet" href="../default.css" type="text/css">
<style>
.hash {
font-family: monospace;
font-size: 70%;
}
</style>
</head>

View File

@ -5,6 +5,7 @@
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<link href="testIcon.svg" type="image/png" rel="icon">
<link href="testIcon.svg" type="image/png" rel="shortcut icon">
<link rel="stylesheet" href="../default.css" type="text/css">
<style>
th {
text-align: right;

View File

@ -5,6 +5,7 @@
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<link href="testIcon.svg" type="image/png" rel="icon">
<link href="testIcon.svg" type="image/png" rel="shortcut icon">
<link rel="stylesheet" href="../default.css" type="text/css">
<style>
#testLink {
text-decoration: underline;