var ssConfig = { base: 'suggest', suggest: { forms: [ { id: '1', //ss-form1, ss-query1 ヘッダー用の窓 site: '7Y8TG56Q', group: '1', //日本語サイト全体=1 depth: 3 }, { id: '2', //ss-form2, ss-query2 コンテンツ領域用の窓(事業・製品) site: '7Y8TG56Q', group: '3', //事業・製品(日本語)=3 depth: 3 }, { id: '3', //ss-form3, ss-query3 コンテンツ領域用の窓(トピックス) site: '7Y8TG56Q', group: '5', //トピックス内(日本語)=5 depth: 3 } ], wmModeExcludes: '', cssPath: '/assets/syncsearch/jp/ss_suggest.css', templates: {} } }; ssConfig.suggest.templates.item = '
' + '{{item.keyword}}' + '
'; /*! * ss_loader.js * http://www.syncsearch.jp/ * * @version 1.0.0 * @date 2017-06-19 * @license Copyright 2017 SyncThought,Inc. All Rights Reserved. * This software is the proprietary information of SyncThought,Inc. * Use is subject to license terms. */ var SyncSearchLoader=function(){this.proto="https:"===location.protocol?"https://":"http://",this.server="",this.CDN={host:"cdn.syncsearch.jp",path:"/libs/"},this.ALT={host:"static.syncsearch.jp",path:"/libs/"}};SyncSearchLoader.prototype={load:function(){var url=this.proto+this.CDN.host+this.CDN.path+ssConfig.base+"_version.js?d="+(new Date).getTime(),xhr=this.createAjaxRequest();try{xhr.open("GET",url,!0),xhr.timeout=500,xhr.onreadystatechange=function(){4==xhr.readyState&&(200==xhr.status?(ssLoader.server=ssLoader.CDN,eval(xhr.responseText)):0==xhr.status&&ssLoader.loadScript())},xhr.send(null)}catch(t){ssLoader.loadScript()}},createAjaxRequest:function(){var t;if(window.XMLHttpRequest)t=new XMLHttpRequest;else try{t=new ActiveXObject("Msxml2.XMLHTTP")}catch(e){try{t=new ActiveXObject("Microsoft.XMLHTTP")}catch(t){}}return t},loadScript:function(t){this.server=this.ALT;var t=this.proto+this.ALT.host+this.ALT.path+ssConfig.base+"_version.js?d="+(new Date).getTime(),e=document.getElementsByTagName("head").item(0),s=document.createElement("script");s.setAttribute("type","text/javascript"),s.setAttribute("charset","utf-8"),s.setAttribute("src",t),e.appendChild(s)},init:function(initObj,version){var url=this.proto+this.server.host+this.server.path+ssConfig.base+"_"+version+".min.js";"undefined"!=typeof SS_DEV_SCRIPT&&(url=SS_DEV_SCRIPT);var script=document.createElement("script");script.setAttribute("type","text/javascript"),script.setAttribute("charset","utf-8"),script.setAttribute("src",url);var done=!1;script.onload=script.onreadystatechange=function(){done||this.readyState&&"loaded"!==this.readyState&&"complete"!==this.readyState||(done=!0,eval(initObj+".init()"))},document.body.appendChild(script)}};var ssLoader=new SyncSearchLoader;ssLoader.load();