-
Notifications
You must be signed in to change notification settings - Fork 1
Develop #511
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Develop #511
Changes from 2 commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
8a082df
fix: update alt attributes for images to use element titles
zeng407 79375fa
廣告版位調整
zeng407 3a2c622
Apply suggestion from @Copilot
zeng407 80e6636
fix: ensure global access to ONEAD_pubs in ad scripts
zeng407 924ace8
fix: update video source URLs in ElementControllerTest and ElementSou…
zeng407 1ae61d6
fix: properly wrap Google Ads script inclusion in header section
zeng407 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,27 +1,33 @@ | ||
| @if(!is_skip_ad()) | ||
| <div id="div-onead-nd-01"></div> | ||
| @push('scripts') | ||
| <script type="text/javascript"> | ||
| var custom_call = function (params) { | ||
| if (params.hasAd) { | ||
| console.log('ND has AD') | ||
| } else { | ||
| console.log('ND AD Empty'); | ||
| document.addEventListener('DOMContentLoaded', function() { | ||
| var custom_call = function (params) { | ||
| if (params.hasAd) { | ||
| console.log('ND has AD') | ||
| } else { | ||
| console.log('ND AD Empty'); | ||
| } | ||
| } | ||
| } | ||
|
|
||
| ONEAD_TEXT = {}; | ||
| ONEAD_TEXT.pub = {}; | ||
| ONEAD_TEXT.pub.uid = 2000374; //媒體 uid | ||
| ONEAD_TEXT.pub.player_mode_div = "div-onead-ad"; | ||
| ONEAD_TEXT.pub.slotobj = document.getElementById("div-onead-nd-01"); | ||
| ONEAD_TEXT.pub.player_mode = "native-drive"; | ||
| ONEAD_TEXT.pub.max_threads = 3; | ||
| ONEAD_TEXT.pub.position_id = /Mobi|Android|iPhone|iPad|iPod/i.test(navigator.userAgent)? "5" : "0"; | ||
| ONEAD_TEXT.pub.mediaOption = { landingNewPage : true } | ||
| ONEAD_TEXT.pub.queryAdCallback = custom_call | ||
| window.ONEAD_text_pubs = window.ONEAD_text_pubs || []; | ||
| ONEAD_text_pubs.push(ONEAD_TEXT); | ||
| </script> | ||
| ONEAD_TEXT = {}; | ||
| ONEAD_TEXT.pub = {}; | ||
| ONEAD_TEXT.pub.uid = 2000374; //媒體 uid | ||
| ONEAD_TEXT.pub.player_mode_div = "div-onead-ad"; | ||
| ONEAD_TEXT.pub.slotobj = document.getElementById("div-onead-nd-01"); | ||
| ONEAD_TEXT.pub.player_mode = "native-drive"; | ||
| ONEAD_TEXT.pub.max_threads = 3; | ||
| ONEAD_TEXT.pub.position_id = /Mobi|Android|iPhone|iPad|iPod/i.test(navigator.userAgent)? "5" : "0"; | ||
| ONEAD_TEXT.pub.mediaOption = { landingNewPage : true } | ||
| ONEAD_TEXT.pub.queryAdCallback = custom_call | ||
| window.ONEAD_text_pubs = window.ONEAD_text_pubs || []; | ||
| ONEAD_text_pubs.push(ONEAD_TEXT); | ||
|
|
||
| <script src="https://ad-specs.guoshipartners.com/static/js/ad-serv.min.js"></script> | ||
| var script = document.createElement('script'); | ||
| script.src = 'https://ad-specs.guoshipartners.com/static/js/ad-serv.min.js'; | ||
| document.body.appendChild(script); | ||
| }); | ||
| </script> | ||
| @push('scripts') | ||
| @endif | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,26 +1,33 @@ | ||
| @if(!is_skip_ad()) | ||
| <div id = "oneadMFSDFPTag"></div> | ||
| @push('scripts') | ||
| <script type="text/javascript"> | ||
| var custom_call = function (params) { | ||
| if (params.hasAd) { | ||
| console.log('MFS has AD') | ||
| } else { | ||
| console.log('MFS AD empty') | ||
| document.addEventListener('DOMContentLoaded', function() { | ||
| var custom_call = function (params) { | ||
| if (params.hasAd) { | ||
| console.log('MFS has AD') | ||
| } else { | ||
| console.log('MFS AD empty') | ||
| } | ||
| } | ||
| } | ||
| var _ONEAD = {}; | ||
| _ONEAD.pub = {}; | ||
| _ONEAD.pub.slotobj = document.getElementById("oneadMFSDFPTag"); | ||
| _ONEAD.pub.slots = ["div-onead-ad"]; | ||
| _ONEAD.pub.uid = "2000374"; | ||
| _ONEAD.pub.external_url = "https://onead.onevision.com.tw/"; | ||
| _ONEAD.pub.player_mode_div = "div-onead-ad"; | ||
| _ONEAD.pub.player_mode = "mobile-fullscreen"; | ||
| _ONEAD.pub.google_view_click = "%%CLICK_URL_UNESC%%"; | ||
| _ONEAD.pub.google_view_pixel = ""; | ||
| _ONEAD.pub.queryAdCallback = custom_call | ||
| var ONEAD_pubs = ONEAD_pubs || []; | ||
| ONEAD_pubs.push(_ONEAD); | ||
| var _ONEAD = {}; | ||
| _ONEAD.pub = {}; | ||
| _ONEAD.pub.slotobj = document.getElementById("oneadMFSDFPTag"); | ||
| _ONEAD.pub.slots = ["div-onead-ad"]; | ||
| _ONEAD.pub.uid = "2000374"; | ||
| _ONEAD.pub.external_url = "https://onead.onevision.com.tw/"; | ||
| _ONEAD.pub.player_mode_div = "div-onead-ad"; | ||
| _ONEAD.pub.player_mode = "mobile-fullscreen"; | ||
| _ONEAD.pub.google_view_click = "%%CLICK_URL_UNESC%%"; | ||
| _ONEAD.pub.google_view_pixel = ""; | ||
| _ONEAD.pub.queryAdCallback = custom_call | ||
| var ONEAD_pubs = ONEAD_pubs || []; | ||
| ONEAD_pubs.push(_ONEAD); | ||
zeng407 marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| var script = document.createElement('script'); | ||
| script.src = 'https://ad-specs.guoshipartners.com/static/js/onead-lib.min.js'; | ||
| document.body.appendChild(script); | ||
| }); | ||
| </script> | ||
| <script type="text/javascript" src = "https://ad-specs.guoshipartners.com/static/js/onead-lib.min.js"></script> | ||
| @endpush | ||
| @endif | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,24 +1,31 @@ | ||
| @if(!is_skip_ad()) | ||
| <div id="div-onead-nd-01"></div> | ||
| @push('scripts') | ||
| <script type="text/javascript"> | ||
| var custom_call = function (params) { | ||
| if (params.hasAd) { | ||
| console.log('ND has AD') | ||
| } else { | ||
| console.log('ND AD Empty'); | ||
| document.addEventListener('DOMContentLoaded', function() { | ||
| var custom_call = function (params) { | ||
| if (params.hasAd) { | ||
| console.log('ND has AD') | ||
| } else { | ||
| console.log('ND AD Empty'); | ||
| } | ||
| } | ||
| } | ||
| ONEAD_TEXT = {}; | ||
| ONEAD_TEXT.pub = {}; | ||
| ONEAD_TEXT.pub.uid = "2000374"; | ||
| ONEAD_TEXT.pub.slotobj = document.getElementById("div-onead-nd-01"); | ||
| ONEAD_TEXT.pub.player_mode = "native-drive"; | ||
| ONEAD_TEXT.pub.player_mode_div = "div-onead-ad"; | ||
| ONEAD_TEXT.pub.max_threads = 3; | ||
| ONEAD_TEXT.pub.position_id = /Mobi|Android|iPhone|iPad|iPod/i.test(navigator.userAgent)? "5" : "0"; | ||
| ONEAD_TEXT.pub.queryAdCallback = custom_call; | ||
| window.ONEAD_text_pubs = window.ONEAD_text_pubs || []; | ||
| ONEAD_text_pubs.push(ONEAD_TEXT); | ||
| ONEAD_TEXT = {}; | ||
| ONEAD_TEXT.pub = {}; | ||
| ONEAD_TEXT.pub.uid = "2000374"; | ||
| ONEAD_TEXT.pub.slotobj = document.getElementById("div-onead-nd-01"); | ||
| ONEAD_TEXT.pub.player_mode = "native-drive"; | ||
| ONEAD_TEXT.pub.player_mode_div = "div-onead-ad"; | ||
| ONEAD_TEXT.pub.max_threads = 3; | ||
| ONEAD_TEXT.pub.position_id = /Mobi|Android|iPhone|iPad|iPod/i.test(navigator.userAgent)? "5" : "0"; | ||
| ONEAD_TEXT.pub.queryAdCallback = custom_call; | ||
| window.ONEAD_text_pubs = window.ONEAD_text_pubs || []; | ||
| ONEAD_text_pubs.push(ONEAD_TEXT); | ||
|
|
||
| var script = document.createElement('script'); | ||
| script.src = 'https://ad-specs.guoshipartners.com/static/js/ad-serv.min.js'; | ||
| document.body.appendChild(script); | ||
| }); | ||
| </script> | ||
| <script src="https://ad-specs.guoshipartners.com/static/js/ad-serv.min.js"></script> | ||
| @endpush | ||
| @endif |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,21 +1,28 @@ | ||
| @if(!is_skip_ad()) | ||
| <div id="div-onead-draft"></div> | ||
| @push('scripts') | ||
| <script type="text/javascript"> | ||
| var custom_call = function (params) { | ||
| if (params.hasAd) { | ||
| console.log('TD has AD') | ||
| } else { | ||
| console.log('TD AD Empty') | ||
| document.addEventListener('DOMContentLoaded', function() { | ||
| var custom_call = function (params) { | ||
| if (params.hasAd) { | ||
| console.log('TD has AD') | ||
| } else { | ||
| console.log('TD AD Empty') | ||
| } | ||
| } | ||
| } | ||
| ONEAD_TEXT = {}; | ||
| ONEAD_TEXT.pub = {}; | ||
| ONEAD_TEXT.pub.uid = "2000374"; | ||
| ONEAD_TEXT.pub.slotobj = document.getElementById("div-onead-draft"); | ||
| ONEAD_TEXT.pub.player_mode = "text-drive"; | ||
| ONEAD_TEXT.pub.queryAdCallback = custom_call; | ||
| window.ONEAD_text_pubs = window.ONEAD_text_pubs || []; | ||
| ONEAD_text_pubs.push(ONEAD_TEXT); | ||
| ONEAD_TEXT = {}; | ||
| ONEAD_TEXT.pub = {}; | ||
| ONEAD_TEXT.pub.uid = "2000374"; | ||
| ONEAD_TEXT.pub.slotobj = document.getElementById("div-onead-draft"); | ||
| ONEAD_TEXT.pub.player_mode = "text-drive"; | ||
| ONEAD_TEXT.pub.queryAdCallback = custom_call; | ||
| window.ONEAD_text_pubs = window.ONEAD_text_pubs || []; | ||
| ONEAD_text_pubs.push(ONEAD_TEXT); | ||
|
|
||
| var script = document.createElement('script'); | ||
| script.src = 'https://ad-specs.guoshipartners.com/static/js/ad-serv.min.js'; | ||
| document.body.appendChild(script); | ||
| }); | ||
| </script> | ||
| <script src="https://ad-specs.guoshipartners.com/static/js/ad-serv.min.js"></script> | ||
| @endpush | ||
| @endif |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,26 +1,33 @@ | ||
| @if(!is_skip_ad()) | ||
| <div id = "oneadMFSDFPTag"></div> | ||
| <div id="oneadMFSDFPTag" data-ad-init="rank-onead-2"></div> | ||
| @push('scripts') | ||
| <script type="text/javascript"> | ||
| var custom_call = function (params) { | ||
| if (params.hasAd) { | ||
| console.log('MFS has AD') | ||
| } else { | ||
| console.log('MFS AD empty') | ||
| document.addEventListener('DOMContentLoaded', function() { | ||
| var custom_call = function (params) { | ||
| if (params.hasAd) { | ||
| console.log('MFS has AD') | ||
| } else { | ||
| console.log('MFS AD empty') | ||
| } | ||
| } | ||
| } | ||
| var _ONEAD = {}; | ||
| _ONEAD.pub = {}; | ||
| _ONEAD.pub.slotobj = document.getElementById("oneadMFSDFPTag"); | ||
| _ONEAD.pub.slots = ["div-onead-ad"]; | ||
| _ONEAD.pub.uid = "2000374"; | ||
| _ONEAD.pub.external_url = "https://onead.onevision.com.tw/"; | ||
| _ONEAD.pub.player_mode_div = "div-onead-ad"; | ||
| _ONEAD.pub.player_mode = "mobile-fullscreen"; | ||
| _ONEAD.pub.google_view_click = "%%CLICK_URL_UNESC%%"; | ||
| _ONEAD.pub.google_view_pixel = ""; | ||
| _ONEAD.pub.queryAdCallback = custom_call | ||
| var ONEAD_pubs = ONEAD_pubs || []; | ||
| ONEAD_pubs.push(_ONEAD); | ||
| var _ONEAD = {}; | ||
| _ONEAD.pub = {}; | ||
| _ONEAD.pub.slotobj = document.getElementById("oneadMFSDFPTag"); | ||
| _ONEAD.pub.slots = ["div-onead-ad"]; | ||
| _ONEAD.pub.uid = "2000374"; | ||
| _ONEAD.pub.external_url = "https://onead.onevision.com.tw/"; | ||
| _ONEAD.pub.player_mode_div = "div-onead-ad"; | ||
| _ONEAD.pub.player_mode = "mobile-fullscreen"; | ||
| _ONEAD.pub.google_view_click = "%%CLICK_URL_UNESC%%"; | ||
| _ONEAD.pub.google_view_pixel = ""; | ||
| _ONEAD.pub.queryAdCallback = custom_call | ||
| var ONEAD_pubs = ONEAD_pubs || []; | ||
| ONEAD_pubs.push(_ONEAD); | ||
zeng407 marked this conversation as resolved.
Outdated
Show resolved
Hide resolved
|
||
|
|
||
| var script = document.createElement('script'); | ||
| script.src = 'https://ad-specs.guoshipartners.com/static/js/onead-lib.min.js'; | ||
| document.body.appendChild(script); | ||
| }); | ||
| </script> | ||
| <script type="text/javascript" src = "https://ad-specs.guoshipartners.com/static/js/onead-lib.min.js"></script> | ||
| @endpush | ||
| @endif | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.