2023-07-10 16:02:30 +02:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html lang="en">
|
2011-03-14 13:42:59 +01:00
|
|
|
<head>
|
|
|
|
<title>Stylesheet Test</title>
|
|
|
|
<script src="js/jquery.js"></script>
|
2023-07-10 16:02:30 +02:00
|
|
|
<script src="../egw_stylesheet.ts"></script>
|
|
|
|
<script >
|
|
|
|
const s = new egwDynStyleSheet();
|
|
|
|
</script>
|
2011-03-14 13:42:59 +01:00
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<h1>Test for dynamically generating stylesheets and stylesheet rules</h1>
|
2023-07-10 16:02:30 +02:00
|
|
|
<div class="container">1: Style me!</div>
|
|
|
|
<div class="container2">2: Style me!</div>
|
|
|
|
<div class="container3">3: Style me!</div>
|
|
|
|
<div class="container">1: Style me!</div>
|
|
|
|
<div class="container2">2: Style me!</div>
|
|
|
|
<div class="container3">3: Style me!</div>
|
|
|
|
<div class="container">1: Style me!</div>
|
|
|
|
<div class="container2">2: Style me!</div>
|
|
|
|
<div class="container3">3: Style me!</div>
|
|
|
|
<div class="container">1: Style me!</div>
|
|
|
|
<div class="container2">2: Style me!</div>
|
|
|
|
<div class="container3">3: Style me!</div>
|
|
|
|
<div class="container">1: Style me!</div>
|
|
|
|
<div class="container2">2: Style me!</div>
|
|
|
|
<div class="container3">3: Style me!</div>
|
|
|
|
<div class="container">1: Style me!</div>
|
|
|
|
<div class="container2">2: Style me!</div>
|
|
|
|
<div class="container3">3: Style me!</div>
|
|
|
|
<div class="container">1: Style me!</div>
|
|
|
|
<div class="container2">2: Style me!</div>
|
|
|
|
<div class="container3">3: Style me!</div>
|
|
|
|
<div class="container">1: Style me!</div>
|
|
|
|
<div class="container2">2: Style me!</div>
|
|
|
|
<div class="container3">3: Style me!</div>
|
|
|
|
<div class="container">1: Style me!</div>
|
|
|
|
<div class="container2">2: Style me!</div>
|
|
|
|
<div class="container3">3: Style me!</div>
|
|
|
|
<div class="container">1: Style me!</div>
|
|
|
|
<div class="container2">2: Style me!</div>
|
|
|
|
<div class="container3">3: Style me!</div>
|
|
|
|
<div class="container">1: Style me!</div>
|
|
|
|
<div class="container2">2: Style me!</div>
|
|
|
|
<div class="container3">3: Style me!</div>
|
|
|
|
<div class="container">1: Style me!</div>
|
|
|
|
<div class="container2">2: Style me!</div>
|
|
|
|
<div class="container3">3: Style me!</div>
|
|
|
|
<div class="container">1: Style me!</div>
|
|
|
|
<div class="container2">2: Style me!</div>
|
|
|
|
<div class="container3">3: Style me!</div>
|
|
|
|
<div class="container">1: Style me!</div>
|
|
|
|
<div class="container2">2: Style me!</div>
|
|
|
|
<div class="container3">3: Style me!</div>
|
|
|
|
<div class="container">1: Style me!</div>
|
|
|
|
<div class="container2">2: Style me!</div>
|
|
|
|
<div class="container3">3: Style me!</div>
|
|
|
|
<div class="container">1: Style me!</div>
|
|
|
|
<div class="container2">2: Style me!</div>
|
|
|
|
<div class="container3">3: Style me!</div>
|
|
|
|
<div class="container">1: Style me!</div>
|
|
|
|
<div class="container2">2: Style me!</div>
|
|
|
|
<div class="container3">3: Style me!</div>
|
|
|
|
<div class="container">1: Style me!</div>
|
|
|
|
<div class="container2">2: Style me!</div>
|
|
|
|
<div class="container3">3: Style me!</div>
|
|
|
|
<div class="container">1: Style me!</div>
|
|
|
|
<div class="container2">2: Style me!</div>
|
|
|
|
<div class="container3">3: Style me!</div>
|
|
|
|
<div class="container">1: Style me!</div>
|
|
|
|
<div class="container2">2: Style me!</div>
|
|
|
|
<div class="container3">3: Style me!</div>
|
|
|
|
<div class="container">1: Style me!</div>
|
|
|
|
<div class="container2">2: Style me!</div>
|
|
|
|
<div class="container3">3: Style me!</div>
|
|
|
|
<div class="container">1: Style me!</div>
|
|
|
|
<div class="container2">2: Style me!</div>
|
|
|
|
<div class="container3">3: Style me!</div>
|
|
|
|
<div class="container">1: Style me!</div>
|
|
|
|
<div class="container2">2: Style me!</div>
|
|
|
|
<div class="container3">3: Style me!</div>
|
|
|
|
<div class="container">1: Style me!</div>
|
|
|
|
<div class="container2">2: Style me!</div>
|
|
|
|
<div class="container3">3: Style me!</div>
|
|
|
|
<div class="container">1: Style me!</div>
|
|
|
|
<div class="container2">2: Style me!</div>
|
|
|
|
<div class="container3">3: Style me!</div>
|
|
|
|
<button onclick="s.updateRule('.container', 'background-color: blue');">1 Blue</button>
|
|
|
|
<button onclick="s.updateRule('.container', 'background-color: red');">1 Red</button>
|
|
|
|
<button onclick="s.updateRule('.container2', 'background-color: blue');">2 Blue</button>
|
|
|
|
<button onclick="s.updateRule('.container2', 'background-color: red');">2 Red</button>
|
|
|
|
<button onclick="s.updateRule('.container3', 'background-color: blue');">3 Blue</button>
|
|
|
|
<button onclick="s.updateRule('.container3', 'background-color: red');">3 Red</button>
|
|
|
|
<button onclick="s.updateRule('div', 'display: inline; width: 100px; font-family: Arial, Helvetica, sans;');">Div</button>
|
2011-03-14 13:42:59 +01:00
|
|
|
|
|
|
|
</body>
|
|
|
|
</html>
|