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
//scripts addings | |
add_action( 'wp_enqueue_scripts', 'custom_scripts' ); | |
function custom_scripts() { | |
//replace .time() with a hard version number for production | |
wp_enqueue_style( 'application-css', get_stylesheet_directory_uri() . '/css/theme.css?v='.time(), array(), false, 'all' ); | |
wp_enqueue_script( 'application-js', get_stylesheet_directory_uri() . '/js/parallaxSlider.js?v='.time(), array('jquery'), 'all' ); | |
} |
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 | |
/** | |
* Enable shortcodes in widgets | |
*/ | |
add_filter('widget_text', 'do_shortcode'); | |
/** |
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
//---- Center an element in the center of your screen. | |
$(document).ready(function() { | |
jQuery.fn.center = function () { | |
this.css("position","absolute"); | |
this.css("top", ( $(window).height() - this.height() ) / 2+$(window).scrollTop() + "px"); | |
this.css("left", ( $(window).width() - this.width() ) / 2+$(window).scrollLeft() + "px"); | |
return this; | |
} | |
}); |
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
// find the pathname | |
var urlPath = window.location.pathname; | |
//convert to lowercase | |
urlPath.match(/\/(.*?)(\+|$)/)[1].toLowerCase(); | |
// remove the first character | |
urlPath = urlPath.replace(/\//g, '-').slice(1); | |
//remove file extension | |
urlPath = urlPath.replace(/\.[^/.]+$/, ""); | |
// add class to body | |
$(document.body).addClass(urlPath); |
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
<script type="text/javascript" src="/prodhub/_catalogs/masterpage/AltairNet/js/jquery.SPServices-2014.02/jquery.SPServices-2014.02.min.js"></script> | |
<script type="text/javascript"> | |
//this is where the script starts after the page is loaded | |
$(document).ready(function() { |
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
<script type="text/javascript" src="http://momentjs.com/downloads/moment-with-langs.min.js"></script> | |
<script> | |
/*FeedEk jQuery RSS/ATOM Feed Plugin v2.0 | |
* //jquery-plugins.net/FeedEk/FeedEk.html | |
* https://github.com/enginkizil/FeedEk | |
* Author : Engin KIZIL //www.enginkizil.com */ |
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
/* | |
<div class="Image"><img src="/image5.jpg">5</div> | |
<div class="Image"><img src="/image6.jpg">6</div> | |
<div class="Image"><img src="/image7.jpg">7</div> | |
*/ | |
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
.row-fluid { | |
width: 100%; | |
*zoom: 1 | |
} | |
.row-fluid:before,.row-fluid:after { | |
display: table; | |
content: "" | |
} |
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
<span id="clock"></span> | |
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script> | |
<script src="//cdnjs.cloudflare.com/ajax/libs/jquery.countdown/2.1.0/jquery.countdown.min.js"></script> | |
<script src="//cdnjs.cloudflare.com/ajax/libs/moment.js/2.10.3/moment-with-locales.min.js"></script> | |
<script src="//cdnjs.cloudflare.com/ajax/libs/moment-timezone/0.4.0/moment-timezone-with-data-2010-2020.min.js"></script> | |
<script type="text/javascript"> | |
$(function() { | |
//November 17, 2015 - 10am ET | |
var nextYear = moment.tz("2015-11-17 10:00", "America/Detroit"); |