Skip to content

Instantly share code, notes, and snippets.

Horizontal Timeline with Swiper

Horizontal Timeline with SwiperJS

A Pen by Jay on CodePen.

License.

@luistojal93
luistojal93 / import_json_appsscript.js
Created July 16, 2024 13:26 — forked from chrislkeller/import_json_appsscript.js
Adds what amounts to an =ImportJSON() function to a Google spreadsheet... To use go to Tools --> Script Editor and add the script and save.
/**
* Retrieves all the rows in the active spreadsheet that contain data and logs the
* values for each row.
* For more information on using the Spreadsheet API, see
* https://developers.google.com/apps-script/service_spreadsheet
*/
function readRows() {
var sheet = SpreadsheetApp.getActiveSheet();
var rows = sheet.getDataRange();
var numRows = rows.getNumRows();
@luistojal93
luistojal93 / wp-query-ref.php
Created April 25, 2024 09:37 — forked from luetkemj/wp-query-ref.php
WP: Query $args
// This gist is now maintained on github at https://github.com/luetkemj/wp-query-ref
<?php
/**
* WordPress Query Comprehensive Reference
* Compiled by luetkemj - luetkemj.github.io
*
* CODEX: http://codex.wordpress.org/Class_Reference/WP_Query#Parameters
* Source: https://core.trac.wordpress.org/browser/tags/4.9.4/src/wp-includes/query.php
*/
@luistojal93
luistojal93 / wp-query.php
Created April 25, 2024 09:36 — forked from Lego2012/wp-query.php
WP_Query #wordpress
<?php
//* Do NOT include the opening php tag shown above. Copy the code shown below.
/**
* WordPress Query Comprehensive Reference
* Compiled by luetkemj - luetkemj.com
*
* CODEX: http://codex.wordpress.org/Class_Reference/WP_Query#Parameters
* Source: https://core.trac.wordpress.org/browser/tags/3.9/src/wp-includes/query.php
*/
@luistojal93
luistojal93 / Function.php
Created April 25, 2024 09:32 — forked from Vagrantin/Function.php
Wordpress - filter post by tags using AJAX.
<?php
/**
*
* Functions and definitons
* This is a child theme of Twentysixteen theme
* V1.0 - AJAX Filter posts
* Largely inspired by Vlado Bosnjak work that you can find here:
* https://www.bobz.co/filter-wordpress-posts-by-custom-taxonomy-term-with-ajax-and-pagination/
*
*
<?php
if ( ! function_exists( 'wpcfu_output_file_upload_form' ) ) {
/**
* Output the form.
*
* @param array $atts User defined attributes in shortcode tag
*/
function wpcfu_output_file_upload_form( $atts ) {
@luistojal93
luistojal93 / oxy-tabs-responsive.js
Created May 17, 2022 10:27 — forked from janisii/oxy-tabs-responsive.js
Oxygen Builder. Tabs with better UX/UI on mobile (horizontal drag/move)
// 1. Set tabs container (#_tabs-31-168) width to 100%
// 2. Add white-space: nowrap; rule to "Custom CSS" for tabs text class .tabs-XXX-tab
// 3. Add JS code (below) to tabs container (#_tabs-31-168) element
// 4. Repalce #_tabs-31-168 with your tabs container Id
"use strict";
document.addEventListener("DOMContentLoaded", function () {
var tabs = document.querySelector("#_tabs-31-168");
var mouseDown = false;