This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Replace header hook to include slider | |
remove_action( 'genesis_header', 'genesis_do_header' ); | |
add_action( 'genesis_header', 'genesis_do_new_header' ); | |
function genesis_do_new_header() { | |
//add your custom slider shortcode here: | |
echo do_shortcode('[rev_slider alias="main"][/rev_slider]'); | |
if ( is_active_sidebar( 'header-right' ) || has_action( 'genesis_header_right' ) ) { | |
echo '<div class="widget-area">'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*Slider Fix*/ | |
.cafe-pro-home .site-header .wrap { | |
padding: 0; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$('.front-page-header') .css({'height': newHeight +'px'}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Theme Name: Jupiter Child Theme | |
Theme URI: http://themeforest.net/user/artbees | |
Description: Child theme for the Jupiter theme | |
Author: Cameron | |
Theme URI: http://themeforest.net/user/artbees | |
Template: jupiter | |
Version: 5.0.5 | |
*/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* This file adds the Home Page to the Cafe Pro Theme. | |
* | |
* @author StudioPress | |
* @package Cafe | |
* @subpackage Customizations | |
*/ | |
add_action( 'genesis_meta', 'cafe_home_genesis_meta' ); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function disable_newsletter_signup( $form_id ) { | |
global $ninja_forms_processing; | |
$form_id = $ninja_forms_processing->get_form_ID(); | |
if ( $form_id == 1 || $form_id == 2 || $form_id == 3 ) { | |
switch ($form_id) { | |
case 1: //Form 1 | |
$opt_in = $ninja_forms_processing->get_field_value( 32 ); | |
break; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Hostage! A Terminal based interactive Choose Your Own Adventure Game (All sounds from http://soundbible.com & http://www.freesound.org/) | |
# Download the audio files here: https://www.dropbox.com/sh/d4h5f36nwy4pw3j/AADjkh_ZLf9PK8cltX8ZUahTa?dl=0 | |
# Once downloaded them place them in a folder named "audio" in the same directory as this game and start playing! | |
# variables | |
invalid_entry = "INVALID ENTRY TRY AGAIN" | |
thanks = "\nThanks for Playing! 👏 👏 👏 👏" | |
meet_cortana1 = "Upon entering the Cortana’s study, he smiles. As he open’s his mouth to speak..." | |
meet_cortana2 = "the room erupts in flames.🔥 🔥 🔥\nNorth Korea finally launched a successful ballistic missile. 🚀️" | |
hr = "______________________________________________________________________________" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Person | |
attr_accessor :name | |
def initialize(name) | |
@name = name | |
end | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>This is the Holy Grail</title> | |
<link rel="stylesheet" href="css/styles.css" /> | |
</head> | |
<body> | |
<header>This is my header</header> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$(document).ready(function(){ | |
var newChat = function() { | |
var author = ["Me", "Myself", "I"]; | |
var randomNumber = Math.floor(Math.random() * 3); | |
var time = new Date(); | |
time = time.getHours() + ":" + time.getMinutes() + ":" + time.getSeconds(); | |
console.log(time); | |
var newMessage = $('#new-message-body').val(); |
OlderNewer