mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-25 09:23:28 +01:00
98 lines
4.2 KiB
HTML
98 lines
4.2 KiB
HTML
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||
|
<html xml:lang="en" xmlns="http://www.w3.org/1999/xhtml">
|
||
|
<head>
|
||
|
<title>Stylesheet Test</title>
|
||
|
<script src="js/jquery.js"></script>
|
||
|
<script src="../egw_stylesheet.js"></script>
|
||
|
</head>
|
||
|
<body>
|
||
|
<h1>Test for dynamically generating stylesheets and stylesheet rules</h1>
|
||
|
<div id="container">1: Style me!</div>
|
||
|
<div id="container2">2: Style me!</div>
|
||
|
<div id="container3">3: Style me!</div>
|
||
|
<div id="container">1: Style me!</div>
|
||
|
<div id="container2">2: Style me!</div>
|
||
|
<div id="container3">3: Style me!</div>
|
||
|
<div id="container">1: Style me!</div>
|
||
|
<div id="container2">2: Style me!</div>
|
||
|
<div id="container3">3: Style me!</div>
|
||
|
<div id="container">1: Style me!</div>
|
||
|
<div id="container2">2: Style me!</div>
|
||
|
<div id="container3">3: Style me!</div>
|
||
|
<div id="container">1: Style me!</div>
|
||
|
<div id="container2">2: Style me!</div>
|
||
|
<div id="container3">3: Style me!</div>
|
||
|
<div id="container">1: Style me!</div>
|
||
|
<div id="container2">2: Style me!</div>
|
||
|
<div id="container3">3: Style me!</div>
|
||
|
<div id="container">1: Style me!</div>
|
||
|
<div id="container2">2: Style me!</div>
|
||
|
<div id="container3">3: Style me!</div>
|
||
|
<div id="container">1: Style me!</div>
|
||
|
<div id="container2">2: Style me!</div>
|
||
|
<div id="container3">3: Style me!</div>
|
||
|
<div id="container">1: Style me!</div>
|
||
|
<div id="container2">2: Style me!</div>
|
||
|
<div id="container3">3: Style me!</div>
|
||
|
<div id="container">1: Style me!</div>
|
||
|
<div id="container2">2: Style me!</div>
|
||
|
<div id="container3">3: Style me!</div>
|
||
|
<div id="container">1: Style me!</div>
|
||
|
<div id="container2">2: Style me!</div>
|
||
|
<div id="container3">3: Style me!</div>
|
||
|
<div id="container">1: Style me!</div>
|
||
|
<div id="container2">2: Style me!</div>
|
||
|
<div id="container3">3: Style me!</div>
|
||
|
<div id="container">1: Style me!</div>
|
||
|
<div id="container2">2: Style me!</div>
|
||
|
<div id="container3">3: Style me!</div>
|
||
|
<div id="container">1: Style me!</div>
|
||
|
<div id="container2">2: Style me!</div>
|
||
|
<div id="container3">3: Style me!</div>
|
||
|
<div id="container">1: Style me!</div>
|
||
|
<div id="container2">2: Style me!</div>
|
||
|
<div id="container3">3: Style me!</div>
|
||
|
<div id="container">1: Style me!</div>
|
||
|
<div id="container2">2: Style me!</div>
|
||
|
<div id="container3">3: Style me!</div>
|
||
|
<div id="container">1: Style me!</div>
|
||
|
<div id="container2">2: Style me!</div>
|
||
|
<div id="container3">3: Style me!</div>
|
||
|
<div id="container">1: Style me!</div>
|
||
|
<div id="container2">2: Style me!</div>
|
||
|
<div id="container3">3: Style me!</div>
|
||
|
<div id="container">1: Style me!</div>
|
||
|
<div id="container2">2: Style me!</div>
|
||
|
<div id="container3">3: Style me!</div>
|
||
|
<div id="container">1: Style me!</div>
|
||
|
<div id="container2">2: Style me!</div>
|
||
|
<div id="container3">3: Style me!</div>
|
||
|
<div id="container">1: Style me!</div>
|
||
|
<div id="container2">2: Style me!</div>
|
||
|
<div id="container3">3: Style me!</div>
|
||
|
<div id="container">1: Style me!</div>
|
||
|
<div id="container2">2: Style me!</div>
|
||
|
<div id="container3">3: Style me!</div>
|
||
|
<div id="container">1: Style me!</div>
|
||
|
<div id="container2">2: Style me!</div>
|
||
|
<div id="container3">3: Style me!</div>
|
||
|
<div id="container">1: Style me!</div>
|
||
|
<div id="container2">2: Style me!</div>
|
||
|
<div id="container3">3: Style me!</div>
|
||
|
<div id="container">1: Style me!</div>
|
||
|
<div id="container2">2: Style me!</div>
|
||
|
<div id="container3">3: Style me!</div>
|
||
|
<button onclick="stylesheet.updateRule('#container', 'background-color: blue');">1 Blue</button>
|
||
|
<button onclick="stylesheet.updateRule('#container', 'background-color: red');">1 Red</button>
|
||
|
<button onclick="stylesheet.updateRule('#container2', 'background-color: blue');">2 Blue</button>
|
||
|
<button onclick="stylesheet.updateRule('#container2', 'background-color: red');">2 Red</button>
|
||
|
<button onclick="stylesheet.updateRule('#container3', 'background-color: blue');">3 Blue</button>
|
||
|
<button onclick="stylesheet.updateRule('#container3', 'background-color: red');">3 Red</button>
|
||
|
<button onclick="stylesheet.updateRule('div', 'display: inline; width: 100px; font-family: Arial, Helvetica, sans;');">Div</button>
|
||
|
|
||
|
<script>
|
||
|
var stylesheet = new egwDynStyleSheet();
|
||
|
</script>
|
||
|
</body>
|
||
|
</html>
|