Last active
November 4, 2015 17:27
-
-
Save mihailik/136a29b0249f27ee32e0 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<body> | |
<h2>test</h2> | |
<pre id=result></pre> | |
<script> | |
var result = document.getElementById('result') | |
try { | |
var text = (function() { return /\/\*\s*([\s\S]*\S)\s*\*\//.exec(arguments.callee.toString()||[])[1]; /* | |
{"accountIds":[2340561],"dealIds":["101590127"],"targetWeight":1.0,"standardWeightMultiper":1.0,"weightScalingFactor":0.0,"rebalanceOption":"StandardWeightMuliple","accountRebalance":true} | |
*/ })(); | |
result.textContent = result.innerHTML = text; | |
} | |
catch (x) { | |
result.textContent = result.innerHTML = x.message + ' \r\n\r\n '+x.stack; | |
result.style.color = 'tomato'; | |
} | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment