changed storage system to be less obstusive (it doesnt need redirects anymore...)

This commit is contained in:
phil 2013-07-03 07:55:15 +02:00
parent f8ae5fc4c9
commit f483a9ac55
8 changed files with 213 additions and 162 deletions

View file

@ -158,8 +158,12 @@ categories: [ Character-Sheet ]
</div>
</form>
</div>
<p>
<a href="javascript:hero.url();">Store inserted data in URL</a>
</p>
<script type="text/javascript" src="/static/javascripts/heroic.js"></script>
<script type="text/javascript">
var Hero = {
var hero = new Heroic({
"name": "Hero's name",
"s1": { "title": "Skill 1 name", "stat": "", "base": "", "lvl": "", "sum": "" },
"s2": { "title": "Skill 2 name", "stat": "", "base": "", "lvl": "", "sum": "" },
@ -182,6 +186,6 @@ categories: [ Character-Sheet ]
"s19": { "title": "", "stat": "", "base": "", "lvl": "", "sum": "" },
"s20": { "title": "", "stat": "", "base": "", "lvl": "", "sum": "" },
"s21": { "title": "", "stat": "", "base": "", "lvl": "", "sum": "" }
};
</script>
<script type="text/javascript" src="/static/javascripts/heroic.js"></script>
});
hero.bind();
</script>