Skip to content

Instantly share code, notes, and snippets.

View chriskonnertz's full-sized avatar
I need a time machine

Chris Konnertz chriskonnertz

I need a time machine
View GitHub Profile
@chriskonnertz
chriskonnertz / Countdown.js
Last active June 14, 2023 10:07
Simple JavaScript Countdown Snippet
<div class="countdown" data-datetime="<?php echo time() ?>">
<span class="days">0</span> days
<span class="hours">0</span> hours
<span class="minutes">0</span> minutes
<span class="seconds">0</span> seconds
</div>
<script>
(function()
{
@chriskonnertz
chriskonnertz / contentify.sql
Created April 28, 2015 09:57
Contentify CMS 0.7.0: MySQLDump (Username: example, Email: [email protected], Password: example)
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8 */;
CREATE TABLE IF NOT EXISTS `advertcats` (
@chriskonnertz
chriskonnertz / contentify_beta2.sql
Created May 31, 2015 15:28
Contentify CMS 0.7.1: MySQLDump (Username: example, Email: [email protected], Password: example)
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8 */;
DROP TABLE IF EXISTS `advertcats`;
@chriskonnertz
chriskonnertz / contentify_beta3.sql
Last active August 29, 2015 14:23
Contentify CMS 0.8.0: MySQLDump (Username: example, Email: [email protected], Password: example)
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8 */;
CREATE TABLE IF NOT EXISTS `advertcats` (
@chriskonnertz
chriskonnertz / install.sh
Last active June 6, 2016 10:49
Contentify DigitalOcean Installation Script
#!/bin/bash
clear
echo "--- Contentify DigitalOcean Installation Script ---"
# Set variables
RELEASEFILE="contentify_1_2_0"
CMSURL="contentify.org/share/releases/"
# Activate the mod_rewrite module
@chriskonnertz
chriskonnertz / contentify_beta4.sql
Created August 2, 2015 12:43
Contentify CMS 0.9.0: MySQLDump (Username: example, Email: [email protected], Password: example)
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8 */;
CREATE TABLE IF NOT EXISTS `advertcats` (
@chriskonnertz
chriskonnertz / contentify_rc.sql
Created August 31, 2015 11:57
Contentify CMS 0.9.9: MySQLDump (Username: example, Email: [email protected], Password: example)
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8 */;
CREATE TABLE IF NOT EXISTS `advertcats` (
@chriskonnertz
chriskonnertz / contentify_1_0_0.sql
Created October 4, 2015 09:56
Contentify CMS 1.0.0: MySQLDump (Username: example, Email: [email protected], Password: example)
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8 */;
CREATE TABLE IF NOT EXISTS `advertcats` (
@chriskonnertz
chriskonnertz / contentify_1_1_0.sql
Created December 24, 2015 12:53
Contentify CMS 1.1.0: MySQLDump (Username: example, Email: [email protected], Password: example)
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
SET time_zone = "+00:00";
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */;
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */;
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */;
/*!40101 SET NAMES utf8 */;
CREATE TABLE IF NOT EXISTS `advertcats` (
$(document).ready(function()
{
var navKey = 'navIndex';
var navIndex= sessionStorage.getItem(navKey);
var $nav = $('#header nav');
if (typeof navIndex === 'undefined') {
navIndex = 0;
}