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
$javascript = <<<JS | |
function javascriptFunction() | |
{ | |
/* Some javascript code here */ | |
} | |
JS; |
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(){ | |
var ratioEl = $("#videoratio"); | |
if(ratioEl){ | |
var ratio = ratioEl.html().split(':'); | |
$("#dnn_dnnARTICLE_aembed object").attr('height', 500 * ratio[1] / ratio[0]); | |
} | |
}); |
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
<html> | |
<head> | |
<title>Video Player</title> | |
</head> | |
<body> | |
<div id="silverlightControlHost"> | |
<object data="data:application/x-silverlight-2," type="application/x-silverlight-2" width="640" height="480"> | |
<param name="source" value="VideoPlayer.xap"/> | |
<param name="background" value="white" /> | |
<param name="initParams" value="m=http://www.sonypictures.com/movies/21/video/trailer/21_trailer_high.asx" /> |
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
(!window.jQuery || window.jQuery().jquery < '1.2.4a') && /** detect if a better jquery is there before loading. If better jquery is there stop loading to avoid conflicts **/ | |
(function(){if(window.jQuery){var _jQuery=window.jQuery;}var jQuery=window.jQuery=function(selector,context){return new jQuery.prototype.init(selector,context);};if(window.$){var _$=window.$;}window.$=jQuery;var quickExpr=/^[^<]*(<(.|\s)+>)[^>]*$|^#(\w+)$/;var isSimple=/^.[^:#\[\.]*$/;jQuery.fn=jQuery.prototype={init:function(selector,context){selector=selector||document;if(selector.nodeType){this[0]=selector;this.length=1;return this;}else{if(typeof selector=="string"){var match=quickExpr.exec(selector);if(match&&(match[1]||!context)){if(match[1]){selector=jQuery.clean([match[1]],context);}else{var elem=document.getElementById(match[3]);if(elem){if(elem.id!=match[3]){return jQuery().find(selector);}else{this[0]=elem;this.length=1;return this;}}else{selector=[];}}}else{return new jQuery(context).find(selector);}}else{if(jQuery.isFunction( |
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($){ | |
$.fn.CwPlayer = function(options){ | |
var settings = { | |
'thumbs' : 'cwVidThumb', | |
'width' : 640, | |
'height' : 360, | |
'source' : '' | |
}; | |
function getVideoTemplate(url, options){ |
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 | |
/************************************* | |
* Class with methods to decode a signed request easily, for App embedded as Tab on a profile page. | |
* | |
* @ModifiedBy Mike - @mmhan - mmhan.net | |
* @author Nathron | |
* @url http://nathrondevblog.blogspot.com/2010/09/how-to-get-user-id-in-profile-tab.html | |
* | |
* @usage: | |
* //In facebook tab page. |
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 FBReady( func ) { | |
// If facebook is already loaded, | |
// just call the function | |
if ( FBReady.done ) return func(); | |
// If the stack already exists, | |
// push the function onto it, | |
// otherwise, initialize a stack | |
// of functions |
NewerOlder