var _____WB$wombat$assign$function_____ = function(name) {return (self._wb_wombat && self._wb_wombat.local_init && self._wb_wombat.local_init(name)) || self[name]; }; if (!self.__WB_pmw) { self.__WB_pmw = function(obj) { this.__WB_source = obj; return this; } } { let window = _____WB$wombat$assign$function_____("window"); let self = _____WB$wombat$assign$function_____("self"); let document = _____WB$wombat$assign$function_____("document"); let location = _____WB$wombat$assign$function_____("location"); let top = _____WB$wombat$assign$function_____("top"); let parent = _____WB$wombat$assign$function_____("parent"); let frames = _____WB$wombat$assign$function_____("frames"); let opener = _____WB$wombat$assign$function_____("opener"); var app=new Vue({el:"#app",data:{count:"1102",title:"Запустить кораблик",selected:"",nowColorShip:"#FFFFFF",nowColorMessage:"#9f2d20",nowColorIcon:"#707070",colorsShip:[{colorShip:"#FFFFFF"},{colorShip:"#F6CB62"},{colorShip:"#9BCCC9"},{colorShip:"#DF7166"}],isActive:!1,letterings:[{message:"Хранить традиции!"},{message:"Не сломать зубы о гранит науки!"},{message:"Учиться только на «пять»!"},{message:"Никогда не падать духом!"},{message:"Получить профессию мечты!"},{message:"Пусть родители гордятся!"},{message:"Чтобы на все хватало сил!"},{message:"Насыщенной студенческой жизни!"},{message:"Смело идти к намеченной цели!"}],svgIcons:[{svgIcon:'',svgColor:"#707070"},{svgIcon:'\n\t\t',svgColor:"#FFC107"},{svgIcon:'',svgColor:"#9F2D20"},{svgIcon:'',svgColor:"#4D4D4D"},{svgIcon:'',svgColor:"#364F6B"},{svgIcon:'',svgColor:"#DB1F4D"}],nowIcon:""},mounted(){this.selected=this.letterings[0].message,this.nowIcon=this.svgIcons[0].svgIcon;for(var c=document.querySelectorAll(".player .ci"),a=0,l=c.length;athis.count=c.data.counter-1)},watch:{nowColorIcon:function(c){for(var a=document.querySelectorAll(".player .ci"),l=0,s=a.length;ldocument.getElementById("game").classList.add("move"),1e3),document.querySelector("#game.toend")&&document.getElementById("game").classList.add("end")})),document.querySelector(".splayer").addEventListener("animationend",(function(){document.querySelector("#game.move")&&document.getElementById("game").classList.add("toend")})),document.querySelector(".tplayer").addEventListener("animationend",(function(){document.querySelector("#game.end")&&setTimeout(()=>document.getElementById("app").classList.add("close"),2e3)}))},changeColorShip:function(c){this.nowColorShip=c},changeIcon:function(c,a){this.nowIcon=c,this.nowColorIcon=a},share:function(){navigator.share&&navigator.share({title:"Кораблик Надежды СПбГУ",url:"https://dreams.spbu.ru/",text:"Я запустил свой кораблик!"}).then(()=>{console.log("Thanks for sharing!")}).catch(console.error)},checkShareApi:function(){return navigator.share&&screen.width<960}}}); }