Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a51fbd1
commit 475c9bc
Showing
62 changed files
with
58,535 additions
and
29 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
58 changes: 58 additions & 0 deletions
58
Icons - Material Design checkmark_files/analytics.js.download
Large diffs are not rendered by default.
Oops, something went wrong.
3,133 changes: 3,133 additions & 0 deletions
3,133
Icons - Material Design checkmark_files/baseline.css
Large diffs are not rendered by default.
Oops, something went wrong.
1,071 changes: 1,071 additions & 0 deletions
1,071
Icons - Material Design checkmark_files/bundle.js.download
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
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,40 @@ | ||
|
||
var hats20Files = [ | ||
'https://www.google.com/insights/consumersurveys/gk/static/hats-integration-release.js' | ||
]; | ||
|
||
// Callout to the HaTS 2.0 library to show a survey after all files are loaded. | ||
var numLoadedFiles = 0; | ||
function showSurvey() { | ||
numLoadedFiles++; | ||
if (numLoadedFiles == hats20Files.length) { | ||
var sc = window._402 && _402.sc; | ||
hatsStub.GCSHatsUrl = '//www.google.com/insights/consumersurveys/gk/prompt'; | ||
hatsStub.showSurvey("znr647dh46pklceehuqef2fsua", "en-US", sc, {'fetch_google_token': true}); | ||
} | ||
} | ||
|
||
// Load all components of the Hat2.0 library. | ||
hats20Files.forEach(function(url) { | ||
var fileType = url.split('.').pop(); | ||
if (fileType == 'js') { | ||
var js = document.createElement('script'); | ||
var noncedScript = document.querySelector('script[nonce]'); | ||
if (noncedScript) { | ||
js.setAttribute('nonce', noncedScript['nonce'] || noncedScript.getAttribute('nonce')); | ||
} | ||
js.type = 'text/javascript'; | ||
js.charset = 'utf-8'; | ||
js.async = true; | ||
js.src = url; | ||
js.addEventListener('load', showSurvey); | ||
document.head.appendChild(js); | ||
} else if (fileType == 'css') { | ||
var css = document.createElement("link"); | ||
css.setAttribute("rel", "stylesheet"); | ||
css.setAttribute("type", "text/css"); | ||
css.setAttribute("href", url); | ||
css.onload = showSurvey; | ||
document.head.appendChild(css); | ||
} | ||
}); |
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 @@ | ||
processGoogleToken({"newToken":"AOsWmdfDI_wVJnivHW86gsmaITyiXjTq4PoDMJlFpmXoIZLmMU1l1eV1nA","validLifetimeSecs":300,"freshLifetimeSecs":300,"1p_jar":"2018-07-04-21","pucrd":"CgwIABAAGAMgACgAOAESAhgHeAM"}); |
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.