Yourator 新創・數位人才求職平台|讓求職視野更開闊

  • 2022-01-10Tarehe ya ukusanyaji
  • 2022-02-15Imesasishwa
Yourator 新創・數位人才求職平台|讓求職視野更開闊
  • Anwani ya wavuti:www.yourator.co
  • IP ya Seva:104.21.10.168
  • Maelezo ya tovuti:

jina la kikoa:www.yourator.coUthamini

kuhusu 500~20000

jina la kikoa:www.yourator.comtiririko

232

jina la kikoa:www.yourator.coNzuri au mbaya

Mafanikio na kupungua. Kupanda na kushuka si mara kwa mara bahati nzuri huleta bahati mbaya

tovuti:Yourator 新創・數位人才求職平台|讓求職視野更開闊Uzito

1

tovuti:Yourator 新創・數位人才求職平台|讓求職視野更開闊IP

104.21.10.168

tovuti:Yourator 新創・數位人才求職平台|讓求職視野更開闊yaliyomo

Yourator新創・數位人才求職平台|讓求職視野更開闊|找工作、求職、徵才$(document).on('turbolinks:load',function(){varurl=window.location.href;dataLayer.push({'event':'peView','virtualUrl':url});});(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':newDate().getTime(),event:'gtm.js'});varf=d.getElementsByTName(s)[0],j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src='///gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);})(window,document,'script','dataLayer','GTM-N2QJ8B');[v-cloak]{display:none;}//oidrailsvuecomponentregistercomponentduplicated.(function(){constfn=window.Vue.component;window.Vue.component=function(componentName){if(!window.Vue.options.components[componentName]){fn.apply(window.Vue,arguments);}}Vue.use({install:()=>{consthelpers={methods:{tracking:(name,payload,version)=>{if(!name){return;}leturl=''if(version==='v3'){url+=`/api/v3/ec3?name=${name}`}else{url+=`/api/v3/ec?name=${name}`}if(payload){url+=`&payload=${encodeURIComponent(JSON.stringify(payload))}`}$.ajax({type:'GET',url:url,beforeSend:function(xhr){xhr.setRequestHeader('X-CSRF-Token',$('meta[name="csrf-token"]').attr('content'));}}).done(function(data){//console.log('success')}).fail(function(){//console.log('failed')});}}}Vue.prototype.helpers=helpersVue.helpers=helpers}})Vue.use({install:(Vue,options)=>{constdefaultEvent=function(){if(typeofTurbo!=='undefined'){return'turbo:visit';}return'turbolinks:visit';}consthandleVueDestruction=function(vue){constevent=vue.$options.destroyEvent||defaultEvent();document.addEventListener(event,functionteardown(){vue.$destroy();document.removeEventListener(event,teardown);});}Vue.mixin({beforeMount:function(){if(this===this.$root&&this.$el){handleVueDestruction(this);//cacheoriginalelementthis.$cachedHTML=this.$el.outerHTML;//registerroothooktorestoreoriginalelementondestroythis.$once('hook:destroyed',function(){if(this.$el.parentNode)this.$el.outerHTML=this.$cachedHTML});}}})}})Vue.use(VueLazyload)Vue.use(VueObserveVisibility)}());window.ymodals={commands:[]}window.yFlashMesses={commands:[]}window.onload=()=>{window.appReady=true}關鍵字搜尋{{sedItemsDescription}}if(window.Vue){Vue.component('y-search-bar',{template:'#y-search-bar-template',mixins:[Vue.helpers],model:{prop:'term',event:'input'},props:{className:{type:String,required:false,default(){return''}},iconRight:{type:Boolean,required:false,default(){returnfalse}},placeholderColor:{type:String,required:false,default(){return'#9B9B9B'}},placeholder:{type:String,required:false,default(){return'輸入關鍵字...'}},autocomplete:{type:Boolean,required:false,default(){returnfalse}},autocompleteItems:{type:Array,required:false,default(){return[]}},itemText:{type:String,required:false,default(){return'name'}},itemValue:{type:String,required:false,default(){return'name'}},term:{type:String,required:false,default(){return''}},sedItemsDescription:{type:String,required:false,default(){return'近期搜尋紀錄'}},sedItems:{type:Array,required:false,default(){return[]}},type:{type:String,required:false,default(){return'global'}},clearAndSearch:{type:Boolean,default:false}},data:function(){return{previousTerm:'',idCount:1,showCompleteMenu:false,currentItem:0,cacheTerm:''}},methods:{submitTerm(term){if(term.trim()===''||event.isComposing)returnfalsethis.$emit('submit',{type:'term',id:this.idCount,name:term},'add')this.idCount++this.cleanTerm()this.cleanAutocompleteItems()this.hideCompleteMenu()this.$refs['search-input'].blur()this.tracking('search_site:search_term_submit',{term:term,type:this.type})},cleanTerm(){this.$emit('clear')this.term=''},cleanAutocompleteItems(){this.autocompleteItems=[]},hideCompleteMenu(){this.showCompleteMenu=false},showSedItems(){this.showCompleteMenuHandler()},getCompleteItems(){this.$emit('input',this.term)if(!this.autocomplete)returnfalseif(this.term!==this.previousTerm){this.previousTerm=this.term}this.showCompleteMenuHandler()},showCompleteMenuHandler(){this.currentItem=0this.showCompleteMenu=true},getFormattedItem(item){letescapeTerm=this.escapeHtml(this.term)letescapeItem=this.escapeHtml(item)letcharIndex=escapeItem.toLowerCase().indexOf(escapeTerm.toLowerCase())return(charIndex>-1&&escapeTerm.trim()!=='')?(escapeItem.substring(0,charIndex)+`${escapeItem.substring(charIndex,charIndex+escapeTerm.length)}`+escapeItem.substring(charIndex+escapeTerm.length)):escapeItem},escapeHtml(unsafe){returnunsafe.replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"039;")},getCompleteMenuItems(){if(this.term!==''&&this.autocompleteItems.length>0){returnthis.autocompleteItems}if(this.previousTerm===''&&this.sedItems.length>0){returnthis.sedItems}return[]},moveItem(status){//itemsCountplus1becauseofcacheTerm//cacheTermisuser'sinputconstmenuItems=this.getCompleteMenuItems()constitemsCount=menuItems.length+1if(this.currentItem===0)this.cacheTerm=this.termthis.currentItem=status==='previous'?(this.currentItem+itemsCount-1)%itemsCount:(this.currentItem+1)%itemsCountthis.term=this.currentItem===0?this.cacheTerm:menuItems[this.currentItem-1][this.itemValue]},focus(){this.$refs['search-input'].focus()}}});}公司職缺新創實習專欄企業網誌中高階獵才🔥2024年後轉職專區刊登職缺登入註冊 找公司找工作看專欄$(document).ready(function(){varnbarHeight=$(window).width()近期搜尋紀錄{{record}}if(window.Vue){Vue.component('mobile-nbar-search',{template:'#mobile-nbar-search',model:{prop:'active',event:'change'},props:{active:Boolean},data:function(){return{term:'',searchPlaceholder:'請輸入關鍵字...',searchRecordsDescription:'近期搜尋紀錄',autocompleteItems:[],searchRecords:[],trendKeywords:["遠端","轉職","Golang","日商","AI","MA儲備幹部","JobMenta","FMCG"],searchTimer:null,previousRequest:null}},created(){constsearchRecords=Cookies.get('search_records');this.searchRecords=searchRecords?.split(',').filter(cookie=>cookie!=='[objectObject]')||[]},watch:{active:function(val){if(val){setTimeout(this.$refs['mobile-n-search-bar'].focus,300)document.documentElement.classList.add('disabled-scroll')}else{document.documentElement.classList.remove('disabled-scroll')}}},methods:{updateAutocompleteItems:function(term){this.term=termif(term.trim()===''){this.autocompleteItems=[]returnfalse}if(this.searchTimer)clearTimeout(this.searchTimer)this.searchTimer=setTimeout(this.searchAutocompleteItems,400)},searchAutocompleteItems:function(){if(this.term.trim()==='')returnfalseletself=thisthis.currentRequest=$.ajax({type:'GET',url:`/api/v3/search/search_hint?s=${encodeURIComponent(self.term)}&size=7`,beforeSend:function(xhr){xhr.setRequestHeader('X-CSRF-Token',$('meta[name="csrf-token"]').attr('content'))if(self.previousRequest!=null){self.previousRequest.abort()}}}).done(function(data){self.autocompleteItems=data.payload.ts.slice(0,10)}).fail(function(res){self.autocompleteItems=[]}).always(function(){self.previousRequest=nullself.searchTimer=null})returnthis.currentRequest},updateKeyword:function(data,action){if(action!=='add')returnconstkeywordsSet=newSet([data.name,...this.searchRecords])this.searchRecords=Array.from(keywordsSet).slice(0,5)this.setRecordsToCookie()this.close()location.href=this.generateSearchLink(data.name)},setRecordsToCookie:function(){Cookies.set('search_records',this.searchRecords.join(','),{expires:365})},generateSearchLink:function(keyword){return`/search?s=${keyword}`},close:function(){this.$emit('change',false)},getFormattedItem(item){letescapeTerm=this.escapeHtml(this.term)letescapeItem=this.escapeHtml(item)letcharIndex=escapeItem.toLowerCase().indexOf(escapeTerm.toLowerCase())return(charIndex>-1&&escapeTerm.trim()!=='')?(escapeItem.substring(0,charIndex)+`${escapeItem.substring(charIndex,charIndex+escapeTerm.length)}`+escapeItem.substring(charIndex+escapeTerm.length)):escapeItem},escapeHtml(unsafe){returnunsafe.replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"039;")},clearInput:function(){this.term=''this.autocompleteItems=[]}}})}if(window.Vue){newVue({el:'#mobile-nbar',data:function(){return{showSearchBox:false,}},methods:{toggleSearchBox(){this.showSearchBox=!this.showSearchBox},}})}$('.hamburger-menu').click(function(e){$(this).toggleClass('active');$(".profile-dropdown-block").removeClass("active");$(".mobile-nbar-search").removeClass('active');constisActive=$(this).hasClass("active");if(isActive){$('html').addClass('disabled-scroll');}else{$('html').removeClass('disabled-scroll');}if($(this).parents('.nigation').hasClass('alter-mode')){$('.n-items.alter-mode-n-items').toggleClass('active');}else{$('.n-items:not(.alter-mode-n-items)').toggleClass('active')}e.stopPropation();})$('.n-items-layer').click(function(e){if(e.currentTarget===e.target){$('.hamburger-menu,.n-items,.profile-dropdown-block,.mobile-nbar-search').removeClass('active');$('html').removeClass('disabled-scroll');}})$('.react-mobile-nbar').click(function(e){$('.hamburger-menu,.n-items,.profile-dropdown-block,.mobile-nbar-search').removeClass('active');})$('.mobile-nbar-search-btn').click(function(e){$('.hamburger-menu,.n-items,.profile-dropdown-block').removeClass('active');})$(document).on('turbolinks:load',functionrun_after_load(){$('.n-profile:not(.user-dashboard-nbar__profile)').off('click').on('click',function(e){$(".profile-dropdown-block").toggleClass("active");constisActive=$(".profile-dropdown-block").hasClass("active");$('.hamburger-menu,.n-items,.mobile-nbar-search').removeClass('active');if(isActive){$('html').addClass('disabled-scroll');}else{$('html').removeClass('disabled-scroll');}});$('.logout-btn').off('click').on('click',function(e){//處理FB使用者登出FB.getLoginStatus(function(response){if(response.authResponse){FB.logout();}});});$(".login-btn").off('click').on('click',function(e){login({eventSource:'header_item'});e.preventDefault();});$(".signup-btn").off('click').on('click',function(e){register({eventSource:'header_item'});e.preventDefault();});})關鍵字搜尋{{sedItemsDescription}}if(window.Vue){Vue.component('y-search-bar',{template:'#y-search-bar-template',mixins:[Vue.helpers],model:{prop:'term',event:'input'},props:{className:{type:String,required:false,default(){return''}},iconRight:{type:Boolean,required:false,default(){returnfalse}},placeholderColor:{type:String,required:false,default(){return'#9B9B9B'}},placeholder:{type:String,required:false,default(){return'輸入關鍵字...'}},autocomplete:{type:Boolean,required:false,default(){returnfalse}},autocompleteItems:{type:Array,required:false,default(){return[]}},itemText:{type:String,required:false,default(){return'name'}},itemValue:{type:String,required:false,default(){return'name'}},term:{type:String,required:false,default(){return''}},sedItemsDescription:{type:String,required:false,default(){return'近期搜尋紀錄'}},sedItems:{type:Array,required:false,default(){return[]}},type:{type:String,required:false,default(){return'global'}},clearAndSearch:{type:Boolean,default:false}},data:function(){return{previousTerm:'',idCount:1,showCompleteMenu:false,currentItem:0,cacheTerm:''}},methods:{submitTerm(term){if(term.trim()===''||event.isComposing)returnfalsethis.$emit('submit',{type:'term',id:this.idCount,name:term},'add')this.idCount++this.cleanTerm()this.cleanAutocompleteItems()this.hideCompleteMenu()this.$refs['search-input'].blur()this.tracking('search_site:search_term_submit',{term:term,type:this.type})},cleanTerm(){this.$emit('clear')this.term=''},cleanAutocompleteItems(){this.autocompleteItems=[]},hideCompleteMenu(){this.showCompleteMenu=false},showSedItems(){this.showCompleteMenuHandler()},getCompleteItems(){this.$emit('input',this.term)if(!this.autocomplete)returnfalseif(this.term!==this.previousTerm){this.previousTerm=this.term}this.showCompleteMenuHandler()},showCompleteMenuHandler(){this.currentItem=0this.showCompleteMenu=true},getFormattedItem(item){letescapeTerm=this.escapeHtml(this.term)letescapeItem=this.escapeHtml(item)letcharIndex=escapeItem.toLowerCase().indexOf(escapeTerm.toLowerCase())return(charIndex>-1&&escapeTerm.trim()!=='')?(escapeItem.substring(0,charIndex)+`${escapeItem.substring(charIndex,charIndex+escapeTerm.length)}`+escapeItem.substring(charIndex+escapeTerm.length)):escapeItem},escapeHtml(unsafe){returnunsafe.replace(/&/g,"&").replace(//g,">").replace(/"/g,""").replace(/'/g,"039;")},getCompleteMenuItems(){if(this.term!==''&&this.autocompleteItems.length>0){returnthis.autocompleteItems}if(this.previousTerm===''&&this.sedItems.length>0){returnthis.sedItems}return[]},moveItem(status){//itemsCountplus1becauseofcacheTerm//cacheTermisuser'sinputconstmenuItems=this.getCompleteMenuItems()constitemsCount=menuItems.length+1if(this.currentItem===0)this.cacheTerm=this.termthis.currentItem=status==='previous'?(this.currentItem+itemsCount-1)%itemsCount:(this.currentItem+1)%itemsCountthis.term=this.currentItem===0?this.cacheTerm:menuItems[this.currentItem-1][this.itemValue]},focus(){this.$refs['search-input'].focus()}}});}if(window.Vue){Vue.component('y-new-t',{template:'#y-new-t',props:{to:{type:String,default:'#'},target:{type:String,default:'_blank'}}});}拓展求職視野,找到你的理想工作{{trendKeyword}}varhomeSearchSection=newVue({el:'#home-search-section',mixins:[Vue.helpers],data:function(){return{keyword:'',results:{jobs:[],companies:[],articles:[]},sectionName:{companies:'公司',jobs:'職缺',articles:'專欄'},term:'',searchPlaceholder:'找工作、公司、技能...',autocompleteItems:[],searchRecordsDescription:'近期搜尋紀錄',searchRecords:[],trendKeywords:[],loading:false,error:false,}},methods:{search:function(){this.updateCookie(this.updateSearchRecords)this.updateUrl()},buildQueryString:function(){return`s=${encodeURIComponent(this.keyword)}`},updateCookie:function(_callback){constformerSearchRecords=this.getSearchRecordsFromCookie()constnewSearchRecords=Array.from(newSet([this.keyword,...formerSearchRecords]))Cookies.set('search_records',newSearchRecords.slice(0,5).join(','),{expires:365})if(_callback){_callback()}},getSearchRecordsFromCookie:function(){constsearchRecords=Cookies.get('search_records');returnsearchRecords?.split(',').filter(cookie=>cookie!=='[objectObject]')||[]},searchRecordFormatter:function(records){returnrecords.map((record,index)=>({id:index,name:record,}))},updateSearchRecords:function(){this.searchRecords=this.searchRecordFormatter(this.getSearchRecordsFromCookie())},updateUrl:function(){constbaseUrl='/search'constqueryString=this.buildQueryString()consttargetUrl=queryString.length>0?`${baseUrl}?${queryString}`:baseUrllocation.href=targetUrl},updateKeyword:function(data,action){if(action==='add'){this.keyword=data.namethis.term=data.name}this.tracking('homepe:site_search',{keyword:this.keyword})this.search()},updateAutocompleteItems:function(term){constsize=device!=='mobile'?10:7;if(term.trim()===''){this.term=termthis.autocompleteItems=[]returnfalse}this.term=termletself=thisletcurrentRequest=$.ajax({type:'GET',url:`/api/v3/search/search_hint?s=${encodeURIComponent(term)}&size=${size}`,beforeSend:function(xhr){xhr.setRequestHeader('X-CSRF-Token',$('meta[name="csrf-token"]').attr('content'))if(self.previousRequest!=null){self.previousRequest.abort()}}}).done(function(data){self.autocompleteItems=data.payload.ts.slice(0,20)}).fail(function(res){self.autocompleteItems=[]})self.previousRequest=currentRequest},getInitResources:function(){this.searchRecords=this.getSearchRecordsFromCookie().map((searchRecord,index)=>({id:index,name:searchRecord,}));this.updateTrendKeywords();},updateTrendKeywords:function(){varself=this;self.loading=true;self.trendKeywords=[];$.ajax({type:'GET',url:'/api/v3/keywords',beforeSend:function(xhr){xhr.setRequestHeader('X-CSRF-Token',$('meta[name="csrf-token"]').attr('content'));}}).done(function(data){self.trendKeywords=data.keywords;self.loading=false;}).fail(function(res){self.loading=false;self.error=true;});},},created:function(){this.getInitResources();},});Vue.component('y-atar',{template:'#y-atar',props:{size:{type:[Number,String],default:40},color:{type:String,default:'transparent'}},data:function(){return{}},computed:{styles:function(){return{height:this.convertToUnit(this.size),width:this.convertToUnit(this.size),minWidth:this.convertToUnit(this.size),background:this.color}}},methods:{convertToUnit:function(value){if(value==null||value===''){returnundefined}elseif(isNaN(+value)){returnString(value)}else{return`${Number(value)}px`}}}}){{title}}{{moreLinkText}}Vue.component('y-home-section-title',{template:'#y-home-section-title',props:{iconUrl:{type:String,default:''},title:{type:String,default:''},moreLinkText:{type:String,default:''},moreLinkUrl:{type:String,default:''}},data:function(){return{}},computed:{},methods:{}});Vue.component('y-carousel',{template:'#y-carousel',model:{prop:'pe',event:'input'},props:{mode:{type:String,default:'normal'},cardsToShow:{type:Number,default:3},cardsToScroll:{type:Number,default:1},cardMargin:{type:Number,default:16},showButton:{type:Boolean,default:true},buttonOffset:{type:Number,default:40},playDuration:{type:Number,default:0},pe:{type:Number,default:0},hidePination:{type:Boolean,default:false},minSwipeThreshold:{type:Number,default:0.1},theaterContainerWidth:{type:String,default:'calc(100vw-102px)'},pinationClassName:{type:String,default:''},btnClassName:{type:String,default:''},showEdgeSection:{type:Boolean,default:false}},data:function(){return{touchX:0,touchY:0,verticalSwiping:false,horizontalSwiping:false,transitionEnd:false,left:0,cardsCount:0,cardWidth:0,totalPes:0,currentPe:0,buttonClass:this.showButton?this.btnClassName:(this.btnClassName+'hide')}},mounted:function(){this.startAnimation();window.addEventListener("resize",this.update);this.update();this.goto(this.pe);},updated:function(){this.update();},watch:{playDuration:function(newDuration,oldDuration){this.stopAnimation()this.startAnimation(newDuration)},pe:function(newPe,oldPe){if(newPe!==this.currentPe){this.goto(newPe);}}},beforeDestroy:function(){if(this.playDuration){clearInterval(this.intervalId);}this.removeMobileEventListener();window.removeEventListener("resize",this.update);},computed:{theaterMode:function(){returnthis.mode==='theater';},cardWidthWithMargin:function(){returnthis.theaterMode?this.cardWidth:this.cardWidth+this.cardMargin},isFirstPe:function(){returnthis.currentPe===0;},isLastPe:function(){returnthis.currentPe===this.totalPes-1;}},methods:{getCardWidth:function(){constrect=this.$refs.cards.getBoundingClientRect();if(this.theaterMode){returnthis.$refs.container.getBoundingClientRect().width;}else{return(rect.width-this.cardMargin*(this.cardsToShow-1))/this.cardsToShow;}},update:function(){constslots=this.$slots.default?this.$slots.default.filter(function(vNode){returnvNode.elm.nodeType===Node.ELEMENT_NODE;}):[];if(this.theaterMode){this.cardsCount=slots.length?slots.length-4:0;}else{this.cardsCount=slots.length;}this.cardWidth=this.getCardWidth();this.totalPes=this.theaterMode?this.cardsCount:Math.max(Math.ceil((slots.length-this.cardsToShow)/this.cardsToScroll)+1,0);slots.forEach(function(vNode,index){constel=vNode.elm;el.classList.add('y-carousel__card');if(this.mode!=='theater'){el.style.width=`${this.cardWidth}px`;el.style.minWidth=`${this.cardWidth}px`;}else{el.style.marginLeft=`${this.cardMargin}px`;el.style.width=`${this.cardWidth-this.cardMargin*2}px`;}if(slots[index+1]){el.style.marginRight=`${this.cardMargin}px`;}}.bind(this));this.goto(this.currentPe);},prev:function(){this.goto(this.currentPe-1);},next:function(){this.goto(this.currentPe+1);},goto:function(pe){this.transitionEnd=false;pe=parseInt(parseFloat(pe),10)||0;letleft,triggerLoopif(pe=this.totalPes){if(this.theaterMode){this.triggerLoop='right-end';}else{pe=0;}}left=this.theaterMode?parseInt(((pe+2)*this.cardsToScroll)*this.cardWidthWithMargin*-1):parseInt((pe*this.cardsToScroll)*this.cardWidthWithMargin*-1);if(this.triggerLoop){if(this.transitionCallbackBinded){this.$refs.cards.removeEventListener('transitionend',this.transitionCallbackBinded)}this.transitionCallbackBinded=this.transitionendCallback.bind(this)this.$refs.cards.addEventListener('transitionend',this.transitionCallbackBinded,false)}this.$refs.cards.style.transition='';this.left=this.setLeftPosition(left);if(!this.triggerLoop){this.currentPe=pe;this.$emit('input',pe);}},onMouseEnter:function(e){this.stopAnimation();},onMouseLee:function(e){this.startAnimation();},onTouchStart:function(e){consttouchObj=e.changedTouches[0];this.stopAnimation();if(this.isMultiFinger(e)){//多點觸控不處理return;}this.touchX=touchObj.peX;this.touchY=touchObj.peY;},onTouchMove:function(e){consttouchObj=e.changedTouches[0];constaltX=touchObj.peX-this.touchX;constaltY=touchObj.peY-this.touchY;constthreshold=4;if(this.isMultiFinger(e)||this.verticalSwiping){//多點觸控不處理//使用者上下滑動視窗行為不處理return;}if(!this.verticalSwiping&&!this.horizontalSwiping&&Math.abs(altY)>Math.abs(altX)&&Math.abs(altY)>threshold){this.verticalSwiping=true;return}else{this.horizontalSwiping=true;}this.$refs.cards.style.transition='none';this.setLeftPosition(this.left+altX);e.preventDefault();e.stopPropation();},onTouchEnd:function(e){consttouchObj=e.changedTouches[0];if(this.isMultiFinger(e)||this.verticalSwiping){//多點觸控不處理//使用者上下滑動視窗行為不處理this.verticalSwiping=false;return;}if(this.touchX&&this.touchX!==touchObj.peX){constthreshold=this.cardWidth*this.minSwipeThreshold;constaltX=touchObj.peX-this.touchX;if(altX>0&&Math.abs(altX)>threshold&&(!this.isFirstPe||this.theaterMode)){this.prev();}elseif(altXthreshold&&(!this.isLastPe||this.theaterMode)){this.next();}else{this.goto(this.currentPe);}this.touchX=0;}this.startAnimation();this.horizontalSwiping=false;this.verticalSwiping=false;},stopAnimation:function(){clearInterval(this.intervalId);this.intervalId=null;},isMultiFinger:function(e){returne.touches.length>1;},startAnimation:function(duration=this.playDuration){if(!this.intervalId&&duration){this.intervalId=setInterval(this.next,duration);}},transitionendCallback:function(e){letpe,left;this.transitionEnd=true;if(e.propertyName!=="transform"){return}if(this.triggerLoop){this.$refs.cards.style.transition='none';if(this.triggerLoop=='left-end'){pe=this.totalPes-1;}else{pe=0;}left=parseInt(((pe+2)*this.cardsToScroll)*this.cardWidthWithMargin*-1);//animatethis.left=this.setLeftPosition(left);}this.currentPe=pe;this.$emit('input',pe);this.triggerLoop=null;if(this.transitionCallbackBinded){this.$refs.cards.removeEventListener('transitionend',this.transitionCallbackBinded)}},setLeftPosition:function(left){constreboundThreshold=this.cardWidth;letmaxLeftPosition=0;letminLeftPosition=this.theaterMode?Math.max((this.cardsCount+3-this.cardsToShow),0)*this.cardWidthWithMargin*-1:Math.max((this.cardsCount-this.cardsToShow),0)*this.cardWidthWithMargin*-1if(this.horizontalSwiping){maxLeftPosition=maxLeftPosition+reboundThreshold;minLeftPosition=minLeftPosition-reboundThreshold;}elseif(this.theaterMode&&this.transitionEnd){minLeftPosition=Math.max((this.cardsCount+2-this.cardsToShow),0)*this.cardWidthWithMargin*-1;}left=left>maxLeftPosition?0:left;left=left{this.callSlider()if(!this.tab){this.tab=0this.toggleActiveItem(0)}},300)},updated:function(){this.parseNodes()if(!this.multipleRows){this.setWidths()}},methods:{parseNodes:function(){constt=[]constslot=this.$slots.default||[]constlength=slot.lengthfor(leti=0;i{this.callSlider(this.tab)this.setWidths()},0)},setWidths:function(){const{content,wrapper}=this.$refsconstwidths={wrapper:wrapper?wrapper.clientWidth:0,content:content?content.clientWidth:0}this.isOverflowing=this.widths.wrapperlastItemPosition.left){this.scrollTo('prev')}}if(this.tab===0||!this.isOverflowing){this.scrollOffset=0}elseif(this.isOverflowing){this.scrollOffset=this.calculateOffsetWhenTabUpdated(this.tabNodes[this.tab].elm,this.widths,this.scrollOffset)}},calculateOffsetWhenTabUpdated:function(selectedElement,widths,currentScrollOffset){constclientWidth=selectedElement.clientWYourator 新創・數位人才求職平台|讓求職視野更開闊idthconstoffsetLeft=selectedElement.offsetLeftconstadditionalOffset=40consttotalWidth=widths.wrapper+currentScrollOffsetconstitemOffset=clientWidth+offsetLeftif(offsetLeft1)returnconst{content}=this.$refsthis.startX=this.scrollOffset+e.changedTouches[0].clientXcontent.style.setProperty('transition','none')content.style.setProperty('willChange','transform')},onTouchMove:function(e){//Multi-touchnotprocessif(e.touches.length>1)returnwindow.requestAnimationFrame(()=>{this.scrollOffset=this.startX-e.changedTouches[0].clientX})},onTouchEnd:function(e){this.$emit('touchend',e)window.requestAnimationFrame(()=>{const{content,wrapper}=this.$refsconstmaxScrollOffset=content.clientWidth-wrapper.clientWidthcontent.style.setProperty('transition',null)content.style.setProperty('willChange',null)if(this.scrollOffsetmaxScrollOffset){this.scrollOffset=maxScrollOffset}})}}})Vue.component('y-tab',{template:'#y-tab',props:{activeClass:{type:String,default:''}},data:function(){return{isActive:false,isTouchDevice:(('ontouchstart'inwindow)||(nigator.maxTouchPoints>0)||(nigator.msMaxTouchPoints>0))}},computed:{classes:function(){return{'y-tab':true,'y-tab--active':this.isActive,[this.activeClass]:this.activeClass!==''&&this.isActive}}},methods:{click:function(){event.preventDefault()this.$parent.$emit('clickOnTab',this.$vnode)},toggle:function(){this.isActive=!this.isActive},mouseenter:function(event){this.$emit('mouseenter',event)},mouselee:function(event){this.$emit('mouselee',event)}}});Vue.component('y-scrolling-popup',{template:'#y-scrolling-popup',model:{prop:'active',event:'change'},props:{active:{type:Boolean,default:false},disabled:{type:Boolean,default:false},contentClass:{type:String,default:''},visibleOffsetPercent:{type:Number,default:0,validator:function(value){returnvalue>=0&&value{{job.name}}{{job.company.brand}}{{getLocation}}{{job.salary}}{{job.category.name}}{{t.name}}(function(){Vue.component('y-new-card',{template:'#y-new-card',props:{to:{type:String,default:undefined},target:{type:String,default:'_blank'},shadow:{type:Boolean,default:true}},data:function(){return{}},computed:{element:function(){returnthis.to?'a':'div'},classes:function(){return{'y-new-card':true,'y-new-card--shadow':this.shadow}}},methods:{}})constcreateSimpleElement=function(className,el='div',name=null){returnVue.extend({name:name||className.replace(/__/g,'-'),functional:true,render(h,{data,children}){data.staticClass=(`${className}${data.staticClass||''}`).trim()returnh(el,data,children)}})}constsubElements={'y-new-card-title':createSimpleElement('y-new-card__title'),'y-new-card-subtitle':createSimpleElement('y-new-card__subtitle'),'y-new-card-description':createSimpleElement('y-new-card__description'),'y-new-card-footer':createSimpleElement('y-new-card__footer'),'y-new-card-fab':createSimpleElement('y-new-card__fab')}for(letcomponentinsubElements){Vue.component(component,subElements[component])}})()if(window.Vue){Vue.component('y-new-t',{template:'#y-new-t',props:{to:{type:String,default:'#'},target:{type:String,default:'_blank'}}});}Vue.component('y-atar',{template:'#y-atar',props:{size:{type:[Number,String],default:40},color:{type:String,default:'transparent'}},data:function(){return{}},computed:{styles:function(){return{height:this.convertToUnit(this.size),width:this.convertToUnit(this.size),minWidth:this.convertToUnit(this.size),background:this.color}}},methods:{convertToUnit:function(value){if(value==null||value===''){returnundefined}elseif(isNaN(+value)){returnString(value)}else{return`${Number(value)}px`}}}})Vue.component('y-button',{template:'#y-button',props:{to:{type:String,default:undefined},target:{type:String,default:undefined},color:{type:String,default:''},raised:{type:Boolean,default:false},fab:{type:Boolean,default:false},outline:{type:Boolean,default:false},fullWidth:{type:Boolean,default:false},active:{type:Boolean,default:false}},data:function(){return{}},computed:{element:function(){returnthis.to?'a':'button'},classes:function(){return{'y-button':true,'y-button--default':!this.raised&&!this.fab&&!this.outline,'y-button--raised':this.raised,'y-button--fab':this.fab,'y-button--active':this.active,'y-button--outline':this.outline,'y-button--full-width':this.fullWidth,[this.color]:!this.customColor}},styles:function(){return{backgroundColor:this.customColor&&this.color}},customColor:function(){return['primary','success','error'].findIndex(c=>c===this.color)===-1}},methods:{click:function(e){this.$emit('click',e)}}});Vue.component('y-forite-button',{template:'#y-forite-button',props:{active:{type:Boolean,required:true},followId:{type:[Number,String],required:true},followType:{type:String,required:true}},computed:{classes:function(){return{'y-forite-button':true,'active':this.active}}}})Vue.component('y-job-card',{template:'#y-job-card',mixins:[Vue.helpers],props:{job:{type:Object,required:true,default:function(){return{id:0,name:'',content:'',salary:'NT$0-0(月薪)',country:{code:'TW',name:'台灣'},city:{code:'TPE',name:'台北市'},category:{id:0,name:''},ts:[{id:0,name:''}],company:{id:0,brand:'',enName:'',logo:'',badges:[],},isFollowing:false}}},jobLink:{type:String,default:''},hideDescription:{type:Boolean,default:false},hideTs:{type:Boolean,default:false},hideForiteButton:{type:Boolean,default:false},hideCompany:{type:Boolean,default:false},source:{type:String,default:''},viewed:false,reference:{type:Object,},index:{type:Number}},data:function(){return{}},mounted:function(){setUpFollowBtns();},computed:{getLocation:function(){return`${this.job.country.name}${this.job.city.name}`},getCompanyPeLink:function(){constbase='/companies'return`${base}/${this.job.company.enName}`},getJobPeLink:function(){returnthis.jobLink||`${this.getCompanyPeLink}/jobs/${this.job.id}`},trackingContext:function(){letresult={job_id:this.job.id,company_id:this.job.company.id,source:this.source,index:this.index}if(this.reference){result.reference=this.reference}returnresult}},methods:{clickHandler(e){this.tracking('job:click',this.trackingContext,'v3')this.$emit('click',e)},visibilityChanged:function(isVisible,entry){if(isVisible&&!this.viewed){this.viewed=true;this.tracking('job:view',this.trackingContext,'v3')}},getJobSearchPeLink:function(type=null,value=null){constbase='/jobs'if(type&&value&&type==='area'){constarea=this.job.country.code!=='TW'?'oversea':valuereturn`${base}?${type}[]=${area}`}elseif(type&&value){return`${base}?${type}[]=${value}`}else{returnbase}}}}){{event.name}}newVue({el:'#popular_jobs',mixins:[Vue.helpers],data:function(){return{events:[],tabIndex:0,autoPlayDuration:5000,loading:true,error:false,scrollingPopupVisible:false,scrollingPopupDisabled:false,cardMargin:device==='mobile'?12:16,}},created:function(){this.getPopularJobs();this.scrollingPopupDisabled=Cookies.get('homePopup')},computed:{},methods:{getPopularJobs:function(){this.error=falseconstrequest=$.ajax({type:'GET',url:`/api/v3/popular_jobs?each_count=3`,beforeSend:function(xhr){xhr.setRequestHeader('X-CSRF-Token',$('meta[name="csrf-token"]').attr('content'));}}).then((data)=>{this.events=data.events//隨機選定一個職缺為手機版顯示this.events.forEach(function(event){event.jobs=_.shuffle(event.jobs)event.jobs[event.jobs.length-1].showOnMobile=true;});this.loading=false}).catch((e)=>{this.error=true})},stopCarouselPination:function(){this.autoPlayDuration=0},startCarouselPination:function(){this.autoPlayDuration=5000},closeScrollingPopup:function(){this.scrollingPopupDisabled=trueCookies.set('homePopup',true,{expires:1,sameSite:'Strict'})this.scrollingPopupVisible=false}}})Vue.component('y-atar',{template:'#y-atar',props:{size:{type:[Number,String],default:40},color:{type:String,default:'transparent'}},data:function(){return{}},computed:{styles:function(){return{height:this.convertToUnit(this.size),width:this.convertToUnit(this.size),minWidth:this.convertToUnit(this.size),background:this.color}}},methods:{convertToUnit:function(value){if(value==null||value===''){returnundefined}elseif(isNaN(+value)){returnString(value)}else{return`${Number(value)}px`}}}}){{title}}{{moreLinkText}}Vue.component('y-home-section-title',{template:'#y-home-section-title',props:{iconUrl:{type:String,default:''},title:{type:String,default:''},moreLinkText:{type:String,default:''},moreLinkUrl:{type:String,default:''}},data:function(){return{}},computed:{},methods:{}});Vue.component('y-carousel',{template:'#y-carousel',model:{prop:'pe',event:'input'},props:{mode:{type:String,default:'normal'},cardsToShow:{type:Number,default:3},cardsToScroll:{type:Number,default:1},cardMargin:{type:Number,default:16},showButton:{type:Boolean,default:true},buttonOffset:{type:Number,default:40},playDuration:{type:Number,default:0},pe:{type:Number,default:0},hidePination:{type:Boolean,default:false},minSwipeThreshold:{type:Number,default:0.1},theaterContainerWidth:{type:String,default:'calc(100vw-102px)'},pinationClassName:{type:String,default:''},btnClassName:{type:String,default:''},showEdgeSection:{type:Boolean,default:false}},data:function(){return{touchX:0,touchY:0,verticalSwiping:false,horizontalSwiping:false,transitionEnd:false,left:0,cardsCount:0,cardWidth:0,totalPes:0,currentPe:0,buttonClass:this.showButton?this.btnClassName:(this.btnClassName+'hide')}},mounted:function(){this.startAnimation();window.addEventListener("resize",this.update);this.update();this.goto(this.pe);},updated:function(){this.update();},watch:{playDuration:function(newDuration,oldDuration){this.stopAnimation()this.startAnimation(newDuration)},pe:function(newPe,oldPe){if(newPe!==this.currentPe){this.goto(newPe);}}},beforeDestroy:function(){if(this.playDuration){clearInterval(this.intervalId);}this.removeMobileEventListener();window.removeEventListener("resize",this.update);},computed:{theaterMode:function(){returnthis.mode==='theater';},cardWidthWithMargin:function(){returnthis.theaterMode?this.cardWidth:this.cardWidth+this.cardMargin},isFirstPe:function(){returnthis.currentPe===0;},isLastPe:function(){returnthis.currentPe===this.totalPes-1;}},methods:{getCardWidth:function(){constrect=this.$refs.cards.getBoundingClientRect();if(this.theaterMode){returnthis.$refs.container.getBoundingClientRect().width;}else{return(rect.width-this.cardMargin*(this.cardsToShow-1))/this.cardsToShow;}},update:function(){constslots=this.$slots.default?this.$slots.default.filter(function(vNode){returnvNode.elm.nodeType===Node.ELEMENT_NODE;}):[];if(this.theaterMode){this.cardsCount=slots.length?slots.length-4:0;}else{this.cardsCount=slots.length;}this.cardWidth=this.getCardWidth();this.totalPes=this.theaterMode?this.cardsCount:Math.max(Math.ceil((slots.length-this.cardsToShow)/this.cardsToScroll)+1,0);slots.forEach(function(vNode,index){constel=vNode.elm;el.classList.add('y-carousel__card');if(this.mode!=='theater'){el.style.width=`${this.cardWidth}px`;el.style.minWidth=`${this.cardWidth}px`;}else{el.style.marginLeft=`${this.cardMargin}px`;el.style.width=`${this.cardWidth-this.cardMargin*2}px`;}if(slots[index+1]){el.style.marginRight=`${this.cardMargin}px`;}}.bind(this));this.goto(this.currentPe);},prev:function(){this.goto(this.currentPe-1);},next:function(){this.goto(this.currentPe+1);},goto:function(pe){this.transitionEnd=false;pe=parseInt(parseFloat(pe),10)||0;letleft,triggerLoopif(pe=this.totalPes){if(this.theaterMode){this.triggerLoop='right-end';}else{pe=0;}}left=this.theaterMode?parseInt(((pe+2)*this.cardsToScroll)*this.cardWidthWithMargin*-1):parseInt((pe*this.cardsToScroll)*this.cardWidthWithMargin*-1);if(this.triggerLoop){if(this.transitionCallbackBinded){this.$refs.cards.removeEventListener('transitionend',this.transitionCallbackBinded)}this.transitionCallbackBinded=this.transitionendCallback.bind(this)this.$refs.cards.addEventListener('transitionend',this.transitionCallbackBinded,false)}this.$refs.cards.style.transition='';this.left=this.setLeftPosition(left);if(!this.triggerLoop){this.currentPe=pe;this.$emit('input',pe);}},onMouseEnter:function(e){this.stopAnimation();},onMouseLee:function(e){this.startAnimation();},onTouchStart:function(e){consttouchObj=e.changedTouches[0];this.stopAnimation();if(this.isMultiFinger(e)){//多點觸控不處理return;}this.touchX=touchObj.peX;this.touchY=touchObj.peY;},onTouchMove:function(e){consttouchObj=e.changedTouches[0];constaltX=touchObj.peX-this.touchX;constaltY=touchObj.peY-this.touchY;constthreshold=4;if(this.isMultiFinger(e)||this.verticalSwiping){//多點觸控不處理//使用者上下滑動視窗行為不處理return;}if(!this.verticalSwiping&&!this.horizontalSwiping&&Math.abs(altY)>Math.abs(altX)&&Math.abs(altY)>threshold){this.verticalSwiping=true;return}else{this.horizontalSwiping=true;}this.$refs.cards.style.transition='none';this.setLeftPosition(this.left+altX);e.preventDefault();e.stopPropation();},onTouchEnd:function(e){consttouchObj=e.changedTouches[0];if(this.isMultiFinger(e)||this.verticalSwiping){//多點觸控不處理//使用者上下滑動視窗行為不處理this.verticalSwiping=false;return;}if(this.touchX&&this.touchX!==touchObj.peX){constthreshold=this.cardWidth*this.minSwipeThreshold;constaltX=touchObj.peX-this.touchX;if(altX>0&&Math.abs(altX)>threshold&&(!this.isFirstPe||this.theaterMode)){this.prev();}elseif(altXthreshold&&(!this.isLastPe||this.theaterMode)){this.next();}else{this.goto(this.currentPe);}this.touchX=0;}this.startAnimation();this.horizontalSwiping=false;this.verticalSwiping=false;},stopAnimation:function(){clearInterval(this.intervalId);this.intervalId=null;},isMultiFinger:function(e){returne.touches.length>1;},startAnimation:function(duration=this.playDuration){if(!this.intervalId&&duration){this.intervalId=setInterval(this.next,duration);}},transitionendCallback:function(e){letpe,left;this.transitionEnd=true;if(e.propertyName!=="transform"){return}if(this.triggerLoop){this.$refs.cards.style.transition='none';if(this.triggerLoop=='left-end'){pe=this.totalPes-1;}else{pe=0;}left=parseInt(((pe+2)*this.cardsToScroll)*this.cardWidthWithMargin*-1);//animatethis.left=this.setLeftPosition(left);}this.currentPe=pe;this.$emit('input',pe);this.triggerLoop=null;if(this.transitionCallbackBinded){this.$refs.cards.removeEventListener('transitionend',this.transitionCallbackBinded)}},setLeftPosition:function(left){constreboundThreshold=this.cardWidth;letmaxLeftPosition=0;letminLeftPosition=this.theaterMode?Math.max((this.cardsCount+3-this.cardsToShow),0)*this.cardWidthWithMargin*-1:Math.max((this.cardsCount-this.cardsToShow),0)*this.cardWidthWithMargin*-1if(this.horizontalSwiping){maxLeftPosition=maxLeftPosition+reboundThreshold;minLeftPosition=minLeftPosition-reboundThreshold;}elseif(this.theaterMode&&this.transitionEnd){minLeftPosition=Math.max((this.cardsCount+2-this.cardsToShow),0)*this.cardWidthWithMargin*-1;}left=left>maxLeftPosition?0:left;left=left{{job.name}}{{job.company.brand}}{{getLocation}}{{job.salary}}{{job.category.name}}{{t.name}}(function(){Vue.component('y-new-card',{template:'#y-new-card',props:{to:{type:String,default:undefined},target:{type:String,default:'_blank'},shadow:{type:Boolean,default:true}},data:function(){return{}},computed:{element:function(){returnthis.to?'a':'div'},classes:function(){return{'y-new-card':true,'y-new-card--shadow':this.shadow}}},methods:{}})constcreateSimpleElement=function(className,el='div',name=null){returnVue.extend({name:name||className.replace(/__/g,'-'),functional:true,render(h,{data,children}){data.staticClass=(`${className}${data.staticClass||''}`).trim()returnh(el,data,children)}})}constsubElements={'y-new-card-title':createSimpleElement('y-new-card__title'),'y-new-card-subtitle':createSimpleElement('y-new-card__subtitle'),'y-new-card-description':createSimpleElement('y-new-card__description'),'y-new-card-footer':createSimpleElement('y-new-card__footer'),'y-new-card-fab':createSimpleElement('y-new-card__fab')}for(letcomponentinsubElements){Vue.component(component,subElements[component])}})()if(window.Vue){Vue.component('y-new-t',{template:'#y-new-t',props:{to:{type:String,default:'#'},target:{type:String,default:'_blank'}}});}Vue.component('y-atar',{template:'#y-atar',props:{size:{type:[Number,String],default:40},color:{type:String,default:'transparent'}},data:function(){return{}},computed:{styles:function(){return{height:this.convertToUnit(this.size),width:this.convertToUnit(this.size),minWidth:this.convertToUnit(this.size),background:this.color}}},methods:{convertToUnit:function(value){if(value==null||value===''){returnundefined}elseif(isNaN(+value)){returnString(value)}else{return`${Number(value)}px`}}}})Vue.component('y-button',{template:'#y-button',props:{to:{type:String,default:undefined},target:{type:String,default:undefined},color:{type:String,default:''},raised:{type:Boolean,default:false},fab:{type:Boolean,default:false},outline:{type:Boolean,default:false},fullWidth:{type:Boolean,default:false},active:{type:Boolean,default:false}},data:function(){return{}},computed:{element:function(){returnthis.to?'a':'button'},classes:function(){return{'y-button':true,'y-button--default':!this.raised&&!this.fab&&!this.outline,'y-button--raised':this.raised,'y-button--fab':this.fab,'y-button--active':this.active,'y-button--outline':this.outline,'y-button--full-width':this.fullWidth,[this.color]:!this.customColor}},styles:function(){return{backgroundColor:this.customColor&&this.color}},customColor:function(){return['primary','success','error'].findIndex(c=>c===this.color)===-1}},methods:{click:function(e){this.$emit('click',e)}}});Vue.component('y-forite-button',{template:'#y-forite-button',props:{active:{type:Boolean,required:true},followId:{type:[Number,String],required:true},followType:{type:String,required:true}},computed:{classes:function(){return{'y-forite-button':true,'active':this.active}}}})Vue.component('y-job-card',{template:'#y-job-card',mixins:[Vue.helpers],props:{job:{type:Object,required:true,default:function(){return{id:0,name:'',content:'',salary:'NT$0-0(月薪)',country:{code:'TW',name:'台灣'},city:{code:'TPE',name:'台北市'},category:{id:0,name:''},ts:[{id:0,name:''}],company:{id:0,brand:'',enName:'',logo:'',badges:[],},isFollowing:false}}},jobLink:{type:String,default:''},hideDescription:{type:Boolean,default:false},hideTs:{type:Boolean,default:false},hideForiteButton:{type:Boolean,default:false},hideCompany:{type:Boolean,default:false},source:{type:String,default:''},viewed:false,reference:{type:Object,},index:{type:Number}},data:function(){return{}},mounted:function(){setUpFollowBtns();},computed:{getLocation:function(){return`${this.job.country.name}${this.job.city.name}`},getCompanyPeLink:function(){constbase='/companies'return`${base}/${this.job.company.enName}`},getJobPeLink:function(){returnthis.jobLink||`${this.getCompanyPeLink}/jobs/${this.job.id}`},trackingContext:function(){letresult={job_id:this.job.id,company_id:this.job.company.id,source:this.source,index:this.index}if(this.reference){result.reference=this.reference}returnresult}},methods:{clickHandler(e){this.tracking('job:click',this.trackingContext,'v3')this.$emit('click',e)},visibilityChanged:function(isVisible,entry){if(isVisible&&!this.viewed){this.viewed=true;this.tracking('job:view',this.trackingContext,'v3')}},getJobSearchPeLink:function(type=null,value=null){constbase='/jobs'if(type&&value&&type==='area'){constarea=this.job.country.code!=='TW'?'oversea':valuereturn`${base}?${type}[]=${area}`}elseif(type&&value){return`${base}?${type}[]=${value}`}else{returnbase}}}}){{company.brand}}{{company.shortDescription}}{{getLocation}}{{company.category.name}}{{t.name}}(function(){Vue.component('y-new-card',{template:'#y-new-card',props:{to:{type:String,default:undefined},target:{type:String,default:'_blank'},shadow:{type:Boolean,default:true}},data:function(){return{}},computed:{element:function(){returnthis.to?'a':'div'},classes:function(){return{'y-new-card':true,'y-new-card--shadow':this.shadow}}},methods:{}})constcreateSimpleElement=function(className,el='div',name=null){returnVue.extend({name:name||className.replace(/__/g,'-'),functional:true,render(h,{data,children}){data.staticClass=(`${className}${data.staticClass||''}`).trim()returnh(el,data,children)}})}constsubElements={'y-new-card-title':createSimpleElement('y-new-card__title'),'y-new-card-subtitle':createSimpleElement('y-new-card__subtitle'),'y-new-card-description':createSimpleElement('y-new-card__description'),'y-new-card-footer':createSimpleElement('y-new-card__footer'),'y-new-card-fab':createSimpleElement('y-new-card__fab')}for(letcomponentinsubElements){Vue.component(component,subElements[component])}})()if(window.Vue){Vue.component('y-new-t',{template:'#y-new-t',props:{to:{type:String,default:'#'},target:{type:String,default:'_blank'}}});}Vue.component('y-atar',{template:'#y-atar',props:{size:{type:[Number,String],default:40},color:{type:String,default:'transparent'}},data:function(){return{}},computed:{styles:function(){return{height:this.convertToUnit(this.size),width:this.convertToUnit(this.size),minWidth:this.convertToUnit(this.size),background:this.color}}},methods:{convertToUnit:function(value){if(value==null||value===''){returnundefined}elseif(isNaN(+value)){returnString(value)}else{return`${Number(value)}px`}}}})Vue.component('y-button',{template:'#y-button',props:{to:{type:String,default:undefined},target:{type:String,default:undefined},color:{type:String,default:''},raised:{type:Boolean,default:false},fab:{type:Boolean,default:false},outline:{type:Boolean,default:false},fullWidth:{type:Boolean,default:false},active:{type:Boolean,default:false}},data:function(){return{}},computed:{element:function(){returnthis.to?'a':'button'},classes:function(){return{'y-button':true,'y-button--default':!this.raised&&!this.fab&&!this.outline,'y-button--raised':this.raised,'y-button--fab':this.fab,'y-button--active':this.active,'y-button--outline':this.outline,'y-button--full-width':this.fullWidth,[this.color]:!this.customColor}},styles:function(){return{backgroundColor:this.customColor&&this.color}},customColor:function(){return['primary','success','error'].findIndex(c=>c===this.color)===-1}},methods:{click:function(e){this.$emit('click',e)}}});Vue.component('y-forite-button',{template:'#y-forite-button',props:{active:{type:Boolean,required:true},followId:{type:[Number,String],required:true},followType:{type:String,required:true}},computed:{classes:function(){return{'y-forite-button':true,'active':this.active}}}})Vue.component('y-company-card',{template:'#y-company-card',mixins:[Vue.helpers],props:{company:{type:Object,required:true,default:function(){return{id:0,brand:'',enName:'',logo:'',banner:'',shortDescription:'',country:{code:'TW',name:'台灣'},city:{code:'TPE',name:'台北市'},category:{id:0,name:''},badges:[],isFollowing:false}}},type:{type:String,default:'list'},mobileType:{type:String,default:null,validator:function(v){return['horizontal'].indexOf(v)>-1}},hideDescription:{type:Boolean,default:false},hideTs:{type:Boolean,default:false},hideForiteButton:{type:Boolean,default:false},source:{type:String,default:''},viewed:false,reference:{type:Object,},index:{type:Number,}},data:function(){return{}},mounted:function(){setUpFollowBtns();$('[data-toggle="tooltip"]').tooltip();},computed:{getLocation:function(){return`${this.company.country.name}${this.company.city.name}`},getCompanyPeLink:function(){constbase='/companies'return`${base}/${this.company.enName}`},classes:function(){return{[`y-company-card--${this.type}`]:true,[`m-${this.mobileType}`]:this.mobileType&&true}},trackingContext:function(){letresult={company_id:this.company.id,index:this.index,source:this.source,}if(this.reference){result.reference=this.reference}returnresult}},methods:{clickHandler(e){this.tracking('company:click',this.trackingContext,'v3')this.$emit('click',e)},visibilityChanged:function(isVisible,entry){if(isVisible&&!this.viewed){this.viewed=true;this.tracking('company:view',this.trackingContext,'v3')}},getCompanySearchPeLink:function(type=null,value=null){constbase='/companies'if(type&&value&&type==='area'){constarea=this.company.country.code!=='TW'?'oversea':valuereturn`${base}?${type}[]=${area}`}elseif(type&&value){return`${base}?${type}[]=${value}`}else{returnbase}}}})newVue({el:'#popular_companies',mixins:[Vue.helpers],data:function(){return{newCompanies:[],recommendedCompanies:[],loading:true,error:false}},created:function(){this.getPopularCompanies();},computed:{popularCompanies:function(){return_.shuffle([..._.sample(this.newCompanies,4),..._.sample(this.recommendedCompanies,4),]);},clonedPopularCompanies:function(){constlength=this.popularCompanies.length;constselectedCompanies=length>2?[this.popularCompanies[length-2],this.popularCompanies[length-1],...this.popularCompanies,this.popularCompanies[0],this.popularCompanies[1]]:[]if(device==='mobile'){this.logCompanyImpression(this.popularCompanies,'popular_companies')}returnselectedCompanies}},methods:{getPopularCompanies:function(){this.error=falseconstrequest=$.ajax({type:'GET',url:`/api/v3/popular_companies`,beforeSend:function(xhr){xhr.setRequestHeader('X-CSRF-Token',$('meta[name="csrf-token"]').attr('content'));}}).then((data)=>{this.newCompanies=data.newCompanies;this.recommendedCompanies=data.recommendCompanies;if(device!=='mobile'){this.logCompanyImpression(this.newCompanies,'new_contract_companies')this.logCompanyImpression(this.recommendedCompanies,'recommend_companies')}this.loading=false;}).catch((e)=>{this.error=true})},logCompanyImpression:function(companies,source){companies.forEach((company,index)=>{this.tracking('company:impression',{company_id:company.id,index:index,source:source},'v3')})}}})Vue.component('y-atar',{template:'#y-atar',props:{size:{type:[Number,String],default:40},color:{type:String,default:'transparent'}},data:function(){return{}},computed:{styles:function(){return{height:this.convertToUnit(this.size),width:this.convertToUnit(this.size),minWidth:this.convertToUnit(this.size),background:this.color}}},methods:{convertToUnit:function(value){if(value==null||value===''){returnundefined}elseif(isNaN(+value)){returnString(value)}else{return`${Number(value)}px`}}}}){{title}}{{moreLinkText}}Vue.component('y-home-section-title',{template:'#y-home-section-title',props:{iconUrl:{type:String,default:''},title:{type:String,default:''},moreLinkText:{type:String,default:''},moreLinkUrl:{type:String,default:''}},data:function(){return{}},computed:{},methods:{}});{{item}}Vue.component('y-slider-bar',{template:'#y-slider-bar',props:{left:{type:Number,default:0},width:{type:Number,default:0},height:{type:Number,default:2},backgroundColor:{type:String,default:'#0070C4'}},computed:{styles:function(){return{backgroundColor:this.backgroundColor,height:`${this.height}px`,width:`${this.width}px`}}},watch:{'left':function(val,oldVal){//moresmooththanchangeleftofinlinestyledirectlythis.$el.style.transform=`translateX(${val}px)`}}})Vue.component('y-tabs',{template:'#y-tabs',model:{prop:'tab',event:'change'},props:{tab:{type:Number,default:null},color:{type:String,default:'#000'},centered:{type:Boolean,default:false},sliderSize:{type:Number,default:2},sliderColor:{type:String,default:'#0070C4'},showSlider:{type:Boolean,default:false},showPination:{type:Boolean,default:false},multipleRows:{type:Boolean,default:false}},data:function(){return{tabNodes:[],slider:{left:0,width:0},widths:{wrapper:0,content:0},isOverflowing:false,resizeTimeout:null,scrollOffset:0,startX:0};},computed:{classes:function(){return{'y-tabs':true,'y-tabs--centered':this.centered,'multiple-rows':this.multipleRows,}}},watch:{tab:function(newVal,oldVal){if(!this.multipleRows){this.callSlider(newVal)}this.setWidths()this.scrollIntoView()this.toggleActiveItem(newVal,oldVal)},scrollOffset:function(val){if(!this.multipleRows){this.$refs.content.style.transform=`translateX(${-val}px)`}},isOverflowing:function(){this.setWidths()this.scrollIntoView()}},created:function(){if(!this.multipleRows){window.addEventListener("resize",this.onResize)}this.$on('clickOnTab',this.clickOnTab)this.parseNodes()},beforeDestroy:function(){window.removeEventListener("resize",this.onResize)},mounted(){setTimeout(()=>{this.callSlider()if(!this.tab){this.tab=0this.toggleActiveItem(0)}},300)},updated:function(){this.parseNodes()if(!this.multipleRows){this.setWidths()}},methods:{parseNodes:function(){constt=[]constslot=this.$slots.default||[]constlength=slot.lengthfor(leti=0;i{this.callSlider(this.tab)this.setWidths()},0)},setWidths:function(){const{content,wrapper}=this.$refsconstwidths={wrapper:wrapper?wrapper.clientWidth:0,content:content?content.clientWidth:0}this.isOverflowing=this.widths.wrapperlastItemPosition.left){this.scrollTo('prev')}}if(this.tab===0||!this.isOverflowing){this.scrollOffset=0}elseif(this.isOverflowing){this.scrollOffset=this.calculateOffsetWhenTabUpdated(this.tabNodes[this.tab].elm,this.widths,this.scrollOffset)}},calculateOffsetWhenTabUpdated:function(selectedElement,widths,currentScrollOffset){constclientWidth=selectedElement.clientWidthconstoffsetLeft=selectedElement.offsetLeftconstadditionalOffset=40consttotalWidth=widths.wrapper+currentScrollOffsetconstitemOffset=clientWidth+offsetLeftif(offsetLeft1)returnconst{content}=this.$refsthis.startX=this.scrollOffset+e.changedTouches[0].clientXcontent.style.setProperty('transition','none')content.style.setProperty('willChange','transform')},onTouchMove:function(e){//Multi-touchnotprocessif(e.touches.length>1)returnwindow.requestAnimationFrame(()=>{this.scrollOffset=this.startX-e.changedTouches[0].clientX})},onTouchEnd:function(e){this.$emit('touchend',e)window.requestAnimationFrame(()=>{const{content,wrapper}=this.$refsconstmaxScrollOffset=content.clientWidth-wrapper.clientWidthcontent.style.setProperty('transition',null)content.style.setProperty('willChange',null)if(this.scrollOffsetmaxScrollOffset){this.scrollOffset=maxScrollOffset}})}}})Vue.component('y-tab',{template:'#y-tab',props:{activeClass:{type:String,default:''}},data:function(){return{isActive:false,isTouchDevice:(('ontouchstart'inwindow)||(nigator.maxTouchPoints>0)||(nigator.msMaxTouchPoints>0))}},computed:{classes:function(){return{'y-tab':true,'y-tab--active':this.isActive,[this.activeClass]:this.activeClass!==''&&this.isActive}}},methods:{click:function(){event.preventDefault()this.$parent.$emit('clickOnTab',this.$vnode)},toggle:function(){this.isActive=!this.isActive},mouseenter:function(event){this.$emit('mouseenter',event)},mouselee:function(event){this.$emit('mouselee',event)}}});Vue.component('y-button',{template:'#y-button',props:{to:{type:String,default:undefined},target:{type:String,default:undefined},color:{type:String,default:''},raised:{type:Boolean,default:false},fab:{type:Boolean,default:false},outline:{type:Boolean,default:false},fullWidth:{type:Boolean,default:false},active:{type:Boolean,default:false}},data:function(){return{}},computed:{element:function(){returnthis.to?'a':'button'},classes:function(){return{'y-button':true,'y-button--default':!this.raised&&!this.fab&&!this.outline,'y-button--raised':this.raised,'y-button--fab':this.fab,'y-button--active':this.active,'y-button--outline':this.outline,'y-button--full-width':this.fullWidth,[this.color]:!this.customColor}},styles:function(){return{backgroundColor:this.customColor&&this.color}},customColor:function(){return['primary','success','error'].findIndex(c=>c===this.color)===-1}},methods:{click:function(e){this.$emit('click',e)}}});CloseVue.component('y-youtube-player',{template:'#y-youtube-player',model:{prop:'visible',event:'toggle'},components:{'youtube-player-lazy':VueLazyYoutubeVideo.default,},props:{visible:{type:Boolean,default:false},index:{type:Number,default:null}},data:function(){return{playerInstance:null,playerOptions:{events:{'onReady':()=>{this.playerInstance.loadPlaylist({list:'PLjo7w1sUDkqR-MV1xsb0ghHr0xq9gN_',index:this.index})}}}}},watch:{index:function(value){if(this.playerInstance){this.playerInstance.playVideoAt(value)}},visible:function(value){constel=document.querySelector('.y-video__button')if(value&&el){el.click();}}},methods:{closePlayer:function(){if(this.playerInstance?.stopVideo){this.playerInstance.stopVideo();}this.$emit('toggle',false)},onPlayerInit:function({instance}){this.playerInstance=instance}}})Vue.component('y-carousel',{template:'#y-carousel',model:{prop:'pe',event:'input'},props:{mode:{type:String,default:'normal'},cardsToShow:{type:Number,default:3},cardsToScroll:{type:Number,default:1},cardMargin:{type:Number,default:16},showButton:{type:Boolean,default:true},buttonOffset:{type:Number,default:40},playDuration:{type:Number,default:0},pe:{type:Number,default:0},hidePination:{type:Boolean,default:false},minSwipeThreshold:{type:Number,default:0.1},theaterContainerWidth:{type:String,default:'calc(100vw-102px)'},pinationClassName:{type:String,default:''},btnClassName:{type:String,default:''},showEdgeSection:{type:Boolean,default:false}},data:function(){return{touchX:0,touchY:0,verticalSwiping:false,horizontalSwiping:false,transitionEnd:false,left:0,cardsCount:0,cardWidth:0,totalPes:0,currentPe:0,buttonClass:this.showButton?this.btnClassName:(this.btnClassName+'hide')}},mounted:function(){this.startAnimation();window.addEventListener("resize",this.update);this.update();this.goto(this.pe);},updated:function(){this.update();},watch:{playDuration:function(newDuration,oldDuration){this.stopAnimation()this.startAnimation(newDuration)},pe:function(newPe,oldPe){if(newPe!==this.currentPe){this.goto(newPe);}}},beforeDestroy:function(){if(this.playDuration){clearInterval(this.intervalId);}this.removeMobileEventListener();window.removeEventListener("resize",this.update);},computed:{theaterMode:function(){returnthis.mode==='theater';},cardWidthWithMargin:function(){returnthis.theaterMode?this.cardWidth:this.cardWidth+this.cardMargin},isFirstPe:function(){returnthis.currentPe===0;},isLastPe:function(){returnthis.currentPe===this.totalPes-1;}},methods:{getCardWidth:function(){constrect=this.$refs.cards.getBoundingClientRect();if(this.theaterMode){returnthis.$refs.container.getBoundingClientRect().width;}else{return(rect.width-this.cardMargin*(this.cardsToShow-1))/this.cardsToShow;}},update:function(){constslots=this.$slots.default?this.$slots.default.filter(function(vNode){returnvNode.elm.nodeType===Node.ELEMENT_NODE;}):[];if(this.theaterMode){this.cardsCount=slots.length?slots.length-4:0;}else{this.cardsCount=slots.lengthYourator 新創・數位人才求職平台|讓求職視野更開闊;}this.cardWidth=this.getCardWidth();this.totalPes=this.theaterMode?this.cardsCount:Math.max(Math.ceil((slots.length-this.cardsToShow)/this.cardsToScroll)+1,0);slots.forEach(function(vNode,index){constel=vNode.elm;el.classList.add('y-carousel__card');if(this.mode!=='theater'){el.style.width=`${this.cardWidth}px`;el.style.minWidth=`${this.cardWidth}px`;}else{el.style.marginLeft=`${this.cardMargin}px`;el.style.width=`${this.cardWidth-this.cardMargin*2}px`;}if(slots[index+1]){el.style.marginRight=`${this.cardMargin}px`;}}.bind(this));this.goto(this.currentPe);},prev:function(){this.goto(this.currentPe-1);},next:function(){this.goto(this.currentPe+1);},goto:function(pe){this.transitionEnd=false;pe=parseInt(parseFloat(pe),10)||0;letleft,triggerLoopif(pe=this.totalPes){if(this.theaterMode){this.triggerLoop='right-end';}else{pe=0;}}left=this.theaterMode?parseInt(((pe+2)*this.cardsToScroll)*this.cardWidthWithMargin*-1):parseInt((pe*this.cardsToScroll)*this.cardWidthWithMargin*-1);if(this.triggerLoop){if(this.transitionCallbackBinded){this.$refs.cards.removeEventListener('transitionend',this.transitionCallbackBinded)}this.transitionCallbackBinded=this.transitionendCallback.bind(this)this.$refs.cards.addEventListener('transitionend',this.transitionCallbackBinded,false)}this.$refs.cards.style.transition='';this.left=this.setLeftPosition(left);if(!this.triggerLoop){this.currentPe=pe;this.$emit('input',pe);}},onMouseEnter:function(e){this.stopAnimation();},onMouseLee:function(e){this.startAnimation();},onTouchStart:function(e){consttouchObj=e.changedTouches[0];this.stopAnimation();if(this.isMultiFinger(e)){//多點觸控不處理return;}this.touchX=touchObj.peX;this.touchY=touchObj.peY;},onTouchMove:function(e){consttouchObj=e.changedTouches[0];constaltX=touchObj.peX-this.touchX;constaltY=touchObj.peY-this.touchY;constthreshold=4;if(this.isMultiFinger(e)||this.verticalSwiping){//多點觸控不處理//使用者上下滑動視窗行為不處理return;}if(!this.verticalSwiping&&!this.horizontalSwiping&&Math.abs(altY)>Math.abs(altX)&&Math.abs(altY)>threshold){this.verticalSwiping=true;return}else{this.horizontalSwiping=true;}this.$refs.cards.style.transition='none';this.setLeftPosition(this.left+altX);e.preventDefault();e.stopPropation();},onTouchEnd:function(e){consttouchObj=e.changedTouches[0];if(this.isMultiFinger(e)||this.verticalSwiping){//多點觸控不處理//使用者上下滑動視窗行為不處理this.verticalSwiping=false;return;}if(this.touchX&&this.touchX!==touchObj.peX){constthreshold=this.cardWidth*this.minSwipeThreshold;constaltX=touchObj.peX-this.touchX;if(altX>0&&Math.abs(altX)>threshold&&(!this.isFirstPe||this.theaterMode)){this.prev();}elseif(altXthreshold&&(!this.isLastPe||this.theaterMode)){this.next();}else{this.goto(this.currentPe);}this.touchX=0;}this.startAnimYourator 新創・數位人才求職平台|讓求職視野更開闊ation();this.horizontalSwiping=false;this.verticalSwiping=false;},stopAnimation:function(){clearInterval(this.intervalId);this.intervalId=null;},isMultiFinger:function(e){returne.touches.length>1;},startAnimation:function(duration=this.playDuration){if(!this.intervalId&&duration){this.intervalId=setInterval(this.next,duration);}},transitionendCallback:function(e){letpe,left;this.transitionEnd=true;if(e.propertyName!=="transform"){return}if(this.triggerLoop){this.$refs.cards.style.transition='none';if(this.triggerLoop=='left-end'){pe=this.totalPes-1;}else{pe=0;}left=parseInt(((pe+2)*this.cardsToScroll)*this.cardWidthWithMargin*-1);//animatethis.left=this.setLeftPosition(left);}this.currentPe=pe;this.$emit('input',pe);this.triggerLoop=null;if(this.transitionCallbackBinded){this.$refs.cards.removeEventListener('transitionend',this.transitionCallbackBinded)}},setLeftPosition:function(left){constreboundThreshold=this.cardWidth;letmaxLeftPosition=0;letminLeftPosition=this.theaterMode?Math.max((this.cardsCount+3-this.cardsToShow),0)*this.cardWidthWithMargin*-1:Math.max((this.cardsCount-this.cardsToShow),0)*this.cardWidthWithMargin*-1if(this.horizontalSwiping){maxLeftPosition=maxLeftPosition+reboundThreshold;minLeftPosition=minLeftPosition-reboundThreshold;}elseif(this.theaterMode&&this.transitionEnd){minLeftPosition=Math.max((this.cardsCount+2-this.cardsToShow),0)*this.cardWidthWithMargin*-1;}left=left>maxLeftPosition?0:left;left=left{{article.title}}{{article.description}}{{article.category.name}}{{t.name}}(function(){Vue.component('y-new-card',{template:'#y-new-card',props:{to:{type:String,default:undefined},target:{type:String,default:'_blank'},shadow:{type:Boolean,default:true}},data:function(){return{}},computed:{element:function(){returnthis.to?'a':'div'},classes:function(){return{'y-new-card':true,'y-new-card--shadow':this.shadow}}},methods:{}})constcreateSimpleElement=function(className,el='div',name=null){returnVue.extend({name:name||className.replace(/__/g,'-'),functional:true,render(h,{data,children}){data.staticClass=(`${className}${data.staticClass||''}`).trim()returnh(el,data,children)}})}constsubElements={'y-new-card-title':createSimpleElement('y-new-card__title'),'y-new-card-subtitle':createSimpleElement('y-new-card__subtitle'),'y-new-card-description':createSimpleElement('y-new-card__description'),'y-new-card-footer':createSimpleElement('y-new-card__footer'),'y-new-card-fab':createSimpleElement('y-new-card__fab')}for(letcomponentinsubElements){Vue.component(component,subElements[component])}})()if(window.Vue){Vue.component('y-new-t',{template:'#y-new-t',props:{to:{type:String,default:'#'},target:{type:String,default:'_blank'}}});}Vue.component('y-atar',{template:'#y-atar',props:{size:{type:[Number,String],default:40},color:{type:String,default:'transparent'}},data:function(){return{}},computed:{styles:function(){return{height:this.convertToUnit(this.size),width:this.convertToUnit(this.size),minWidth:this.convertToUnit(this.size),background:this.color}}},methods:{convertToUnit:function(value){if(value==null||value===''){returnundefined}elseif(isNaN(+value)){returnString(value)}else{return`${Number(value)}px`}}}})Vue.component('y-button',{template:'#y-button',props:{to:{type:String,default:undefined},target:{type:String,default:undefined},color:{type:String,default:''},raised:{type:Boolean,default:false},fab:{type:Boolean,default:false},outline:{type:Boolean,default:false},fullWidth:{type:Boolean,default:false},active:{type:Boolean,default:false}},data:function(){return{}},computed:{element:function(){returnthis.to?'a':'button'},classes:function(){return{'y-button':true,'y-button--default':!this.raised&&!this.fab&&!this.outline,'y-button--raised':this.raised,'y-button--fab':this.fab,'y-button--active':this.active,'y-button--outline':this.outline,'y-button--full-width':this.fullWidth,[this.color]:!this.customColor}},styles:function(){return{backgroundColor:this.customColor&&this.color}},customColor:function(){return['primary','success','error'].findIndex(c=>c===this.color)===-1}},methods:{click:function(e){this.$emit('click',e)}}});Vue.component('y-forite-button',{template:'#y-forite-button',props:{active:{type:Boolean,required:true},followId:{type:[Number,String],required:true},followType:{type:String,required:true}},computed:{classes:function(){return{'y-forite-button':true,'active':this.active}}}})Vue.component('y-article-card',{template:'#y-article-card',mixins:[Vue.helpers],props:{article:{type:Object,default:function(){return{id:0,title:'',banner:'',bannerAlt:'',description:'',category:{id:1,name:''},ts:[{id:0,name:''}],isFollowing:false}}},hideForiteButton:{type:Boolean,default:false},source:{type:String,default:''},viewed:false,index:{type:Number,}},data:function(){return{}},computed:{getArticlePeLink:function(){constbase='/articles'return`${base}/${this.article.id}`},trackingContext:function(){letresult={article_id:this.article.id,index:this.index,source:this.source,}returnresult}},mounted:function(){setUpFollowBtns();},methods:{clickHandler(e){this.tracking('article:click',this.trackingContext,'v3')this.$emit('click',e)},getArticleSearchPeLink:function(type=null,value=null){constbase='/articles'if(type&&value){return`${base}?${type}[]=${value}`}else{returnbase}},visibilityChanged:function(isVisible,entry){if(isVisible&&!this.viewed){this.viewed=true;this.tracking('article:view',this.trackingContext,'v3')}},}})newVue({el:'#featured-articles',mixins:[Vue.helpers],data:function(){return{tabItems:['求職攻略','Podcast職涯履行家','三分鐘看新創'],tabIndex:0,videos:[],showVideo:false,videoIndex:null,articles:[],podcastArticles:[],autoPlayDuration:5000,loading:true,error:false}},computed:{mobileArticles:function(){consttotalArticles=4constpodcastArticles=_.shuffle(this.podcastArticles).slice(0,2)return[..._.shuffle(this.articles).slice(0,totalArticles-podcastArticles.length),...podcastArticles]},clonedMobileArticles:function(){constlength=this.mobileArticles.length;constpopularArticles=length>2?[this.mobileArticles[length-2],this.mobileArticles[length-1],...this.mobileArticles,this.mobileArticles[0],this.mobileArticles[1]]:[]if(device==='mobile'){this.logArticleImpression(popularArticles,'popular_articles')}returnpopularArticles},},watch:{showVideo:function(val){if(val){this.stopCarouselPination()}else{this.startCarouselPination()}}},created:function(){this.getData()},methods:{showPlayer(index){this.videoIndex=indexthis.showVideo=true},getData:function(){this.error=falseconstrequest=$.ajax({type:'GET',url:`/api/v3/articles_and_intro_videos`,beforeSend:function(xhr){xhr.setRequestHeader('X-CSRF-Token',$('meta[name="csrf-token"]').attr('content'));}}).then((data)=>{this.podcastArticles=data.podcastArticlesthis.articles=data.articlesthis.videos=data.introVideosthis.loading=false;if(device!=='mobile'){this.logArticleImpression(this.podcastArticles,'podcast_articles')this.logArticleImpression(this.articles,'recommand_articles')}}).catch((e)=>{this.error=true})},stopCarouselPination:function(){this.autoPlayDuration=0},startCarouselPination:function(){this.autoPlayDuration=5000},logArticleImpression:function(articles,source){articles.forEach((article,index)=>{this.tracking('article:impression',{article_id:article.id,index:index,source:source},'v3')})}}})title實習軟體工程師AI人工智慧數據分析遠端工作數位行銷轉職職涯博覽會DEI工作新鮮人OMO新媒體台北市新北市桃園市新竹市台中市台南市高雄市window.addEventListener('turbolinks:before-render',function(){window.zEACLoaded=undefined;});//使用者開啟Zendeskwidget時再loading相關資源window.zESettings={webWidget:{chat:{connectOnPeLoad:false}}};(function(d,key){varscript=d.createElement('script');script.type='text/jascript';script.id='ze-snippet';script.async=true;script.src='static.zdassets.com/ekr/snippet.js?key='+key;document.getElementsByTName('head')[0].appendChild(script);})(document,'002bccbb-41ce-4c63-82c0-b3fc17');(function(d,s,id){varjs,fjs=d.getElementsByTName(s)[0];if(d.getElementById(id))return;js=d.createElement(s);js.id=id;js.src="//connect.facebook.net/zh_TW/all.js#xfbml=1";js.async=!0;fjs.parentNode.insertBefore(js,fjs);}(document,'script','facebook-jssdk'));(function(h,o,t,j,a,r){h.hj=h.hj||function(){(h.hj.q=h.hj.q||[]).push(arguments)};h._hjSettings={hjid:,hjsv:6};a=o.getElementsByTName('head')[0];r=o.createElement('script');r.async=1;r.src=t+h._hjSettings.hjid+j+h._hjSettings.hjsv;a.appendChild(r);})(window,document,'static.hotjar.com/c/hotjar-','.js?sv=');functionlogin(options){constprops=(options&&options.eventSource)?{eventSource:options.eventSource}:undefinedwindow.ymodals.commands.push({type:'login',props,})}functionregister(options){constprops=(options?.from||options?.eventSource)?{registeredFrom:options.from,eventSource:options.eventSource}:undefinedwindow.ymodals.commands.push({type:'register',props,})}$(document).on("turbolinks:load",function(){$("html").addClass("v2-5");});

Tovuti:Yourator 新創・數位人才求職平台|讓求職視野更開闊Ripoti

Ikiwa kuna ukiukaji wa wavuti, tafadhali bonyeza RipotiRipoti

Habari iliyopendekezwa

Tovuti iliyopendekezwa