Saves as: temple-run-cinematic.html · Play offline — no internet needed
▸ Or play now:
');
}
var frame=document.getElementById('game-frame');
frame.srcdoc=getGameSource();
var btn=document.getElementById('download-btn');
btn.addEventListener('click',function(){
try{
var source=getGameSource();
var blob=new Blob([source],{type:'text/html'});
var url=URL.createObjectURL(blob);
var a=document.createElement('a');
a.href=url;
a.download='temple-run-cinematic.html';
a.style.display='none';
a.rel='noopener';
document.body.appendChild(a);
a.click();
setTimeout(function(){
if(a.parentNode){a.parentNode.removeChild(a);}
URL.revokeObjectURL(url);
},150);
}catch(err){
console.error('Download failed:',err);
alert('Download could not start. You can still play the game using the player below.');
}
});
})();