# ONCC handover `ONCC` ## 現有project ### 超卓企業大獎2022 T:\Website\oncc\hk\develop\eliteenterpriseawards2022 UAT: https://uat-hk.on.cc/eliteenterpriseawards2022/ Live: https://on.cc/eliteenterpriseawards2022/ Page Logic 同 layout 整哂, 係差入圖同資料既嘢: - mediashare.jpg - 獎名好似仲有一個未有 - 各獎項專題報紙 - 影片 - 即文 ### 《聲夢傳奇2「Prom Night」》 T:\Website\ontv2018\develop\starsacademy2 UAT: https://uat-tv2018.on.cc/starsacademy2/index.html Live: https://tv.on.cc/starsacademy2/ Skin file: T:\Website\ontv2018\develop\skins\stars2 Page Logic 同 layout 整哂 ## 暫時未有要嘢跟既, 講返係邊既嘢 ### HKPL #### Data feed - Calendar data: https://project-hkpl-ehosting.on.cc/static/cms/data/calendar.txt Calendar data CORS 只係俾左 ilovehkpl.on.cc 同 welovehkpl.com, ilovehkpl UAT會拎唔到係正常既 - Ranking data: https://project-hkpl-ehosting.on.cc/static/cms/data/rank.txt - Club data: https://tv.on.cc/oncchkpl/team_data/teamlist.json - Club images: https://tv.on.cc/oncchkpl/team_data/img/ https://tv.on.cc/oncchkpl/team_data/img/07.png https://tv.on.cc/oncchkpl/team_data/img/07_bg.png #### welovehkpl - dev file: T:\Website\oncc\hk\develop\hkplNews - UAT file: http://internal-ehost-fb.on.cc:8080/files/project_hkpl/php/welovehkpl.com/ UAT Url: https://project-hkpl-ehosting.on.cc/ login: hkploncc wefa78!432 - Live file: http://internal-ehost-fb.on.cc:8080/files/project_welovehkpl/ Live Url: https://welovehkpl.com/ - CMS: https://project-hkpl-ehosting.on.cc/php/admin/login.html 舊文圖好似揾錯path, 要用之前都要review返 Admin Login我email左俾Joe Gur先, 始終CMS嘢都係唔好自己save低好D HAHA 黎緊好似話要加Sponsor, Sponsor Ad 用以下嘢黎出: - Adlayout function: https://welovehkpl.com/php/app.js 揾`Adlayout (callback)`就有 - Ad config: https://project-hkpl-ehosting.on.cc/static/cms/data/adsetting/config.js 另外Welovehkpl冇得Cache Cleaner, 而家係係index.php 改$Version黎迫CDN拎新content. #### ilovehkpl - dev file: T:\Website\oncc\hk\develop\hkpl UAT Url: https://uat-hk.on.cc/hkpl/ - Live file: oncc engine -> root: hkpl/ Live Url: https://ilovehkpl.on.cc/ #### HKPL Pay per view - dev file: T:\Website\ontv2018\develop\oncchkpl - UAT Url: https://uat-tv2018.on.cc/oncchkpl/ - Live file: ontv engine -> root: oncchkpl/ Live Url: https://tv.on.cc/oncchkpl/ - Config Tools: https://uat-tv2018.on.cc/oncchkpl/config_tools/ - Skin file: T:\Website\ontv2018\develop\skins\oncchkpl 現時所有飛仔既球隊資料都用左 team_data/teamlist.json 黎控制出既content. 如果到時要加"月票", 我諗係Config tools加返個月票boolean, 然後再用CSS 係bg出返相應既飛仔. ### Player & Live 大家熟口熟面既Path: T:\Website\oncc\hk\develop\module\player\h5player.js T:\Website\oncc\hk\develop\module\player\h5player.css 呢4年改左好多嘢, 比較重要既改動係: ``` //config { showTitle: {Boolean}, //default: false, Player上面出唔出Title customControls: {Function}, //會係Player setting Plane builded 之後 run 既 Function, //主要係用黎加add-on plane outstreamAd: {Boolean}, //default: false, 用係東網即文出段落中間既itvc //midroll Ad midrollTime: 0.5 midrollIndex: 0, midrollMin: 0, playedDuration: [], // 呢D係 Midroll Ad 相關config, 我諗要睇返logic先知做緊咩haha inappWebview: {Boolean}, //default: false, 故名思義係唔係inapp webview, 理論上個player會自動讀cookie或者check href 有冇 appview parameter, 如確定佢係得appview出直接true左佢都得 (有時app會冇落到parameter) } //methods: player.playTargetVideoInList(TargetVideoIndex, callback) //原本既switch video 會令到google ad block左個video唔出itvc, //直接用呢個method call就正常出到, 先決條件係要入左videoList先. player.viewportControl //控制player 唔係viewport內既就會pause左 player.dynamicAd //視頻互動廣告 player.videoSegments player.videoSegmentsFn.currentSegmentsId //Get 返條片而家既videoSegments data 同 SegmentsId player.chartbeat // chartbeat 相關既 static 嘢 ``` ### 東網Live T:\Website\oncc\hk\develop\module\player\important_live $liveStatus keep住讀livefeed_v3 $LiveDOM call返同setting相關既直播同build live 呢舊嘢都幾複雜, 到時慢慢睇logic先改會好D ### 東網-體波 即時比數&節目表 T:\Website\oncc\hk\develop\module\sport_component ### 超卓大獎系列 - 超卓汽車大獎 咁多年都係用Jquery寫既, 應該照睇就OK - 超卓企業大獎 2022用左vue.js同es6寫, 其餘主要都係行Gulp build tools寫 sass同pug 黎緊D mini-site可以考慮用build-tools 寫JSX 呢類, 最後compile返個Template https://www.developerdrive.com/best-build-tools-frontend-development/