Skip to content

Commit

Permalink
removed cloud 9 files, not sure how they got in there
Browse files Browse the repository at this point in the history
  • Loading branch information
joshbtn committed Aug 20, 2012
1 parent 42aad99 commit 9564349
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 25 deletions.
1 change: 1 addition & 0 deletions .c9revisions/.gitignore.c9save
@@ -0,0 +1 @@
{"ts":1345476280672,"silentsave":true,"restoring":false,"patch":[[{"diffs":[[1,"node_modules/**/*\n.gitignore"]],"start1":0,"start2":0,"length1":0,"length2":28}]],"length":28}
1 change: 1 addition & 0 deletions .c9revisions/beautifier.js.c9save
@@ -0,0 +1 @@
{"ts":1342443826953,"silentsave":true,"restoring":false,"patch":[[{"diffs":[[1,"//Beautifier.js\n//\n//Copywrite 2011 Josh Benentt\n//License - https://raw.github.com/joshatjben/excelFormulaUtilitiesJS/master/LICENSE.txt\n//[on github](https://github.com/joshatjben/excelFormulaUtilitiesJS/tree/master/examples/basic_example1 \"github\")\n//\n(function (window, undefiend) {\n \"use strict\";\n\t\n //Check and setup name spaces.\n\twindow.excelFormulaBeautifier = window.excelFormulaBeautifier || {};\n window.excelFormulaBeautifier.examples = window.excelFormulaBeautifier.examples || {};\n\t\n\t//Configuration\n //-------------------------------\n\tvar config = {\n\t\t//The ID for the formula Input input/textarea\n\t\tINPUT_ID: 'formula_input',\n\t\t\n\t\t//The ID for the formula title area. in this example it spits out the function call;\n\t\tFORMULA_TITLE_ID: 'fomatFormula_2',\n\t\t\n\t\t//THE ID for the area to contain the beautified excel formula.\n\t\tFORMULA_BODY_ID:'fomatFormula_2_out',\n\t\t\n\t\t//Use this to set the inital textare/input text area.\n\t\tDEFAULT_FORMULA: ''\n\t},\n\t\n\n //Beautifier Page functionality\n //-------------------------------\n\tbeautifier = window.excelFormulaBeautifier.examples.beautifier = \n\t\t(function () {\n\t\t\tvar oldFormula;\n\t\t\t\n\t\t\treturn {\n\t\t\t\tformula: '=IF(SUM( If(FOO = BAR, 10, 0), 10 ) = 20 , \"FOO\", \"BAR\")',\n\t\t\t\tinput: null,\n\t\t\t\tformulaTitle: null,\n\t\t\t\tformulaBody: null,\n mode: \"beautify\",\n changeMode: function(mode){\n window.excelFormulaBeautifier.examples.beautifier.mode = mode;\n window.excelFormulaBeautifier.examples.beautifier.update.call(window.excelFormulaBeautifier.examples.beautifier);\n },\n\t\t\t\tupdate: function () {\n\t\t\t\t\tthis.formula = this.input.value;\n\n\t\t\t\t\t//Test to see if the formula has changed, if it hasn't don't do anything\n\t\t\t\t\tif (oldFormula === this.formula) {\n\t\t\t\t\t\treturn;\n\t\t\t\t\t}\n \n\t\t\t\t\t// Check to see which mode we're in, render appropriately\n\t\t\t\t\ttry{\n \n\t\t\t\t\t\tswitch( this.mode ) {\n case \"beautify\":\n this.formulaBody.innerHTML = window.excelFormulaUtilities.formatFormulaHTML(this.formula);\n break;\n case \"js\":\n this.formulaBody.innerHTML = window.excelFormulaUtilities.formula2JavaScript(this.formula);\n break;\n\t\t\t\t\t\t}\n\t\t\t\t\t}catch(exception){\n\t\t\t\t\t\t//Do nothing, This should throw an error when the formula is improperly formed, which shouldn't blow things up.\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t};\n\t\t}());\n\n\t//On Page Load\n\t//-------------------\n\twindow.onload = function () {\n\t\tbeautifier.input = document.getElementById(config.INPUT_ID);\n\t\t//beautifier.formulaTitle = document.getElementById(config.FORMULA_TITLE_ID);\n\t\tbeautifier.formulaBody = document.getElementById(config.FORMULA_BODY_ID);\n\n\t\tbeautifier.input.value = beautifier.formula;\n\t\tbeautifier.update();\n\t\t//add beautifier.update(); here if if you have set an inital DEFAULT_FORMULA and would like it to render on page load.\n\t};\n\t\n}(window));\n"]],"start1":0,"start2":0,"length1":0,"length2":3058}]],"length":3058}
1 change: 0 additions & 1 deletion .c9revisions/index.html.c9save

This file was deleted.

1 change: 0 additions & 1 deletion .c9revisions/js/page.js.c9save

This file was deleted.

1 change: 1 addition & 0 deletions .c9revisions/src/ExcelFormulaUtilities.js.c9save

Large diffs are not rendered by default.

44 changes: 21 additions & 23 deletions index.html
@@ -1,13 +1,12 @@
<!doctype html>
<head>
<meta charset="utf-8">
<title>Online Excel Formula Beautifier</title>
<title>Test - Online Excel Formula Beautifier</title>

<meta name="description" content="Quickly beautify your excel formulas online or convert your Excel Formula to JavaScript">
<meta name="author" content="Josh Bennett">
<style type="text/css">/*<![CDATA[*/
#formula_input{width:90%}
/*]]>*/</style>

<meta name="msvalidate.01" content="F075E5FA6F0F18E505A8BED664939F6A" />

<!--[if gte IE 9]>
<style type="text/css">
.gradient {
Expand All @@ -18,17 +17,11 @@
</head>

<body>
<!-- Fork Button -->
<a href="http://github.com/joshatjben/excelFormulaUtilitiesJS" class="external_link"><img style="position: absolute; top: 0; right: 0; border: 0;" src="https://s3.amazonaws.com/github/ribbons/forkme_right_darkblue_121621.png" alt="Fork me on GitHub"></a>

<!-- Main Content -->
<div id="container" class="span-12 colborder">
<header class="span-18 last">
<h1>Excel Formula Beautifier</h1>
</header>


<div id="main" role="main" class="span-12 last">
<p class="hide description">This is a JavaScript and html5 based excel formula beautifier. It can also convert an excel formula to JavaScript (or C#). It has been built using <a href="https://github.com/joshatjben/excelFormulaUtilitiesJS" target="_blank">Excel Formula Utilities JS</a></p>
<div id="inputArea">
<label for="formula_input">Enter your formula here. The leading = is optional.</label><br />
<input type="text" id="formula_input" onkeyup="window.excelFormulaBeautifier.examples.beautifier.update()" />
Expand All @@ -40,9 +33,6 @@ <h1>Excel Formula Beautifier</h1>

</div>

<footer>
&copy; copyright 2011 <a href="http://joshbennett.me">Josh Bennett</a>
</footer>
</div>

<!-- Side Content -->
Expand All @@ -56,19 +46,27 @@ <h1>Excel Formula Beautifier</h1>
</select>
</div>
</p>
<hr />
<p>Have some feedback or feature requests? I'd love to hear it.</p>
<p><a href="https://github.com/joshatjben/excelFormulaUtilitiesJS/issues?sort=comments&direction=desc&state=open" class="button">Feedback</a></p>


</div>

<script>//<![CDATA[
var _gaq=_gaq||[];_gaq.push(["_setAccount","UA-27681518-1"]),_gaq.push(["_setDomainName","excelformulabeautifier.com"]),_gaq.push(["_trackPageview"]),function(){var a=document.createElement("script");a.type="text/javascript",a.async=!0,a.src=("https:"==document.location.protocol?"https://ssl":"http://www")+".google-analytics.com/ga.js";var b=document.getElementsByTagName("script")[0];b.parentNode.insertBefore(a,b)}()
//]]></script>

<script src="src/core.js"></script>
<script src="src/ExcelFormulaUtilities.js"></script>

<script type="text/javascript"></script>
<script type="text/javascript">/*<![CDATA[*/
function(){
var
txtFormula
, codeFormulaOut;

window.load = function(){
txtFormula = document.getElementById('formula_input'),
codeFormulaOut = document.getElementById('fomatFormula_2_out');
}


}
/*]]>*/</script>

</body>
</html>

0 comments on commit 9564349

Please sign in to comment.