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
// Add functionality for Ingredients "Card Flip" | |
// | |
$('.product-img-box-pdp').wrapInner('<div class="product-img-box-pdp-inner-wrap" style="display: none;" />'); | |
$(".ingredients-text").wrapInner('<div class="ingredients-text-inner-wrap"" />'); | |
$('.product-img-box-pdp').prepend('<div class="product-img-box-pdp-inner" style="width: 100%;" />'); | |
$('.product-img-box-pdp-inner').css('min-height', productImgHeight); | |
$('.product-img-box-pdp figure').clone().appendTo('.product-img-box-pdp-inner').show(); | |
$('.ingredients-button-close').click(function() { | |
$(".ingredients-link").removeClass('ingredient-active'); | |
$(".product-img-box-pdp-inner").flippy({ |
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
<iframe src="//www.facebook.com/plugins/likebox.php?href=https%3A%2F%2Fwww.facebook.com%2Fpages%2FNelson-Primary-School%2F174534929241708%3Ffref%3Dts&width=50&height=62&colorscheme=light&show_faces=false&header=false&stream=false&show_border=false" scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:50px; height:62px;" allowTransparency="true"></iframe> |
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
$('.sibling-pages li a').each(function() { | |
var url = window.location.href; $(this).filter(function() { | |
return this.href == url; }).addClass('current'); | |
}); |
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 { | |
public $teacher; | |
public $student; | |
public $age; | |
function displayStudentNameandTeacher() { | |
echo 'My Name is ' . $this->student . ' my teacher is ' . $this->teacher . '. My teachers age is ' . $this->getAge() . '.'; | |
} | |
function setAge($var) { | |
$this->age = $var; |
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
process.env.NODE_ENV = 'development'; | |
var gulp = require('gulp'), | |
sass = require('gulp-sass'), | |
compass = require('gulp-compass'), | |
minifycss = require('gulp-minify-css'), | |
concat = require('gulp-concat'), | |
uglify = require('gulp-uglify'), | |
sourcemaps = require('gulp-sourcemaps'), |
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
@function rem($pxval) { | |
$val: strip-unit($pxval); | |
$base: strip-unit($browser-default-font-size); | |
@if ($old-ie == true) { | |
@return $val * 1px; | |
} | |
@else { |
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
var App = { | |
myProperty : 'someValue', | |
jqueryVar1 : $('.someClass'), | |
jqueryVar2 : $('.someOtherClass'), | |
jqueryVar3 : $('#id'), | |
myConfig:{ | |
useCaching:true, | |
language: 'en' | |
}, |
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
(function ($) { // passing Jquery $ into the function | |
// Define variable for our overall function | |
var Contact = { | |
// Define variables for the below function | |
contactItems: $('#block-views-studios-block .views-row'), // gets the container for each sidebar idem | |
selectDropdown: $( "#edit-submitted-studio"), // gets us the select element | |
// Initialising functions (Function written below) | |
init: function(){ | |
this.contactItemChanger(); |
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
(function ($) { // passing Jquery $ into the function | |
// Define variable for our overall function | |
var Timeline = { | |
// Define variables for the below function | |
timelineWrapper: $('.timeline'), | |
timelineItems: $('.timeline-wrapper'), | |
// Initialising functions (Function written below) | |
init: function(){ | |
this.timelineAlignment(); | |
}, |
OlderNewer