CINXE.COM
All Services - States of Guernsey
<!DOCTYPE html> <html> <head> <title>All Services - States of Guernsey</title> <base href="https://www.gov.gg/" /> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta http-equiv="Content-Style-Type" content="text/css" /> <meta http-equiv="Content-Script-Type" content="text/javascript" /> <meta name="viewport" content="width=device-width, initial-scale=1" /> <meta name="msvalidate.01" content="264F7F9A84A232DFEA02E7BA8FD28A6F" /> <!-- Google Tag Manager --> <script>(function (w, d, s, l, i) { w[l] = w[l] || []; w[l].push({ 'gtm.start': new Date().getTime(), event: 'gtm.js' }); var f = d.getElementsByTagName(s)[0], j = d.createElement(s), dl = l != 'dataLayer' ? '&l=' + l : ''; j.async = true; j.src = 'https://www.googletagmanager.com/gtm.js?id=' + i + dl; f.parentNode.insertBefore(j, f); })(window, document, 'script', 'dataLayer', 'GTM-KKCDCGM');</script> <!-- End Google Tag Manager --> <meta name="generator" content="GOSS iCM - Intelligent Content Management" /> <meta name="DC.format.medium" content="html/text" /> <meta name="DC.date.created" content="2015-10-07T16:15:59+01:00" scheme="W3CDTF" /> <meta name="DC.date.issued" content="2015-10-07T16:15:44+01:00" scheme="W3CDTF" /> <meta name="DC.date.modified" content="2023-12-05T16:59:46+00:00" scheme="W3CDTF" /> <meta name="DC.date.disposal.review" content="2114-10-07T16:15:44+01:00" scheme="W3CDTF" /> <meta name="eGMS.accessibility" content="a" scheme="eGMS.WCAG20" /> <meta name="DC.title" content="All Services" /> <meta name="DC.description" content="From here you can access all areas of the site." /> <meta name="description" content="From here you can access all areas of the site." /> <meta name="DC.identifier" content="https://www.gov.gg/all" scheme="DCTERMS.URI" /> <meta name="DC.language" content="en" scheme="ISO 639-3/T" /> <meta name="DC.rights.copyright" content="Copyright 2024 States of Guernsey" /> <meta name="DC.type" content="accounts" scheme="eGMS.TES" /> <meta name="DC.Audience" content="carers" /> <meta name="DC.contributor" content="PO Box 23, St Peter Port, Guernsey, GY1 3AN, Channel Islands" /> <meta name="DC.creator" content="PO Box 23, St Peter Port, Guernsey, GY1 3AN, Channel Islands" /> <meta name="DC.publisher" content="PO Box 23, St Peter Port, Guernsey, GY1 3AN, Channel Islands" /> <link rel="apple-touch-icon" sizes="180x180" href="./govgg1/images/apple-touch-icon.png"> <link rel="icon" type="image/png" href="./govgg1/images/favicon-32x32.png" sizes="32x32"> <link rel="icon" type="image/png" href="./govgg1/images/favicon-16x16.png" sizes="16x16"> <link rel="manifest" href="./govgg1/images/manifest.json"> <link rel="mask-icon" href="./govgg1/images/safari-pinned-tab.svg" color="#357c57"> <link rel="shortcut icon" href="./govgg1/images/favicon.ico"> <meta name="msapplication-config" content="./govgg1/images/browserconfig.xml"> <meta name="theme-color" content="#ffffff"> <meta property="og:image" content="http://www.gov.gg/./media/facebook520/n/a/default-share1.jpg" /> <script type="text/javascript" src="./govgg1/scripts/jquery/jquery-1.11.3.min.js"></script><script type="text/javascript" src="./govgg1/scripts/jquery/tweecool.js"></script><script type="text/javascript" src="./govgg1/scripts/jquery/jquery.colorbox-min.js"></script><script type="text/javascript" src="./govgg1/scripts/jquery/jquery.bxslider.min.js"></script><script type="text/javascript" src="./govgg1/scripts/modernizr.js"></script><script type="text/javascript" src="./govgg1/scripts/javascripts.js"></script><script type="text/javascript" src="./govgg1/scripts/html5.js"></script> <link href="./govgg1/css/editor.css" rel="stylesheet" type="text/css" media="all" /> <link href="./govgg1/css/reset.css" rel="stylesheet" type="text/css" media="all" /> <link href="./govgg1/css/html5reset-1.6.1.css" rel="stylesheet" type="text/css" media="all" /> <link href="./govgg1/css/mainstyles.css" rel="stylesheet" type="text/css" media="all" /> <link href="./govgg1/css/colorbox.css" rel="stylesheet" type="text/css" media="all" /> <link href="./govgg1/css/mobilestyles.css" rel="stylesheet" type="text/css" media="(max-width:1466px)" /> <link href="./govgg1/css/print.css" rel="stylesheet" type="text/css" media="print" /> <!--[if IE 8]> <link href="./govgg1/css/ie8.css" rel="stylesheet" type="text/css" media="all" /> <![endif]--> <link href="./govgg1/css/addtohomescreen.css" rel="stylesheet" type="text/css" media="all" /> <link href="./govgg1/css/font-awesome.css" rel="stylesheet" type="text/css" media="all" /> <link href="./govgg1/template/default/css/default.css" rel="stylesheet" type="text/css" media="all" /> <!--[if gte IE 9]> <style type="text/css"> nav { filter: none; } </style> <![endif]--> <!--[if lte IE 9]> <style type="text/css"> footer #socialFooter a:hover { color:#fff; } </style> <script src="//cdnjs.cloudflare.com/ajax/libs/jquery-ajaxtransport-xdomainrequest/1.0.2/jquery.xdomainrequest.min.js"></script> <![endif]--> <script type="text/javascript" src="./govgg1/scripts/binbag2021.js"></script> <script type="text/javascript" src="./govgg1/scripts/vue.min.js"></script> <script type="text/javascript"> (function (i, s, o, g, r, a, m) { i['GoogleAnalyticsObject'] = r; i[r] = i[r] || function () { (i[r].q = i[r].q || []).push(arguments) }, i[r].l = 1 * new Date(); a = s.createElement(o), m = s.getElementsByTagName(o)[0]; a.async = 1; a.src = g; m.parentNode.insertBefore(a, m) })(window, document, 'script', '//www.google-analytics.com/analytics.js', 'ga'); ga('create', 'UA-24250922-37', 'auto'); ga('send', 'pageview'); </script> </head> <body onload="pageLoaded();"> <!-- Google Tag Manager (noscript) --> <noscript>XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX;visibility:hidden"></iframe></noscript> <!-- End Google Tag Manager (noscript) --> <header><div id="innerHeader"> <a href="https://www.gov.gg/article/119613/GOVGG" id="logo"><span class="alert-Crest"></span>GOV.GG</a> <p id="logoText">The official website for the States of Guernsey</p> <div id="iconContainer"> <span class="alert-Quicklinkrecycle noselect" onclick="ga('send', 'event', 'Icon', 'Click', 'Recycle');" data-feed="recycleFeedContainer"></span> <span class="alert-Quiclinkweather noselect" onclick="ga('send', 'event', 'Icon', 'Click', 'Weather');" data-feed="weatherContainer"><span>Today</span></span> <span class="alert-Quicklinktranslate noselect" onclick="ga('send', 'event', 'Icon', 'Click', 'Translate');" data-feed="translateFeedContainer"></span> <span class="alert-Search"></span> <span class="alert-Hamburger"></span> </div> <div id="toplevelsearch"> <form action="https://www.gov.gg/article/162975/Search-Whole-Site?sort=Relevance&size=10#top" method="get"> <fieldset> <span class="icon-mag-search"></span> <input id="q" name="q" value="" placeholder="Search gov.gg" /><input class="submit" id="blockButton" value="Search" type="submit" /> <input type="hidden" name="size" value="10" /> </fieldset> </form> </div> <div id="feedContainer"> <div id="recycleFeedContainer"><span class="icon-sack31"></span> <h4></h4> <p></p> <div class="recycleParishInfo"> <h5>St Peter Port & St Sampson</h5> <div class="blueBagContainer stpp"><span>Blue Bag</span><img src="./govgg1/images/recycling/bluebag.png" /></div> <div class="clearBagContainer stpp"><span>Clear Bag</span><img src="./govgg1/images/recycling/whitebag.png" /></div> <div class="foodBagContainer stpp"><span>Food Waste</span><img src="./govgg1/images/recycling/foodbag.png" /></div> <div class="blackBagContainer stpp"><span>Black Bag</span><img src="./govgg1/images/recycling/blackbag.png" /></div> <div class="glassBagContainer stpp"><span>Glass Bag</span><img src="./govgg1/images/recycling/glassbag.png" /></div> <hr /> <h5>All Other Parishes</h5> <div class="blueBagContainer other"><span>Blue Bag</span><img src="./govgg1/images/recycling/bluebag.png" /></div> <div class="clearBagContainer other"><span>Clear Bag</span><img src="./govgg1/images/recycling/whitebag.png" /></div> <div class="foodBagContainer other"><span>Food Waste</span><img src="./govgg1/images/recycling/foodbag.png" /></div> <div class="blackBagContainer other"><span>Black Bag</span><img src="./govgg1/images/recycling/blackbag.png" /></div> <div class="glassBagContainer other"><span>Glass Bag</span><img src="./govgg1/images/recycling/glassbag.png" /></div> </div> <a style="clear:both; font-size: 0.6em;" onclick="ga('send', 'event', 'Recycle Link', 'Click', 'Recycling');" href="https://www.gov.gg/article/166846/Household-recycling-and-bin-collections">More Information</a> </div> <div id="weatherContainer"><div id="left"><img src="./govgg1/images/weather/f1.svg" alt="weather icon" /><span id="weatherSummary">Some early brightness but mainly cloudy, perhaps some patchy light rain later.</span></div><span id="highTemp"><span>High</span>11°C</span><span id="lowTemp"><span>Low</span>9°C</span><div id="Right"><span id="wind"><span>Wind</span>East to southeast light F2 to 3, increasing moderate F4 by mid-morning.</span></div><br style="clear:both;" /><a onclick="ga('send', 'event', 'Weather Link', 'Click', '5 day forecast');" href="https://www.gov.gg/weather">5 day forecast</a><a onclick="ga('send', 'event', 'Weather Link', 'Click', 'Tide timetables');" href="https://www.gov.gg/article/120220/Tide-timetables">Tide timetables</a></div> <div id="translateFeedContainer"> <ul class="translation-links"> <li><a href="#" onclick="ga('send', 'event', 'Translate Link', 'Click', 'French');" class="french" data-lang="French"><img src="./govgg1/images/france.gif" alt="French" /></a></li> <li><a href="#" onclick="ga('send', 'event', 'Translate Link', 'Click', 'German');" class="german" data-lang="German"><img src="./govgg1/images/germany.gif" alt="German" /></a></li> <li><a href="#" onclick="ga('send', 'event', 'Translate Link', 'Click', 'Portuguese');" class="portuguese" data-lang="Portuguese"><img src="./govgg1/images/portugal.gif" alt="Portuguese" /></a></li> <li><a href="#" onclick="ga('send', 'event', 'Translate Link', 'Click', 'Lavtian');" class="lavtian" data-lang="Latvian"><img src="./govgg1/images/latvia.gif" alt="Lavtian" /></a></li> <li><a href="#" onclick="ga('send', 'event', 'Translate Link', 'Click', 'Polish');" class="polish" data-lang="Polish"><img src="./govgg1/images/poland.gif" alt="Poland" /></a></li> </ul> <div id="google_translate_element"></div> </div> </div> <div id="rightContainer"> <script type="text/javascript"> function googleTranslateElementInit() { new google.translate.TranslateElement({ pageLanguage: 'en', layout: google.translate.TranslateElement.InlineLayout.SIMPLE, gaTrack: true, gaId: 'UA-24250922-37' }, 'google_translate_element'); } </script><script type="text/javascript" src="//translate.google.com/translate_a/element.js?cb=googleTranslateElementInit"></script> <!--<button id="signIn" onClick="OIDC.login( {scope : 'openid profile email', response_type : 'token id_token'} );" type="button" class="btn btn-success" >Sign In</button>--> <!--<button id="signIn" type="button" class="btn btn-success js-login">Sign In</button>--> <a href="/signin" id="signIn">Sign In</a> <a href="https://qa.gov.gg/cb-signin" class="username1"></a> <style> #signIn { background:none; border:none; cursor:pointer; } .username1 { color: #357C57; font-family: open_sansregular; display: inline-block; font-size: 1.2em; margin-top: -10px; /* background: #efefef; */ border-radius: 10px; padding: 10px; border: 1px solid #efefef; width: 133px; line-height: 1.2em; position: relative; box-sizing: border-box; padding-left: 47px; overflow: hidden; display:none; } .username1 .fa-user-o:before { color: #595959; text-align: center; font-size: 2.3em; margin-top: 2px; display: block; } .username1 .fa-user-o { float: left; margin-right:10px; position:absolute; left:10px; top:10px; } </style> </div> <!-- Single Signon START --> <!--<script src="govgg1/scripts/openidconnect.js" type="text/javascript"></script>--> <!--<script src="govgg1/scripts/jquery/cookie.js" type="text/javascript"></script>--> <script src="govgg1/scripts/oidc-client.js" type="text/javascript"></script> <!--<script src="govgg1/scripts/implicit1.js" type="text/javascript"></script>--> <!--<script> var userInfoClaims = null; function print_id_token() { var infoEl = document.getElementById("retrievedInfo"); //infoEl.innerHTML = '<b>Id_token</b>' + tokenClaimsHTMLString + '\n<b>User Info</b>' + userInfoClaimsHTMLString; if (userInfoClaims != null) { $('#signIn').hide(); var username = userInfoClaims.name; $('#username').text("Hello " + username); $('#username').show(); } } // do your stuff if(window.location.href.indexOf("cb-signin") > -1) { OIDC.restoreInfo() var id_token = OIDC.getValidIdToken(); var access_token = OIDC.getAccessToken(); sessionStorage['access_token'] = access_token; var tokenClaims = JSON.parse(OIDC.getIdTokenParts(id_token)[1]); userInfoClaims = JSON.parse(OIDC.getUserInfo(access_token)); var tokenClaimsHTMLString = JSONObjToHTMLTable(tokenClaims); var userInfoClaimsHTMLString = JSONObjToHTMLTable(userInfoClaims); //OIDC.debug(true, id_token); print_id_token(); } else { var clientInfo = { client_id: 'mygovimplicit', redirect_uri: 'http://qa.gov.gg/cb-signin', post_logout_redirect_uri: 'http://qa.gov.gg/cb-signin' }; var providerInfo = OIDC.discover('https://login.gov.gg'); OIDC.setClientInfo(clientInfo); OIDC.setProviderInfo(providerInfo); OIDC.storeInfo(providerInfo, clientInfo); loginRequest = OIDC.generateLoginRequest({ scope: 'openid email profile offline_access', response_type: 'token id_token' }); // Remove State and Nonce from previous session sessionStorage.removeItem('state'); sessionStorage.removeItem('nonce'); if (sessionStorage['access_token']) { var access_t = sessionStorage['access_token']; userInfoClaims = JSON.parse(OIDC.getUserInfo(access_t)); print_id_token(); } } </script>--> <span style="display:none;" class="username1"></span> <script type="text/javascript"> /*var val = '<b>Id_token</b>' + tokenClaimsHTMLString; var $info = $('#retrievedInfo'); $info.html(val);*/ </script> <!-- Single Signon END --> </div> </header> <nav> <ul><li> <span>Government<i class="fa fa-chevron-down"></i></span> <div class="childrenContainer"><h3><a href="https://www.gov.gg/parliament">Government</a></h3><ul> <li> <a href="https://www.gov.gg/committees"><span>Committee Responsibilities</span></a> </li><li> <a href="https://www.gov.gg/article/176331/Elections--Electoral-Roll"><span>Elections & Electoral Roll</span></a> </li><li> <a href="https://www.gov.gg/article/162007/Finance"><span>Finance </span></a> </li><li> <a href="https://www.gov.gg/law"><span>Laws & Law Officers</span></a> </li><li> <a href="https://www.gov.gg/rule14qs"><span>Written Questions from States Members (Rule 14)</span></a> </li><li> <a href="https://www.gov.gg/StatesMeetings"><span>States Meeting Information </span></a> </li><li> <a href="https://www.gov.gg/GWP"><span>Government Work Plan</span></a> </li><li> <a href="https://www.gov.gg/yourdeputies"><span>Your Deputies</span></a> </li><li> <a href="https://www.gov.gg/newlegislation"><span>New legislation</span></a> </li><li> <a href="https://www.gov.gg/statesresolutions"><span>States Resolutions</span></a> </li><li> <a href="https://www.gov.gg/memberscodeofconduct"><span>Code of Conduct for Members of the States of Deliberation </span></a> </li><li> <a href="https://www.gov.gg/article/171625/Guernsey-and-the-Crown"><span>Guernsey and the Crown</span></a> </li> </ul></div> </li><li> <span>All Services<i class="fa fa-chevron-down"></i></span> <div class="childrenContainer"><h3><a href="https://www.gov.gg/all">All Services</a></h3><ul> <li> <a href="https://www.gov.gg/article/163187/Affordable-Housing-Benefits-Allowances--Support"><span>Affordable Housing, Benefits, Allowances & Support</span></a> </li><li> <a href="https://www.gov.gg/article/172887/Brexit"><span>Brexit</span></a> </li><li> <a href="https://www.gov.gg/article/119650/Business-Charity--the-Economy"><span>Business, Charity & the Economy</span></a> </li><li> <a href="https://www.gov.gg/article/163191/Community-Safety-Justice--Law-Enforcement"><span>Community Safety, Justice & Law Enforcement</span></a> </li><li> <a href="https://www.gov.gg/article/169427/Disability-Inclusion--Equality"><span>Disability, Inclusion & Equality</span></a> </li><li> <a href="https://www.gov.gg/traffic"><span>Driving, Vehicles, Transport & Roads</span></a> </li><li> <a href="https://www.gov.gg/education"><span>Education</span></a> </li><li> <a href="https://www.gov.gg/article/163192/Environment-Energy-Weather--Tides"><span>Environment, Energy, Weather & Tides</span></a> </li><li> <a href="https://www.gov.gg/data"><span>Facts & Figures</span></a> </li><li> <a href="https://www.gov.gg/family_animals"><span>Family & Animals</span></a> </li><li> <a href="https://www.gov.gg/article/198817/Financial-Crime"><span>Financial Crime</span></a> </li><li> <a href="https://www.gov.gg/article/119652/Health-Social-Care--Wellbeing"><span>Health, Social Care & Wellbeing</span></a> </li><li> <a href="https://www.gov.gg/housing"><span>Housing</span></a> </li><li> <a href="https://www.gov.gg/article/119655/Imports--Exports"><span>Imports & Exports</span></a> </li><li> <a href="https://www.gov.gg/article/152803/Independent-Tribunals--Reviews"><span>Independent Tribunals & Reviews</span></a> </li><li> <a href="https://www.gov.gg/article/120825/Invoices--Payments"><span>Invoices & Payments</span></a> </li><li> <a href="https://www.gov.gg/article/119653/Leisure-Culture--Entertainment"><span>Leisure, Culture & Entertainment</span></a> </li><li> <a href="https://www.gov.gg/article/163186/Moving-to--Living-in-Guernsey"><span>Moving to & Living in Guernsey</span></a> </li><li> <a href="https://www.gov.gg/planningandbuilding"><span>Planning & Building Control</span></a> </li><li> <a href="https://www.gov.gg/populationmanagement"><span>Population Management </span></a> </li><li> <a href="https://www.gov.gg/revenue-service"><span>Revenue Service</span></a> </li><li> <a href="https://www.gov.gg/recycling"><span>Waste & Recycling</span></a> </li><li> <a href="https://www.gov.gg/article/163185/Working--Retiring"><span>Working & Retiring</span></a> </li><li> <a href="https://www.gov.gg/customercharter"><span>Customer Charter</span></a> </li><li> <a href="https://www.gov.gg/article/163258/Contact-Us"><span>Contact Us</span></a> </li> </ul></div> </li><li> <a href="https://www.gov.gg/payit">Pay It</a> </li><li> <span>News<i class="fa fa-chevron-down"></i></span> <div class="childrenContainer"><h3><a href="https://www.gov.gg/article/163903/News">News</a></h3><ul> <li> <a href="https://www.gov.gg/news"><span>Media Releases</span></a> </li><li> <a href="https://www.gov.gg/mediaenquiries"><span>Media Enquiries </span></a> </li><li> <a href="https://www.gov.gg/publications"><span>Publications</span></a> </li><li> <a href="https://www.gov.gg/statementsandspeeches"><span>Statements made in States Meetings</span></a> </li><li> <a href="https://www.gov.gg/officialnotices"><span>Official Notices (Guernsey Gazette)</span></a> </li><li> <a href="https://www.gov.gg/article/163690/Tweets"><span>Tweets</span></a> </li> </ul></div> </li><li> <a href="https://www.gov.gg/talk">Your Views</a> </li><li> <span>Contact Us<i class="fa fa-chevron-down"></i></span> <div class="childrenContainer"><h3><a href="https://www.gov.gg/article/162930/Contact-Us">Contact Us</a></h3><ul> <li> <a href="https://www.gov.gg/contactus"><span>A-Z of all Contact Details</span></a> </li><li> <a href="https://www.gov.gg/contactstatesmembers"><span>States Members Contact Details</span></a> </li><li> <a href="https://www.gov.gg/article/162961/Parish-Contact-Details"><span>Parish Contact Details</span></a> </li><li> <a href="https://www.gov.gg/article/162936/Submit-a-Freedom-of-Information-request"><span>Submit a Freedom of Information request</span></a> </li><li> <a href="https://www.gov.gg/article/162938/Leave-Feedback-Comments-or-Compliments"><span>Leave Feedback, Comments or Compliments</span></a> </li><li> <a href="https://www.gov.gg/article/162266/Tell-Us-When-You-Move-Home-or-Leave-the-Island"><span>Tell Us When You Move Home or Leave the Island</span></a> </li><li> <a href="https://www.gov.gg/article/162937/Make-a-Complaint"><span>Make a Complaint</span></a> </li><li> <a href="https://www.gov.gg/article/162929/Report-a-Community-Issue"><span>Report a Community Issue</span></a> </li><li> <a href="https://www.gov.gg/sogtelephonedirectory"><span>States of Guernsey Telephone Directory</span></a> </li><li> <a href="https://www.gov.gg/article/186913/Procurement--Tender-Opportunities"><span>Procurement / Tender Opportunities</span></a> </li> </ul></div> </li></ul> </icm:Override> </nav> <div id="searchContainer"> <div id="toplevelsearch"> <form action="https://www.gov.gg/article/162975/Search-Whole-Site?sort=Relevance&size=10#top" method="get"> <fieldset> <span class="icon-mag-search"></span> <input id="q" name="q" value="" placeholder="Search gov.gg" /><input class="submit" id="blockButton" value="Search" type="submit" /> <input type="hidden" name="size" value="10" /> </fieldset> </form> </div> </div> <div id="CenterContainer"> <ul id="Breadcrumb"> <li class="even first"> <a href="https://www.gov.gg/article/119613/GOVGG"><span class="icon-house"></span></a> </li> <li class="odd last"> <span class="triangleSep"></span> <span>All Services</span> </li> </ul> <h1>All Services</h1> <div id="content"> <p id="aIntro">From here you can access all areas of the site.</p> <p>Don't forget that you can use the or leave feedback (using the buttons at the bottom of the page) if you can't find what you are looking for.</p> <script type="text/javascript" src="govgg1/scripts/subscribe.js"></script> <script> var found = false; var item = sessionStorage.getItem('oidc.user:https://login.gov.gg:mygovimplicit'); var uDate; var uAccess if(item != null) { uData = JSON.parse(item); uAccess = uData.access_token; } for (var i = 0; i < groupsList.length; i++) { if (groupsList[i].ArticleID == 120198) { found = true; var htmlBuilder = ""; var groupKeyArr = groupsList[i].GroupIDs; if(groupKeyArr.PublicKey) { htmlBuilder += "<span class=\"sub Pub\" data-type=\"Public\" data-groupid=\"" + groupKeyArr.PublicKey + "\"> Subscribe to public</span>"; } if(groupKeyArr.PrivateKey) { htmlBuilder += "<span class=\"sub Prv\" data-type=\"Private\" data-groupid=\"" + groupKeyArr.PrivateKey + "\">Subscribe to all</span>"; } if ((groupKeyArr.GeneralKey)) { htmlBuilder += "<span class=\"sub Gen\" data-type=\"General\" data-groupid=\"" + groupKeyArr.GeneralKey + "\">Subscribe</span>"; } if(htmlBuilder != "") { if(uAccess != null) { $('#content').append(htmlBuilder); checkSubs(); } else { //$('#content').append("If you would like to receive updates related to this content, please use the Sign In link at the top of the page."); } } break; } } function checkSubs() { var baseUrl = "https://sogmygovapi20161219090911.azurewebsites.net/profiles/issubscribed/"; var headers = {}; if (uAccess) { headers['Authorization'] = 'Bearer ' + uAccess; } $(".sub").each(function(){ var $this = $(this); var url = baseUrl + $this.attr("data-groupid"); var request = $.ajax({ url: url, method: 'GET', dataType: 'json', headers: headers }); request.done(function(data) { if(data == true) { $this.addClass('subbed'); $this.text(function () { return $this.text().replace("Subscribe to", "Unsubscribe from"); }) } else { $this.addClass('notsubbed'); $this.text(function () { return $this.text().replace("Unsubscribe from", "Unsubscribe from"); }) } }); request.fail(function(jqXHR, textStatus) { //alert( "Request failed: " + textStatus ); }); }); } $(document).on("click",".notsubbed",function(event) { var baseUrl = "https://sogmygovapi20161219090911.azurewebsites.net/profiles/subscribe/"; var headers = {}; if (uAccess) { headers['Authorization'] = 'Bearer ' + uAccess; headers['Accept'] = 'application/json'; headers['Content-Type'] = 'application/json'; } var $this = $(this); var url = baseUrl + $(this).attr("data-groupid"); var uSub = uData.profile.sub; var uName = uData.profile.name; var uEmail = uData.profile.email; var ubody = { "UserId": uSub, "Name": uName, "Email": uEmail }; var stringy = JSON.stringify(ubody); $.ajax({ url: url, method: 'POST', contentType: "application/json; charset=utf-8", headers: headers, data: stringy, beforeSend:function() { $this.addClass('StatusProgress'); }, success: function(){ $this.removeClass('notsubbed'); $this.addClass('subbed'); $this.removeClass('StatusProgress'); $this.text(function () { return $this.text().replace("Subscribe to", "Unsubscribe from"); }) }, failure: function(errMsg) { //alert(errMsg); } }); //console.log( $( this ).text() ); }); $(document).on("click",".subbed",function(event) { var baseUrl = "https://sogmygovapi20161219090911.azurewebsites.net/profiles/unsubscribe/"; var headers = {}; if (uAccess) { headers['Authorization'] = 'Bearer ' + uAccess; headers['Accept'] = 'application/json'; headers['Content-Type'] = 'application/json'; } var $this = $(this); var url = baseUrl + $(this).attr("data-groupid"); var uSub = uData.profile.sub; var uName = uData.profile.name; var uEmail = uData.profile.email; $.ajax({ url: url, method: 'POST', contentType: "application/json; charset=utf-8", headers: headers, beforeSend:function() { $this.addClass('StatusProgress'); }, success: function(){ $this.removeClass('subbed'); $this.addClass('notsubbed'); $this.removeClass('StatusProgress'); $this.text(function () { return $this.text().replace("Unsubscribe from", "Subscribe to"); }) }, failure: function(errMsg) { //alert(errMsg); } }); //console.log( $( this ).text() ); }); </script> </div> <div id="mshareContainer"> <h4> Share this page</h4> <a class="icon-twitter47" href="https://www.twitter.com/share?url=http://www.gov.gg" target="_blank" onclick="return popitup('https://www.twitter.com/share?url=')"> </a><a class="icon-facebook29" href="https://www.facebook.com/sharer/sharer.php?u=#http://www.gov.gg" target="_blank" onclick="return popitup('https://www.facebook.com/sharer/sharer.php?u=#')"> </a><a class="icon-email5" onclick="javascript:window.location='mailto:?subject=Interesting information&body=I thought you might find this information interesting: ' + window.location; return false;"> </a> <!--<a class="icon-clipboard85" onclick="copyToClipboard()"></a>--> <textarea class="js-copytextarea" style="display: none"></textarea> <script type="text/javascript"> function popitup(url) { newwindow = window.open(url + window.location.href, 'name', 'height=300,width=350'); if (window.focus) { newwindow.focus() } return false; } /*function copyToClipboard() { window.prompt("Copy to clipboard: Ctrl+C, Enter", window.location.href); }*/ </script> </div> <script src="govgg1/template/default/scripts/audio.js" type="text/javascript"></script> <script type="text/javascript"> $('a.gallery.image').colorbox({ rel: 'gal' }); $('a.gallery.audio').colorbox({ width: 510, height: 140, html: function () { var url = $(this).attr('href'); return "<audio id=\"curAudio\" src=\"https://gov.gg" + url.replace("./media", "/media") + "\" preload=\"auto\" />"; } }); $(document).bind('cbox_complete', function () { //$.when(initialiseAudio()).then(resizeColor()); var as = audiojs.create($('#curAudio')); }); $(document).bind('cbox_cleanup', function () { }); function resizeColor () { $.colorbox.resize(); } $('a.galleryiframe').colorbox({ iframe: true, innerWidth: 853, innerHeight: 480 }); </script> <script src="govgg1/template/default/scripts/default.js" type="text/javascript"></script> <!-- --> <ul id="subNavigation"><li id="navItem163187"> <span>Affordable Housing, Benefits, Allowances & Support<i class="fa fa-chevron-right"></i></span> <ul> <li><a href="https://www.gov.gg/article/119666/Affordable--Extra-Care-Housing">Affordable & Extra Care Housing</a></li> <li><a href="https://www.gov.gg/article/119730/Benefits-Allowances--Support">Benefits, Allowances & Support</a></li> <li><a href="https://www.gov.gg/tenancyandmaintainance">Your States House Tenancy and Maintenance</a></li> </ul> </li><li id="navItem172887"> <span>Brexit<i class="fa fa-chevron-right"></i></span> <ul> <li><a href="https://www.gov.gg/Brexit">Brexit</a></li> <li><a href="https://www.gov.gg/trade">Goods, Services and Data</a></li> <li><a href="https://www.gov.gg/brexitnews">News and Updates</a></li> <li><a href="https://www.gov.gg/contingencyplanning">Contingency Planning</a></li> <li><a href="https://www.gov.gg/brexitprocess">Parliamentary Process</a></li> <li><a href="https://www.gov.gg/settleinguernsey">Visiting or settling in Guernsey after Brexit</a></li> <li><a href="https://www.gov.gg/travel">Travel</a></li> <li><a href="https://www.gov.gg/pettravelscheme">Pet Travel Scheme</a></li> <li><a href="https://www.gov.gg/brexitcustomsinfo">Guernsey Customs Information</a></li> </ul> </li><li id="navItem119650"> <span>Business, Charity & the Economy<i class="fa fa-chevron-right"></i></span> <ul> <li><a href="https://www.gov.gg/economicdevelopment">Economic Development</a></li> <li><a href="https://www.gov.gg/article/151676/Charities--Not-For-Profit-Organisations">Charities & Not-For-Profit Organisations</a></li> <li><a href="https://www.gov.gg/article/150916/Licences-Permits--Regulations">Licences, Permits & Regulations</a></li> <li><a href="https://www.gov.gg/hse">Health and Safety at Work</a></li> <li><a href="https://www.gov.gg/income-tax-compliance-international">Income Tax, Compliance & International</a></li> <li><a href="https://www.gov.gg/article/151531/International-affairs">International affairs</a></li> <li><a href="https://www.gov.gg/article/120172/New-Business">New Business</a></li> <li><a href="https://www.gov.gg/article/163241/Property-ownership--landlords">Property ownership & landlords</a></li> <li><a href="https://www.gov.gg/article/120165/Recruitment">Recruitment</a></li> <li><a href="https://www.gov.gg/article/163249/Skills--Development">Skills & Development</a></li> <li><a href="https://www.gov.gg/article/151527/Social-Security-Contributions">Social Security Contributions</a></li> <li><a href="https://www.gov.gg/tradingstandards">Trading Standards Services</a></li> <li><a href="https://www.gov.gg/article/187403/Economic--Financial-Crime-Bureau">Economic & Financial Crime Bureau </a></li> <li><a href="https://www.gov.gg/cifo">About the Channel Islands Financial Ombudsman (CIFO)</a></li> </ul> </li><li id="navItem163191"> <span>Community Safety, Justice & Law Enforcement<i class="fa fa-chevron-right"></i></span> <ul> <li><a href="https://www.gov.gg/article/150925/Crime--Legal-Aid">Crime & Legal Aid</a></li> <li><a href="https://www.gov.gg/article/120203/Emergencies">Emergencies</a></li> <li><a href="https://www.gov.gg/article/163209/Protecting-Yourself">Protecting Yourself</a></li> <li><a href="https://www.gov.gg/article/175257/Customs-and-Immigration">Customs and Immigration</a></li> <li><a href="https://www.gov.gg/article/187692/The-Justice-Framework-review">The Justice Framework review</a></li> </ul> </li><li id="navItem169427"> <span>Disability, Inclusion & Equality<i class="fa fa-chevron-right"></i></span> <ul> <li><a href="https://www.gov.gg/article/169428/Disability-and-Inclusion">Disability and Inclusion</a></li> <li><a href="https://www.gov.gg/article/169429/Equality">Equality</a></li> </ul> </li><li id="navItem119654"> <span>Driving, Vehicles, Transport & Roads<i class="fa fa-chevron-right"></i></span> <ul> <li><a href="https://www.gov.gg/activetravel">Active Travel </a></li> <li><a href="https://www.gov.gg/publictransport">Public Transport</a></li> <li><a href="https://www.gov.gg/dvl">Driving & Licences</a></li> <li><a href="https://www.gov.gg/vehicles">Vehicles, Ownership & Permits</a></li> <li><a href="https://www.gov.gg/trafficandhighwayservicesroadsparking">Road Safety, Maintenance, Works and Events</a></li> <li><a href="https://www.gov.gg/ITS">On-Island Integrated Transport Strategy</a></li> <li><a href="https://www.gov.gg/BetterTransportPlan">Better Transport Plan for the north of the island - 'More Homes, more Choice, more Freedom'</a></li> </ul> </li><li id="navItem170467"> <span>Education<i class="fa fa-chevron-right"></i></span> <ul> <li><a href="https://www.gov.gg/article/120211/Education-and-lifelong-learning">Education and lifelong learning</a></li> <li><a href="https://www.gov.gg/article/158425/Education-Inclusion-Services">Education Inclusion Services</a></li> <li><a href="https://www.gov.gg/article/191285/Future-plans-for-Secondary-and-Post-16-Education">Future plans for Secondary and Post-16 Education</a></li> <li><a href="https://www.gov.gg/article/2276/The-Guernsey-Institute---On-Island-Higher-Education">The Guernsey Institute - On-Island Higher Education</a></li> <li><a href="https://www.gov.gg/article/152744/Policies">Policies</a></li> <li><a href="https://www.gov.gg/article/1793/Schools">Schools</a></li> <li><a href="https://www.gov.gg/SEN">Special Educational Needs (Additional Learning Needs)</a></li> <li><a href="https://www.gov.gg/article/1850/Teaching-in-Guernsey">Teaching in Guernsey</a></li> <li><a href="https://www.gov.gg/university">University</a></li> <li><a href="https://www.gov.gg/article/186170/Education-Strategy">Education Strategy</a></li> <li><a href="https://www.gov.gg/article/186522/Inspections">Inspections</a></li> </ul> </li><li id="navItem163192"> <span>Environment, Energy, Weather & Tides<i class="fa fa-chevron-right"></i></span> <ul> <li><a href="https://www.gov.gg/article/152996/Agriculture-Horticulture-Gardens--Plants">Agriculture, Horticulture, Gardens & Plants</a></li> <li><a href="https://www.gov.gg/climatechange">Climate Change</a></li> <li><a href="https://www.gov.gg/ElectricityStrategy">Electricity Strategy</a></li> <li><a href="https://www.gov.gg/energy">Energy</a></li> <li><a href="https://www.gov.gg/pollution">Environmental Pollution </a></li> <li><a href="https://www.gov.gg/article/153000/Green-Spaces-the-Coastline--Beaches">Green Spaces, the Coastline & Beaches</a></li> <li><a href="https://www.gov.gg/article/186250/Invasive-Non-Native-Species-INNS">Invasive Non-Native Species (INNS)</a></li> <li><a href="https://www.gov.gg/article/195771/Office-of-Environmental-Health-and-Pollution-Regulation">Office of Environmental Health and Pollution Regulation</a></li> <li><a href="https://www.gov.gg/article/186252/Permits">Permits</a></li> <li><a href="https://www.gov.gg/strategyfornature">Strategy for Nature</a></li> <li><a href="https://www.gov.gg/article/120221/Weather--Tides">Weather & Tides</a></li> </ul> </li><li id="navItem119683"> <span>Facts & Figures<i class="fa fa-chevron-right"></i></span> <ul> <li><a href="https://www.gov.gg/article/120102/About-Guernsey">About Guernsey</a></li> <li><a href="https://www.gov.gg/article/162000/Freedom-of-Information">Freedom of Information</a></li> <li><a href="https://www.gov.gg/article/182779/Economic-Activity">Economic Activity</a></li> <li><a href="https://www.gov.gg/article/120103/Publications-of-National-Statistics">Publications of National Statistics</a></li> <li><a href="https://www.gov.gg/article/154881/Survey-Results--Reports">Survey Results & Reports</a></li> </ul> </li><li id="navItem119684"> <span>Family & Animals<i class="fa fa-chevron-right"></i></span> <ul> <li><a href="https://www.gov.gg/article/120123/Family">Family</a></li> <li><a href="https://www.gov.gg/Animals">Animals</a></li> </ul> </li><li id="navItem198817"> <span>Financial Crime<i class="fa fa-chevron-right"></i></span> <ul><li><a href="https://www.gov.gg/article/198817/Financial-Crime">Financial Crime</a></li></ul> </li><li id="navItem119652"> <span>Health, Social Care & Wellbeing<i class="fa fa-chevron-right"></i></span> <ul> <li><a href="https://www.gov.gg/article/120358/Adult-Community-Services">Adult Community Services</a></li> <li><a href="https://www.gov.gg/article/172861/Alderney-Health--Social-Care">Alderney Health & Social Care</a></li> <li><a href="https://www.gov.gg/article/170306/Creative-Health">Creative Health</a></li> <li><a href="https://www.gov.gg/article/170762/Cannabis--Associated-Products">Cannabis & Associated Products</a></li> <li><a href="https://www.gov.gg/article/155741/Children--Family-Community-Services">Children & Family Community Services</a></li> <li><a href="https://www.gov.gg/article/172682/Comments-Compliments-and-Complaints---Health-and-Social-Care">Comments, Compliments and Complaints - Health and Social Care</a></li> <li><a href="https://www.gov.gg/article/120186/Doctors-Pharmacies--Health-Professionals">Doctors, Pharmacies & Health Professionals</a></li> <li><a href="https://www.gov.gg/article/156230/Healthcare-for-Visitors-and-Travellers">Healthcare for Visitors and Travellers</a></li> <li><a href="https://www.gov.gg/hsctransformation">Health & Social Care Transformation</a></li> <li><a href="https://www.gov.gg/article/163207/Hospital-Services">Hospital Services</a></li> <li><a href="https://www.gov.gg/article/151925/Medical-Charges">Medical Charges</a></li> <li><a href="https://www.gov.gg/article/160426/Mental-Health">Mental Health</a></li> <li><a href="https://www.gov.gg/article/195788/Office-of-Environmental-Health-and-Pollution-Regulation">Office of Environmental Health and Pollution Regulation</a></li> <li><a href="https://www.gov.gg/article/172990/Older-Adult-Services">Older Adult Services</a></li> <li><a href="https://www.gov.gg/article/189012/Organ-donation">Organ donation</a></li> <li><a href="https://www.gov.gg/publichealthservices">Public Health Services</a></li> <li><a href="https://www.gov.gg/article/170286/Secondary-Healthcare">Secondary Healthcare</a></li> <li><a href="https://www.gov.gg/article/154135/Seeking-Support">Seeking Support</a></li> </ul> </li><li id="navItem196775"> <span>Housing<i class="fa fa-chevron-right"></i></span> <ul> <li><a href="https://www.gov.gg/GuernseyHousingPlan">Guernsey Housing Plan</a></li> <li><a href="https://www.gov.gg/article/196780/Affordable--Extra-Care-Housing">Affordable & Extra Care Housing</a></li> <li><a href="https://www.gov.gg/article/196782/Buying-or-renting-a-property-to-live-in">Buying or renting a property to live in</a></li> <li><a href="https://www.gov.gg/article/196783/Cadastre-Tax-on-Real-Property--TRP-and-Parish-Rates">Cadastre (Tax on Real Property / TRP) and Parish Rates</a></li> <li><a href="https://www.gov.gg/article/196784/Your-States-House-Tenancy-and-Maintenance">Your States House Tenancy and Maintenance</a></li> </ul> </li><li id="navItem119655"> <span>Imports & Exports<i class="fa fa-chevron-right"></i></span> <ul> <li><a href="https://www.gov.gg/animal_plant_imports">Animals, Plants & Food</a></li> <li><a href="https://www.gov.gg/article/152734/Declaring-cash">Declaring cash</a></li> <li><a href="https://www.gov.gg/dutiablegoods">Dutiable Goods and People</a></li> <li><a href="https://www.gov.gg/article/120179/Other">Other</a></li> </ul> </li><li id="navItem152803"> <span>Independent Tribunals & Reviews<i class="fa fa-chevron-right"></i></span> <ul> <li><a href="https://www.gov.gg/article/150902/Independent-Appeal-Tribunals-Review-Board-and-Panels">Independent Appeal Tribunals, Review Board, and Panels</a></li> </ul> </li><li id="navItem120825"> <span>Invoices & Payments<i class="fa fa-chevron-right"></i></span> <ul><li><a href="https://www.gov.gg/article/120825/Invoices--Payments">Online payments for Income Tax, Social Security, TRP, Sewage, Guernsey Water, Fixed Penalty Notices and more</a></li></ul> </li><li id="navItem119653"> <span>Leisure, Culture & Entertainment<i class="fa fa-chevron-right"></i></span> <ul> <li><a href="https://www.gov.gg/article/1808/Activities-for-Young-People">Activities for Young People</a></li> <li><a href="https://www.gov.gg/article/152065/Culture--Heritage">Culture & Heritage</a></li> <li><a href="https://www.gov.gg/article/151849/Going-Out">Going Out</a></li> <li><a href="https://www.gov.gg/article/120213/Public-Holidays--Local-Events">Public Holidays & Local Events</a></li> <li><a href="https://www.gov.gg/article/152062/Sports--Recreation">Sports & Recreation</a></li> </ul> </li><li id="navItem163186"> <span>Moving to & Living in Guernsey<i class="fa fa-chevron-right"></i></span> <ul> <li><a href="https://www.gov.gg/article/120131/Buying-or-renting-a-property-to-live-in">Buying or renting a property to live in</a></li> <li><a href="https://www.gov.gg/article/163202/Cadastre-Tax-on-Real-Property--TRP-and-Parish-Rates">Cadastre (Tax on Real Property / TRP) and Parish Rates</a></li> <li><a href="https://www.gov.gg/article/120177/Passports-Immigration--Citizenship">Passports, Immigration & Citizenship</a></li> <li><a href="https://www.gov.gg/article/180290/Guidance-for-EU-nationals-and-employers">Guidance for EU nationals and employers</a></li> </ul> </li><li id="navItem163189"> <span>Planning & Building Control<i class="fa fa-chevron-right"></i></span> <ul> <li><a href="https://www.gov.gg/article/120224/Certificates-Appeals-Complaints--Enforcement">Certificates, Appeals, Complaints & Enforcement</a></li> <li><a href="https://www.gov.gg/article/163206/Planning-Applications--Decisions">Planning Applications & Decisions</a></li> <li><a href="https://www.gov.gg/buildingcontrolservices">Building Control Services</a></li> <li><a href="https://www.gov.gg/article/163205/Policies--Conservation">Policies & Conservation</a></li> <li><a href="https://www.gov.gg/article/172606/Facts-Figures-and-Reports">Facts, Figures and Reports</a></li> </ul> </li><li id="navItem164971"> <span>Population Management <i class="fa fa-chevron-right"></i></span> <ul> <li><a href="https://www.gov.gg/pmnews">Latest News</a></li> <li><a href="https://www.gov.gg/article/164942/Residential-Certificates--Permits-previously-Right-to-work-for-Individuals--Family-Members">Residential Certificates & Permits (previously 'Right to work') for Individuals & Family Members </a></li> <li><a href="https://www.gov.gg/article/164943/Employment-Permits-Employers-only">Employment Permits (Employers only)</a></li> <li><a href="https://www.gov.gg/PMmycircumstanceshavechanged">My circumstances have changed </a></li> <li><a href="https://www.gov.gg/article/164975/Frequently-asked-questions--Policies">Frequently asked questions & Policies</a></li> <li><a href="https://www.gov.gg/article/165153/Useful-links">Useful links</a></li> <li><a href="https://www.gov.gg/article/198995/Contact-us">Contact us</a></li> </ul> </li><li id="navItem119651"> <span>Revenue Service<i class="fa fa-chevron-right"></i></span> <ul> <li><a href="https://www.gov.gg/yourcodingnotice">Your coding notice</a></li> <li><a href="https://www.gov.gg/article/182964/Tell-Revenue-Service">Tell Revenue Service</a></li> <li><a href="https://www.gov.gg/article/182071/Paying-Revenue-Service">Paying Revenue Service</a></li> <li><a href="https://www.gov.gg/article/182968/Income-tax-returns">Income tax returns</a></li> <li><a href="https://www.gov.gg/article/182072/Entering-or-leaving-Guernsey-and-working-away">Entering or leaving Guernsey and working away</a></li> <li><a href="https://www.gov.gg/article/182076/Tax-rates-allowances-and-reliefs">Tax rates, allowances and reliefs</a></li> <li><a href="https://www.gov.gg/article/182966/Assessments-penalties-and-appeals">Assessments, penalties and appeals</a></li> <li><a href="https://www.gov.gg/article/182967/Business-companies-partnerships-other-organisations--self-employed">Business, companies, partnerships, other organisations & self-employed</a></li> <li><a href="https://www.gov.gg/article/119660/Income-tax">Income tax</a></li> <li><a href="https://www.gov.gg/article/119659/Social-Security-Contributions">Social Security Contributions</a></li> <li><a href="https://www.gov.gg/revenue-service/income-tax-forms">Forms to download</a></li> <li><a href="https://www.gov.gg/independent-tax">Independent taxation </a></li> </ul> </li><li id="navItem163188"> <span>Waste & Recycling<i class="fa fa-chevron-right"></i></span> <ul> <li><a href="https://www.gov.gg/article/167036/Household-waste-and-recycling">Household waste and recycling</a></li> <li><a href="https://www.gov.gg/article/174859/Hazardous-Items">Hazardous Items</a></li> <li><a href="https://www.gov.gg/article/167069/Waste-sites-opening-times">Waste sites opening times</a></li> <li><a href="https://www.gov.gg/article/167038/Litter-and-fly-tipping">Litter and fly tipping</a></li> <li><a href="https://www.gov.gg/article/167039/Construction-Waste">Construction Waste</a></li> <li><a href="https://www.gov.gg/article/167040/Information-for-commercial-waste-contractors">Information for commercial waste contractors</a></li> <li><a href="https://www.gov.gg/wmp">States Waste Management Plan</a></li> <li><a href="https://www.gov.gg/article/191235/Wastewater-Services">Wastewater Services</a></li> <li><a href="https://www.gov.gg/lfhwxmas">Love Food, Hate Waste this Christmas </a></li> </ul> </li><li id="navItem163185"> <span>Working & Retiring<i class="fa fa-chevron-right"></i></span> <ul> <li><a href="https://www.gov.gg/article/163198/Employment-Advice">Employment Advice</a></li> <li><a href="https://www.gov.gg/article/119658/Jobs--work">Jobs & work</a></li> <li><a href="https://www.gov.gg/article/163199/Retirement--Pensions">Retirement & Pensions</a></li> </ul> </li><li id="navItem160892"> <span>Customer Charter<i class="fa fa-chevron-right"></i></span> <ul><li><a href="https://www.gov.gg/customercharter">The Customer Charter tells you, our customers, what level of service you should expect from us as an organisation and will help us to achieve a more consistent standard of customer care across all our services.</a></li></ul> </li><li id="navItem163258"> <span>Contact Us<i class="fa fa-chevron-right"></i></span> <ul><li><a href="https://www.gov.gg/article/163258/Contact-Us">Find telephone, email and address details here.</a></li></ul> </li></ul> </div> <script type="text/javascript"> $(document).ready(function () { var myTemplate = document.getElementsByTagName("template")[0]; normalContent = document.getElementById('CenterContainer'); if(myTemplate != null) { clonedTemplate = myTemplate.content.cloneNode(true); normalContent.appendChild(clonedTemplate); } }); </script> <script type="text/javascript"> function popitup(url) { newwindow = window.open(url + window.location.href, 'name', 'height=300,width=350'); if (window.focus) {newwindow.focus()} return false; } $(window).load(function () { var minbxSlides = 3; var maxbxSlides = 3; var maxSlides2 = 5 var viewportWidth = $(window).width(); if (viewportWidth < 850) { minbxSlides = 2; maxbxSlides = 2; } if (viewportWidth < 550) { minbxSlides = 1; maxbxSlides = 1; maxSlides2 = 1; } $('.bxslider').bxSlider({ slideWidth: 700, minSlides: minbxSlides, maxSlides: maxbxSlides, moveSlides: 1, auto: true, controls: true, pause: 6000, pager: false, nextText: '❯', prevText: '❮', slideMargin: 0, preloadimages: 'visible' }); $('#websitesContainer span.button').click(function () { $('#CenterContainer .gallerySlide').toggleClass('open'); }); $('blockquote ul li > h3').click(function () { $(this).siblings('ul').slideToggle(); $(this).toggleClass('open'); }); $('.translation-links a').click(function (e) { var lang = $(this).data('lang'); var $frame = $('iframe.skiptranslate:first'); if (!$frame.size()) { alert("Error: Could not find Google translate frame."); e.stopPropagation(); return false; } $frame.contents().find('a span.text:contains(' + lang + ')').get(0).click(); e.stopPropagation(); return false; }); /*$('.goog-te-menu-value').click(function (e) { e.stopPropagation(); });*/ }); </script> <footer> <div id="socialFooter"> <div id="tweetsContainer"> <script type="text/javascript" src="./govgg1/scripts/main.js"></script> <!--Gov.gg Twitter <a class="twitter-timeline" href="https://twitter.com/Govgg" data-theme="dark" data-link-color="#ffffff" data-chrome="noheader nofooter noborders noscrollbar transparent" data-tweet-limit="1" data-dnt="true" data-widget-id="644532868211982336">Tweets by @Govgg</a> <script> !function (d, s, id) { var js, fjs = d.getElementsByTagName(s)[0], p = /^http:/.test(d.location) ? 'http' : 'https'; if (!d.getElementById(id)) { js = d.createElement(s); js.id = id; js.src = p + "://platform.twitter.com/widgets.js"; fjs.parentNode.insertBefore(js, fjs); } } (document, "script", "twitter-wjs");</script> --> <!--Harbours Twitter <a class="twitter-timeline" href="https://twitter.com/GsyHarbours" data-theme="dark" data-link-color="#ffffff" data-chrome="noheader nofooter noborders noscrollbar transparent" data-tweet-limit="1" data-dnt="true" data-widget-id="644532580021366784">Tweets by @GsyHarbours</a> <script> !function (d, s, id) { var js, fjs = d.getElementsByTagName(s)[0], p = /^http:/.test(d.location) ? 'http' : 'https'; if (!d.getElementById(id)) { js = d.createElement(s); js.id = id; js.src = p + "://platform.twitter.com/widgets.js"; fjs.parentNode.insertBefore(js, fjs); } } (document, "script", "twitter-wjs");</script> --> <!--Police Twitter <a class="twitter-timeline" href="https://twitter.com/GuernseyPolice" data-theme="dark" data-link-color="#ffffff" data-chrome="noheader nofooter noborders noscrollbar transparent" data-tweet-limit="1" data-dnt="true" data-widget-id="644533204419002368">Tweets by @GuernseyPolice</a> <script> !function (d, s, id) { var js, fjs = d.getElementsByTagName(s)[0], p = /^http:/.test(d.location) ? 'http' : 'https'; if (!d.getElementById(id)) { js = d.createElement(s); js.id = id; js.src = p + "://platform.twitter.com/widgets.js"; fjs.parentNode.insertBefore(js, fjs); } } (document, "script", "twitter-wjs");</script> --> <!--Election Twitter <a class="twitter-timeline" href="https://twitter.com/GovElection2016" data-theme="dark" data-link-color="#ffffff" data-chrome="noheader nofooter noborders noscrollbar transparent" data-tweet-limit="1" data-dnt="true" data-widget-id="644533452101001220">Tweets by @GovElection2016</a> <script> !function (d, s, id) { var js, fjs = d.getElementsByTagName(s)[0], p = /^http:/.test(d.location) ? 'http' : 'https'; if (!d.getElementById(id)) { js = d.createElement(s); js.id = id; js.src = p + "://platform.twitter.com/widgets.js"; fjs.parentNode.insertBefore(js, fjs); } } (document, "script", "twitter-wjs");</script> --> </div> <div id="feedBackContainer"> <h3>Did you find what you were looking for?</h3> <span class="feedBackButton" data-heading="Thank you for your feedback" id="yesBtn">Yes</span> <span class="feedBackButton" data-heading="What were you looking for?" id="noBtn">No</span> <div id="commentBox"> <textarea id="txtFeedback"></textarea> </div> <div id="emailBox" style="display: none;"> <p>If you would like someone to send you this info, please provide your email address</p> <input type="text" id="email" title="email" placeholder="Email" pattern="email" /> </div> <span id="submit">Submit</span> </div> <input name="page$ctl07$feedback1$hURL" type="hidden" id="ctl07_feedback1_hURL" class="hiddenURL" value="https://www.gov.gg/index.aspx?1=1;/all" /> <script type="text/javascript"> var response = ""; /*$('.feedBackButton').click(function () { response = $(this).text(); $('.feedBackButton').hide(); $('#commentBox').show(); $('#submit').show(); $('#feedBackContainer h3').text($(this).attr("data-heading")); }); - OLD WAY */ /* NEW WAY */ $('#noBtn').click(function () { response = $(this).text(); $('.feedBackButton').hide(); $('#feedBackContainer h3').text($(this).attr("data-heading")); $('#emailBox').show(); $('#commentBox').show(); $('#submit').show(); //doAjax(); }); $('#submit').click(function () { doAjax(); }); $('#yesBtn').click(function () { //Hide options, send the feedback $('.feedBackButton').hide(); $('#feedBackContainer h3').text($(this).attr("data-heading")); response = $(this).text(); doAjax(); }); function doAjax() { var DateTime = new Date(); var dtYear = DateTime.getFullYear(); var dtMonth = DateTime.getMonth() + 1; var dtDay = DateTime.getDate(); var dtHour = DateTime.getHours(); var dtMin = (DateTime.getMinutes() < 10 ? '0' : '') + DateTime.getMinutes(); var IP = "000.000.000.000"; //var url = $('.hiddenURL').attr('value'); //If on the 404 page, change url to referrer to get attempted page request var url = window.location.href; if (url.includes("article/121267/What-are-you-looking-for")) { url = document.referrer; } var email = $('#email').val(); var comments = $('#txtFeedback').val(); var aID = "120198"; var date = dtYear + "-" + dtMonth + "-" + dtDay + " " + dtHour + ":" + dtMin; $.ajax({ url: '/proxy.ashx?url=https://api.submarine.gg/api/feedback', type: 'POST', dataType: 'json', contentType: "application/json", data: JSON.stringify({ Page: url, ArticleID: aID, UserIP: IP, DateTime: date, Response: response, Comments: comments, Email: email }), success: function (data) { //console.log(data); $('#commentBox').hide(); $('#emailBox').hide(); $('#submit').hide(); $('#feedBackContainer h3').text("Thank you for your feedback"); }, error: function (errorThrown) { console.log(errorThrown); $('#emailBox').hide(); $('#commentBox').hide(); $('#submit').hide(); $('#feedBackContainer h3').text("There was a problem, please try again later"); } }); }; </script> <h3>Follow us on social media</h3> <a href="https://www.facebook.com/govgg" target="_blank" class="alert-Facebook"></a> <a href="https://twitter.com/Govgg" target="_blank" class="alert-Twitter"></a> <a href="https://www.youtube.com/channel/UCC7bV5KJPlbGILCAVj3Th_A" target="_blank" class="alert-Youtube"></a> <a href="https://www.linkedin.com/company/states-of-guernsey/" class="alert-Linkedin"></a> <!--<a href="#" class="icon-pint"></a> <a href="#" class="icon-lin"></a>--> <!--<a href="#" id="contactButton"> Contact Us </a>--> </div> <ul id="FooterList"><li> <a href="https://www.gov.gg/article/119688/Accessibility"><span>Accessibility</span></a> </li><li> <a href="https://www.gov.gg/article/119691/Sitemap"><span>Sitemap</span></a> </li><li> <a href="https://www.gov.gg/yourdata"><span>Privacy</span></a> </li><li> <a href="https://www.gov.gg/TsCs"><span>Terms and Conditions</span></a> </li><li> <a href="https://www.gov.gg/information"><span>Freedom of Information</span></a> </li><li> <a href="https://www.gov.gg/contactus"><span>Contact Us A-Z</span></a> </li></ul> <!--[if lte IE 8]> <div id="ie8Div"></div> <![endif]--> </footer> <span id="addToHomeButton"> <img src="./govgg1/images/add-to-home.png" alt="Add To Home" /> </span> <div class="ath-viewport" > <div class="ath-container ath-android ath-android6 ath-phone ath-icon" style="transition-property: transform, opacity; transition-duration: 1.2s; transition-timing-function: ease-out; transform: translate3d(0px, 0px, 0px); font-size: 15px;"> <img class="ath-application-icon" src="./govgg1/images/apple-touch-icon.png"> <p></p><p>To add this page to the homescreen of your phone, go to the menu button and "Add to homescreen".</p> <br> <p>The menu button may look like <br> <img style="height:40px; display:inline-block;vertical-align:middle;" src="./govgg1/images/dot-dot-dot.png" alt="Three Dots"> <span style="display:inline-block;vertical-align:middle;">or</span> <img style="height:40px; display:inline-block;vertical-align:middle;" src="./govgg1/images/box-arrow.png" alt="Box with an Arrow" ]<="" p=""> <span style="font-size: 0.7em; display: block; margin-top: 10px;">*some browsers' menu buttons may vary.</span> </p> </div> </div> <div id="reauthpopup" style="display:none;"> <p>Your session has expired. Please re-authenticate to start a new secure session. <button class="js-signin">Sign In</button> </p> <span id="btnClose" class="fa fa-times-circle-o"></span> </div> </body> </html>