This repository has been archived by the owner on Sep 11, 2024. It is now read-only.
forked from as-ideas/oil
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #4 from tv2/feature/TV2DK-2494
TV2DK-2494: Maintain temporary settings across screens in PR
- Loading branch information
Showing
10 changed files
with
185 additions
and
6 deletions.
There are no files selected for viewing
This file contains 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 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 |
---|---|---|
@@ -0,0 +1,87 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta charset="utf-8"> | ||
<meta http-equiv="x-ua-compatible" content="ie=edge"> | ||
<title>Test Page</title> | ||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> | ||
<!-- tag::oil-config[] --> | ||
<script id="oil-configuration" type="application/configuration"> | ||
{ | ||
"config_version": 1, | ||
"advanced_settings": true, | ||
"poi_group_name": "testGroup", | ||
"timeout": -1, | ||
"publicPath": "/", | ||
"locale": { | ||
"version": 1, | ||
"localeId": "de", | ||
"texts": { | ||
"label_intro_heading": "We use cookies and other technologies", | ||
"label_intro": "The website uses cookies, web beacons, JavaScript and similar technologies.", | ||
"label_button_yes": "OK", | ||
"label_button_back": "Back", | ||
"label_button_advanced_settings": "More information", | ||
"label_cpc_heading": "Please select a privacy setting:", | ||
"label_cpc_text": "cpc_text", | ||
"label_cpc_activate_all": "Activate all", | ||
"label_cpc_deactivate_all": "Deactivate all", | ||
"label_cpc_purpose_desc": "Purposes", | ||
"label_cpc_purpose_01_text": "Accessing a Device", | ||
"label_cpc_purpose_01_desc": "Allow storing or accessing information on a user’s device.", | ||
"label_cpc_purpose_02_text": "Advertising Personalisation", | ||
"label_cpc_purpose_02_desc": "Allow processing of a user’s data to provide and inform personalised advertising (including delivery, measurement, and reporting) based on a user’s preferences or interests known or inferred from data collected across multiple sites, apps, or devices; and/or accessing or storing information on devices for that purpose.", | ||
"label_cpc_purpose_03_text": "Analytics", | ||
"label_cpc_purpose_03_desc": "Allow processing of a user’s data to deliver content or advertisements and measure the delivery of such content or advertisements, extract insights and generate reports to understand service usage; and/or accessing or storing information on devices for that purpose.", | ||
"label_cpc_purpose_04_text": "Content Personalisation", | ||
"label_cpc_purpose_04_desc": "Allow processing of a user’s data to provide and inform personalised content (including delivery, measurement, and reporting) based on a user’s preferences or interests known or inferred from data collected across multiple sites, apps, or devices; and/or accessing or storing information on devices for that purpose.", | ||
"label_cpc_purpose_05_text": "Matching Data to Offline Sources", | ||
"label_cpc_purpose_05_desc": "Combining data from offline sources that were initially collected in other contexts", | ||
"label_cpc_purpose_06_text": "Linking Devices", | ||
"label_cpc_purpose_06_desc": "Allow processing of a user’s data to connect such user across multiple devices.", | ||
"label_cpc_purpose_07_text": "Precise Geographic Location data", | ||
"label_cpc_purpose_07_desc": "Allow processing of a user’s precise geographic location data in support of a purpose for which that certain third party has consent", | ||
"label_poi_group_list_heading": "Your consent for companies of the group", | ||
"label_poi_group_list_text": "Here is a list of companies of the group:", | ||
"label_third_party": "Third Parties", | ||
"label_thirdparty_list_heading": "Your consent for third party software", | ||
"label_thirdparty_list_text": "Your consent", | ||
"label_nocookie_head": "In order to be able to provide our services in the best possible way, cookies must be activated in your browser.", | ||
"label_nocookie_text": "Please activate Cookies in the properties of your Browsers." | ||
} | ||
}, | ||
"customPurposes": [{ | ||
"id": 25, | ||
"name": "Custom Purpose 1", | ||
"description": "Lorem!" | ||
}, | ||
{ | ||
"id": 26, | ||
"name": "Custom Purpose 2", | ||
"description": "Lorem2!" | ||
}], | ||
"advanced_settings_purposes_preserve": true | ||
} | ||
</script> | ||
<!-- end::oil-config[] --> | ||
<style> | ||
body { | ||
font-family: 'Nunito', sans-serif; | ||
font-size: 60px; | ||
color: #f7f7f7; | ||
height: 100%; | ||
background: linear-gradient(20deg, #3a871a 0%, #a5ba10 50%, #cfcd26 100%); | ||
padding: 0; | ||
margin: 0; | ||
} | ||
|
||
.demoname { | ||
padding: 24px; | ||
} | ||
</style> | ||
</head> | ||
|
||
<body> | ||
<div class="demoname">Group A Site A</div> | ||
</body> | ||
</html> |
This file contains 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 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 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 |
---|---|---|
@@ -0,0 +1,36 @@ | ||
import { logInfo } from './core_log'; | ||
|
||
export let pendingPurposes = false; | ||
|
||
export function getPendingPurposes() { | ||
return pendingPurposes; | ||
} | ||
|
||
export function setPendingPurposes(purposes) { | ||
pendingPurposes = purposes; | ||
logInfo('set pending purposes', pendingPurposes) | ||
} | ||
|
||
export function addPendingPurpose(str) { | ||
const id = parseInt(str, 10); | ||
if (pendingPurposes.indexOf(id) === -1) { | ||
pendingPurposes.push(id); | ||
logInfo('add pending purpose', id) | ||
} | ||
} | ||
|
||
export function removePendingPurpose(str) { | ||
const id = parseInt(str, 10); | ||
if (pendingPurposes.indexOf(id) !== -1) { | ||
pendingPurposes = pendingPurposes.filter(i => i !== id); | ||
logInfo('remove pending purpose', id) | ||
} | ||
} | ||
|
||
export function setPendingPurpose(Id, value) { | ||
if(value) { | ||
addPendingPurpose(Id); | ||
} else { | ||
removePendingPurpose(Id); | ||
} | ||
} |
This file contains 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 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 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 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 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