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
#main { | |
width: 400px; | |
height: 300px; | |
margin: auto; } | |
#center-circle { | |
border: 10px solid #746EBB; | |
border-bottom-color:#ECEBFA; | |
-webkit-transform: rotate(360deg); |
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
<IfModule mod_rewrite.c> | |
Redirect /index.php http://example.com/shop/ | |
</IfModule> | |
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
var player; | |
// this function gets called when API is ready to use | |
function onYouTubePlayerAPIReady() { | |
// create the global player from the specific iframe (#video) | |
player = new YT.Player('player', { | |
events: { | |
// call this function when player is ready to use | |
'onReady': onPlayerReady, | |
'onStateChange': onPlayerStateChange |
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 | |
$url = 'https://sender.blockspring.com/api_v2/blocks/07b6410853fa5343076db5d742de58e7?api_key=you_api_key'; | |
$data = json_encode(array("url" => "http://www.facebook.com/", 'width' => 1200, 'height' => 1000)); | |
// use key 'http' even if you send the request to https://... | |
$options = array( | |
'http' => array( | |
'header' => array("Accept: application/json", "Content-Type: application/json"), | |
'method' => 'POST', | |
'content' => $data, |
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
<script type="text/javascript" src="http://maps.googleapis.com/maps/api/js?v=3&sensor=false"></script> | |
<script> | |
function initialize() { | |
// Create an array of styles. | |
var styles = [ | |
{ | |
"featureType": "landscape", | |
"elementType": "geometry.fill", | |
"stylers": [ |
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.widget( "custom.catcomplete", $.ui.autocomplete, { | |
_create: function() { | |
this._super(); | |
this.widget().menu( "option", "items", "> :not(.ui-autocomplete-category)" ); | |
}, | |
_renderMenu: function( ul, items ) { | |
var that = this, | |
currentCategory = ""; | |
$.each( items, function( index, item ) { | |
var li; |
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 FlexSlider v2.3.0 | |
* http://www.woothemes.com/flexslider/ | |
* | |
* Copyright 2012 WooThemes | |
* Free to use under the GPLv2 license. | |
* http://www.gnu.org/licenses/gpl-2.0.html | |
* | |
* Contributing author: Ville Ristimäki (@villeristi) | |
* |
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(function($) { | |
$('a[href*=#]:not([href=#])').click(function() { | |
if (location.pathname.replace(/^\//,'') == this.pathname.replace(/^\//,'') && location.hostname == this.hostname) { | |
var target = $(this.hash); | |
target = target.length ? target : $('[name=' + this.hash.slice(1) +']'); | |
if (target.length) { | |
$('html,body').animate({ | |
scrollTop: target.offset().top | |
}, 1000); | |
return false; |
OlderNewer