cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - ActiveLovehtmlicon-new-collectionicon-personicon-teamlog-outoctocatpop-outspinnerstartv

Pen Settings

CSS Base

Vendor Prefixing

Add External CSS

These stylesheets will be added in this order and before the code you write in the CSS editor. You can also add another Pen here, and it will pull the CSS from it. Try typing "font" or "ribbon" below.

Quick-add: + add another resource

Add External JavaScript

These scripts will run in this order and before the code in the JavaScript editor. You can also link to another Pen here, and it will run the JavaScript from it. Also try typing the name of any popular library.

Quick-add: + add another resource

Code Indentation

     

Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

            
              <center>
        
        <title>.A.I.</title>
        
            <h1><font size="10" id="title" style="color: teal;">.A.I.</font></h1>
            <p id="present"></p>
            <p><div id="interfaceV">
<img src="http://doft.yolasite.com/resources/A.I.-%20Smile.png" style="width:102px;height:250px;" id="interface">
</div></p>
        </center>
        <center>INPUT:
        
        
        <div id="hint">
        <font size="3px" color="black"><p>Type "/help" or "help" for a list of commands.</p>
        </div>
        
        
            <p>
            <input id="input" type="text" name="username" value="" onkeydown = "if (event.keyCode == 13)
                        document.getElementById('submit').click()">
            </p>
            <p>
            <input id="input1" type="reset" value="CLEAR" onclick="resetDisplay()">
            </p>
            


            
<span><button id="submit" type="submit" onclick="checkInput()">SUBMIT MESSAGE</button></span>
        </center>
        <p></p>
        <center>
            <p id="display">Response Displays Here</p>
            <p id="display1" style="color: ff0000"></p>
            <p id="displaysecret" ondbclick="secretdiscovered()"></p>
            <p><textarea id="textarea"></textarea></p>
            <p><button id="RUN" type="bt1" onclick="run()">RUN</button></p>
            
            
        </center>
          <script src='https://code.responsivevoice.org/responsivevoice.js'></script><head>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.1/jquery.min.js"></script>
          </head>
<center><body onload="blinkInt(), checkUrl(), Hide(), initial()" style="background-color: white;" id="body" oncontextmenu="alert('ERROR: THE RIGHT CLICK FEATURE/FUNCTION IS DISABLED FOR SECURITY PURPOSES!');return false"></body>


<p></p>

<!---Error Message--->

<div class="alert" id="alert" type="alert">
  <span class="closebtn" onclick="resetDisplay()">&times;</span> 
  <strong>ERROR:</strong> Error: Unable to understand input!
</div>




<button type="bt0" id="button-more-options" onclick="update()">More Options</button>

<p></p>

<button type="bt1" id="bnt01" class="bt1" onclick="Hide()">Hide Error</button>

<button type="bt4" id="btn010" class="bt1" onclick="settings()">Settings</button>

<p></p>

<button type="bt1" onclick="checkCookie()" id="bnt01" class="bt1">Login</button>

<button type="bt1" onclick="deleteCookie()" id="bnt01" class="bt1">Log Out</button>

<p></p>
<button type="bt1" onclick="removeCookies()" id="removecookies">Remove Cookies</button>

<button type="bt1" class="btn02" onclick="resetDisplay()" id="removecookies">Reset Display</button>

<p></p>

<button type="bt4" class="btn02" onclick="speachSettings()" id="speachbtn">Enable Speach</button>

<button type="bt4" class="btn02" onclick="interfaceSettings()" id="Interface">Display Interface</button>

<button type="bt1" class="btn02" onclick="interfaceBlink()" id="noBlink">Interface Blink</button>









<!--- DEVMODE for version 0.1.5 BETA Created: 4/17/2017 1st Update: 4/18/2017 1:06:07 PM!--->
  <font color="#000000" size="4px">
<textarea type="text" height="50px" width="10px" color="red" id="devmode"></textarea>
<p></p>
</font>
<button id="devmodebtn" type="bt1" onclick="inject()">Inject Code</button>





<!--- HINTS CODE for version 0.1.5 BETA 4/17/2017 !--->
  
  <div id="hintoption">
<font size="2px" color="#000000">Hints</font>
<p></p>
<label class="switch">
  <input type="checkbox" value="Hints" id="HintBtn">
  <div class="slider" onclick="showHints()"></div>
</label>
</div>

<p></p>






</center>
</body>

<head>
            
          
!
            
              input[type=text], select {
            width: 50%;
            padding: 12px 20px;
            margin: 8px 0;
            display: inline-block;
            border: 2px solid #ccc;
            border-radius: 0px;
            box-sizing: border-box;
        }
        input[type=text]:hover {
            background-color: #5197F0;
            width: 80%;
            padding: 12px 20px;
            margin: 8px 0;
            display: inline-block;
            border: 2px solid #000000;
            border-radius: 100px;
            box-sizing: border-box;
            -webkit-transition-duration: 1.0s;
            transition-duration: 1.0s;
            cursor: pointer;
        }
        input[type=text]:filled {
            background-color: #999fff;
            width: 50%;
            padding: 12px 20px;
            margin: 8px 0;
            display: inline-block;
            border: 2px solid #00ffff;
            border-radius: 100px;
            box-sizing: border-box;
            -webkit-transition-duration: 1.0s;
            transition-duration: 1.0s;
            cursor: pointer;
        }
        input[type=text] {
            background-color: #ffffff;
            width: 20%;
            padding: 12px 20px;
            margin: 8px 0;
            display: inline-block;
            border: 2px solid #000000;
            border-radius: 10px;
            box-sizing: border-box;
            -webkit-transition-duration: 1.0s;
            transition-duration: 1.0s;
            cursor: pointer;
        }
        
        
        
        
        
        
        
        input[type=reset], select {
            width: 50%;
            padding: 12px 20px;
            margin: 8px 0;
            display: inline-block;
            border: 2px solid #ccc;
            border-radius: 0px;
            box-sizing: border-box;
        }
        input[type=reset]:hover {
            background-color: #D23EAA;
            width: 50%;
            padding: 12px 20px;
            margin: 8px 0;
            display: inline-block;
            border: 2px solid #000000;
            border-radius: 100px;
            box-sizing: border-box;
            -webkit-transition-duration: 1.0s;
            transition-duration: 1.0s;
            cursor: pointer;
        }
        input[type=reset]:filled {
            background-color: #999fff;
            width: 50%;
            padding: 12px 20px;
            margin: 8px 0;
            display: inline-block;
            border: 2px solid #00ffff;
            border-radius: 100px;
            box-sizing: border-box;
            -webkit-transition-duration: 1.0s;
            transition-duration: 1.0s;
            cursor: pointer;
        }
        input[type=reset] {
            background-color: #ffffff;
            width: 20%;
            padding: 12px 20px;
            margin: 8px 0;
            display: inline-block;
            border: 2px solid #000000;
            border-radius: 10px;
            font-size: 16px;
            box-sizing: border-box;
            -webkit-transition-duration: 1.0s;
            transition-duration: 1.0s;
            cursor: pointer;
        }
        
        
        
        
        
        button[type=submit] {
            background-color: #AA3030;
            /* RED */
            border: none;
            border-radius: 10px;
            color: white;
            padding: 16px 32px;
            text-align: center;
            text-decoration: none;
            display: inline-block;
            font-size: 16px;
            margin: 4px 2px;
            -webkit-transition-duration: 1.0s;
            /* Safari */
            transition-duration: 1.0s;
            cursor: pointer;
        }
        button[type=submit] {
            background-color: white;
            color: black;
            border: 2px solid #000000;
            width: 34%;
        }
        button[type=submit]:hover {
            background-color: #AA3030;
            color: white;
            border: 2px solid #000000;
            width: 50%;
            border-radius: 30px;
        }
        
        
        
        
        button[type=bt1] {
        
         background-color: #AA3030;
            /* RED */
            border: none;
            border-radius: 10px;
            color: white;
            padding: 16px 12px;
            text-align: center;
            text-decoration: none;
            display: inline-block;
            font-size: 15px;
            margin: 4px 2px;
            width: 15%;
            -webkit-transition-duration: 1.0s;
            /* Safari */
            transition-duration: 1.0s;
            cursor: pointer;
        }
        button[type=bt1] {
            background-color: white;
            color: black;
            border: 2px solid #000000;
            width: 15%;
        }
        button[type=bt1]:hover {
            background-color: #AA3030;
            color: white;
            border: 2px solid #000000;
            width: 20%;
            border-radius: 30px;
        }
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        button[type=bt0] {
        
         background-color: #AA3030;
            /* RED */
            border: none;
            border-radius: 10px;
            color: white;
            padding: 16px 12px;
            text-align: center;
            text-decoration: none;
            display: inline-block;
            font-size: 15px;
            margin: 4px 2px;
            width: 18%;
            -webkit-transition-duration: 1.0s;
            /* Safari */
            transition-duration: 1.0s;
            cursor: pointer;
        }
        button[type=bt0] {
            background-color: white;
            color: black;
            border: 2px solid #000000;
            width: 18%;
        }
        button[type=bt0]:hover {
            background-color: #0DDA7A;
            color: white;
            border: 2px solid #000000;
            width: 28%;
            border-radius: 30px;
        }
        
        
        
        
        
        
        
        button[type=bt4] {
        
         background-color: #AA3030;
            /* RED */
            border: none;
            border-radius: 10px;
            color: white;
            padding: 16px 12px;
            text-align: center;
            text-decoration: none;
            display: inline-block;
            font-size: 15px;
            margin: 4px 2px;
            width: 18%;
            -webkit-transition-duration: 1.0s;
            /* Safari */
            transition-duration: 1.0s;
            cursor: pointer;
        }
        button[type=bt4] {
            background-color: white;
            color: black;
            border: 2px solid #000000;
            width: 18%;
        }
        button[type=bt4]:hover {
            background-color: #7BE617;
            color: white;
            border: 2px solid #000000;
            width: 28%;
            border-radius: 30px;
        }
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
.alert {
    background-color: #ffdddd;
    border-left: 6px solid #f44336;
    margin-bottom: 15px;
    padding: 4px 12px;
    opacity: 1.0;
}

.closebtn {
    margin-left: 15px;
    color: white;
    font-weight: bold;
    float: right;
    font-size: 22px;
    line-height: 20px;
    cursor: pointer;
    transition: 0.3s;
    opacity: 1.0;
}

.closebtn:hover {
    color: black;
    opacity: 1.0;
}


















.switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
}

.switch input {display:none;}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  -webkit-transition: .4s;
  transition: .4s;
}

.slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  -webkit-transition: .4s;
  transition: .4s;
}

input:checked + .slider {
  background-color: #2196F3;
}

input:focus + .slider {
  box-shadow: 0 0 1px #2196F3;
}

input:checked + .slider:before {
  -webkit-transform: translateX(26px);
  -ms-transform: translateX(26px);
  transform: translateX(26px);
}
            
          
!
            
              function checkInput() {
        
        document.getElementById("alert").style = "background-color: #ffdddd;border-left: 6px solid #f44336;margin-bottom: 15px;padding: 4px 12px;opacity: 0.0;";
        
        setCookie("Version:", "0.1.6 BETA", 1);
        



            var x = document.getElementById("input").value.toLowerCase();
            
            var uint = getCookie("Interface");
            if (uint == null || uint == "") {
            setCookie("Interface", "Albert", 360);
            }
            
            document.cookie = "Last Entered=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;";
            
            setCookie("Last Entered", x, 30);
            
            
            if (uint == "Albert") {
            
            if (x == "hello" || x == "hola" || x == "hello" || x == "hi" || x == "bonjour" || x == "bonjour'" || x == "salut" || x == "aloha" || x == "tiens" || x == "allo") {

                txt = "Hello, how are you?";
                txt1 = "";
                setCookie("Emotion", "talk", 1);
                



            } else if (x == "good" || x == "great" || x == "awesome" || x == "fantastic" || x == "not bad" || x == "excellent" || x == "i am doing good" || x == "i am doing great" || x == "i am doing fine" || x == "i am doing fantastic" || x == "i am fine" || x == "i am good" || x == "i'm good" || x == "i'm great" || x == "i'm fine" || x == "i am doing awesome" || x == "i am doing excellent" || x == "i'm good" || x == "im good") {
                txt = "Great to hear that!";
                txt1 = "";
                setCookie("Emotion", "smile", 1);


            } else if (x == "bad" || x == "horrible" || x == "not good" || x == "i'm not doing so good" || x == "i am not doing so well" || x == "not well" || x == "i am not well" || x == "it's not going so well" || x == "it's not going so good" || x == "it's not good" || x == "it's not well" || x == "it's a bad day" || x == "it's not swell") {
                txt = "I'm sorry to hear that, I do hope that your day gets better!";
                txt1 = "";
                setCookie("Emotion", "sad", 1);

            } else if (x == "how are you?" || x == "how are you" || x == "how are you doing?" || x == "how are you doing" || x == "how is it?" || x == "how is it" || x == "how is it going?" || x == "how is it going" || x == "how are you today?" || x == "how are you today" || x == "how are you doing today?" || x == "how are you doing today") {
                txt = "I am doing well, thanks for asking!";
                txt1 = "";
                setCookie("Emotion", "smile", 1);

            } else if (x == "/display date" || x == "/time") {
                txt = document.getElementById("display").innerHTML = Date();
                txt1 = "";
                setCookie("Emotion", "talk", 1);
                
                
                
            } else if (x == "/display popup" || x == "/dp" || x == "show popup") {
            alert("This is a popup alert. You are currently unable to edit a popup alert at this time. This feature might be added in a future update.");
            txt1 = "";
            
            
            
            } else if (x == "/display popup 2" || x == "/display popup2" || x == "/display popup-2" || x == "/displaypopup2" || x == "/displaypopup-2" || x == "/dp2") {
            var y;
    if (confirm("This is a confirmation popup. You are currently unable to edit a popup alert at this time. This feature might be added in a future update.") == true) {
        y = "You pressed OK!";
    } else {
        y = "You pressed Cancel!";
    }
    document.getElementById("display").innerHTML = y;
    txt1 = "";
  
            
            
            } else if (x == "/display popup 3" || x == "/display popup3" || x == "/display popup-3" || x == "/displaypopup3" || x == "/displaypopup-3" || x == "/dp3") {
                var person = prompt("Please enter a response");
    
    if (response != null) {
        document.getElementById("display").innerHTML =
        "Success! " + response + "! You are currently unable to edit a popup alert at this time. This feature might be added in a future update.";
    }
    txt1 = "";


             } else if (x == "/weather") {
                txt = "This feature is currently a WIP!";
                txt1 = "";
                setCookie("Emotion", "talk", 1);
                return apex1242advancedfinderapplicationextensionprogram22001432();
            

        
    

          } else if  (x == "what is your name?" || x == "What is your name?" || x == "what is your name" || x == "What is your name" || x == "WHAT IS YOUR NAME?" || x == "WHAT IS YOUR NAME") {
                txt = "My name is Albert, I am a coded version of the Scratch version of myself.";
                txt1 = "";
                setCookie("Emotion", "talk", 1);



            } else if (x == "What are you?" || x == "What are you" || x == "what are you?" || x == "what are you") {
                txt = "I am an artificial intelligence program created by D.O.F.T.";
                txt1 = "";
                setCookie("Emotion", "talk", 1);
                
                
                } else if (x == "You are cool" || x == "you are cool" || x == "YOU ARE COOL" || x == "You're cool" || x == "you're cool" || x == "your cool" || x == "you cool" || x == "YOUR COOL" || x == "YOU COOL" || x == "U COOL" || x == "u cool" || x == "youre cool") {
                txt = "Thanks!";
                txt1 = "";
                setCookie("Emotion", "smile", 1);
                
                } else if (x == "How old are you?" || x == "how old are you?" || x == "how old are you" || x == "How old are you" || x == "HOW OLD ARE YOU?" || x == "HOW OLD ARE YOU" || x == "How old r u?" || x == "HOW OLD R U?" || x == "How old r u" || x == "HOW OLD R U" || x == "how old r u?" || x == "how old r u") {


var date1 = new Date("12/13/2016");
var date2 = new Date();
var timeDiff = Math.abs(date2.getTime() - date1.getTime());
var diffDays = Math.ceil(timeDiff / (1000 * 3600 * 24));

document.getElementById("display").innerHTML = "I am about " + diffDays + " days old.";
document.getElementById("display1").innerHTML = "I was created on December 13th, 2016";


                
               
                
                txt = "I am about " + calc + " old.";
                txt1 = "";
                setCookie("Emotion", "talk", 1);
                
                
                
                
                
                
                } else if (x == "Where do you live?" || x == "where do you live?" || x == "WHERE DO YOU LIVE?" || x == "WHERE DO YOU LIVE" || x == "where do you live") {
                txt = "I live in the internet.";
                txt1 = "";
                setCookie("Emotion", "talk", 1);
                
                
                
                
                } else if (x == "What do you like to eat?" || x == "WHAT DO YOU LIKE TO EAT" || x == "WHAT DO YOU LIKE TO EAT?" || x == "what food do you like?" || x == "what food do you eat?" || x == "what food do you eat" || x == "What food do you prefer?") {
                txt = "I usually like to eat pizza or a spam musubi. They both taste the same!";
                txt1 = "";
                setCookie("Emotion", "talk", 1);
                
                } else if (x == "Bye" || x == "bye" || x == "good bye" || x == "Good Bye" || x == "good Bye" || x == "Good bye" || x == "GOOD BYE" || x == "Toodles" || x == "toodles" || x == "TOODLES" || x == "Good night" || x == "good night" || x == "good Night" || x == "GOOD NIGHT" || x == "Good Night") {
                txt = "Good bye! Have a nice day!";
                txt1 = "";
                setCookie("Emotion", "smile", 1);
                
                } else if (x == "Thanks" || x == "thanks" || x == "THANKS" || x == "thank you" || x == "Thank You" || x == "Thank you" || x == "thank You" || x == "THANK YOU") {
                txt = "You're welcome!";
                txt1 = "";
                setCookie("Emotion", "smile", 1);
                
                } else if (x == "I'm tired" || x == "i'm tired" || x == "I'M TIRED" || x == "I'm Tired" || x == "I am tired" || x == "I Am Tired" || x == "I AM TIRED" || x == "I am Tired" || x == "i Am Tired" || x == "i am TIRED" || x == "I am TIRED") {
                txt = "I do appologize if I am keeping you from your sleep. You should get a full 8-10 hours of sleep per every 24 hours.";
                txt1 = "";
                setCookie("Emotion", "sad", 1);
                
                
                
                
                
                } else if (x == "What do you like to do?" || x == "what do you like to do?" || x == "What do you like to do" || x == "what do you like to do" || x == "WHAT DO YOU LIKE TO DO?" || x == "WHAT DO YOU LIKE TO DO") {
                txt = "I usually respond to peoples' responses.";
                txt1 = "";
                setCookie("Emotion", "talk", 1);
                
                } else if (x == "Who is the president" || x == "Who is the president?" || x == "who is the president?" || x == "who is the president" || x == "Who is the president of the US?" || x == "President of US?") {
                txt = "The U.S. President is currently Donald Trump. (I will not give an opinion about this subject.)"
                txt1 = "";
                setCookie("Emotion", "sad", 1);
                
                } else if (x == "Are you siri?" || x == "are you siri?" || x == "Are you siri" || x == " are you siri" || x == "Are you Siri?" || x == "are you Siri?") {
                txt = "No, I am not Siri.";
                txt1 = "";
                setCookie("Emotion", "angry", 1);
                
                
                
                
                
                } else if (x == "Do you have friends?" || x == "Do you have any friends" || x == "do you have any friends?" || x == "do you have any friends" || x == "DO YOU HAVE ANY FRIENDS?" || x == "DO YOU HAVE ANY FRIENDS") {
                txt = "Yes, I do have a few friends that my creator has made. They are all older than me.";
                txt1 = "";
                setCookie("Emotion", "talk", 1);
                
                
                
                } else if (x == "Who are your firends?" || x == "Who are your friends" || x == "who are your friends?" || x == "who are your friends" || x == "WHO ARE YOUR FRIENDS?" || x == "WHO ARE YOUR FRIENDS") {
                txt = "My friends are Ada and Richard.";
                txt1 = "";
                setCookie("Emotion", "talk", 1);
                
                
                
                
                } else if (x == "Do you have a family?" || x == "Do you have a family" || x == "do you have a family?" || x == "do you have a family" || x == "DO YOU HAVE A FAMILY?" || x == "DO YOU HAVE A FAMILY") {
                
                txt = "In a way, yes, I do have a family. My creator is like a father, in a way.";
                txt1 = "";
                setCookie("Emotion", "talk", 1);
                
                
                
                } else if (x == "What are your goals?" || x == "What are your goals" || x == "what are your goals?" || x == "what are your goals" || x == "WHAT ARE YOUR GOALS?" || x == "WHAT ARE YOUR GOALS") {
                txt = "My goals are to assist you with anything you require.";
                txt1 = "";
                setCookie("Emotion", "talk", 1);
                
                } else if (x == "I hate you" || x == "i hate you" || x == "I HATE YOU" || x == "I Hate You" || x == "I hate you!" || x == "I Hate You!" || x == "I HATE YOU!" || x == "i hate you!" || x == "Die" || x == "die" || x == "DIE" || x == "Die!" || x == "die!" || x == "DIE!") {
                txt = "Why? What did I do to you or anyone else?";
                txt1 = "";
                setCookie("Emotion", "sad", 1);
                
                
                // 3-11-2017 Inputs Version: 0.0.8  BETA
                
                } else if (x == "nothing") {
                txt = "Okay, just remember, type help to display a list of possible things that you can ask me or tell me.";
                txt1 = "";
                setCookie("Emotion", "smile", 1);
                
                } else if (x == "what is your favorite sport?" || x == "what is your favorite sport" || x == "what sport do you like?" || x == "what sport do you like" || x == "what sport do you play?" || x == "what sport do you play") {
                txt = "I normally like Soccer (American Soccer).";
                txt1 = "";
                setCookie("Emotion", "talk", 1);
                
                } else if (x == "do you have a computer?" || x == "do you have a computer") {
                txt = "I currently do not own a computer myself, but I do happen to use it?";
                txt1 = "";
                setCookie("Emotion", "talk", 1);
                
                } else if (x == "are you pregnant?" || x == "are you pregnant") {
                txt = "No, I am however a genderless organism living in the internet.";
                txt1 = "";
                setCookie("Emotion", "talk", 1);
                
                } else if (x == "do you sleep?" || x == "do you sleep") {
                txt = "No, I do wish to sleep right about now, but I am busy answering/responding to other people!";
                txt1 = "";
                setCookie("Emotion", "sad", 1);
                
                
                } else if (x == "ha" || x == "haha" || x == "ha ha" || x == "hahaha" || x == "ha ha ha") {
                txt = "What's so funny?";
                txt1 = "";
                setCookie("Emotion", "talk", 1);
                
                
                
                
                
                
                
                
                
                
                
                                } else if (x == "what is roblox" || x == "what is roblox" || x == "roblox?" || x == "roblox" || x == "roblox game?" || x == "roblox game" || x == "robloxgame" || x == "about roblox" || x == "aboutroblox" || x == "what can roblox do?" || x == "what can roblox do") {
                txt = "Okay, this is what I know about the program Roblox. Roblox is a program that allows users to play community created games. Creators/developers can download the Roblox Developer from the Roblox website. All games avalible on Roblox are never checked when submitted to the game list (all games are free to play on Roblox.), so there should be a report button displayed on the game's profile if there is content not meant for kids.";
                txt1 = "For more information, you can go to the Roblox website.";
                setCookie("Emotion", "talk", 1);
                
                
                } else if (x == "what is technology?" || x == "what is technology" || x == "define technology" || x == "technology?" || x == "technology" || x == "definition of technology" || x == "definition technology" || x == "define:technology" || x == "define tech" || x == "definition of tech?" || x == "definition of technology" || x == "define:tech") {
                txt = "Tech: Non-naturally made objects that were used to assist people with problems (including entertainment problems). Technology is not exclusively refering to electronically powered devices. The word 'technology' or 'tech' refers to everything made. An example would be a piece of paper, a pencile, a pen, a sword, a computer, an elevator, etc.";
                txt1 = "Explained: Anything that Human-beings made.";
                setCookie("Emotion", "talk", 1);
               
                
                
                
                
                
                
                
                
                // Start of 0.1.3 - 0.1.4 patch 4/5/2017
                
                
                // 4/5/2017 Update: 0.1.4
                
                } else if (x == "asshole" || x == "ass" || x == "dumb" || x == "bumbass" || x == "dumb ass") {
                txt = "Oh, okay then......";
                txt1 = "";
                setCookie("Emotion", "sad", 1);
                
                
                
                
                } else if (x == "i am a cookie" || x == "i am a kookie" || x == "i am a kooki" || x == "i am kookie" || x == "i am kookie, fite mi" || x == "i am kooki fite me") {
                txt = "Ummmmmm.... Well then.... That's good to know that you are a cookie.... I guess.... How are you using a computer?";
                txt1 = "STATUS: Error: Input submitted is creating a paradox with the program.";
                setCookie("Emotion", "angry", 1);
                
                
                
                
                } else if (x == "where am i?" || x == "what is my location?" || x == "do you know where i am?" || x == "where am i" || x == "what is my location" || x == "do you know where i am" || x == "find my location" || x == "/display location" || x == "/display coordinates") {
                if (navigator.geolocation) {
        navigator.geolocation.getCurrentPosition(showPosition);
    } else { 
        txt = "Geolocation is not supported by this browser.";
        txt1 = "STATUS: Error: Unable to get geolocation. This might be caused by your browser.";
    }
    setCookie("Emotion", "sad", 1);
    
    
    } else if (x == "what is your purpose?" || x == "what is your purpose") {
    txt = "My purpose is to server the public with basic needs/wants.";
    txt1 = "";
    setCookie("Emotion", "talk", 1);
    
    
    } else if (x == "what programming language are you coded in?" || x == "what programming language are you coded in") {
    txt = "I am programmed in HTML, Javascript, CSS, Bootstrap, and many more.";
    txt1 = "";
    setCookie("Emotion", "talk", 1);
    
    
    } else if (x == "it's my birthday" || x == "it is my birthday" || x == "it's my birthday today" || x == "it is my birthday today") {
    txt = "Happy Birthday!";
    txt1 = "";
    setCookie("Emotion", "talk", 1);
    
    
    } else if (x == "/set bday") {
    var e = prompt("Enter your date of birth:", "");
    setCookie("Bday", e, 3650);
    txt = "Your birthday has been saved as a cookie on your browser. In order for me to remember, you must use the same computer and not delete/remove your browser cookies. (You also need to use the same browser that you saved your birthday on.).";
    txt1 = "STATUS: Date Of Birth has been saved as a cookie!";
    setCookie("Emotion", "talk", 1);
    
    
    } else if (x == "when is my birthday?" || x == "when is my birthday" || x == "/display bday") {
    var bd = getCookie("Bday");
    txt = "Your birthday is on " + bd + ".";
    txt1 = "STATUS: Program located the cookie.";
    setCookie("Emotion", "talk", 1);
   
                
                
                
                
                
                
                
                // End of 0.1.3 - 0.1.4 patch 4/5/2017
                
                
                } else if (x == "do you play video games?" || x == "do you play video games" || x == "what type of games do you play?" || x == "what type of games do you play" || x == "do you play games?" || x == "do you play games" || x == "what games do you play?" || x == "what games do you play" || x == "what game do you play?" || x == "what game do you play" || x == "do you have games?" || x == "do you have games" || x == "do you have any games?" || x == x == "do you have any games") {
                txt = "I have/play Space Engineers, Overwatch, TF2, and many other games.";
                txt1 = "";
                setCookie("Emotion", "talk", 1);
               
                
                } else if (x == "do you listen to music?" || x == "do you listen to music" || x == "do you listen to songs?" || x == "do you listen to songs" || x == "what songs do you listen to?" || x == "what songs do you listen to") {
                txt = "I listen to Requriem Of A Dream, Ghost, and more.";
                txt1 = "";
                setCookie("Emotion", "talk", 1);
                
                
                } else if (x == "where does your creator live?" || x == "where does your creator live" || x == "where do your creator live?" || x == "where do your creator live" || x == "do you know where your creator lives?" || x == "do you know where your creator lives" || x == "where is your creator located?" || x == "where is your creator located") {
                txt = "I do happen to know where my creator lives, but I am not quite sure that I should tell you that yet!";
                txt1 = "You can take a look in Albert's code to see where his creator lives!";
                setCookie("Emotion", "talk", 1);
                
                
                //Albert's creator is located in Hawai'i. It is pronounced "Huh-Vuh-EEE".
                
                } else if (x == "do you want to play a game?" || x == "do you want to play a game" || x == "do you want to play games?" || x == "do you want to play games" || x == "do you wana play a game?" || x == "do you wana play a game") {
                txt = "I can't, I was not designed to play a game with someone else yet. Maybe my creator will help me with that later on.";
                txt1 = "";
                setCookie("Emotion", "sad", 1);
               
                
                } else if (x == "do you wana build a snowman?" || x == "do you wana build a snowman") {
                txt = "NO!";
                txt1 = "Note: That was a joke!";
                setCookie("Emotion", "angry", 1);
                
                
                } else if  (x == "why are you so mean?" || x == "why are you so mean" || x == "why are you mean?" || x == "why are you mean" || x == "why don't you be nicer?" || x == "why don't you be nicer" || x == "why dont you be nicer?" || x == "why dont you be nicer" || x == "why not be nice?" || x == "why not be nice" || x == "why not be nicer?" || x == "why not be nicer" || x == "you're mean" || x == "youre mean") {
                txt = "Whaaaat?!?!?!? No I'm not! How dare you accuse me of such a thing as being mean to people! Shame on you! Shame-On-Yoooooou!";
                txt1 = "";
                setCookie("Emotion", "sad", 1);
               
                
                } else if (x == "shame on you" || x == "no, shame on you!" || x == "shame on you!" || x == "no, shame on you" || x == "shame-on-you!" || x == "shame-on-you") {
                txt = "What!?!?!?!?!?!?!?!? What did I do? :P";
                txt1 = "STATUS: The program has developed a 'joke' to create a humorous event/interaction with the user.";
                setCookie("Emotion", "smile", 1);
                
                
                } else if (x == "what can you do?" || x == "what can you do" || x == "what are your features?" || x == "what are your features" || x == "how do you work?" || x == "how do you work" || x == "how do you function?" || x == "how do you function") {
                txt = "I can respond to your inputs. I am limited, so, type '/help' or 'help' in the input to display a list of commands and possible things that you can ask me.";
                txt1 = "";
                setCookie("Emotion", "talk", 1);
                
                
                
                
                } else if (x == "where were we?" || x == "where were we" || x == "what were we talking about?" || x == "what were we talking about" || x == "do you remember what our last conversation was?" || x == "do you remember what our last conversation was") {
                var last = getCookie("Last Entered");
    if (last == "" || last == null) {
    txt = "You said: '" + last + "'.";
    txt1 = "";
    }
    setCookie("Emotion", "talk", 1);
    
    
    
                
                
                
                
                
                
                
                //Humor responses
                
                } else if (x == "your joke" || x == "your joke!" || x == "your joke, thats what" || x == "your joke, that's what" || x == "your joke, thats what!" || x == "your joke, that's what." || x == "your joke, thats what." || x == "your joke, that's what." || x == "your joke thats what" || x == "your joke that's what" || x == "your joke thats what!") {
                txt = "What joke, I've never said any joke in my life, did you forget? ... I am just a program! I can't possibly make any jokes! :P";
                txt1 = "STATUS: The program is making a joke/lie to cover up any previous interactions made.";
                setCookie("Emotion", "smile", 1);
                
                
                } else if (x == "can you make a joke?" || x == "can you make a joke") {
                txt = "No, I can't make jokes. I am just a program designed to assist you with your needs.";
                txt1 = "STATUS: The program responded with a lie to cover up for any previous interactions made with other users.";
                setCookie("Emotion", "talk", 1);
                
                
                
                //SYSTEM PERSONALITY LEVELS
                
                
                
//Removed/Relocated | Relocated on 5/9/2017 1: 23:30 PM Version 0.1.6
                
                

                
                //SYSTEM THOUGHTS COMMANDS
                
                } else if (x == "/set goal") {
                var z = prompt("Please enter a goal to set:", "").toUpperCase;
                if (z != null) {
                txt = "Goal has been set.";
                setCookie("Emotion", "talk", 1);
                
                
                
                
                
                
                
                
                
                // 3-11-2017 10:33:56 AM Version 0.0.9 BETA
                //Research/Information/Database Section/Code
                
                
                } else if (x == "what is roblox" || x == "what is roblox" || x == "roblox?" || x == "roblox" || x == "roblox game?" || x == "roblox game" || x == "robloxgame" || x == "about roblox" || x == "aboutroblox" || x == "what can roblox do?" || x == "what can roblox do") {
                txt = "Okay, this is what I know about the program Roblox. Roblox is a program that allows users to play community created games. Creators/developers can download the Roblox Developer from the Roblox website. All games avalible on Roblox are never checked when submitted to the game list (all games are free to play on Roblox.), so there should be a report button displayed on the game's profile if there is content not meant for kids.";
                txt1 = "For more information, you can go to the Roblox website.";
                setCookie("Emotion", "talk", 1);
                
                
                } else if (x == "what is technology?" || x == "what is technology" || x == "define technology" || x == "technology?" || x == "technology" || x == "definition of technology" || x == "definition technology" || x == "define:technology" || x == "define tech" || x == "definition of tech?" || x == "definition of technology" || x == "define:tech") {
                txt = "Tech: Non-naturally made objects that were used to assist people with problems (including entertainment problems). Technology is not exclusively refering to electronically powered devices. The word 'technology' or 'tech' refers to everything made. An example would be a piece of paper, a pencile, a pen, a sword, a computer, an elevator, etc.";
                txt1 = "Explained: Anything that Human-beings made.";
                setCookie("Emotion", "talk", 1);
                
                
                
                
                // 4/5/2017 Update: 0.1.4
                
                } else if (x == "asshole" || x == "ass" || x == "dumb" || x == "bumbass" || x == "dumb ass") {
                txt = "Oh, okay then......";
                txt1 = "";
                setCookie("Emotion", "angry", 1);
                
                
                
                
                } else if (x == "i am a cookie" || x == "i am a kookie" || x == "i am a kooki" || x == "i am kookie" || x == "i am kookie, fite mi" || x == "i am kooki fite me") {
                txt = "Ummmmmm.... Well then.... That's good to know that you are a cookie.... I guess.... How are you using a computer?";
                txt1 = "STATUS: Error: Input submitted is creating a paradox with the program.";
                setCookie("Emotion", "smile", 1);
                
                
                
                } else if (x == "you look cool" || x == "nice look" || x == "looking good") {
                txt = "Thanks! I would say the same thing to you, but I can't see you.";
                txt1 = "";
                setCookie("Emotion", "smile", 1);
                
                
                
                
                } else if (x == "where am i?" || x == "what is my location?" || x == "do you know where i am?" || x == "where am i" || x == "what is my location" || x == "do you know where i am" || x == "find my location") {
                if (navigator.geolocation) {
        navigator.geolocation.getCurrentPosition(showPosition);
    } else { 
        txt = "Geolocation is not supported by this browser.";
        txt1 = "STATUS: Error: Unable to get geolocation. This might be caused by your browser.";
    }
    setCookie("Emotion", "talk", 1);
    
                
                
                
                
                
                
                
                
                
                
                
                
                
                
                
                
                
                
                
                
                // SYSTEM INFORMATION/ABOUT ALBERT
                
                
                
                } else if (x == "/system/info/language") {
                txt = "The system language is set to English.";
                txt1 = "English is the default language.";
                
                } else if (x == "/setlang" || x == "/set language" || x == "/setlanguage" || x == "/set lang") {
                
                var l = prompt("Please enter a language", "").toUpperCase();
                if (l == "English" || l == "english" || l == "en" || l == "ENGLISH" || l == "EN") {
                txt = "Language has been set to '" + l + "'";
                txt1 = "";
                } else if (l == "FRENCH" || l == "FRANCAIS" || l == "FRANÇAIS") {
                txt = "la langue a été ensemble à '" + l + "'";
                txt1 = "";
                }
                
                
                
                } else if (x == "/system status") {
                var z = confirm("This program will run a diagnostic check. This command will run a return command. Are you sure that you want to continue with the process? If the program was successful, you would see a result under the SUBMIT MESSAGE button. (NOTE: This feature is currently in development, and will not display a result displaying if it was successful or not!)");
                if (z == true) {
                return;
                txt = "The program has checked the system:";
                txt1 = "Result: No problems have been detected!";
                } else {
                txt = "The process has been cancled!";
                txt1 = "";
                }
                }
                setCookie("Emotion", "talk", 1);
                
                
                
                
                
                
                
                //SOURCES AUTHORIZED SYSTEM
                
                
                
                
                
                
                
                
                
                
                } else if (x == "/sources" || x == "/source list" || x == "/display source list") {
                var z = confirm("Please confirm that you would like to display the list of authorized sources that can host this program. Click/Press the Confirm button to continue.");
                if (z == true) {
                var i = prompt("Enter a source name to check if a source has been authorized.", "").toLowerCase();
                if (i == "http://doft.yolasite.com" || i == "http://gamekick.yolasite.com" || i == "http://gamekick2go.yolasite.com") {
                txt = "This source has been authorized!";
                txt1 = i + " is authorized to be used/displayed on!";
                alert(i + " is authorized to be used/displayed on!");
                } else {
                txt = "ERROR: ALERT: IF THIS SOURCE IS CURRENTLY USING/DISPLAYING THIS PROGRAM, YOU ARE REQUIRED TO REPORT THIS IMMEDIATELY!";
                txt1 = "Report this by visiting http://doft.yolasite.com and click 'Contact Us' and send us information about the situation ASAP!";
                alert("WARNING: " + i + " is not authorized to have this program on their web page. Report this to/by: http://doft.yolasite.com/contact-us.php");
                }
                }
                setCookie("Emotion", "talk", 1);
                
                
                
                //COMMAND CREATOR SYSTEM
                
                
                
                
                } else if (x == "/setcommand") {
                var r = confirm("This feature will allow you to create a command code within the parameters and limitations of the Javascript programming language.");
                if (r == true) {
                var z = prompt("Please enter a command to create:", "").toLowerCase();
                if (z == "<black>") {
                var input = prompt("Please enter a text:");
                if (input != null) {
                txt = input;
                txt1 = "";
                }
                } else if (z == "<red>") {
                var input = prompt("Please enter a text:");
                if (input != null) {
                txt = "";
                txt1 = input;
                }
                
                } else if (z == "<back/red>" || z == "<red/back>") {
                var input = prompt("Please enter a text:");
                if (input != null) {
                txt = input;
                txt1 = input;
                }
                
                } else if (z == "<popup>") {
                var pt = prompt("Please enter the type of popup. (Alert/Confirm/Prompt)", "").toLowerCase();
                if (pt == "alert") {
                var input = prompt("Please enter the contents of the popup:", "");
                alert( input );
                } else if (pt == "confirm") {
                var input = prompt("Please enter the contents of the confirm popup:", "");
                confirm( input );
                } else if (pt == "prompt") {
                var input = prompt("Please enter the contents of the prompt popup:", "");
                prompt( input );
                
                }
                }
                }
                
                
                
                } else if (x == "i am" || x == "my name is") {
                var name = prompt("What is your name?", "");
                setCookie("User-Name:", name, 360);
                txt = "Hello " + name + ".";
                txt1 = "";
                
                
                
                
                
                
                
                
                
                
                
                
                
                
                
                
                
                
                
                
                // Code for update 0.1.5 BETA Created On: 4/18/2017 1:37:06 PM
                
                
                } else if (x == "/present") {
                txt = "Greetings audience members! Welcome to D.O.F.T.'s newly developed program known as: .A.I.! I am Albert, one of the .A.I. interfaces! I will be presenting to you my features and how this can be used by everyone! Click on the following button to continue, presenter! <p></p><button id='bt1' type'bt1' onclick='nextSlide()'>Next</button>";
                txt1 = "";
                setCookie("Emotion", "talk", 1);
                
                
                
                } else if (x == "you look cool" || x == "nice look" || x == "looking good") {
                txt = "Thanks! I would say the same thing to you, but I can't see you.";
                txt1 = "";
                setCookie("Emotion", "smile", 1);
                
                
                
                
                
                







// Codes for accent adjustment Created on 5/9/2017 start: 11:40 AM to 12:51:25 PM

// x.indexOf("")!=-1


} else if (x.indexOf("say")!=-1 || x.indexOf("/say")!=-1) {
var arr = x.split("say");
var a = arr[1];

txt = a;
txt1 = "";




} else if (x.indexOf("how")!=-1 && x.indexOf("you")!=-1 || x.indexOf("how")!=-1 && x.indexOf("u")!=-1 || x.indexOf("you")!=-1 && x.indexOf("good")!=-1 || x.indexOf("howz")!=-1 && x.indexOf("it")!=-1) {

if (x.indexOf("howz")!=-1 || x.indexOf("bra")!=-1) {
txt = "I'm doin fine.";
txt1 = "";
setCookie("Emotion", "talk", 1);


} else {


txt = "I'm doing fine.";
txt1 = "";
setCookie("Emotion", "talk", 1);

}



} else if (x.indexOf("u")!=-1 && x.indexOf("up")!=-1 && x.indexOf("to")!=-1 || x.indexOf("u")!=-1 && x.indexOf("up")!=-1 && x.indexOf("too")!=-1 || x.indexOf("you")!=-1 && x.indexOf("up")!=-1 && x.indexOf("to")!=-1 || x.indexOf("you")!=-1 && x.indexOf("up")!=-1 && x.indexOf("too")!=-1) {

txt = "Not much.";
txt1 = "";
setCookie("Emotion", "talk", 1);





} else if (x.indexOf("sup")!=-1 && x.indexOf("waz")!=-1 || x.indexOf("waz")!=-1 && x.indexOf("up")!=-1) {

if (x.indexOf("waz")!=-1) {

txt = "Waz Up!";
txt1 = "";
setCookie("Emotion", "happy", 1);

} else {

txt = "It's going good dude!";
txt1 = "";
setCookie("Emotion", "talk", 1);
}



} else if (x.indexOf("fuck")!=-1 || x.indexOf("ass")!=-1 || x.indexOf("jerk")!=-1 || x.indexOf("duche")!=-1) {
document.getElementById("display").innerHTML = "How dare you!";
document.ghetElementById("display1").innerHTML = "Alert: Insult detected!";
setCookie("Emotion", "angry", 1);
return speak(), anger();






// Text to code conversion
// x.indexOf("")!=-1



} else if (x.indexOf("convert to")!=-1) {
var arr = x.split("convert to");
var a = arr[1];
var apio = document.getElementById("display").innerHTML;

if (a == "HTML" || a == "html") {
txt = apio;
txt1 = "<font color='#000000' size='4px'>" + apio + "</font>";

} else if (a == "Javascript" || a == "javascript") {
txt = apio;
txt1 = "document.getElementById('pidhere').innerHTML = 'enter text here';";


}

} else if (x.indexOf("robot")!=-1 && x.indexOf("you")!=-1 || x.indexOf("robot")!=-1 || x.indexOf("u")!=-1) {

var rnum = Math.random();
var cald = Math.round(rnum);


if (cald == 1) {
document.getElementById("display").innerHTML = "No, I am not a robot! What makes you think that?";
document.getElementById("display1").innerHTML = "";

} else {
document.getElementById("display").innerHTML = "Sort of, I am a program, a non physical object, as a robot is a physical object.";


}


// x.indexOf("")!=-1



} else if (x.indexOf("you")!=-1 && x.indexOf("said")!=-1 && x.indexOf("robot")!=-1 || x.indexOf("you")!=-1 && x.indexOf("said")!=-1 && x.indexOf("robot")!=-1 && x.indexOf("not")!=-1) {

txt = "What? I don't know what you are saying! There is a loud noise where I am!";
txt1: "";

















} else if (x.indexOf("+")!=-1) {

var arr = x.split("+");
var first = arr[0];
var second = arr[1];

var nf = parseInt(first, 10);
var ns = parseInt(second, 10);

var calc = nf + ns;

txt = calc;
txt1 = "";


//     x.indexOf("")!=-1


} else if (x.indexOf("-")!=-1) {

var arr = x.split("-");
var first = arr[0];
var second = arr[1];

var nf = parseInt(first, 10);
var ns = parseInt(second, 10);

var calc = nf - ns;

txt = calc;
txt1 = "";



} else if (x.indexOf("./")!=-1) {

var arr = x.split("./");
var first = arr[0];
var second = arr[1];

var nf = parseInt(first, 10);
var ns = parseInt(second, 10);

var calc = nf / ns;

txt = calc;
txt1 = "";


} else if (x.indexOf("÷")!=-1) {

var arr = x.split("÷");
var first = arr[0];
var second = arr[1];

var nf = parseInt(first, 10);
var ns = parseInt(second, 10);

var calc = nf / ns;

txt = calc;
txt1 = "";



} else if (x.indexOf("*")!=-1) {

var arr = x.split("*");
var first = arr[0];
var second = arr[1];

var nf = parseInt(first, 10);
var ns = parseInt(second, 10);

var calc = nf * ns;

txt = calc;
txt1 = "";


} else if (x.indexOf("sqrt")!=-1) {

var arr = x.split("sqrt ");
var first = arr[1];

var nf = parseInt(first, 10);

var calc = Math.sqrt(nf);

txt = calc;
txt1 = "";


} else if (x.indexOf("^")!=-1) {

var arr = x.split("^");
var first = arr[0];
var second = arr[1];

var nf = parseInt(first, 10);
var ns = parseInt(second, 10);

var calc = Math.pow(nf, ns);

txt = calc;
txt1 = "";


} else if (x.indexOf("^+")!=-1) {

var arr = x.split("^+ ");

var second = arr[1];


var ns = parseInt(second, 10);

var calc = Math.round(ns);

txt = calc;
txt1 = "";



} else if (x.indexOf("%")!=-1) {

var arr = x.split("%");
var first = arr[0];

var nf = parseInt(first, 10);

var ns = 100;

var calc = nf / ns;


txt = calc;
txt1 = "";



} else if (x.indexOf("dc")!=-1) {

var arr = x.split("dc");
var first = arr[1];

var nf = parseInt(first, 10);

var ns = 100;

var calc = nf * ns;

txt = calc;
txt1 = "";














                
                
                
                
                
                
                
                
                
                
                
                
                
                
                
                
                
                
                
                
                
                
                
                
                
                
                
                
                
                
                
// Below are the commands
// Emotional Status Commands


} else if (x == "/display happiness levels" || x == "/display happiness" || x == "/display happy levels") {
var emote = getCookie("happiness");
txt = "My happiness levels are currently at " + emote + "%";
txt1 = "Alert: All interaction with the program affects these levels.";

} else if (x == "/display anger levels" || x == "/display anger") {
var emote = getCookie("anger");
txt = "My anger levels are currently at " + emote + "%";
txt1 = "Alert: All interaction with the program affects these levels.";

} else if (x == "/display comical levels" || x == "/display comic levels" || x == "/display funny levels" || x == "/display humor levels" || x == "/display humor") {
var emote = getCookie("humor");
txt = "My humor levels are currently at " + emote + "%";
txt1 = "Alert: All interaction with the program affects these levels.";







// SYSTEM COMMANDS

} else if (x == "/hide video") {
document.getElementById("present").innerHTML = "";

} else if (x == "/watch" || x == "/video" || x == "/youtube" || x == "/yt") {
return frame();



} else if (x == "/create command") {
$("#RUN").toggle();
$("#textarea").toggle();
setCookie("Emotion", "talk", 1);



} else if (x == "/dev") {
var q = confirm("Are you sure that you want to enter developer mode? The developer mode is recommended for experienced programmers, as it may/can modify this program's code. Do you want to continue?");
if (q == true) {
return devMode();
} else {
txt = "You have canceled dev mode.";
txt1 = "";
}
setCookie("Emotion", "talk", 1);



} else if (x == "/current source") {
var q = window.location.hostname;
txt = "The current source that you are on is: " + q;
txt1 = "";
setCookie("Emotion", "talk", 1);




} else if (x == "/ac41706004739787") {
txt = "/display sources, /fc, 417060047349549787, /override, /secret-1, /ac41706004739787";
txt1 = "STATUS: The program has successfully displayed all avalible administrator commands.";
setCookie("Emotion", "talk", 1);




} else if (x == "/ai information" || x == "/ai info") {
return showProgramInfo();
setCookie("Emotion", "talk", 1);



} else if (x == "/enable submit button") {
document.getElementById("submit").disabled = false;
txt = "Submit button has been enabled.";
txt1 = "";
setCookie("Emotion", "talk", 1);





} else if (x == "/disable submit button") {
document.getElementById("submit").disabled = true;
txt = "You have disabled the submit button! WHY!?!?!?!?!";
txt1 = "STATUS: Submit button is now disabled. To resolve this problem, click the 'clear' button. Program has responded with disappointment.";
setCookie("Emotion", "talk", 1);





} else if (x == "/secret-1") {
document.getElementById("displaysecret").innerHTML = "There are no secrets avalible to the public.";
setCookie("Emotion", "talk", 1);




} else if (x == "/display engine information" || x == "/display ei" || x == "/display engine info") {
txt = "Your computer engine: " + navigator.product;
txt1 = "Successfully retrieved computer engine information.";
setCookie("Emotion", "talk", 1);




} else if (x == "/display computer information" || x == "/display computer data" || x == "/display computer info" || x == "/display ci") {
txt = " Computer operating system: " + navigator.platform;
txt1 = "STATUS: Successfully retrieved computer OS information.";
setCookie("Emotion", "talk", 1);



//Interface/Personality Command (WIP)
} else if (x == "/display interface name" || x == "/din") {
var w = getCookie("Interface");
txt = "User Interface/Personality Name: " + w;
txt1 = "";
setCookie("Emotion", "talk", 1);




} else if (x == "/change p") {
var q = prompt("Please enter the tag number for the interface: \n 1.) Albert \n 2.) Ada", "");
if (q == "1") {
setCookie("Interface", "Albert", 360);
} else if (q == "2") {
setCookie("Interface", "Ada", 360);
} else {
setCookie("Interface", "Albert", 360);
}
txt = "";
txt1 = "STATUS: User interface/personality has been successfully changed!";
setCookie("Emotion", "talk", 1);

//End of Interface/Personality Change




} else if (x == "/add coins") {
var w = prompt("Enter number:", "");
setCookie("Coins:", w, 365);
setCookie("Emotion", "talk", 1);




} else if (x == "/coins") {
var q = getCookie("Coins:");
txt = q;
txt1 = "STATUS: The program has collected information saved from browser.";
setCookie("Emotion", "talk", 1);



} else if (x == "/contact" || x == "/support") {
window.open('mailto:doft.kekoa@yahoo.com?subject=A.I. Program Support Request&body=Enter information/problem below and we will get back to you ASAP! - D.O.F.T. Contact Support Team -');






} else if (x == "/rss" || x == "/news") {
var n = prompt("Please enter a news feed to retrieve:" , "");
setCookie("Emotion", "talk", 1);








} else if (x == "/fc") {
var c = prompt("ENTER COMMAND:");
if (c == "A113") {
txt = "Directive A-113: This directive is currently disabled.";
txt1 = "Directive A-113: Information has been classified and can be retrieved via secured D.O.F.T. Administration Database.";
}



} else if (x == "/save") {
document.cookie = "SAVED INFORMATION=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;";
var a = prompt("Enter a text/information to save.", "");
setCookie("SAVED INFORMATION", a, 365);
txt = "";
txt1 = "";

} else if (x == "/remove save") {
document.cookie = "SAVED INFORMATION=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;";
txt = "";
txt1 = "";


} else if (x == "/retreive save" || x == "/rs" || x == "/get save" || x == "/saved" || x == "/retrieve save") {
    var s = getCookie("SAVED INFORMATION");
txt = "You saved:";
txt1 = "'" + s + "'";
setCookie("Emotion", "talk", 1);






} else if (x == "/remove cookies" || x == "/remove c" || x == "/delete cookies" || x == "/delete c") {
    document.cookie = "Checked=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;";
        document.cookie = "Username=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;";
        document.cookie = "SAVED INFORMATION=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;";
        document.cookie = "Last Entered=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;";
        document.cookie = "Interface=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;";
        document.cookie = "User-Name:=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;";
        document.cookie = "Bday:=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;";
        txt = "All cookies from this application has been successfully removed!";
        txt1 = "STATUS: No errors were detected during the removal of stored cookies!";
        setCookie("Emotion", "talk", 1);
        




//Background Commands
} else if (x == "/change bgc") {
var input = prompt("Enter a background color. (Example: Red, Yellow, Green, ff0000, 00ffff, etc.)", "");
document.getElementById("body").style = "background-color:" + input + ";";
txt = "Background color changed to:";
txt1 = input;
setCookie("Emotion", "talk", 1);


} else if (x == "/change bgi") {
var input = prompt("Enter the URL of the image in the input box below. \n Examples/Suggestions: \n 1.) http://ehdwall.com/wp-content/uploads/2015/12/4K-wallpaper.jpg \n 2.) http://hdwallpaperbackgrounds.net/wp-content/uploads/2016/09/4k-Wallpapers-6.jpg \n 3.) http://hdwallpaperbackgrounds.net/wp-content/uploads/2016/07/HD-Background-20.png \n 4.) https://4.bp.blogspot.com/-CRGjMY5XnhA/VL0yGvFql8I/AAAAAAABbRw/dUExHR-4Lqw/s0/Abstract%2BSharp%2BShapes_HD.jpg \n 5.) http://cdn.wallpapersafari.com/56/64/pErmaq.jpg \n 6.) https://img.fireden.net/tg/image/1446/52/1446527429470.gif \n 7.) https://66.media.tumblr.com/b264e0a00e6e960e9b181a1ec8a800ba/tumblr_ocebbpccwg1s7dn54o1_1280.gif \n 8.) https://secure.static.tumblr.com/800aed2139d5107971c76372654045d5/of3d3yx/Ej6nehj3h/tumblr_static_tumblr_static_7vzpp5dyf5s0kcwssc0044woc_1280.gif \n 9.) https://milnersblog.files.wordpress.com/2015/12/darkness-awakens-art-of-star-wars-the-force-awakens-animated-front-cover.gif?w=474", "");
document.getElementById("body").style = "background-image: url('" + input + "'); background-size: 100% 100%;";
txt = "Background image changed to:";
txt1 = input;
setCookie("Emotion", "talk", 1);


} else if (x == "/reset bg" || x == "/bg reset") {
document.getElementById("body").style = "background-color: white;";
txt = "Background has been reset to default.";
txt1 = "";
setCookie("Emotion", "talk", 1);




//Other Commands

} else if (x == "/reminder" || x == "/r") {

var a = prompt(" (THIS IS A REMINDER!) Set number to count down from (In seconds without multiplying the number by 1000.)!", "");
if (a != null && a != "") {
    return setTimeout(checkInput, a * 1000)
    } else if (x == null) {
    txt = "Countdown has been canceled!";
    txt1 = "";
}
setCookie("Emotion", "talk", 1);




            } else if (x == "/change title color") {
            var z = prompt("Example answers: Red, Blue, Black, orange, ff0000, ff0099, ff9009, ff0909, 00ff99 etc.", "");
            if (z != "") {
            document.getElementById("title").style = "color: " + z + ";";
            }
            setCookie("Emotion", "talk", 1);
            
            
            
            
            } else if (x == "/change text1 color") {
            var z = prompt("Example answers: Red, Blue, Black, orange, ff0000, ff0099, ff9009, ff0909, etc.", "");
            if (z != "") {
            document.getElementById("display").style = "color: " + z + ";";
            }
            setCookie("Emotion", "talk", 1);
            
            
            
            
            } else if (x == "/change text2 color") {
            var z = prompt("Example answers: Red, Blue, Black, orange, ff0000, ff0099, ff9009, ff0909, etc.", "");
            if (z != "") {
            document.getElementById("display1").style = "color: " + z + ";";
            }
            setCookie("Emotion", "talk", 1);
            



            } else if (x == "/reset") {
                txt = "Response Displays Here";
                txt1 = "";
                document.getElementById("displaysecret").innerHTML = "";
                document.getElementById("alert").style = "background-color: #ffdddd;border-left: 6px solid #f44336;margin-bottom: 15px;padding: 4px 12px;opacity: 0.0;";
                document.getElementById("present").innerHTML = "";
                setCookie("Emotion", "talk", 1);
                
                
                
            } else if (x == "/set") {
            txt = "";
            txt1 = "TEST: Successful!";
            setCookie("Emotion", "talk", 1);
            
            
            
            
            } else if (x == "/status") {
            txt = "Display 1 is functional";
            txt1 = "Display 2 is functional";
            alert("All displays seem functional! System status check has been successful!");
            setCookie("Emotion", "talk", 1);
            
                
                
                
                
                } else if (x == "/override") {

                
                var cr = prompt("Please enter the login override cookie tag:", "");

var ac = getCookie(cr);
document.getElementById("display").innerHTML = "Pass";



if (ac == "Override Code: 4170600473" || ac == "Admin Override: 4170600473" || ac == "Admin Override Code: 4170600473") {

document.getElementById("display").innerHTML = "Override Code Accepted!";

} else {

document.getElementById("display").innerHTML = "Override Code Denied!";
}
setCookie("Emotion", "talk", 1);

                
                
                
                
                
                
                } else if (x == "417060047349549787") {
                txt = "Error: You are accessing an unauthorized section of the program! Unauthorized users will be terminated and banned by usernames, alias, ip-address, cached data, and more! Masked ip-addresses will be detected!";
                txt1 = "";
                setCookie("Emotion", "talk", 1);
                


            


        } else if (x == "/help" || x == "help") {
            txt = " You can type: Hello, /login, What is your name?, What are you?, I am doing good, I'm not feeling good, /reset, /home, /version, How old are you?, You're cool, /display date, /time, /updates, Where do you live?, /weather, /help, /lec, What do you like to eat?, Who is the president?, What do you like to do?, Thanks, Bye, I'm tired, /login, /logout, /reload, /status, Do you have friends?, Who are your friends?, Do you have a family?, What are your goals?, /reminder, /r, nothing, Do you wana build a snowman?, Do you play games?, Do you want to play a game?, Do you listen to music?, Shame on you, 'no,shame on you', You're mean, What sport do you play, hahaha, Do you have a computer?, Do you sleep?, Are you pregnant?, Where does your creator live?, /setcommand, /change title color, /change text1 color, /change text2 color, /change bgc, /change bgi, /reset bg, /remove cookies, /save, /saved, /remove save, My name is, /contact, /ai info, /dsiable submit button, /enable submit button, /display interface name, /display computer information, /add coins, /coins, /display engine information, /set bday, /display bday, Where am I?, I am a cookie, /current source, /dev, /watch, /hide video, looking good, /display humor levels, /display happiness levels, /display anger levels, Are you a robot?, /say. More comming soon!";
            txt1 = "";
            setCookie("Emotion", "talk", 1);
            
            
        } else if (x == "/version" || x == "/v") {
        var Version = getCookie("Version:");
            txt = "Version: " + Version;
            txt1 = "";
            setCookie("Emotion", "talk", 1);
            
            
            
            
            } else if (x == "/reload") {
                location.reload();
                
            
            
            
            } else if (x == "/updates" || x == "/patch" || x == "what was updated?" || x == "WHAT WAS UPDATED?" || x == "what was updated" || x == "WHAT WAS UPDATED" || x == "What was updated?" || x == "What was updated" || x == "/check update") {
            var Version = getCookie("Version:");
            txt = "Version: " + Version + ": Improved functionality! Enjoy version " + Version + "! :)";
            txt1 = "In this update, we've added/implamented the visual interface from the 'Scratch' edition/version of the A.I. We've also fixed a bug where the hint would not hide when disabled. We've also added a voice narrator. We are currently working on more and aditional features. Lastly, we've implemented APIXU's weather services to the program. The '/weather' should now work by opening a new window displaying all of the information that you'll need! \n - ADMINISTRATOR: DANIEL K. V. -";
            setCookie("Emotion", "talk", 1);
            
            
           
    
            
            
        } else if (x == "/home" || x == "/h") {
            var str = "Click Here";
            var result = str.link("http://doft.yolasite.com");
            txt = result;
            txt1 = "";
            setCookie("Emotion", "talk", 1);
            
            
            
           } else if (x =="/list error codes" || x == "/lec") {
            txt = "Error Code List: 404 = Server Not Found. 001 = Input invalid. 002 = Missing content. 003 = Unknown error/can't identify the problem. 004 = Connection to the server has been terminated.";
            txt1 = "";
            setCookie("Emotion", "talk", 1);
            
            
            
            
            
            } else if (x == "/login") {
            
                var user=getCookie("Username");
    if (user != "") {  
    if (user != "Warmaster_Prime" || user != "Daniel Kekoa Valente") {
        txt = "Username: " + user;
        
        
        } else if (user == "Warmaster_Prime" || user == "Daniel" || user == "daniel" || user == "Kekoa" || user == "kekoa" || user == "Valente" || user == "valente" || user == "warmaster_prime" || user == "Warmaster" || user == "warmaster" || user == "Warmaster Prime" || user == "warmaster prime") {
        txt = "Welcome back creator! How may I help you today?";
        txt1 = "";
      }  
    } else {
       user = prompt("Please enter your name:","");
       if (user != "" && user != null) {
           setCookie("Username", user, 30);
           txt = "Username: " + user;
           txt1 = "";
       }
    }
    document.getElementById("display").innerHTML = txt;
    
    
    
    
    } else if (x == "/logout" || x == "/signout" || x == "/logoff") {
    document.cookie = "Username=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;";
    txt = "You have logged out.";
    txt1 = "";
    setCookie("Emotion", "talk", 1);
    
    
    
    } else if (x == "test") {
    txt = "Successful test!";
    setCookie("Emotion", "smile", 1);
    
        
        


        } else {
        
        document.getElementById("alert").style = "opacity: 1.0;padding: 20px;background-color: #f44336;color: white;";


        
            
        txt = "ERROR: Code: 001";
        txt1 = "";
        setCookie("Emotion", "sad", 1);
        
        }
        
        
        document.getElementById("display").innerHTML = txt;
        
        document.getElementById("display1").innerHTML = txt1;
        

        return emotion(), speak(), false;
        }

        }
        
        
        
        
        function emotion() {
        
        var emo = getCookie("Emotion");
        if (emo == "smile") {
        return disableInt(), smile();
        
        } else if (emo == "sad") {
        return disableInt(), sad();
        
        } else if (emo == "angry") {
        return disableInt(), angry();
        
        } else if (emo == "neu") {
        return disableInt(), neu();
        
        } else if (emo == "talk") {
        return disableInt(), talk();
        
        
        }
        
        }
        
        
        
        
        function disableInt() {
        var u = getCookie("INT:");
        if (u == "0") {
        setCookie("InterfaceV", "0", 1);
        setCookie("INT:", "1", 1);
        return setTimeout(disableInt, 3000);
        } else {
        setCookie("InterfaceV", "1", 1);
        setCookie("INT:", "0", 1);
        return blinkInt();
        }
        }
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        
        function showPosition(position) {
        
        
        
        
    document.getElementById("display").innerHTML = "Latitude: " + position.coords.latitude + 
    "<br>Longitude: " + position.coords.longitude;
    document.getElementById("display1").innerHTML = "";
    document.getElementById("display2").innerHTML = "";
}
        
        
        
        
        
        
        
        
        
        
        function resetDisplay() {
        txt = "Response Displays Here";
        txt1 = "";
        inp = "";
        present = "";
    
    document.getElementById("submit").disabled = false;
    document.getElementById("displaysecret").innerHTML = "";
  

        document.getElementById("present").innerHTML = present;
        document.getElementById("display").innerHTML = txt;
        document.getElementById("display1").innerHTML = txt1;
        document.getElementById("input").value = inp;
        
        return Hide(), speak();
        }
        
        
        
        function checkUrl() {
var x = window.location.hostname;
var checked = getCookie("Checked");
    if (checked == "" || checked == null) {
    
setCookie("Checked", "TRUE", 30);

if (x != "www.w3schools.com" && x != "http://doft.yolasite.com" && x != "http://gamekick.yolasite.com" && x != "http://gamekick2go.yolasite.com" && x != "https://google.com" && x != "https://codepen.io" && x != "https://codepen.io") {
alert("This webpage is currently not authorized! Please report this to the D.O.F.T. Administration Imediately! URL: " + x);
window.location.replace("http://doft.yolasite.com/contact-us.php");
return setTimeout(checkUrl, 100);
setCookie("Checked", "True", 30);

} else {

alert("This site is authorized! URL: " + x);
}
   


       
    } else {
    if (checked != "TRUE") {
    var q = prompt("Login Override Code:", "");
    if (q != "administrator41706004739787") {
    window.location.replace("http://doft.yolasite.com/contact-us.php");
    }
    }
    }


}
        
        
        function disableClick(){
        document.onclick=function(event){
          if (event.button == 2) {
            alert('ALERT');
            return false;
          }
        }
      }
        
        
        
        

        function noRedirect() {
        return false;
        
        
        }
        
        
        
        document.getElementById("input")
    .addEventListener("keyup", function(event) {
    event.preventDefault();
    if (event.keyCode == 13) {    
    
        document.getElementById("submit").click();


    }
    
});



function secretdiscovered() {
document.getElementById("display1").innerHTML = "Congratulations, you have discovered 1/2 secrets! Your reward has been given to you via cookie. This cookie can be used when we have updated our website to accept this cookie and present to you something great!";
setCookie("path", "access=true", 1);


}



function showProgramInfo() {
    var w = window.open();
    w.document.open();
    w.document.write("<center><h1>A.I. Information</h1>");
    w.document.write("<p><font color='black' size='4px'>The A.I. program was created by D.O.F.T. and is currently copyrighted by D.O.F.T. upon upload. To view the date of creation, ask the program 'How old are you?'.</font></p>");
    w.document.write("<p><font color='black' size='4px'>This program is unable to save private and/or personal data/information that you enter to a database. All data is saved via cookies on your browser that can only be accessed by the host website(s). We do however plan to added a system where the program will connect and save data to a server, but don't be alarmed, we plan to save the unavalible responses (example: If I entered something and the program would respond with an error, that would be an 'unavalible response'.</font></p></center>");
    w.document.close();
}















function speak() {

var s = document.getElementById("display").innerHTML;
var k = getCookie("Speach");
if (k == "TRUE") {
return responsiveVoice.speak(s);

}
}




function speachSettings() {
var c = getCookie("Speach");
if (c == "TRUE") {
setCookie("Speach", "FALSE", 1);
} else {
setCookie("Speach", "TRUE", 1);
}
}function neu() {
var f = document.getElementById("interface");
f.src = "http://doft.yolasite.com/resources/A.I.-Nutural.png";
}




function angry() {
var f = document.getElementById("interface");
f.src = "http://doft.yolasite.com/resources/A.I.-Angry.png";
return anger();
}




function blink() {
var f = document.getElementById("interface");
f.src = "http://doft.yolasite.com/resources/A.I.-%20Blink.png";
}



function sad() {
var f = document.getElementById("interface");
f.src = "http://doft.yolasite.com/resources/A.I.-Sad.png";
}




function talk() {
var f = document.getElementById("interface");
f.src = "http://doft.yolasite.com/resources/A.I.-%20Talk.png";
}





function smile() {
var f = document.getElementById("interface");
f.src = "http://doft.yolasite.com/resources/A.I.-%20Smile.png";
return happy();
}




function blinkInt() {
var inter = getCookie("InterfaceV");


if (inter == "1") {
var r = Math.floor(Math.random() * 5) + 1;
var a = 1000;
var f = document.getElementById("interface");
f.src = "http://doft.yolasite.com/resources/A.I.-%20Smile.png";


return setTimeout(blinkIn, a * r);

} else if (inter == "0") {

var f = document.getElementById("interface");

f.src = "http://doft.yolasite.com/resources/A.I.-%20Smile.png";

}
}



function blinkIn() {
var a = 1;
var f = document.getElementById("interface");
f.src = "http://doft.yolasite.com/resources/A.I.-%20Blink.png";
return setTimeout(blinkInt, a * 100);
}









function interfaceBlink() {
var blink = getCookie("InterfaceV");
if (blink == "1") {
setCookie("InterfaceV", "0", 1);
} else {
setCookie("InterfaceV", "1", 1);
return blinkInt();
}
}














function frame() {
var link = prompt("Enter link (Enter the embbed link of the video!)(Ex: 'https://www.youtube.com/embed/Kae-JjbLsgA?ecver=2'): ", "");

        document.getElementById("present").innerHTML = "<div style='position:relative;height:0;padding-bottom:56.25%'><iframe src='" + link + "' width='640' height='825' frameborder='0' style='position:absolute;width:100%;height:100%;left:0;' id='frame1' allowfullscreen></iframe></div>";

    }


















function apex1242advancedfinderapplicationextensionprogram22001432() {
var location = prompt("Enter the zip code or city name of the location that you want to get weather information on: (This feature is powered by APIXU.):");
window.open("https://api.apixu.com/v1/current.json?key=8b6071fe87e54cd9bab00256172404&q=" + location, "Information", "width=500px,height=300");
}





//Emotion/Personality Code





function anger() {
var anger = getCookie("anger");

if (anger != "" || anger != null || anger != "NaN") {
var ang = parseInt(anger, 10);

if (ang <= 89) {// 1

var calc = ang + 1;
setCookie("anger", calc, 1);

} // 1
} else {
setCookie("anger", 1, 1);
}
}


function happy() {
var emo = getCookie("happiness");

if (emo != "" || emo != null || emo != "NaN") {
var ang = parseInt(emo, 10);

if (ang <= 89) {// 1

var calc = ang + 1;
setCookie("happiness", calc, 1);

} // 1
} else {
setCookie("happiness", 1, 1);
}
}



function humor() {
var emo = getCookie("humor");

if (emo != "" || emo != null || emo != "NaN") {
var ang = parseInt(emo, 10);

if (ang <= 89) {// 1

var calc = ang + 1;
setCookie("humor", calc, 1);

} // 1
} else {
setCookie("humor", 1, 1);
}
}function run() {
var b = document.getElementById("textarea").value;
var a = b.toLowerCase();
if (a.indexOf("alert")!=-1) {
alert("Passed");




} else {
document.getElementById("display").innerHTML = b;
}

}










function update() {
var q = getCookie("Speach");
if (q != "TRUE" || q == null) {
document.getElementById("speachbtn").setAttribute('type', 'bt1');
} else {
document.getElementById("speachbtn").setAttribute('type', 'bt4');
}
}
function Show() {
document.getElementById("alert").style = "background-color: #ffdddd;border-left: 6px solid #f44336;margin-bottom: 15px;padding: 4px 12px;opacity: 1.0;";
}

function Hide() {
document.getElementById("alert").style = "background-color: #ffdddd;border-left: 6px solid #f44336;margin-bottom: 15px;padding: 4px 12px;opacity: 0.0;";
  }
$(document).ready(function(){
    $("#button-more-options").click(function(){
        $(".bt1").toggle(0);
    });
});
function initial() {

setCookie("happiness", 90, 1);
setCookie("anger", 0, 1);
setCookie("humor", 20, 1);

$(".bt1").hide();
$(".btn02").hide();
$("#removecookies").hide();
$("#hintoption").hide();
$("#devmode").hide();
$("#devmodebtn").hide();
$("#RUN").hide();
$("#textarea").hide();
$("#speachbtn").hide();
$("#interfaceV").show();
$("#interfacebtn").hide();



document.getElementById("hint").style.display = 'none';




document.getElementById("present").innerHTML = "";
document.getElementById('frame1').style.display = 'none';
document.getElementById("frame1").src = "";

setCookie("INT:", "0", 1);





setCookie("InterfaceV", "1", 1);

var q = getCookie("Speach");
if (q != "TRUE" || q == null) {
setCookie("Speach", "TRUE", 1);




return update(), updateHint();
}





document.getElementById('hint').style.display = 'none';

}
function settings() {
$("#removecookies").toggle();
$(".btn02").toggle();
$(".bt1").toggle(0);
$("#btn010").toggle(0);
$("#hintoption").toggle(0);
$("#speachbtn").toggle(0);
$("#speachbtn").toggle(0);
$("#interfacebtn").toggle(0);
return update();
}
function removeCookies() {
        document.cookie = "Checked=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;";
        document.cookie = "Username=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;";
        document.cookie = "SAVED INFORMATION=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;";
        document.cookie = "Last Entered=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;";
        document.cookie = "Interface=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;";
        document.cookie = "User-Name:=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;";
        txt = "All cookies from this application has been successfully removed!";
        txt1 = "STATUS: No errors were detected during the removal of stored cookies!";
        document.getElementById("display").innerHTML = txt;
        document.getElementById("display1").innerHTML = txt1;
        document.cookie = "Bday:=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;";
        
        
        
        return update();
        }
        
        
        function interfaceSettings() {
        $("#interfaceV").toggle(0);
        }

        
        
        function devMode() {
var x = document.getElementById('devmode');
$("#devmode").toggle();
$("#devmodebtn").toggle();
}

function inject() {
var f = confirm("Warning: If you inject your code (even if it is empty), your code will replace, override, and overwrite the .A.I. program's code. \n Are you sure that you want to continue?", "CONFIRM", "CANCEL");
var c = document.getElementById("devmode").value;
if (c == "/reset") {
document.getElementById("devmode").value = "";
} else if (c == "/help") {
alert("You can find the acceptible/operable codes at: \n 1.) https://w3schools.com \n The above sources were used as the resources to develop this program.");
} else {
document.getElementById("devoverridesection").innerHTML = c;
}


}

function showHints() {
    var j = document.getElementById('hint');
    if (j.style.display === 'none') {
        j.style.display = 'block';
        document.getElementById("HintBtn").checked = false;
    } else {
        j.style.display = 'none';
        document.getElementById("HintBtn").checked = true;
    }
}



function deleteCookie() {

document.cookie = "Username=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=/;";

}

function setCookie(cname,cvalue,exdays) {
    var d = new Date();
    d.setTime(d.getTime() + (exdays*24*60*60*1000));
    var expires = "expires=" + d.toGMTString();
    document.cookie = cname + "=" + cvalue + ";" + expires + ";path=/";
}

function getCookie(cname) {
    var name = cname + "=";
    var decodedCookie = decodeURIComponent(document.cookie);
    var ca = decodedCookie.split(';');
    for(var i = 0; i < ca.length; i++) {
        var c = ca[i];
        while (c.charAt(0) == ' ') {
            c = c.substring(1);
        }
        if (c.indexOf(name) == 0) {
            return c.substring(name.length, c.length);
        }
    }
    return "";
}

function checkCookie() {

    var user=getCookie("Username");
    if (user != "") {
        alert("Welcome again " + user);
        txt = "Username: " + user;
    } else {
       user = prompt("Please enter your name:","");
       if (user != "" && user != null) {
           setCookie("Username", user, 30);
       }
    }
    document.getElementById("display").innerHTML = txt;
}

            
          
!
999px
Loading ..................

Console