Commits

Chris Leonello committed ad15caa

clean up and fixes to examples and build.

  • Participants
  • Parent commits 7123a29

Comments (0)

Files changed (4)

             <exclude name="opener.php" />
             <exclude name="bodyOpener.php" />
             <exclude name="nav.php" />
+            <exclude name="kcp_pyramid_by_age.php" />
           </fileset>
           <srcfile />
           <redirector>
         <delete>
           <fileset dir="${DIST_DIR}/examples">
             <include name="*.php" />
+            <exclude name="kcp_pyramid_by_age.php" />
             <include name="closer.html" />
             <include name="commonScripts.html" />
             <include name="topbanner.html" />
         </replaceregexp>
 
         <replaceregexp match='src="../src/' replace='src="../' flags="g">
-          <fileset dir="${DIST_DIR}/examples" includes="*.html" />
+          <fileset dir="${DIST_DIR}/examples">
+            <include name="*.html" />
+            <include name="kcp_pyramid_by_age.php" />
+          </fileset>
         </replaceregexp>
         
         <replaceregexp match='href="../src/' replace='href="../' flags="g">
-          <fileset dir="${DIST_DIR}/examples" includes="*.html" />
+          <fileset dir="${DIST_DIR}/examples">
+            <include name="*.html" />
+            <include name="kcp_pyramid_by_age.php" />
+          </fileset>
         </replaceregexp>
         
         <replaceregexp match='src="\./src/' replace='src="\.\./' flags="g">

File examples/examples.css

 }
 
 div.jqplot-image-container {
+  position: relative;
+  z-index: 11;
+
+    margin: auto;
     display: none;
-    background-color: #fff;
+    background-color: #ffffff;
     border: 1px solid #999;
     display: inline-block;
     margin-top: 25px;
 
 div.jqplot-image-container-content {
     padding: 15px;
+    background-color: #ffffff;
 }
 
 a.jqplot-image-container-close {

File examples/kcp_pyramid_by_age.php

 
 <!-- Don't touch this! -->
 
-<?php include "commonScripts.html" ?>
+    <script class="include" type="text/javascript" src="../src/jquery.jqplot.js"></script>
+    <script type="text/javascript" src="syntaxhighlighter/scripts/shCore.min.js"></script>
+    <script type="text/javascript" src="syntaxhighlighter/scripts/shBrushJScript.min.js"></script>
+    <script type="text/javascript" src="syntaxhighlighter/scripts/shBrushXml.min.js"></script>
 
 <!-- End Don't touch this! -->
 
 
 <!-- End additional plugins -->
 
-<?php include "closer.html"; ?>
+    </div>  
+    <script type="text/javascript" src="example.js"></script>
+
+</body>
+
+
+</html>

File examples/kcp_quintiles.php

 
     <div class="quintile-outer-container ui-widget ui-corner-all">
         <div class="quintile-toolbar ui-widget-header  ui-corner-top">
-            <span class="quintile-title">Income Level:</span>
+            <span class="quintile-title">Income Level:  First Quintile</span>
             <div class="quintile-toggle ui-icon ui-icon-arrowthickstop-1-n"></div>
             <div class="ui-icon ui-icon-newwin"></div>
         </div>
             $('div.quintile-toolbar').append('<div class="ui-icon ui-icon-image"></div><div class="ui-icon ui-icon-print"></div>');
         }
 
+        var quintHash = {0: 'First Quintile', 1: 'Second Quintile', 2: 'Third Quintile', 3: 'Fourth Quintile', 4: 'Fifth Quintile'}
+
         // Add the needed containers:
-        for (var i=0; i<4; i++) {
+        for (var i=1; i<5; i++) {
             var el = $('div.quintile-outer-container:last')
             var clone = el.clone();
+            clone.find('span.quintile-title').html('Income Level:  ' + quintHash[i]);
             clone.insertAfter(el);
         }