@arc-publishing/sdk-swg
Version:
SDK for using Subscribe with Google with Arc Subscriptions
122 lines (120 loc) • 3.21 kB
HTML
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width" />
<title>Arc Subscriptions</title>
<link
rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.8.2/css/all.min.css"
/>
<link
rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/bulma/0.7.5/css/bulma.min.css"
/>
<script
async
subscriptions-control="manual"
src="https://news.google.com/swg/js/v1/swg.js"
></script>
<script>
window.ongoogleload = function() {
window.gapi.load('auth2');
};
</script>
<script src="https://apis.google.com/js/platform.js" onload="window.ongoogleload()"></script>
<script id="swg-annotations" type="application/ld+json">
{
"@context": "http://schema.org",
"@type": "NewsArticle",
"isAccessibleForFree": true,
"publisher": {
"@type": "Organization",
"name": "Arc Subscriptions"
},
"isPartOf": {
"@type": ["Article", "Product"],
"name": "ArcSubscriptions",
"productID": "arcsubs.com:premium"
}
}
</script>
<script>
var ArcPWRules = [
{
cr: [true, 'test_id'],
e: [
true,
'digitalintro',
'digitalstandard',
'digitalannual',
'1',
'DJDIGITAL',
'DigitalMonthly',
'DigitalMonthlyBasicStarter'
],
bc: [true, 'frequency'],
pw: 'https://play.nzherald.co.nz/',
rt: ['>', 5],
id: 27,
budget: {
budgetType: 'Calendar',
rollingDays: null,
rollingHours: null
}
},
{
cr: [true, 'test_id'],
e: [
true,
'digitalintro',
'digitalstandard',
'digitalannual',
'1',
'DJDIGITAL',
'DigitalMonthly',
'DigitalMonthlyBasicStarter'
],
pw: 'https://play.nzherald.co.nz/',
rt: ['>',3],
id: 28,
budget: {
budgetType: 'Rolling',
calendarType: null,
calendarWeekDay: null,
rollingType: 'Days',
rollingDays: 5,
rollingHours: null
}
},
{
cr: [true, 'test_id'],
e: [
true,
'digitalintro',
'digitalstandard',
'digitalannual',
'1',
'DJDIGITAL',
'DigitalMonthly',
'DigitalMonthlyBasicStarter'
],
pw: 'https://play.nzherald.co.nz/',
rt: ['>', 20],
id: 29,
budget: {
budgetType: 'Calendar',
calendarType: "Monthly",
calendarWeekDay: null,
rollingType: null,
rollingDays: null,
rollingHours: null
}
}
];
</script>
</head>
<body>
<div id="app" class="arc-subs">hello</div>
<script type="text/javascript" src="index.js"></script></body>
</html>