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
img { | |
max-width: 100%; | |
height: auto; | |
} | |
@media \0screen { | |
img { | |
width: auto; /* for ie 8 */ | |
} | |
} |
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
<!--[if lt IE 9]> | |
<script src="http://code.jquery.com/jquery-1.11.1.min.js"></script> | |
<![endif]--> | |
<!--[if (gte IE 9) | (!IE)]><!--> | |
<script src="http://code.jquery.com/jquery-2.1.1.min.js"></script> | |
<!--<![endif]--> | |
<!--[if IE]> | |
<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js"></script> | |
<![endif]--> |
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
table tr:nth-of-type(even){background: transparent;} | |
table tr:nth-of-type(odd){background: #e4e4e4;} |
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
#!/bin/bash | |
# Phalcon Framework | |
# | |
# Copyright (c) 2011-2014 Phalcon Team (http://www.phalconphp.com) | |
# | |
# This source file is subject to the New BSD License that is bundled | |
# with this package in the file docs/LICENSE.txt. | |
# | |
# If you did not receive a copy of the license and are unable to |
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 | |
/** | |
* Controler PhotoGallery | |
* @author Jimmy Latreille | |
* @email [email protected] | |
* @date 3 septembre 2013 | |
*/ | |
class Ckx_PhotoGallery_IndexController extends Mage_Core_Controller_Front_Action{ |
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
if(preg_match('/android|blackberry|htc|iphone|ipad|ipaq|ipod|mobile/', strtolower($_SERVER['HTTP_USER_AGENT']))) { | |
$ismobile = 1; | |
} |
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
/^(?:https?:\/\/)?(?:www\.)?(?:youtu\.be\/|youtube\.com\/(?:embed\/|v\/|watch\?v=|watch\?.+&v=))((\w|-){11})(?:\S+)?$|^(?:https?:\/\/)?(?:www\.)?dailymotion.com\/(video|hub)+(\/([^_]+))?[^#]*(#video=([^_&]+))?$|^(?:https?:\/\/)?(?:www\.)?vimeo.com\/([0-9]+)$/ |
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 | |
if(preg_match('/vimeo/', $data['url'])){ | |
$url = '//player.vimeo.com/video/'.end(explode('/', $data['url'])); | |
echo "<iframe src='$url' width='560' height='315' frameborder='0' webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe>"; | |
echo "<img src='".unserialize(file_get_contents("http://vimeo.com/api/v2/video/".end(explode('/', $data['url'])).".php"))[0]['thumbnail_medium']."' />"; |
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
pre { | |
display: inline-block; | |
position: fixed; | |
top: 50%; | |
left: 50%; | |
padding: 30px; | |
background: #000; | |
z-index: 999; | |
height: 600px; | |
width: 30%; |
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
/*fonction qui permet de faire l'effet placeholder*/ | |
function inputEffetct(beforeColor, afterColor){ | |
/*si une personne rafréchi la page pour laisser les eléements de la même couleur*/ | |
$('input:text, input:password').each(function(){ | |
/*condition si la valeur du input n'est pas égale au value du input pour garder la bonne couleur lors du refresh de la page*/ | |
if($(this).val() != $(this).attr('value')){ | |
$(this).css('color', afterColor); |