Mercurial > hg > STI-GWT
diff war/scripts/sti/STICore.js @ 75:d69066d16e45 trimmed_data
load overlays from data-file
author | Sebastian Kruse <skruse@mpiwg-berlin.mpg.de> |
---|---|
date | Tue, 15 Jan 2013 16:32:25 +0100 |
parents | 02cdf454d94b |
children | 108c853e0900 |
line wrap: on
line diff
--- a/war/scripts/sti/STICore.js Mon Jan 14 14:37:26 2013 +0100 +++ b/war/scripts/sti/STICore.js Tue Jan 15 16:32:25 2013 +0100 @@ -223,6 +223,14 @@ catch(e){ } + this.overlays = []; + try { + var jsonString = this.getFileString("overlaysources.json"); + this.overlays = eval('(' + jsonString + ')'); + } + catch(e){ + } + this.lockScreenContainer = document.createElement("div"); this.lockScreenContainer.setAttribute('class','lockScreenContainer'); document.getElementById("mainContainer").appendChild(this.lockScreenContainer);