Skip to content

Commit

Permalink
Merge pull request #160 from GSA-TTS/jp/qualtrics-snippet
Browse files Browse the repository at this point in the history
Include Qualtrics Survey
  • Loading branch information
jperson1 authored Sep 23, 2024
2 parents 01600dd + b2d829a commit d6ed1a5
Show file tree
Hide file tree
Showing 8 changed files with 25 additions and 18 deletions.
13 changes: 13 additions & 0 deletions src/_includes/components/qualtrics.njk
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{# Snippet pulled directly from Qualtrics #}

<!--BEGIN QUALTRICS WEBSITE FEEDBACK SNIPPET-->
<script type='text/javascript'>
(function(){var g=function(e,h,f,g){
this.get=function(a){for(var a=a+"=",c=document.cookie.split(";"),b=0,e=c.length;b<e;b++){for(var d=c[b];" "==d.charAt(0);)d=d.substring(1,d.length);if(0==d.indexOf(a))return d.substring(a.length,d.length)}return null};
this.set=function(a,c){var b="",b=new Date;b.setTime(b.getTime()+6048E5);b="; expires="+b.toGMTString();document.cookie=a+"="+c+b+"; path=/; "};
this.check=function(){var a=this.get(f);if(a)a=a.split(":");else if(100!=e)"v"==h&&(e=Math.random()>=e/100?0:100),a=[h,e,0],this.set(f,a.join(":"));else return!0;var c=a[1];if(100==c)return!0;switch(a[0]){case "v":return!1;case "r":return c=a[2]%Math.floor(100/c),a[2]++,this.set(f,a.join(":")),!c}return!0};
this.go=function(){if(this.check()){var a=document.createElement("script");a.type="text/javascript";a.src=g;document.body&&document.body.appendChild(a)}};
this.start=function(){var t=this;"complete"!==document.readyState?window.addEventListener?window.addEventListener("load",function(){t.go()},!1):window.attachEvent&&window.attachEvent("onload",function(){t.go()}):t.go()};};
try{(new g(100,"r","QSI_S_ZN_cN4gyJuBGhPsmcx","https://zncn4gyjubghpsmcx-cemgsa.gov1.siteintercept.qualtrics.com/SIE/?Q_ZID=ZN_cN4gyJuBGhPsmcx")).start()}catch(i){}})();
</script><div id='ZN_cN4gyJuBGhPsmcx'><!--DO NOT REMOVE-CONTENTS PLACED HERE--></div>
<!--END WEBSITE FEEDBACK SNIPPET-->
21 changes: 12 additions & 9 deletions src/_includes/layout.njk
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,22 @@
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="Content-Security-Policy" content="default-src 'self'; script-src 'self' 'unsafe-inline' https://dap.digitalgov.gov https://www.google-analytics.com https://www.googletagmanager.com https://search.usa.gov https://touchpoints.app.cloud.gov; img-src 'self' https://touchpoints.app.cloud.gov; style-src 'self' 'unsafe-inline'; object-src 'none'; worker-src 'none'; connect-src https://www.google-analytics.com;">
<meta http-equiv="Content-Security-Policy"
content="default-src 'self';
connect-src https://www.google-analytics.com https://gov1.siteintercept.qualtrics.com ws://localhost:8080/;
frame-src https://feedback.gsa.gov/;
img-src 'self' https://gov1.siteintercept.qualtrics.com https://*.amazonaws.com/uploads/form/logo/3110/logo_square_Vector80w(2).jpg;
object-src 'none';
script-src 'self' 'unsafe-inline' https://gov1.siteintercept.qualtrics.com https://*.gov1.siteintercept.qualtrics.com https://dap.digitalgov.gov https://www.google-analytics.com https://www.googletagmanager.com http://search.usa.gov;
style-src 'self' 'unsafe-inline';
worker-src 'none';">
<meta name="{{meta.name}}" description="{{meta.description}}">
<link rel="icon" type="image/x-icon" href="{{ config.baseUrl }}assets/img/favicons/icon_logo.svg" />
<link rel="stylesheet" href="{{ config.baseUrl }}assets/css/styles.css" media="all" type="text/css">

{# Add Qualtrics feedback form to every page #}
{% include './components/qualtrics.njk' %}

<title>{{ title }}</title>
</head>

Expand All @@ -24,11 +35,6 @@

<!-- We participate in the US government's analytics program. See the data at analytics.usa.gov. -->
<script async type="text/javascript" src="https://dap.digitalgov.gov/Universal-Federated-Analytics-Min.js?agency=GSA&subagency=TTS" id="_fed_an_ua_tag"></script>

<!-- Add Touchpoints intercept -->
<!--
<script src="https://touchpoints.app.cloud.gov/touchpoints/9412c559.js" async></script>
-->

<script>
//<![CDATA[
Expand All @@ -42,7 +48,4 @@
//]]>
</script>
</body>
{% if include_survey %}
<script src="https://touchpoints.app.cloud.gov/touchpoints/ba4ae239.js" async></script>
{% endif %}
</html>
2 changes: 0 additions & 2 deletions src/audit-resources/how-to.md
Original file line number Diff line number Diff line change
Expand Up @@ -50,5 +50,3 @@ inlcude_survey: true
{% endfor %}
</main>
</div>

<script src="https://touchpoints.app.cloud.gov/touchpoints/ba4ae239.js" async></script>
2 changes: 0 additions & 2 deletions src/audit-resources/user-access.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,5 +52,3 @@ The instructions below walk you through making changes to user roles. Once you h
{% endif %}
{% endfor %}
</div>

<script src="https://touchpoints.app.cloud.gov/touchpoints/ba4ae239.js" async></script>
1 change: 0 additions & 1 deletion src/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ title: The Federal Audit Clearinghouse
meta:
name: The Federal Audit Clearinghouse
description: The Federal Audit Clearinghouse is the home of the single audit process for the federal government awards system.
include_survey: true
---
<div class="home">
<div class="grid-container">
Expand Down
2 changes: 0 additions & 2 deletions src/tribal.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,5 +52,3 @@ The instructions below walk you through searching for Tribal audits.
{% endif %}
{% endfor %}
</div>

<script src="https://touchpoints.app.cloud.gov/touchpoints/ba4ae239.js" async></script>
1 change: 0 additions & 1 deletion src/updates/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ title: Updates from the FAC
meta:
name: Updates from the Federal Audit Clearinghouse
description: Stay up-to-date on the FAC transition and read the latest on the single audit process.
include_survey: true
---

# Updates from the FAC
Expand Down
1 change: 0 additions & 1 deletion src/welcome.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ title: Welcome to the Federal Audit Clearinghouse
meta:
name: Welcome to the Federal Audit Clearinghouse
description: The Federal Audit Clearinghouse is the home of the single audit process for the federal government awards system.
include_survey: true
---

# Welcome to the FAC
Expand Down

0 comments on commit d6ed1a5

Please sign in to comment.