Skip to content

Commit

Permalink
created quick start file
Browse files Browse the repository at this point in the history
  • Loading branch information
gregdingle committed Feb 11, 2009
1 parent 623f8aa commit fc87e6f
Show file tree
Hide file tree
Showing 3 changed files with 43 additions and 3 deletions.
6 changes: 3 additions & 3 deletions genetify/demo/test.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,9 @@

/* Additive rules test */
.myothergene { background-color: white;}
.myothergene.va { background-color: blue;}
.myothergene.vb { background-color: red;}
.myothergene.vc { background-color: green;}
.myothergene.vA { background-color: blue;}
.myothergene.vB { background-color: red;}
.myothergene.vC { background-color: green;}

</style>

Expand Down
1 change: 1 addition & 0 deletions genetify/genetify.js
Original file line number Diff line number Diff line change
Expand Up @@ -767,6 +767,7 @@ genetify.scanJS = {
);
var rawJavascript = '';
for (var i=0; i < document.scripts.length; i++){
//TODO: could this perform poorly?
rawJavascript += document.scripts[i].innerHTML;
}
return rawJavascript;
Expand Down
39 changes: 39 additions & 0 deletions genetify/repro.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>

<!-- genetify setup -->
<style type="text/css" media="all">
.v { display: none; }
.genetify_disabled { display: none !important; }
.genetify_enabled { display: block !important; }
</style>
<script type="text/javascript">
GENETIFY_CONFIG = { USE_COOKIE: false, LOAD_CONTROLS: true };
</script>
<script type="text/javascript" src="genetify.js"></script>

<!-- genetified CSS -->
<style type="text/css" media="all">
#box { border: 10px solid red; }
#box_vBlue { border: 10px solid blue; }
#box_vBlack { border: 10px solid black; }
</style>

</head>
<body>

<!-- genetified HTML -->
<div id="box">
<h1 class="noise">bash!</h1>
<h1 class="noise v bang">bang!</h1>
<h1 class="noise v boom">boom!</h1>
<h2><a href="#" onmousedown="genetify.record.goal('quick start', 1)">lightning strikes</a></h2>
</div>

<!-- apply genetify -->
<script type="text/javascript">genetify.vary();</script>

</body>
</html>

0 comments on commit fc87e6f

Please sign in to comment.