From 0c38dc9ffe4db0448597293a3535577611dc3823 Mon Sep 17 00:00:00 2001 From: Nick Date: Tue, 16 Apr 2019 14:19:05 -0600 Subject: [PATCH] removed blinking --- static/script.js | 29 +---------------------------- 1 file changed, 1 insertion(+), 28 deletions(-) diff --git a/static/script.js b/static/script.js index d1a6e05..f198284 100644 --- a/static/script.js +++ b/static/script.js @@ -4,8 +4,6 @@ var acceptInput=false var action_waiting = false var inputStr = "" var typing = false -var should_blink = false -var blinkCounter = 0 var action_list = ["You attack", "You tell", "You use", "You go"] var prompt_num = 0 var seed_max = 100 @@ -155,13 +153,9 @@ var StoryTracker = { // Used to control the terminal like screen typing var Typer={ text: null, - accessBlinktimer:null, index:0, speed:2, - startBlinker: function(){ - accessBlinktimer=setInterval(function(){Typer.blinkCursor()},500) - }, - + content:function(){ return $("#console").html() }, @@ -195,26 +189,6 @@ var Typer={ } }, - - blinkCursor:function(){ - - if(should_blink == true){ - - if(blinkCounter > 10){ - var cont=this.content() - - if(cont.substring(cont.length-1,cont.length)=="|") - $("#console").html($("#console").html().substring(0,cont.length-1)) - - else - $("#console").append("|") - } - else{ - blinkCounter += 1 - } - - } - } } @@ -277,7 +251,6 @@ function start(){ StoryTracker.getFirstStory() startTyping() - Typer.startBlinker() console.log("Not mobile device"); document.getElementById('buttons').style.visibility='hidden';