This file contains hidden or 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
// iframes | |
var $iframes = $( document.querySelectorAll( '.videos iframe' ) ); | |
function iframeSizing() { | |
var $this = $( this ), | |
width = $this.width(), | |
height = $this.height(), | |
containerWidth = $this.parent().width(), | |
heightRatio = height / width, | |
newHeight = heightRatio * containerWidth; |
This file contains hidden or 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').attr('src', function(index, val) { | |
return val; | |
}); |
This file contains hidden or 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() { | |
$( ".class" ).append(function() { | |
var tijd_datum = new Date(); | |
var dag = tijd_datum.getDay(); | |
var dag2 = tijd_datum.getDate(); | |
var maand = tijd_datum.getMonth(); | |
var jaar = tijd_datum.getFullYear(); | |
var maandarray = new Array('januari', 'februari', 'maart', 'april', 'mei', 'juni', 'juli', 'augustus', 'september', 'oktober', 'november', 'december'); | |
var dagarray = new Array('zondag','maandag','dinsdag', 'woensdag', 'donderdag', 'vrijdag', 'zaterdag'); |
This file contains hidden or 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
//remove all dynamic styling | |
$("#element").removeAttr("style"); | |
//remove only one css property | |
var cssObject = $('selector').prop('style'); cssObject.removeProperty('background-color'); |
This file contains hidden or 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
<!-- Development version: --> | |
<script>document.write('<script src="/myJavascript.js?dev=' + Math.floor(Math.random() * 100) + '"\><\/script>');</script> |
This file contains hidden or 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
$(window).bind('resize', function(e){ | |
window.resizeEvt; | |
$(window).resize(function(){ | |
clearTimeout(window.resizeEvt); | |
window.resizeEvt = setTimeout(function(){ | |
} ,500); | |
}); | |
}); |
This file contains hidden or 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
jQuery.fn.verticalAlign = function () | |
{ | |
return this | |
.css("margin-top",($(this).parent().height() - $(this).height())/2 + 'px' ) | |
}; | |
$('element').verticalAlign(); |
This file contains hidden or 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 echo $this->getLayout()->createBlock('cms/block')->setBlockId('staticblock_identifier')->toHtml() ?> |
This file contains hidden or 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
<?xml version="1.0" encoding="UTF-8"?> | |
<layout> | |
<!-- ## Default Layout ## --> | |
<default> | |
<!-- Remove unwanted blocks entirely | |
<remove name="right.poll"/> | |
<remove name="right.permanent.callout"/> |
This file contains hidden or 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
/* | |
Remove unwanted links from Account Dashboard Navigation | |
Step 1: Go To ( YourTemplate/customer/account/navigation.phtml ) | |
Step 2: Replace This Line: <?php $_count = count($_links); ?> | |
*/ | |
<?php $_count = count($_links); /* Add or Remove Account Left Navigation Links Here -*/ | |
unset($_links['account']); /* Account Info */ | |
unset($_links['account_edit']); /* Account Info */ | |
unset($_links['tags']); /* My Tags */ |
OlderNewer