Permalink
Browse files

initial

  • Loading branch information...
C. Flores
C. Flores committed Nov 11, 2011
1 parent b6004d0 commit f688c0d0fc6bd1aa29d5c0d9dad867ad04f01e74
Showing with 173 additions and 0 deletions.
  1. +41 −0 build/glut.js
  2. +6 −0 glut.coffee
  3. +107 −0 index.html
  4. +19 −0 package.json
View

Some generated files are not rendered by default. Learn more.

Oops, something went wrong.
View
@@ -0,0 +1,6 @@
+class Glut extends Batman.App
+ @global yes
+class Calculate extends Batman.Model
+ @accessor 'solute', -> Math.round( @get('dilution_volume') * 1.6 / @get('source') )
+ @accessor 'solvent', -> Math.round( @get('dilution_volume') - @get('solute') )
+Glut.calculate = new Calculate
View
@@ -0,0 +1,107 @@
+<!DOCTYPE html>
+<html lang="en">
+<head>
+ <title>wet's glutaraldehyde calculator</title>
+ <script src="/batman/coffee-script.js" type="text/javascript"></script>
+ <script src="/batman/es5-shim.js" type="text/javascript"></script>
+ <script src="/batman/dist/batman.js" type="text/javascript"></script>
+ <script src="resources/analytics.js" type="text/javascript"></script>
+
+ <script src="glut.js" type="text/javascript"></script>
+
+ <style>
+ * {
+ font-family: "Myriad Pro", Arial, sans-serif;
+ }
+
+ #user {
+ font-size: 0.8em;
+ width: 250px;
+ margin: 0 auto;
+ margin-top: 3em;
+ text-align: center;
+ }
+
+ #user select {
+ font-size: 1.6em;
+ font-weight: bold;
+ background-color: #fff;
+ color: #999;
+ text-align: center;
+ width: 250px;
+ margin-bottom: 20px;
+ }
+
+ #user select {
+ font-size: 1.6em;
+ font-weight: bold;
+ background-color: #fff;
+ color: #999;
+ text-align: center;
+ width: 250px;
+ margin-bottom: 20px;
+ }
+
+ #results {
+ font-size: 1em;
+ font-weight: bold;
+ margin: 0 auto;
+ }
+
+ #results li {
+ font-size: 0.8em;
+ margin: 0 auto;
+ }
+
+ #footer {
+ font-size: 0.8em;
+ font-weight: bold;
+ margin: 0 auto;
+ }
+
+ </style>
+</head>
+
+<body>
+ <h2>wet's glutaraldehyde calculator</h2>
+ <h4>make a recommended 1.6% glut. solution with Cidex, Metride, or various Glutaraldehyde sources</h4>
+ <div id="user">
+ <h4 data-mixin="animation" data-hideif="calculate.solvent">Please choose a Glutaraldehyde source and enter your DIY mix container volume</h4>
+ <div data-yield="main"></div>
+ <select data-bind="calculate.source">
+ <option selected="selected" value=''></option>
+ <option value=2.6>Metricide 14</option>
+ <option value=3.4>Cidex Plus</option>
+ <option value=10>5% glutaraldehyde</option>
+ <option value=10>10% glutaraldehyde</option>
+ <option value=15>15% glutaraldehyde</option>
+ <option value=25>25% glutaraldehyde</option>
+ <option value=50>50% glutaraldehyde</option>
+ </select>
+ <label>dosing container volume in mL</label>
+ <input type="int" data-bind="calculate.dilution_volume"/>
+ </div>
+ </div>
+ <div data-mixin="animation" data-showif="calculate.solvent" id="results">
+ <h5>Results</h5>
+ 1) Add <span data-bind="calculate.solute"></span>mL of your <span data-bind="calculate.source"></span>% Glutaraldehyde source to the <span data-bind="calculate.dilution_volume"></span>mL container.<br />
+ 2) Fill up the rest of the container with <span data-bind="calculate.solvent"></span>mL RO/DI water.<br />
+ 3) Dose it!
+ <ul>
+ <li>Common dosing is 1mL/10gal of this solution daily or every other day.</li>
+ <li>Dose 5mL/10gal after water changes.</li>
+ <li>Many folks double or triple the daily dose.</li>
+ <li>Certain plants, such as Anacharis or Vallisneria sp., generally don't like glut.</li>
+ <li>Don't add any "Activator" or "Plus" bottle that may have come with your Glutaraldehyde source.</li>
+ </ul>
+ </h5>
+ </div>
+ <script type="text/javascript">
+ Glut.run();
+ </script>
+ <div id="footer">
+ <a href="http://petalphile.com">petalphile.com</a><br />
+ </div>
+</body>
+
+</html>
View
@@ -0,0 +1,19 @@
+{
+ "author": "flores <github@petalphile.com>",
+ "name": "Glut",
+ "description": "Converts Glutaraldehyde sources to Carbon supplements for the DIY gardener",
+ "version": "0.1.0",
+ "main": "build/glut.js",
+ "engines": {
+ "node": "*"
+ },
+ "dependencies": {
+ "batman": "~>0.1.0"
+ },
+ "devDependencies": {},
+ "batman": {
+ "appName": "Glut",
+ "build": true,
+ "buildDir": "./build"
+ }
+}

0 comments on commit f688c0d

Please sign in to comment.