m |
(初次布局。) |
||
Line 1: | Line 1: | ||
− | + | <html lang="en"> | |
− | <html> | + | |
<head> | <head> | ||
<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/slideshow.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/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/typed.js&action=raw&ctype=text/javascript"></script> | ||
</head> | </head> | ||
<body> | <body> | ||
− | < | + | <div id="dlutb"> |
− | <ul class="menu"> | + | <div id="moduleHeader"> |
− | + | <div id="nav"> | |
− | + | <ul class="menu"> | |
− | + | <li> | |
− | + | <a href="#">Professional Services</a> | |
− | + | <ul class="subMenu"> | |
− | + | <li> | |
− | + | <a href="#">Professional Services</a> | |
− | + | </li> | |
− | + | <li> | |
− | + | <a href="#">Partners</a> | |
− | + | </li> | |
− | + | <li> | |
− | + | <a href="#">Training</a> | |
− | + | </li> | |
− | + | <li> | |
− | + | <a href="#">Technical Support</a> | |
− | + | </li> | |
− | + | </ul> | |
− | + | </li> | |
− | + | <li> | |
− | + | <a href="#">Products</a> | |
− | + | <ul class="subMenu"> | |
− | + | <li> | |
− | + | <a href="#">Embedded Devices</a> | |
− | + | </li> | |
− | + | <li> | |
− | + | <a href="#">Reference software stack & SDK</a> | |
− | + | </li> | |
− | + | </ul> | |
− | + | </li> | |
− | + | <li> | |
− | + | <a href="#">Solutions</a> | |
− | + | <ul class="subMenu"> | |
− | + | <li> | |
− | + | <a href="#">Automotive</a> | |
− | + | </li> | |
− | + | <li> | |
− | + | <a href="#">Automation</a> | |
− | + | </li> | |
− | + | <li> | |
− | + | <a href="#">Medical</a> | |
− | + | </li> | |
− | + | <li> | |
− | + | <a href="#">Libraries, Tools & IDE</a> | |
− | + | </li> | |
− | + | <li> | |
− | + | <a href="#">UI design technologies</a> | |
− | + | </li> | |
− | + | </ul> | |
− | + | </li> | |
− | + | <li> | |
− | + | <a href="#">Professional Services</a> | |
− | + | <ul class="subMenu"> | |
− | + | <li> | |
− | + | <a href="#">Professional Services</a> | |
− | + | </li> | |
− | + | <li> | |
− | + | <a href="#">Partners</a> | |
− | + | </li> | |
− | + | <li> | |
− | + | <a href="#">Training</a> | |
− | + | </li> | |
− | + | <li> | |
− | + | <a href="#">Technical Support</a> | |
− | + | </li> | |
− | + | </ul> | |
− | + | </li> | |
− | + | <li> | |
− | + | <a href="#">Products</a> | |
− | + | <ul class="subMenu"> | |
− | + | <li> | |
− | + | <a href="#">Embedded Devices</a> | |
− | + | </li> | |
− | + | <li> | |
− | + | <a href="#">Reference software stack & SDK</a> | |
− | + | </li> | |
− | + | </ul> | |
− | + | </li> | |
− | + | <li> | |
− | + | <a href="#">Solutions</a> | |
− | + | <ul class="subMenu"> | |
− | + | <li> | |
− | + | <a href="#">Automotive</a> | |
− | + | </li> | |
− | + | <li> | |
− | + | <a href="#">Automation</a> | |
− | + | </li> | |
− | + | <li> | |
− | + | <a href="#">Medical</a> | |
− | + | </li> | |
− | + | <li> | |
− | + | <a href="#">Libraries, Tools & IDE</a> | |
− | + | </li> | |
− | + | <li> | |
− | + | <a href="#">UI design technologies</a> | |
− | + | </li> | |
− | + | </ul> | |
− | + | </li> | |
− | + | <li> | |
− | + | <a href="#">Professional Services</a> | |
− | + | <ul class="subMenu"> | |
− | + | <li> | |
− | + | <a href="#">Professional Services</a> | |
− | + | </li> | |
− | + | <li> | |
− | + | <a href="#">Partners</a> | |
− | + | </li> | |
− | + | <li> | |
− | + | <a href="#">Training</a> | |
− | + | </li> | |
− | + | <li> | |
− | + | <a href="#">Technical Support</a> | |
− | + | </li> | |
− | + | </ul> | |
− | + | </li> | |
− | + | </ul> | |
− | + | </div> | |
− | + | <br> | |
− | + | <div class="moduleTitle">Module Name</div> | |
− | + | <div class="subModule"> | |
− | + | <span>Sub Module Name</span> | |
− | + | </div> | |
− | < | + | </div> |
− | + | ||
− | + | ||
− | < | + | |
− | < | + | |
− | < | + | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | </ | + | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | <!-- | + | <div> |
− | + | <h2 class="title">Chat Bubbles</h2> | |
− | + | <div id="chatBubbles"> | |
− | + | <!-- container element for chat window --> | |
− | + | <div id="chat"></div> | |
− | + | <!--<script src="https://2018.igem.org/wiki/index.php?title=Template:DLUT_China_B/js/bubbles.js&action=raw&ctype=text/javascript"></script>--> | |
− | + | <script> | |
− | + | // conversation object stored in separate variable: | |
− | + | var 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: { | |
− | + | // "says" defines an array of sequential bubbles | |
− | + | // that the bot will produce | |
− | + | says: [ | |
− | + | "Hello!", | |
− | + | "Let's explore advanced chat flows with <em>chat-bubble</em>.", | |
− | + | "In this example you'll see how this simple JavaScript framework can help you create advanced conversational sequences with GIFs!", | |
− | + | "To begin, choose how you'd like this (example) conversation to proceed...", | |
− | + | "...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: [ | ||
+ | { | ||
+ | question: "Bananas and ice cream!", // label for the reply option | ||
+ | answer: "chapter-one" // key for the next conversation object | ||
+ | }, | ||
+ | { | ||
+ | question: "No, thanks.", // label for the reply option | ||
+ | answer: "end" // key for an "escape valve"; we refer to this whenever a reply signals the end of the convo | ||
+ | }, | ||
+ | { | ||
+ | question: "What “other special things?”", // label for the reply option | ||
+ | answer: "sidetrack" // key for a "side note" we can reference from multiple points in the chat | ||
+ | } | ||
+ | ] | ||
+ | }, // end required "ice" conversation object | ||
+ | |||
+ | // side note | ||
+ | sidetrack: { | ||
+ | says: [ | ||
+ | "Things which go way beyond a single topic of conversation!", | ||
+ | "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.", | ||
+ | "This could be a useful way provide more instructions or context." | ||
+ | ], | ||
+ | reply: [ | ||
+ | { | ||
+ | question: "Tell me more.", | ||
+ | answer: "intro-context" // key for another side note; in this instance, we're using it to contextualize the Q&A we're heading into | ||
+ | }, | ||
+ | { | ||
+ | question: "Got it: on with the chat!", | ||
+ | answer: "chapter-one" // no further sidetrack required, returning to the main conversation tree | ||
+ | } | ||
+ | ] | ||
}, | }, | ||
− | { | + | |
− | + | // another side note | |
− | + | "intro-context": { | |
+ | says: [ | ||
+ | "This is an example of further instructions...", | ||
+ | "...Context and side-notes...", | ||
+ | "...With a way to return back to the main trunk of the conversation, like so:" | ||
+ | ], | ||
+ | reply: [ | ||
+ | { | ||
+ | question: "To the main topic, bananas and ice cream!", | ||
+ | answer: "chapter-one" | ||
+ | } | ||
+ | ] | ||
}, | }, | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | + | // main conversation trunk | |
− | + | "chapter-one": { | |
− | + | says: [ | |
− | + | "Excellent!", | |
− | + | "(This is the main topic of our chat.)", | |
− | + | "Bananas and ice cream.", | |
− | + | "Now, which do you prefer best?" | |
− | + | ], | |
− | + | reply: [ | |
− | + | { | |
− | + | question: "Bananas!", | |
+ | answer: "chapter-two" // here both replies send people onto the same next chapter | ||
+ | }, | ||
+ | { | ||
+ | question: "Ice cream!", // both replies send people onto the same next chapter | ||
+ | answer: "chapter-two" | ||
+ | }, | ||
+ | { | ||
+ | question: "What’s this button?", | ||
+ | answer: "intro-context" | ||
+ | } | ||
+ | ] | ||
+ | }, | ||
+ | "chapter-two": { | ||
+ | says: [ | ||
+ | "Both <strong>bananas</strong> and <strong>ice cream</strong> take you here.", | ||
+ | "Your next answer will take you to another prompt...", | ||
+ | "...Or to the end of the chat, an “escape valve” we can use to end the chat if you want." | ||
+ | ], | ||
+ | reply: [ | ||
+ | { | ||
+ | question: "Give me another prompt.", | ||
+ | answer: "chapter-four" | ||
+ | }, | ||
+ | { | ||
+ | question: "End the chat.", | ||
+ | answer: "end" // an example of using the Escape Valve for ineligible, Not Applicable participants | ||
+ | } | ||
+ | ] | ||
}, | }, | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | + | // this chapter is skipped | |
− | + | "chapter-three": { | |
− | + | // we skip this in this example to show you can do that; use it if you want. | |
− | + | says: [ | |
− | + | "Go ahead to the next chapter." | |
− | + | ], | |
− | + | reply: [ | |
− | + | { | |
− | + | question: "OK, I will.", | |
− | + | answer: "chapter-four" | |
− | + | } | |
− | + | ] | |
− | + | }, | |
− | + | ||
− | + | // continue with main conversation trunk | |
− | + | "chapter-four": { | |
− | + | says: [ | |
− | + | "Hey, you're awesome!", | |
− | + | "More prompts?" | |
− | + | ], | |
− | + | reply: [ | |
− | + | { | |
− | + | question: "Nope.", | |
− | + | answer: "end" | |
− | + | }, | |
− | + | { | |
+ | question: "Yes, more prompts!", | ||
+ | answer: "chapter-five" | ||
+ | } | ||
+ | ] | ||
}, | }, | ||
− | { | + | "chapter-five": { |
− | + | says: [ | |
− | answer: " | + | "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 |
+ | "...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: [ | ||
+ | { | ||
+ | question: "Not interested.", | ||
+ | answer: "end" | ||
+ | }, | ||
+ | { | ||
+ | question: "Yes!", | ||
+ | answer: "externalResourceFunction" // function name that will be executed | ||
+ | } | ||
+ | ] | ||
}, | }, | ||
− | { | + | end: { |
− | + | says: [ | |
− | + | "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." | |
− | + | ], | |
− | + | reply: [ | |
− | + | { | |
− | + | question: "Start over.", | |
− | + | answer: "ice" | |
− | + | } | |
− | + | ] | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
} | } | ||
− | + | }; // end conversation object | |
− | + | ||
− | + | // initialize by constructing a named function... | |
− | + | var chatWindow = new Bubbles( | |
− | // | + | document.getElementById("chat"), // ...passing HTML container element... |
− | + | "chatWindow" // ...and name of the function as a parameter | |
− | " | + | ); |
− | + | ||
− | + | // `.talk()` will get your bot to begin the conversation | |
− | + | chatWindow.talk( | |
− | + | // pass your JSON/JavaScript object to `.talk()` function where | |
− | + | // you define how the conversation between the bot and user will go | |
− | + | convo | |
− | + | ); | |
− | + | ||
+ | // this function is called when user clicks "Yes!" in the "chapter-four" dialogue | ||
+ | externalResourceFunction = function () { | ||
+ | // 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 | ||
+ | chatWindow.talk(convo, "chapter-four"); | ||
+ | |||
+ | // function that opens external window | ||
+ | window.open( | ||
+ | "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> | ||
+ | </div> | ||
+ | </div> | ||
+ | |||
+ | <div id="fixed1"></div> | ||
− | // | + | <div> |
− | " | + | <h2 class="title">Slide Show</h2> |
− | + | <div id="box"> | |
− | + | <div id="box_img"> | |
− | + | <ul></ul> | |
− | + | </div> | |
− | + | <div id="word"> | |
+ | <ul></ul> | ||
+ | </div> | ||
+ | <div id="controller"> | ||
+ | <div id="backward"></div> | ||
+ | <div id="forward"></div> | ||
+ | </div> | ||
+ | <script> | ||
+ | let data = [ | ||
{ | { | ||
− | + | "src": "https://static.igem.org/mediawiki/2018/2/29/T--DLUT_China_B--logo.png", | |
− | + | "title": "DLUT China B Logo", | |
+ | "description": "DLUT China B Logo", | ||
+ | "link": "#" | ||
}, | }, | ||
{ | { | ||
− | + | "src": "https://static.igem.org/mediawiki/2018/9/96/T--DLUT_China_B--laboratory.jpg", | |
− | + | "title": "Laboratory", | |
− | + | "description": "Laboratory.", | |
− | + | "link": "#" | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
}, | }, | ||
{ | { | ||
− | + | "src": "https://static.igem.org/mediawiki/2018/b/b6/T--DLUT_China_B--Clean_Bench.jpg", | |
− | + | "title": "Clean Bench", | |
+ | "description": "Clean Bench.", | ||
+ | "link": "#" | ||
} | } | ||
− | ] | + | ]; |
− | + | $(document).ready(slideshow(data)); | |
− | + | </script> | |
− | + | </div> | |
− | + | <br> | |
− | + | </div> | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | <div id="fixed2"></div> | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | / | + | <div> |
− | + | <h2 class="title">Chart</h2> | |
− | + | <p class="mainText"><a href="http://www.chartjs.org/samples/latest/">http://www.chartjs.org/samples/latest/</a></p> | |
− | + | </div> | |
− | + | ||
− | + | ||
− | + | <div id="fixed3"></div> | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | <div> | |
− | + | <h2 class="title">To Be Completed</h2> | |
− | + | <p class="mainText">There is nothing here at the moment.</p> | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | < | + | |
− | + | ||
− | < | + | |
− | + | ||
− | + | ||
− | < | + | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
</div> | </div> | ||
− | <div id=" | + | |
− | + | <div id="footer"> | |
− | + | <div id="address"> | |
− | + | <h3>Address</h3> | |
− | + | <p>No.2 Linggong Road, Ganjingzi District, Dalian City, Liaoning Province, P.R.C., 116024</p> | |
− | + | </div> | |
</div> | </div> | ||
+ | |||
+ | <div id="back" class="btn"></div> | ||
+ | <script> | ||
+ | $('#back').click(function () { | ||
+ | $('html').animate( {scrollTop: 0}, 500); | ||
+ | }); | ||
+ | document.onscroll=function () { | ||
+ | if($('html').scrollTop()>600) | ||
+ | document.getElementById("back").style.display="block"; | ||
+ | else | ||
+ | document.getElementById("back").style.display="none"; | ||
+ | }; | ||
+ | </script> | ||
</div> | </div> | ||
</body> | </body> | ||
</html> | </html> |
Latest revision as of 07:45, 7 September 2018
Module Name
Sub Module Name
Chat Bubbles
Slide Show
To Be Completed
There is nothing here at the moment.