Permalink
Browse files

removed cloud 9 files, not sure how they got in there

  • Loading branch information...
1 parent 42aad99 commit 95643497c3787f60c6f25b82e2ed5786d63eeb54 @joshbtn committed Aug 20, 2012
@@ -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}
@@ -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 +0,0 @@
-{"ts":1342193544710,"silentsave":true,"restoring":false,"patch":[[{"diffs":[[1,"<!doctype html>\n<head>\n <meta charset=\"utf-8\">\n <title>ExcelFormulaUtilities.js - Online Excel Formula Beautifier</title>\n \n <meta name=\"description\" content=\"Online Excel Formula Beautifier\">\n <meta name=\"author\" content=\"Josh Bennett\">\n \n <style type=\"text/css\">/*<![CDATA[*/\n\thtml, body{font-size:12px; font-family:\"Trebuchet MS\", \"Lucida Grande\", \"Lucida Sans Unicode\", \"Lucida Sans\", Tahoma, sans-serif;}\n\tbody{margin:0.618em;}\n\tfooter{display:none;}\n\t#main .formula{\n\t\tmargin:0;\n\t\tpadding:0;\n\t\tmargin-bottom:0.61em;\n\t}\n\t#main .formula pre, #main .formula div{\n\t\tmargin:0;\n\t\tpadding:0.61em;\n\t\tmargin-bottom:1.618em;\n\t\tbackground: #ffffff; /* Old browsers */\n\t\tbackground: -moz-linear-gradient(top, #ffffff 0%, #e5e5e5 100%); /* FF3.6+ */\n\t\tbackground: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#ffffff), color-stop(100%,#e5e5e5)); /* Chrome,Safari4+ */\n\t\tbackground: -webkit-linear-gradient(top, #ffffff 0%,#e5e5e5 100%); /* Chrome10+,Safari5.1+ */\n\t\tbackground: -o-linear-gradient(top, #ffffff 0%,#e5e5e5 100%); /* Opera11.10+ */\n\t\tbackground: -ms-linear-gradient(top, #ffffff 0%,#e5e5e5 100%); /* IE10+ */\n\t\tfilter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#ffffff', endColorstr='#e5e5e5',GradientType=0 ); /* IE6-9 */\n\t\tbackground: linear-gradient(top, #ffffff 0%,#e5e5e5 100%); /* W3C */\n\t}\n\t#main .formula h2{\n\t\tfont-weight:700;\n\t\tmargin:0;\n\t\tpadding:0.61em;\n\t\tfont-size:12px;\n\t\tcolor:#fff;\n\t\tbackground: #b8e1fc; /* Old browsers */\n\t\tbackground: -moz-linear-gradient(top, #b8e1fc 0%, #a9d2f3 10%, #90bae4 25%, #90bcea 37%, #90bff0 50%, #6ba8e5 51%, #a2daf5 83%, #bdf3fd 100%); /* FF3.6+ */\n\t\tbackground: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#b8e1fc), color-stop(10%,#a9d2f3), color-stop(25%,#90bae4), color-stop(37%,#90bcea), color-stop(50%,#90bff0), color-stop(51%,#6ba8e5), color-stop(83%,#a2daf5), color-stop(100%,#bdf3fd)); /* Chrome,Safari4+ */\n\t\tbackground: -webkit-linear-gradient(top, #b8e1fc 0%,#a9d2f3 10%,#90bae4 25%,#90bcea 37%,#90bff0 50%,#6ba8e5 51%,#a2daf5 83%,#bdf3fd 100%); /* Chrome10+,Safari5.1+ */\n\t\tbackground: -o-linear-gradient(top, #b8e1fc 0%,#a9d2f3 10%,#90bae4 25%,#90bcea 37%,#90bff0 50%,#6ba8e5 51%,#a2daf5 83%,#bdf3fd 100%); /* Opera11.10+ */\n\t\tbackground: -ms-linear-gradient(top, #b8e1fc 0%,#a9d2f3 10%,#90bae4 25%,#90bcea 37%,#90bff0 50%,#6ba8e5 51%,#a2daf5 83%,#bdf3fd 100%); /* IE10+ */\n\t\tfilter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#b8e1fc', endColorstr='#bdf3fd',GradientType=0 ); /* IE6-9 */\n\t\tbackground: linear-gradient(top, #b8e1fc 0%,#a9d2f3 10%,#90bae4 25%,#90bcea 37%,#90bff0 50%,#6ba8e5 51%,#a2daf5 83%,#bdf3fd 100%); /* W3C */\n\t}\n\t#main .formula h2 span{\n\t\tfont-weight:normal;\n\t}\n\t#inputArea{\n\t\tmargin:1.618em 0;\n\t}\n\t#formula_input{width:500px;}\n\t/*-----------FORMULA STYLES------------*/\n\t.function{\n\t\tcolor:#069;\n\t}\n\t.function_start, .function_stop{\n\t\tcolor:#ff0000;\n\t}\n\t.tabs{border-left:dotted 1px #a0a0a0}\n\t.quote_mark, .text{color:#0000ff}\n\t/*-----------FORMULA STYLES------------*/\n /*]]>*/</style>\n\n</head>\n\n<body>\n\n\t<div id=\"container\">\n\t\t<header>\n\t\t\t<h1>Online Excel Formula Beautifier (Beta)</h1>\n\t\t</header>\n\n\t\t<div id=\"main\" role=\"main\">\n\t\t\t<div id=\"inputArea\">\n\t\t\t\t<label for=\"formula_input\">Start Typing formula here.</label><br />\n\t\t\t\t<input type=\"text\" id=\"formula_input\" onkeyup=\"window.excelFormulaBeautifier.examples.beautifier.update()\" />\n\t\t\t</div>\n\t\t\t<div class=\"formula\">\n\t\t\t\t<h2>excelFormulaUtilities.formatFormulaHTML( \"<span id=\"fomatFormula_2\"></span>\" );</h2>\n\t\t\t\t<code id=\"fomatFormula_2_out\"></code>\n\t\t\t</div>\n\t\t\t\n\t\t</div>\n\t\t\n\t\t<footer>\n\t\t\t&copy; copyright 2011 Josh Bennett\n\t\t</footer>\n\t</div>\n\t\n\t<script src=\"js/excelFormulaUtilities-0.9.1.min.js\"></script>\n\t<script src=\"js/beautifier.js\"></script>\n\n </body>\n</html>\n"]],"start1":0,"start2":0,"length1":0,"length2":3802}]],"length":3802}
@@ -1 +0,0 @@
-{"ts":1341848495586,"silentsave":true,"restoring":false,"patch":[[{"diffs":[[1,"//Code at https://gist.github.com/1514715\n//This is for goolgle analtyics, tracking of external link clikcs.\n(function () {\n var aTags = document.getElementsByTagName('a'),\n \n // This will match weather or not the href is a full url \n // such as \"http://www.example.com/\" and not \"/index.html\".\n //\n // This is needed because matchServer assumes a full url,\n // however if the href is a path like / nothing will be matched\n // which means nothing will be replaced and the linkServer will \n // resolve to /my/path/html.This can probably be cleaned up to\n // a use a match instead, and only need 1 regex.\n matchFullLink = new RegExp(\"^.+://\", \"gi\"),\n \n //RegEx to grab the server name.\n matchServer = new RegExp(\"^.*://([^/]+).+\", \"gi\"),\n \n //Replace whole match, server name stored in first captured.\n currentServer = window.location.toString().replace(matchServer, \"$1\"),\n \n // Quick detect which event listener to use. Quick and dirty but fine\n // since not it's not getting crazy wiht the event handlers.\n addEventFunctionName = (document.createElement('a')).addEventListener ? \"addEventListener\" : \"attachEvent\",\n\n //current node in loop\n link = null,\n \n //Used in for loop. Represents current index of the node list\n i = 0,\n \n //This will hold the server of the curren link's href\n linkServer = \"\",\n \n //This will hold the current link's href\n linkHref = \"\";\n\n //This will be called when a link is cliked\n function handleExternLinkTrac(e, linkHref, linkServer){\n \t//Track click event\n _gaq.push(['_trackEvent', 'Outbound Links', linkServer, linkHref]);\n\t\t//navigating to the links location\n /*_gaq.push(function(){\n document.location = linkHref;\n });*/\n\t}\n \n //Loop though all a tags on the page\n for (i;i < aTags.length; i += 1) {\n //Set link to the current tag \n link = aTags[i];\n\n linkHref = link.href.toString();\n linkServer = linkHref.replace(matchServer, \"$1\");\n\n // Make sure that the href is a full url(See notes above for\n // matchFullLink) and check to make sure the server name\n // isn't the same as the current server.\n if (matchFullLink.test(linkHref) && linkServer !== currentServer) {\n console.log(linkHref);\n //Link Click Event Handler\n link[addEventFunctionName]('click', function (e) {\n // e will be passed to the function in everything but IE.\n \t// if it's IE get window.event\n \t\tvar evt = e || window.event;\n \n // Prevent the default behavior, of navigating\n \t// to linked page in this case\n \t\tevt.cancelBubble = true;\n \t\tif (evt.stopPropagation) evt.stopPropagation();\n if (evt.stopImmediatePropagation) evt.stopImmediatePropagation();\n \n handleExternLinkTrac(e, linkHref, linkServer);\n \n //Further prevent default behavior\n \t return false;\n });\n }\n }\n \n})();"]],"start1":0,"start2":0,"length1":0,"length2":3242}]],"length":3242}

Large diffs are not rendered by default.

Oops, something went wrong.
View
@@ -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 {
@@ -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()" />
@@ -40,9 +33,6 @@
</div>
- <footer>
- &copy; copyright 2011 <a href="http://joshbennett.me">Josh Bennett</a>
- </footer>
</div>
<!-- Side Content -->
@@ -56,19 +46,27 @@
</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.