Skip to content

Instantly share code, notes, and snippets.

@jennahines
jennahines / hwl-progress-tracker
Created September 10, 2023 18:28
Progress Bar
<style>
.hwl-progress-tracker {
margin: 3rem auto;
padding: 0 16px;
width: 100%;
max-width: 1000px;
box-sizing: border-box;
}
.hwl-progress-tracker__title {
text-align: center;
@jennahines
jennahines / is_blog.php
Last active March 15, 2018 15:25
Wordpress - check if on a blog page
<?php
function is_blog () {
global $post;
$posttype = get_post_type($post );
return ( ((is_archive()) || (is_author()) || (is_category()) || (is_home()) || (is_single()) || (is_tag())) && ( $posttype == 'post') ) ? true : false ;
}
(function($) {
var methods = {
init: function() {
var $ul = $("<ul/>").insertAfter(this);
var baseId = "_" + $(this).attr("id");
$(this).children("option").each(function(index) {
var $option = $(this);
var id = baseId + index;
var $li = $("<li/>").appendTo($ul);