-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
262 lines (225 loc) · 7.69 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
<!DOCTYPE HTML>
<html lang="en-us">
<head>
<meta http-equiv="Content-type" content="text/html; charset=utf-8">
<div id="fb-root"></div>
<script async defer crossorigin="anonymous" src="https://connect.facebook.net/en_US/sdk.js#xfbml=1&version=v12.0&appId=108266609198912&autoLogAppEvents=1" nonce="NPNzjk3X"></script>
<script src="https://apis.google.com/js/platform.js" async defer></script>
<meta name="google-signin-client_id" content="751991855817-e5491un39teregj7ctasi8io9pooirdu.apps.googleusercontent.com">
<title>NON SRA</title>
<script src="https://cdn.cookielaw.org/consent/tcf.stub.js" type="text/javascript" charset="UTF-8"></script>
<!-- OneTrust Cookies Consent Notice start for pm-nitin-nimbalkar.github.io -->
<script type="text/javascript" src="https://cdn.cookielaw.org/consent/3b33fbdb-1108-4db2-bcef-7a28ba71acd3/OtAutoBlock.js" ></script>
<script src="https://cdn.cookielaw.org/scripttemplates/otSDKStub.js" type="text/javascript" charset="UTF-8" data-domain-script="3b33fbdb-1108-4db2-bcef-7a28ba71acd3" ></script>
<script type="text/javascript">
function OptanonWrapper() { }
</script>
<!-- OneTrust Cookies Consent Notice end for pm-nitin-nimbalkar.github.io -->
<script>
(function(d, s, id){
var js, fjs = d.getElementsByTagName(s)[0];
if (d.getElementById(id)) {return;}
js = d.createElement(s); js.id = id;
js.src = "https://connect.facebook.net/en_US/sdk.js";
fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));
window.fbAsyncInit = function() {
FB.init({
appId : '2984036861834746',
cookie : true,
xfbml : true,
version : 'v12.0',
status : true
});
};
</script>
<script type="text/javascript">
window.PWT=window.PWT || {};
//window.PWT.OVERRIDES_PRIMARY_MODULES = [];
//window.PWT.OVERRIDES_SCRIPT_BASED_MODULES = ["identityLink"];
</script>
<script type="text/javascript">
(function(){
window.PWT=window.PWT || {};
if(window.PWT&&!window.PWT.HookForPrebidSetConfig){
window.PWT.HookForPrebidSetConfig=function(configs){
window.PWT.loginEvent = true;
owpbjs&&owpbjs.setUserIdentities({
pubProvidedEmailHash: {
'SHA256': 'fcbb332d8e34a015947614fcf92ff06c92323d9fe78ffbb67f48fdfd13ac1dde'
}
});
console.log("#### in HookForPrebidSetConfig ", owpbjs.getUserIdsAsEids ? owpbjs.getUserIdsAsEids() : []);
console.log("#### in HookForPrebidSetConfig existing configs - ", configs.userSync);
configs.userSync.userIds.push(
{
name: "pubProvidedId",
params: {
eids: [{
source: "domain.com",
uids: [{
id: "value read from cookie or local storage",
atype: 1,
ext: {
stype: "ppuid"
}
}]
}, {
source: "3rdpartyprovided.com",
uids: [{
id: "value read from cookie or local storage",
atype: 3,
ext: {
stype: "dmp"
}
}]
}]
}
})
//owpbjs.refreshUserIds({submoduleNames: ["pubProvidedId"]}, undefined, true);
}
}
})();
</script>
<script>
var owpbjs = owpbjs || {};
owpbjs.que = owpbjs.que || [];
console.log("#### Logging ids before adding pubprovided id ", owpbjs.getUserIdsAsEids ? owpbjs.getUserIdsAsEids() : []);
</script>
<script type="text/javascript">
(function() {
var purl = window.location.href;
var url = '//ads.pubmatic.com/AdServer/js/pwt/5890';
var profileId = '0';
var profileVersionId = '1';
var profile = '';
var project = '';
if(purl.indexOf('profile=')>0){
var regexp = /profile=(.*?)(&|$)/g;
var matches = regexp.exec(purl);
if(matches.length >= 2 && matches[1].length > 0){
profile = matches[1];
}
}
if(purl.indexOf('pwtv=')>0){
var regexp = /pwtv=(.*?)(&|$)/g;
var matches = regexp.exec(purl);
if(matches.length >= 2 && matches[1].length > 0){
profileVersionId = '/'+matches[1];
}
}
if(purl.indexOf('project=')>0){
var regexp = /project=(.*?)(&|$)/g;
var matches = regexp.exec(purl);
if(matches.length >= 2 && matches[1].length > 0){
project = matches[1];
}
}
if(purl.indexOf('profileId=')>0) {
var regexp = /profileId=(.*?)(&|$)/g;
var matches = regexp.exec(purl);
if(matches.length >= 2 && matches[1].length > 0){
profileId = '/'+matches[1];
}
}
var wtads = document.createElement('script');
wtads.async = true;
wtads.type = 'text/javascript';
/*if (profileId !== '0') {
wtads.src = 'https://ads.pubmatic.com/AdServer/js/pwt/5890'+profileId+profileVersionId+'/pwt.js';
} else {
wtads.src = 'owt.'+profile+"."+project+".js";
}*/
wtads.src = "owt.ow.compliance_nightly.js";
var node = document.getElementsByTagName('script')[0];
node.parentNode.insertBefore(wtads, node);
})();
</script>
<script type='text/javascript'>
var googletag = googletag || {};
googletag.cmd = googletag.cmd || [];
(function() {
setTimeout(function(){
var gads = document.createElement('script');
gads.async = true;
gads.type = 'text/javascript';
var useSSL = 'https:' == document.location.protocol;
gads.src = (useSSL ? 'https:' : 'http:') +
'//www.googletagservices.com/tag/js/gpt.js';
var node = document.getElementsByTagName('script')[0];
node.parentNode.insertBefore(gads, node);
}, 6000); // Adding 250ms delay to gpt.js for PubMatic script to load
})();
</script>
<script type="text/javascript">
googletag.cmd.push(function() {
var s1=googletag.defineSlot('/43743431/DMDemo', [[728, 90]], 'Div1').addService(googletag.pubads());
s1.setTargeting('a', [1]);
s1.setTargeting('b', [2]);
s1.setTargeting('c', 3);
s1.setTargeting('d', ['a', 'b', 'c']);
var s2=googletag.defineSlot('/43743431/DMDemo1', [[300, 250]], 'Div2').addService(googletag.pubads());
s2.setTargeting('aa', [11]);
s2.setTargeting('bb', [22]);
s2.setTargeting('dd', ['aa', 'bb', 'cc']);
// common targetings
googletag.pubads().setTargeting('v','classifieds');
googletag.pubads().setTargeting('cpage','browseads');
googletag.pubads().setTargeting('article-id','65207');
googletag.pubads().setTargeting('automation','1');
googletag.enableServices();
googletag.display('Div1');
googletag.display('Div2');
});
</script>
</head>
<body style='background-color:whitesmoke;'>
<h2 style='text-align:center;'>
NON SRA
</h2>
<fb:login-button auto_logout_link="true" scope="public_profile,email" onlogin="checkSSOLoginStatus()">
</fb:login-button>
<hr />
<div class="g-signin2" data-onsuccess="checkSSOLoginStatus"></div>
<a href="#" onclick="signOut();">Sign out</a>
<script>
function signOut() {
var auth2 = gapi.auth2.getAuthInstance();
auth2.signOut().then(function () {
console.log('User signed out.');
});
}
</script>
<br><br>
<!-- DMDemo -->
Adslot : /43743431/DMDemo
<br>
<div id='Div1'>
</div>
<br><br>
<!-- DMDemo1 -->
Adslot : /43743431/DMDemo1
<br>
<div id='Div2'>
</div>
<form onSubmit="javascript:alert('hi'); return false">
<input
type="text"
id="first"
name="first"
/>
<button type="submit">Submit</button>
<!-- <script type='text/javascript'>
setTimeout(function(){
var gads = document.createElement('script');
gads.async = true;
gads.type = 'text/javascript';
var useSSL = 'https:' == document.location.protocol;
gads.src = 'complaince.js'
var scripts = document.getElementsByTagName('script').length;
var node = document.getElementsByTagName('script')[scripts-1]
node.parentNode.insertBefore(gads, node);
}, 6000); // Adding 250ms delay to gpt.js for PubMatic script to load
</script> -->
</body>
</html>