Skip to content

Commit

Permalink
Minor improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
kpj committed Oct 10, 2011
1 parent bf485fe commit cb515a8
Showing 1 changed file with 6 additions and 8 deletions.
14 changes: 6 additions & 8 deletions mandel.js
Expand Up @@ -171,15 +171,13 @@ $(function () {
}
}

var loca = location.hash
loca = loca.replace('#', '')
centerX = 0;
centerY = 0;
scale = 0.004;

if (!loca) {
centerX = 0;
centerY = 0;
scale = 0.004;
}
else {
var loca = location.hash
if (loca) {
loca = loca.replace('#', '')
var infos = loca.split("_")
if (infos.length == 3) {
centerX = parseFloat(infos[0])
Expand Down

0 comments on commit cb515a8

Please sign in to comment.