Skip to content

Instantly share code, notes, and snippets.

View jeremypage's full-sized avatar

Jeremy Page jeremypage

  • Trafford Council
  • UK
View GitHub Profile
@jeremypage
jeremypage / codeswing.json
Last active April 10, 2023 08:22
Jekyll note styling
{
"scripts": [],
"styles": [
"https://cdnjs.cloudflare.com/ajax/libs/foundation/6.7.5/css/foundation.css"
]
}
@jeremypage
jeremypage / Local view menu
Created July 11, 2022 10:33 — forked from ps-team/Local view menu
Recreating the Contensis Local View Menu in Razor
@using Contensis.Framework.Web
@using Contensis.Framework.Web.Search
<ul class="sys_menu">
@{
// Loading jQuery through the Contensis API
AppContext.Current.Page.Scripts.RegisterJQuery();
if(CurrentNode != null) {
@jeremypage
jeremypage / what3words.svg
Last active December 1, 2020 20:54
SVG: what3words logo
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@jeremypage
jeremypage / sticky-footer-flexbox.html
Last active April 10, 2024 09:10
HTML / CSS: Sticky footer using Flexbox and Grid

Search for: <(table|tr|td|p|div|span)[\S\s]*?\n?>

Replace with: &lt;$1&gt;

@jeremypage
jeremypage / skip-to-content.md
Created July 21, 2020 14:41
HTML/CSS: Skip to content link
<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<title>Skip to content</title>
	<style>
		#skiptocontent a {
 padding: 6px;
@jeremypage
jeremypage / hidden-text.css
Created July 21, 2020 08:03
CSS: Hidden text (when content is hidden, but still present for screen readers)
.hidden-text {
position: absolute;
left: -10000px;
height: 1px;
width: 1px;
}
@jeremypage
jeremypage / big-number-list.css
Last active April 2, 2020 11:01
CSS: Ordered list with bigger numbers
/* Creates extra-large ordered list numbering */
.bignum {
margin-left: 0;
counter-reset: listItem;
}
.bignum>li {
list-style: none;
position: relative;
@jeremypage
jeremypage / add-external-link-annotation.js
Created April 17, 2019 13:19
JavaScript: Add 'external link' annotation to specific (external) links
@jeremypage
jeremypage / jstree-sort.js
Last active April 24, 2019 06:03
jsTree: Custom sort - Specify priority entries that must always be listed first, and the order they must appear
// Example usage:
// $("#EstablishmentTree").jstree({
// // other jstree properties ...
// "sort": // function sort(a, b) { ... }
// });
function sort(a, b) {
// For jsTree, use get_text() to get node text:
// var textA = this.get_text(a), textB = this.get_text(b);