Difference between revisions of "Team:DLUT China B"

(剥离导航栏、加入对话气泡,改善至顶按钮,使用Font Awesome.)
(增加气泡内容,删除项目描述。)
Line 3: Line 3:
 
     <meta charset="UTF-8">
 
     <meta charset="UTF-8">
 
     <title>2018 iGEM_DLUT_B</title>
 
     <title>2018 iGEM_DLUT_B</title>
 
 
     <link rel="stylesheet" href="https://2018.igem.org/wiki/index.php?title=Template:DLUT_China_B/css/style.css&action=raw&ctype=text/css">
 
     <link rel="stylesheet" href="https://2018.igem.org/wiki/index.php?title=Template:DLUT_China_B/css/style.css&action=raw&ctype=text/css">
 
     <link rel="stylesheet" href="https://2018.igem.org/wiki/index.php?title=Template:DLUT_China_B/css/nav.css&action=raw&ctype=text/css">
 
     <link rel="stylesheet" href="https://2018.igem.org/wiki/index.php?title=Template:DLUT_China_B/css/nav.css&action=raw&ctype=text/css">
 
     <link rel="stylesheet" href="https://2018.igem.org/wiki/index.php?title=Template:DLUT_China_B/css/bubbles.css&action=raw&ctype=text/css">
 
     <link rel="stylesheet" href="https://2018.igem.org/wiki/index.php?title=Template:DLUT_China_B/css/bubbles.css&action=raw&ctype=text/css">
    <link rel="stylesheet" href="https://2018.igem.org/wiki/index.php?title=Template:DLUT_China_B/css/slideshow.css&action=raw&ctype=text/css">
 
 
     <link rel="stylesheet" href="https://2018.igem.org/wiki/index.php?title=Template:DLUT_China_B/css/fontawesome.css&action=raw&ctype=text/css">
 
     <link rel="stylesheet" href="https://2018.igem.org/wiki/index.php?title=Template:DLUT_China_B/css/fontawesome.css&action=raw&ctype=text/css">
  
    <script src="https://2018.igem.org/wiki/index.php?title=Template:DLUT_China_B/js/slideshow.js&action=raw&ctype=text/javascript"></script>
 
 
     <script src="https://2018.igem.org/wiki/index.php?title=Template:DLUT_China_B/js/bubbles.js&action=raw&ctype=text/javascript"></script>
 
     <script src="https://2018.igem.org/wiki/index.php?title=Template:DLUT_China_B/js/bubbles.js&action=raw&ctype=text/javascript"></script>
 
     <script src="https://2018.igem.org/wiki/index.php?title=Template:DLUT_China_B/js/typed.js&action=raw&ctype=text/javascript"></script>
 
     <script src="https://2018.igem.org/wiki/index.php?title=Template:DLUT_China_B/js/typed.js&action=raw&ctype=text/javascript"></script>
Line 29: Line 26:
 
     <div>
 
     <div>
 
         <h2 class="title" id="meetUs">Chat Bubbles</h2>
 
         <h2 class="title" id="meetUs">Chat Bubbles</h2>
         <div id="chatBubbles">
+
         <div id="chatBubbles"></div>
            <div id="chat"></div>
+
        </div>
+
    </div>
+
 
+
    <div id="fixed1"></div>
+
 
+
    <div>
+
        <h2 class="title">We are concerned about the world's largest potential group of chronic kidney disease</h2>
+
        <div class="mainText">
+
            <p>According to statistics of the World Health Organization, about 1.2 million people died of kidney disease in
+
                2015
+
                worldwide, which is 32% higher than that in 2005. Among them, diabetes and hypertensive patients are the
+
                largest
+
                potential victims of chronic kidney disease. Of the new ESRD patients in the United States in the past 10
+
                years, 58%
+
                are from diabetes and hypertension patients. If we do not intervene in patients with early-stage
+
                hypertension or
+
                diabetes, it will cause a dramatic deterioration of renal function with a mortality rate up to 90%. However,
+
                if the
+
                patient's kidney status can be monitored at any time, with early detection and timely medical treatment, up
+
                to 70%
+
                of the disease may be reversed. Therefore, it is of great social significance to monitor the renal status of
+
                patients with early-stage hypertension and diabetes.</p>
+
            <p>At this stage, the excretion rate of urinary microalbumin (mALB) is mainly used to diagnose diabetic
+
                nephropathy and
+
                hypertensive nephropathy. Although the detection method is relatively perfect, it has the following
+
                disadvantages:</p>
+
            <ol>
+
                <li>The accuracy and specificity of mALB in diagnosing DN are not high, and urinary tract infection and
+
                    other
+
                    factors can increase the excretion rate of urinary albumin, resulting in high misdiagnosis and missed
+
                    diagnosis.
+
                </li>
+
                <li>When the mALB is abnormal, DN has progressed to Phase III. It is not sufficient to use this indicator to
+
                    monitor
+
                    the occurrence and development of DN.
+
                </li>
+
                <li>Renal impairment in hypertension occurs first in the renal tubules, and then in the glomerulus. Urine
+
                    microalbumin mainly reflects glomerular filtration impairment and is not sensitive to renal tubular
+
                    injury.
+
                </li>
+
            </ol>
+
        </div>
+
    </div>
+
 
+
    <div id="fixed2"></div>
+
 
+
    <div>
+
        <h2 class="title">We use β<sub>2</sub>M for high sensitivity monitoring of the kidneys</h2>
+
        <div class="mainText">
+
            <p>In order to solve the problems in the above detection methods, we conducted a multi-study investigation to
+
                find a new
+
                type of indicator β<sub>2</sub>M which has higher sensitivity to early kidney damage. β<sub>2</sub>M is a
+
                small
+
                molecule globulin produced by lymphocytes, platelets, and polymorphonuclear leukocytes. It can be freely
+
                filtered
+
                from the glomerulus and is absorbed by the proximal tubular in 99.9% . Under normal condition, the excretion
+
                of
+
                β<sub>2</sub>M in urine(U-β<sub>2</sub>M) is very small which is no more than 0.25mg/L. U-β<sub>2</sub>M
+
                excretion
+
                is increased in early urine of diabetic patients with stage I hypertension and diabetes. With the deepening
+
                of the
+
                renal damage, β<sub>2</sub>M accumulates in patients and continue increase. Therefore, the detection of
+
                U-β<sub>2</sub>M in patients with a risk of kidney disease, such as diabetes and hypertension, can achieve
+
                real-time
+
                monitoring of the condition of the kidneys, as well as the discovery of early nephropathy to prevent
+
                irreversible
+
                damage to the kidneys.</p>
+
        </div>
+
    </div>
+
 
+
    <div id="fixed3"></div>
+
 
+
    <div>
+
        <h2 class="title">What kind of a work we want to complete?</h2>
+
        <div class="mainText">
+
            <p>Patients with diabetes for about 5 years or those with Hypertension for 5 to 10 years are at high risk of
+
                chronic
+
                kidney disease and are at risk of renal impairment at any time. Since diabetics and hypertensives are
+
                usually
+
                treated at home in early stages , routine blood and urine tests are rarely performed and the U-β<sub>2</sub>M
+
                indicator is unknown. This has led many patients to miss the opportunity for early intervention and control.
+
                Our
+
                work enables these patients to easily monitor their own renal function status at home through the
+
                U-β<sub>2</sub>M
+
                test. In addition, we can use mobile devices to conduct a brief analysis of the patient's renal function and
+
                give
+
                medical advice.</p>
+
        </div>
+
    </div>
+
 
+
    <div id="fixed4"></div>
+
 
+
    <div>
+
        <h2 class="title">For U-β<sub>2</sub>M we developed a suitable detection method</h2>
+
        <div class="mainText">
+
            <p>In this project, we combined strongly specific nanobodies with high-sensitivity liquid crystal detection to
+
                develop a
+
                visual detection method, thereby enabling accurate quantification or semiquantification of microgram-levelU-
+
                β<sub>2</sub>M. Firstly, we use nanobody to specifically bind to β<sub>2</sub>M. Compared with conventional
+
                antibodies, nanobody is a smaller molecular,less susceptible to denaturation, but still has intact antigen
+
                binding
+
                properties. In addition, nanobodies can be expressed by <i>E. coli</i> , which make the cost of production
+
                is
+
                greatly reduced. What's more, we use the birefringence of liquid crystal molecules. The liquid crystal
+
                application
+
                that we are familiar with is liquid crystal display, but this is to change the arrangement of the liquid
+
                crystal
+
                molecules through the electric current, thus show different light signals. Here, we modify the liquid
+
                crystal cell
+
                substrate with antibodies. After combining antigens, the micro-environment of the liquid crystal cell
+
                platform
+
                changes, resulting in a significant difference in color or brightness , the visualization of detection is
+
                achieved.
+
            </p>
+
            <p>This project will propose a low-cost, portable and visible method for monitoring early renal injury and
+
                provide
+
                medical advice for patients with hypertension and diabetes.
+
            </p>
+
        </div>
+
 
     </div>
 
     </div>
  
Line 190: Line 67:
 
         /*开始*/
 
         /*开始*/
 
         $('#start').click(function () {
 
         $('#start').click(function () {
             $('html,body').animate({scrollTop: $('#meetUs').offset().top-60}, 500);
+
             $('html,body').animate({scrollTop: $('#meetUs').offset().top - 60}, 500);
 
         });
 
         });
  
 
         /*对话气泡*/
 
         /*对话气泡*/
         // conversation object stored in separate variable:
+
         let conversation = {
        let convo = {
+
            // "ice" (as in "breaking the ice") is a required conversation object
+
            // that maps the first thing the bot will say to the user
+
 
             ice: {
 
             ice: {
                 // "says" defines an array of sequential bubbles
+
                 says: ["Hey, friend! Long time no see! You can click bubbles to chat with me."],
                 // that the bot will produce
+
                 reply: [
 +
                    {
 +
                        question: "mmm O (* ̄▽ ̄*) O. Long time no see.",
 +
                        answer: "ice1"
 +
                    }
 +
                ]
 +
            },
 +
            "ice1": {
 
                 says: [
 
                 says: [
                     "Hello!",
+
                     "We have a lot of significant updates.(Of course we cannot make it as cool as  the Apple launch update)",
                     "Let's explore advanced chat flows with <em>chat-bubble</em>.",
+
                     "As an old friend, let me open the VIP channel for you.",
                     "In this example you'll see how this simple JavaScript framework can help you create advanced conversational sequences with GIFs!",
+
                     'Click "Skip", then you will skip the project Introduction section.',
                    "To begin, choose how you'd like this (example) conversation to proceed...",
+
                     'Click "Listen", then you will acknowledge more details about our story.'
                     "...We can either talk about <strong>bananas and ice cream</strong> or <strong>other special things</strong>. Which one shall it be?"
+
 
                 ],
 
                 ],
                // "reply" is an array of possible options the user can pick from
 
                // as a reply
 
 
                 reply: [
 
                 reply: [
 
                     {
 
                     {
                         question: "Bananas and ice cream!", // label for the reply option
+
                         question: "Skip",
                         answer: "chapter-one" // key for the next conversation object
+
                         answer: "dest"
 
                     },
 
                     },
 
                     {
 
                     {
                         question: "No, thanks.", // label for the reply option
+
                         question: "Listen",
                         answer: "end" // key for an "escape valve"; we refer to this whenever a reply signals the end of the convo
+
                        answer: "listen1"
 +
                    }
 +
                ]
 +
            },
 +
            "dest": {
 +
                says: ["Please select the destination you want to go to."],
 +
                reply: [
 +
                    {
 +
                        question: "No, thank you.",
 +
                         answer: "end"
 +
                    },
 +
                    {
 +
                        question: "Project Introduction",
 +
                        answer: "projectIntroduction"
 +
                    },
 +
                    {
 +
                        question: "Parts",
 +
                        answer: "parts"
 +
                    },
 +
                    {
 +
                        question: "Model",
 +
                        answer: "model"
 +
                    },
 +
                    {
 +
                        question: "Awards",
 +
                        answer: "awards"
 +
                    },
 +
                    {
 +
                        question: "Human Practice",
 +
                        answer: "humanPractice"
 
                     },
 
                     },
 
                     {
 
                     {
                         question: "What “other special things?”", // label for the reply option
+
                         question: "Teamwork and Cooperation",
                         answer: "sidetrack" // key for a "side note" we can reference from multiple points in the chat
+
                         answer: "teamworkAndCooperation"
 
                     }
 
                     }
 
                 ]
 
                 ]
             }, // end required "ice" conversation object
+
             },
 
+
             "listen1":{
             // side note
+
                 says:[
            sidetrack: {
+
                     "Here is iGEM_DLUT_China_B.",
                 says: [
+
                     "I'll introduce our project for you.",
                     "Things which go way beyond a single topic of conversation!",
+
                    "We know that there are many diseases in the world that can be predicted and cured,",
                     "As in this case we are branching out from the main topic of “bananas and ice cream” into another series of prompts and possible replies.",
+
                    "and to achieve that, the first step is to understand the group of people which this disease prefers.",
                     "This could be a useful way provide more instructions or context."
+
                    "For example, diabetic and hypertensive patients may suffer from chronic kidney disease.",
 +
                     "Older people over the age of 60 may be suffering from Alzheimer's disease."
 
                 ],
 
                 ],
                 reply: [
+
                 reply:[
 
                     {
 
                     {
                         question: "Tell me more.",
+
                         question:"And then?",
                         answer: "intro-context" // key for another side note; in this instance, we're using it to contextualize the Q&A we're heading into
+
                         answer:"listen2"
                     },
+
                     }
 +
                ]
 +
            },
 +
            "listen2":{
 +
                says:["The second step is to have regular medical examination to intervene disease early to prevent its progression."],
 +
                reply:[
 
                     {
 
                     {
                         question: "Got it: on with the chat!",
+
                         question:"Yes, it makes sense, but how can that be achieved?",
                         answer: "chapter-one" // no further sidetrack required, returning to the main conversation tree
+
                         answer:"listen3"
 
                     }
 
                     }
 
                 ]
 
                 ]
 
             },
 
             },
 
+
             "listen3":{
            // another side note
+
                 says:[
             "intro-context": {
+
                     "You may not believe that",
                 says: [
+
                     "we can know our physical condition through the urine.",
                     "This is an example of further instructions...",
+
                     "Urine is regard as \"gold mine\" for the identification of disease markers."
                     "...Context and side-notes...",
+
                     "...With a way to return back to the main trunk of the conversation, like so:"
+
 
                 ],
 
                 ],
                 reply: [
+
                 reply:[
 
                     {
 
                     {
                         question: "To the main topic, bananas and ice cream!",
+
                         question:"Is that true?",
                         answer: "chapter-one"
+
                         answer:"listen4"
 
                     }
 
                     }
 
                 ]
 
                 ]
 
             },
 
             },
 
+
            "listen4":{
             // main conversation trunk
+
                says:[
             "chapter-one": {
+
                    "Absolutely, it's like a mirror that reflects one's health.",
 +
                    "In the early stages of the disease, we can use the protein markers in the urine to screen the disease."
 +
                ],
 +
                reply:[
 +
                    {
 +
                        question:"But how do you test it?",
 +
                        answer:"listen5"
 +
                    }
 +
                ]
 +
             },
 +
             "listen5":{
 +
                says:["To be honest, we use a very tiny nano-antibody, and liquid crystal sensor to show reaction results for us."],
 +
                reply:[
 +
                    {
 +
                        question:"Liquid crystal? How?",
 +
                        answer:"listen6"
 +
                    }
 +
                ]
 +
            },
 +
            "listen6":{
 +
                says:[
 +
                    "In our daily life, we usually see the LCD screen is black. However, it becomes colorful as it works.",
 +
                    "Our products are similar in principle.",
 +
                    "The combination of the nano-antibody and the protein in the urine resulted in a slight change in the liquid crystalline substrate.",
 +
                    "Changes in the brightness and color of the liquid crystal film,",
 +
                    "so the liquid crystal brightness can directly reflect the antigen concentration."
 +
                ],
 +
                reply:[
 +
                    {
 +
                        question:"That means we can see directly how we are physically in the state.",
 +
                        answer:"listen7"
 +
                    }
 +
                ]
 +
            },
 +
            "listen7":{
 +
                says:[
 +
                    "Yes, but we need to do a more accurate quantitative analysis.",
 +
                    "We take photos, and then grayscale processing and analysis of the average gray value.",
 +
                    "This can correspond to the concentration-gray curve that we have reached, thus we can accurately obtain the content of the marker."
 +
                ],
 +
                reply:[
 +
                    {
 +
                        question:"You did something amazing!",
 +
                        answer:"last"
 +
                    }
 +
                ]
 +
            },
 +
            "last":{
 
                 says: [
 
                 says: [
                     "Excellent!",
+
                     "Summary has ended, the following is for each plate specific content.",
                    "(This is the main topic of our chat.)",
+
                     "Please select the destination you want to go to."
                     "Bananas and ice cream.",
+
                    "Now, which do you prefer best?"
+
 
                 ],
 
                 ],
 
                 reply: [
 
                 reply: [
 
                     {
 
                     {
                         question: "Bananas!",
+
                         question: "No, thank you.",
                         answer: "chapter-two" // here both replies send people onto the same next chapter
+
                         answer: "end"
 
                     },
 
                     },
 
                     {
 
                     {
                         question: "Ice cream!", // both replies send people onto the same next chapter
+
                         question: "Project Introduction",
                         answer: "chapter-two"
+
                         answer: "projectIntroduction"
 
                     },
 
                     },
 
                     {
 
                     {
                         question: "What’s this button?",
+
                         question: "Parts",
                         answer: "intro-context"
+
                         answer: "parts"
 +
                    },
 +
                    {
 +
                        question: "Model",
 +
                        answer: "model"
 +
                    },
 +
                    {
 +
                        question: "Awards",
 +
                        answer: "awards"
 +
                    },
 +
                    {
 +
                        question: "Human Practice",
 +
                        answer: "humanPractice"
 +
                    },
 +
                    {
 +
                        question: "Teamwork and Cooperation",
 +
                        answer: "teamworkAndCooperation"
 
                     }
 
                     }
 
                 ]
 
                 ]
 
             },
 
             },
             "chapter-two": {
+
             "projectIntroduction":{
                 says: [
+
                 says:[
                     "Both <strong>bananas</strong> and <strong>ice cream</strong> take you here.",
+
                     "Wow, you chose the project as the destination.",
                     "Your next answer will take you to another prompt...",
+
                     "Are you ready to go?"
                    "...Or to the end of the chat, an “escape valve” we can use to end the chat if you want."
+
 
                 ],
 
                 ],
                 reply: [
+
                 reply:[
 
                     {
 
                     {
                         question: "Give me another prompt.",
+
                         question:"Yes.",
                         answer: "chapter-four"
+
                         answer:"goProjectIntroduction"
 
                     },
 
                     },
 
                     {
 
                     {
                         question: "End the chat.",
+
                         question:"Wait a second.",
                         answer: "end" // an example of using the Escape Valve for ineligible, Not Applicable participants
+
                         answer:"dest"
 
                     }
 
                     }
 
                 ]
 
                 ]
 
             },
 
             },
 
+
             "parts":{
            // this chapter is skipped
+
                 says:[
             "chapter-three": {
+
                     "Didi, you are about to reach parts.",
                // we skip this in this example to show you can do that; use it if you want.
+
                    "You will learn about the main components we use such as messages."
                 says: [
+
                     "Go ahead to the next chapter."
+
 
                 ],
 
                 ],
                 reply: [
+
                 reply:[
 
                     {
 
                     {
                         question: "OK, I will.",
+
                         question:"OK, let`s go.",
                         answer: "chapter-four"
+
                         answer:"goParts"
 +
                    },
 +
                    {
 +
                        question:"Wait a second.",
 +
                        answer:"dest"
 
                     }
 
                     }
 
                 ]
 
                 ]
 
             },
 
             },
 
+
             "model":{
            // continue with main conversation trunk
+
                 says:[
             "chapter-four": {
+
                     "Do you make the model as your destination?",
                 says: [
+
                     "Project optimization and results will be exhibited here."
                     "Hey, you're awesome!",
+
                     "More prompts?"
+
 
                 ],
 
                 ],
                 reply: [
+
                 reply:[
 
                     {
 
                     {
                         question: "Nope.",
+
                         question:"Go and visit.",
                         answer: "end"
+
                         answer:"goModel"
 
                     },
 
                     },
 
                     {
 
                     {
                         question: "Yes, more prompts!",
+
                         question:"I want a different destination.",
                         answer: "chapter-five"
+
                         answer:"dest"
 
                     }
 
                     }
 
                 ]
 
                 ]
 
             },
 
             },
             "chapter-five": {
+
             "awards":{
                 says: [
+
                 says:[
                     "Answering 'Yes' here will open a new window with a page from another site...", // call a function to an external resource / application outside of chat-bubble's purview
+
                     "You will find the treasures of application designing at the awards office."
                    "...And confirm that you're awesome, again.",
+
                    "Answering 'Not interested' will end the chat." // call a function to an external resource / application outside of chat-bubble's purview
+
 
                 ],
 
                 ],
                 reply: [
+
                 reply:[
 
                     {
 
                     {
                         question: "Not interested.",
+
                         question:"Departure. ( ̄)  ̄) ↗",
                         answer: "end"
+
                         answer:"goAwards"
 
                     },
 
                     },
 
                     {
 
                     {
                         question: "Yes!",
+
                         question:"I`m not interested in treasure hunt.",
                         answer: "externalResourceFunction" // function name that will be executed
+
                         answer:"dest"
 +
                    }
 +
                ]
 +
            },
 +
            "humanPractice":{
 +
                says:[
 +
                    "We are committed to education and publicity.",
 +
                    "Choose \"Learn more\" and will arrive at the human practice.",
 +
                    "Choose \"Back\", you can re-select the destination."
 +
                ],
 +
                reply:[
 +
                    {
 +
                        question:"Learn more",
 +
                        answer:"goHumanPractice"
 +
                    },
 +
                    {
 +
                        question:"Back",
 +
                        answer:"dest"
 +
                    }
 +
                ]
 +
            },
 +
            "teamworkAndCooperation":{
 +
                says:[
 +
                    "Choose \"Learn more\" will lead to team introduction,",
 +
                    "and learn about team members and collaboration between teams.",
 +
                    "Choose \"Back\", you can re-select the destination."
 +
                ],
 +
                reply:[
 +
                    {
 +
                        question:"Learn more",
 +
                        answer:"goTeamworkAndCooperation"
 +
                    },
 +
                    {
 +
                        question:"Back",
 +
                        answer:"dest"
 
                     }
 
                     }
 
                 ]
 
                 ]
Line 352: Line 355:
 
                 says: [
 
                 says: [
 
                     "Thanks for your time and attention.",
 
                     "Thanks for your time and attention.",
                     "The chat is over, but you can <strong>start over</strong> to see how this conversation could have gone differently."
+
                     "The chat is over, but you can start over to go through other options."
 
                 ],
 
                 ],
 
                 reply: [
 
                 reply: [
 
                     {
 
                     {
                         question: "Start over.",
+
                         question: "Start over",
 
                         answer: "ice"
 
                         answer: "ice"
 
                     }
 
                     }
 
                 ]
 
                 ]
 
             }
 
             }
         }; // end conversation object
+
         };
 
+
         goProjectIntroduction=function(){
         // initialize by constructing a named function...
+
            window.location.href="Description.html";
         let chatWindow = new Bubbles(
+
        };
             document.getElementById("chat"), // ...passing HTML container element...
+
         goParts=function(){
             "chatWindow" // ...and name of the function as a parameter
+
             window.location.href="PartsOverview.html";
         );
+
        };
 +
        goModel=function(){
 +
            window.location.href="ConditionOptimization.html";
 +
        };
 +
        goAwards=function(){
 +
            window.location.href="AppliedDesign.html";
 +
        };
 +
        goHumanPractice=function(){
 +
             console.log('aa');
 +
            window.location.href="HumanPractice.html";
 +
        };
 +
        goTeamworkAndCooperation=function(){
 +
            window.location.href="TeamMembers.html";
 +
         };
  
         // `.talk()` will get your bot to begin the conversation
+
         function isShow($el){
        chatWindow.talk(
+
            let winH = $(window).height(),/*获取窗口高度*/
            // pass your JSON/JavaScript object to `.talk()` function where
+
                scrollH = $(window).scrollTop(),/*获取窗口滚动高度*/
            // you define how the conversation between the bot and user will go
+
                top = $el.offsetTop;/*获取元素距离窗口顶部偏移高度*/
             convo
+
             return top < scrollH + winH;
         );
+
         }
 
+
         let chatWindow;
         // this function is called when user clicks "Yes!" in the "chapter-four" dialogue
+
         document.onscroll=function () {
         externalResourceFunction = function () {
+
             if(document.getElementById("chat")==null&&isShow(document.getElementById("chatBubbles")))
             // together with the function we'll restart the conversation starting from "capther-four"
+
             {
            // to make sure the user isn't left hanging after the function below has been executed
+
                let chat=document.createElement("div");
            chatWindow.talk(convo, "chapter-four");
+
                 chat.setAttribute("id","chat");
 
+
                 document.getElementById("chatBubbles").appendChild(chat);
             // function that opens external window
+
                 chatWindow = new Bubbles(document.getElementById("chat"), "chatWindow");
            window.open(
+
                chatWindow.talk(conversation);
                 "https://meanbusiness.com/wp-content/uploads/2018/04/IceCream-BananaSkis.gif",
+
            }
                 "_blank",
+
                 "toolbar=no,scrollbars=no,menubar=no,resizable=no,location=no,titlebar=no,width=300,height=600"
+
            )
+
 
         };
 
         };
 
     </script>
 
     </script>

Revision as of 13:09, 18 September 2018

2018 iGEM_DLUT_B

Chat Bubbles