CINXE.COM
Kweisui meaning: Traditional Chinese medicine herbal decoction - OneLook
<!DOCTYPE html> <html><head><meta http-equiv=Content-Type content="text/html; charset=UTF-8"> <link href="https://fonts.googleapis.com/css2?family=Atkinson+Hyperlegible:wght@400;700&display=swap" rel="stylesheet"> <!-- Google tag (gtag.js) --> <script async src="https://www.googletagmanager.com/gtag/js?id=G-KCYRT3J03G"></script> <script> window.dataLayer = window.dataLayer || []; function gtag(){dataLayer.push(arguments);} gtag('js', new Date()); gtag('config', 'G-KCYRT3J03G'); </script> <!-- <script> var googletag = googletag || {}; googletag.cmd = googletag.cmd || []; (function() { var gads = document.createElement('script'); gads.async = true; gads.type = 'text/javascript'; var useSSL = 'https:' == document.location.protocol; gads.src = (useSSL ? 'https:' : 'http:') + '//www.googletagservices.com/tag/js/gpt.js'; var node = document.getElementsByTagName('script')[0]; node.parentNode.insertBefore(gads, node); })(); </script> <script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-2783337899867996" crossorigin="anonymous"></script> </script> --> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="apple-touch-icon" sizes="57x57" href="/apple-touch-icon-57x57.png"> <link rel="apple-touch-icon" sizes="60x60" href="/apple-touch-icon-60x60.png"> <link rel="apple-touch-icon" sizes="72x72" href="/apple-touch-icon-72x72.png"> <link rel="apple-touch-icon" sizes="76x76" href="/apple-touch-icon-76x76.png"> <link rel="apple-touch-icon" sizes="114x114" href="/apple-touch-icon-114x114.png"> <link rel="apple-touch-icon" sizes="120x120" href="/apple-touch-icon-120x120.png"> <link rel="apple-touch-icon" sizes="144x144" href="/apple-touch-icon-144x144.png"> <link rel="apple-touch-icon" sizes="152x152" href="/apple-touch-icon-152x152.png"> <link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon-180x180.png"> <link rel="manifest" href="/manifest.json"> <link rel="mask-icon" href="/safari-pinned-tab.svg" color="#5bbad5"> <meta name="msapplication-TileColor" content="#da532c"> <meta name="msapplication-TileImage" content="/mstile-144x144.png"> <meta name="theme-color" content="#ffffff"> <script src="//ajax.googleapis.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script> <link rel="stylesheet" type="text/css" href="ol2.css?v=12"> <link rel="stylesheet" href="//ajax.googleapis.com/ajax/libs/jqueryui/1.12.1/themes/smoothness/jquery-ui.css" /> <link rel="search" type="application/opensearchdescription+xml" href="https://www.onelook.com/osdf.xml" title="OneLook Dictionary Search and Thesaurus" /> <title>Kweisui meaning: Traditional Chinese medicine herbal decoction - OneLook</title> <link rel="canonical" href="https://www.onelook.com/?w=Kweisui" /> <script> function init() {document.form1.w.focus(); document.form1.w.select();} </SCRIPT> <STYLE> A:hover {text-decoration:bold; color:#FF0000;} A:active {text-decoration:bold; color:#FF0000;} </STYLE> </head> <body> <form name="form1" id="olform" method="GET" action="/"><center> <a href="/"><span class="logo-pre"></span><div class="ol_logo"><IMG SRC="/img/ol_sunburst.png" align=middle border=0 width=180px alt="OneLook"></a></div> <input type="text" autocapitalize="none" name="w" id="olinput" size="30" value="Kweisui"> </form> <div id="fb2"> <button type="button" class="btn" onClick="ol(true);">Definitions</button><br> <button type="button" class="btn" onClick="ol(false);">Thesaurus</button> </div> </center> <div title="This is a new OneLook feature that gives you an ultra-concise definition for any word or phrase you can think of. It's a 5-word (or occasionally 6-word) computer-generated summary of how the word is used most often. Be aware that words can have multiple meanings! If there are other senses of the word, they are shown below." class="ol_inbrief"><span class="ol_inbrief_title">Usually means:</span> Traditional Chinese medicine <a href="https://onelook.com/?w=herbal&loc=inbrief">herbal</a> <a href="https://onelook.com/?w=decoction&loc=inbrief">decoction</a>. </div> <div class="ol_tabs"> <b class="ol_selected_tab">Definitions</b> [<b class="ol_nonselected_tab"><a href="/?w=kweisui&related=1">Related words</a></b>] [<b class="ol_nonselected_tab"><a href="/?w=kweisui&mentions=1">Mentions</a></b>] [<b class="ol_nonselected_tab"><a href="/?w=kweisui&history=1">History</a></b>] </div> <div id='main'> <div id='section-dicts'> We found 7 dictionaries that define the word <b>Kweisui</b>: <br><br> <IMG src=/img/a.gif alt="General dictionaries"> <a name=all_gen></a><u><b>General</b></u> (6 matching dictionaries)<br> <OL START=1> <li><a rel="nofollow" href="https://www.oxfordlearnersdictionaries.com/us/definition/english/Kweisui">Kweisui</a>: Oxford Learner's Dictionaries <li><a rel="nofollow" href="http://www.collinsdictionary.com/dictionary/english/kweisui">Kweisui</a>: Collins English Dictionary <li><a rel="nofollow" href="https://dictionary.infoplease.com/Kweisui">Kweisui</a>: Infoplease Dictionary <li><a rel="nofollow" href="https://dictionary.reference.com/search?q=kweisui">kweisui</a>: Dictionary.com <li><a rel="nofollow" href="https://www.thefreedictionary.com/Kweisui">Kweisui</a>: Dictionary/thesaurus <li><a rel="nofollow" href="https://en.wiktionary.org/wiki/Kweisui">Kweisui</a>: Wiktionary </ol><br> <IMG src=/img/a.gif alt="Computing dictionaries"> <a name=all_com></a><u><b>Computing</b></u> (1 matching dictionary)<br> <OL START=7> <li><a rel="nofollow" href="https://encyclopedia2.thefreedictionary.com/Kweisui">Kweisui</a>: Encyclopedia </ol><br> </div> <div id='section-defn'> <table class="info-box" cellpadding=0 width=><tr><td> <div class="entry" type="normal"> <script> </script> <center><div class=0><font size=-1>Definitions from <a href="https://en.wiktionary.org/wiki/Kweisui">Wiktionary</a> (<b><i>Kweisui</i></b>)</center></font><br> <b>▸ <i>noun</i>:</b> (historical) Former name of Hohhot.<br> <br> <div class=relheader><b>Similar:</b></div><div class=rellist> <a href=/?w=Ti-hua&ls=a&loc=rel_sim>Ti-hua</a>, <a href=/?w=Tsienkiang&ls=a&loc=rel_sim>Tsienkiang</a>, <a href=/?w=Dihua&ls=a&loc=rel_sim>Dihua</a>, <a href=/?w=Kuaiji&ls=a&loc=rel_sim>Kuaiji</a>, <a href=/?w=Kinhwa&ls=a&loc=rel_sim>Kinhwa</a>, <a href=/?w=Tihua&ls=a&loc=rel_sim>Tihua</a>, <a href=/?w=Kweichow&ls=a&loc=rel_sim>Kweichow</a>, <a href=/?w=Kweiyang&ls=a&loc=rel_sim>Kweiyang</a>, <a href=/?w=Han-k'ou&ls=a&loc=rel_sim>Han-k'ou</a>, <a href=/?w=Qiqiha'er&ls=a&loc=rel_sim>Qiqiha'er</a>, <a href=/thesaurus/?s=Kweisui&loc=cb><i>more...</i></a> </div> <div id="dmapi_cls"></div> <script language=javascript type='text/javascript'> var query = 'Kweisui'; var baseurl = '/?loc=dmapirel&w=' function clusterlink(clusterTitles, clusterId, query) { var clusterTitle = clusterTitles[clusterId][0]; var url = "https://www.onelook.com/?topic=" + clusterTitle + "&s=cluster:" + clusterId + "&loc=ol_cls"; url = url + "&f_rt=" + encodeURIComponent(query); url = url + "&concept=" + encodeURIComponent(clusterTitle); clslink = "<a href=\"" + url + "\"><button class=\"top-cluster\">" + clusterTitle + "</button></a> "; return clslink; } function toggle_dmapi_res(apifn) { var q = apifn; var max = "100"; if (apifn === "rhy") { q = "arhy=1&sl"; } if (apifn === "idioms") { q = "v=idioms&md=d&ml"; } if (apifn === "cls") { q = "qe=sp&md=c&sp"; max = "1"; } if (apifn === "ml") { q = "md=d&ml"; } $.ajax({ url: "//www.onelook.com/api/words?max=" + max + "&k=ol_related&" + q + "=" + query, context: document.body }).done(function(data) { str = ""; if (apifn == "cls" && (data.length > 0)) { var tag_list = data[0]["tags"]; var clusterTitles = {}; var defClusters = []; for (var j=0; j<tag_list.length; j++) { if (tag_list[j].match(/^cluster_titles:/)) { clusterTitles = JSON.parse(tag_list[j].replace("cluster_titles:","")); } else if (tag_list[j].match(/^def_clusters:/)) { defClusters = JSON.parse(tag_list[j].replace("def_clusters:","")); } } var queryClusterContent = ""; var seenClusters = new Set(); if (defClusters.length > 0) { str += "<br>Found in concept groups: "; for (var i=0; i<defClusters.length; i++) { if (i > 0) queryClusterContent += " "; if (!seenClusters.has(defClusters[i])) { var clslink = clusterlink(clusterTitles, defClusters[i], query); if (clslink != null) { str += clslink; seenClusters.add(defClusters[i]); } } } } } else { for (i=0; i<data.length; i++) { if (apifn === "rhy" && (data[i]["word"] === query.replace("_", " "))) { continue; } url = baseurl + data[i]["word"]; if (data[i]["defHeadword"]) { data[i]["word"] = data[i]["defHeadword"]; } str += "<a href=\"" + url + "\">" + data[i]["word"] + "</a>"; if (i != data.length-1) { str += ", "; } } } if (apifn === "ml" && data.length >= 100 || apifn === "idioms") { str += " (<b><i><a href=\"/thesaurus/?s=" + query + "&loc=cbsim\">see more...</a></i></b>)"; } if (apifn === "rhy" && data.length >= 99) { str += " (<b><i><a href=\"https://www.rhymezone.com/r/rhyme.cgi?typeofrhyme=adv&Word=" + query + "&loc=olrhy\">see more...</a></i></b>)"; } if (data.length == 0) { str += "(None found)"; } $("#dmapi_" + apifn).html(str); }); } toggle_dmapi_res('cls'); </script> <br>▸ <a class="dmapi_link" onclick="toggle_dmapi_res('ml')">Words similar to <i>Kweisui</i></a> <div id="dmapi_ml"></div> <script language=javascript type='text/javascript'> var query = 'Kweisui'; var baseurl = '/?loc=dmapirel&w=' </script> <br>▸ <a href="/?w=Kweisui&mentions=1">Usage examples for <i>Kweisui</i></a><br> <br>▸ <a class="dmapi_link" onclick="toggle_dmapi_res('idioms')">Idioms related to <i>Kweisui</i></a> <div id="dmapi_idioms"></div> <script language=javascript type='text/javascript'> var query = 'Kweisui'; var baseurl = '/?loc=dmapirel&w=' </script> <br>▸ <a href="https://www.civicsearch.org/search?k=Kweisui">Civic discussion about <i>Kweisui</i></a> (<font color=red>New!</font>)<br> <br>▸ <a class="dmapi_link" onclick="toggle_dmapi_res('rel_jjb')">Popular adjectives describing <i>Kweisui</i></a> <div id="dmapi_rel_jjb"></div> <script language=javascript type='text/javascript'> var query = 'Kweisui'; var baseurl = '/?loc=dmapirel&w=' </script> <br>▸ <a class="dmapi_link" onclick="toggle_dmapi_res('rel_trg')">Words that often appear near <i>Kweisui</i></a> <div id="dmapi_rel_trg"></div> <script language=javascript type='text/javascript'> var query = 'Kweisui'; var baseurl = '/?loc=dmapirel&w=' </script> <br>▸ <a target="_" href="https://www.rhymezone.com/r/rhyme.cgi?typeofrhyme=adv&Word=Kweisui">Rhymes of <i>Kweisui</i></a><br> <br>▸ <a href="pm/#?w1=Kweisui">Invented words related to <i>Kweisui</i></a><br> </td></tr></table></td></tr> </table></div> </div></div> <br> <center><table class="info-box" cellpadding="10" cellspacing="1" width=80%><tr><td><a name=phrases></a> <div class=relheader><b>Similar:</b></div><div class=rellist> <a href=/?w=Ti-hua&ls=a&loc=rel_sim>Ti-hua</a>, <a href=/?w=Tsienkiang&ls=a&loc=rel_sim>Tsienkiang</a>, <a href=/?w=Dihua&ls=a&loc=rel_sim>Dihua</a>, <a href=/?w=Kuaiji&ls=a&loc=rel_sim>Kuaiji</a>, <a href=/?w=Kinhwa&ls=a&loc=rel_sim>Kinhwa</a>, <a href=/?w=Tihua&ls=a&loc=rel_sim>Tihua</a>, <a href=/?w=Kweichow&ls=a&loc=rel_sim>Kweichow</a>, <a href=/?w=Kweiyang&ls=a&loc=rel_sim>Kweiyang</a>, <a href=/?w=Han-k'ou&ls=a&loc=rel_sim>Han-k'ou</a>, <a href=/?w=Qiqiha'er&ls=a&loc=rel_sim>Qiqiha'er</a>, <a href=/thesaurus/?s=Kweisui&loc=cb><i>more...</i></a> </div> </td></tr></table></center> <br><br> Search for <i>Kweisui</i> on <a href="https://www.google.com/search?as_q=Kweisui+meaning">Google</a> or <a href="https://en.wikipedia.org/wiki/Special:Search?go=Go&search=Kweisui">Wikipedia</a><br><br> <link rel="stylesheet" href="/threepeat/tp.css?4"><center>Tap below and start typing to play <a href="/threepeat">Threepeat</a>!</center><center><br> <div id="threepeat"></div> <div id="beacon"></div> <script src="/threepeat/libs/confettisplosion.js?4"></script> <script src="/threepeat/tp.js?5"></script> <script> const threepeat = new Threepeat("#threepeat"); function subtractOneDay(dateStr) { // Parse the input date string as a UTC date const date = new Date(`${dateStr}T00:00:00Z`); if (isNaN(date.getTime())) { return null; } date.setUTCDate(date.getUTCDate() - 1); const year = date.getUTCFullYear(); const month = String(date.getUTCMonth() + 1).padStart(2, '0'); const day = String(date.getUTCDate()).padStart(2, '0'); return `${year}-${month}-${day}`; } const doConfetti = (tries, finalTries=0)=>{ if (finalTries == 3) { confettiSplosion.start(); } else if (tries == 1) { confettiSplosion.start(10); } } const resetSelectMenu = function () { const selectMenu = document.getElementById('gameid-select'); if (!selectMenu) return; let state = null; let nextGameId = null; // return the next game to play, the latest ID that is not yet finished try { state = JSON.parse(localStorage.threepeat); } catch (e) {} if (state && state.games) { for (let i = 0; i < selectMenu.options.length; i++) { const option = selectMenu.options[i]; const value = option.value; if (!option.text.endsWith("✓")) { if (state.games.hasOwnProperty(value)) { option.classList.add("gameid-done"); // this doesn't seem to work? option.textContent = option.text + " ✓"; } else { if (!nextGameId || value > nextGameId) { nextGameId = value; } if (state.games.hasOwnProperty(value + ".1")) { option.textContent = option.text + " ⏳"; } } } } } return nextGameId; } const start = function (gamesData) { threepeat .on("roundend", (round, stats, gameData)=>{ if (round < 3) { const tries = stats.tries[round] + stats.hints[round];; const time_secs = stats.times[round] + 60*stats.hints[round]; let gameid = gameData.game_id; let suffixes = gameData.puzzles[round].suffixes.join(","); let prefix = gameData.puzzles[round].prefix; fetch(`/img/0.gif?x=threepeat_round&gameid=${gameid}&round=${round}&suffixes=${suffixes}&prefix=${prefix}&time=${time_secs}&guesses=${tries}`, {method: "HEAD"}).then(()=>doConfetti(tries)); } }) .on("gameend", (round, stats, gameData)=>{ const tries = stats.tries[round]; const finalTries = stats.tries.reduce((s,v)=>s+v); doConfetti(tries, finalTries); resetSelectMenu(); }) .on("nextgame", (gameId)=> { let nextGameId = resetSelectMenu(); if (!nextGameId) { console.log(gameId); nextGameId = subtractOneDay(gameId); } let url = nextGameId ? `https://onelook.com/threepeat/${nextGameId}` : `https://onelook.com/threepeat`; window.location.href = url; }) .focus() .start(gamesData); } // Archive dropdown $(function() { const selectMenu = document.getElementById('gameid-select'); if (selectMenu) { selectMenu.addEventListener('change', function() { const selectedGameId = selectMenu.value; window.location.href = `https://onelook.com/threepeat/${encodeURIComponent(selectedGameId)}`; }); resetSelectMenu(); } }); start([{"puzzles": [{"suffixes": ["ife", "eam", "uggle"], "prefix": "str", "valid_words": ["unseam", "agleam", "rejuggle", "scream", "struggle", "strife", "reteam", "inseam", "stream"], "definitions": {"strife": "Conflict or struggle between parties.", "stream": "Flowing water in natural course.", "struggle": "Effortful attempt to overcome difficulties."}}, {"suffixes": ["tice", "rine", "eral"], "prefix": "lat", "valid_words": ["murrine", "dourine", "neurine", "several", "citrine", "gomeral", "spheral", "mortice", "caprine", "statice", "mineral", "literal", "acarine", "vitrine", "ruderal", "enteral", "tacrine", "taurine", "eserine", "factice", "puberal", "numeral", "liberal", "latrine", "cameral", "humeral", "funeral", "general", "eccrine", "scleral", "chorine", "lattice", "lateral", "justice", "terrine", "federal", "apteral", "zebrine", "uterine"], "definitions": {"lattice": "Regular, repeating arrangement of points.", "latrine": "Private or communal toilet facility.", "lateral": "Positioned at or from side."}}, {"suffixes": ["er", "ale", "ite"], "prefix": "fin", "valid_words": ["wider", "pawer", "oiler", "mazer", "muser", "otter", "gamer", "gofer", "eager", "speer", "usher", "augite", "umber", "biter", "rager", "fiver", "toter", "ender", "miser", "saber", "ocher", "female", "sager", "leper", "wooer", "boxer", "cower", "steer", "timer", "regale", "firer", "laker", "fixer", "bubale", "anger", "aiver", "crier", "tuyer", "cooer", "sopite", "miler", "payer", "honer", "surer", "ruder", "finite", "loner", "feyer", "curite", "japer", "tawer", "wafer", "oolite", "adder", "tower", "waker", "goner", "vower", "tuber", "sober", "mixer", "heder", "voter", "frier", "farer", "titer", "rifer", "yager", "eater", "rawer", "gager", "raper", "fleer", "locale", "morale", "wirer", "wryer", "dunite", "infer", "ether", "drier", "eider", "cicale", "asker", "oxter", "sawer", "dacite", "lower", "poser", "bower", "elver", "idler", "doter", "verite", "gunite", "illite", "alter", "macer", "buyer", "wiver", "pyrite", "niter", "agger", "hirer", "weber", "viper", "poker", "dimer", "pelite", "laver", "armer", "fomite", "liger", "wiper", "loser", "taxite", "fumer", "tamale", "muter", "hoser", "caper", "apter", "ogler", "tater", "incite", "filer", "citer", "barite", "razer", "hiker", "comer", "fifer", "raker", "roger", "maker", "iolite", "tiler", "inter", "resale", "ember", "giver", "nuder", "toker", "offer", "riper", "sweer", "aider", "tweer", "toper", "waver", "huger", "taber", "keyer", "endite", "ither", "moper", "lacer", "roper", "urger", "mover", "viler", "homer", "ceder", "amber", "ricer", "indite", "riser", "siver", "meter", "sorer", "lader", "hewer", "emeer", "flyer", "enter", "odder", "ameer", "mower", "shyer", "finale", "dicer", "lamer", "duper", "seder", "sexer", "cover", "paper", "cryer", "halite", "esker", "recite", "defer", "water", "bluer", "curer", "ophite", "exhale", "diker", "leger", "utter", "rimer", "inner", "taler", "gazer", "gayer", "mimer", "giber", "lever", "liker", "invite", "jager", "truer", "purer", "under", "later", "hater", "coyer", "pater", "ratite", "fever", "wager", "peter", "bayer", "maser", "slier", "waxer", "caber", "excite", "shoer", "joker", "laxer", "albite", "resite", "sneer", "empale", "ocker", "noter", "baker", "outer", "caner", "wader", "cater", "flier", "siker", "liter", "rower", "rarer", "saner", "ofter", "cyber", "corer", "rater", "laser", "paver", "fewer", "sewer", "petite", "sizer", "doper", "after", "piker", "toyer", "inhale", "merer", "raver", "twyer", "haver", "sower", "impale", "inker", "dower", "other", "waler", "diver", "freer", "sixer", "gluer", "ulcer", "doser", "cuter", "iller", "oater", "nicer", "udder", "abler", "cuber", "sayer", "taker", "paler", "river", "fader", "biner", "saver", "carer", "newer", "unbale", "kiter", "ormer", "hoper", "older", "luger", "easer", "piper", "parer", "wrier", "loper", "samite", "gaper", "edger", "rider", "taper", "ester", "barer", "facer", "polite", "ruler", "finer", "boner", "pryer", "caver", "suber", "hover", "liber", "emmer", "norite", "asper", "bider", "lurer", "haler", "niner", "icker", "cheer", "baler", "spier", "cyder", "direr", "lager", "somite", "aimer", "cider", "ignite", "plier", "poler", "aplite", "twier", "tuner", "faker", "yarer", "refer", "jiber", "upper", "osier", "dater", "sheer", "tiger", "lifer", "vomer", "miter", "shier", "rover", "brier", "hider", "elder", "foyer", "prier", "alder", "racer", "skier", "baser", "saker", "taxer", "order", "darer", "owner", "plyer", "gomer", "super", "safer", "pager", "miner", "slyer", "hexer", "power", "liner", "mater", "dryer", "aster", "layer", "biker", "cerite", "liver", "podite", "icier", "serer", "hazer", "lenite", "auger", "never", "sprite", "airer", "omber", "hayer", "sever", "deter", "wiser", "dozer", "jiver", "coder", "coper", "fiber", "zoner", "queer", "hyper", "borer", "fryer", "toner", "gater", "luxer", "namer", "cager", "trier", "lover", "pacer", "pinite", "tamer", "puler", "raser", "diner", "egger", "vexer"], "definitions": {"finer": "More delicate or precise quality.", "finale": "Final episode or performance conclusion.", "finite": "Limited in size or number."}}], "game_id": "2024-12-01"} ]); </script> </center> <br> <table width="100%" border=0 cellspacing=0> <tr> <td align=right> <center> <a href="https://www.onelook.com/">Home</a> <a href="/thesaurus/">Reverse Dictionary / Thesaurus</a> <a href="https://datamuse.com/">Datamuse</a> <a href="https://compoundyourjoy.com/">Compound Your Joy</a> <a href="https://onelook.com/spruce">Spruce</a> <a href="https://onelook.com/about.shtml#feedback">Feedback</a> <a href="https://onelook.com/about.shtml#privacy">Privacy</a> <a href="#" class="darkModeToggle">Dark mode</a> <a href="/about.shtml">Help</a></center> </td></tr></table> <br> <!-- <br><center><a href="https://beeferman.org/harvey/">Harvey Beeferman, 1942–2024</a></center><br> --> <script src="https://ajax.googleapis.com/ajax/libs/jqueryui/1.12.1/jquery-ui.min.js"></script> <script> function ol(isForward, mode) { var x = $( "#olinput" ).val(); var url = "/"; if (isForward) { url = "/?w=" + encodeURIComponent(x) + "&ls=a"; } else { url = "/thesaurus/"; if (x !== "") { url += "?s=" + encodeURIComponent(x); } } if (mode) { url += "&" + mode + "=1"; } if (url !== "/") { window.location.replace(url); } } $(function() { last_req = ""; const body = document.body; if (typeof(Storage) !== "undefined") { const savedTheme = localStorage.getItem('theme'); if (savedTheme) { body.className = savedTheme; } else { body.className = 'light-theme'; } } $(".darkModeToggle").click(() => { body.classList.toggle('dark-theme'); body.classList.toggle('light-theme'); if (typeof(Storage) !== "undefined") { $("#olinput").append('<img src="/img/0.gif?q=hometheme_' + body.className + '">'); localStorage.setItem('theme', body.className); } }); $( "#olinput" ).autocomplete({ minLength: 3, delay: 100, open: function(event, ui) { $('.ui-autocomplete').off('menufocus hover mouseenter mouseover'); }, select: function(event, ui) { $('<input>').attr({ type: 'hidden', name: 'loc', value: 'home_ac_' + last_req }).appendTo('#olform'); $( "#olinput" ).val(ui.item.value); $( "#olform" ).submit(); }, source: function( request, response ) { var res = request.term.split(":"); var url; if (res.length > 1) { url = '//api.onelook.com/words?v=ol_gte2&max=10&k=ol_clue&sp=' + encodeURIComponent(res[0]) + '&ml=' + encodeURIComponent(res[1]); } else { url = '//api.onelook.com/sug?v=ol_gte2&k=ol_home&s=' + encodeURIComponent(request.term.replace(/[:].*/,'')); } $.ajax({ dataType: "json", type : 'Get', url: url, success: function(data) { response( $.map( data, function(item) { if (item["tags"] && item["tags"].indexOf("prop") >= 0) {return item["word"].charAt(0).toUpperCase() + item["word"].slice(1); } else return item["word"]; })) }, }); last_req = request.term; } }); }); $(function() { init(); }); </script> <br><br><br><br> </body></html>