This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Make sure search form triggers on 'Enter' | |
$("#siteSearch").keydown(function(event) { | |
// enter has keyCode = 13, change it if you want to use another button | |
if (event.keyCode == 13) { | |
this.form.submit(); | |
return false; | |
} | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/manager/settings/redirects.aspx |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(window).bind("load", function() { | |
CenterMap(new google.maps.LatLng(56.060188, -3.951609), 8); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This is the summary text for the post. It will appear on listing pages where this post is displayed, and on home boxes if this post is applied to that position. | |
This is the category intro text. Here you can explain a little bit about this group of posts. You can also 'feature' one or more of the posts in this section, and they will then appear as a carousel at the top of this page. You are able to add images and text formatting into this section if you wish. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Home icon | |
ul.topLevel > li.menu1 { | |
> a { | |
font-size: 0; // Take down the label | |
&:before { | |
content: '\f015'; | |
font-family: 'FontAwesome'; | |
display: block; | |
font-size: 22px; // Reinstate the icon |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Add in a 'share on whatsapp' link | |
var currentUrl = encodeURIComponent(document.URL); | |
$('.shareList').append('<li class="whatsapp"><a href="whatsapp://send?text=' + currentUrl + '" class="whatsapp" target="_blank">WhatsApp</a></li>'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Search expose JS | |
var formHeaderSearch = $('form.header-search'); | |
var mobileBreakpoint = 1024; | |
formHeaderSearch.find('button').click(function (event) { | |
var windowWidth = $(window).width(); | |
if ((!formHeaderSearch.hasClass('search-exposed')) && (windowWidth > mobileBreakpoint)) { | |
event.preventDefault(); | |
console.log('expose the search'); | |
formHeaderSearch.addClass('search-exposed'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@function colour-difference($foreground, $background) { | |
$r: (max(red($foreground), red($background))) - (min(red($foreground), red($background))); | |
$g: (max(green($foreground), green($background))) - (min(green($foreground), green($background))); | |
$b: (max(blue($foreground), blue($background))) - (min(blue($foreground), blue($background))); | |
$sum-rgb: $r + $g + $b; | |
@if $sum-rgb < 500 { | |
@return "false"; | |
} @else { | |
@return "true"; |
OlderNewer