CINXE.COM
Housing - States of Guernsey
<!DOCTYPE html> <html> <head> <title>Housing - 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="2023-06-21T14:48:24+01:00" scheme="W3CDTF" /> <meta name="DC.date.issued" content="2023-06-21T14:39:37+01:00" scheme="W3CDTF" /> <meta name="DC.date.modified" content="2023-09-01T16:24:35+01:00" scheme="W3CDTF" /> <meta name="DC.date.disposal.review" content="2122-06-21T14:39:37+01:00" scheme="W3CDTF" /> <meta name="eGMS.accessibility" content="double-a" scheme="eGMS.WCAG20" /> <meta name="DC.title" content="Housing" /> <meta name="DC.description" content="" /> <meta name="description" content="" /> <meta name="DC.identifier" content="https://www.gov.gg/housing" 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="reference" 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/k1.svg" alt="weather icon" /><span id="weatherSummary">Cloudy and perhaps a little misty at first, some sunny spells developing later.</span></div><span id="highTemp"><span>High</span>12°C</span><span id="lowTemp"><span>Low</span>12°C</span><div id="Right"><span id="wind"><span>Wind</span>Southerly moderate F4, occasionally light F3.</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"> <span class="triangleSep"></span> <a href="https://www.gov.gg/all">All Services</a> </li> <li class="even last"> <span class="triangleSep"></span> <span>Housing</span> </li> </ul> <h1>Housing</h1> <div id="content"> <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 == 196775) { 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="navItem197658"> <span>Guernsey Housing Plan<i class="fa fa-chevron-right"></i></span> <ul><li><a href="https://www.gov.gg/GuernseyHousingPlan">The Guernsey Housing Plan sets out a prioritised plan of action and the steps government will take to tackle Guernsey's significant housing pressures.</a></li></ul> </li><li id="navItem196780"> <span>Affordable & Extra Care Housing<i class="fa fa-chevron-right"></i></span> <ul><li><a href="https://www.gov.gg/article/196780/Affordable--Extra-Care-Housing">Affordable & Extra Care Housing</a></li></ul> </li><li id="navItem196782"> <span>Buying or renting a property to live in<i class="fa fa-chevron-right"></i></span> <ul><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></ul> </li><li id="navItem196783"> <span>Cadastre (Tax on Real Property / TRP) and Parish Rates<i class="fa fa-chevron-right"></i></span> <ul><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></ul> </li><li id="navItem196784"> <span>Your States House Tenancy and Maintenance<i class="fa fa-chevron-right"></i></span> <ul><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></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$mFooter_cache_0$ctl00$feedback1$hURL" type="hidden" id="mFooter_cache_0_ctl00_feedback1_hURL" class="hiddenURL" value="https://www.gov.gg/index.aspx?1=1;/housing" /> <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 = "196775"; 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>