1 |
- !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?module.exports=e():"function"==typeof define&&define.amd?define(e):t.TWEEN=e()}(this,(function(){"use strict";var t,e,n="undefined"==typeof self&&"undefined"!=typeof process&&process.hrtime?function(){var t=process.hrtime();return 1e3*t[0]+t[1]/1e6}:"undefined"!=typeof self&&void 0!==self.performance&&void 0!==self.performance.now?self.performance.now.bind(self.performance):void 0!==Date.now?Date.now:function(){return(new Date).getTime()},i=function(){function t(){this._tweens={},this._tweensAddedDuringUpdate={}}return t.prototype.getAll=function(){var t=this;return Object.keys(this._tweens).map((function(e){return t._tweens[e]}))},t.prototype.removeAll=function(){this._tweens={}},t.prototype.add=function(t){this._tweens[t.getId()]=t,this._tweensAddedDuringUpdate[t.getId()]=t},t.prototype.remove=function(t){delete this._tweens[t.getId()],delete this._tweensAddedDuringUpdate[t.getId()]},t.prototype.update=function(t,e){var i=Object.keys(this._tweens);if(0===i.length)return!1;for(t=void 0!==t?t:n();i.length>0;){this._tweensAddedDuringUpdate={};for(var r=0;r<i.length;r++){var a=this._tweens[i[r]];a&&!1===a.update(t)&&!e&&delete this._tweens[i[r]]}i=Object.keys(this._tweensAddedDuringUpdate)}return!0},t}(),r={Linear:{None:function(t){return t}},Quadratic:{In:function(t){return t*t},Out:function(t){return t*(2-t)},InOut:function(t){return(t*=2)<1?.5*t*t:-.5*(--t*(t-2)-1)}},Cubic:{In:function(t){return t*t*t},Out:function(t){return--t*t*t+1},InOut:function(t){return(t*=2)<1?.5*t*t*t:.5*((t-=2)*t*t+2)}},Quartic:{In:function(t){return t*t*t*t},Out:function(t){return 1- --t*t*t*t},InOut:function(t){return(t*=2)<1?.5*t*t*t*t:-.5*((t-=2)*t*t*t-2)}},Quintic:{In:function(t){return t*t*t*t*t},Out:function(t){return--t*t*t*t*t+1},InOut:function(t){return(t*=2)<1?.5*t*t*t*t*t:.5*((t-=2)*t*t*t*t+2)}},Sinusoidal:{In:function(t){return 1-Math.cos(t*Math.PI/2)},Out:function(t){return Math.sin(t*Math.PI/2)},InOut:function(t){return.5*(1-Math.cos(Math.PI*t))}},Exponential:{In:function(t){return 0===t?0:Math.pow(1024,t-1)},Out:function(t){return 1===t?1:1-Math.pow(2,-10*t)},InOut:function(t){return 0===t?0:1===t?1:(t*=2)<1?.5*Math.pow(1024,t-1):.5*(2-Math.pow(2,-10*(t-1)))}},Circular:{In:function(t){return 1-Math.sqrt(1-t*t)},Out:function(t){return Math.sqrt(1- --t*t)},InOut:function(t){return(t*=2)<1?-.5*(Math.sqrt(1-t*t)-1):.5*(Math.sqrt(1-(t-=2)*t)+1)}},Elastic:{In:function(t){return 0===t?0:1===t?1:-Math.pow(2,10*(t-1))*Math.sin(5*(t-1.1)*Math.PI)},Out:function(t){return 0===t?0:1===t?1:Math.pow(2,-10*t)*Math.sin(5*(t-.1)*Math.PI)+1},InOut:function(t){return 0===t?0:1===t?1:(t*=2)<1?-.5*Math.pow(2,10*(t-1))*Math.sin(5*(t-1.1)*Math.PI):.5*Math.pow(2,-10*(t-1))*Math.sin(5*(t-1.1)*Math.PI)+1}},Back:{In:function(t){var e=1.70158;return t*t*((e+1)*t-e)},Out:function(t){var e=1.70158;return--t*t*((e+1)*t+e)+1},InOut:function(t){var e=2.5949095;return(t*=2)<1?t*t*((e+1)*t-e)*.5:.5*((t-=2)*t*((e+1)*t+e)+2)}},Bounce:{In:function(t){return 1-r.Bounce.Out(1-t)},Out:function(t){return t<1/2.75?7.5625*t*t:t<2/2.75?7.5625*(t-=1.5/2.75)*t+.75:t<2.5/2.75?7.5625*(t-=2.25/2.75)*t+.9375:7.5625*(t-=2.625/2.75)*t+.984375},InOut:function(t){return t<.5?.5*r.Bounce.In(2*t):.5*r.Bounce.Out(2*t-1)+.5}}},a={Linear:function(t,e){var n=t.length-1,i=n*e,r=Math.floor(i),s=a.Utils.Linear;return e<0?s(t[0],t[1],i):e>1?s(t[n],t[n-1],n-i):s(t[r],t[r+1>n?n:r+1],i-r)},Bezier:function(t,e){for(var n=0,i=t.length-1,r=Math.pow,s=a.Utils.Bernstein,o=0;o<=i;o++)n+=r(1-e,i-o)*r(e,o)*t[o]*s(i,o);return n},CatmullRom:function(t,e){var n=t.length-1,i=n*e,r=Math.floor(i),s=a.Utils.CatmullRom;return t[0]===t[n]?(e<0&&(r=Math.floor(i=n*(1+e))),s(t[(r-1+n)%n],t[r],t[(r+1)%n],t[(r+2)%n],i-r)):e<0?t[0]-(s(t[0],t[0],t[1],t[1],-i)-t[0]):e>1?t[n]-(s(t[n],t[n],t[n-1],t[n-1],i-n)-t[n]):s(t[r?r-1:0],t[r],t[n<r+1?n:r+1],t[n<r+2?n:r+2],i-r)},Utils:{Linear:function(t,e,n){return(e-t)*n+t},Bernstein:function(t,e){var n=a.Utils.Factorial;return n(t)/n(e)/n(t-e)},Factorial:(t=[1],function(e){var n=1;if(t[e])return t[e];for(var i=e;i>1;i--)n*=i;return t[e]=n,n}),CatmullRom:function(t,e,n,i,r){var a=.5*(n-t),s=.5*(i-e),o=r*r;return(2*e-2*n+a+s)*(r*o)+(-3*e+3*n-2*a-s)*o+a*r+e}}},s=function(){function t(){}return t.nextId=function(){return t._nextId++},t._nextId=0,t}(),o=function(){function t(t,e){void 0===e&&(e=c),this._object=t,this._group=e,this._isPaused=!1,this._pauseStart=0,this._valuesStart={},this._valuesEnd={},this._valuesStartRepeat={},this._duration=1e3,this._initialRepeat=0,this._repeat=0,this._yoyo=!1,this._isPlaying=!1,this._reversed=!1,this._delayTime=0,this._startTime=0,this._easingFunction=c.Easing.Linear.None,this._interpolationFunction=c.Interpolation.Linear,this._chainedTweens=[],this._onStartCallbackFired=!1,this._id=c.nextId(),this._isChainStopped=!1}return t.prototype.getId=function(){return this._id},t.prototype.isPlaying=function(){return this._isPlaying},t.prototype.isPaused=function(){return this._isPaused},t.prototype.to=function(t,e){for(var n in t)this._valuesEnd[n]=t[n];return void 0!==e&&(this._duration=e),this},t.prototype.duration=function(t){return this._duration=t,this},t.prototype.start=function(t){if(this._isPlaying)return this;if(this._group.add(this),this._repeat=this._initialRepeat,this._reversed)for(var e in this._reversed=!1,this._valuesStartRepeat)this._swapEndStartRepeatValues(e),this._valuesStart[e]=this._valuesStartRepeat[e];return this._isPlaying=!0,this._isPaused=!1,this._onStartCallbackFired=!1,this._isChainStopped=!1,this._startTime=void 0!==t?"string"==typeof t?c.now()+parseFloat(t):t:c.now(),this._startTime+=this._delayTime,this._setupProperties(this._object,this._valuesStart,this._valuesEnd,this._valuesStartRepeat),this},t.prototype._setupProperties=function(t,e,n,i){for(var r in n){var a=t[r],s=Array.isArray(a),o=s?"array":typeof a,u=!s&&Array.isArray(n[r]);if("undefined"!==o&&"function"!==o){if(u){var c=n[r];if(0===c.length)continue;c=c.map(this._handleRelativeValue.bind(this,a)),n[r]=[a].concat(c)}if("object"!==o&&!s||!a||u)void 0===e[r]&&(e[r]=a),s||(e[r]*=1),i[r]=u?n[r].slice().reverse():e[r]||0;else{for(var h in e[r]=s?[]:{},a)e[r][h]=a[h];i[r]=s?[]:{},this._setupProperties(a,e[r],n[r],i[r])}}}},t.prototype.stop=function(){return this._isChainStopped||(this._isChainStopped=!0,this.stopChainedTweens()),this._isPlaying?(this._group.remove(this),this._isPlaying=!1,this._isPaused=!1,this._onStopCallback&&this._onStopCallback(this._object),this):this},t.prototype.end=function(){return this.update(1/0),this},t.prototype.pause=function(t){return this._isPaused||!this._isPlaying||(this._isPaused=!0,this._pauseStart=void 0===t?c.now():t,this._group.remove(this)),this},t.prototype.resume=function(t){return this._isPaused&&this._isPlaying?(this._isPaused=!1,this._startTime+=(void 0===t?c.now():t)-this._pauseStart,this._pauseStart=0,this._group.add(this),this):this},t.prototype.stopChainedTweens=function(){for(var t=0,e=this._chainedTweens.length;t<e;t++)this._chainedTweens[t].stop();return this},t.prototype.group=function(t){return this._group=t,this},t.prototype.delay=function(t){return this._delayTime=t,this},t.prototype.repeat=function(t){return this._initialRepeat=t,this._repeat=t,this},t.prototype.repeatDelay=function(t){return this._repeatDelayTime=t,this},t.prototype.yoyo=function(t){return this._yoyo=t,this},t.prototype.easing=function(t){return this._easingFunction=t,this},t.prototype.interpolation=function(t){return this._interpolationFunction=t,this},t.prototype.chain=function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return this._chainedTweens=t,this},t.prototype.onStart=function(t){return this._onStartCallback=t,this},t.prototype.onUpdate=function(t){return this._onUpdateCallback=t,this},t.prototype.onRepeat=function(t){return this._onRepeatCallback=t,this},t.prototype.onComplete=function(t){return this._onCompleteCallback=t,this},t.prototype.onStop=function(t){return this._onStopCallback=t,this},t.prototype.update=function(t){var e,n;if(t>this._startTime+this._duration&&!this._isPlaying)return!1;if(this.isPlaying||this.start(t),t<this._startTime)return!0;!1===this._onStartCallbackFired&&(this._onStartCallback&&this._onStartCallback(this._object),this._onStartCallbackFired=!0),n=(t-this._startTime)/this._duration,n=0===this._duration||n>1?1:n;var i=this._easingFunction(n);if(this._updateProperties(this._object,this._valuesStart,this._valuesEnd,i),this._onUpdateCallback&&this._onUpdateCallback(this._object,n),1===n){if(this._repeat>0){for(e in isFinite(this._repeat)&&this._repeat--,this._valuesStartRepeat)this._yoyo||"string"!=typeof this._valuesEnd[e]||(this._valuesStartRepeat[e]=this._valuesStartRepeat[e]+parseFloat(this._valuesEnd[e])),this._yoyo&&this._swapEndStartRepeatValues(e),this._valuesStart[e]=this._valuesStartRepeat[e];return this._yoyo&&(this._reversed=!this._reversed),void 0!==this._repeatDelayTime?this._startTime=t+this._repeatDelayTime:this._startTime=t+this._delayTime,this._onRepeatCallback&&this._onRepeatCallback(this._object),!0}this._onCompleteCallback&&this._onCompleteCallback(this._object);for(var r=0,a=this._chainedTweens.length;r<a;r++)this._chainedTweens[r].start(this._startTime+this._duration);return this._isPlaying=!1,!1}return!0},t.prototype._updateProperties=function(t,e,n,i){for(var r in n)if(void 0!==e[r]){var a=e[r]||0,s=n[r],o=Array.isArray(t[r]),u=Array.isArray(s);!o&&u?t[r]=this._interpolationFunction(s,i):"object"==typeof s&&s?this._updateProperties(t[r],a,s,i):"number"==typeof(s=this._handleRelativeValue(a,s))&&(t[r]=a+(s-a)*i)}},t.prototype._handleRelativeValue=function(t,e){return"string"!=typeof e?e:"+"===e.charAt(0)||"-"===e.charAt(0)?t+parseFloat(e):parseFloat(e)},t.prototype._swapEndStartRepeatValues=function(t){var e=this._valuesStartRepeat[t];"string"==typeof this._valuesEnd[t]?this._valuesStartRepeat[t]=this._valuesStartRepeat[t]+parseFloat(this._valuesEnd[t]):this._valuesStartRepeat[t]=this._valuesEnd[t],this._valuesEnd[t]=e},t}(),u=this&&this.__extends||(e=function(t,n){return(e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])})(t,n)},function(t,n){function i(){this.constructor=t}e(t,n),t.prototype=null===n?Object.create(n):(i.prototype=n.prototype,new i)}),c=new(function(t){function e(){var e=null!==t&&t.apply(this,arguments)||this;return e.version="18.5.0",e.now=n,e.Group=i,e.Easing=r,e.Interpolation=a,e.nextId=s.nextId,e.Tween=o,e}return u(e,t),e}(i));return c}));var t=!1,e=0,n=0,i=0,r=0,a=0,s=0,o=0,u=0;const c={idx:0,nextId:null,title:"瑶里景区",backurl:"../",descript:"瑶里,古名“窑里”,因是景德镇陶瓷发祥地而得名,从唐代中叶开始便有生产陶瓷的手工作坊。瑶里位于举世闻名的瓷都东北端,地处三大世界文化遗产的中心,素有“瓷之源,茶之乡,林之海”的美称,是国家重点风景名胜区、国家历史文化名镇、国家AAAA级风景区、国家矿山公园、国家森林公园、国家重点文物保护单位、国家自然与文化双遗产。",src:[{id:1,name:"guzhen",title:"千年古镇",thumb:"yao/guzhen1k_b.jpg",descript:"瑶里景区标志是“垚”字造型,古代同“尧”,形容山体的高大。传说瑶里古时曾叫做“垚里”,意为高山中的部落,垚也是文字中最土的字,暗含了这里“筑土为器”,是景德镇陶瓷的发祥地。垚也曾是中古帝陶唐氏之号,后用来借指贤明、能干的君主或圣人。这一艺术造型即由垚字变化而来。"},{id:2,name:"fangmingqingguqiao",title:"仿明清古桥",thumb:"yao/fangmingqingguqiao1k_b.jpg",descript:"这座石拱桥是仿照明清时期的风格所建,依然成为这里居民和游客提供了很多便利"},{id:3,name:"fuwuqu",title:"服务区",thumb:"yao/fuwuqu1k_b.jpg",descript:"无"},{id:4,name:"chengshicitang",title:"程氏祠堂",thumb:"yao/chengshicitang1k_b.jpg",descript:"程氏宗祠又名“惇睦”堂,背靠狮山,面临瑶河,始建于明代中叶,清代道光年间重新整修过。由于风水的缘故,其建筑风格不同于其他祠堂,上、中、下三堂的朝向各不相同。建筑内砖雕、石雕和木雕的题材丰富、玲珑剔透、层次分明、栩栩如生,显示了雕刻工匠高超的艺术才能。"},{id:5,name:"chenyiju",title:"陈毅居",thumb:"yao/chenyiju1k_b.jpg",descript:"现在来到的是陈毅旧居。首先和大家介绍下这栋房子。这栋房子是清朝嘉庆年间吴氏家族登仕郎吴容光家的敬义堂。是给吴氏子孙读书所用的书斋。这个房子落成的时候特意在院子里种了棵桂花树,寓意家中如有中举的士子能够蟾宫折桂受到世人的尊捧。后来废除私塾后空置。而在1937年陈毅到达瑶里,就把这栋房子作为陈毅办公和居住的场所。在一楼办公,二楼居住。"},{id:6,name:"guchengqiang",title:"古城墙",thumb:"yao/guchengqiang1k_b.jpg",descript:"无"},{id:7,name:"gushu",title:"古树",thumb:"yao/gushu1k_b.jpg",descript:"无"},{id:8,name:"shoupiaochu",title:"售票处",home:{T:90,R:100},thumb:"yao/shoupiaochu1k_b.jpg",descript:"汪胡生态旅游区距瑶里瓷茶古镇13公里,平均海拔七百多米。区内峰峦叠嶂,山奇石秀,到处古木参天,翠竹如海,森林覆盖率达到98%,景色十分怡人。由于海拔高度和自然环境的原因,那里经常是云雾缭绕,四季气候分明。"},{id:9,name:"xianrenqiao",title:"仙人桥",home:{T:80,R:90},thumb:"yao/xianrenqiao1k_b.jpg",descript:"无"},{id:10,name:"nanshanpubu",title:"南山瀑布",home:{T:70,R:100},thumb:"yao/nanshanpubu1k_b.jpg",descript:"南山瀑布就位于瑶里汪湖的高际山下,是一个跌水瀑布,主要由主瀑、石花瀑、飞龙瀑、飘锦瀑组成,四瀑景致瀑不同。瀑布群全长400余米,总落差220米,内有缓坡、有断岩、山体岩石通体光滑完整,四周毛竹林密集,众多奇石出露。其主瀑南山瀑布宽有二十多米,落差一百多米,真是“岩同干仞、瀑布飞流、声如霹雳、势如云霞”。洪水季节,只见飞流直下,声震山野,数里之外可闻其声,干旱季节也是牵丝垂链,且刚中带柔,别具风采。"},{id:11,name:"xiannvtan",title:"仙女潭",home:{T:85,R:70},thumb:"yao/xiannvtan1k_b.jpg",descript:"汪胡生态旅游区距瑶里瓷茶古镇13公里,平均海拔七百多米。区内峰峦叠嶂,山奇石秀,到处古木参天,翠竹如海,森林覆盖率达到98%,景色十分怡人。由于海拔高度和自然环境的原因,那里经常是云雾缭绕,四季气候分明。"},{id:12,name:"kaitianpidi",title:"开天辟地",home:{T:80,R:60},thumb:"yao/kaitianpidi1k_b.jpg",descript:"瑶里的森林覆盖率是非常高的,在大片树林中,许多是保存完好的原始植被和原始次生植被,这片对外开放的原始林只是其中的一小部分,是当地宗族的风水林。提起原始森林,总是给人们一种阴森、神秘、恐怖感觉,但这片森林不但是春华秋实、冬暖夏凉,而且给人的是一种深邃、幽静和浪漫的感觉。"},{id:13,name:"yaolihangpai",title:"瑶里航拍",home:{T:95,R:70},thumb:"yao/yaolihangpai1k_b.jpg",descript:"无人机航拍瑶里景区,从空中鸟瞰瑶里美景"}]};function h(){const t=window.location.search,e=new URLSearchParams(t);let n=e.get("id")?e.get("id"):-1,i=n>c.src.length?c.src.length-1:n,r=e.get("backurl")?e.get("backurl"):"../";if(c.backurl=r,-1!==i){document.getElementById("descriptTitle").innerHTML=c.src[i].title,document.getElementById("descriptContent").innerHTML=d(c.src[i].descript);const t=document.getElementById("cover");t.src="./yao/"+c.src[i].name+"4k_f.jpg",t.setAttribute("data-id",i)}else{i=0;document.getElementById("descriptTitle").innerHTML=c.title;document.getElementById("descriptContent").innerHTML=d(c.descript);document.getElementById("cover").setAttribute("data-id",i)}c.idx=i,console.log("panoId",i);document.getElementById("listTitle").innerHTML="剧集列表("+c.src.length+"集全)";for(var a=document.getElementById("listContent");a.firstChild;)a.removeChild(a.firstChild);let s=0;for(let t of c.src){const e=document.createElement("div");e.className="pano",t.id-1==1*n&&(e.className="panoSelect"),s=t.id,1==s&&(e.style.marginLeft=0),e.setAttribute("data-id",s);const i=document.createElement("div");i.className="title",i.innerHTML=t.title;const r=document.createElement("div");r.className="thumb";const o=document.createElement("img");o.src="./yao/"+t.name+"1k_f.jpg",r.appendChild(o),e.appendChild(i),e.appendChild(r),a.appendChild(e)}if(-1!=n){const t=document.getElementsByClassName("thumb"),e=(t.length>1&&t[1].clientWidth?t[1].clientWidth:180)*n,i={x:document.getElementById("listContent").scrollLeft,y:0};new TWEEN.Tween(i).to({x:e,y:200},1e3).easing(TWEEN.Easing.Quadratic.Out).onUpdate(()=>{document.getElementById("listContent").scrollLeft=i.x}).start()}document.addEventListener("keyup",_),document.getElementById("play").addEventListener("click",f)}function l(t){const e=document.getElementById("listContent").childNodes;for(let t=0;t<e.length-1;t++)"panoSelect"===e[t].className&&(e[t].className="pano");if(t){document.getElementById("listContent").firstChild.className="panoSelect";document.getElementById("play").style.backgroundImage='url("./yaoimages/play4.png")',document.getElementById("listContent").scrollLeft=0;let t=0;document.getElementById("descriptTitle").innerHTML=c.src[t].title,document.getElementById("descriptContent").innerHTML=d(c.src[t].descript);const e=document.getElementById("cover");e.src="./yao/"+c.src[t].name+"1k_f.jpg",e.setAttribute("data-id",t)}else{document.getElementById("play").style.backgroundImage='url("./yaoimages/play_click.png")'}}function d(t){var e=t;return e.length>160&&(e=e.substr(0,160)+"..."),e}function p(t){const e=document.getElementById("listContent").childNodes;for(let n=0;n<e.length;n++)if("panoSelect"===e[n].className){e[n].className="pano";let i=-1;i=t?n===e.length-1?0:n+1:0===n?e.length-1:n-1,c.idx=i,e[i].className="panoSelect",document.getElementById("descriptTitle").innerHTML=c.src[c.idx].title,document.getElementById("descriptContent").innerHTML=d(c.src[c.idx].descript);const r=document.getElementById("cover");r.src="./yao/"+c.src[i].name+"1k_f.jpg",r.setAttribute("data-id",i);const a=document.getElementsByClassName("thumb"),s=(a.length>1&&a[1].clientWidth?a[1].clientWidth:180)*i,o={x:document.getElementById("listContent").scrollLeft,y:0};new TWEEN.Tween(o).to({x:s,y:200},1e3).easing(TWEEN.Easing.Quadratic.Out).onUpdate(()=>{document.getElementById("listContent").scrollLeft=o.x}).start();n=e.length}}function f(){const t="jingqu.html?id="+document.getElementById("cover").getAttribute("data-id")+"&backurl="+c.backurl;window.location.href=t}function _(t){switch(t.keyCode){case 38:l(!1);break;case 40:l(!0);break;case 37:p(!1);break;case 39:p(!0)}}function m(){requestAnimationFrame(m),TWEEN.update()}h(),m();var y=new tvSysBtnBind({id:"Jdoc",className:"ctrlBtn",currentClass:"current",keyRemoveDefault:!1,effect:"base",currentIndex:0,onLoad:function(t){},onPress:function(){this.event.keyCode},onEnterPress:function(){f()},onBack:function(){const t=c.backurl;window.location.href=t}});window.onBackEvent=function(){const t=c.backurl;window.location.href=t};
|