Skip to content

Instantly share code, notes, and snippets.

View davenaylor's full-sized avatar

Dave Naylor davenaylor

View GitHub Profile
| Name | P | W | L | D | PF | PA | PD | PTS |
| :------: | :------: | :------: | :------: | :------: | :------: | :------: | :------: | :------: |
| Doncaster RLFC | 6 | 5 | 1 | 0 | 238 | 72 | 166 | 10 |
| Bradford Bulls | 6 | 5 | 1 | 0 | 206 | 73 | 133 | 10 |
| York City Knights | 6 | 5 | 1 | 0 | 178 | 92 | 86 | 10 |
| Whitehaven RLFC | 6 | 4 | 2 | 0 | 178 | 94 | 84 | 8 |
| Hunslet RLFC | 6 | 4 | 2 | 0 | 139 | 130 | 9 | 8 |
| Workington Town | 6 | 3 | 3 | 0 | 199 | 133 | 66 | 6 |
@davenaylor
davenaylor / font-stacks.css
Created August 14, 2019 08:40 — forked from don1138/font-stacks.css
CSS Modern Font Stacks
/* Modern Font Stacks */
/* System */
font-family: system, -apple-system, ".SFNSText-Regular", "San Francisco", "Roboto", "Segoe UI", "Helvetica Neue", "Lucida Grande", sans-serif;
/* Times New Roman-based serif */
font-family: Cambria, "Hoefler Text", Utopia, "Liberation Serif", "Nimbus Roman No9 L Regular", Times, "Times New Roman", serif;
/* A modern Georgia-based serif */
font-family: Constantia, "Lucida Bright", Lucidabright, "Lucida Serif", Lucida, "DejaVu Serif", "Bitstream Vera Serif", "Liberation Serif", Georgia, serif;
@davenaylor
davenaylor / ajax-search.js
Created November 16, 2019 14:33 — forked from wpmark/ajax-search.js
Code for Running an AJAX Search in WordPress
( function( $ ) {
// hooks everything into document ready
$(document).ready( function() {
// create a function to actually fire the search
function dosearch(t) {
// do the ajax request for job search
$.ajax({
@davenaylor
davenaylor / wp-enqueue-localised-script.php
Created November 16, 2019 14:34 — forked from wpmark/wp-enqueue-localised-script.php
Enqueuing a localised script in WordPress
<?php
function myplugin_enqueue_scripts() {
/* hand the js for deleting uploads by ajax */
wp_enqueue_script(
'myplugin-utilities-ajax',
plugins_url( '/assets/js/nameofjsfile.js', __FILE__ ),
array( 'jquery' ),
'1.0.0',
true
@davenaylor
davenaylor / wp-ajax-search-functions-hooked.php
Created November 16, 2019 14:34 — forked from wpmark/wp-ajax-search-functions-hooked.php
AJAX Search Function for Post Titles
<?php
function myplugin_ajax_job_search() {
/* get the search terms entered into the search box */
$search = sanitize_text_field( $_POST[ 'search' ] );
/* run a new query including the search string */
$q = new WP_Query(
array(
'post_type' => job_post_type_name,